Fix a memory leak in func_curl. Every thread that used this function leaked
[asterisk-bristuff.git] / configure
blob7a0b7aa502d6be913800dbf2dad093e1b8cc9b05
1 #! /bin/sh
2 # From configure.ac Revision: 132704 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.4.
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.4'
581 PACKAGE_STRING='asterisk 1.4'
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 UNAME
687 PBX_OSREV
690 RANLIB
691 CXXFLAGS
692 ac_ct_CXX
693 CXXCPP
696 INSTALL_PROGRAM
697 INSTALL_SCRIPT
698 INSTALL_DATA
699 LN_S
700 GNU_MAKE
701 STRIP
703 GNU_LD
704 FIND
705 COMPRESS
706 BASENAME
708 DIRNAME
711 WGET
712 FETCH
713 DOWNLOAD
714 SOXMIX
715 acx_pthread_config
716 PTHREAD_CC
717 PTHREAD_LIBS
718 PTHREAD_CFLAGS
719 AST_DEVMODE
720 ALSA_LIB
721 ALSA_INCLUDE
722 ALSA_DIR
723 PBX_ALSA
724 CURL_LIB
725 CURL_INCLUDE
726 CURL_DIR
727 PBX_CURL
728 CAP_LIB
729 CAP_INCLUDE
730 CAP_DIR
731 PBX_CAP
732 CURSES_LIB
733 CURSES_INCLUDE
734 CURSES_DIR
735 PBX_CURSES
736 DAHDI_LIB
737 DAHDI_INCLUDE
738 DAHDI_DIR
739 PBX_DAHDI
740 GNUTLS_LIB
741 GNUTLS_INCLUDE
742 GNUTLS_DIR
743 PBX_GNUTLS
744 GSM_LIB
745 GSM_INCLUDE
746 GSM_DIR
747 PBX_GSM
748 IKSEMEL_LIB
749 IKSEMEL_INCLUDE
750 IKSEMEL_DIR
751 PBX_IKSEMEL
752 IMAP_TK_LIB
753 IMAP_TK_INCLUDE
754 IMAP_TK_DIR
755 PBX_IMAP_TK
756 ISDNNET_LIB
757 ISDNNET_INCLUDE
758 ISDNNET_DIR
759 PBX_ISDNNET
760 KDE_LIB
761 KDE_INCLUDE
762 KDE_DIR
763 PBX_KDE
764 LTDL_LIB
765 LTDL_INCLUDE
766 LTDL_DIR
767 PBX_LTDL
768 MISDN_LIB
769 MISDN_INCLUDE
770 MISDN_DIR
771 PBX_MISDN
772 NBS_LIB
773 NBS_INCLUDE
774 NBS_DIR
775 PBX_NBS
776 NCURSES_LIB
777 NCURSES_INCLUDE
778 NCURSES_DIR
779 PBX_NCURSES
780 NETSNMP_LIB
781 NETSNMP_INCLUDE
782 NETSNMP_DIR
783 PBX_NETSNMP
784 NEWT_LIB
785 NEWT_INCLUDE
786 NEWT_DIR
787 PBX_NEWT
788 UNIXODBC_LIB
789 UNIXODBC_INCLUDE
790 UNIXODBC_DIR
791 PBX_UNIXODBC
792 OGG_LIB
793 OGG_INCLUDE
794 OGG_DIR
795 PBX_OGG
796 OSPTK_LIB
797 OSPTK_INCLUDE
798 OSPTK_DIR
799 PBX_OSPTK
800 OSS_LIB
801 OSS_INCLUDE
802 OSS_DIR
803 PBX_OSS
804 POPT_LIB
805 POPT_INCLUDE
806 POPT_DIR
807 PBX_POPT
808 PGSQL_LIB
809 PGSQL_INCLUDE
810 PGSQL_DIR
811 PBX_PGSQL
812 PRI_LIB
813 PRI_INCLUDE
814 PRI_DIR
815 PBX_PRI
816 PWLIB_LIB
817 PWLIB_INCLUDE
818 PWLIB_DIR
819 PBX_PWLIB
820 OPENH323_LIB
821 OPENH323_INCLUDE
822 OPENH323_DIR
823 PBX_OPENH323
824 RADIUS_LIB
825 RADIUS_INCLUDE
826 RADIUS_DIR
827 PBX_RADIUS
828 SPEEX_LIB
829 SPEEX_INCLUDE
830 SPEEX_DIR
831 PBX_SPEEX
832 SPEEXDSP_LIB
833 SPEEXDSP_INCLUDE
834 SPEEXDSP_DIR
835 PBX_SPEEXDSP
836 SQLITE_LIB
837 SQLITE_INCLUDE
838 SQLITE_DIR
839 PBX_SQLITE
840 SUPPSERV_LIB
841 SUPPSERV_INCLUDE
842 SUPPSERV_DIR
843 PBX_SUPPSERV
844 OPENSSL_LIB
845 OPENSSL_INCLUDE
846 OPENSSL_DIR
847 PBX_OPENSSL
848 FREETDS_LIB
849 FREETDS_INCLUDE
850 FREETDS_DIR
851 PBX_FREETDS
852 TERMCAP_LIB
853 TERMCAP_INCLUDE
854 TERMCAP_DIR
855 PBX_TERMCAP
856 TINFO_LIB
857 TINFO_INCLUDE
858 TINFO_DIR
859 PBX_TINFO
860 TONEZONE_LIB
861 TONEZONE_INCLUDE
862 TONEZONE_DIR
863 PBX_TONEZONE
864 USB_LIB
865 USB_INCLUDE
866 USB_DIR
867 PBX_USB
868 VORBIS_LIB
869 VORBIS_INCLUDE
870 VORBIS_DIR
871 PBX_VORBIS
872 VPB_LIB
873 VPB_INCLUDE
874 VPB_DIR
875 PBX_VPB
876 ZLIB_LIB
877 ZLIB_INCLUDE
878 ZLIB_DIR
879 PBX_ZLIB
880 ZAPTEL_LIB
881 ZAPTEL_INCLUDE
882 ZAPTEL_DIR
883 PBX_ZAPTEL
884 ALLOCA
885 LIBOBJS
886 POW_LIB
887 GC_CFLAGS
888 GC_LDFLAGS
889 AST_DECLARATION_AFTER_STATEMENT
890 AST_NO_STRICT_OVERFLOW
891 PBX_ZAPTEL_TRANSCODE
892 GSM_INTERNAL
893 KDEINIT
894 KDEDIR
895 NETSNMP_CONFIG
896 PG_CONFIG
897 PTLIB_CONFIG
898 PWLIBDIR
899 PWLIB_INCDIR
900 PWLIB_LIBDIR
901 PWLIB_PLATFORM
902 OPENH323DIR
903 OPENH323_INCDIR
904 OPENH323_LIBDIR
905 OPENH323_SUFFIX
906 OPENH323_BUILD
907 PBX_SPEEX_PREPROCESS
908 PBX_ZAPTEL_VLDTMF
909 EDITLINE_LIB
910 PBX_H323
911 PBX_IXJUSER
912 GTKCONFIG
913 PBX_GTK
914 GTK_INCLUDE
915 GTK_LIB
916 PKGCONFIG
917 PBX_GTK2
918 GTK2_INCLUDE
919 GTK2_LIB
920 CURL_CONFIG
921 LTLIBOBJS'
922 ac_subst_files=''
923 ac_precious_vars='build_alias
924 host_alias
925 target_alias
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
933 CXXFLAGS
935 CXXCPP'
938 # Initialize some variables set by options.
939 ac_init_help=
940 ac_init_version=false
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
984 ac_prev=
985 ac_dashdash=
986 for ac_option
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\$ac_option
991 ac_prev=
992 continue
995 case $ac_option in
996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *) ac_optarg=yes ;;
998 esac
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1002 case $ac_dashdash$ac_option in
1004 ac_dashdash=yes ;;
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1026 -datadir | --datadir | --datadi | --datad)
1027 ac_prev=datadir ;;
1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029 datadir=$ac_optarg ;;
1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1038 -disable-* | --disable-*)
1039 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1045 eval enable_$ac_feature=no ;;
1047 -docdir | --docdir | --docdi | --doc | --do)
1048 ac_prev=docdir ;;
1049 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1050 docdir=$ac_optarg ;;
1052 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053 ac_prev=dvidir ;;
1054 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1055 dvidir=$ac_optarg ;;
1057 -enable-* | --enable-*)
1058 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1064 eval enable_$ac_feature=\$ac_optarg ;;
1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068 | --exec | --exe | --ex)
1069 ac_prev=exec_prefix ;;
1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072 | --exec=* | --exe=* | --ex=*)
1073 exec_prefix=$ac_optarg ;;
1075 -gas | --gas | --ga | --g)
1076 # Obsolete; use --with-gas.
1077 with_gas=yes ;;
1079 -help | --help | --hel | --he | -h)
1080 ac_init_help=long ;;
1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082 ac_init_help=recursive ;;
1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084 ac_init_help=short ;;
1086 -host | --host | --hos | --ho)
1087 ac_prev=host_alias ;;
1088 -host=* | --host=* | --hos=* | --ho=*)
1089 host_alias=$ac_optarg ;;
1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 ac_prev=htmldir ;;
1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 | --ht=*)
1095 htmldir=$ac_optarg ;;
1097 -includedir | --includedir | --includedi | --included | --include \
1098 | --includ | --inclu | --incl | --inc)
1099 ac_prev=includedir ;;
1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101 | --includ=* | --inclu=* | --incl=* | --inc=*)
1102 includedir=$ac_optarg ;;
1104 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 ac_prev=infodir ;;
1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107 infodir=$ac_optarg ;;
1109 -libdir | --libdir | --libdi | --libd)
1110 ac_prev=libdir ;;
1111 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112 libdir=$ac_optarg ;;
1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115 | --libexe | --libex | --libe)
1116 ac_prev=libexecdir ;;
1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118 | --libexe=* | --libex=* | --libe=*)
1119 libexecdir=$ac_optarg ;;
1121 -localedir | --localedir | --localedi | --localed | --locale)
1122 ac_prev=localedir ;;
1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124 localedir=$ac_optarg ;;
1126 -localstatedir | --localstatedir | --localstatedi | --localstated \
1127 | --localstate | --localstat | --localsta | --localst | --locals)
1128 ac_prev=localstatedir ;;
1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131 localstatedir=$ac_optarg ;;
1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 ac_prev=mandir ;;
1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136 mandir=$ac_optarg ;;
1138 -nfp | --nfp | --nf)
1139 # Obsolete; use --without-fp.
1140 with_fp=no ;;
1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143 | --no-cr | --no-c | -n)
1144 no_create=yes ;;
1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148 no_recursion=yes ;;
1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152 | --oldin | --oldi | --old | --ol | --o)
1153 ac_prev=oldincludedir ;;
1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157 oldincludedir=$ac_optarg ;;
1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 ac_prev=prefix ;;
1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162 prefix=$ac_optarg ;;
1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165 | --program-pre | --program-pr | --program-p)
1166 ac_prev=program_prefix ;;
1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169 program_prefix=$ac_optarg ;;
1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172 | --program-suf | --program-su | --program-s)
1173 ac_prev=program_suffix ;;
1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176 program_suffix=$ac_optarg ;;
1178 -program-transform-name | --program-transform-name \
1179 | --program-transform-nam | --program-transform-na \
1180 | --program-transform-n | --program-transform- \
1181 | --program-transform | --program-transfor \
1182 | --program-transfo | --program-transf \
1183 | --program-trans | --program-tran \
1184 | --progr-tra | --program-tr | --program-t)
1185 ac_prev=program_transform_name ;;
1186 -program-transform-name=* | --program-transform-name=* \
1187 | --program-transform-nam=* | --program-transform-na=* \
1188 | --program-transform-n=* | --program-transform-=* \
1189 | --program-transform=* | --program-transfor=* \
1190 | --program-transfo=* | --program-transf=* \
1191 | --program-trans=* | --program-tran=* \
1192 | --progr-tra=* | --program-tr=* | --program-t=*)
1193 program_transform_name=$ac_optarg ;;
1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 ac_prev=pdfdir ;;
1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198 pdfdir=$ac_optarg ;;
1200 -psdir | --psdir | --psdi | --psd | --ps)
1201 ac_prev=psdir ;;
1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203 psdir=$ac_optarg ;;
1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206 | -silent | --silent | --silen | --sile | --sil)
1207 silent=yes ;;
1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 ac_prev=sbindir ;;
1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 | --sbi=* | --sb=*)
1213 sbindir=$ac_optarg ;;
1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217 | --sharedst | --shareds | --shared | --share | --shar \
1218 | --sha | --sh)
1219 ac_prev=sharedstatedir ;;
1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 | --sha=* | --sh=*)
1224 sharedstatedir=$ac_optarg ;;
1226 -site | --site | --sit)
1227 ac_prev=site ;;
1228 -site=* | --site=* | --sit=*)
1229 site=$ac_optarg ;;
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 ac_prev=srcdir ;;
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234 srcdir=$ac_optarg ;;
1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237 | --syscon | --sysco | --sysc | --sys | --sy)
1238 ac_prev=sysconfdir ;;
1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241 sysconfdir=$ac_optarg ;;
1243 -target | --target | --targe | --targ | --tar | --ta | --t)
1244 ac_prev=target_alias ;;
1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246 target_alias=$ac_optarg ;;
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249 verbose=yes ;;
1251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
1254 -with-* | --with-*)
1255 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid package name: $ac_package" >&2
1259 { (exit 1); exit 1; }; }
1260 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1261 eval with_$ac_package=\$ac_optarg ;;
1263 -without-* | --without-*)
1264 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid package name: $ac_package" >&2
1268 { (exit 1); exit 1; }; }
1269 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1270 eval with_$ac_package=no ;;
1272 --x)
1273 # Obsolete; use --with-x.
1274 with_x=yes ;;
1276 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1277 | --x-incl | --x-inc | --x-in | --x-i)
1278 ac_prev=x_includes ;;
1279 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1280 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1281 x_includes=$ac_optarg ;;
1283 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1284 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1285 ac_prev=x_libraries ;;
1286 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1287 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1288 x_libraries=$ac_optarg ;;
1290 -*) { echo "$as_me: error: unrecognized option: $ac_option
1291 Try \`$0 --help' for more information." >&2
1292 { (exit 1); exit 1; }; }
1295 *=*)
1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1299 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1300 { (exit 1); exit 1; }; }
1301 eval $ac_envvar=\$ac_optarg
1302 export $ac_envvar ;;
1305 # FIXME: should be removed in autoconf 3.0.
1306 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1308 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1312 esac
1313 done
1315 if test -n "$ac_prev"; then
1316 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1317 { echo "$as_me: error: missing argument to $ac_option" >&2
1318 { (exit 1); exit 1; }; }
1321 # Be sure to have absolute directory names.
1322 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1327 eval ac_val=\$$ac_var
1328 case $ac_val in
1329 [\\/$]* | ?:[\\/]* ) continue;;
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331 esac
1332 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1333 { (exit 1); exit 1; }; }
1334 done
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357 test "$silent" = yes && exec 6>/dev/null
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363 { echo "$as_me: error: Working directory cannot be determined" >&2
1364 { (exit 1); exit 1; }; }
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 { echo "$as_me: error: pwd does not report name of working directory" >&2
1367 { (exit 1); exit 1; }; }
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir=`$as_dirname -- "$0" ||
1375 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$0" : 'X\(//\)[^/]' \| \
1377 X"$0" : 'X\(//\)$' \| \
1378 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1379 echo X"$0" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1388 /^X\(\/\/\)$/{
1389 s//\1/
1392 /^X\(\/\).*/{
1393 s//\1/
1396 s/.*/./; q'`
1397 srcdir=$ac_confdir
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 srcdir=..
1401 else
1402 ac_srcdir_defaulted=no
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1407 { (exit 1); exit 1; }; }
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1412 { (exit 1); exit 1; }; }
1413 pwd)`
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1421 case $srcdir in
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 esac
1424 for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 done
1432 # Report the --help message.
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1437 cat <<_ACEOF
1438 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1445 Defaults for the options are specified in brackets.
1447 Configuration:
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 [PREFIX]
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1469 For better control, use the options below.
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1491 _ACEOF
1493 cat <<\_ACEOF
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 _ACEOF
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive ) echo "Configuration of asterisk 1.4:";;
1504 esac
1505 cat <<\_ACEOF
1507 Optional Features:
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-dev-mode Turn on developer mode
1511 --disable-largefile omit support for large files
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1517 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1518 --with-curl=PATH use cURL files in PATH
1519 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1520 --with-curses=PATH use curses files in PATH
1521 --with-dahdi=PATH use DAHDI files in PATH
1522 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1523 PATH
1524 --with-gsm=PATH use GSM files in PATH , or 'internal'
1525 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1526 --with-imap=PATH use UW IMAP Toolkit files in PATH
1527 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1528 --with-kde=PATH use KDE files in PATH
1529 --with-ltdl=PATH use libtool files in PATH
1530 --with-misdn=PATH use mISDN User Library files in PATH
1531 --with-nbs=PATH use Network Broadcast Sound files in PATH
1532 --with-ncurses=PATH use ncurses files in PATH
1533 --with-netsnmp=PATH use Net-SNMP files in PATH
1534 --with-newt=PATH use newt files in PATH
1535 --with-odbc=PATH use unixODBC files in PATH
1536 --with-ogg=PATH use OGG files in PATH
1537 --with-osptk=PATH use OSP Toolkit files in PATH
1538 --with-oss=PATH use Open Sound System files in PATH
1539 --with-popt=PATH use popt files in PATH
1540 --with-postgres=PATH use PostgreSQL files in PATH
1541 --with-pri=PATH use ISDN PRI files in PATH
1542 --with-pwlib=PATH use PWlib files in PATH
1543 --with-h323=PATH use OpenH323 files in PATH
1544 --with-radius=PATH use Radius Client files in PATH
1545 --with-speex=PATH use Speex files in PATH
1546 --with-speexdsp=PATH use Speexdsp files in PATH
1547 --with-sqlite=PATH use SQLite files in PATH
1548 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1549 --with-ssl=PATH use OpenSSL files in PATH
1550 --with-tds=PATH use FreeTDS files in PATH
1551 --with-termcap=PATH use Termcap files in PATH
1552 --with-tinfo=PATH use Term Info files in PATH
1553 --with-tonezone=PATH use tonezone files in PATH
1554 --with-usb=PATH use usb files in PATH
1555 --with-vorbis=PATH use Vorbis files in PATH
1556 --with-vpb=PATH use Voicetronix API files in PATH
1557 --with-z=PATH use zlib files in PATH
1558 --with-zaptel=PATH use Zaptel files in PATH
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 CPP C preprocessor
1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
1571 CXXCPP C++ preprocessor
1573 Use these variables to override the choices made by `configure' or to help
1574 it to find libraries and programs with nonstandard names/locations.
1576 Report bugs to <www.asterisk.org>.
1577 _ACEOF
1578 ac_status=$?
1581 if test "$ac_init_help" = "recursive"; then
1582 # If there are subdirs, report their specific --help.
1583 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584 test -d "$ac_dir" || continue
1585 ac_builddir=.
1587 case "$ac_dir" in
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1591 # A ".." for each directory in $ac_dir_suffix.
1592 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 esac ;;
1597 esac
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1603 case $srcdir in
1604 .) # We are building in place.
1605 ac_srcdir=.
1606 ac_top_srcdir=$ac_top_builddir_sub
1607 ac_abs_top_srcdir=$ac_pwd ;;
1608 [\\/]* | ?:[\\/]* ) # Absolute name.
1609 ac_srcdir=$srcdir$ac_dir_suffix;
1610 ac_top_srcdir=$srcdir
1611 ac_abs_top_srcdir=$srcdir ;;
1612 *) # Relative name.
1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614 ac_top_srcdir=$ac_top_build_prefix$srcdir
1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 esac
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619 cd "$ac_dir" || { ac_status=$?; continue; }
1620 # Check for guested configure.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure" --help=recursive
1627 else
1628 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 fi || ac_status=$?
1630 cd "$ac_pwd" || { ac_status=$?; break; }
1631 done
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1636 cat <<\_ACEOF
1637 asterisk configure 1.4
1638 generated by GNU Autoconf 2.61
1640 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1641 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1645 "Asterisk"
1646 _ACEOF
1647 exit
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1653 It was created by asterisk $as_me 1.4, which was
1654 generated by GNU Autoconf 2.61. Invocation command line was
1656 $ $0 $@
1658 _ACEOF
1659 exec 5>>config.log
1661 cat <<_ASUNAME
1662 ## --------- ##
1663 ## Platform. ##
1664 ## --------- ##
1666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1675 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1676 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1678 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1679 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1680 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1681 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1683 _ASUNAME
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1688 IFS=$as_save_IFS
1689 test -z "$as_dir" && as_dir=.
1690 echo "PATH: $as_dir"
1691 done
1692 IFS=$as_save_IFS
1694 } >&5
1696 cat >&5 <<_ACEOF
1699 ## ----------- ##
1700 ## Core tests. ##
1701 ## ----------- ##
1703 _ACEOF
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1711 ac_configure_args=
1712 ac_configure_args0=
1713 ac_configure_args1=
1714 ac_must_keep_next=false
1715 for ac_pass in 1 2
1717 for ac_arg
1719 case $ac_arg in
1720 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722 | -silent | --silent | --silen | --sile | --sil)
1723 continue ;;
1724 *\'*)
1725 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1726 esac
1727 case $ac_pass in
1728 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731 if test $ac_must_keep_next = true; then
1732 ac_must_keep_next=false # Got value, back to normal.
1733 else
1734 case $ac_arg in
1735 *=* | --config-cache | -C | -disable-* | --disable-* \
1736 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738 | -with-* | --with-* | -without-* | --without-* | --x)
1739 case "$ac_configure_args0 " in
1740 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1741 esac
1743 -* ) ac_must_keep_next=true ;;
1744 esac
1746 ac_configure_args="$ac_configure_args '$ac_arg'"
1748 esac
1749 done
1750 done
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log. We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760 # Save into config.log some information that might help in debugging.
1762 echo
1764 cat <<\_ASBOX
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1768 _ASBOX
1769 echo
1770 # The following way of writing the cache mishandles newlines in values,
1772 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773 eval ac_val=\$$ac_var
1774 case $ac_val in #(
1775 *${as_nl}*)
1776 case $ac_var in #(
1777 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1779 esac
1780 case $ac_var in #(
1781 _ | IFS | as_nl) ;; #(
1782 *) $as_unset $ac_var ;;
1783 esac ;;
1784 esac
1785 done
1786 (set) 2>&1 |
1787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788 *${as_nl}ac_space=\ *)
1789 sed -n \
1790 "s/'\''/'\''\\\\'\'''\''/g;
1791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1792 ;; #(
1794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796 esac |
1797 sort
1799 echo
1801 cat <<\_ASBOX
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1805 _ASBOX
1806 echo
1807 for ac_var in $ac_subst_vars
1809 eval ac_val=\$$ac_var
1810 case $ac_val in
1811 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812 esac
1813 echo "$ac_var='\''$ac_val'\''"
1814 done | sort
1815 echo
1817 if test -n "$ac_subst_files"; then
1818 cat <<\_ASBOX
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1822 _ASBOX
1823 echo
1824 for ac_var in $ac_subst_files
1826 eval ac_val=\$$ac_var
1827 case $ac_val in
1828 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 esac
1830 echo "$ac_var='\''$ac_val'\''"
1831 done | sort
1832 echo
1835 if test -s confdefs.h; then
1836 cat <<\_ASBOX
1837 ## ----------- ##
1838 ## confdefs.h. ##
1839 ## ----------- ##
1840 _ASBOX
1841 echo
1842 cat confdefs.h
1843 echo
1845 test "$ac_signal" != 0 &&
1846 echo "$as_me: caught signal $ac_signal"
1847 echo "$as_me: exit $exit_status"
1848 } >&5
1849 rm -f core *.core core.conftest.* &&
1850 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1851 exit $exit_status
1853 for ac_signal in 1 2 13 15; do
1854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1855 done
1856 ac_signal=0
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1861 # Predefined preprocessor variables.
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1865 _ACEOF
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1870 _ACEOF
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1875 _ACEOF
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1880 _ACEOF
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1885 _ACEOF
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891 set x "$CONFIG_SITE"
1892 elif test "x$prefix" != xNONE; then
1893 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1894 else
1895 set x "$ac_default_prefix/share/config.site" \
1896 "$ac_default_prefix/etc/config.site"
1898 shift
1899 for ac_site_file
1901 if test -r "$ac_site_file"; then
1902 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 echo "$as_me: loading site script $ac_site_file" >&6;}
1904 sed 's/^/| /' "$ac_site_file" >&5
1905 . "$ac_site_file"
1907 done
1909 if test -r "$cache_file"; then
1910 # Some versions of bash will fail to source /dev/null (special
1911 # files actually), so we avoid doing that.
1912 if test -f "$cache_file"; then
1913 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 echo "$as_me: loading cache $cache_file" >&6;}
1915 case $cache_file in
1916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917 *) . "./$cache_file";;
1918 esac
1920 else
1921 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 echo "$as_me: creating cache $cache_file" >&6;}
1923 >$cache_file
1926 ac_header_list="$ac_header_list utime.h"
1927 # Check that the precious variables saved in the cache have kept the same
1928 # value.
1929 ac_cache_corrupted=false
1930 for ac_var in $ac_precious_vars; do
1931 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1932 eval ac_new_set=\$ac_env_${ac_var}_set
1933 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1934 eval ac_new_val=\$ac_env_${ac_var}_value
1935 case $ac_old_set,$ac_new_set in
1936 set,)
1937 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1938 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1940 ,set)
1941 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1942 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1943 ac_cache_corrupted=: ;;
1944 ,);;
1946 if test "x$ac_old_val" != "x$ac_new_val"; then
1947 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1950 echo "$as_me: former value: $ac_old_val" >&2;}
1951 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1952 echo "$as_me: current value: $ac_new_val" >&2;}
1953 ac_cache_corrupted=:
1954 fi;;
1955 esac
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1958 case $ac_new_val in
1959 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1961 esac
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965 esac
1967 done
1968 if $ac_cache_corrupted; then
1969 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1970 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1971 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1973 { (exit 1); exit 1; }; }
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 # cross-compile macros
2009 ac_aux_dir=
2010 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2011 if test -f "$ac_dir/install-sh"; then
2012 ac_aux_dir=$ac_dir
2013 ac_install_sh="$ac_aux_dir/install-sh -c"
2014 break
2015 elif test -f "$ac_dir/install.sh"; then
2016 ac_aux_dir=$ac_dir
2017 ac_install_sh="$ac_aux_dir/install.sh -c"
2018 break
2019 elif test -f "$ac_dir/shtool"; then
2020 ac_aux_dir=$ac_dir
2021 ac_install_sh="$ac_aux_dir/shtool install -c"
2022 break
2024 done
2025 if test -z "$ac_aux_dir"; then
2026 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2027 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2028 { (exit 1); exit 1; }; }
2031 # These three variables are undocumented and unsupported,
2032 # and are intended to be withdrawn in a future Autoconf release.
2033 # They can cause serious problems if a builder's source tree is in a directory
2034 # whose full name contains unusual characters.
2035 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2036 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2037 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2040 # Make sure we can run config.sub.
2041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2042 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2043 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2044 { (exit 1); exit 1; }; }
2046 { echo "$as_me:$LINENO: checking build system type" >&5
2047 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2048 if test "${ac_cv_build+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 ac_build_alias=$build_alias
2052 test "x$ac_build_alias" = x &&
2053 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2054 test "x$ac_build_alias" = x &&
2055 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2056 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2057 { (exit 1); exit 1; }; }
2058 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2059 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2060 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2061 { (exit 1); exit 1; }; }
2064 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2065 echo "${ECHO_T}$ac_cv_build" >&6; }
2066 case $ac_cv_build in
2067 *-*-*) ;;
2068 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2069 echo "$as_me: error: invalid value of canonical build" >&2;}
2070 { (exit 1); exit 1; }; };;
2071 esac
2072 build=$ac_cv_build
2073 ac_save_IFS=$IFS; IFS='-'
2074 set x $ac_cv_build
2075 shift
2076 build_cpu=$1
2077 build_vendor=$2
2078 shift; shift
2079 # Remember, the first character of IFS is used to create $*,
2080 # except with old shells:
2081 build_os=$*
2082 IFS=$ac_save_IFS
2083 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2086 { echo "$as_me:$LINENO: checking host system type" >&5
2087 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2088 if test "${ac_cv_host+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091 if test "x$host_alias" = x; then
2092 ac_cv_host=$ac_cv_build
2093 else
2094 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2095 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2096 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2097 { (exit 1); exit 1; }; }
2101 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2102 echo "${ECHO_T}$ac_cv_host" >&6; }
2103 case $ac_cv_host in
2104 *-*-*) ;;
2105 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2106 echo "$as_me: error: invalid value of canonical host" >&2;}
2107 { (exit 1); exit 1; }; };;
2108 esac
2109 host=$ac_cv_host
2110 ac_save_IFS=$IFS; IFS='-'
2111 set x $ac_cv_host
2112 shift
2113 host_cpu=$1
2114 host_vendor=$2
2115 shift; shift
2116 # Remember, the first character of IFS is used to create $*,
2117 # except with old shells:
2118 host_os=$*
2119 IFS=$ac_save_IFS
2120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2124 # check existence of the package
2127 # specify output header file
2128 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2135 cat >>confdefs.h <<\_ACEOF
2136 #define _GNU_SOURCE 1
2137 _ACEOF
2140 ac_ext=c
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2167 done
2168 done
2169 IFS=$as_save_IFS
2173 CC=$ac_cv_prog_CC
2174 if test -n "$CC"; then
2175 { echo "$as_me:$LINENO: result: $CC" >&5
2176 echo "${ECHO_T}$CC" >&6; }
2177 else
2178 { echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6; }
2184 if test -z "$ac_cv_prog_CC"; then
2185 ac_ct_CC=$CC
2186 # Extract the first word of "gcc", so it can be a program name with args.
2187 set dummy gcc; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test -n "$ac_ct_CC"; then
2194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_ac_ct_CC="gcc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2207 done
2208 done
2209 IFS=$as_save_IFS
2213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2214 if test -n "$ac_ct_CC"; then
2215 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2216 echo "${ECHO_T}$ac_ct_CC" >&6; }
2217 else
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2222 if test "x$ac_ct_CC" = x; then
2223 CC=""
2224 else
2225 case $cross_compiling:$ac_tool_warned in
2226 yes:)
2227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2228 whose name does not start with the host triplet. If you think this
2229 configuration is useful to you, please write to autoconf@gnu.org." >&5
2230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2231 whose name does not start with the host triplet. If you think this
2232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2233 ac_tool_warned=yes ;;
2234 esac
2235 CC=$ac_ct_CC
2237 else
2238 CC="$ac_cv_prog_CC"
2241 if test -z "$CC"; then
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}cc; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 ac_cv_prog_CC="${ac_tool_prefix}cc"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2264 done
2265 done
2266 IFS=$as_save_IFS
2270 CC=$ac_cv_prog_CC
2271 if test -n "$CC"; then
2272 { echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6; }
2274 else
2275 { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2282 if test -z "$CC"; then
2283 # Extract the first word of "cc", so it can be a program name with args.
2284 set dummy cc; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 ac_prog_rejected=no
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2302 ac_prog_rejected=yes
2303 continue
2305 ac_cv_prog_CC="cc"
2306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 break 2
2309 done
2310 done
2311 IFS=$as_save_IFS
2313 if test $ac_prog_rejected = yes; then
2314 # We found a bogon in the path, so make sure we never use it.
2315 set dummy $ac_cv_prog_CC
2316 shift
2317 if test $# != 0; then
2318 # We chose a different compiler from the bogus one.
2319 # However, it has the same basename, so the bogon will be chosen
2320 # first if we set CC to just the basename; use the full file name.
2321 shift
2322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2327 CC=$ac_cv_prog_CC
2328 if test -n "$CC"; then
2329 { echo "$as_me:$LINENO: result: $CC" >&5
2330 echo "${ECHO_T}$CC" >&6; }
2331 else
2332 { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2338 if test -z "$CC"; then
2339 if test -n "$ac_tool_prefix"; then
2340 for ac_prog in cl.exe
2342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_CC+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 break 2
2363 done
2364 done
2365 IFS=$as_save_IFS
2369 CC=$ac_cv_prog_CC
2370 if test -n "$CC"; then
2371 { echo "$as_me:$LINENO: result: $CC" >&5
2372 echo "${ECHO_T}$CC" >&6; }
2373 else
2374 { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2379 test -n "$CC" && break
2380 done
2382 if test -z "$CC"; then
2383 ac_ct_CC=$CC
2384 for ac_prog in cl.exe
2386 # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 if test -n "$ac_ct_CC"; then
2394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_ac_ct_CC="$ac_prog"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 break 2
2407 done
2408 done
2409 IFS=$as_save_IFS
2413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2414 if test -n "$ac_ct_CC"; then
2415 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2416 echo "${ECHO_T}$ac_ct_CC" >&6; }
2417 else
2418 { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2423 test -n "$ac_ct_CC" && break
2424 done
2426 if test "x$ac_ct_CC" = x; then
2427 CC=""
2428 else
2429 case $cross_compiling:$ac_tool_warned in
2430 yes:)
2431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&5
2434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet. If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2437 ac_tool_warned=yes ;;
2438 esac
2439 CC=$ac_ct_CC
2446 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2447 See \`config.log' for more details." >&5
2448 echo "$as_me: error: no acceptable C compiler found in \$PATH
2449 See \`config.log' for more details." >&2;}
2450 { (exit 1); exit 1; }; }
2452 # Provide some information about the compiler.
2453 echo "$as_me:$LINENO: checking for C compiler version" >&5
2454 ac_compiler=`set X $ac_compile; echo $2`
2455 { (ac_try="$ac_compiler --version >&5"
2456 case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compiler --version >&5") 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }
2465 { (ac_try="$ac_compiler -v >&5"
2466 case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469 esac
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_compiler -v >&5") 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }
2475 { (ac_try="$ac_compiler -V >&5"
2476 case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479 esac
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_compiler -V >&5") 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }
2486 cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h. */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2494 main ()
2498 return 0;
2500 _ACEOF
2501 ac_clean_files_save=$ac_clean_files
2502 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2503 # Try to create an executable without -o first, disregard a.out.
2504 # It will help us diagnose broken compilers, and finding out an intuition
2505 # of exeext.
2506 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2507 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2508 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2510 # List of possible output files, starting from the most likely.
2511 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2512 # only as a last resort. b.out is created by i960 compilers.
2513 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2515 # The IRIX 6 linker writes into existing files which may not be
2516 # executable, retaining their permissions. Remove them first so a
2517 # subsequent execution test works.
2518 ac_rmfiles=
2519 for ac_file in $ac_files
2521 case $ac_file in
2522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2523 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2524 esac
2525 done
2526 rm -f $ac_rmfiles
2528 if { (ac_try="$ac_link_default"
2529 case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532 esac
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_link_default") 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; then
2538 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2539 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2540 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2541 # so that the user can short-circuit this test for compilers unknown to
2542 # Autoconf.
2543 for ac_file in $ac_files ''
2545 test -f "$ac_file" || continue
2546 case $ac_file in
2547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2549 [ab].out )
2550 # We found the default executable, but exeext='' is most
2551 # certainly right.
2552 break;;
2553 *.* )
2554 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2555 then :; else
2556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2558 # We set ac_cv_exeext here because the later test for it is not
2559 # safe: cross compilers may not add the suffix if given an `-o'
2560 # argument, so we may need to know it at that point already.
2561 # Even if this section looks crufty: it has the advantage of
2562 # actually working.
2563 break;;
2565 break;;
2566 esac
2567 done
2568 test "$ac_cv_exeext" = no && ac_cv_exeext=
2570 else
2571 ac_file=''
2574 { echo "$as_me:$LINENO: result: $ac_file" >&5
2575 echo "${ECHO_T}$ac_file" >&6; }
2576 if test -z "$ac_file"; then
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2580 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: C compiler cannot create executables
2583 See \`config.log' for more details." >&2;}
2584 { (exit 77); exit 77; }; }
2587 ac_exeext=$ac_cv_exeext
2589 # Check that the compiler produces executables we can run. If not, either
2590 # the compiler is broken, or we cross compile.
2591 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2592 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2594 # If not cross compiling, check that we can run a simple program.
2595 if test "$cross_compiling" != yes; then
2596 if { ac_try='./$ac_file'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 cross_compiling=no
2607 else
2608 if test "$cross_compiling" = maybe; then
2609 cross_compiling=yes
2610 else
2611 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2612 If you meant to cross compile, use \`--host'.
2613 See \`config.log' for more details." >&5
2614 echo "$as_me: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details." >&2;}
2617 { (exit 1); exit 1; }; }
2621 { echo "$as_me:$LINENO: result: yes" >&5
2622 echo "${ECHO_T}yes" >&6; }
2624 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2625 ac_clean_files=$ac_clean_files_save
2626 # Check that the compiler produces executables we can run. If not, either
2627 # the compiler is broken, or we cross compile.
2628 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2629 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2630 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2631 echo "${ECHO_T}$cross_compiling" >&6; }
2633 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2634 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2635 if { (ac_try="$ac_link"
2636 case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2639 esac
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_link") 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; then
2645 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2646 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2647 # work properly (i.e., refer to `conftest.exe'), while it won't with
2648 # `rm'.
2649 for ac_file in conftest.exe conftest conftest.*; do
2650 test -f "$ac_file" || continue
2651 case $ac_file in
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2653 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2654 break;;
2655 * ) break;;
2656 esac
2657 done
2658 else
2659 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2666 rm -f conftest$ac_cv_exeext
2667 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2668 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2670 rm -f conftest.$ac_ext
2671 EXEEXT=$ac_cv_exeext
2672 ac_exeext=$EXEEXT
2673 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2674 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2675 if test "${ac_cv_objext+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h. */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2686 main ()
2690 return 0;
2692 _ACEOF
2693 rm -f conftest.o conftest.obj
2694 if { (ac_try="$ac_compile"
2695 case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 for ac_file in conftest.o conftest.obj conftest.*; do
2705 test -f "$ac_file" || continue;
2706 case $ac_file in
2707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2709 break;;
2710 esac
2711 done
2712 else
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2716 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details." >&5
2718 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2719 See \`config.log' for more details." >&2;}
2720 { (exit 1); exit 1; }; }
2723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2725 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2726 echo "${ECHO_T}$ac_cv_objext" >&6; }
2727 OBJEXT=$ac_cv_objext
2728 ac_objext=$OBJEXT
2729 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2730 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2731 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734 cat >conftest.$ac_ext <<_ACEOF
2735 /* confdefs.h. */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2742 main ()
2744 #ifndef __GNUC__
2745 choke me
2746 #endif
2749 return 0;
2751 _ACEOF
2752 rm -f conftest.$ac_objext
2753 if { (ac_try="$ac_compile"
2754 case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compile") 2>conftest.er1
2760 ac_status=$?
2761 grep -v '^ *+' conftest.er1 >conftest.err
2762 rm -f conftest.er1
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } && {
2766 test -z "$ac_c_werror_flag" ||
2767 test ! -s conftest.err
2768 } && test -s conftest.$ac_objext; then
2769 ac_compiler_gnu=yes
2770 else
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2774 ac_compiler_gnu=no
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2781 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2782 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2783 GCC=`test $ac_compiler_gnu = yes && echo yes`
2784 ac_test_CFLAGS=${CFLAGS+set}
2785 ac_save_CFLAGS=$CFLAGS
2786 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2787 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_cc_g+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2790 else
2791 ac_save_c_werror_flag=$ac_c_werror_flag
2792 ac_c_werror_flag=yes
2793 ac_cv_prog_cc_g=no
2794 CFLAGS="-g"
2795 cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h. */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2803 main ()
2807 return 0;
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (ac_try="$ac_compile"
2812 case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compile") 2>conftest.er1
2818 ac_status=$?
2819 grep -v '^ *+' conftest.er1 >conftest.err
2820 rm -f conftest.er1
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } && {
2824 test -z "$ac_c_werror_flag" ||
2825 test ! -s conftest.err
2826 } && test -s conftest.$ac_objext; then
2827 ac_cv_prog_cc_g=yes
2828 else
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 CFLAGS=""
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2841 main ()
2845 return 0;
2847 _ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (ac_try="$ac_compile"
2850 case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_compile") 2>conftest.er1
2856 ac_status=$?
2857 grep -v '^ *+' conftest.er1 >conftest.err
2858 rm -f conftest.er1
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest.$ac_objext; then
2866 else
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 ac_c_werror_flag=$ac_save_c_werror_flag
2871 CFLAGS="-g"
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2880 main ()
2884 return 0;
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (ac_try="$ac_compile"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compile") 2>conftest.er1
2895 ac_status=$?
2896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } && {
2901 test -z "$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest.$ac_objext; then
2904 ac_cv_prog_cc_g=yes
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919 ac_c_werror_flag=$ac_save_c_werror_flag
2921 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2922 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2923 if test "$ac_test_CFLAGS" = set; then
2924 CFLAGS=$ac_save_CFLAGS
2925 elif test $ac_cv_prog_cc_g = yes; then
2926 if test "$GCC" = yes; then
2927 CFLAGS="-g -O2"
2928 else
2929 CFLAGS="-g"
2931 else
2932 if test "$GCC" = yes; then
2933 CFLAGS="-O2"
2934 else
2935 CFLAGS=
2938 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2939 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_cc_c89+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943 ac_cv_prog_cc_c89=no
2944 ac_save_CC=$CC
2945 cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h. */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2951 #include <stdarg.h>
2952 #include <stdio.h>
2953 #include <sys/types.h>
2954 #include <sys/stat.h>
2955 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2956 struct buf { int x; };
2957 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2958 static char *e (p, i)
2959 char **p;
2960 int i;
2962 return p[i];
2964 static char *f (char * (*g) (char **, int), char **p, ...)
2966 char *s;
2967 va_list v;
2968 va_start (v,p);
2969 s = g (p, va_arg (v,int));
2970 va_end (v);
2971 return s;
2974 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2975 function prototypes and stuff, but not '\xHH' hex character constants.
2976 These don't provoke an error unfortunately, instead are silently treated
2977 as 'x'. The following induces an error, until -std is added to get
2978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2979 array size at least. It's necessary to write '\x00'==0 to get something
2980 that's true only with -std. */
2981 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2983 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2984 inside strings and character constants. */
2985 #define FOO(x) 'x'
2986 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2988 int test (int i, double x);
2989 struct s1 {int (*f) (int a);};
2990 struct s2 {int (*f) (double a);};
2991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2992 int argc;
2993 char **argv;
2995 main ()
2997 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2999 return 0;
3001 _ACEOF
3002 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005 CC="$ac_save_CC $ac_arg"
3006 rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3008 case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } && {
3020 test -z "$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3022 } && test -s conftest.$ac_objext; then
3023 ac_cv_prog_cc_c89=$ac_arg
3024 else
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3031 rm -f core conftest.err conftest.$ac_objext
3032 test "x$ac_cv_prog_cc_c89" != "xno" && break
3033 done
3034 rm -f conftest.$ac_ext
3035 CC=$ac_save_CC
3038 # AC_CACHE_VAL
3039 case "x$ac_cv_prog_cc_c89" in
3041 { echo "$as_me:$LINENO: result: none needed" >&5
3042 echo "${ECHO_T}none needed" >&6; } ;;
3043 xno)
3044 { echo "$as_me:$LINENO: result: unsupported" >&5
3045 echo "${ECHO_T}unsupported" >&6; } ;;
3047 CC="$CC $ac_cv_prog_cc_c89"
3048 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3049 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3050 esac
3053 ac_ext=c
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 ac_ext=c
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3067 # On Suns, sometimes $CPP names a directory.
3068 if test -n "$CPP" && test -d "$CPP"; then
3069 CPP=
3071 if test -z "$CPP"; then
3072 if test "${ac_cv_prog_CPP+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075 # Double quotes because CPP needs to be expanded
3076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3078 ac_preproc_ok=false
3079 for ac_c_preproc_warn_flag in '' yes
3081 # Use a header file that comes with gcc, so configuring glibc
3082 # with a fresh cross-compiler works.
3083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3084 # <limits.h> exists even on freestanding compilers.
3085 # On the NeXT, cc -E runs the code through the compiler's parser,
3086 # not just through cpp. "Syntax error" is here to catch this case.
3087 cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h. */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3093 #ifdef __STDC__
3094 # include <limits.h>
3095 #else
3096 # include <assert.h>
3097 #endif
3098 Syntax error
3099 _ACEOF
3100 if { (ac_try="$ac_cpp conftest.$ac_ext"
3101 case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } >/dev/null && {
3113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3114 test ! -s conftest.err
3115 }; then
3117 else
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 # Broken: fails on valid input.
3122 continue
3125 rm -f conftest.err conftest.$ac_ext
3127 # OK, works on sane cases. Now check whether nonexistent headers
3128 # can be detected and how.
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <ac_nonexistent.h>
3136 _ACEOF
3137 if { (ac_try="$ac_cpp conftest.$ac_ext"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } >/dev/null && {
3150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3151 test ! -s conftest.err
3152 }; then
3153 # Broken: success on invalid input.
3154 continue
3155 else
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 # Passes both tests.
3160 ac_preproc_ok=:
3161 break
3164 rm -f conftest.err conftest.$ac_ext
3166 done
3167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3168 rm -f conftest.err conftest.$ac_ext
3169 if $ac_preproc_ok; then
3170 break
3173 done
3174 ac_cv_prog_CPP=$CPP
3177 CPP=$ac_cv_prog_CPP
3178 else
3179 ac_cv_prog_CPP=$CPP
3181 { echo "$as_me:$LINENO: result: $CPP" >&5
3182 echo "${ECHO_T}$CPP" >&6; }
3183 ac_preproc_ok=false
3184 for ac_c_preproc_warn_flag in '' yes
3186 # Use a header file that comes with gcc, so configuring glibc
3187 # with a fresh cross-compiler works.
3188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3189 # <limits.h> exists even on freestanding compilers.
3190 # On the NeXT, cc -E runs the code through the compiler's parser,
3191 # not just through cpp. "Syntax error" is here to catch this case.
3192 cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h. */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3198 #ifdef __STDC__
3199 # include <limits.h>
3200 #else
3201 # include <assert.h>
3202 #endif
3203 Syntax error
3204 _ACEOF
3205 if { (ac_try="$ac_cpp conftest.$ac_ext"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3212 ac_status=$?
3213 grep -v '^ *+' conftest.er1 >conftest.err
3214 rm -f conftest.er1
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } >/dev/null && {
3218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3219 test ! -s conftest.err
3220 }; then
3222 else
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 # Broken: fails on valid input.
3227 continue
3230 rm -f conftest.err conftest.$ac_ext
3232 # OK, works on sane cases. Now check whether nonexistent headers
3233 # can be detected and how.
3234 cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h. */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3240 #include <ac_nonexistent.h>
3241 _ACEOF
3242 if { (ac_try="$ac_cpp conftest.$ac_ext"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3249 ac_status=$?
3250 grep -v '^ *+' conftest.er1 >conftest.err
3251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } >/dev/null && {
3255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3256 test ! -s conftest.err
3257 }; then
3258 # Broken: success on invalid input.
3259 continue
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 # Passes both tests.
3265 ac_preproc_ok=:
3266 break
3269 rm -f conftest.err conftest.$ac_ext
3271 done
3272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3273 rm -f conftest.err conftest.$ac_ext
3274 if $ac_preproc_ok; then
3276 else
3277 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3278 See \`config.log' for more details." >&5
3279 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3280 See \`config.log' for more details." >&2;}
3281 { (exit 1); exit 1; }; }
3284 ac_ext=c
3285 ac_cpp='$CPP $CPPFLAGS'
3286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3292 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3293 if test "${ac_cv_path_GREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 # Extract the first word of "grep ggrep" to use in msg output
3297 if test -z "$GREP"; then
3298 set dummy grep ggrep; ac_prog_name=$2
3299 if test "${ac_cv_path_GREP+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302 ac_path_GREP_found=false
3303 # Loop through the user's path and test for each of PROGNAME-LIST
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_prog in grep ggrep; do
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3312 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3313 # Check for GNU ac_path_GREP and select it if it is found.
3314 # Check for GNU $ac_path_GREP
3315 case `"$ac_path_GREP" --version 2>&1` in
3316 *GNU*)
3317 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3319 ac_count=0
3320 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3321 while :
3323 cat "conftest.in" "conftest.in" >"conftest.tmp"
3324 mv "conftest.tmp" "conftest.in"
3325 cp "conftest.in" "conftest.nl"
3326 echo 'GREP' >> "conftest.nl"
3327 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3329 ac_count=`expr $ac_count + 1`
3330 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3331 # Best one so far, save it but keep looking for a better one
3332 ac_cv_path_GREP="$ac_path_GREP"
3333 ac_path_GREP_max=$ac_count
3335 # 10*(2^10) chars as input seems more than enough
3336 test $ac_count -gt 10 && break
3337 done
3338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3339 esac
3342 $ac_path_GREP_found && break 3
3343 done
3344 done
3346 done
3347 IFS=$as_save_IFS
3352 GREP="$ac_cv_path_GREP"
3353 if test -z "$GREP"; then
3354 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3355 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3356 { (exit 1); exit 1; }; }
3359 else
3360 ac_cv_path_GREP=$GREP
3365 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3366 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3367 GREP="$ac_cv_path_GREP"
3370 { echo "$as_me:$LINENO: checking for egrep" >&5
3371 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3372 if test "${ac_cv_path_EGREP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3376 then ac_cv_path_EGREP="$GREP -E"
3377 else
3378 # Extract the first word of "egrep" to use in msg output
3379 if test -z "$EGREP"; then
3380 set dummy egrep; ac_prog_name=$2
3381 if test "${ac_cv_path_EGREP+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 ac_path_EGREP_found=false
3385 # Loop through the user's path and test for each of PROGNAME-LIST
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_prog in egrep; do
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3394 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3395 # Check for GNU ac_path_EGREP and select it if it is found.
3396 # Check for GNU $ac_path_EGREP
3397 case `"$ac_path_EGREP" --version 2>&1` in
3398 *GNU*)
3399 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3401 ac_count=0
3402 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3403 while :
3405 cat "conftest.in" "conftest.in" >"conftest.tmp"
3406 mv "conftest.tmp" "conftest.in"
3407 cp "conftest.in" "conftest.nl"
3408 echo 'EGREP' >> "conftest.nl"
3409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3411 ac_count=`expr $ac_count + 1`
3412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3413 # Best one so far, save it but keep looking for a better one
3414 ac_cv_path_EGREP="$ac_path_EGREP"
3415 ac_path_EGREP_max=$ac_count
3417 # 10*(2^10) chars as input seems more than enough
3418 test $ac_count -gt 10 && break
3419 done
3420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3421 esac
3424 $ac_path_EGREP_found && break 3
3425 done
3426 done
3428 done
3429 IFS=$as_save_IFS
3434 EGREP="$ac_cv_path_EGREP"
3435 if test -z "$EGREP"; then
3436 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3437 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3438 { (exit 1); exit 1; }; }
3441 else
3442 ac_cv_path_EGREP=$EGREP
3448 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3449 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3450 EGREP="$ac_cv_path_EGREP"
3454 { echo "$as_me:$LINENO: checking for AIX" >&5
3455 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3456 cat >conftest.$ac_ext <<_ACEOF
3457 /* confdefs.h. */
3458 _ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3462 #ifdef _AIX
3464 #endif
3466 _ACEOF
3467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3468 $EGREP "yes" >/dev/null 2>&1; then
3469 { echo "$as_me:$LINENO: result: yes" >&5
3470 echo "${ECHO_T}yes" >&6; }
3471 cat >>confdefs.h <<\_ACEOF
3472 #define _ALL_SOURCE 1
3473 _ACEOF
3475 else
3476 { echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6; }
3479 rm -f conftest*
3482 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3483 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3484 if test "${ac_cv_header_stdc+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h. */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3493 #include <stdlib.h>
3494 #include <stdarg.h>
3495 #include <string.h>
3496 #include <float.h>
3499 main ()
3503 return 0;
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (ac_try="$ac_compile"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_compile") 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } && {
3520 test -z "$ac_c_werror_flag" ||
3521 test ! -s conftest.err
3522 } && test -s conftest.$ac_objext; then
3523 ac_cv_header_stdc=yes
3524 else
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 ac_cv_header_stdc=no
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 if test $ac_cv_header_stdc = yes; then
3534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3535 cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h. */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 #include <string.h>
3543 _ACEOF
3544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3545 $EGREP "memchr" >/dev/null 2>&1; then
3547 else
3548 ac_cv_header_stdc=no
3550 rm -f conftest*
3554 if test $ac_cv_header_stdc = yes; then
3555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3556 cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h. */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3562 #include <stdlib.h>
3564 _ACEOF
3565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3566 $EGREP "free" >/dev/null 2>&1; then
3568 else
3569 ac_cv_header_stdc=no
3571 rm -f conftest*
3575 if test $ac_cv_header_stdc = yes; then
3576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3577 if test "$cross_compiling" = yes; then
3579 else
3580 cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h. */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 #include <ctype.h>
3587 #include <stdlib.h>
3588 #if ((' ' & 0x0FF) == 0x020)
3589 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3590 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3591 #else
3592 # define ISLOWER(c) \
3593 (('a' <= (c) && (c) <= 'i') \
3594 || ('j' <= (c) && (c) <= 'r') \
3595 || ('s' <= (c) && (c) <= 'z'))
3596 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3597 #endif
3599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3601 main ()
3603 int i;
3604 for (i = 0; i < 256; i++)
3605 if (XOR (islower (i), ISLOWER (i))
3606 || toupper (i) != TOUPPER (i))
3607 return 2;
3608 return 0;
3610 _ACEOF
3611 rm -f conftest$ac_exeext
3612 if { (ac_try="$ac_link"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_link") 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3622 { (case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_try") 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; }; then
3632 else
3633 echo "$as_me: program exited with status $ac_status" >&5
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3637 ( exit $ac_status )
3638 ac_cv_header_stdc=no
3640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3646 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3647 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3648 if test $ac_cv_header_stdc = yes; then
3650 cat >>confdefs.h <<\_ACEOF
3651 #define STDC_HEADERS 1
3652 _ACEOF
3656 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3666 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3667 inttypes.h stdint.h unistd.h
3669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h. */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681 $ac_includes_default
3683 #include <$ac_header>
3684 _ACEOF
3685 rm -f conftest.$ac_objext
3686 if { (ac_try="$ac_compile"
3687 case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690 esac
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_compile") 2>conftest.er1
3693 ac_status=$?
3694 grep -v '^ *+' conftest.er1 >conftest.err
3695 rm -f conftest.er1
3696 cat conftest.err >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } && {
3699 test -z "$ac_c_werror_flag" ||
3700 test ! -s conftest.err
3701 } && test -s conftest.$ac_objext; then
3702 eval "$as_ac_Header=yes"
3703 else
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 eval "$as_ac_Header=no"
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_res=`eval echo '${'$as_ac_Header'}'`
3713 { echo "$as_me:$LINENO: result: $ac_res" >&5
3714 echo "${ECHO_T}$ac_res" >&6; }
3715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3716 cat >>confdefs.h <<_ACEOF
3717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3718 _ACEOF
3722 done
3725 if test "${ac_cv_header_minix_config_h+set}" = set; then
3726 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3727 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3728 if test "${ac_cv_header_minix_config_h+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3732 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3733 else
3734 # Is the header compilable?
3735 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3736 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3737 cat >conftest.$ac_ext <<_ACEOF
3738 /* confdefs.h. */
3739 _ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 $ac_includes_default
3744 #include <minix/config.h>
3745 _ACEOF
3746 rm -f conftest.$ac_objext
3747 if { (ac_try="$ac_compile"
3748 case "(($ac_try" in
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3751 esac
3752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3753 (eval "$ac_compile") 2>conftest.er1
3754 ac_status=$?
3755 grep -v '^ *+' conftest.er1 >conftest.err
3756 rm -f conftest.er1
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } && {
3760 test -z "$ac_c_werror_flag" ||
3761 test ! -s conftest.err
3762 } && test -s conftest.$ac_objext; then
3763 ac_header_compiler=yes
3764 else
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3768 ac_header_compiler=no
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3773 echo "${ECHO_T}$ac_header_compiler" >&6; }
3775 # Is the header present?
3776 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3777 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 #include <minix/config.h>
3785 _ACEOF
3786 if { (ac_try="$ac_cpp conftest.$ac_ext"
3787 case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790 esac
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } >/dev/null && {
3799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3801 }; then
3802 ac_header_preproc=yes
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 ac_header_preproc=no
3810 rm -f conftest.err conftest.$ac_ext
3811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3812 echo "${ECHO_T}$ac_header_preproc" >&6; }
3814 # So? What about this header?
3815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3816 yes:no: )
3817 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3818 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3819 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3820 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3821 ac_header_preproc=yes
3823 no:yes:* )
3824 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3825 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3827 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3829 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3830 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3831 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3832 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3833 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3834 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3835 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3836 ( cat <<\_ASBOX
3837 ## ------------------------------- ##
3838 ## Report this to www.asterisk.org ##
3839 ## ------------------------------- ##
3840 _ASBOX
3841 ) | sed "s/^/$as_me: WARNING: /" >&2
3843 esac
3844 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3845 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3846 if test "${ac_cv_header_minix_config_h+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 ac_cv_header_minix_config_h=$ac_header_preproc
3851 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3852 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3855 if test $ac_cv_header_minix_config_h = yes; then
3856 MINIX=yes
3857 else
3858 MINIX=
3862 if test "$MINIX" = yes; then
3864 cat >>confdefs.h <<\_ACEOF
3865 #define _POSIX_SOURCE 1
3866 _ACEOF
3869 cat >>confdefs.h <<\_ACEOF
3870 #define _POSIX_1_SOURCE 2
3871 _ACEOF
3874 cat >>confdefs.h <<\_ACEOF
3875 #define _MINIX 1
3876 _ACEOF
3890 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3891 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3892 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h. */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3902 # define __EXTENSIONS__ 1
3903 $ac_includes_default
3905 main ()
3909 return 0;
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (ac_try="$ac_compile"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3929 ac_cv_safe_to_define___extensions__=yes
3930 else
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 ac_cv_safe_to_define___extensions__=no
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3940 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3941 test $ac_cv_safe_to_define___extensions__ = yes &&
3942 cat >>confdefs.h <<\_ACEOF
3943 #define __EXTENSIONS__ 1
3944 _ACEOF
3946 cat >>confdefs.h <<\_ACEOF
3947 #define _POSIX_PTHREAD_SEMANTICS 1
3948 _ACEOF
3950 cat >>confdefs.h <<\_ACEOF
3951 #define _TANDEM_SOURCE 1
3952 _ACEOF
3954 # note- does not work on FreeBSD
3956 case "${host_os}" in
3957 freebsd*)
3958 ac_default_prefix=/usr/local
3959 CPPFLAGS=-I/usr/local/include
3960 LDFLAGS=-L/usr/local/lib
3963 ac_default_prefix=/usr
3964 if test ${prefix} = '/usr'; then
3965 if test ${sysconfdir} = '${prefix}/etc'; then
3966 sysconfdir=/etc
3968 if test ${mandir} = '${prefix}/man'; then
3969 mandir=/usr/share/man
3973 esac
3975 if test ${localstatedir} = '${prefix}/var'; then
3976 localstatedir=/var
3979 BUILD_PLATFORM=${build}
3980 BUILD_CPU=${build_cpu}
3981 BUILD_VENDOR=${build_vendor}
3982 BUILD_OS=${build_os}
3989 HOST_PLATFORM=${host}
3990 HOST_CPU=${host_cpu}
3991 HOST_VENDOR=${host_vendor}
3992 HOST_OS=${host_os}
3999 case "${host_os}" in
4000 freebsd*)
4001 OSARCH=FreeBSD
4003 netbsd*)
4004 OSARCH=NetBSD
4006 openbsd*)
4007 OSARCH=OpenBSD
4009 solaris*)
4010 OSARCH=SunOS
4013 OSARCH=${HOST_OS}
4015 esac
4019 # check for uname
4020 if test -n "$ac_tool_prefix"; then
4021 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4022 set dummy ${ac_tool_prefix}uname; ac_word=$2
4023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4025 if test "${ac_cv_path_UNAME+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028 case $UNAME in
4029 [\\/]* | ?:[\\/]*)
4030 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4040 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4044 done
4045 done
4046 IFS=$as_save_IFS
4049 esac
4051 UNAME=$ac_cv_path_UNAME
4052 if test -n "$UNAME"; then
4053 { echo "$as_me:$LINENO: result: $UNAME" >&5
4054 echo "${ECHO_T}$UNAME" >&6; }
4055 else
4056 { echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6; }
4062 if test -z "$ac_cv_path_UNAME"; then
4063 ac_pt_UNAME=$UNAME
4064 # Extract the first word of "uname", so it can be a program name with args.
4065 set dummy uname; ac_word=$2
4066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4068 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 case $ac_pt_UNAME in
4072 [\\/]* | ?:[\\/]*)
4073 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4087 done
4088 done
4089 IFS=$as_save_IFS
4092 esac
4094 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4095 if test -n "$ac_pt_UNAME"; then
4096 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4097 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4098 else
4099 { echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6; }
4103 if test "x$ac_pt_UNAME" = x; then
4104 UNAME="No"
4105 else
4106 case $cross_compiling:$ac_tool_warned in
4107 yes:)
4108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4109 whose name does not start with the host triplet. If you think this
4110 configuration is useful to you, please write to autoconf@gnu.org." >&5
4111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4112 whose name does not start with the host triplet. If you think this
4113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4114 ac_tool_warned=yes ;;
4115 esac
4116 UNAME=$ac_pt_UNAME
4118 else
4119 UNAME="$ac_cv_path_UNAME"
4122 if test ! x"${UNAME}" = xNo; then
4123 PBX_OSREV=$(${UNAME} -r)
4133 # cross-compile checks
4134 if test "${cross_compiling}" = "yes";
4135 then
4136 if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_CC+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 break 2
4158 done
4159 done
4160 IFS=$as_save_IFS
4164 CC=$ac_cv_prog_CC
4165 if test -n "$CC"; then
4166 { echo "$as_me:$LINENO: result: $CC" >&5
4167 echo "${ECHO_T}$CC" >&6; }
4168 else
4169 { echo "$as_me:$LINENO: result: no" >&5
4170 echo "${ECHO_T}no" >&6; }
4175 if test -z "$ac_cv_prog_CC"; then
4176 ac_ct_CC=$CC
4177 # Extract the first word of "gcc", so it can be a program name with args.
4178 set dummy gcc; ac_word=$2
4179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 if test -n "$ac_ct_CC"; then
4185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_ac_ct_CC="gcc"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4198 done
4199 done
4200 IFS=$as_save_IFS
4204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4205 if test -n "$ac_ct_CC"; then
4206 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4207 echo "${ECHO_T}$ac_ct_CC" >&6; }
4208 else
4209 { echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6; }
4213 if test "x$ac_ct_CC" = x; then
4214 CC=":"
4215 else
4216 case $cross_compiling:$ac_tool_warned in
4217 yes:)
4218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4219 whose name does not start with the host triplet. If you think this
4220 configuration is useful to you, please write to autoconf@gnu.org." >&5
4221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4222 whose name does not start with the host triplet. If you think this
4223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4224 ac_tool_warned=yes ;;
4225 esac
4226 CC=$ac_ct_CC
4228 else
4229 CC="$ac_cv_prog_CC"
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4234 set dummy ${ac_tool_prefix}g++; ac_word=$2
4235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4237 if test "${ac_cv_prog_CXX+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240 if test -n "$CXX"; then
4241 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4254 done
4255 done
4256 IFS=$as_save_IFS
4260 CXX=$ac_cv_prog_CXX
4261 if test -n "$CXX"; then
4262 { echo "$as_me:$LINENO: result: $CXX" >&5
4263 echo "${ECHO_T}$CXX" >&6; }
4264 else
4265 { echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6; }
4271 if test -z "$ac_cv_prog_CXX"; then
4272 ac_ct_CXX=$CXX
4273 # Extract the first word of "g++", so it can be a program name with args.
4274 set dummy g++; ac_word=$2
4275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4277 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 if test -n "$ac_ct_CXX"; then
4281 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_ac_ct_CXX="g++"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4294 done
4295 done
4296 IFS=$as_save_IFS
4300 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4301 if test -n "$ac_ct_CXX"; then
4302 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4303 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4304 else
4305 { echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6; }
4309 if test "x$ac_ct_CXX" = x; then
4310 CXX=":"
4311 else
4312 case $cross_compiling:$ac_tool_warned in
4313 yes:)
4314 { echo "$as_me:$LINENO: 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." >&5
4317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4318 whose name does not start with the host triplet. If you think this
4319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4320 ac_tool_warned=yes ;;
4321 esac
4322 CXX=$ac_ct_CXX
4324 else
4325 CXX="$ac_cv_prog_CXX"
4328 if test -n "$ac_tool_prefix"; then
4329 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4330 set dummy ${ac_tool_prefix}ld; ac_word=$2
4331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4333 if test "${ac_cv_prog_LD+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336 if test -n "$LD"; then
4337 ac_cv_prog_LD="$LD" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_prog_LD="${ac_tool_prefix}ld"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4350 done
4351 done
4352 IFS=$as_save_IFS
4356 LD=$ac_cv_prog_LD
4357 if test -n "$LD"; then
4358 { echo "$as_me:$LINENO: result: $LD" >&5
4359 echo "${ECHO_T}$LD" >&6; }
4360 else
4361 { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4367 if test -z "$ac_cv_prog_LD"; then
4368 ac_ct_LD=$LD
4369 # Extract the first word of "ld", so it can be a program name with args.
4370 set dummy ld; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376 if test -n "$ac_ct_LD"; then
4377 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_prog_ac_ct_LD="ld"
4387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 break 2
4390 done
4391 done
4392 IFS=$as_save_IFS
4396 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4397 if test -n "$ac_ct_LD"; then
4398 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4399 echo "${ECHO_T}$ac_ct_LD" >&6; }
4400 else
4401 { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4405 if test "x$ac_ct_LD" = x; then
4406 LD=":"
4407 else
4408 case $cross_compiling:$ac_tool_warned in
4409 yes:)
4410 { echo "$as_me:$LINENO: 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." >&5
4413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4414 whose name does not start with the host triplet. If you think this
4415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4416 ac_tool_warned=yes ;;
4417 esac
4418 LD=$ac_ct_LD
4420 else
4421 LD="$ac_cv_prog_LD"
4424 if test -n "$ac_tool_prefix"; then
4425 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4426 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_RANLIB+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 if test -n "$RANLIB"; then
4433 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4446 done
4447 done
4448 IFS=$as_save_IFS
4452 RANLIB=$ac_cv_prog_RANLIB
4453 if test -n "$RANLIB"; then
4454 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4455 echo "${ECHO_T}$RANLIB" >&6; }
4456 else
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4463 if test -z "$ac_cv_prog_RANLIB"; then
4464 ac_ct_RANLIB=$RANLIB
4465 # Extract the first word of "ranlib", so it can be a program name with args.
4466 set dummy ranlib; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472 if test -n "$ac_ct_RANLIB"; then
4473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_ac_ct_RANLIB="ranlib"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4486 done
4487 done
4488 IFS=$as_save_IFS
4492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4493 if test -n "$ac_ct_RANLIB"; then
4494 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4495 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4496 else
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4501 if test "x$ac_ct_RANLIB" = x; then
4502 RANLIB=":"
4503 else
4504 case $cross_compiling:$ac_tool_warned in
4505 yes:)
4506 { echo "$as_me:$LINENO: 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." >&5
4509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4510 whose name does not start with the host triplet. If you think this
4511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4512 ac_tool_warned=yes ;;
4513 esac
4514 RANLIB=$ac_ct_RANLIB
4516 else
4517 RANLIB="$ac_cv_prog_RANLIB"
4522 # Checks for programs.
4523 ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528 if test -n "$ac_tool_prefix"; then
4529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_prog_CC+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536 if test -n "$CC"; then
4537 ac_cv_prog_CC="$CC" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4550 done
4551 done
4552 IFS=$as_save_IFS
4556 CC=$ac_cv_prog_CC
4557 if test -n "$CC"; then
4558 { echo "$as_me:$LINENO: result: $CC" >&5
4559 echo "${ECHO_T}$CC" >&6; }
4560 else
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4567 if test -z "$ac_cv_prog_CC"; then
4568 ac_ct_CC=$CC
4569 # Extract the first word of "gcc", so it can be a program name with args.
4570 set dummy gcc; ac_word=$2
4571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 if test -n "$ac_ct_CC"; then
4577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_CC="gcc"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4590 done
4591 done
4592 IFS=$as_save_IFS
4596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4597 if test -n "$ac_ct_CC"; then
4598 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4599 echo "${ECHO_T}$ac_ct_CC" >&6; }
4600 else
4601 { echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6; }
4605 if test "x$ac_ct_CC" = x; then
4606 CC=""
4607 else
4608 case $cross_compiling:$ac_tool_warned in
4609 yes:)
4610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4611 whose name does not start with the host triplet. If you think this
4612 configuration is useful to you, please write to autoconf@gnu.org." >&5
4613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4614 whose name does not start with the host triplet. If you think this
4615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4616 ac_tool_warned=yes ;;
4617 esac
4618 CC=$ac_ct_CC
4620 else
4621 CC="$ac_cv_prog_CC"
4624 if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4627 set dummy ${ac_tool_prefix}cc; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_CC+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4643 ac_cv_prog_CC="${ac_tool_prefix}cc"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 break 2
4647 done
4648 done
4649 IFS=$as_save_IFS
4653 CC=$ac_cv_prog_CC
4654 if test -n "$CC"; then
4655 { echo "$as_me:$LINENO: result: $CC" >&5
4656 echo "${ECHO_T}$CC" >&6; }
4657 else
4658 { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4665 if test -z "$CC"; then
4666 # Extract the first word of "cc", so it can be a program name with args.
4667 set dummy cc; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_CC+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673 if test -n "$CC"; then
4674 ac_cv_prog_CC="$CC" # Let the user override the test.
4675 else
4676 ac_prog_rejected=no
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4685 ac_prog_rejected=yes
4686 continue
4688 ac_cv_prog_CC="cc"
4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4692 done
4693 done
4694 IFS=$as_save_IFS
4696 if test $ac_prog_rejected = yes; then
4697 # We found a bogon in the path, so make sure we never use it.
4698 set dummy $ac_cv_prog_CC
4699 shift
4700 if test $# != 0; then
4701 # We chose a different compiler from the bogus one.
4702 # However, it has the same basename, so the bogon will be chosen
4703 # first if we set CC to just the basename; use the full file name.
4704 shift
4705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4710 CC=$ac_cv_prog_CC
4711 if test -n "$CC"; then
4712 { echo "$as_me:$LINENO: result: $CC" >&5
4713 echo "${ECHO_T}$CC" >&6; }
4714 else
4715 { echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6; }
4721 if test -z "$CC"; then
4722 if test -n "$ac_tool_prefix"; then
4723 for ac_prog in cl.exe
4725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4746 done
4747 done
4748 IFS=$as_save_IFS
4752 CC=$ac_cv_prog_CC
4753 if test -n "$CC"; then
4754 { echo "$as_me:$LINENO: result: $CC" >&5
4755 echo "${ECHO_T}$CC" >&6; }
4756 else
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4762 test -n "$CC" && break
4763 done
4765 if test -z "$CC"; then
4766 ac_ct_CC=$CC
4767 for ac_prog in cl.exe
4769 # Extract the first word of "$ac_prog", so it can be a program name with args.
4770 set dummy $ac_prog; ac_word=$2
4771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776 if test -n "$ac_ct_CC"; then
4777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_ac_ct_CC="$ac_prog"
4787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4790 done
4791 done
4792 IFS=$as_save_IFS
4796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4797 if test -n "$ac_ct_CC"; then
4798 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4799 echo "${ECHO_T}$ac_ct_CC" >&6; }
4800 else
4801 { echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6; }
4806 test -n "$ac_ct_CC" && break
4807 done
4809 if test "x$ac_ct_CC" = x; then
4810 CC=""
4811 else
4812 case $cross_compiling:$ac_tool_warned in
4813 yes:)
4814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4815 whose name does not start with the host triplet. If you think this
4816 configuration is useful to you, please write to autoconf@gnu.org." >&5
4817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4818 whose name does not start with the host triplet. If you think this
4819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4820 ac_tool_warned=yes ;;
4821 esac
4822 CC=$ac_ct_CC
4829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4830 See \`config.log' for more details." >&5
4831 echo "$as_me: error: no acceptable C compiler found in \$PATH
4832 See \`config.log' for more details." >&2;}
4833 { (exit 1); exit 1; }; }
4835 # Provide some information about the compiler.
4836 echo "$as_me:$LINENO: checking for C compiler version" >&5
4837 ac_compiler=`set X $ac_compile; echo $2`
4838 { (ac_try="$ac_compiler --version >&5"
4839 case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842 esac
4843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_compiler --version >&5") 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }
4848 { (ac_try="$ac_compiler -v >&5"
4849 case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852 esac
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_compiler -v >&5") 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }
4858 { (ac_try="$ac_compiler -V >&5"
4859 case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862 esac
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_compiler -V >&5") 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }
4869 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4870 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874 cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4882 main ()
4884 #ifndef __GNUC__
4885 choke me
4886 #endif
4889 return 0;
4891 _ACEOF
4892 rm -f conftest.$ac_objext
4893 if { (ac_try="$ac_compile"
4894 case "(($ac_try" in
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4897 esac
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4909 ac_compiler_gnu=yes
4910 else
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 ac_compiler_gnu=no
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4921 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4922 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4923 GCC=`test $ac_compiler_gnu = yes && echo yes`
4924 ac_test_CFLAGS=${CFLAGS+set}
4925 ac_save_CFLAGS=$CFLAGS
4926 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4927 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4928 if test "${ac_cv_prog_cc_g+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931 ac_save_c_werror_flag=$ac_c_werror_flag
4932 ac_c_werror_flag=yes
4933 ac_cv_prog_cc_g=no
4934 CFLAGS="-g"
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4943 main ()
4947 return 0;
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4958 ac_status=$?
4959 grep -v '^ *+' conftest.er1 >conftest.err
4960 rm -f conftest.er1
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } && {
4964 test -z "$ac_c_werror_flag" ||
4965 test ! -s conftest.err
4966 } && test -s conftest.$ac_objext; then
4967 ac_cv_prog_cc_g=yes
4968 else
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4972 CFLAGS=""
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4981 main ()
4985 return 0;
4987 _ACEOF
4988 rm -f conftest.$ac_objext
4989 if { (ac_try="$ac_compile"
4990 case "(($ac_try" in
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4993 esac
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_compile") 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } && {
5002 test -z "$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 } && test -s conftest.$ac_objext; then
5006 else
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5010 ac_c_werror_flag=$ac_save_c_werror_flag
5011 CFLAGS="-g"
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5020 main ()
5024 return 0;
5026 _ACEOF
5027 rm -f conftest.$ac_objext
5028 if { (ac_try="$ac_compile"
5029 case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5032 esac
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_compile") 2>conftest.er1
5035 ac_status=$?
5036 grep -v '^ *+' conftest.er1 >conftest.err
5037 rm -f conftest.er1
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } && {
5041 test -z "$ac_c_werror_flag" ||
5042 test ! -s conftest.err
5043 } && test -s conftest.$ac_objext; then
5044 ac_cv_prog_cc_g=yes
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059 ac_c_werror_flag=$ac_save_c_werror_flag
5061 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5062 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5063 if test "$ac_test_CFLAGS" = set; then
5064 CFLAGS=$ac_save_CFLAGS
5065 elif test $ac_cv_prog_cc_g = yes; then
5066 if test "$GCC" = yes; then
5067 CFLAGS="-g -O2"
5068 else
5069 CFLAGS="-g"
5071 else
5072 if test "$GCC" = yes; then
5073 CFLAGS="-O2"
5074 else
5075 CFLAGS=
5078 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5079 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5080 if test "${ac_cv_prog_cc_c89+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083 ac_cv_prog_cc_c89=no
5084 ac_save_CC=$CC
5085 cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h. */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 #include <stdarg.h>
5092 #include <stdio.h>
5093 #include <sys/types.h>
5094 #include <sys/stat.h>
5095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5096 struct buf { int x; };
5097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5098 static char *e (p, i)
5099 char **p;
5100 int i;
5102 return p[i];
5104 static char *f (char * (*g) (char **, int), char **p, ...)
5106 char *s;
5107 va_list v;
5108 va_start (v,p);
5109 s = g (p, va_arg (v,int));
5110 va_end (v);
5111 return s;
5114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5115 function prototypes and stuff, but not '\xHH' hex character constants.
5116 These don't provoke an error unfortunately, instead are silently treated
5117 as 'x'. The following induces an error, until -std is added to get
5118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5119 array size at least. It's necessary to write '\x00'==0 to get something
5120 that's true only with -std. */
5121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5124 inside strings and character constants. */
5125 #define FOO(x) 'x'
5126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5128 int test (int i, double x);
5129 struct s1 {int (*f) (int a);};
5130 struct s2 {int (*f) (double a);};
5131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5132 int argc;
5133 char **argv;
5135 main ()
5137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5139 return 0;
5141 _ACEOF
5142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5145 CC="$ac_save_CC $ac_arg"
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5148 case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_objext; then
5163 ac_cv_prog_cc_c89=$ac_arg
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5171 rm -f core conftest.err conftest.$ac_objext
5172 test "x$ac_cv_prog_cc_c89" != "xno" && break
5173 done
5174 rm -f conftest.$ac_ext
5175 CC=$ac_save_CC
5178 # AC_CACHE_VAL
5179 case "x$ac_cv_prog_cc_c89" in
5181 { echo "$as_me:$LINENO: result: none needed" >&5
5182 echo "${ECHO_T}none needed" >&6; } ;;
5183 xno)
5184 { echo "$as_me:$LINENO: result: unsupported" >&5
5185 echo "${ECHO_T}unsupported" >&6; } ;;
5187 CC="$CC $ac_cv_prog_cc_c89"
5188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5189 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5190 esac
5193 ac_ext=c
5194 ac_cpp='$CPP $CPPFLAGS'
5195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199 ac_ext=cpp
5200 ac_cpp='$CXXCPP $CPPFLAGS'
5201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5204 if test -z "$CXX"; then
5205 if test -n "$CCC"; then
5206 CXX=$CCC
5207 else
5208 if test -n "$ac_tool_prefix"; then
5209 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5215 if test "${ac_cv_prog_CXX+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 if test -n "$CXX"; then
5219 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5232 done
5233 done
5234 IFS=$as_save_IFS
5238 CXX=$ac_cv_prog_CXX
5239 if test -n "$CXX"; then
5240 { echo "$as_me:$LINENO: result: $CXX" >&5
5241 echo "${ECHO_T}$CXX" >&6; }
5242 else
5243 { echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6; }
5248 test -n "$CXX" && break
5249 done
5251 if test -z "$CXX"; then
5252 ac_ct_CXX=$CXX
5253 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5255 # Extract the first word of "$ac_prog", so it can be a program name with args.
5256 set dummy $ac_prog; ac_word=$2
5257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5259 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262 if test -n "$ac_ct_CXX"; then
5263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_ac_ct_CXX="$ac_prog"
5273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5276 done
5277 done
5278 IFS=$as_save_IFS
5282 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5283 if test -n "$ac_ct_CXX"; then
5284 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5285 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5286 else
5287 { echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6; }
5292 test -n "$ac_ct_CXX" && break
5293 done
5295 if test "x$ac_ct_CXX" = x; then
5296 CXX="g++"
5297 else
5298 case $cross_compiling:$ac_tool_warned in
5299 yes:)
5300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5301 whose name does not start with the host triplet. If you think this
5302 configuration is useful to you, please write to autoconf@gnu.org." >&5
5303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5304 whose name does not start with the host triplet. If you think this
5305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5306 ac_tool_warned=yes ;;
5307 esac
5308 CXX=$ac_ct_CXX
5314 # Provide some information about the compiler.
5315 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5316 ac_compiler=`set X $ac_compile; echo $2`
5317 { (ac_try="$ac_compiler --version >&5"
5318 case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5321 esac
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_compiler --version >&5") 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }
5327 { (ac_try="$ac_compiler -v >&5"
5328 case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_compiler -v >&5") 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }
5337 { (ac_try="$ac_compiler -V >&5"
5338 case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_compiler -V >&5") 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }
5348 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5349 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5350 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5361 main ()
5363 #ifndef __GNUC__
5364 choke me
5365 #endif
5368 return 0;
5370 _ACEOF
5371 rm -f conftest.$ac_objext
5372 if { (ac_try="$ac_compile"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } && {
5385 test -z "$ac_cxx_werror_flag" ||
5386 test ! -s conftest.err
5387 } && test -s conftest.$ac_objext; then
5388 ac_compiler_gnu=yes
5389 else
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_compiler_gnu=no
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5400 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5401 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5402 GXX=`test $ac_compiler_gnu = yes && echo yes`
5403 ac_test_CXXFLAGS=${CXXFLAGS+set}
5404 ac_save_CXXFLAGS=$CXXFLAGS
5405 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5406 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5407 if test "${ac_cv_prog_cxx_g+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5411 ac_cxx_werror_flag=yes
5412 ac_cv_prog_cxx_g=no
5413 CXXFLAGS="-g"
5414 cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h. */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5422 main ()
5426 return 0;
5428 _ACEOF
5429 rm -f conftest.$ac_objext
5430 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } && {
5443 test -z "$ac_cxx_werror_flag" ||
5444 test ! -s conftest.err
5445 } && test -s conftest.$ac_objext; then
5446 ac_cv_prog_cxx_g=yes
5447 else
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5451 CXXFLAGS=""
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5460 main ()
5464 return 0;
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (ac_try="$ac_compile"
5469 case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_compile") 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && {
5481 test -z "$ac_cxx_werror_flag" ||
5482 test ! -s conftest.err
5483 } && test -s conftest.$ac_objext; then
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5490 CXXFLAGS="-g"
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5499 main ()
5503 return 0;
5505 _ACEOF
5506 rm -f conftest.$ac_objext
5507 if { (ac_try="$ac_compile"
5508 case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511 esac
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_compile") 2>conftest.er1
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } && {
5520 test -z "$ac_cxx_werror_flag" ||
5521 test ! -s conftest.err
5522 } && test -s conftest.$ac_objext; then
5523 ac_cv_prog_cxx_g=yes
5524 else
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5540 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5541 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5542 if test "$ac_test_CXXFLAGS" = set; then
5543 CXXFLAGS=$ac_save_CXXFLAGS
5544 elif test $ac_cv_prog_cxx_g = yes; then
5545 if test "$GXX" = yes; then
5546 CXXFLAGS="-g -O2"
5547 else
5548 CXXFLAGS="-g"
5550 else
5551 if test "$GXX" = yes; then
5552 CXXFLAGS="-O2"
5553 else
5554 CXXFLAGS=
5557 ac_ext=c
5558 ac_cpp='$CPP $CPPFLAGS'
5559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5563 ac_ext=c
5564 ac_cpp='$CPP $CPPFLAGS'
5565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5568 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5569 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5570 # On Suns, sometimes $CPP names a directory.
5571 if test -n "$CPP" && test -d "$CPP"; then
5572 CPP=
5574 if test -z "$CPP"; then
5575 if test "${ac_cv_prog_CPP+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578 # Double quotes because CPP needs to be expanded
5579 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5581 ac_preproc_ok=false
5582 for ac_c_preproc_warn_flag in '' yes
5584 # Use a header file that comes with gcc, so configuring glibc
5585 # with a fresh cross-compiler works.
5586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5587 # <limits.h> exists even on freestanding compilers.
5588 # On the NeXT, cc -E runs the code through the compiler's parser,
5589 # not just through cpp. "Syntax error" is here to catch this case.
5590 cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h. */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5596 #ifdef __STDC__
5597 # include <limits.h>
5598 #else
5599 # include <assert.h>
5600 #endif
5601 Syntax error
5602 _ACEOF
5603 if { (ac_try="$ac_cpp conftest.$ac_ext"
5604 case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607 esac
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } >/dev/null && {
5616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 }; then
5620 else
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 # Broken: fails on valid input.
5625 continue
5628 rm -f conftest.err conftest.$ac_ext
5630 # OK, works on sane cases. Now check whether nonexistent headers
5631 # can be detected and how.
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <ac_nonexistent.h>
5639 _ACEOF
5640 if { (ac_try="$ac_cpp conftest.$ac_ext"
5641 case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5647 ac_status=$?
5648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } >/dev/null && {
5653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5654 test ! -s conftest.err
5655 }; then
5656 # Broken: success on invalid input.
5657 continue
5658 else
5659 echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5662 # Passes both tests.
5663 ac_preproc_ok=:
5664 break
5667 rm -f conftest.err conftest.$ac_ext
5669 done
5670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5671 rm -f conftest.err conftest.$ac_ext
5672 if $ac_preproc_ok; then
5673 break
5676 done
5677 ac_cv_prog_CPP=$CPP
5680 CPP=$ac_cv_prog_CPP
5681 else
5682 ac_cv_prog_CPP=$CPP
5684 { echo "$as_me:$LINENO: result: $CPP" >&5
5685 echo "${ECHO_T}$CPP" >&6; }
5686 ac_preproc_ok=false
5687 for ac_c_preproc_warn_flag in '' yes
5689 # Use a header file that comes with gcc, so configuring glibc
5690 # with a fresh cross-compiler works.
5691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5692 # <limits.h> exists even on freestanding compilers.
5693 # On the NeXT, cc -E runs the code through the compiler's parser,
5694 # not just through cpp. "Syntax error" is here to catch this case.
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h. */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 #ifdef __STDC__
5702 # include <limits.h>
5703 #else
5704 # include <assert.h>
5705 #endif
5706 Syntax error
5707 _ACEOF
5708 if { (ac_try="$ac_cpp conftest.$ac_ext"
5709 case "(($ac_try" in
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5712 esac
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5715 ac_status=$?
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } >/dev/null && {
5721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5722 test ! -s conftest.err
5723 }; then
5725 else
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5729 # Broken: fails on valid input.
5730 continue
5733 rm -f conftest.err conftest.$ac_ext
5735 # OK, works on sane cases. Now check whether nonexistent headers
5736 # can be detected and how.
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 #include <ac_nonexistent.h>
5744 _ACEOF
5745 if { (ac_try="$ac_cpp conftest.$ac_ext"
5746 case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } >/dev/null && {
5758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 }; then
5761 # Broken: success on invalid input.
5762 continue
5763 else
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 # Passes both tests.
5768 ac_preproc_ok=:
5769 break
5772 rm -f conftest.err conftest.$ac_ext
5774 done
5775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5776 rm -f conftest.err conftest.$ac_ext
5777 if $ac_preproc_ok; then
5779 else
5780 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5781 See \`config.log' for more details." >&5
5782 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5783 See \`config.log' for more details." >&2;}
5784 { (exit 1); exit 1; }; }
5787 ac_ext=c
5788 ac_cpp='$CPP $CPPFLAGS'
5789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793 ac_ext=cpp
5794 ac_cpp='$CXXCPP $CPPFLAGS'
5795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5798 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5799 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5800 if test -z "$CXXCPP"; then
5801 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 # Double quotes because CXXCPP needs to be expanded
5805 for CXXCPP in "$CXX -E" "/lib/cpp"
5807 ac_preproc_ok=false
5808 for ac_cxx_preproc_warn_flag in '' yes
5810 # Use a header file that comes with gcc, so configuring glibc
5811 # with a fresh cross-compiler works.
5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 # <limits.h> exists even on freestanding compilers.
5814 # On the NeXT, cc -E runs the code through the compiler's parser,
5815 # not just through cpp. "Syntax error" is here to catch this case.
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #ifdef __STDC__
5823 # include <limits.h>
5824 #else
5825 # include <assert.h>
5826 #endif
5827 Syntax error
5828 _ACEOF
5829 if { (ac_try="$ac_cpp conftest.$ac_ext"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } >/dev/null && {
5842 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5843 test ! -s conftest.err
5844 }; then
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 # Broken: fails on valid input.
5851 continue
5854 rm -f conftest.err conftest.$ac_ext
5856 # OK, works on sane cases. Now check whether nonexistent headers
5857 # can be detected and how.
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <ac_nonexistent.h>
5865 _ACEOF
5866 if { (ac_try="$ac_cpp conftest.$ac_ext"
5867 case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } >/dev/null && {
5879 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5880 test ! -s conftest.err
5881 }; then
5882 # Broken: success on invalid input.
5883 continue
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 # Passes both tests.
5889 ac_preproc_ok=:
5890 break
5893 rm -f conftest.err conftest.$ac_ext
5895 done
5896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5897 rm -f conftest.err conftest.$ac_ext
5898 if $ac_preproc_ok; then
5899 break
5902 done
5903 ac_cv_prog_CXXCPP=$CXXCPP
5906 CXXCPP=$ac_cv_prog_CXXCPP
5907 else
5908 ac_cv_prog_CXXCPP=$CXXCPP
5910 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5911 echo "${ECHO_T}$CXXCPP" >&6; }
5912 ac_preproc_ok=false
5913 for ac_cxx_preproc_warn_flag in '' yes
5915 # Use a header file that comes with gcc, so configuring glibc
5916 # with a fresh cross-compiler works.
5917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5918 # <limits.h> exists even on freestanding compilers.
5919 # On the NeXT, cc -E runs the code through the compiler's parser,
5920 # not just through cpp. "Syntax error" is here to catch this case.
5921 cat >conftest.$ac_ext <<_ACEOF
5922 /* confdefs.h. */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 #ifdef __STDC__
5928 # include <limits.h>
5929 #else
5930 # include <assert.h>
5931 #endif
5932 Syntax error
5933 _ACEOF
5934 if { (ac_try="$ac_cpp conftest.$ac_ext"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } >/dev/null && {
5947 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5948 test ! -s conftest.err
5949 }; then
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 # Broken: fails on valid input.
5956 continue
5959 rm -f conftest.err conftest.$ac_ext
5961 # OK, works on sane cases. Now check whether nonexistent headers
5962 # can be detected and how.
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include <ac_nonexistent.h>
5970 _ACEOF
5971 if { (ac_try="$ac_cpp conftest.$ac_ext"
5972 case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } >/dev/null && {
5984 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5985 test ! -s conftest.err
5986 }; then
5987 # Broken: success on invalid input.
5988 continue
5989 else
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 # Passes both tests.
5994 ac_preproc_ok=:
5995 break
5998 rm -f conftest.err conftest.$ac_ext
6000 done
6001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6002 rm -f conftest.err conftest.$ac_ext
6003 if $ac_preproc_ok; then
6005 else
6006 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6007 See \`config.log' for more details." >&5
6008 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6009 See \`config.log' for more details." >&2;}
6010 { (exit 1); exit 1; }; }
6013 ac_ext=c
6014 ac_cpp='$CPP $CPPFLAGS'
6015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6020 # the developers regenerating the configure script don't have to install libtool.
6021 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6022 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6023 if test "${ac_cv_path_SED+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6027 for ac_i in 1 2 3 4 5 6 7; do
6028 ac_script="$ac_script$as_nl$ac_script"
6029 done
6030 echo "$ac_script" | sed 99q >conftest.sed
6031 $as_unset ac_script || ac_script=
6032 # Extract the first word of "sed gsed" to use in msg output
6033 if test -z "$SED"; then
6034 set dummy sed gsed; ac_prog_name=$2
6035 if test "${ac_cv_path_SED+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 ac_path_SED_found=false
6039 # Loop through the user's path and test for each of PROGNAME-LIST
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
6045 for ac_prog in sed gsed; do
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6048 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6049 # Check for GNU ac_path_SED and select it if it is found.
6050 # Check for GNU $ac_path_SED
6051 case `"$ac_path_SED" --version 2>&1` in
6052 *GNU*)
6053 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6055 ac_count=0
6056 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6057 while :
6059 cat "conftest.in" "conftest.in" >"conftest.tmp"
6060 mv "conftest.tmp" "conftest.in"
6061 cp "conftest.in" "conftest.nl"
6062 echo '' >> "conftest.nl"
6063 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6065 ac_count=`expr $ac_count + 1`
6066 if test $ac_count -gt ${ac_path_SED_max-0}; then
6067 # Best one so far, save it but keep looking for a better one
6068 ac_cv_path_SED="$ac_path_SED"
6069 ac_path_SED_max=$ac_count
6071 # 10*(2^10) chars as input seems more than enough
6072 test $ac_count -gt 10 && break
6073 done
6074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6075 esac
6078 $ac_path_SED_found && break 3
6079 done
6080 done
6082 done
6083 IFS=$as_save_IFS
6088 SED="$ac_cv_path_SED"
6089 if test -z "$SED"; then
6090 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6091 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6092 { (exit 1); exit 1; }; }
6095 else
6096 ac_cv_path_SED=$SED
6100 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6101 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6102 SED="$ac_cv_path_SED"
6103 rm -f conftest.sed
6105 { echo "$as_me:$LINENO: checking for egrep" >&5
6106 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_egrep+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6111 then ac_cv_prog_egrep='grep -E'
6112 else ac_cv_prog_egrep='egrep'
6115 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6116 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6117 EGREP=$ac_cv_prog_egrep
6121 # Check whether --with-gnu-ld was given.
6122 if test "${with_gnu_ld+set}" = set; then
6123 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6124 else
6125 with_gnu_ld=no
6128 ac_prog=ld
6129 if test "$GCC" = yes; then
6130 # Check if gcc -print-prog-name=ld gives a path.
6131 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6132 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6133 case $host in
6134 *-*-mingw*)
6135 # gcc leaves a trailing carriage return which upsets mingw
6136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6139 esac
6140 case $ac_prog in
6141 # Accept absolute paths.
6142 [\\/]* | ?:[\\/]*)
6143 re_direlt='/[^/][^/]*/\.\./'
6144 # Canonicalize the pathname of ld
6145 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6146 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6147 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6148 done
6149 test -z "$LD" && LD="$ac_prog"
6152 # If it fails, then pretend we aren't using GCC.
6153 ac_prog=ld
6156 # If it is relative, then search for the first ld in PATH.
6157 with_gnu_ld=unknown
6159 esac
6160 elif test "$with_gnu_ld" = yes; then
6161 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6162 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6163 else
6164 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6165 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6167 if test "${lt_cv_path_LD+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170 if test -z "$LD"; then
6171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6172 for ac_dir in $PATH; do
6173 IFS="$lt_save_ifs"
6174 test -z "$ac_dir" && ac_dir=.
6175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6176 lt_cv_path_LD="$ac_dir/$ac_prog"
6177 # Check to see if the program is GNU ld. I'd rather use --version,
6178 # but apparently some variants of GNU ld only accept -v.
6179 # Break only if it was the GNU/non-GNU ld that we prefer.
6180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6181 *GNU* | *'with BFD'*)
6182 test "$with_gnu_ld" != no && break
6185 test "$with_gnu_ld" != yes && break
6187 esac
6189 done
6190 IFS="$lt_save_ifs"
6191 else
6192 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6196 LD="$lt_cv_path_LD"
6197 if test -n "$LD"; then
6198 { echo "$as_me:$LINENO: result: $LD" >&5
6199 echo "${ECHO_T}$LD" >&6; }
6200 else
6201 { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6204 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6205 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6206 { (exit 1); exit 1; }; }
6207 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6208 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6209 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6213 case `$LD -v 2>&1 </dev/null` in
6214 *GNU* | *'with BFD'*)
6215 lt_cv_prog_gnu_ld=yes
6218 lt_cv_prog_gnu_ld=no
6220 esac
6222 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6223 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6224 with_gnu_ld=$lt_cv_prog_gnu_ld
6226 # note - does not work on freebsd
6227 for ac_prog in gawk mawk nawk awk
6229 # Extract the first word of "$ac_prog", so it can be a program name with args.
6230 set dummy $ac_prog; ac_word=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_prog_AWK+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236 if test -n "$AWK"; then
6237 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6242 IFS=$as_save_IFS
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_prog_AWK="$ac_prog"
6247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 break 2
6250 done
6251 done
6252 IFS=$as_save_IFS
6256 AWK=$ac_cv_prog_AWK
6257 if test -n "$AWK"; then
6258 { echo "$as_me:$LINENO: result: $AWK" >&5
6259 echo "${ECHO_T}$AWK" >&6; }
6260 else
6261 { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6266 test -n "$AWK" && break
6267 done
6269 # Find a good install program. We prefer a C program (faster),
6270 # so one script is as good as another. But avoid the broken or
6271 # incompatible versions:
6272 # SysV /etc/install, /usr/sbin/install
6273 # SunOS /usr/etc/install
6274 # IRIX /sbin/install
6275 # AIX /bin/install
6276 # AmigaOS /C/install, which installs bootblocks on floppy discs
6277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6280 # OS/2's system install, which has a completely different semantic
6281 # ./install, which can be erroneously created by make from ./install.sh.
6282 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6283 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6284 if test -z "$INSTALL"; then
6285 if test "${ac_cv_path_install+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 # Account for people who put trailing slashes in PATH elements.
6294 case $as_dir/ in
6295 ./ | .// | /cC/* | \
6296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6297 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6298 /usr/ucb/* ) ;;
6300 # OSF1 and SCO ODT 3.0 have their own names for install.
6301 # Don't use installbsd from OSF since it installs stuff as root
6302 # by default.
6303 for ac_prog in ginstall scoinst install; do
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6306 if test $ac_prog = install &&
6307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6308 # AIX install. It has an incompatible calling convention.
6310 elif test $ac_prog = install &&
6311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6312 # program-specific install script used by HP pwplus--don't use.
6314 else
6315 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6316 break 3
6319 done
6320 done
6322 esac
6323 done
6324 IFS=$as_save_IFS
6328 if test "${ac_cv_path_install+set}" = set; then
6329 INSTALL=$ac_cv_path_install
6330 else
6331 # As a last resort, use the slow shell script. Don't cache a
6332 # value for INSTALL within a source directory, because that will
6333 # break other packages using the cache if that directory is
6334 # removed, or if the value is a relative name.
6335 INSTALL=$ac_install_sh
6338 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6339 echo "${ECHO_T}$INSTALL" >&6; }
6341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6342 # It thinks the first close brace ends the variable substitution.
6343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6349 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6350 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6351 LN_S=$as_ln_s
6352 if test "$LN_S" = "ln -s"; then
6353 { echo "$as_me:$LINENO: result: yes" >&5
6354 echo "${ECHO_T}yes" >&6; }
6355 else
6356 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6357 echo "${ECHO_T}no, using $LN_S" >&6; }
6360 if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_prog_RANLIB+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368 if test -n "$RANLIB"; then
6369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 break 2
6382 done
6383 done
6384 IFS=$as_save_IFS
6388 RANLIB=$ac_cv_prog_RANLIB
6389 if test -n "$RANLIB"; then
6390 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6391 echo "${ECHO_T}$RANLIB" >&6; }
6392 else
6393 { echo "$as_me:$LINENO: result: no" >&5
6394 echo "${ECHO_T}no" >&6; }
6399 if test -z "$ac_cv_prog_RANLIB"; then
6400 ac_ct_RANLIB=$RANLIB
6401 # Extract the first word of "ranlib", so it can be a program name with args.
6402 set dummy ranlib; ac_word=$2
6403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408 if test -n "$ac_ct_RANLIB"; then
6409 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6414 IFS=$as_save_IFS
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_prog_ac_ct_RANLIB="ranlib"
6419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 break 2
6422 done
6423 done
6424 IFS=$as_save_IFS
6428 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6429 if test -n "$ac_ct_RANLIB"; then
6430 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6431 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6432 else
6433 { echo "$as_me:$LINENO: result: no" >&5
6434 echo "${ECHO_T}no" >&6; }
6437 if test "x$ac_ct_RANLIB" = x; then
6438 RANLIB=":"
6439 else
6440 case $cross_compiling:$ac_tool_warned in
6441 yes:)
6442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6443 whose name does not start with the host triplet. If you think this
6444 configuration is useful to you, please write to autoconf@gnu.org." >&5
6445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6446 whose name does not start with the host triplet. If you think this
6447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6448 ac_tool_warned=yes ;;
6449 esac
6450 RANLIB=$ac_ct_RANLIB
6452 else
6453 RANLIB="$ac_cv_prog_RANLIB"
6456 { echo "$as_me:$LINENO: checking for GNU make" >&5
6457 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6458 if test "${GNU_MAKE+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 GNU_MAKE='Not Found' ;
6462 GNU_MAKE_VERSION_MAJOR=0 ;
6463 GNU_MAKE_VERSION_MINOR=0 ;
6464 for a in make gmake gnumake ; do
6465 if test -z "$a" ; then continue ; fi ;
6466 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6467 GNU_MAKE=$a ;
6468 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6469 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6470 break;
6472 done ;
6475 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6476 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6477 if test "x$GNU_MAKE" = "xNot Found" ; then
6478 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6479 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6480 { (exit 1); exit 1; }; }
6481 exit 1
6486 if test -n "$ac_tool_prefix"; then
6487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6488 set dummy ${ac_tool_prefix}strip; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_path_STRIP+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494 case $STRIP in
6495 [\\/]* | ?:[\\/]*)
6496 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 break 2
6510 done
6511 done
6512 IFS=$as_save_IFS
6515 esac
6517 STRIP=$ac_cv_path_STRIP
6518 if test -n "$STRIP"; then
6519 { echo "$as_me:$LINENO: result: $STRIP" >&5
6520 echo "${ECHO_T}$STRIP" >&6; }
6521 else
6522 { echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6; }
6528 if test -z "$ac_cv_path_STRIP"; then
6529 ac_pt_STRIP=$STRIP
6530 # Extract the first word of "strip", so it can be a program name with args.
6531 set dummy strip; ac_word=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537 case $ac_pt_STRIP in
6538 [\\/]* | ?:[\\/]*)
6539 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6553 done
6554 done
6555 IFS=$as_save_IFS
6558 esac
6560 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6561 if test -n "$ac_pt_STRIP"; then
6562 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6563 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6564 else
6565 { echo "$as_me:$LINENO: result: no" >&5
6566 echo "${ECHO_T}no" >&6; }
6569 if test "x$ac_pt_STRIP" = x; then
6570 STRIP=":"
6571 else
6572 case $cross_compiling:$ac_tool_warned in
6573 yes:)
6574 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6575 whose name does not start with the host triplet. If you think this
6576 configuration is useful to you, please write to autoconf@gnu.org." >&5
6577 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6578 whose name does not start with the host triplet. If you think this
6579 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6580 ac_tool_warned=yes ;;
6581 esac
6582 STRIP=$ac_pt_STRIP
6584 else
6585 STRIP="$ac_cv_path_STRIP"
6588 if test -n "$ac_tool_prefix"; then
6589 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6590 set dummy ${ac_tool_prefix}ar; ac_word=$2
6591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6593 if test "${ac_cv_path_AR+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596 case $AR in
6597 [\\/]* | ?:[\\/]*)
6598 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 break 2
6612 done
6613 done
6614 IFS=$as_save_IFS
6617 esac
6619 AR=$ac_cv_path_AR
6620 if test -n "$AR"; then
6621 { echo "$as_me:$LINENO: result: $AR" >&5
6622 echo "${ECHO_T}$AR" >&6; }
6623 else
6624 { echo "$as_me:$LINENO: result: no" >&5
6625 echo "${ECHO_T}no" >&6; }
6630 if test -z "$ac_cv_path_AR"; then
6631 ac_pt_AR=$AR
6632 # Extract the first word of "ar", so it can be a program name with args.
6633 set dummy ar; ac_word=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639 case $ac_pt_AR in
6640 [\\/]* | ?:[\\/]*)
6641 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6655 done
6656 done
6657 IFS=$as_save_IFS
6660 esac
6662 ac_pt_AR=$ac_cv_path_ac_pt_AR
6663 if test -n "$ac_pt_AR"; then
6664 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6665 echo "${ECHO_T}$ac_pt_AR" >&6; }
6666 else
6667 { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6671 if test "x$ac_pt_AR" = x; then
6672 AR=":"
6673 else
6674 case $cross_compiling:$ac_tool_warned in
6675 yes:)
6676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6677 whose name does not start with the host triplet. If you think this
6678 configuration is useful to you, please write to autoconf@gnu.org." >&5
6679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6680 whose name does not start with the host triplet. If you think this
6681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6682 ac_tool_warned=yes ;;
6683 esac
6684 AR=$ac_pt_AR
6686 else
6687 AR="$ac_cv_path_AR"
6691 GNU_LD=0
6692 if test "x$with_gnu_ld" = "xyes" ; then
6693 GNU_LD=1
6697 # Extract the first word of "awk", so it can be a program name with args.
6698 set dummy awk; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_AWK+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704 case $AWK in
6705 [\\/]* | ?:[\\/]*)
6706 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6720 done
6721 done
6722 IFS=$as_save_IFS
6724 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK=":"
6726 esac
6728 AWK=$ac_cv_path_AWK
6729 if test -n "$AWK"; then
6730 { echo "$as_me:$LINENO: result: $AWK" >&5
6731 echo "${ECHO_T}$AWK" >&6; }
6732 else
6733 { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6738 # Extract the first word of "grep", so it can be a program name with args.
6739 set dummy grep; ac_word=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_path_GREP+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745 case $GREP in
6746 [\\/]* | ?:[\\/]*)
6747 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6761 done
6762 done
6763 IFS=$as_save_IFS
6765 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6767 esac
6769 GREP=$ac_cv_path_GREP
6770 if test -n "$GREP"; then
6771 { echo "$as_me:$LINENO: result: $GREP" >&5
6772 echo "${ECHO_T}$GREP" >&6; }
6773 else
6774 { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6779 # Extract the first word of "find", so it can be a program name with args.
6780 set dummy find; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_path_FIND+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786 case $FIND in
6787 [\\/]* | ?:[\\/]*)
6788 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6802 done
6803 done
6804 IFS=$as_save_IFS
6806 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6808 esac
6810 FIND=$ac_cv_path_FIND
6811 if test -n "$FIND"; then
6812 { echo "$as_me:$LINENO: result: $FIND" >&5
6813 echo "${ECHO_T}$FIND" >&6; }
6814 else
6815 { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6820 # Extract the first word of "compress", so it can be a program name with args.
6821 set dummy compress; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_COMPRESS+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827 case $COMPRESS in
6828 [\\/]* | ?:[\\/]*)
6829 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6843 done
6844 done
6845 IFS=$as_save_IFS
6847 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6849 esac
6851 COMPRESS=$ac_cv_path_COMPRESS
6852 if test -n "$COMPRESS"; then
6853 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6854 echo "${ECHO_T}$COMPRESS" >&6; }
6855 else
6856 { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6861 # Extract the first word of "basename", so it can be a program name with args.
6862 set dummy basename; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_path_BASENAME+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 case $BASENAME in
6869 [\\/]* | ?:[\\/]*)
6870 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6884 done
6885 done
6886 IFS=$as_save_IFS
6888 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6890 esac
6892 BASENAME=$ac_cv_path_BASENAME
6893 if test -n "$BASENAME"; then
6894 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6895 echo "${ECHO_T}$BASENAME" >&6; }
6896 else
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6902 # Extract the first word of "id", so it can be a program name with args.
6903 set dummy id; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_path_ID+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909 case $ID in
6910 [\\/]* | ?:[\\/]*)
6911 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6925 done
6926 done
6927 IFS=$as_save_IFS
6929 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6931 esac
6933 ID=$ac_cv_path_ID
6934 if test -n "$ID"; then
6935 { echo "$as_me:$LINENO: result: $ID" >&5
6936 echo "${ECHO_T}$ID" >&6; }
6937 else
6938 { echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6; }
6943 # Extract the first word of "dirname", so it can be a program name with args.
6944 set dummy dirname; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_path_DIRNAME+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950 case $DIRNAME in
6951 [\\/]* | ?:[\\/]*)
6952 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6966 done
6967 done
6968 IFS=$as_save_IFS
6970 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6972 esac
6974 DIRNAME=$ac_cv_path_DIRNAME
6975 if test -n "$DIRNAME"; then
6976 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6977 echo "${ECHO_T}$DIRNAME" >&6; }
6978 else
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6984 # Extract the first word of "sh", so it can be a program name with args.
6985 set dummy sh; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_path_SHELL+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 case $SHELL in
6992 [\\/]* | ?:[\\/]*)
6993 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7007 done
7008 done
7009 IFS=$as_save_IFS
7011 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7013 esac
7015 SHELL=$ac_cv_path_SHELL
7016 if test -n "$SHELL"; then
7017 { echo "$as_me:$LINENO: result: $SHELL" >&5
7018 echo "${ECHO_T}$SHELL" >&6; }
7019 else
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7025 # Extract the first word of "ln", so it can be a program name with args.
7026 set dummy ln; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_path_LN+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 case $LN in
7033 [\\/]* | ?:[\\/]*)
7034 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7048 done
7049 done
7050 IFS=$as_save_IFS
7052 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7054 esac
7056 LN=$ac_cv_path_LN
7057 if test -n "$LN"; then
7058 { echo "$as_me:$LINENO: result: $LN" >&5
7059 echo "${ECHO_T}$LN" >&6; }
7060 else
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7066 # Extract the first word of "dot", so it can be a program name with args.
7067 set dummy dot; ac_word=$2
7068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070 if test "${ac_cv_path_DOT+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 case $DOT in
7074 [\\/]* | ?:[\\/]*)
7075 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7089 done
7090 done
7091 IFS=$as_save_IFS
7093 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7095 esac
7097 DOT=$ac_cv_path_DOT
7098 if test -n "$DOT"; then
7099 { echo "$as_me:$LINENO: result: $DOT" >&5
7100 echo "${ECHO_T}$DOT" >&6; }
7101 else
7102 { echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6; }
7107 # Extract the first word of "wget", so it can be a program name with args.
7108 set dummy wget; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_path_WGET+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 case $WGET in
7115 [\\/]* | ?:[\\/]*)
7116 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7130 done
7131 done
7132 IFS=$as_save_IFS
7134 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7136 esac
7138 WGET=$ac_cv_path_WGET
7139 if test -n "$WGET"; then
7140 { echo "$as_me:$LINENO: result: $WGET" >&5
7141 echo "${ECHO_T}$WGET" >&6; }
7142 else
7143 { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7148 if test "${WGET}" != ":" ; then
7149 DOWNLOAD=${WGET}
7150 else
7151 # Extract the first word of "fetch", so it can be a program name with args.
7152 set dummy fetch; ac_word=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_path_FETCH+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158 case $FETCH in
7159 [\\/]* | ?:[\\/]*)
7160 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7170 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7174 done
7175 done
7176 IFS=$as_save_IFS
7178 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7180 esac
7182 FETCH=$ac_cv_path_FETCH
7183 if test -n "$FETCH"; then
7184 { echo "$as_me:$LINENO: result: $FETCH" >&5
7185 echo "${ECHO_T}$FETCH" >&6; }
7186 else
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7192 DOWNLOAD=${FETCH}
7196 if test -n "$ac_tool_prefix"; then
7197 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7198 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204 if test -n "$SOXMIX"; then
7205 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7218 done
7219 done
7220 IFS=$as_save_IFS
7224 SOXMIX=$ac_cv_prog_SOXMIX
7225 if test -n "$SOXMIX"; then
7226 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7227 echo "${ECHO_T}$SOXMIX" >&6; }
7228 else
7229 { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7235 if test -z "$ac_cv_prog_SOXMIX"; then
7236 ac_ct_SOXMIX=$SOXMIX
7237 # Extract the first word of "soxmix", so it can be a program name with args.
7238 set dummy soxmix; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 if test -n "$ac_ct_SOXMIX"; then
7245 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7258 done
7259 done
7260 IFS=$as_save_IFS
7264 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7265 if test -n "$ac_ct_SOXMIX"; then
7266 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7267 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7268 else
7269 { echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6; }
7273 if test "x$ac_ct_SOXMIX" = x; then
7274 SOXMIX=":"
7275 else
7276 case $cross_compiling:$ac_tool_warned in
7277 yes:)
7278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7279 whose name does not start with the host triplet. If you think this
7280 configuration is useful to you, please write to autoconf@gnu.org." >&5
7281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7282 whose name does not start with the host triplet. If you think this
7283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7284 ac_tool_warned=yes ;;
7285 esac
7286 SOXMIX=$ac_ct_SOXMIX
7288 else
7289 SOXMIX="$ac_cv_prog_SOXMIX"
7292 if test "${SOXMIX}" != ":" ; then
7294 cat >>confdefs.h <<\_ACEOF
7295 #define HAVE_SOXMIX 1
7296 _ACEOF
7303 ac_ext=c
7304 ac_cpp='$CPP $CPPFLAGS'
7305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7309 acx_pthread_ok=no
7311 # We used to check for pthread.h first, but this fails if pthread.h
7312 # requires special compiler flags (e.g. on True64 or Sequent).
7313 # It gets checked for in the link test anyway.
7315 # First of all, check if the user has set any of the PTHREAD_LIBS,
7316 # etcetera environment variables, and if threads linking works using
7317 # them:
7318 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7319 save_CFLAGS="$CFLAGS"
7320 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7321 save_LIBS="$LIBS"
7322 LIBS="$PTHREAD_LIBS $LIBS"
7323 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7324 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7325 cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h. */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7332 /* Override any GCC internal prototype to avoid an error.
7333 Use char because int might match the return type of a GCC
7334 builtin and then its argument prototype would still apply. */
7335 #ifdef __cplusplus
7336 extern "C"
7337 #endif
7338 char pthread_join ();
7340 main ()
7342 return pthread_join ();
7344 return 0;
7346 _ACEOF
7347 rm -f conftest.$ac_objext conftest$ac_exeext
7348 if { (ac_try="$ac_link"
7349 case "(($ac_try" in
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7352 esac
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_link") 2>conftest.er1
7355 ac_status=$?
7356 grep -v '^ *+' conftest.er1 >conftest.err
7357 rm -f conftest.er1
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest$ac_exeext &&
7364 $as_test_x conftest$ac_exeext; then
7365 acx_pthread_ok=yes
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7374 conftest$ac_exeext conftest.$ac_ext
7375 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7376 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7377 if test x"$acx_pthread_ok" = xno; then
7378 PTHREAD_LIBS=""
7379 PTHREAD_CFLAGS=""
7381 LIBS="$save_LIBS"
7382 CFLAGS="$save_CFLAGS"
7385 # We must check for the threads library under a number of different
7386 # names; the ordering is very important because some systems
7387 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7388 # libraries is broken (non-POSIX).
7390 # Create a list of thread flags to try. Items starting with a "-" are
7391 # C compiler flags, and other items are library names, except for "none"
7392 # which indicates that we try without any flags at all, and "pthread-config"
7393 # which is a program returning the flags for the Pth emulation library.
7395 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7397 # The ordering *is* (sometimes) important. Some notes on the
7398 # individual items follow:
7400 # pthreads: AIX (must check this before -lpthread)
7401 # none: in case threads are in libc; should be tried before -Kthread and
7402 # other compiler flags to prevent continual compiler warnings
7403 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7404 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7405 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7406 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7407 # -pthreads: Solaris/gcc
7408 # -mthreads: Mingw32/gcc, Lynx/gcc
7409 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7410 # doesn't hurt to check since this sometimes defines pthreads too;
7411 # also defines -D_REENTRANT)
7412 # ... -mt is also the pthreads flag for HP/aCC
7413 # pthread: Linux, etcetera
7414 # --thread-safe: KAI C++
7415 # pthread-config: use pthread-config program (for GNU Pth library)
7417 case "${host_cpu}-${host_os}" in
7418 *solaris*)
7420 # On Solaris (at least, for some versions), libc contains stubbed
7421 # (non-functional) versions of the pthreads routines, so link-based
7422 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7423 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7424 # a function called by this macro, so we could check for that, but
7425 # who knows whether they'll stub that too in a future libc.) So,
7426 # we'll just look for -pthreads and -lpthread first:
7428 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7430 esac
7432 if test x"$acx_pthread_ok" = xno; then
7433 for flag in $acx_pthread_flags; do
7435 case $flag in
7436 none)
7437 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7438 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7442 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7443 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7444 PTHREAD_CFLAGS="$flag"
7447 pthread-config)
7448 # Extract the first word of "pthread-config", so it can be a program name with args.
7449 set dummy pthread-config; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455 if test -n "$acx_pthread_config"; then
7456 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_prog_acx_pthread_config="yes"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7469 done
7470 done
7471 IFS=$as_save_IFS
7473 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7476 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7477 if test -n "$acx_pthread_config"; then
7478 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7479 echo "${ECHO_T}$acx_pthread_config" >&6; }
7480 else
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7486 if test x"$acx_pthread_config" = xno; then continue; fi
7487 PTHREAD_CFLAGS="`pthread-config --cflags`"
7488 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7492 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7493 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7494 PTHREAD_LIBS="-l$flag"
7496 esac
7498 save_LIBS="$LIBS"
7499 save_CFLAGS="$CFLAGS"
7500 LIBS="$PTHREAD_LIBS $LIBS"
7501 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7503 # Check for various functions. We must include pthread.h,
7504 # since some functions may be macros. (On the Sequent, we
7505 # need a special flag -Kthread to make this header compile.)
7506 # We check for pthread_join because it is in -lpthread on IRIX
7507 # while pthread_create is in libc. We check for pthread_attr_init
7508 # due to DEC craziness with -lpthreads. We check for
7509 # pthread_cleanup_push because it is one of the few pthread
7510 # functions on Solaris that doesn't have a non-functional libc stub.
7511 # We try pthread_create on general principles.
7512 cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h. */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 #include <pthread.h>
7520 main ()
7522 pthread_t th; pthread_join(th, 0);
7523 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7524 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7526 return 0;
7528 _ACEOF
7529 rm -f conftest.$ac_objext conftest$ac_exeext
7530 if { (ac_try="$ac_link"
7531 case "(($ac_try" in
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7534 esac
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_link") 2>conftest.er1
7537 ac_status=$?
7538 grep -v '^ *+' conftest.er1 >conftest.err
7539 rm -f conftest.er1
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_c_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest$ac_exeext &&
7546 $as_test_x conftest$ac_exeext; then
7547 acx_pthread_ok=yes
7548 else
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7556 conftest$ac_exeext conftest.$ac_ext
7558 LIBS="$save_LIBS"
7559 CFLAGS="$save_CFLAGS"
7561 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7562 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7563 if test "x$acx_pthread_ok" = xyes; then
7564 break;
7567 PTHREAD_LIBS=""
7568 PTHREAD_CFLAGS=""
7569 done
7572 # Various other checks:
7573 if test "x$acx_pthread_ok" = xyes; then
7574 save_LIBS="$LIBS"
7575 LIBS="$PTHREAD_LIBS $LIBS"
7576 save_CFLAGS="$CFLAGS"
7577 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7579 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7580 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7581 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7582 attr_name=unknown
7583 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 #include <pthread.h>
7592 main ()
7594 int attr=$attr; return attr;
7596 return 0;
7598 _ACEOF
7599 rm -f conftest.$ac_objext conftest$ac_exeext
7600 if { (ac_try="$ac_link"
7601 case "(($ac_try" in
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7604 esac
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_link") 2>conftest.er1
7607 ac_status=$?
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && {
7613 test -z "$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 } && test -s conftest$ac_exeext &&
7616 $as_test_x conftest$ac_exeext; then
7617 attr_name=$attr; break
7618 else
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7626 conftest$ac_exeext conftest.$ac_ext
7627 done
7628 { echo "$as_me:$LINENO: result: $attr_name" >&5
7629 echo "${ECHO_T}$attr_name" >&6; }
7630 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7632 cat >>confdefs.h <<_ACEOF
7633 #define PTHREAD_CREATE_JOINABLE $attr_name
7634 _ACEOF
7638 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7639 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7640 flag=no
7641 case "${host_cpu}-${host_os}" in
7642 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7643 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7644 esac
7645 { echo "$as_me:$LINENO: result: ${flag}" >&5
7646 echo "${ECHO_T}${flag}" >&6; }
7647 if test "x$flag" != xno; then
7648 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7651 LIBS="$save_LIBS"
7652 CFLAGS="$save_CFLAGS"
7654 # More AIX lossage: must compile with xlc_r or cc_r
7655 if test x"$GCC" != xyes; then
7656 for ac_prog in xlc_r cc_r
7658 # Extract the first word of "$ac_prog", so it can be a program name with args.
7659 set dummy $ac_prog; ac_word=$2
7660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7662 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 if test -n "$PTHREAD_CC"; then
7666 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_PTHREAD_CC="$ac_prog"
7676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7679 done
7680 done
7681 IFS=$as_save_IFS
7685 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7686 if test -n "$PTHREAD_CC"; then
7687 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7688 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7689 else
7690 { echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6; }
7695 test -n "$PTHREAD_CC" && break
7696 done
7697 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7699 else
7700 PTHREAD_CC=$CC
7702 else
7703 PTHREAD_CC="$CC"
7710 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7711 if test x"$acx_pthread_ok" = xyes; then
7713 cat >>confdefs.h <<\_ACEOF
7714 #define HAVE_PTHREAD 1
7715 _ACEOF
7718 else
7719 acx_pthread_ok=no
7722 ac_ext=c
7723 ac_cpp='$CPP $CPPFLAGS'
7724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730 ac_ext=c
7731 ac_cpp='$CPP $CPPFLAGS'
7732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7737 # Check whether --enable-dev-mode was given.
7738 if test "${enable_dev_mode+set}" = set; then
7739 enableval=$enable_dev_mode; case "${enableval}" in
7740 y|ye|yes) AST_DEVMODE=yes ;;
7741 n|no) AST_DEVMODE=no ;;
7742 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7743 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7744 { (exit 1); exit 1; }; } ;;
7745 esac
7750 # package option names should be in alphabetical order
7751 # by the --with option name, to make things easier for the users :-)
7754 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7755 ALSA_OPTION="asound"
7757 # Check whether --with-asound was given.
7758 if test "${with_asound+set}" = set; then
7759 withval=$with_asound;
7760 case ${withval} in
7761 n|no)
7762 USE_ALSA=no
7764 y|ye|yes)
7765 ALSA_MANDATORY="yes"
7768 ALSA_DIR="${withval}"
7769 ALSA_MANDATORY="yes"
7771 esac
7775 PBX_ALSA=0
7782 CURL_DESCRIP="cURL"
7783 CURL_OPTION="curl"
7785 # Check whether --with-curl was given.
7786 if test "${with_curl+set}" = set; then
7787 withval=$with_curl;
7788 case ${withval} in
7789 n|no)
7790 USE_CURL=no
7792 y|ye|yes)
7793 CURL_MANDATORY="yes"
7796 CURL_DIR="${withval}"
7797 CURL_MANDATORY="yes"
7799 esac
7803 PBX_CURL=0
7810 CAP_DESCRIP="POSIX 1.e capabilities"
7811 CAP_OPTION="cap"
7813 # Check whether --with-cap was given.
7814 if test "${with_cap+set}" = set; then
7815 withval=$with_cap;
7816 case ${withval} in
7817 n|no)
7818 USE_CAP=no
7820 y|ye|yes)
7821 CAP_MANDATORY="yes"
7824 CAP_DIR="${withval}"
7825 CAP_MANDATORY="yes"
7827 esac
7831 PBX_CAP=0
7838 CURSES_DESCRIP="curses"
7839 CURSES_OPTION="curses"
7841 # Check whether --with-curses was given.
7842 if test "${with_curses+set}" = set; then
7843 withval=$with_curses;
7844 case ${withval} in
7845 n|no)
7846 USE_CURSES=no
7848 y|ye|yes)
7849 CURSES_MANDATORY="yes"
7852 CURSES_DIR="${withval}"
7853 CURSES_MANDATORY="yes"
7855 esac
7859 PBX_CURSES=0
7866 DAHDI_DESCRIP="DAHDI"
7867 DAHDI_OPTION="dahdi"
7869 # Check whether --with-dahdi was given.
7870 if test "${with_dahdi+set}" = set; then
7871 withval=$with_dahdi;
7872 case ${withval} in
7873 n|no)
7874 USE_DAHDI=no
7876 y|ye|yes)
7877 DAHDI_MANDATORY="yes"
7880 DAHDI_DIR="${withval}"
7881 DAHDI_MANDATORY="yes"
7883 esac
7887 PBX_DAHDI=0
7894 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7895 GNUTLS_OPTION="gnutls"
7897 # Check whether --with-gnutls was given.
7898 if test "${with_gnutls+set}" = set; then
7899 withval=$with_gnutls;
7900 case ${withval} in
7901 n|no)
7902 USE_GNUTLS=no
7904 y|ye|yes)
7905 GNUTLS_MANDATORY="yes"
7908 GNUTLS_DIR="${withval}"
7909 GNUTLS_MANDATORY="yes"
7911 esac
7915 PBX_GNUTLS=0
7922 GSM_DESCRIP="GSM"
7923 GSM_OPTION="gsm"
7925 # Check whether --with-gsm was given.
7926 if test "${with_gsm+set}" = set; then
7927 withval=$with_gsm;
7928 case ${withval} in
7929 n|no)
7930 USE_GSM=no
7932 y|ye|yes)
7933 GSM_MANDATORY="yes"
7936 GSM_DIR="${withval}"
7937 GSM_MANDATORY="yes"
7939 esac
7943 PBX_GSM=0
7950 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7951 IKSEMEL_OPTION="iksemel"
7953 # Check whether --with-iksemel was given.
7954 if test "${with_iksemel+set}" = set; then
7955 withval=$with_iksemel;
7956 case ${withval} in
7957 n|no)
7958 USE_IKSEMEL=no
7960 y|ye|yes)
7961 IKSEMEL_MANDATORY="yes"
7964 IKSEMEL_DIR="${withval}"
7965 IKSEMEL_MANDATORY="yes"
7967 esac
7971 PBX_IKSEMEL=0
7978 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7979 IMAP_TK_OPTION="imap"
7981 # Check whether --with-imap was given.
7982 if test "${with_imap+set}" = set; then
7983 withval=$with_imap;
7984 case ${withval} in
7985 n|no)
7986 USE_IMAP_TK=no
7988 y|ye|yes)
7989 IMAP_TK_MANDATORY="yes"
7992 IMAP_TK_DIR="${withval}"
7993 IMAP_TK_MANDATORY="yes"
7995 esac
7999 PBX_IMAP_TK=0
8006 ISDNNET_DESCRIP="ISDN4Linux Library"
8007 ISDNNET_OPTION="isdnnet"
8009 # Check whether --with-isdnnet was given.
8010 if test "${with_isdnnet+set}" = set; then
8011 withval=$with_isdnnet;
8012 case ${withval} in
8013 n|no)
8014 USE_ISDNNET=no
8016 y|ye|yes)
8017 ISDNNET_MANDATORY="yes"
8020 ISDNNET_DIR="${withval}"
8021 ISDNNET_MANDATORY="yes"
8023 esac
8027 PBX_ISDNNET=0
8034 KDE_DESCRIP="KDE"
8035 KDE_OPTION="kde"
8037 # Check whether --with-kde was given.
8038 if test "${with_kde+set}" = set; then
8039 withval=$with_kde;
8040 case ${withval} in
8041 n|no)
8042 USE_KDE=no
8044 y|ye|yes)
8045 KDE_MANDATORY="yes"
8048 KDE_DIR="${withval}"
8049 KDE_MANDATORY="yes"
8051 esac
8055 PBX_KDE=0
8062 LTDL_DESCRIP="libtool"
8063 LTDL_OPTION="ltdl"
8065 # Check whether --with-ltdl was given.
8066 if test "${with_ltdl+set}" = set; then
8067 withval=$with_ltdl;
8068 case ${withval} in
8069 n|no)
8070 USE_LTDL=no
8072 y|ye|yes)
8073 LTDL_MANDATORY="yes"
8076 LTDL_DIR="${withval}"
8077 LTDL_MANDATORY="yes"
8079 esac
8083 PBX_LTDL=0
8090 MISDN_DESCRIP="mISDN User Library"
8091 MISDN_OPTION="misdn"
8093 # Check whether --with-misdn was given.
8094 if test "${with_misdn+set}" = set; then
8095 withval=$with_misdn;
8096 case ${withval} in
8097 n|no)
8098 USE_MISDN=no
8100 y|ye|yes)
8101 MISDN_MANDATORY="yes"
8104 MISDN_DIR="${withval}"
8105 MISDN_MANDATORY="yes"
8107 esac
8111 PBX_MISDN=0
8118 NBS_DESCRIP="Network Broadcast Sound"
8119 NBS_OPTION="nbs"
8121 # Check whether --with-nbs was given.
8122 if test "${with_nbs+set}" = set; then
8123 withval=$with_nbs;
8124 case ${withval} in
8125 n|no)
8126 USE_NBS=no
8128 y|ye|yes)
8129 NBS_MANDATORY="yes"
8132 NBS_DIR="${withval}"
8133 NBS_MANDATORY="yes"
8135 esac
8139 PBX_NBS=0
8146 NCURSES_DESCRIP="ncurses"
8147 NCURSES_OPTION="ncurses"
8149 # Check whether --with-ncurses was given.
8150 if test "${with_ncurses+set}" = set; then
8151 withval=$with_ncurses;
8152 case ${withval} in
8153 n|no)
8154 USE_NCURSES=no
8156 y|ye|yes)
8157 NCURSES_MANDATORY="yes"
8160 NCURSES_DIR="${withval}"
8161 NCURSES_MANDATORY="yes"
8163 esac
8167 PBX_NCURSES=0
8174 NETSNMP_DESCRIP="Net-SNMP"
8175 NETSNMP_OPTION="netsnmp"
8177 # Check whether --with-netsnmp was given.
8178 if test "${with_netsnmp+set}" = set; then
8179 withval=$with_netsnmp;
8180 case ${withval} in
8181 n|no)
8182 USE_NETSNMP=no
8184 y|ye|yes)
8185 NETSNMP_MANDATORY="yes"
8188 NETSNMP_DIR="${withval}"
8189 NETSNMP_MANDATORY="yes"
8191 esac
8195 PBX_NETSNMP=0
8202 NEWT_DESCRIP="newt"
8203 NEWT_OPTION="newt"
8205 # Check whether --with-newt was given.
8206 if test "${with_newt+set}" = set; then
8207 withval=$with_newt;
8208 case ${withval} in
8209 n|no)
8210 USE_NEWT=no
8212 y|ye|yes)
8213 NEWT_MANDATORY="yes"
8216 NEWT_DIR="${withval}"
8217 NEWT_MANDATORY="yes"
8219 esac
8223 PBX_NEWT=0
8230 UNIXODBC_DESCRIP="unixODBC"
8231 UNIXODBC_OPTION="odbc"
8233 # Check whether --with-odbc was given.
8234 if test "${with_odbc+set}" = set; then
8235 withval=$with_odbc;
8236 case ${withval} in
8237 n|no)
8238 USE_UNIXODBC=no
8240 y|ye|yes)
8241 UNIXODBC_MANDATORY="yes"
8244 UNIXODBC_DIR="${withval}"
8245 UNIXODBC_MANDATORY="yes"
8247 esac
8251 PBX_UNIXODBC=0
8258 OGG_DESCRIP="OGG"
8259 OGG_OPTION="ogg"
8261 # Check whether --with-ogg was given.
8262 if test "${with_ogg+set}" = set; then
8263 withval=$with_ogg;
8264 case ${withval} in
8265 n|no)
8266 USE_OGG=no
8268 y|ye|yes)
8269 OGG_MANDATORY="yes"
8272 OGG_DIR="${withval}"
8273 OGG_MANDATORY="yes"
8275 esac
8279 PBX_OGG=0
8286 OSPTK_DESCRIP="OSP Toolkit"
8287 OSPTK_OPTION="osptk"
8289 # Check whether --with-osptk was given.
8290 if test "${with_osptk+set}" = set; then
8291 withval=$with_osptk;
8292 case ${withval} in
8293 n|no)
8294 USE_OSPTK=no
8296 y|ye|yes)
8297 OSPTK_MANDATORY="yes"
8300 OSPTK_DIR="${withval}"
8301 OSPTK_MANDATORY="yes"
8303 esac
8307 PBX_OSPTK=0
8314 OSS_DESCRIP="Open Sound System"
8315 OSS_OPTION="oss"
8317 # Check whether --with-oss was given.
8318 if test "${with_oss+set}" = set; then
8319 withval=$with_oss;
8320 case ${withval} in
8321 n|no)
8322 USE_OSS=no
8324 y|ye|yes)
8325 OSS_MANDATORY="yes"
8328 OSS_DIR="${withval}"
8329 OSS_MANDATORY="yes"
8331 esac
8335 PBX_OSS=0
8342 POPT_DESCRIP="popt"
8343 POPT_OPTION="popt"
8345 # Check whether --with-popt was given.
8346 if test "${with_popt+set}" = set; then
8347 withval=$with_popt;
8348 case ${withval} in
8349 n|no)
8350 USE_POPT=no
8352 y|ye|yes)
8353 POPT_MANDATORY="yes"
8356 POPT_DIR="${withval}"
8357 POPT_MANDATORY="yes"
8359 esac
8363 PBX_POPT=0
8370 PGSQL_DESCRIP="PostgreSQL"
8371 PGSQL_OPTION="postgres"
8373 # Check whether --with-postgres was given.
8374 if test "${with_postgres+set}" = set; then
8375 withval=$with_postgres;
8376 case ${withval} in
8377 n|no)
8378 USE_PGSQL=no
8380 y|ye|yes)
8381 PGSQL_MANDATORY="yes"
8384 PGSQL_DIR="${withval}"
8385 PGSQL_MANDATORY="yes"
8387 esac
8391 PBX_PGSQL=0
8398 PRI_DESCRIP="ISDN PRI"
8399 PRI_OPTION="pri"
8401 # Check whether --with-pri was given.
8402 if test "${with_pri+set}" = set; then
8403 withval=$with_pri;
8404 case ${withval} in
8405 n|no)
8406 USE_PRI=no
8408 y|ye|yes)
8409 PRI_MANDATORY="yes"
8412 PRI_DIR="${withval}"
8413 PRI_MANDATORY="yes"
8415 esac
8419 PBX_PRI=0
8426 PWLIB_DESCRIP="PWlib"
8427 PWLIB_OPTION="pwlib"
8429 # Check whether --with-pwlib was given.
8430 if test "${with_pwlib+set}" = set; then
8431 withval=$with_pwlib;
8432 case ${withval} in
8433 n|no)
8434 USE_PWLIB=no
8436 y|ye|yes)
8437 PWLIB_MANDATORY="yes"
8440 PWLIB_DIR="${withval}"
8441 PWLIB_MANDATORY="yes"
8443 esac
8447 PBX_PWLIB=0
8454 OPENH323_DESCRIP="OpenH323"
8455 OPENH323_OPTION="h323"
8457 # Check whether --with-h323 was given.
8458 if test "${with_h323+set}" = set; then
8459 withval=$with_h323;
8460 case ${withval} in
8461 n|no)
8462 USE_OPENH323=no
8464 y|ye|yes)
8465 OPENH323_MANDATORY="yes"
8468 OPENH323_DIR="${withval}"
8469 OPENH323_MANDATORY="yes"
8471 esac
8475 PBX_OPENH323=0
8482 RADIUS_DESCRIP="Radius Client"
8483 RADIUS_OPTION="radius"
8485 # Check whether --with-radius was given.
8486 if test "${with_radius+set}" = set; then
8487 withval=$with_radius;
8488 case ${withval} in
8489 n|no)
8490 USE_RADIUS=no
8492 y|ye|yes)
8493 RADIUS_MANDATORY="yes"
8496 RADIUS_DIR="${withval}"
8497 RADIUS_MANDATORY="yes"
8499 esac
8503 PBX_RADIUS=0
8510 SPEEX_DESCRIP="Speex"
8511 SPEEX_OPTION="speex"
8513 # Check whether --with-speex was given.
8514 if test "${with_speex+set}" = set; then
8515 withval=$with_speex;
8516 case ${withval} in
8517 n|no)
8518 USE_SPEEX=no
8520 y|ye|yes)
8521 SPEEX_MANDATORY="yes"
8524 SPEEX_DIR="${withval}"
8525 SPEEX_MANDATORY="yes"
8527 esac
8531 PBX_SPEEX=0
8538 SPEEXDSP_DESCRIP="Speexdsp"
8539 SPEEXDSP_OPTION="speexdsp"
8541 # Check whether --with-speexdsp was given.
8542 if test "${with_speexdsp+set}" = set; then
8543 withval=$with_speexdsp;
8544 case ${withval} in
8545 n|no)
8546 USE_SPEEXDSP=no
8548 y|ye|yes)
8549 SPEEXDSP_MANDATORY="yes"
8552 SPEEXDSP_DIR="${withval}"
8553 SPEEXDSP_MANDATORY="yes"
8555 esac
8559 PBX_SPEEXDSP=0
8566 SQLITE_DESCRIP="SQLite"
8567 SQLITE_OPTION="sqlite"
8569 # Check whether --with-sqlite was given.
8570 if test "${with_sqlite+set}" = set; then
8571 withval=$with_sqlite;
8572 case ${withval} in
8573 n|no)
8574 USE_SQLITE=no
8576 y|ye|yes)
8577 SQLITE_MANDATORY="yes"
8580 SQLITE_DIR="${withval}"
8581 SQLITE_MANDATORY="yes"
8583 esac
8587 PBX_SQLITE=0
8594 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8595 SUPPSERV_OPTION="suppserv"
8597 # Check whether --with-suppserv was given.
8598 if test "${with_suppserv+set}" = set; then
8599 withval=$with_suppserv;
8600 case ${withval} in
8601 n|no)
8602 USE_SUPPSERV=no
8604 y|ye|yes)
8605 SUPPSERV_MANDATORY="yes"
8608 SUPPSERV_DIR="${withval}"
8609 SUPPSERV_MANDATORY="yes"
8611 esac
8615 PBX_SUPPSERV=0
8622 OPENSSL_DESCRIP="OpenSSL"
8623 OPENSSL_OPTION="ssl"
8625 # Check whether --with-ssl was given.
8626 if test "${with_ssl+set}" = set; then
8627 withval=$with_ssl;
8628 case ${withval} in
8629 n|no)
8630 USE_OPENSSL=no
8632 y|ye|yes)
8633 OPENSSL_MANDATORY="yes"
8636 OPENSSL_DIR="${withval}"
8637 OPENSSL_MANDATORY="yes"
8639 esac
8643 PBX_OPENSSL=0
8650 FREETDS_DESCRIP="FreeTDS"
8651 FREETDS_OPTION="tds"
8653 # Check whether --with-tds was given.
8654 if test "${with_tds+set}" = set; then
8655 withval=$with_tds;
8656 case ${withval} in
8657 n|no)
8658 USE_FREETDS=no
8660 y|ye|yes)
8661 FREETDS_MANDATORY="yes"
8664 FREETDS_DIR="${withval}"
8665 FREETDS_MANDATORY="yes"
8667 esac
8671 PBX_FREETDS=0
8678 TERMCAP_DESCRIP="Termcap"
8679 TERMCAP_OPTION="termcap"
8681 # Check whether --with-termcap was given.
8682 if test "${with_termcap+set}" = set; then
8683 withval=$with_termcap;
8684 case ${withval} in
8685 n|no)
8686 USE_TERMCAP=no
8688 y|ye|yes)
8689 TERMCAP_MANDATORY="yes"
8692 TERMCAP_DIR="${withval}"
8693 TERMCAP_MANDATORY="yes"
8695 esac
8699 PBX_TERMCAP=0
8706 TINFO_DESCRIP="Term Info"
8707 TINFO_OPTION="tinfo"
8709 # Check whether --with-tinfo was given.
8710 if test "${with_tinfo+set}" = set; then
8711 withval=$with_tinfo;
8712 case ${withval} in
8713 n|no)
8714 USE_TINFO=no
8716 y|ye|yes)
8717 TINFO_MANDATORY="yes"
8720 TINFO_DIR="${withval}"
8721 TINFO_MANDATORY="yes"
8723 esac
8727 PBX_TINFO=0
8734 TONEZONE_DESCRIP="tonezone"
8735 TONEZONE_OPTION="tonezone"
8737 # Check whether --with-tonezone was given.
8738 if test "${with_tonezone+set}" = set; then
8739 withval=$with_tonezone;
8740 case ${withval} in
8741 n|no)
8742 USE_TONEZONE=no
8744 y|ye|yes)
8745 TONEZONE_MANDATORY="yes"
8748 TONEZONE_DIR="${withval}"
8749 TONEZONE_MANDATORY="yes"
8751 esac
8755 PBX_TONEZONE=0
8762 USB_DESCRIP="usb"
8763 USB_OPTION="usb"
8765 # Check whether --with-usb was given.
8766 if test "${with_usb+set}" = set; then
8767 withval=$with_usb;
8768 case ${withval} in
8769 n|no)
8770 USE_USB=no
8772 y|ye|yes)
8773 USB_MANDATORY="yes"
8776 USB_DIR="${withval}"
8777 USB_MANDATORY="yes"
8779 esac
8783 PBX_USB=0
8790 VORBIS_DESCRIP="Vorbis"
8791 VORBIS_OPTION="vorbis"
8793 # Check whether --with-vorbis was given.
8794 if test "${with_vorbis+set}" = set; then
8795 withval=$with_vorbis;
8796 case ${withval} in
8797 n|no)
8798 USE_VORBIS=no
8800 y|ye|yes)
8801 VORBIS_MANDATORY="yes"
8804 VORBIS_DIR="${withval}"
8805 VORBIS_MANDATORY="yes"
8807 esac
8811 PBX_VORBIS=0
8818 VPB_DESCRIP="Voicetronix API"
8819 VPB_OPTION="vpb"
8821 # Check whether --with-vpb was given.
8822 if test "${with_vpb+set}" = set; then
8823 withval=$with_vpb;
8824 case ${withval} in
8825 n|no)
8826 USE_VPB=no
8828 y|ye|yes)
8829 VPB_MANDATORY="yes"
8832 VPB_DIR="${withval}"
8833 VPB_MANDATORY="yes"
8835 esac
8839 PBX_VPB=0
8846 ZLIB_DESCRIP="zlib"
8847 ZLIB_OPTION="z"
8849 # Check whether --with-z was given.
8850 if test "${with_z+set}" = set; then
8851 withval=$with_z;
8852 case ${withval} in
8853 n|no)
8854 USE_ZLIB=no
8856 y|ye|yes)
8857 ZLIB_MANDATORY="yes"
8860 ZLIB_DIR="${withval}"
8861 ZLIB_MANDATORY="yes"
8863 esac
8867 PBX_ZLIB=0
8874 ZAPTEL_DESCRIP="Zaptel"
8875 ZAPTEL_OPTION="zaptel"
8877 # Check whether --with-zaptel was given.
8878 if test "${with_zaptel+set}" = set; then
8879 withval=$with_zaptel;
8880 case ${withval} in
8881 n|no)
8882 USE_ZAPTEL=no
8884 y|ye|yes)
8885 ZAPTEL_MANDATORY="yes"
8888 ZAPTEL_DIR="${withval}"
8889 ZAPTEL_MANDATORY="yes"
8891 esac
8895 PBX_ZAPTEL=0
8902 # check for basic system features and functionality before
8903 # checking for package libraries
8905 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8906 # for constant arguments. Useless!
8907 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8908 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8909 if test "${ac_cv_working_alloca_h+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912 cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h. */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918 #include <alloca.h>
8920 main ()
8922 char *p = (char *) alloca (2 * sizeof (int));
8923 if (p) return 0;
8925 return 0;
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8930 case "(($ac_try" in
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8933 esac
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_link") 2>conftest.er1
8936 ac_status=$?
8937 grep -v '^ *+' conftest.er1 >conftest.err
8938 rm -f conftest.er1
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } && {
8942 test -z "$ac_c_werror_flag" ||
8943 test ! -s conftest.err
8944 } && test -s conftest$ac_exeext &&
8945 $as_test_x conftest$ac_exeext; then
8946 ac_cv_working_alloca_h=yes
8947 else
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8951 ac_cv_working_alloca_h=no
8954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8955 conftest$ac_exeext conftest.$ac_ext
8957 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8958 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8959 if test $ac_cv_working_alloca_h = yes; then
8961 cat >>confdefs.h <<\_ACEOF
8962 #define HAVE_ALLOCA_H 1
8963 _ACEOF
8967 { echo "$as_me:$LINENO: checking for alloca" >&5
8968 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8969 if test "${ac_cv_func_alloca_works+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 else
8972 cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h. */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 #ifdef __GNUC__
8979 # define alloca __builtin_alloca
8980 #else
8981 # ifdef _MSC_VER
8982 # include <malloc.h>
8983 # define alloca _alloca
8984 # else
8985 # ifdef HAVE_ALLOCA_H
8986 # include <alloca.h>
8987 # else
8988 # ifdef _AIX
8989 #pragma alloca
8990 # else
8991 # ifndef alloca /* predefined by HP cc +Olibcalls */
8992 char *alloca ();
8993 # endif
8994 # endif
8995 # endif
8996 # endif
8997 #endif
9000 main ()
9002 char *p = (char *) alloca (1);
9003 if (p) return 0;
9005 return 0;
9007 _ACEOF
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (ac_try="$ac_link"
9010 case "(($ac_try" in
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9013 esac
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015 (eval "$ac_link") 2>conftest.er1
9016 ac_status=$?
9017 grep -v '^ *+' conftest.er1 >conftest.err
9018 rm -f conftest.er1
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } && {
9022 test -z "$ac_c_werror_flag" ||
9023 test ! -s conftest.err
9024 } && test -s conftest$ac_exeext &&
9025 $as_test_x conftest$ac_exeext; then
9026 ac_cv_func_alloca_works=yes
9027 else
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_cv_func_alloca_works=no
9034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9035 conftest$ac_exeext conftest.$ac_ext
9037 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9038 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9040 if test $ac_cv_func_alloca_works = yes; then
9042 cat >>confdefs.h <<\_ACEOF
9043 #define HAVE_ALLOCA 1
9044 _ACEOF
9046 else
9047 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9048 # that cause trouble. Some versions do not even contain alloca or
9049 # contain a buggy version. If you still want to use their alloca,
9050 # use ar to extract alloca.o from them instead of compiling alloca.c.
9052 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9054 cat >>confdefs.h <<\_ACEOF
9055 #define C_ALLOCA 1
9056 _ACEOF
9059 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9060 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9061 if test "${ac_cv_os_cray+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064 cat >conftest.$ac_ext <<_ACEOF
9065 /* confdefs.h. */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 #if defined CRAY && ! defined CRAY2
9071 webecray
9072 #else
9073 wenotbecray
9074 #endif
9076 _ACEOF
9077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9078 $EGREP "webecray" >/dev/null 2>&1; then
9079 ac_cv_os_cray=yes
9080 else
9081 ac_cv_os_cray=no
9083 rm -f conftest*
9086 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9087 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9088 if test $ac_cv_os_cray = yes; then
9089 for ac_func in _getb67 GETB67 getb67; do
9090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9104 #define $ac_func innocuous_$ac_func
9106 /* System header to define __stub macros and hopefully few prototypes,
9107 which can conflict with char $ac_func (); below.
9108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9109 <limits.h> exists even on freestanding compilers. */
9111 #ifdef __STDC__
9112 # include <limits.h>
9113 #else
9114 # include <assert.h>
9115 #endif
9117 #undef $ac_func
9119 /* Override any GCC internal prototype to avoid an error.
9120 Use char because int might match the return type of a GCC
9121 builtin and then its argument prototype would still apply. */
9122 #ifdef __cplusplus
9123 extern "C"
9124 #endif
9125 char $ac_func ();
9126 /* The GNU C library defines this for functions which it implements
9127 to always fail with ENOSYS. Some functions are actually named
9128 something starting with __ and the normal name is an alias. */
9129 #if defined __stub_$ac_func || defined __stub___$ac_func
9130 choke me
9131 #endif
9134 main ()
9136 return $ac_func ();
9138 return 0;
9140 _ACEOF
9141 rm -f conftest.$ac_objext conftest$ac_exeext
9142 if { (ac_try="$ac_link"
9143 case "(($ac_try" in
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9146 esac
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_link") 2>conftest.er1
9149 ac_status=$?
9150 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -f conftest.er1
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } && {
9155 test -z "$ac_c_werror_flag" ||
9156 test ! -s conftest.err
9157 } && test -s conftest$ac_exeext &&
9158 $as_test_x conftest$ac_exeext; then
9159 eval "$as_ac_var=yes"
9160 else
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9164 eval "$as_ac_var=no"
9167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9168 conftest$ac_exeext conftest.$ac_ext
9170 ac_res=`eval echo '${'$as_ac_var'}'`
9171 { echo "$as_me:$LINENO: result: $ac_res" >&5
9172 echo "${ECHO_T}$ac_res" >&6; }
9173 if test `eval echo '${'$as_ac_var'}'` = yes; then
9175 cat >>confdefs.h <<_ACEOF
9176 #define CRAY_STACKSEG_END $ac_func
9177 _ACEOF
9179 break
9182 done
9185 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9186 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9187 if test "${ac_cv_c_stack_direction+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190 if test "$cross_compiling" = yes; then
9191 ac_cv_c_stack_direction=0
9192 else
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 $ac_includes_default
9201 find_stack_direction ()
9203 static char *addr = 0;
9204 auto char dummy;
9205 if (addr == 0)
9207 addr = &dummy;
9208 return find_stack_direction ();
9210 else
9211 return (&dummy > addr) ? 1 : -1;
9215 main ()
9217 return find_stack_direction () < 0;
9219 _ACEOF
9220 rm -f conftest$ac_exeext
9221 if { (ac_try="$ac_link"
9222 case "(($ac_try" in
9223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9224 *) ac_try_echo=$ac_try;;
9225 esac
9226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9227 (eval "$ac_link") 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9231 { (case "(($ac_try" in
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9234 esac
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_try") 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_cv_c_stack_direction=1
9241 else
9242 echo "$as_me: program exited with status $ac_status" >&5
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9246 ( exit $ac_status )
9247 ac_cv_c_stack_direction=-1
9249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9254 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9255 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9257 cat >>confdefs.h <<_ACEOF
9258 #define STACK_DIRECTION $ac_cv_c_stack_direction
9259 _ACEOF
9269 ac_header_dirent=no
9270 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9271 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9272 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9273 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277 cat >conftest.$ac_ext <<_ACEOF
9278 /* confdefs.h. */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 #include <sys/types.h>
9284 #include <$ac_hdr>
9287 main ()
9289 if ((DIR *) 0)
9290 return 0;
9292 return 0;
9294 _ACEOF
9295 rm -f conftest.$ac_objext
9296 if { (ac_try="$ac_compile"
9297 case "(($ac_try" in
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9300 esac
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_compile") 2>conftest.er1
9303 ac_status=$?
9304 grep -v '^ *+' conftest.er1 >conftest.err
9305 rm -f conftest.er1
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest.$ac_objext; then
9312 eval "$as_ac_Header=yes"
9313 else
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 eval "$as_ac_Header=no"
9320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 ac_res=`eval echo '${'$as_ac_Header'}'`
9323 { echo "$as_me:$LINENO: result: $ac_res" >&5
9324 echo "${ECHO_T}$ac_res" >&6; }
9325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9326 cat >>confdefs.h <<_ACEOF
9327 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9328 _ACEOF
9330 ac_header_dirent=$ac_hdr; break
9333 done
9334 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9335 if test $ac_header_dirent = dirent.h; then
9336 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9337 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9338 if test "${ac_cv_search_opendir+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341 ac_func_search_save_LIBS=$LIBS
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9349 /* Override any GCC internal prototype to avoid an error.
9350 Use char because int might match the return type of a GCC
9351 builtin and then its argument prototype would still apply. */
9352 #ifdef __cplusplus
9353 extern "C"
9354 #endif
9355 char opendir ();
9357 main ()
9359 return opendir ();
9361 return 0;
9363 _ACEOF
9364 for ac_lib in '' dir; do
9365 if test -z "$ac_lib"; then
9366 ac_res="none required"
9367 else
9368 ac_res=-l$ac_lib
9369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9371 rm -f conftest.$ac_objext conftest$ac_exeext
9372 if { (ac_try="$ac_link"
9373 case "(($ac_try" in
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9376 esac
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_link") 2>conftest.er1
9379 ac_status=$?
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest$ac_exeext &&
9388 $as_test_x conftest$ac_exeext; then
9389 ac_cv_search_opendir=$ac_res
9390 else
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9398 conftest$ac_exeext
9399 if test "${ac_cv_search_opendir+set}" = set; then
9400 break
9402 done
9403 if test "${ac_cv_search_opendir+set}" = set; then
9405 else
9406 ac_cv_search_opendir=no
9408 rm conftest.$ac_ext
9409 LIBS=$ac_func_search_save_LIBS
9411 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9412 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9413 ac_res=$ac_cv_search_opendir
9414 if test "$ac_res" != no; then
9415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9419 else
9420 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9421 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9422 if test "${ac_cv_search_opendir+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425 ac_func_search_save_LIBS=$LIBS
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9433 /* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
9436 #ifdef __cplusplus
9437 extern "C"
9438 #endif
9439 char opendir ();
9441 main ()
9443 return opendir ();
9445 return 0;
9447 _ACEOF
9448 for ac_lib in '' x; do
9449 if test -z "$ac_lib"; then
9450 ac_res="none required"
9451 else
9452 ac_res=-l$ac_lib
9453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (ac_try="$ac_link"
9457 case "(($ac_try" in
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9460 esac
9461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462 (eval "$ac_link") 2>conftest.er1
9463 ac_status=$?
9464 grep -v '^ *+' conftest.er1 >conftest.err
9465 rm -f conftest.er1
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } && {
9469 test -z "$ac_c_werror_flag" ||
9470 test ! -s conftest.err
9471 } && test -s conftest$ac_exeext &&
9472 $as_test_x conftest$ac_exeext; then
9473 ac_cv_search_opendir=$ac_res
9474 else
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9482 conftest$ac_exeext
9483 if test "${ac_cv_search_opendir+set}" = set; then
9484 break
9486 done
9487 if test "${ac_cv_search_opendir+set}" = set; then
9489 else
9490 ac_cv_search_opendir=no
9492 rm conftest.$ac_ext
9493 LIBS=$ac_func_search_save_LIBS
9495 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9496 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9497 ac_res=$ac_cv_search_opendir
9498 if test "$ac_res" != no; then
9499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9505 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9506 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9507 if test "${ac_cv_header_stdc+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h. */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9516 #include <stdlib.h>
9517 #include <stdarg.h>
9518 #include <string.h>
9519 #include <float.h>
9522 main ()
9526 return 0;
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9531 case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_compile") 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest.$ac_objext; then
9546 ac_cv_header_stdc=yes
9547 else
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9551 ac_cv_header_stdc=no
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 if test $ac_cv_header_stdc = yes; then
9557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9558 cat >conftest.$ac_ext <<_ACEOF
9559 /* confdefs.h. */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 #include <string.h>
9566 _ACEOF
9567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9568 $EGREP "memchr" >/dev/null 2>&1; then
9570 else
9571 ac_cv_header_stdc=no
9573 rm -f conftest*
9577 if test $ac_cv_header_stdc = yes; then
9578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9579 cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h. */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 #include <stdlib.h>
9587 _ACEOF
9588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9589 $EGREP "free" >/dev/null 2>&1; then
9591 else
9592 ac_cv_header_stdc=no
9594 rm -f conftest*
9598 if test $ac_cv_header_stdc = yes; then
9599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9600 if test "$cross_compiling" = yes; then
9602 else
9603 cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h. */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 #include <ctype.h>
9610 #include <stdlib.h>
9611 #if ((' ' & 0x0FF) == 0x020)
9612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9614 #else
9615 # define ISLOWER(c) \
9616 (('a' <= (c) && (c) <= 'i') \
9617 || ('j' <= (c) && (c) <= 'r') \
9618 || ('s' <= (c) && (c) <= 'z'))
9619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9620 #endif
9622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9624 main ()
9626 int i;
9627 for (i = 0; i < 256; i++)
9628 if (XOR (islower (i), ISLOWER (i))
9629 || toupper (i) != TOUPPER (i))
9630 return 2;
9631 return 0;
9633 _ACEOF
9634 rm -f conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9636 case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_link") 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9645 { (case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9648 esac
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_try") 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; }; then
9655 else
9656 echo "$as_me: program exited with status $ac_status" >&5
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ( exit $ac_status )
9661 ac_cv_header_stdc=no
9663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9669 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9670 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9671 if test $ac_cv_header_stdc = yes; then
9673 cat >>confdefs.h <<\_ACEOF
9674 #define STDC_HEADERS 1
9675 _ACEOF
9679 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9680 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9681 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684 cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h. */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 #include <sys/types.h>
9691 #include <sys/wait.h>
9692 #ifndef WEXITSTATUS
9693 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9694 #endif
9695 #ifndef WIFEXITED
9696 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9697 #endif
9700 main ()
9702 int s;
9703 wait (&s);
9704 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9706 return 0;
9708 _ACEOF
9709 rm -f conftest.$ac_objext
9710 if { (ac_try="$ac_compile"
9711 case "(($ac_try" in
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9714 esac
9715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_compile") 2>conftest.er1
9717 ac_status=$?
9718 grep -v '^ *+' conftest.er1 >conftest.err
9719 rm -f conftest.er1
9720 cat conftest.err >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest.$ac_objext; then
9726 ac_cv_header_sys_wait_h=yes
9727 else
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_cv_header_sys_wait_h=no
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9737 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9738 if test $ac_cv_header_sys_wait_h = yes; then
9740 cat >>confdefs.h <<\_ACEOF
9741 #define HAVE_SYS_WAIT_H 1
9742 _ACEOF
9770 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
9772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 ac_res=`eval echo '${'$as_ac_Header'}'`
9780 { echo "$as_me:$LINENO: result: $ac_res" >&5
9781 echo "${ECHO_T}$ac_res" >&6; }
9782 else
9783 # Is the header compilable?
9784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 $ac_includes_default
9793 #include <$ac_header>
9794 _ACEOF
9795 rm -f conftest.$ac_objext
9796 if { (ac_try="$ac_compile"
9797 case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9800 esac
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_compile") 2>conftest.er1
9803 ac_status=$?
9804 grep -v '^ *+' conftest.er1 >conftest.err
9805 rm -f conftest.er1
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } && {
9809 test -z "$ac_c_werror_flag" ||
9810 test ! -s conftest.err
9811 } && test -s conftest.$ac_objext; then
9812 ac_header_compiler=yes
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_header_compiler=no
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9822 echo "${ECHO_T}$ac_header_compiler" >&6; }
9824 # Is the header present?
9825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9827 cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h. */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 #include <$ac_header>
9834 _ACEOF
9835 if { (ac_try="$ac_cpp conftest.$ac_ext"
9836 case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } >/dev/null && {
9848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9850 }; then
9851 ac_header_preproc=yes
9852 else
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_header_preproc=no
9859 rm -f conftest.err conftest.$ac_ext
9860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9861 echo "${ECHO_T}$ac_header_preproc" >&6; }
9863 # So? What about this header?
9864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9865 yes:no: )
9866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9870 ac_header_preproc=yes
9872 no:yes:* )
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9885 ( cat <<\_ASBOX
9886 ## ------------------------------- ##
9887 ## Report this to www.asterisk.org ##
9888 ## ------------------------------- ##
9889 _ASBOX
9890 ) | sed "s/^/$as_me: WARNING: /" >&2
9892 esac
9893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 eval "$as_ac_Header=\$ac_header_preproc"
9900 ac_res=`eval echo '${'$as_ac_Header'}'`
9901 { echo "$as_me:$LINENO: result: $ac_res" >&5
9902 echo "${ECHO_T}$ac_res" >&6; }
9905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9906 cat >>confdefs.h <<_ACEOF
9907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9908 _ACEOF
9912 done
9915 # Check whether --enable-largefile was given.
9916 if test "${enable_largefile+set}" = set; then
9917 enableval=$enable_largefile;
9920 if test "$enable_largefile" != no; then
9922 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9923 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9924 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927 ac_cv_sys_largefile_CC=no
9928 if test "$GCC" != yes; then
9929 ac_save_CC=$CC
9930 while :; do
9931 # IRIX 6.2 and later do not support large files by default,
9932 # so use the C compiler's -n32 option if that helps.
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 #include <sys/types.h>
9940 /* Check that off_t can represent 2**63 - 1 correctly.
9941 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9942 since some C++ compilers masquerading as C compilers
9943 incorrectly reject 9223372036854775807. */
9944 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9946 && LARGE_OFF_T % 2147483647 == 1)
9947 ? 1 : -1];
9949 main ()
9953 return 0;
9955 _ACEOF
9956 rm -f conftest.$ac_objext
9957 if { (ac_try="$ac_compile"
9958 case "(($ac_try" in
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9961 esac
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_compile") 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && {
9970 test -z "$ac_c_werror_flag" ||
9971 test ! -s conftest.err
9972 } && test -s conftest.$ac_objext; then
9973 break
9974 else
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9981 rm -f core conftest.err conftest.$ac_objext
9982 CC="$CC -n32"
9983 rm -f conftest.$ac_objext
9984 if { (ac_try="$ac_compile"
9985 case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_compile") 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } && {
9997 test -z "$ac_c_werror_flag" ||
9998 test ! -s conftest.err
9999 } && test -s conftest.$ac_objext; then
10000 ac_cv_sys_largefile_CC=' -n32'; break
10001 else
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10008 rm -f core conftest.err conftest.$ac_objext
10009 break
10010 done
10011 CC=$ac_save_CC
10012 rm -f conftest.$ac_ext
10015 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10016 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10017 if test "$ac_cv_sys_largefile_CC" != no; then
10018 CC=$CC$ac_cv_sys_largefile_CC
10021 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10022 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10023 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026 while :; do
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h. */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10033 #include <sys/types.h>
10034 /* Check that off_t can represent 2**63 - 1 correctly.
10035 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10036 since some C++ compilers masquerading as C compilers
10037 incorrectly reject 9223372036854775807. */
10038 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10039 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10040 && LARGE_OFF_T % 2147483647 == 1)
10041 ? 1 : -1];
10043 main ()
10047 return 0;
10049 _ACEOF
10050 rm -f conftest.$ac_objext
10051 if { (ac_try="$ac_compile"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_compile") 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest.$ac_objext; then
10067 ac_cv_sys_file_offset_bits=no; break
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h. */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 #define _FILE_OFFSET_BITS 64
10083 #include <sys/types.h>
10084 /* Check that off_t can represent 2**63 - 1 correctly.
10085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10086 since some C++ compilers masquerading as C compilers
10087 incorrectly reject 9223372036854775807. */
10088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10090 && LARGE_OFF_T % 2147483647 == 1)
10091 ? 1 : -1];
10093 main ()
10097 return 0;
10099 _ACEOF
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10105 esac
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_compile") 2>conftest.er1
10108 ac_status=$?
10109 grep -v '^ *+' conftest.er1 >conftest.err
10110 rm -f conftest.er1
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && {
10114 test -z "$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 } && test -s conftest.$ac_objext; then
10117 ac_cv_sys_file_offset_bits=64; break
10118 else
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126 ac_cv_sys_file_offset_bits=unknown
10127 break
10128 done
10130 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10131 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10132 case $ac_cv_sys_file_offset_bits in #(
10133 no | unknown) ;;
10135 cat >>confdefs.h <<_ACEOF
10136 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10137 _ACEOF
10139 esac
10140 rm -f conftest*
10141 if test $ac_cv_sys_file_offset_bits = unknown; then
10142 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10143 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10144 if test "${ac_cv_sys_large_files+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147 while :; do
10148 cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h. */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10154 #include <sys/types.h>
10155 /* Check that off_t can represent 2**63 - 1 correctly.
10156 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10157 since some C++ compilers masquerading as C compilers
10158 incorrectly reject 9223372036854775807. */
10159 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10160 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10161 && LARGE_OFF_T % 2147483647 == 1)
10162 ? 1 : -1];
10164 main ()
10168 return 0;
10170 _ACEOF
10171 rm -f conftest.$ac_objext
10172 if { (ac_try="$ac_compile"
10173 case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10176 esac
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_compile") 2>conftest.er1
10179 ac_status=$?
10180 grep -v '^ *+' conftest.er1 >conftest.err
10181 rm -f conftest.er1
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && {
10185 test -z "$ac_c_werror_flag" ||
10186 test ! -s conftest.err
10187 } && test -s conftest.$ac_objext; then
10188 ac_cv_sys_large_files=no; break
10189 else
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 cat >conftest.$ac_ext <<_ACEOF
10198 /* confdefs.h. */
10199 _ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 #define _LARGE_FILES 1
10204 #include <sys/types.h>
10205 /* Check that off_t can represent 2**63 - 1 correctly.
10206 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10207 since some C++ compilers masquerading as C compilers
10208 incorrectly reject 9223372036854775807. */
10209 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10211 && LARGE_OFF_T % 2147483647 == 1)
10212 ? 1 : -1];
10214 main ()
10218 return 0;
10220 _ACEOF
10221 rm -f conftest.$ac_objext
10222 if { (ac_try="$ac_compile"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226 esac
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_compile") 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest.$ac_objext; then
10238 ac_cv_sys_large_files=1; break
10239 else
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247 ac_cv_sys_large_files=unknown
10248 break
10249 done
10251 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10252 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10253 case $ac_cv_sys_large_files in #(
10254 no | unknown) ;;
10256 cat >>confdefs.h <<_ACEOF
10257 #define _LARGE_FILES $ac_cv_sys_large_files
10258 _ACEOF
10260 esac
10261 rm -f conftest*
10266 # Checks for typedefs, structures, and compiler characteristics.
10267 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10268 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10269 if test "${ac_cv_header_stdbool_h+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 else
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10279 #include <stdbool.h>
10280 #ifndef bool
10281 "error: bool is not defined"
10282 #endif
10283 #ifndef false
10284 "error: false is not defined"
10285 #endif
10286 #if false
10287 "error: false is not 0"
10288 #endif
10289 #ifndef true
10290 "error: true is not defined"
10291 #endif
10292 #if true != 1
10293 "error: true is not 1"
10294 #endif
10295 #ifndef __bool_true_false_are_defined
10296 "error: __bool_true_false_are_defined is not defined"
10297 #endif
10299 struct s { _Bool s: 1; _Bool t; } s;
10301 char a[true == 1 ? 1 : -1];
10302 char b[false == 0 ? 1 : -1];
10303 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10304 char d[(bool) 0.5 == true ? 1 : -1];
10305 bool e = &s;
10306 char f[(_Bool) 0.0 == false ? 1 : -1];
10307 char g[true];
10308 char h[sizeof (_Bool)];
10309 char i[sizeof s.t];
10310 enum { j = false, k = true, l = false * true, m = true * 256 };
10311 _Bool n[m];
10312 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10313 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10314 # if defined __xlc__ || defined __GNUC__
10315 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10316 reported by James Lemley on 2005-10-05; see
10317 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10318 This test is not quite right, since xlc is allowed to
10319 reject this program, as the initializer for xlcbug is
10320 not one of the forms that C requires support for.
10321 However, doing the test right would require a runtime
10322 test, and that would make cross-compilation harder.
10323 Let us hope that IBM fixes the xlc bug, and also adds
10324 support for this kind of constant expression. In the
10325 meantime, this test will reject xlc, which is OK, since
10326 our stdbool.h substitute should suffice. We also test
10327 this with GCC, where it should work, to detect more
10328 quickly whether someone messes up the test in the
10329 future. */
10330 char digs[] = "0123456789";
10331 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10332 # endif
10333 /* Catch a bug in an HP-UX C compiler. See
10334 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10335 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10337 _Bool q = true;
10338 _Bool *pq = &q;
10341 main ()
10344 *pq |= q;
10345 *pq |= ! q;
10346 /* Refer to every declared value, to avoid compiler optimizations. */
10347 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10348 + !m + !n + !o + !p + !q + !pq);
10351 return 0;
10353 _ACEOF
10354 rm -f conftest.$ac_objext
10355 if { (ac_try="$ac_compile"
10356 case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10359 esac
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_compile") 2>conftest.er1
10362 ac_status=$?
10363 grep -v '^ *+' conftest.er1 >conftest.err
10364 rm -f conftest.er1
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && {
10368 test -z "$ac_c_werror_flag" ||
10369 test ! -s conftest.err
10370 } && test -s conftest.$ac_objext; then
10371 ac_cv_header_stdbool_h=yes
10372 else
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 ac_cv_header_stdbool_h=no
10379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10381 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10382 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10383 { echo "$as_me:$LINENO: checking for _Bool" >&5
10384 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10385 if test "${ac_cv_type__Bool+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388 cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h. */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 $ac_includes_default
10395 typedef _Bool ac__type_new_;
10397 main ()
10399 if ((ac__type_new_ *) 0)
10400 return 0;
10401 if (sizeof (ac__type_new_))
10402 return 0;
10404 return 0;
10406 _ACEOF
10407 rm -f conftest.$ac_objext
10408 if { (ac_try="$ac_compile"
10409 case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10412 esac
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_compile") 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest.$ac_objext; then
10424 ac_cv_type__Bool=yes
10425 else
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 ac_cv_type__Bool=no
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10435 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10436 if test $ac_cv_type__Bool = yes; then
10438 cat >>confdefs.h <<_ACEOF
10439 #define HAVE__BOOL 1
10440 _ACEOF
10445 if test $ac_cv_header_stdbool_h = yes; then
10447 cat >>confdefs.h <<\_ACEOF
10448 #define HAVE_STDBOOL_H 1
10449 _ACEOF
10453 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10454 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10455 if test "${ac_cv_c_const+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 else
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h. */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10466 main ()
10468 /* FIXME: Include the comments suggested by Paul. */
10469 #ifndef __cplusplus
10470 /* Ultrix mips cc rejects this. */
10471 typedef int charset[2];
10472 const charset cs;
10473 /* SunOS 4.1.1 cc rejects this. */
10474 char const *const *pcpcc;
10475 char **ppc;
10476 /* NEC SVR4.0.2 mips cc rejects this. */
10477 struct point {int x, y;};
10478 static struct point const zero = {0,0};
10479 /* AIX XL C 1.02.0.0 rejects this.
10480 It does not let you subtract one const X* pointer from another in
10481 an arm of an if-expression whose if-part is not a constant
10482 expression */
10483 const char *g = "string";
10484 pcpcc = &g + (g ? g-g : 0);
10485 /* HPUX 7.0 cc rejects these. */
10486 ++pcpcc;
10487 ppc = (char**) pcpcc;
10488 pcpcc = (char const *const *) ppc;
10489 { /* SCO 3.2v4 cc rejects this. */
10490 char *t;
10491 char const *s = 0 ? (char *) 0 : (char const *) 0;
10493 *t++ = 0;
10494 if (s) return 0;
10496 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10497 int x[] = {25, 17};
10498 const int *foo = &x[0];
10499 ++foo;
10501 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10502 typedef const int *iptr;
10503 iptr p = 0;
10504 ++p;
10506 { /* AIX XL C 1.02.0.0 rejects this saying
10507 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10508 struct s { int j; const int *ap[3]; };
10509 struct s *b; b->j = 5;
10511 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10512 const int foo = 10;
10513 if (!foo) return 0;
10515 return !cs[0] && !zero.x;
10516 #endif
10519 return 0;
10521 _ACEOF
10522 rm -f conftest.$ac_objext
10523 if { (ac_try="$ac_compile"
10524 case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_compile") 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest.$ac_objext; then
10539 ac_cv_c_const=yes
10540 else
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10544 ac_cv_c_const=no
10547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10550 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10551 if test $ac_cv_c_const = no; then
10553 cat >>confdefs.h <<\_ACEOF
10554 #define const
10555 _ACEOF
10559 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10560 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10561 if test "${ac_cv_type_uid_t+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564 cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h. */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 #include <sys/types.h>
10572 _ACEOF
10573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10574 $EGREP "uid_t" >/dev/null 2>&1; then
10575 ac_cv_type_uid_t=yes
10576 else
10577 ac_cv_type_uid_t=no
10579 rm -f conftest*
10582 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10583 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10584 if test $ac_cv_type_uid_t = no; then
10586 cat >>confdefs.h <<\_ACEOF
10587 #define uid_t int
10588 _ACEOF
10591 cat >>confdefs.h <<\_ACEOF
10592 #define gid_t int
10593 _ACEOF
10597 { echo "$as_me:$LINENO: checking for inline" >&5
10598 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10599 if test "${ac_cv_c_inline+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 else
10602 ac_cv_c_inline=no
10603 for ac_kw in inline __inline__ __inline; do
10604 cat >conftest.$ac_ext <<_ACEOF
10605 /* confdefs.h. */
10606 _ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10610 #ifndef __cplusplus
10611 typedef int foo_t;
10612 static $ac_kw foo_t static_foo () {return 0; }
10613 $ac_kw foo_t foo () {return 0; }
10614 #endif
10616 _ACEOF
10617 rm -f conftest.$ac_objext
10618 if { (ac_try="$ac_compile"
10619 case "(($ac_try" in
10620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621 *) ac_try_echo=$ac_try;;
10622 esac
10623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10624 (eval "$ac_compile") 2>conftest.er1
10625 ac_status=$?
10626 grep -v '^ *+' conftest.er1 >conftest.err
10627 rm -f conftest.er1
10628 cat conftest.err >&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } && {
10631 test -z "$ac_c_werror_flag" ||
10632 test ! -s conftest.err
10633 } && test -s conftest.$ac_objext; then
10634 ac_cv_c_inline=$ac_kw
10635 else
10636 echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 test "$ac_cv_c_inline" != no && break
10644 done
10647 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10648 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10651 case $ac_cv_c_inline in
10652 inline | yes) ;;
10654 case $ac_cv_c_inline in
10655 no) ac_val=;;
10656 *) ac_val=$ac_cv_c_inline;;
10657 esac
10658 cat >>confdefs.h <<_ACEOF
10659 #ifndef __cplusplus
10660 #define inline $ac_val
10661 #endif
10662 _ACEOF
10664 esac
10666 { echo "$as_me:$LINENO: checking for mode_t" >&5
10667 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
10668 if test "${ac_cv_type_mode_t+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671 cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h. */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 $ac_includes_default
10678 typedef mode_t ac__type_new_;
10680 main ()
10682 if ((ac__type_new_ *) 0)
10683 return 0;
10684 if (sizeof (ac__type_new_))
10685 return 0;
10687 return 0;
10689 _ACEOF
10690 rm -f conftest.$ac_objext
10691 if { (ac_try="$ac_compile"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_compile") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest.$ac_objext; then
10707 ac_cv_type_mode_t=yes
10708 else
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ac_cv_type_mode_t=no
10715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10718 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10719 if test $ac_cv_type_mode_t = yes; then
10721 else
10723 cat >>confdefs.h <<_ACEOF
10724 #define mode_t int
10725 _ACEOF
10729 { echo "$as_me:$LINENO: checking for off_t" >&5
10730 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
10731 if test "${ac_cv_type_off_t+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 $ac_includes_default
10741 typedef off_t ac__type_new_;
10743 main ()
10745 if ((ac__type_new_ *) 0)
10746 return 0;
10747 if (sizeof (ac__type_new_))
10748 return 0;
10750 return 0;
10752 _ACEOF
10753 rm -f conftest.$ac_objext
10754 if { (ac_try="$ac_compile"
10755 case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10758 esac
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_compile") 2>conftest.er1
10761 ac_status=$?
10762 grep -v '^ *+' conftest.er1 >conftest.err
10763 rm -f conftest.er1
10764 cat conftest.err >&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest.$ac_objext; then
10770 ac_cv_type_off_t=yes
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_cv_type_off_t=no
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10781 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10782 if test $ac_cv_type_off_t = yes; then
10784 else
10786 cat >>confdefs.h <<_ACEOF
10787 #define off_t long int
10788 _ACEOF
10792 { echo "$as_me:$LINENO: checking for pid_t" >&5
10793 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10794 if test "${ac_cv_type_pid_t+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 typedef pid_t ac__type_new_;
10806 main ()
10808 if ((ac__type_new_ *) 0)
10809 return 0;
10810 if (sizeof (ac__type_new_))
10811 return 0;
10813 return 0;
10815 _ACEOF
10816 rm -f conftest.$ac_objext
10817 if { (ac_try="$ac_compile"
10818 case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10821 esac
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_compile") 2>conftest.er1
10824 ac_status=$?
10825 grep -v '^ *+' conftest.er1 >conftest.err
10826 rm -f conftest.er1
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } && {
10830 test -z "$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10832 } && test -s conftest.$ac_objext; then
10833 ac_cv_type_pid_t=yes
10834 else
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_cv_type_pid_t=no
10841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10844 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10845 if test $ac_cv_type_pid_t = yes; then
10847 else
10849 cat >>confdefs.h <<_ACEOF
10850 #define pid_t int
10851 _ACEOF
10855 { echo "$as_me:$LINENO: checking for size_t" >&5
10856 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10857 if test "${ac_cv_type_size_t+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 else
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h. */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 $ac_includes_default
10867 typedef size_t ac__type_new_;
10869 main ()
10871 if ((ac__type_new_ *) 0)
10872 return 0;
10873 if (sizeof (ac__type_new_))
10874 return 0;
10876 return 0;
10878 _ACEOF
10879 rm -f conftest.$ac_objext
10880 if { (ac_try="$ac_compile"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_compile") 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } && {
10893 test -z "$ac_c_werror_flag" ||
10894 test ! -s conftest.err
10895 } && test -s conftest.$ac_objext; then
10896 ac_cv_type_size_t=yes
10897 else
10898 echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 ac_cv_type_size_t=no
10904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10907 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10908 if test $ac_cv_type_size_t = yes; then
10910 else
10912 cat >>confdefs.h <<_ACEOF
10913 #define size_t unsigned int
10914 _ACEOF
10918 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10919 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10920 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923 cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h. */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 $ac_includes_default
10931 main ()
10933 static struct stat ac_aggr;
10934 if (ac_aggr.st_blksize)
10935 return 0;
10937 return 0;
10939 _ACEOF
10940 rm -f conftest.$ac_objext
10941 if { (ac_try="$ac_compile"
10942 case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_compile") 2>conftest.er1
10948 ac_status=$?
10949 grep -v '^ *+' conftest.er1 >conftest.err
10950 rm -f conftest.er1
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } && {
10954 test -z "$ac_c_werror_flag" ||
10955 test ! -s conftest.err
10956 } && test -s conftest.$ac_objext; then
10957 ac_cv_member_struct_stat_st_blksize=yes
10958 else
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h. */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 $ac_includes_default
10970 main ()
10972 static struct stat ac_aggr;
10973 if (sizeof ac_aggr.st_blksize)
10974 return 0;
10976 return 0;
10978 _ACEOF
10979 rm -f conftest.$ac_objext
10980 if { (ac_try="$ac_compile"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984 esac
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_compile") 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && {
10993 test -z "$ac_c_werror_flag" ||
10994 test ! -s conftest.err
10995 } && test -s conftest.$ac_objext; then
10996 ac_cv_member_struct_stat_st_blksize=yes
10997 else
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_cv_member_struct_stat_st_blksize=no
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11009 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11010 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11011 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11013 cat >>confdefs.h <<_ACEOF
11014 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11015 _ACEOF
11020 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11021 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11022 if test "${ac_cv_header_time+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025 cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h. */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11031 #include <sys/types.h>
11032 #include <sys/time.h>
11033 #include <time.h>
11036 main ()
11038 if ((struct tm *) 0)
11039 return 0;
11041 return 0;
11043 _ACEOF
11044 rm -f conftest.$ac_objext
11045 if { (ac_try="$ac_compile"
11046 case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049 esac
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_compile") 2>conftest.er1
11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } && {
11058 test -z "$ac_c_werror_flag" ||
11059 test ! -s conftest.err
11060 } && test -s conftest.$ac_objext; then
11061 ac_cv_header_time=yes
11062 else
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11066 ac_cv_header_time=no
11069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11072 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11073 if test $ac_cv_header_time = yes; then
11075 cat >>confdefs.h <<\_ACEOF
11076 #define TIME_WITH_SYS_TIME 1
11077 _ACEOF
11081 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11082 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11083 if test "${ac_cv_struct_tm+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h. */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 #include <sys/types.h>
11093 #include <time.h>
11096 main ()
11098 struct tm tm;
11099 int *p = &tm.tm_sec;
11100 return !p;
11102 return 0;
11104 _ACEOF
11105 rm -f conftest.$ac_objext
11106 if { (ac_try="$ac_compile"
11107 case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11110 esac
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_compile") 2>conftest.er1
11113 ac_status=$?
11114 grep -v '^ *+' conftest.er1 >conftest.err
11115 rm -f conftest.er1
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } && {
11119 test -z "$ac_c_werror_flag" ||
11120 test ! -s conftest.err
11121 } && test -s conftest.$ac_objext; then
11122 ac_cv_struct_tm=time.h
11123 else
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11127 ac_cv_struct_tm=sys/time.h
11130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11133 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11134 if test $ac_cv_struct_tm = sys/time.h; then
11136 cat >>confdefs.h <<\_ACEOF
11137 #define TM_IN_SYS_TIME 1
11138 _ACEOF
11142 { echo "$as_me:$LINENO: checking for working volatile" >&5
11143 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11144 if test "${ac_cv_c_volatile+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 else
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h. */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11155 main ()
11158 volatile int x;
11159 int * volatile y = (int *) 0;
11160 return !x && !y;
11162 return 0;
11164 _ACEOF
11165 rm -f conftest.$ac_objext
11166 if { (ac_try="$ac_compile"
11167 case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11170 esac
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_compile") 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } && {
11179 test -z "$ac_c_werror_flag" ||
11180 test ! -s conftest.err
11181 } && test -s conftest.$ac_objext; then
11182 ac_cv_c_volatile=yes
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ac_cv_c_volatile=no
11190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11193 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11194 if test $ac_cv_c_volatile = no; then
11196 cat >>confdefs.h <<\_ACEOF
11197 #define volatile
11198 _ACEOF
11202 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11203 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11204 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h. */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 $ac_includes_default
11214 typedef ptrdiff_t ac__type_new_;
11216 main ()
11218 if ((ac__type_new_ *) 0)
11219 return 0;
11220 if (sizeof (ac__type_new_))
11221 return 0;
11223 return 0;
11225 _ACEOF
11226 rm -f conftest.$ac_objext
11227 if { (ac_try="$ac_compile"
11228 case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11231 esac
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_compile") 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } && {
11240 test -z "$ac_c_werror_flag" ||
11241 test ! -s conftest.err
11242 } && test -s conftest.$ac_objext; then
11243 ac_cv_type_ptrdiff_t=yes
11244 else
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 ac_cv_type_ptrdiff_t=no
11251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11253 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11254 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11255 if test $ac_cv_type_ptrdiff_t = yes; then
11257 cat >>confdefs.h <<_ACEOF
11258 #define HAVE_PTRDIFF_T 1
11259 _ACEOF
11265 # Checks for library functions.
11267 for ac_header in unistd.h
11269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 ac_res=`eval echo '${'$as_ac_Header'}'`
11277 { echo "$as_me:$LINENO: result: $ac_res" >&5
11278 echo "${ECHO_T}$ac_res" >&6; }
11279 else
11280 # Is the header compilable?
11281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11283 cat >conftest.$ac_ext <<_ACEOF
11284 /* confdefs.h. */
11285 _ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11289 $ac_includes_default
11290 #include <$ac_header>
11291 _ACEOF
11292 rm -f conftest.$ac_objext
11293 if { (ac_try="$ac_compile"
11294 case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297 esac
11298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_compile") 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } && {
11306 test -z "$ac_c_werror_flag" ||
11307 test ! -s conftest.err
11308 } && test -s conftest.$ac_objext; then
11309 ac_header_compiler=yes
11310 else
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_header_compiler=no
11317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11319 echo "${ECHO_T}$ac_header_compiler" >&6; }
11321 # Is the header present?
11322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11324 cat >conftest.$ac_ext <<_ACEOF
11325 /* confdefs.h. */
11326 _ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 #include <$ac_header>
11331 _ACEOF
11332 if { (ac_try="$ac_cpp conftest.$ac_ext"
11333 case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11336 esac
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11339 ac_status=$?
11340 grep -v '^ *+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } >/dev/null && {
11345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11346 test ! -s conftest.err
11347 }; then
11348 ac_header_preproc=yes
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 ac_header_preproc=no
11356 rm -f conftest.err conftest.$ac_ext
11357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11358 echo "${ECHO_T}$ac_header_preproc" >&6; }
11360 # So? What about this header?
11361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11362 yes:no: )
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11367 ac_header_preproc=yes
11369 no:yes:* )
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11382 ( cat <<\_ASBOX
11383 ## ------------------------------- ##
11384 ## Report this to www.asterisk.org ##
11385 ## ------------------------------- ##
11386 _ASBOX
11387 ) | sed "s/^/$as_me: WARNING: /" >&2
11389 esac
11390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395 eval "$as_ac_Header=\$ac_header_preproc"
11397 ac_res=`eval echo '${'$as_ac_Header'}'`
11398 { echo "$as_me:$LINENO: result: $ac_res" >&5
11399 echo "${ECHO_T}$ac_res" >&6; }
11402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11403 cat >>confdefs.h <<_ACEOF
11404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11405 _ACEOF
11409 done
11411 { echo "$as_me:$LINENO: checking for working chown" >&5
11412 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
11413 if test "${ac_cv_func_chown_works+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416 if test "$cross_compiling" = yes; then
11417 ac_cv_func_chown_works=no
11418 else
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h. */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 $ac_includes_default
11426 #include <fcntl.h>
11429 main ()
11431 char *f = "conftest.chown";
11432 struct stat before, after;
11434 if (creat (f, 0600) < 0)
11435 return 1;
11436 if (stat (f, &before) < 0)
11437 return 1;
11438 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11439 return 1;
11440 if (stat (f, &after) < 0)
11441 return 1;
11442 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11445 return 0;
11447 _ACEOF
11448 rm -f conftest$ac_exeext
11449 if { (ac_try="$ac_link"
11450 case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453 esac
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_link") 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11459 { (case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11462 esac
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_try") 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; }; then
11468 ac_cv_func_chown_works=yes
11469 else
11470 echo "$as_me: program exited with status $ac_status" >&5
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 ( exit $ac_status )
11475 ac_cv_func_chown_works=no
11477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11481 rm -f conftest.chown
11484 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11485 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11486 if test $ac_cv_func_chown_works = yes; then
11488 cat >>confdefs.h <<\_ACEOF
11489 #define HAVE_CHOWN 1
11490 _ACEOF
11494 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11495 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
11496 if test "${ac_cv_func_closedir_void+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499 if test "$cross_compiling" = yes; then
11500 ac_cv_func_closedir_void=yes
11501 else
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 $ac_includes_default
11509 #include <$ac_header_dirent>
11510 #ifndef __cplusplus
11511 int closedir ();
11512 #endif
11515 main ()
11517 return closedir (opendir (".")) != 0;
11519 return 0;
11521 _ACEOF
11522 rm -f conftest$ac_exeext
11523 if { (ac_try="$ac_link"
11524 case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11527 esac
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_link") 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11533 { (case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536 esac
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_try") 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_cv_func_closedir_void=no
11543 else
11544 echo "$as_me: program exited with status $ac_status" >&5
11545 echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11548 ( exit $ac_status )
11549 ac_cv_func_closedir_void=yes
11551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11556 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11557 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11558 if test $ac_cv_func_closedir_void = yes; then
11560 cat >>confdefs.h <<\_ACEOF
11561 #define CLOSEDIR_VOID 1
11562 _ACEOF
11566 { echo "$as_me:$LINENO: checking for error_at_line" >&5
11567 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
11568 if test "${ac_cv_lib_error_at_line+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571 cat >conftest.$ac_ext <<_ACEOF
11572 /* confdefs.h. */
11573 _ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 #include <error.h>
11579 main ()
11581 error_at_line (0, 0, "", 0, "an error occurred");
11583 return 0;
11585 _ACEOF
11586 rm -f conftest.$ac_objext conftest$ac_exeext
11587 if { (ac_try="$ac_link"
11588 case "(($ac_try" in
11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590 *) ac_try_echo=$ac_try;;
11591 esac
11592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11593 (eval "$ac_link") 2>conftest.er1
11594 ac_status=$?
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } && {
11600 test -z "$ac_c_werror_flag" ||
11601 test ! -s conftest.err
11602 } && test -s conftest$ac_exeext &&
11603 $as_test_x conftest$ac_exeext; then
11604 ac_cv_lib_error_at_line=yes
11605 else
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 ac_cv_lib_error_at_line=no
11612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11613 conftest$ac_exeext conftest.$ac_ext
11615 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11616 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11617 if test $ac_cv_lib_error_at_line = no; then
11618 case " $LIBOBJS " in
11619 *" error.$ac_objext "* ) ;;
11620 *) LIBOBJS="$LIBOBJS error.$ac_objext"
11622 esac
11627 for ac_header in vfork.h
11629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11639 else
11640 # Is the header compilable?
11641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11643 cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h. */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 $ac_includes_default
11650 #include <$ac_header>
11651 _ACEOF
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_compile") 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest.$ac_objext; then
11669 ac_header_compiler=yes
11670 else
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11674 ac_header_compiler=no
11677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11679 echo "${ECHO_T}$ac_header_compiler" >&6; }
11681 # Is the header present?
11682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h. */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 #include <$ac_header>
11691 _ACEOF
11692 if { (ac_try="$ac_cpp conftest.$ac_ext"
11693 case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11696 esac
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } >/dev/null && {
11705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11706 test ! -s conftest.err
11707 }; then
11708 ac_header_preproc=yes
11709 else
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11713 ac_header_preproc=no
11716 rm -f conftest.err conftest.$ac_ext
11717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11718 echo "${ECHO_T}$ac_header_preproc" >&6; }
11720 # So? What about this header?
11721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11722 yes:no: )
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11727 ac_header_preproc=yes
11729 no:yes:* )
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11742 ( cat <<\_ASBOX
11743 ## ------------------------------- ##
11744 ## Report this to www.asterisk.org ##
11745 ## ------------------------------- ##
11746 _ASBOX
11747 ) | sed "s/^/$as_me: WARNING: /" >&2
11749 esac
11750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755 eval "$as_ac_Header=\$ac_header_preproc"
11757 ac_res=`eval echo '${'$as_ac_Header'}'`
11758 { echo "$as_me:$LINENO: result: $ac_res" >&5
11759 echo "${ECHO_T}$ac_res" >&6; }
11762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11763 cat >>confdefs.h <<_ACEOF
11764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11765 _ACEOF
11769 done
11773 for ac_func in fork vfork
11775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h. */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11789 #define $ac_func innocuous_$ac_func
11791 /* System header to define __stub macros and hopefully few prototypes,
11792 which can conflict with char $ac_func (); below.
11793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11794 <limits.h> exists even on freestanding compilers. */
11796 #ifdef __STDC__
11797 # include <limits.h>
11798 #else
11799 # include <assert.h>
11800 #endif
11802 #undef $ac_func
11804 /* Override any GCC internal prototype to avoid an error.
11805 Use char because int might match the return type of a GCC
11806 builtin and then its argument prototype would still apply. */
11807 #ifdef __cplusplus
11808 extern "C"
11809 #endif
11810 char $ac_func ();
11811 /* The GNU C library defines this for functions which it implements
11812 to always fail with ENOSYS. Some functions are actually named
11813 something starting with __ and the normal name is an alias. */
11814 #if defined __stub_$ac_func || defined __stub___$ac_func
11815 choke me
11816 #endif
11819 main ()
11821 return $ac_func ();
11823 return 0;
11825 _ACEOF
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831 esac
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_link") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest$ac_exeext &&
11843 $as_test_x conftest$ac_exeext; then
11844 eval "$as_ac_var=yes"
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 eval "$as_ac_var=no"
11852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11853 conftest$ac_exeext conftest.$ac_ext
11855 ac_res=`eval echo '${'$as_ac_var'}'`
11856 { echo "$as_me:$LINENO: result: $ac_res" >&5
11857 echo "${ECHO_T}$ac_res" >&6; }
11858 if test `eval echo '${'$as_ac_var'}'` = yes; then
11859 cat >>confdefs.h <<_ACEOF
11860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11861 _ACEOF
11864 done
11866 if test "x$ac_cv_func_fork" = xyes; then
11867 { echo "$as_me:$LINENO: checking for working fork" >&5
11868 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11869 if test "${ac_cv_func_fork_works+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872 if test "$cross_compiling" = yes; then
11873 ac_cv_func_fork_works=cross
11874 else
11875 cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h. */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 $ac_includes_default
11883 main ()
11886 /* By Ruediger Kuhlmann. */
11887 return fork () < 0;
11890 return 0;
11892 _ACEOF
11893 rm -f conftest$ac_exeext
11894 if { (ac_try="$ac_link"
11895 case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11898 esac
11899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_link") 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11904 { (case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11907 esac
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_try") 2>&5
11910 ac_status=$?
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 ac_cv_func_fork_works=yes
11914 else
11915 echo "$as_me: program exited with status $ac_status" >&5
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ( exit $ac_status )
11920 ac_cv_func_fork_works=no
11922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11927 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11928 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11930 else
11931 ac_cv_func_fork_works=$ac_cv_func_fork
11933 if test "x$ac_cv_func_fork_works" = xcross; then
11934 case $host in
11935 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11936 # Override, as these systems have only a dummy fork() stub
11937 ac_cv_func_fork_works=no
11940 ac_cv_func_fork_works=yes
11942 esac
11943 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11944 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11946 ac_cv_func_vfork_works=$ac_cv_func_vfork
11947 if test "x$ac_cv_func_vfork" = xyes; then
11948 { echo "$as_me:$LINENO: checking for working vfork" >&5
11949 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11950 if test "${ac_cv_func_vfork_works+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953 if test "$cross_compiling" = yes; then
11954 ac_cv_func_vfork_works=cross
11955 else
11956 cat >conftest.$ac_ext <<_ACEOF
11957 /* confdefs.h. */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11962 /* Thanks to Paul Eggert for this test. */
11963 $ac_includes_default
11964 #include <sys/wait.h>
11965 #ifdef HAVE_VFORK_H
11966 # include <vfork.h>
11967 #endif
11968 /* On some sparc systems, changes by the child to local and incoming
11969 argument registers are propagated back to the parent. The compiler
11970 is told about this with #include <vfork.h>, but some compilers
11971 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11972 static variable whose address is put into a register that is
11973 clobbered by the vfork. */
11974 static void
11975 #ifdef __cplusplus
11976 sparc_address_test (int arg)
11977 # else
11978 sparc_address_test (arg) int arg;
11979 #endif
11981 static pid_t child;
11982 if (!child) {
11983 child = vfork ();
11984 if (child < 0) {
11985 perror ("vfork");
11986 _exit(2);
11988 if (!child) {
11989 arg = getpid();
11990 write(-1, "", 0);
11991 _exit (arg);
11997 main ()
11999 pid_t parent = getpid ();
12000 pid_t child;
12002 sparc_address_test (0);
12004 child = vfork ();
12006 if (child == 0) {
12007 /* Here is another test for sparc vfork register problems. This
12008 test uses lots of local variables, at least as many local
12009 variables as main has allocated so far including compiler
12010 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12011 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12012 reuse the register of parent for one of the local variables,
12013 since it will think that parent can't possibly be used any more
12014 in this routine. Assigning to the local variable will thus
12015 munge parent in the parent process. */
12016 pid_t
12017 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12018 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12019 /* Convince the compiler that p..p7 are live; otherwise, it might
12020 use the same hardware register for all 8 local variables. */
12021 if (p != p1 || p != p2 || p != p3 || p != p4
12022 || p != p5 || p != p6 || p != p7)
12023 _exit(1);
12025 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12026 from child file descriptors. If the child closes a descriptor
12027 before it execs or exits, this munges the parent's descriptor
12028 as well. Test for this by closing stdout in the child. */
12029 _exit(close(fileno(stdout)) != 0);
12030 } else {
12031 int status;
12032 struct stat st;
12034 while (wait(&status) != child)
12036 return (
12037 /* Was there some problem with vforking? */
12038 child < 0
12040 /* Did the child fail? (This shouldn't happen.) */
12041 || status
12043 /* Did the vfork/compiler bug occur? */
12044 || parent != getpid()
12046 /* Did the file descriptor bug occur? */
12047 || fstat(fileno(stdout), &st) != 0
12051 _ACEOF
12052 rm -f conftest$ac_exeext
12053 if { (ac_try="$ac_link"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_link") 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12063 { (case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066 esac
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_try") 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 ac_cv_func_vfork_works=yes
12073 else
12074 echo "$as_me: program exited with status $ac_status" >&5
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ( exit $ac_status )
12079 ac_cv_func_vfork_works=no
12081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12087 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12090 if test "x$ac_cv_func_fork_works" = xcross; then
12091 ac_cv_func_vfork_works=$ac_cv_func_vfork
12092 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12093 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12096 if test "x$ac_cv_func_vfork_works" = xyes; then
12098 cat >>confdefs.h <<\_ACEOF
12099 #define HAVE_WORKING_VFORK 1
12100 _ACEOF
12102 else
12104 cat >>confdefs.h <<\_ACEOF
12105 #define vfork fork
12106 _ACEOF
12109 if test "x$ac_cv_func_fork_works" = xyes; then
12111 cat >>confdefs.h <<\_ACEOF
12112 #define HAVE_WORKING_FORK 1
12113 _ACEOF
12117 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12118 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12119 if test "${ac_cv_sys_largefile_source+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122 while :; do
12123 cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h. */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 #include <sys/types.h> /* for off_t */
12130 #include <stdio.h>
12132 main ()
12134 int (*fp) (FILE *, off_t, int) = fseeko;
12135 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12137 return 0;
12139 _ACEOF
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (ac_try="$ac_link"
12142 case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12145 esac
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_link") 2>conftest.er1
12148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } && {
12154 test -z "$ac_c_werror_flag" ||
12155 test ! -s conftest.err
12156 } && test -s conftest$ac_exeext &&
12157 $as_test_x conftest$ac_exeext; then
12158 ac_cv_sys_largefile_source=no; break
12159 else
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12167 conftest$ac_exeext conftest.$ac_ext
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h. */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #define _LARGEFILE_SOURCE 1
12175 #include <sys/types.h> /* for off_t */
12176 #include <stdio.h>
12178 main ()
12180 int (*fp) (FILE *, off_t, int) = fseeko;
12181 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12183 return 0;
12185 _ACEOF
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (ac_try="$ac_link"
12188 case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191 esac
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_link") 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } && {
12200 test -z "$ac_c_werror_flag" ||
12201 test ! -s conftest.err
12202 } && test -s conftest$ac_exeext &&
12203 $as_test_x conftest$ac_exeext; then
12204 ac_cv_sys_largefile_source=1; break
12205 else
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 ac_cv_sys_largefile_source=unknown
12215 break
12216 done
12218 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12219 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12220 case $ac_cv_sys_largefile_source in #(
12221 no | unknown) ;;
12223 cat >>confdefs.h <<_ACEOF
12224 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12225 _ACEOF
12227 esac
12228 rm -f conftest*
12230 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12231 # in glibc 2.1.3, but that breaks too many other things.
12232 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12233 if test $ac_cv_sys_largefile_source != unknown; then
12235 cat >>confdefs.h <<\_ACEOF
12236 #define HAVE_FSEEKO 1
12237 _ACEOF
12241 if test $ac_cv_c_compiler_gnu = yes; then
12242 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12243 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12244 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247 ac_pattern="Autoconf.*'x'"
12248 cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h. */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 #include <sgtty.h>
12255 Autoconf TIOCGETP
12256 _ACEOF
12257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12258 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12259 ac_cv_prog_gcc_traditional=yes
12260 else
12261 ac_cv_prog_gcc_traditional=no
12263 rm -f conftest*
12266 if test $ac_cv_prog_gcc_traditional = no; then
12267 cat >conftest.$ac_ext <<_ACEOF
12268 /* confdefs.h. */
12269 _ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273 #include <termio.h>
12274 Autoconf TCGETA
12275 _ACEOF
12276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12277 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12278 ac_cv_prog_gcc_traditional=yes
12280 rm -f conftest*
12284 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12285 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12286 if test $ac_cv_prog_gcc_traditional = yes; then
12287 CC="$CC -traditional"
12291 # XXX: these are commented out until we determine whether it matters if our malloc()
12292 # acts exactly like glibc's or not
12293 # AC_FUNC_MALLOC
12294 # AC_FUNC_REALLOC
12295 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12296 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12297 if test "${ac_cv_func_memcmp_working+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300 if test "$cross_compiling" = yes; then
12301 ac_cv_func_memcmp_working=no
12302 else
12303 cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h. */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 $ac_includes_default
12311 main ()
12314 /* Some versions of memcmp are not 8-bit clean. */
12315 char c0 = '\100', c1 = '\200', c2 = '\201';
12316 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12317 return 1;
12319 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12320 or more and with at least one buffer not starting on a 4-byte boundary.
12321 William Lewis provided this test program. */
12323 char foo[21];
12324 char bar[21];
12325 int i;
12326 for (i = 0; i < 4; i++)
12328 char *a = foo + i;
12329 char *b = bar + i;
12330 strcpy (a, "--------01111111");
12331 strcpy (b, "--------10000000");
12332 if (memcmp (a, b, 16) >= 0)
12333 return 1;
12335 return 0;
12339 return 0;
12341 _ACEOF
12342 rm -f conftest$ac_exeext
12343 if { (ac_try="$ac_link"
12344 case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12347 esac
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_link") 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12353 { (case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12356 esac
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_try") 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ac_cv_func_memcmp_working=yes
12363 else
12364 echo "$as_me: program exited with status $ac_status" >&5
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 ( exit $ac_status )
12369 ac_cv_func_memcmp_working=no
12371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12376 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12377 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12378 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12379 *" memcmp.$ac_objext "* ) ;;
12380 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12382 esac
12387 for ac_header in stdlib.h unistd.h
12389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 ac_res=`eval echo '${'$as_ac_Header'}'`
12397 { echo "$as_me:$LINENO: result: $ac_res" >&5
12398 echo "${ECHO_T}$ac_res" >&6; }
12399 else
12400 # Is the header compilable?
12401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h. */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 $ac_includes_default
12410 #include <$ac_header>
12411 _ACEOF
12412 rm -f conftest.$ac_objext
12413 if { (ac_try="$ac_compile"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417 esac
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_compile") 2>conftest.er1
12420 ac_status=$?
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && {
12426 test -z "$ac_c_werror_flag" ||
12427 test ! -s conftest.err
12428 } && test -s conftest.$ac_objext; then
12429 ac_header_compiler=yes
12430 else
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 ac_header_compiler=no
12437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12439 echo "${ECHO_T}$ac_header_compiler" >&6; }
12441 # Is the header present?
12442 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12444 cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h. */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 #include <$ac_header>
12451 _ACEOF
12452 if { (ac_try="$ac_cpp conftest.$ac_ext"
12453 case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12456 esac
12457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } >/dev/null && {
12465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12467 }; then
12468 ac_header_preproc=yes
12469 else
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ac_header_preproc=no
12476 rm -f conftest.err conftest.$ac_ext
12477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12478 echo "${ECHO_T}$ac_header_preproc" >&6; }
12480 # So? What about this header?
12481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12482 yes:no: )
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12487 ac_header_preproc=yes
12489 no:yes:* )
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12502 ( cat <<\_ASBOX
12503 ## ------------------------------- ##
12504 ## Report this to www.asterisk.org ##
12505 ## ------------------------------- ##
12506 _ASBOX
12507 ) | sed "s/^/$as_me: WARNING: /" >&2
12509 esac
12510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 else
12515 eval "$as_ac_Header=\$ac_header_preproc"
12517 ac_res=`eval echo '${'$as_ac_Header'}'`
12518 { echo "$as_me:$LINENO: result: $ac_res" >&5
12519 echo "${ECHO_T}$ac_res" >&6; }
12522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12523 cat >>confdefs.h <<_ACEOF
12524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12525 _ACEOF
12529 done
12532 for ac_func in getpagesize
12534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 else
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h. */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12548 #define $ac_func innocuous_$ac_func
12550 /* System header to define __stub macros and hopefully few prototypes,
12551 which can conflict with char $ac_func (); below.
12552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12553 <limits.h> exists even on freestanding compilers. */
12555 #ifdef __STDC__
12556 # include <limits.h>
12557 #else
12558 # include <assert.h>
12559 #endif
12561 #undef $ac_func
12563 /* Override any GCC internal prototype to avoid an error.
12564 Use char because int might match the return type of a GCC
12565 builtin and then its argument prototype would still apply. */
12566 #ifdef __cplusplus
12567 extern "C"
12568 #endif
12569 char $ac_func ();
12570 /* The GNU C library defines this for functions which it implements
12571 to always fail with ENOSYS. Some functions are actually named
12572 something starting with __ and the normal name is an alias. */
12573 #if defined __stub_$ac_func || defined __stub___$ac_func
12574 choke me
12575 #endif
12578 main ()
12580 return $ac_func ();
12582 return 0;
12584 _ACEOF
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12590 esac
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_link") 2>conftest.er1
12593 ac_status=$?
12594 grep -v '^ *+' conftest.er1 >conftest.err
12595 rm -f conftest.er1
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } && {
12599 test -z "$ac_c_werror_flag" ||
12600 test ! -s conftest.err
12601 } && test -s conftest$ac_exeext &&
12602 $as_test_x conftest$ac_exeext; then
12603 eval "$as_ac_var=yes"
12604 else
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 eval "$as_ac_var=no"
12611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12612 conftest$ac_exeext conftest.$ac_ext
12614 ac_res=`eval echo '${'$as_ac_var'}'`
12615 { echo "$as_me:$LINENO: result: $ac_res" >&5
12616 echo "${ECHO_T}$ac_res" >&6; }
12617 if test `eval echo '${'$as_ac_var'}'` = yes; then
12618 cat >>confdefs.h <<_ACEOF
12619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12620 _ACEOF
12623 done
12625 { echo "$as_me:$LINENO: checking for working mmap" >&5
12626 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12627 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 else
12630 if test "$cross_compiling" = yes; then
12631 ac_cv_func_mmap_fixed_mapped=no
12632 else
12633 cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h. */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 $ac_includes_default
12640 /* malloc might have been renamed as rpl_malloc. */
12641 #undef malloc
12643 /* Thanks to Mike Haertel and Jim Avera for this test.
12644 Here is a matrix of mmap possibilities:
12645 mmap private not fixed
12646 mmap private fixed at somewhere currently unmapped
12647 mmap private fixed at somewhere already mapped
12648 mmap shared not fixed
12649 mmap shared fixed at somewhere currently unmapped
12650 mmap shared fixed at somewhere already mapped
12651 For private mappings, we should verify that changes cannot be read()
12652 back from the file, nor mmap's back from the file at a different
12653 address. (There have been systems where private was not correctly
12654 implemented like the infamous i386 svr4.0, and systems where the
12655 VM page cache was not coherent with the file system buffer cache
12656 like early versions of FreeBSD and possibly contemporary NetBSD.)
12657 For shared mappings, we should conversely verify that changes get
12658 propagated back to all the places they're supposed to be.
12660 Grep wants private fixed already mapped.
12661 The main things grep needs to know about mmap are:
12662 * does it exist and is it safe to write into the mmap'd area
12663 * how to use it (BSD variants) */
12665 #include <fcntl.h>
12666 #include <sys/mman.h>
12668 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12669 char *malloc ();
12670 #endif
12672 /* This mess was copied from the GNU getpagesize.h. */
12673 #ifndef HAVE_GETPAGESIZE
12674 /* Assume that all systems that can run configure have sys/param.h. */
12675 # ifndef HAVE_SYS_PARAM_H
12676 # define HAVE_SYS_PARAM_H 1
12677 # endif
12679 # ifdef _SC_PAGESIZE
12680 # define getpagesize() sysconf(_SC_PAGESIZE)
12681 # else /* no _SC_PAGESIZE */
12682 # ifdef HAVE_SYS_PARAM_H
12683 # include <sys/param.h>
12684 # ifdef EXEC_PAGESIZE
12685 # define getpagesize() EXEC_PAGESIZE
12686 # else /* no EXEC_PAGESIZE */
12687 # ifdef NBPG
12688 # define getpagesize() NBPG * CLSIZE
12689 # ifndef CLSIZE
12690 # define CLSIZE 1
12691 # endif /* no CLSIZE */
12692 # else /* no NBPG */
12693 # ifdef NBPC
12694 # define getpagesize() NBPC
12695 # else /* no NBPC */
12696 # ifdef PAGESIZE
12697 # define getpagesize() PAGESIZE
12698 # endif /* PAGESIZE */
12699 # endif /* no NBPC */
12700 # endif /* no NBPG */
12701 # endif /* no EXEC_PAGESIZE */
12702 # else /* no HAVE_SYS_PARAM_H */
12703 # define getpagesize() 8192 /* punt totally */
12704 # endif /* no HAVE_SYS_PARAM_H */
12705 # endif /* no _SC_PAGESIZE */
12707 #endif /* no HAVE_GETPAGESIZE */
12710 main ()
12712 char *data, *data2, *data3;
12713 int i, pagesize;
12714 int fd;
12716 pagesize = getpagesize ();
12718 /* First, make a file with some known garbage in it. */
12719 data = (char *) malloc (pagesize);
12720 if (!data)
12721 return 1;
12722 for (i = 0; i < pagesize; ++i)
12723 *(data + i) = rand ();
12724 umask (0);
12725 fd = creat ("conftest.mmap", 0600);
12726 if (fd < 0)
12727 return 1;
12728 if (write (fd, data, pagesize) != pagesize)
12729 return 1;
12730 close (fd);
12732 /* Next, try to mmap the file at a fixed address which already has
12733 something else allocated at it. If we can, also make sure that
12734 we see the same garbage. */
12735 fd = open ("conftest.mmap", O_RDWR);
12736 if (fd < 0)
12737 return 1;
12738 data2 = (char *) malloc (2 * pagesize);
12739 if (!data2)
12740 return 1;
12741 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12742 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12743 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12744 return 1;
12745 for (i = 0; i < pagesize; ++i)
12746 if (*(data + i) != *(data2 + i))
12747 return 1;
12749 /* Finally, make sure that changes to the mapped area do not
12750 percolate back to the file as seen by read(). (This is a bug on
12751 some variants of i386 svr4.0.) */
12752 for (i = 0; i < pagesize; ++i)
12753 *(data2 + i) = *(data2 + i) + 1;
12754 data3 = (char *) malloc (pagesize);
12755 if (!data3)
12756 return 1;
12757 if (read (fd, data3, pagesize) != pagesize)
12758 return 1;
12759 for (i = 0; i < pagesize; ++i)
12760 if (*(data + i) != *(data3 + i))
12761 return 1;
12762 close (fd);
12763 return 0;
12765 _ACEOF
12766 rm -f conftest$ac_exeext
12767 if { (ac_try="$ac_link"
12768 case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12771 esac
12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_link") 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12777 { (case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12780 esac
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_try") 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; }; then
12786 ac_cv_func_mmap_fixed_mapped=yes
12787 else
12788 echo "$as_me: program exited with status $ac_status" >&5
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12792 ( exit $ac_status )
12793 ac_cv_func_mmap_fixed_mapped=no
12795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12800 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12801 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12802 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12804 cat >>confdefs.h <<\_ACEOF
12805 #define HAVE_MMAP 1
12806 _ACEOF
12809 rm -f conftest.mmap
12813 for ac_header in sys/select.h sys/socket.h
12815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 ac_res=`eval echo '${'$as_ac_Header'}'`
12823 { echo "$as_me:$LINENO: result: $ac_res" >&5
12824 echo "${ECHO_T}$ac_res" >&6; }
12825 else
12826 # Is the header compilable?
12827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12829 cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h. */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 $ac_includes_default
12836 #include <$ac_header>
12837 _ACEOF
12838 rm -f conftest.$ac_objext
12839 if { (ac_try="$ac_compile"
12840 case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12843 esac
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_compile") 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && {
12852 test -z "$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 } && test -s conftest.$ac_objext; then
12855 ac_header_compiler=yes
12856 else
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12860 ac_header_compiler=no
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12865 echo "${ECHO_T}$ac_header_compiler" >&6; }
12867 # Is the header present?
12868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12870 cat >conftest.$ac_ext <<_ACEOF
12871 /* confdefs.h. */
12872 _ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876 #include <$ac_header>
12877 _ACEOF
12878 if { (ac_try="$ac_cpp conftest.$ac_ext"
12879 case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12885 ac_status=$?
12886 grep -v '^ *+' conftest.er1 >conftest.err
12887 rm -f conftest.er1
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } >/dev/null && {
12891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12892 test ! -s conftest.err
12893 }; then
12894 ac_header_preproc=yes
12895 else
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ac_header_preproc=no
12902 rm -f conftest.err conftest.$ac_ext
12903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12904 echo "${ECHO_T}$ac_header_preproc" >&6; }
12906 # So? What about this header?
12907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12908 yes:no: )
12909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12913 ac_header_preproc=yes
12915 no:yes:* )
12916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12928 ( cat <<\_ASBOX
12929 ## ------------------------------- ##
12930 ## Report this to www.asterisk.org ##
12931 ## ------------------------------- ##
12932 _ASBOX
12933 ) | sed "s/^/$as_me: WARNING: /" >&2
12935 esac
12936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 else
12941 eval "$as_ac_Header=\$ac_header_preproc"
12943 ac_res=`eval echo '${'$as_ac_Header'}'`
12944 { echo "$as_me:$LINENO: result: $ac_res" >&5
12945 echo "${ECHO_T}$ac_res" >&6; }
12948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12949 cat >>confdefs.h <<_ACEOF
12950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12951 _ACEOF
12955 done
12957 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12958 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12959 if test "${ac_cv_func_select_args+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12963 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12964 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h. */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 $ac_includes_default
12972 #ifdef HAVE_SYS_SELECT_H
12973 # include <sys/select.h>
12974 #endif
12975 #ifdef HAVE_SYS_SOCKET_H
12976 # include <sys/socket.h>
12977 #endif
12980 main ()
12982 extern int select ($ac_arg1,
12983 $ac_arg234, $ac_arg234, $ac_arg234,
12984 $ac_arg5);
12986 return 0;
12988 _ACEOF
12989 rm -f conftest.$ac_objext
12990 if { (ac_try="$ac_compile"
12991 case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12994 esac
12995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996 (eval "$ac_compile") 2>conftest.er1
12997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } && {
13003 test -z "$ac_c_werror_flag" ||
13004 test ! -s conftest.err
13005 } && test -s conftest.$ac_objext; then
13006 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13007 else
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015 done
13016 done
13017 done
13018 # Provide a safe default value.
13019 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13022 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13023 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13024 ac_save_IFS=$IFS; IFS=','
13025 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13026 IFS=$ac_save_IFS
13027 shift
13029 cat >>confdefs.h <<_ACEOF
13030 #define SELECT_TYPE_ARG1 $1
13031 _ACEOF
13034 cat >>confdefs.h <<_ACEOF
13035 #define SELECT_TYPE_ARG234 ($2)
13036 _ACEOF
13039 cat >>confdefs.h <<_ACEOF
13040 #define SELECT_TYPE_ARG5 ($3)
13041 _ACEOF
13043 rm -f conftest*
13045 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13046 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13047 if test "$ac_cv_prog_cc_c89" != no; then
13048 { echo "$as_me:$LINENO: result: yes" >&5
13049 echo "${ECHO_T}yes" >&6; }
13051 cat >>confdefs.h <<\_ACEOF
13052 #define PROTOTYPES 1
13053 _ACEOF
13056 cat >>confdefs.h <<\_ACEOF
13057 #define __PROTOTYPES 1
13058 _ACEOF
13060 else
13061 { echo "$as_me:$LINENO: result: no" >&5
13062 echo "${ECHO_T}no" >&6; }
13065 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13066 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13067 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070 ac_cv_func_setvbuf_reversed=no
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h. */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 #include <stdio.h>
13078 # ifdef PROTOTYPES
13079 int (setvbuf) (FILE *, int, char *, size_t);
13080 # endif
13082 main ()
13084 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13086 return 0;
13088 _ACEOF
13089 rm -f conftest.$ac_objext conftest$ac_exeext
13090 if { (ac_try="$ac_link"
13091 case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13094 esac
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_link") 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } && {
13103 test -z "$ac_c_werror_flag" ||
13104 test ! -s conftest.err
13105 } && test -s conftest$ac_exeext &&
13106 $as_test_x conftest$ac_exeext; then
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h. */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 #include <stdio.h>
13114 # ifdef PROTOTYPES
13115 int (setvbuf) (FILE *, int, char *, size_t);
13116 # endif
13118 main ()
13120 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13122 return 0;
13124 _ACEOF
13125 rm -f conftest.$ac_objext conftest$ac_exeext
13126 if { (ac_try="$ac_link"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_link") 2>conftest.er1
13133 ac_status=$?
13134 grep -v '^ *+' conftest.er1 >conftest.err
13135 rm -f conftest.er1
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } && {
13139 test -z "$ac_c_werror_flag" ||
13140 test ! -s conftest.err
13141 } && test -s conftest$ac_exeext &&
13142 $as_test_x conftest$ac_exeext; then
13143 # It compiles and links either way, so it must not be declared
13144 # with a prototype and most likely this is a K&R C compiler.
13145 # Try running it.
13146 if test "$cross_compiling" = yes; then
13147 : # Assume setvbuf is not reversed when cross-compiling.
13148 else
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h. */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 $ac_includes_default
13157 main ()
13159 /* This call has the arguments reversed.
13160 A reversed system may check and see that the address of buf
13161 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13162 char buf;
13163 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13164 return 1;
13165 putchar ('\r');
13166 return 0; /* Non-reversed systems SEGV here. */
13168 return 0;
13170 _ACEOF
13171 rm -f conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176 esac
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_link") 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13185 esac
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13191 ac_cv_func_setvbuf_reversed=yes
13192 else
13193 echo "$as_me: program exited with status $ac_status" >&5
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13202 ac_cv_func_setvbuf_reversed=yes
13203 else
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13211 conftest$ac_exeext conftest.$ac_ext
13212 else
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13220 conftest$ac_exeext conftest.$ac_ext
13222 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13223 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13224 if test $ac_cv_func_setvbuf_reversed = yes; then
13226 cat >>confdefs.h <<\_ACEOF
13227 #define SETVBUF_REVERSED 1
13228 _ACEOF
13232 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13233 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13234 if test "${ac_cv_type_signal+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 else
13237 cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h. */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13243 #include <sys/types.h>
13244 #include <signal.h>
13247 main ()
13249 return *(signal (0, 0)) (0) == 1;
13251 return 0;
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 if { (ac_try="$ac_compile"
13256 case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13259 esac
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_compile") 2>conftest.er1
13262 ac_status=$?
13263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } && {
13268 test -z "$ac_c_werror_flag" ||
13269 test ! -s conftest.err
13270 } && test -s conftest.$ac_objext; then
13271 ac_cv_type_signal=int
13272 else
13273 echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13276 ac_cv_type_signal=void
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13281 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13282 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13284 cat >>confdefs.h <<_ACEOF
13285 #define RETSIGTYPE $ac_cv_type_signal
13286 _ACEOF
13289 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13290 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13291 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 else
13294 rm -f conftest.sym conftest.file
13295 echo >conftest.file
13296 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13297 if test "$cross_compiling" = yes; then
13298 ac_cv_func_lstat_dereferences_slashed_symlink=no
13299 else
13300 cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h. */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13306 $ac_includes_default
13308 main ()
13310 struct stat sbuf;
13311 /* Linux will dereference the symlink and fail.
13312 That is better in the sense that it means we will not
13313 have to compile and use the lstat wrapper. */
13314 return lstat ("conftest.sym/", &sbuf) == 0;
13316 return 0;
13318 _ACEOF
13319 rm -f conftest$ac_exeext
13320 if { (ac_try="$ac_link"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13324 esac
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_link") 2>&5
13327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13330 { (case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_try") 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13340 else
13341 echo "$as_me: program exited with status $ac_status" >&5
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ( exit $ac_status )
13346 ac_cv_func_lstat_dereferences_slashed_symlink=no
13348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13352 else
13353 # If the `ln -s' command failed, then we probably don't even
13354 # have an lstat function.
13355 ac_cv_func_lstat_dereferences_slashed_symlink=no
13357 rm -f conftest.sym conftest.file
13360 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13361 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13363 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13365 cat >>confdefs.h <<_ACEOF
13366 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13367 _ACEOF
13370 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13371 case " $LIBOBJS " in
13372 *" lstat.$ac_objext "* ) ;;
13373 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13375 esac
13379 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13380 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13381 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384 if test "$cross_compiling" = yes; then
13385 ac_cv_func_stat_empty_string_bug=yes
13386 else
13387 cat >conftest.$ac_ext <<_ACEOF
13388 /* confdefs.h. */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13393 $ac_includes_default
13395 main ()
13397 struct stat sbuf;
13398 return stat ("", &sbuf) == 0;
13400 return 0;
13402 _ACEOF
13403 rm -f conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_link") 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13414 { (case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_try") 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 ac_cv_func_stat_empty_string_bug=no
13424 else
13425 echo "$as_me: program exited with status $ac_status" >&5
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 ( exit $ac_status )
13430 ac_cv_func_stat_empty_string_bug=yes
13432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13437 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13438 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13439 if test $ac_cv_func_stat_empty_string_bug = yes; then
13440 case " $LIBOBJS " in
13441 *" stat.$ac_objext "* ) ;;
13442 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13444 esac
13447 cat >>confdefs.h <<_ACEOF
13448 #define HAVE_STAT_EMPTY_STRING_BUG 1
13449 _ACEOF
13453 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13454 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13455 if test "${ac_cv_func_strcoll_works+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458 if test "$cross_compiling" = yes; then
13459 ac_cv_func_strcoll_works=no
13460 else
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h. */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 $ac_includes_default
13469 main ()
13471 return (strcoll ("abc", "def") >= 0 ||
13472 strcoll ("ABC", "DEF") >= 0 ||
13473 strcoll ("123", "456") >= 0)
13475 return 0;
13477 _ACEOF
13478 rm -f conftest$ac_exeext
13479 if { (ac_try="$ac_link"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483 esac
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_link") 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13492 esac
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_func_strcoll_works=yes
13499 else
13500 echo "$as_me: program exited with status $ac_status" >&5
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ( exit $ac_status )
13505 ac_cv_func_strcoll_works=no
13507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13512 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13513 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13514 if test $ac_cv_func_strcoll_works = yes; then
13516 cat >>confdefs.h <<\_ACEOF
13517 #define HAVE_STRCOLL 1
13518 _ACEOF
13523 for ac_func in strftime
13525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531 cat >conftest.$ac_ext <<_ACEOF
13532 /* confdefs.h. */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13539 #define $ac_func innocuous_$ac_func
13541 /* System header to define __stub macros and hopefully few prototypes,
13542 which can conflict with char $ac_func (); below.
13543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13544 <limits.h> exists even on freestanding compilers. */
13546 #ifdef __STDC__
13547 # include <limits.h>
13548 #else
13549 # include <assert.h>
13550 #endif
13552 #undef $ac_func
13554 /* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13557 #ifdef __cplusplus
13558 extern "C"
13559 #endif
13560 char $ac_func ();
13561 /* The GNU C library defines this for functions which it implements
13562 to always fail with ENOSYS. Some functions are actually named
13563 something starting with __ and the normal name is an alias. */
13564 #if defined __stub_$ac_func || defined __stub___$ac_func
13565 choke me
13566 #endif
13569 main ()
13571 return $ac_func ();
13573 return 0;
13575 _ACEOF
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (ac_try="$ac_link"
13578 case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_link") 2>conftest.er1
13584 ac_status=$?
13585 grep -v '^ *+' conftest.er1 >conftest.err
13586 rm -f conftest.er1
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest$ac_exeext &&
13593 $as_test_x conftest$ac_exeext; then
13594 eval "$as_ac_var=yes"
13595 else
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 eval "$as_ac_var=no"
13602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13603 conftest$ac_exeext conftest.$ac_ext
13605 ac_res=`eval echo '${'$as_ac_var'}'`
13606 { echo "$as_me:$LINENO: result: $ac_res" >&5
13607 echo "${ECHO_T}$ac_res" >&6; }
13608 if test `eval echo '${'$as_ac_var'}'` = yes; then
13609 cat >>confdefs.h <<_ACEOF
13610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13611 _ACEOF
13613 else
13614 # strftime is in -lintl on SCO UNIX.
13615 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13616 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13617 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620 ac_check_lib_save_LIBS=$LIBS
13621 LIBS="-lintl $LIBS"
13622 cat >conftest.$ac_ext <<_ACEOF
13623 /* confdefs.h. */
13624 _ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13629 /* Override any GCC internal prototype to avoid an error.
13630 Use char because int might match the return type of a GCC
13631 builtin and then its argument prototype would still apply. */
13632 #ifdef __cplusplus
13633 extern "C"
13634 #endif
13635 char strftime ();
13637 main ()
13639 return strftime ();
13641 return 0;
13643 _ACEOF
13644 rm -f conftest.$ac_objext conftest$ac_exeext
13645 if { (ac_try="$ac_link"
13646 case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649 esac
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_link") 2>conftest.er1
13652 ac_status=$?
13653 grep -v '^ *+' conftest.er1 >conftest.err
13654 rm -f conftest.er1
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } && {
13658 test -z "$ac_c_werror_flag" ||
13659 test ! -s conftest.err
13660 } && test -s conftest$ac_exeext &&
13661 $as_test_x conftest$ac_exeext; then
13662 ac_cv_lib_intl_strftime=yes
13663 else
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13667 ac_cv_lib_intl_strftime=no
13670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13671 conftest$ac_exeext conftest.$ac_ext
13672 LIBS=$ac_check_lib_save_LIBS
13674 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13675 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13676 if test $ac_cv_lib_intl_strftime = yes; then
13677 cat >>confdefs.h <<\_ACEOF
13678 #define HAVE_STRFTIME 1
13679 _ACEOF
13681 LIBS="-lintl $LIBS"
13685 done
13687 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13688 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13689 if test "${ac_cv_func_strnlen_working+set}" = set; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13691 else
13692 if test "$cross_compiling" = yes; then
13693 ac_cv_func_strnlen_working=no
13694 else
13695 cat >conftest.$ac_ext <<_ACEOF
13696 /* confdefs.h. */
13697 _ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13701 $ac_includes_default
13703 main ()
13706 #define S "foobar"
13707 #define S_LEN (sizeof S - 1)
13709 /* At least one implementation is buggy: that of AIX 4.3 would
13710 give strnlen (S, 1) == 3. */
13712 int i;
13713 for (i = 0; i < S_LEN + 1; ++i)
13715 int expected = i <= S_LEN ? i : S_LEN;
13716 if (strnlen (S, i) != expected)
13717 return 1;
13719 return 0;
13722 return 0;
13724 _ACEOF
13725 rm -f conftest$ac_exeext
13726 if { (ac_try="$ac_link"
13727 case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730 esac
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_link") 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739 esac
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_cv_func_strnlen_working=yes
13746 else
13747 echo "$as_me: program exited with status $ac_status" >&5
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13751 ( exit $ac_status )
13752 ac_cv_func_strnlen_working=no
13754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13759 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13760 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13761 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13762 *" strnlen.$ac_objext "* ) ;;
13763 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13765 esac
13768 { echo "$as_me:$LINENO: checking for working strtod" >&5
13769 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13770 if test "${ac_cv_func_strtod+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 if test "$cross_compiling" = yes; then
13774 ac_cv_func_strtod=no
13775 else
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h. */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13783 $ac_includes_default
13784 #ifndef strtod
13785 double strtod ();
13786 #endif
13788 main()
13791 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13792 char *string = " +69";
13793 char *term;
13794 double value;
13795 value = strtod (string, &term);
13796 if (value != 69 || term != (string + 4))
13797 return 1;
13801 /* Under Solaris 2.4, strtod returns the wrong value for the
13802 terminating character under some conditions. */
13803 char *string = "NaN";
13804 char *term;
13805 strtod (string, &term);
13806 if (term != string && *(term - 1) == 0)
13807 return 1;
13809 return 0;
13812 _ACEOF
13813 rm -f conftest$ac_exeext
13814 if { (ac_try="$ac_link"
13815 case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818 esac
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_link") 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13824 { (case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13827 esac
13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_try") 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_func_strtod=yes
13834 else
13835 echo "$as_me: program exited with status $ac_status" >&5
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ( exit $ac_status )
13840 ac_cv_func_strtod=no
13842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13847 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13848 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13849 if test $ac_cv_func_strtod = no; then
13850 case " $LIBOBJS " in
13851 *" strtod.$ac_objext "* ) ;;
13852 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13854 esac
13856 { echo "$as_me:$LINENO: checking for pow" >&5
13857 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13858 if test "${ac_cv_func_pow+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861 cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h. */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13869 #define pow innocuous_pow
13871 /* System header to define __stub macros and hopefully few prototypes,
13872 which can conflict with char pow (); below.
13873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13874 <limits.h> exists even on freestanding compilers. */
13876 #ifdef __STDC__
13877 # include <limits.h>
13878 #else
13879 # include <assert.h>
13880 #endif
13882 #undef pow
13884 /* Override any GCC internal prototype to avoid an error.
13885 Use char because int might match the return type of a GCC
13886 builtin and then its argument prototype would still apply. */
13887 #ifdef __cplusplus
13888 extern "C"
13889 #endif
13890 char pow ();
13891 /* The GNU C library defines this for functions which it implements
13892 to always fail with ENOSYS. Some functions are actually named
13893 something starting with __ and the normal name is an alias. */
13894 #if defined __stub_pow || defined __stub___pow
13895 choke me
13896 #endif
13899 main ()
13901 return pow ();
13903 return 0;
13905 _ACEOF
13906 rm -f conftest.$ac_objext conftest$ac_exeext
13907 if { (ac_try="$ac_link"
13908 case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13911 esac
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_link") 2>conftest.er1
13914 ac_status=$?
13915 grep -v '^ *+' conftest.er1 >conftest.err
13916 rm -f conftest.er1
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } && {
13920 test -z "$ac_c_werror_flag" ||
13921 test ! -s conftest.err
13922 } && test -s conftest$ac_exeext &&
13923 $as_test_x conftest$ac_exeext; then
13924 ac_cv_func_pow=yes
13925 else
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 ac_cv_func_pow=no
13932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13933 conftest$ac_exeext conftest.$ac_ext
13935 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13936 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13938 if test $ac_cv_func_pow = no; then
13939 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13940 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13941 if test "${ac_cv_lib_m_pow+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944 ac_check_lib_save_LIBS=$LIBS
13945 LIBS="-lm $LIBS"
13946 cat >conftest.$ac_ext <<_ACEOF
13947 /* confdefs.h. */
13948 _ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13953 /* Override any GCC internal prototype to avoid an error.
13954 Use char because int might match the return type of a GCC
13955 builtin and then its argument prototype would still apply. */
13956 #ifdef __cplusplus
13957 extern "C"
13958 #endif
13959 char pow ();
13961 main ()
13963 return pow ();
13965 return 0;
13967 _ACEOF
13968 rm -f conftest.$ac_objext conftest$ac_exeext
13969 if { (ac_try="$ac_link"
13970 case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13973 esac
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975 (eval "$ac_link") 2>conftest.er1
13976 ac_status=$?
13977 grep -v '^ *+' conftest.er1 >conftest.err
13978 rm -f conftest.er1
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && {
13982 test -z "$ac_c_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest$ac_exeext &&
13985 $as_test_x conftest$ac_exeext; then
13986 ac_cv_lib_m_pow=yes
13987 else
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13991 ac_cv_lib_m_pow=no
13994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13995 conftest$ac_exeext conftest.$ac_ext
13996 LIBS=$ac_check_lib_save_LIBS
13998 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13999 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14000 if test $ac_cv_lib_m_pow = yes; then
14001 POW_LIB=-lm
14002 else
14003 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14004 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14015 for ac_header in $ac_header_list
14017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 ac_res=`eval echo '${'$as_ac_Header'}'`
14025 { echo "$as_me:$LINENO: result: $ac_res" >&5
14026 echo "${ECHO_T}$ac_res" >&6; }
14027 else
14028 # Is the header compilable?
14029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14031 cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h. */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 $ac_includes_default
14038 #include <$ac_header>
14039 _ACEOF
14040 rm -f conftest.$ac_objext
14041 if { (ac_try="$ac_compile"
14042 case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045 esac
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
14057 ac_header_compiler=yes
14058 else
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_header_compiler=no
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14067 echo "${ECHO_T}$ac_header_compiler" >&6; }
14069 # Is the header present?
14070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h. */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <$ac_header>
14079 _ACEOF
14080 if { (ac_try="$ac_cpp conftest.$ac_ext"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14087 ac_status=$?
14088 grep -v '^ *+' conftest.er1 >conftest.err
14089 rm -f conftest.er1
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } >/dev/null && {
14093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14095 }; then
14096 ac_header_preproc=yes
14097 else
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ac_header_preproc=no
14104 rm -f conftest.err conftest.$ac_ext
14105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14106 echo "${ECHO_T}$ac_header_preproc" >&6; }
14108 # So? What about this header?
14109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14110 yes:no: )
14111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14115 ac_header_preproc=yes
14117 no:yes:* )
14118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14121 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14125 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14130 ( cat <<\_ASBOX
14131 ## ------------------------------- ##
14132 ## Report this to www.asterisk.org ##
14133 ## ------------------------------- ##
14134 _ASBOX
14135 ) | sed "s/^/$as_me: WARNING: /" >&2
14137 esac
14138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 else
14143 eval "$as_ac_Header=\$ac_header_preproc"
14145 ac_res=`eval echo '${'$as_ac_Header'}'`
14146 { echo "$as_me:$LINENO: result: $ac_res" >&5
14147 echo "${ECHO_T}$ac_res" >&6; }
14150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14151 cat >>confdefs.h <<_ACEOF
14152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14153 _ACEOF
14157 done
14167 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14168 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14169 if test "${ac_cv_func_utime_null+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172 rm -f conftest.data; >conftest.data
14173 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14174 if test "$cross_compiling" = yes; then
14175 ac_cv_func_utime_null=no
14176 else
14177 cat >conftest.$ac_ext <<_ACEOF
14178 /* confdefs.h. */
14179 _ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14183 $ac_includes_default
14184 #ifdef HAVE_UTIME_H
14185 # include <utime.h>
14186 #endif
14188 main ()
14190 struct stat s, t;
14191 return ! (stat ("conftest.data", &s) == 0
14192 && utime ("conftest.data", 0) == 0
14193 && stat ("conftest.data", &t) == 0
14194 && t.st_mtime >= s.st_mtime
14195 && t.st_mtime - s.st_mtime < 120);
14197 return 0;
14199 _ACEOF
14200 rm -f conftest$ac_exeext
14201 if { (ac_try="$ac_link"
14202 case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_link") 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14211 { (case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14214 esac
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_try") 2>&5
14217 ac_status=$?
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; }; then
14220 ac_cv_func_utime_null=yes
14221 else
14222 echo "$as_me: program exited with status $ac_status" >&5
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14226 ( exit $ac_status )
14227 ac_cv_func_utime_null=no
14229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14234 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14235 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14236 if test $ac_cv_func_utime_null = yes; then
14238 cat >>confdefs.h <<\_ACEOF
14239 #define HAVE_UTIME_NULL 1
14240 _ACEOF
14243 rm -f conftest.data
14246 for ac_func in vprintf
14248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254 cat >conftest.$ac_ext <<_ACEOF
14255 /* confdefs.h. */
14256 _ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14262 #define $ac_func innocuous_$ac_func
14264 /* System header to define __stub macros and hopefully few prototypes,
14265 which can conflict with char $ac_func (); below.
14266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14267 <limits.h> exists even on freestanding compilers. */
14269 #ifdef __STDC__
14270 # include <limits.h>
14271 #else
14272 # include <assert.h>
14273 #endif
14275 #undef $ac_func
14277 /* Override any GCC internal prototype to avoid an error.
14278 Use char because int might match the return type of a GCC
14279 builtin and then its argument prototype would still apply. */
14280 #ifdef __cplusplus
14281 extern "C"
14282 #endif
14283 char $ac_func ();
14284 /* The GNU C library defines this for functions which it implements
14285 to always fail with ENOSYS. Some functions are actually named
14286 something starting with __ and the normal name is an alias. */
14287 #if defined __stub_$ac_func || defined __stub___$ac_func
14288 choke me
14289 #endif
14292 main ()
14294 return $ac_func ();
14296 return 0;
14298 _ACEOF
14299 rm -f conftest.$ac_objext conftest$ac_exeext
14300 if { (ac_try="$ac_link"
14301 case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14304 esac
14305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306 (eval "$ac_link") 2>conftest.er1
14307 ac_status=$?
14308 grep -v '^ *+' conftest.er1 >conftest.err
14309 rm -f conftest.er1
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } && {
14313 test -z "$ac_c_werror_flag" ||
14314 test ! -s conftest.err
14315 } && test -s conftest$ac_exeext &&
14316 $as_test_x conftest$ac_exeext; then
14317 eval "$as_ac_var=yes"
14318 else
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14322 eval "$as_ac_var=no"
14325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14326 conftest$ac_exeext conftest.$ac_ext
14328 ac_res=`eval echo '${'$as_ac_var'}'`
14329 { echo "$as_me:$LINENO: result: $ac_res" >&5
14330 echo "${ECHO_T}$ac_res" >&6; }
14331 if test `eval echo '${'$as_ac_var'}'` = yes; then
14332 cat >>confdefs.h <<_ACEOF
14333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14334 _ACEOF
14336 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14337 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14338 if test "${ac_cv_func__doprnt+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341 cat >conftest.$ac_ext <<_ACEOF
14342 /* confdefs.h. */
14343 _ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14347 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14349 #define _doprnt innocuous__doprnt
14351 /* System header to define __stub macros and hopefully few prototypes,
14352 which can conflict with char _doprnt (); below.
14353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14354 <limits.h> exists even on freestanding compilers. */
14356 #ifdef __STDC__
14357 # include <limits.h>
14358 #else
14359 # include <assert.h>
14360 #endif
14362 #undef _doprnt
14364 /* Override any GCC internal prototype to avoid an error.
14365 Use char because int might match the return type of a GCC
14366 builtin and then its argument prototype would still apply. */
14367 #ifdef __cplusplus
14368 extern "C"
14369 #endif
14370 char _doprnt ();
14371 /* The GNU C library defines this for functions which it implements
14372 to always fail with ENOSYS. Some functions are actually named
14373 something starting with __ and the normal name is an alias. */
14374 #if defined __stub__doprnt || defined __stub____doprnt
14375 choke me
14376 #endif
14379 main ()
14381 return _doprnt ();
14383 return 0;
14385 _ACEOF
14386 rm -f conftest.$ac_objext conftest$ac_exeext
14387 if { (ac_try="$ac_link"
14388 case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14391 esac
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_link") 2>conftest.er1
14394 ac_status=$?
14395 grep -v '^ *+' conftest.er1 >conftest.err
14396 rm -f conftest.er1
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } && {
14400 test -z "$ac_c_werror_flag" ||
14401 test ! -s conftest.err
14402 } && test -s conftest$ac_exeext &&
14403 $as_test_x conftest$ac_exeext; then
14404 ac_cv_func__doprnt=yes
14405 else
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14409 ac_cv_func__doprnt=no
14412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14413 conftest$ac_exeext conftest.$ac_ext
14415 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14416 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14417 if test $ac_cv_func__doprnt = yes; then
14419 cat >>confdefs.h <<\_ACEOF
14420 #define HAVE_DOPRNT 1
14421 _ACEOF
14426 done
14478 for ac_func in asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
14480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486 cat >conftest.$ac_ext <<_ACEOF
14487 /* confdefs.h. */
14488 _ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14494 #define $ac_func innocuous_$ac_func
14496 /* System header to define __stub macros and hopefully few prototypes,
14497 which can conflict with char $ac_func (); below.
14498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14499 <limits.h> exists even on freestanding compilers. */
14501 #ifdef __STDC__
14502 # include <limits.h>
14503 #else
14504 # include <assert.h>
14505 #endif
14507 #undef $ac_func
14509 /* Override any GCC internal prototype to avoid an error.
14510 Use char because int might match the return type of a GCC
14511 builtin and then its argument prototype would still apply. */
14512 #ifdef __cplusplus
14513 extern "C"
14514 #endif
14515 char $ac_func ();
14516 /* The GNU C library defines this for functions which it implements
14517 to always fail with ENOSYS. Some functions are actually named
14518 something starting with __ and the normal name is an alias. */
14519 #if defined __stub_$ac_func || defined __stub___$ac_func
14520 choke me
14521 #endif
14524 main ()
14526 return $ac_func ();
14528 return 0;
14530 _ACEOF
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (ac_try="$ac_link"
14533 case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536 esac
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_link") 2>conftest.er1
14539 ac_status=$?
14540 grep -v '^ *+' conftest.er1 >conftest.err
14541 rm -f conftest.er1
14542 cat conftest.err >&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } && {
14545 test -z "$ac_c_werror_flag" ||
14546 test ! -s conftest.err
14547 } && test -s conftest$ac_exeext &&
14548 $as_test_x conftest$ac_exeext; then
14549 eval "$as_ac_var=yes"
14550 else
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 eval "$as_ac_var=no"
14557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14558 conftest$ac_exeext conftest.$ac_ext
14560 ac_res=`eval echo '${'$as_ac_var'}'`
14561 { echo "$as_me:$LINENO: result: $ac_res" >&5
14562 echo "${ECHO_T}$ac_res" >&6; }
14563 if test `eval echo '${'$as_ac_var'}'` = yes; then
14564 cat >>confdefs.h <<_ACEOF
14565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14566 _ACEOF
14569 done
14572 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14573 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
14574 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
14575 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 else
14578 ac_func_search_save_LIBS=$LIBS
14579 cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h. */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14586 /* Override any GCC internal prototype to avoid an error.
14587 Use char because int might match the return type of a GCC
14588 builtin and then its argument prototype would still apply. */
14589 #ifdef __cplusplus
14590 extern "C"
14591 #endif
14592 char gethostbyname_r ();
14594 main ()
14596 return gethostbyname_r ();
14598 return 0;
14600 _ACEOF
14601 for ac_lib in '' socket nsl; do
14602 if test -z "$ac_lib"; then
14603 ac_res="none required"
14604 else
14605 ac_res=-l$ac_lib
14606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (ac_try="$ac_link"
14610 case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_link") 2>conftest.er1
14616 ac_status=$?
14617 grep -v '^ *+' conftest.er1 >conftest.err
14618 rm -f conftest.er1
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } && {
14622 test -z "$ac_c_werror_flag" ||
14623 test ! -s conftest.err
14624 } && test -s conftest$ac_exeext &&
14625 $as_test_x conftest$ac_exeext; then
14626 ac_cv_search_gethostbyname_r=$ac_res
14627 else
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14635 conftest$ac_exeext
14636 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14637 break
14639 done
14640 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14642 else
14643 ac_cv_search_gethostbyname_r=no
14645 rm conftest.$ac_ext
14646 LIBS=$ac_func_search_save_LIBS
14648 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
14649 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14650 ac_res=$ac_cv_search_gethostbyname_r
14651 if test "$ac_res" != no; then
14652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14657 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
14658 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
14659 cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h. */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14665 #include <stdlib.h>
14666 #include <netdb.h>
14668 main ()
14670 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14672 return 0;
14674 _ACEOF
14675 rm -f conftest.$ac_objext conftest$ac_exeext
14676 if { (ac_try="$ac_link"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680 esac
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_link") 2>conftest.er1
14683 ac_status=$?
14684 grep -v '^ *+' conftest.er1 >conftest.err
14685 rm -f conftest.er1
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } && {
14689 test -z "$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14691 } && test -s conftest$ac_exeext &&
14692 $as_test_x conftest$ac_exeext; then
14693 { echo "$as_me:$LINENO: result: yes" >&5
14694 echo "${ECHO_T}yes" >&6; }
14696 cat >>confdefs.h <<\_ACEOF
14697 #define HAVE_GETHOSTBYNAME_R_6 1
14698 _ACEOF
14700 else
14701 echo "$as_me: failed program was:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14704 { echo "$as_me:$LINENO: result: no" >&5
14705 echo "${ECHO_T}no" >&6; }
14709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14710 conftest$ac_exeext conftest.$ac_ext
14712 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
14713 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
14714 cat >conftest.$ac_ext <<_ACEOF
14715 /* confdefs.h. */
14716 _ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h. */
14720 #include <stdlib.h>
14721 #include <netdb.h>
14723 main ()
14725 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14727 return 0;
14729 _ACEOF
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (ac_try="$ac_link"
14732 case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14735 esac
14736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_link") 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } && {
14744 test -z "$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14746 } && test -s conftest$ac_exeext &&
14747 $as_test_x conftest$ac_exeext; then
14748 { echo "$as_me:$LINENO: result: yes" >&5
14749 echo "${ECHO_T}yes" >&6; }
14751 cat >>confdefs.h <<\_ACEOF
14752 #define HAVE_GETHOSTBYNAME_R_5 1
14753 _ACEOF
14755 else
14756 echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14759 { echo "$as_me:$LINENO: result: no" >&5
14760 echo "${ECHO_T}no" >&6; }
14764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14765 conftest$ac_exeext conftest.$ac_ext
14767 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14768 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 #include <pthread.h>
14777 main ()
14779 int foo = PTHREAD_RWLOCK_INITIALIZER;
14781 return 0;
14783 _ACEOF
14784 rm -f conftest.$ac_objext conftest$ac_exeext
14785 if { (ac_try="$ac_link"
14786 case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14789 esac
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_link") 2>conftest.er1
14792 ac_status=$?
14793 grep -v '^ *+' conftest.er1 >conftest.err
14794 rm -f conftest.er1
14795 cat conftest.err >&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } && {
14798 test -z "$ac_c_werror_flag" ||
14799 test ! -s conftest.err
14800 } && test -s conftest$ac_exeext &&
14801 $as_test_x conftest$ac_exeext; then
14802 { echo "$as_me:$LINENO: result: yes" >&5
14803 echo "${ECHO_T}yes" >&6; }
14805 cat >>confdefs.h <<\_ACEOF
14806 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14807 _ACEOF
14809 else
14810 echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14813 { echo "$as_me:$LINENO: result: no" >&5
14814 echo "${ECHO_T}no" >&6; }
14818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14819 conftest$ac_exeext conftest.$ac_ext
14821 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14822 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14823 cat >conftest.$ac_ext <<_ACEOF
14824 /* confdefs.h. */
14825 _ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h. */
14829 #include <pthread.h>
14831 main ()
14833 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14835 return 0;
14837 _ACEOF
14838 rm -f conftest.$ac_objext conftest$ac_exeext
14839 if { (ac_try="$ac_link"
14840 case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14843 esac
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_link") 2>conftest.er1
14846 ac_status=$?
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest$ac_exeext &&
14855 $as_test_x conftest$ac_exeext; then
14856 { echo "$as_me:$LINENO: result: yes" >&5
14857 echo "${ECHO_T}yes" >&6; }
14859 cat >>confdefs.h <<\_ACEOF
14860 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14861 _ACEOF
14863 else
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 { echo "$as_me:$LINENO: result: no" >&5
14868 echo "${ECHO_T}no" >&6; }
14872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14873 conftest$ac_exeext conftest.$ac_ext
14875 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14876 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14877 cat >conftest.$ac_ext <<_ACEOF
14878 /* confdefs.h. */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14885 main ()
14887 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14889 return 0;
14891 _ACEOF
14892 rm -f conftest.$ac_objext conftest$ac_exeext
14893 if { (ac_try="$ac_link"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897 esac
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_link") 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } && {
14906 test -z "$ac_c_werror_flag" ||
14907 test ! -s conftest.err
14908 } && test -s conftest$ac_exeext &&
14909 $as_test_x conftest$ac_exeext; then
14910 { echo "$as_me:$LINENO: result: yes" >&5
14911 echo "${ECHO_T}yes" >&6; }
14913 cat >>confdefs.h <<\_ACEOF
14914 #define HAVE_GCC_ATOMICS 1
14915 _ACEOF
14917 else
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 { echo "$as_me:$LINENO: result: no" >&5
14922 echo "${ECHO_T}no" >&6; }
14926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14927 conftest$ac_exeext conftest.$ac_ext
14930 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14931 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14932 saved_CFLAGS="$CFLAGS"
14933 CFLAGS="$CFLAGS -Werror"
14934 cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h. */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 static void __attribute__((pure)) *test(void *muffin, ...) {}
14942 main ()
14946 return 0;
14948 _ACEOF
14949 rm -f conftest.$ac_objext
14950 if { (ac_try="$ac_compile"
14951 case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14954 esac
14955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_compile") 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && {
14963 test -z "$ac_c_werror_flag" ||
14964 test ! -s conftest.err
14965 } && test -s conftest.$ac_objext; then
14966 { echo "$as_me:$LINENO: result: yes" >&5
14967 echo "${ECHO_T}yes" >&6; }
14969 cat >>confdefs.h <<_ACEOF
14970 #define HAVE_ATTRIBUTE_pure 1
14971 _ACEOF
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 { echo "$as_me:$LINENO: result: no" >&5
14978 echo "${ECHO_T}no" >&6; }
14981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 CFLAGS="$saved_CFLAGS"
14986 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14987 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14988 saved_CFLAGS="$CFLAGS"
14989 CFLAGS="$CFLAGS -Werror"
14990 cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h. */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 static void __attribute__((malloc)) *test(void *muffin, ...) {}
14998 main ()
15002 return 0;
15004 _ACEOF
15005 rm -f conftest.$ac_objext
15006 if { (ac_try="$ac_compile"
15007 case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15010 esac
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_compile") 2>conftest.er1
15013 ac_status=$?
15014 grep -v '^ *+' conftest.er1 >conftest.err
15015 rm -f conftest.er1
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } && {
15019 test -z "$ac_c_werror_flag" ||
15020 test ! -s conftest.err
15021 } && test -s conftest.$ac_objext; then
15022 { echo "$as_me:$LINENO: result: yes" >&5
15023 echo "${ECHO_T}yes" >&6; }
15025 cat >>confdefs.h <<_ACEOF
15026 #define HAVE_ATTRIBUTE_malloc 1
15027 _ACEOF
15029 else
15030 echo "$as_me: failed program was:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15033 { echo "$as_me:$LINENO: result: no" >&5
15034 echo "${ECHO_T}no" >&6; }
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 CFLAGS="$saved_CFLAGS"
15042 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
15043 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
15044 saved_CFLAGS="$CFLAGS"
15045 CFLAGS="$CFLAGS -Werror"
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h. */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 static void __attribute__((const)) *test(void *muffin, ...) {}
15054 main ()
15058 return 0;
15060 _ACEOF
15061 rm -f conftest.$ac_objext
15062 if { (ac_try="$ac_compile"
15063 case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066 esac
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_compile") 2>conftest.er1
15069 ac_status=$?
15070 grep -v '^ *+' conftest.er1 >conftest.err
15071 rm -f conftest.er1
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest.$ac_objext; then
15078 { echo "$as_me:$LINENO: result: yes" >&5
15079 echo "${ECHO_T}yes" >&6; }
15081 cat >>confdefs.h <<_ACEOF
15082 #define HAVE_ATTRIBUTE_const 1
15083 _ACEOF
15085 else
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 { echo "$as_me:$LINENO: result: no" >&5
15090 echo "${ECHO_T}no" >&6; }
15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 CFLAGS="$saved_CFLAGS"
15098 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
15099 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
15100 saved_CFLAGS="$CFLAGS"
15101 CFLAGS="$CFLAGS -Werror"
15102 cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h. */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108 static void __attribute__((unused)) *test(void *muffin, ...) {}
15110 main ()
15114 return 0;
15116 _ACEOF
15117 rm -f conftest.$ac_objext
15118 if { (ac_try="$ac_compile"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_compile") 2>conftest.er1
15125 ac_status=$?
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest.$ac_objext; then
15134 { echo "$as_me:$LINENO: result: yes" >&5
15135 echo "${ECHO_T}yes" >&6; }
15137 cat >>confdefs.h <<_ACEOF
15138 #define HAVE_ATTRIBUTE_unused 1
15139 _ACEOF
15141 else
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 { echo "$as_me:$LINENO: result: no" >&5
15146 echo "${ECHO_T}no" >&6; }
15149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151 CFLAGS="$saved_CFLAGS"
15154 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
15155 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
15156 saved_CFLAGS="$CFLAGS"
15157 CFLAGS="$CFLAGS -Werror"
15158 cat >conftest.$ac_ext <<_ACEOF
15159 /* confdefs.h. */
15160 _ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h. */
15164 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
15166 main ()
15170 return 0;
15172 _ACEOF
15173 rm -f conftest.$ac_objext
15174 if { (ac_try="$ac_compile"
15175 case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15178 esac
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_compile") 2>conftest.er1
15181 ac_status=$?
15182 grep -v '^ *+' conftest.er1 >conftest.err
15183 rm -f conftest.er1
15184 cat conftest.err >&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } && {
15187 test -z "$ac_c_werror_flag" ||
15188 test ! -s conftest.err
15189 } && test -s conftest.$ac_objext; then
15190 { echo "$as_me:$LINENO: result: yes" >&5
15191 echo "${ECHO_T}yes" >&6; }
15193 cat >>confdefs.h <<_ACEOF
15194 #define HAVE_ATTRIBUTE_always_inline 1
15195 _ACEOF
15197 else
15198 echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15201 { echo "$as_me:$LINENO: result: no" >&5
15202 echo "${ECHO_T}no" >&6; }
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 CFLAGS="$saved_CFLAGS"
15210 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
15211 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
15212 saved_CFLAGS="$CFLAGS"
15213 CFLAGS="$CFLAGS -Werror"
15214 cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h. */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15220 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
15222 main ()
15226 return 0;
15228 _ACEOF
15229 rm -f conftest.$ac_objext
15230 if { (ac_try="$ac_compile"
15231 case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234 esac
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_compile") 2>conftest.er1
15237 ac_status=$?
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } && {
15243 test -z "$ac_c_werror_flag" ||
15244 test ! -s conftest.err
15245 } && test -s conftest.$ac_objext; then
15246 { echo "$as_me:$LINENO: result: yes" >&5
15247 echo "${ECHO_T}yes" >&6; }
15249 cat >>confdefs.h <<_ACEOF
15250 #define HAVE_ATTRIBUTE_deprecated 1
15251 _ACEOF
15253 else
15254 echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15257 { echo "$as_me:$LINENO: result: no" >&5
15258 echo "${ECHO_T}no" >&6; }
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 CFLAGS="$saved_CFLAGS"
15266 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
15267 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
15268 saved_CFLAGS="${CFLAGS}"
15269 CFLAGS="${CFLAGS} -ffunction-sections"
15270 cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h. */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15278 main ()
15280 int x = 1;
15282 return 0;
15284 _ACEOF
15285 rm -f conftest.$ac_objext
15286 if { (ac_try="$ac_compile"
15287 case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15290 esac
15291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_compile") 2>conftest.er1
15293 ac_status=$?
15294 grep -v '^ *+' conftest.er1 >conftest.err
15295 rm -f conftest.er1
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } && {
15299 test -z "$ac_c_werror_flag" ||
15300 test ! -s conftest.err
15301 } && test -s conftest.$ac_objext; then
15302 { echo "$as_me:$LINENO: result: yes" >&5
15303 echo "${ECHO_T}yes" >&6; }
15304 saved_LDFLAGS="${LDFLAGS}"
15305 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15306 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
15307 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
15308 cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h. */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15316 main ()
15318 int x = 1;
15320 return 0;
15322 _ACEOF
15323 rm -f conftest.$ac_objext conftest$ac_exeext
15324 if { (ac_try="$ac_link"
15325 case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_link") 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } && {
15337 test -z "$ac_c_werror_flag" ||
15338 test ! -s conftest.err
15339 } && test -s conftest$ac_exeext &&
15340 $as_test_x conftest$ac_exeext; then
15341 { echo "$as_me:$LINENO: result: yes" >&5
15342 echo "${ECHO_T}yes" >&6; }
15343 GC_CFLAGS="-ffunction-sections"
15344 GC_LDFLAGS="-Wl,--gc-sections"
15345 else
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 { echo "$as_me:$LINENO: result: no" >&5
15350 echo "${ECHO_T}no" >&6; }
15354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15355 conftest$ac_exeext conftest.$ac_ext
15356 LDFLAGS="${saved_LDFLAGS}"
15357 else
15358 echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15361 { echo "$as_me:$LINENO: result: no" >&5
15362 echo "${ECHO_T}no" >&6; }
15366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 CFLAGS="${saved_CFLAGS}"
15371 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
15372 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15373 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15374 { echo "$as_me:$LINENO: result: yes" >&5
15375 echo "${ECHO_T}yes" >&6; }
15376 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15377 else
15378 { echo "$as_me:$LINENO: result: no" >&5
15379 echo "${ECHO_T}no" >&6; }
15380 AST_DECLARATION_AFTER_STATEMENT=
15384 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
15385 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
15386 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15387 { echo "$as_me:$LINENO: result: yes" >&5
15388 echo "${ECHO_T}yes" >&6; }
15389 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15390 else
15391 { echo "$as_me:$LINENO: result: no" >&5
15392 echo "${ECHO_T}no" >&6; }
15393 AST_NO_STRICT_OVERFLOW=
15397 { echo "$as_me:$LINENO: checking for library containing res_9_ninit" >&5
15398 echo $ECHO_N "checking for library containing res_9_ninit... $ECHO_C" >&6; }
15399 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15402 ac_func_search_save_LIBS=$LIBS
15403 cat >conftest.$ac_ext <<_ACEOF
15404 /* confdefs.h. */
15405 _ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h. */
15410 /* Override any GCC internal prototype to avoid an error.
15411 Use char because int might match the return type of a GCC
15412 builtin and then its argument prototype would still apply. */
15413 #ifdef __cplusplus
15414 extern "C"
15415 #endif
15416 char res_9_ninit ();
15418 main ()
15420 return res_9_ninit ();
15422 return 0;
15424 _ACEOF
15425 for ac_lib in '' resolv; do
15426 if test -z "$ac_lib"; then
15427 ac_res="none required"
15428 else
15429 ac_res=-l$ac_lib
15430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (ac_try="$ac_link"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_link") 2>conftest.er1
15440 ac_status=$?
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } && {
15446 test -z "$ac_c_werror_flag" ||
15447 test ! -s conftest.err
15448 } && test -s conftest$ac_exeext &&
15449 $as_test_x conftest$ac_exeext; then
15450 ac_cv_search_res_9_ninit=$ac_res
15451 else
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15459 conftest$ac_exeext
15460 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15461 break
15463 done
15464 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15466 else
15467 ac_cv_search_res_9_ninit=no
15469 rm conftest.$ac_ext
15470 LIBS=$ac_func_search_save_LIBS
15472 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ninit" >&5
15473 echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; }
15474 ac_res=$ac_cv_search_res_9_ninit
15475 if test "$ac_res" != no; then
15476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15480 { echo "$as_me:$LINENO: checking for res_ninit" >&5
15481 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
15482 cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h. */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15489 #ifdef HAVE_SYS_SOCKET_H
15490 #include <sys/socket.h>
15491 #endif
15492 #ifdef HAVE_NETINET_IN_H
15493 #include <netinet/in.h>
15494 #endif
15495 #ifdef HAVE_ARPA_NAMESER_H
15496 #include <arpa/nameser.h>
15497 #endif
15498 #include <resolv.h>
15500 main ()
15502 int foo = res_ninit(NULL);
15504 return 0;
15506 _ACEOF
15507 rm -f conftest.$ac_objext conftest$ac_exeext
15508 if { (ac_try="$ac_link"
15509 case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15512 esac
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_link") 2>conftest.er1
15515 ac_status=$?
15516 grep -v '^ *+' conftest.er1 >conftest.err
15517 rm -f conftest.er1
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } && {
15521 test -z "$ac_c_werror_flag" ||
15522 test ! -s conftest.err
15523 } && test -s conftest$ac_exeext &&
15524 $as_test_x conftest$ac_exeext; then
15525 { echo "$as_me:$LINENO: result: yes" >&5
15526 echo "${ECHO_T}yes" >&6; }
15528 cat >>confdefs.h <<\_ACEOF
15529 #define HAVE_RES_NINIT 1
15530 _ACEOF
15532 { echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5
15533 echo $ECHO_N "checking for library containing res_9_ndestroy... $ECHO_C" >&6; }
15534 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 else
15537 ac_func_search_save_LIBS=$LIBS
15538 cat >conftest.$ac_ext <<_ACEOF
15539 /* confdefs.h. */
15540 _ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15545 /* Override any GCC internal prototype to avoid an error.
15546 Use char because int might match the return type of a GCC
15547 builtin and then its argument prototype would still apply. */
15548 #ifdef __cplusplus
15549 extern "C"
15550 #endif
15551 char res_9_ndestroy ();
15553 main ()
15555 return res_9_ndestroy ();
15557 return 0;
15559 _ACEOF
15560 for ac_lib in '' resolv; do
15561 if test -z "$ac_lib"; then
15562 ac_res="none required"
15563 else
15564 ac_res=-l$ac_lib
15565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15567 rm -f conftest.$ac_objext conftest$ac_exeext
15568 if { (ac_try="$ac_link"
15569 case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15572 esac
15573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15574 (eval "$ac_link") 2>conftest.er1
15575 ac_status=$?
15576 grep -v '^ *+' conftest.er1 >conftest.err
15577 rm -f conftest.er1
15578 cat conftest.err >&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } && {
15581 test -z "$ac_c_werror_flag" ||
15582 test ! -s conftest.err
15583 } && test -s conftest$ac_exeext &&
15584 $as_test_x conftest$ac_exeext; then
15585 ac_cv_search_res_9_ndestroy=$ac_res
15586 else
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15594 conftest$ac_exeext
15595 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15596 break
15598 done
15599 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15601 else
15602 ac_cv_search_res_9_ndestroy=no
15604 rm conftest.$ac_ext
15605 LIBS=$ac_func_search_save_LIBS
15607 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ndestroy" >&5
15608 echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; }
15609 ac_res=$ac_cv_search_res_9_ndestroy
15610 if test "$ac_res" != no; then
15611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15615 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
15616 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
15617 cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h. */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15624 #ifdef HAVE_SYS_SOCKET_H
15625 #include <sys/socket.h>
15626 #endif
15627 #ifdef HAVE_NETINET_IN_H
15628 #include <netinet/in.h>
15629 #endif
15630 #ifdef HAVE_ARPA_NAMESER_H
15631 #include <arpa/nameser.h>
15632 #endif
15633 #include <resolv.h>
15635 main ()
15637 res_ndestroy(NULL);
15639 return 0;
15641 _ACEOF
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (ac_try="$ac_link"
15644 case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15647 esac
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_link") 2>conftest.er1
15650 ac_status=$?
15651 grep -v '^ *+' conftest.er1 >conftest.err
15652 rm -f conftest.er1
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } && {
15656 test -z "$ac_c_werror_flag" ||
15657 test ! -s conftest.err
15658 } && test -s conftest$ac_exeext &&
15659 $as_test_x conftest$ac_exeext; then
15660 { echo "$as_me:$LINENO: result: yes" >&5
15661 echo "${ECHO_T}yes" >&6; }
15663 cat >>confdefs.h <<\_ACEOF
15664 #define HAVE_RES_NDESTROY 1
15665 _ACEOF
15667 else
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 { echo "$as_me:$LINENO: result: no" >&5
15672 echo "${ECHO_T}no" >&6; }
15676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15677 conftest$ac_exeext conftest.$ac_ext
15678 else
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15682 { echo "$as_me:$LINENO: result: no" >&5
15683 echo "${ECHO_T}no" >&6; }
15687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15688 conftest$ac_exeext conftest.$ac_ext
15690 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
15691 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h. */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 #include <dlfcn.h>
15700 main ()
15702 int foo = RTLD_NOLOAD;
15704 return 0;
15706 _ACEOF
15707 rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (ac_try="$ac_link"
15709 case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15712 esac
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_link") 2>conftest.er1
15715 ac_status=$?
15716 grep -v '^ *+' conftest.er1 >conftest.err
15717 rm -f conftest.er1
15718 cat conftest.err >&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } && {
15721 test -z "$ac_c_werror_flag" ||
15722 test ! -s conftest.err
15723 } && test -s conftest$ac_exeext &&
15724 $as_test_x conftest$ac_exeext; then
15725 { echo "$as_me:$LINENO: result: yes" >&5
15726 echo "${ECHO_T}yes" >&6; }
15728 cat >>confdefs.h <<\_ACEOF
15729 #define HAVE_RTLD_NOLOAD 1
15730 _ACEOF
15732 else
15733 echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15736 { echo "$as_me:$LINENO: result: no" >&5
15737 echo "${ECHO_T}no" >&6; }
15741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15742 conftest$ac_exeext conftest.$ac_ext
15744 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
15745 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
15746 cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h. */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 #include <netinet/in.h>
15754 main ()
15756 int foo = IP_MTU_DISCOVER;
15758 return 0;
15760 _ACEOF
15761 rm -f conftest.$ac_objext conftest$ac_exeext
15762 if { (ac_try="$ac_link"
15763 case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15766 esac
15767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_link") 2>conftest.er1
15769 ac_status=$?
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest$ac_exeext &&
15778 $as_test_x conftest$ac_exeext; then
15779 { echo "$as_me:$LINENO: result: yes" >&5
15780 echo "${ECHO_T}yes" >&6; }
15782 cat >>confdefs.h <<\_ACEOF
15783 #define HAVE_IP_MTU_DISCOVER 1
15784 _ACEOF
15786 else
15787 echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15790 { echo "$as_me:$LINENO: result: no" >&5
15791 echo "${ECHO_T}no" >&6; }
15795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15796 conftest$ac_exeext conftest.$ac_ext
15798 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15799 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15800 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15801 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15805 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15806 else
15807 # Is the header compilable?
15808 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
15809 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
15810 cat >conftest.$ac_ext <<_ACEOF
15811 /* confdefs.h. */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 $ac_includes_default
15817 #include <libkern/OSAtomic.h>
15818 _ACEOF
15819 rm -f conftest.$ac_objext
15820 if { (ac_try="$ac_compile"
15821 case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15824 esac
15825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826 (eval "$ac_compile") 2>conftest.er1
15827 ac_status=$?
15828 grep -v '^ *+' conftest.er1 >conftest.err
15829 rm -f conftest.er1
15830 cat conftest.err >&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } && {
15833 test -z "$ac_c_werror_flag" ||
15834 test ! -s conftest.err
15835 } && test -s conftest.$ac_objext; then
15836 ac_header_compiler=yes
15837 else
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_header_compiler=no
15844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15846 echo "${ECHO_T}$ac_header_compiler" >&6; }
15848 # Is the header present?
15849 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
15850 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
15851 cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h. */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 #include <libkern/OSAtomic.h>
15858 _ACEOF
15859 if { (ac_try="$ac_cpp conftest.$ac_ext"
15860 case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15863 esac
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15866 ac_status=$?
15867 grep -v '^ *+' conftest.er1 >conftest.err
15868 rm -f conftest.er1
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } >/dev/null && {
15872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15873 test ! -s conftest.err
15874 }; then
15875 ac_header_preproc=yes
15876 else
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_header_preproc=no
15883 rm -f conftest.err conftest.$ac_ext
15884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15885 echo "${ECHO_T}$ac_header_preproc" >&6; }
15887 # So? What about this header?
15888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15889 yes:no: )
15890 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
15891 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
15893 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
15894 ac_header_preproc=yes
15896 no:yes:* )
15897 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
15898 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
15900 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
15902 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
15904 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
15906 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
15908 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
15909 ( cat <<\_ASBOX
15910 ## ------------------------------- ##
15911 ## Report this to www.asterisk.org ##
15912 ## ------------------------------- ##
15913 _ASBOX
15914 ) | sed "s/^/$as_me: WARNING: /" >&2
15916 esac
15917 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15918 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15919 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 else
15922 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15924 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15925 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15928 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15930 cat >>confdefs.h <<_ACEOF
15931 #define HAVE_OSX_ATOMICS 1
15932 _ACEOF
15938 { echo "$as_me:$LINENO: checking for int" >&5
15939 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
15940 if test "${ac_cv_type_int+set}" = set; then
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15942 else
15943 cat >conftest.$ac_ext <<_ACEOF
15944 /* confdefs.h. */
15945 _ACEOF
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h. */
15949 $ac_includes_default
15950 typedef int ac__type_new_;
15952 main ()
15954 if ((ac__type_new_ *) 0)
15955 return 0;
15956 if (sizeof (ac__type_new_))
15957 return 0;
15959 return 0;
15961 _ACEOF
15962 rm -f conftest.$ac_objext
15963 if { (ac_try="$ac_compile"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15967 esac
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_compile") 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest.$ac_objext; then
15979 ac_cv_type_int=yes
15980 else
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 ac_cv_type_int=no
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15990 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15992 # The cast to long int works around a bug in the HP C Compiler
15993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15995 # This bug is HP SR number 8606223364.
15996 { echo "$as_me:$LINENO: checking size of int" >&5
15997 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15998 if test "${ac_cv_sizeof_int+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001 if test "$cross_compiling" = yes; then
16002 # Depending upon the size, compute the lo and hi bounds.
16003 cat >conftest.$ac_ext <<_ACEOF
16004 /* confdefs.h. */
16005 _ACEOF
16006 cat confdefs.h >>conftest.$ac_ext
16007 cat >>conftest.$ac_ext <<_ACEOF
16008 /* end confdefs.h. */
16009 $ac_includes_default
16010 typedef int ac__type_sizeof_;
16012 main ()
16014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
16015 test_array [0] = 0
16018 return 0;
16020 _ACEOF
16021 rm -f conftest.$ac_objext
16022 if { (ac_try="$ac_compile"
16023 case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16026 esac
16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_compile") 2>conftest.er1
16029 ac_status=$?
16030 grep -v '^ *+' conftest.er1 >conftest.err
16031 rm -f conftest.er1
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } && {
16035 test -z "$ac_c_werror_flag" ||
16036 test ! -s conftest.err
16037 } && test -s conftest.$ac_objext; then
16038 ac_lo=0 ac_mid=0
16039 while :; do
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h. */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 $ac_includes_default
16047 typedef int ac__type_sizeof_;
16049 main ()
16051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16052 test_array [0] = 0
16055 return 0;
16057 _ACEOF
16058 rm -f conftest.$ac_objext
16059 if { (ac_try="$ac_compile"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_compile") 2>conftest.er1
16066 ac_status=$?
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } && {
16072 test -z "$ac_c_werror_flag" ||
16073 test ! -s conftest.err
16074 } && test -s conftest.$ac_objext; then
16075 ac_hi=$ac_mid; break
16076 else
16077 echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16080 ac_lo=`expr $ac_mid + 1`
16081 if test $ac_lo -le $ac_mid; then
16082 ac_lo= ac_hi=
16083 break
16085 ac_mid=`expr 2 '*' $ac_mid + 1`
16088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089 done
16090 else
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
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 $ac_includes_default
16101 typedef int ac__type_sizeof_;
16103 main ()
16105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
16106 test_array [0] = 0
16109 return 0;
16111 _ACEOF
16112 rm -f conftest.$ac_objext
16113 if { (ac_try="$ac_compile"
16114 case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16117 esac
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119 (eval "$ac_compile") 2>conftest.er1
16120 ac_status=$?
16121 grep -v '^ *+' conftest.er1 >conftest.err
16122 rm -f conftest.er1
16123 cat conftest.err >&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } && {
16126 test -z "$ac_c_werror_flag" ||
16127 test ! -s conftest.err
16128 } && test -s conftest.$ac_objext; then
16129 ac_hi=-1 ac_mid=-1
16130 while :; do
16131 cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h. */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 $ac_includes_default
16138 typedef int ac__type_sizeof_;
16140 main ()
16142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
16143 test_array [0] = 0
16146 return 0;
16148 _ACEOF
16149 rm -f conftest.$ac_objext
16150 if { (ac_try="$ac_compile"
16151 case "(($ac_try" in
16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16154 esac
16155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156 (eval "$ac_compile") 2>conftest.er1
16157 ac_status=$?
16158 grep -v '^ *+' conftest.er1 >conftest.err
16159 rm -f conftest.er1
16160 cat conftest.err >&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && {
16163 test -z "$ac_c_werror_flag" ||
16164 test ! -s conftest.err
16165 } && test -s conftest.$ac_objext; then
16166 ac_lo=$ac_mid; break
16167 else
16168 echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 ac_hi=`expr '(' $ac_mid ')' - 1`
16172 if test $ac_mid -le $ac_hi; then
16173 ac_lo= ac_hi=
16174 break
16176 ac_mid=`expr 2 '*' $ac_mid`
16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180 done
16181 else
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 ac_lo= ac_hi=
16188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192 # Binary search between lo and hi bounds.
16193 while test "x$ac_lo" != "x$ac_hi"; do
16194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16195 cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h. */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 $ac_includes_default
16202 typedef int ac__type_sizeof_;
16204 main ()
16206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16207 test_array [0] = 0
16210 return 0;
16212 _ACEOF
16213 rm -f conftest.$ac_objext
16214 if { (ac_try="$ac_compile"
16215 case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16218 esac
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_compile") 2>conftest.er1
16221 ac_status=$?
16222 grep -v '^ *+' conftest.er1 >conftest.err
16223 rm -f conftest.er1
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } && {
16227 test -z "$ac_c_werror_flag" ||
16228 test ! -s conftest.err
16229 } && test -s conftest.$ac_objext; then
16230 ac_hi=$ac_mid
16231 else
16232 echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16235 ac_lo=`expr '(' $ac_mid ')' + 1`
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 done
16240 case $ac_lo in
16241 ?*) ac_cv_sizeof_int=$ac_lo;;
16242 '') if test "$ac_cv_type_int" = yes; then
16243 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16244 See \`config.log' for more details." >&5
16245 echo "$as_me: error: cannot compute sizeof (int)
16246 See \`config.log' for more details." >&2;}
16247 { (exit 77); exit 77; }; }
16248 else
16249 ac_cv_sizeof_int=0
16250 fi ;;
16251 esac
16252 else
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 $ac_includes_default
16260 typedef int ac__type_sizeof_;
16261 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16262 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16263 #include <stdio.h>
16264 #include <stdlib.h>
16266 main ()
16269 FILE *f = fopen ("conftest.val", "w");
16270 if (! f)
16271 return 1;
16272 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16274 long int i = longval ();
16275 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16276 return 1;
16277 fprintf (f, "%ld\n", i);
16279 else
16281 unsigned long int i = ulongval ();
16282 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16283 return 1;
16284 fprintf (f, "%lu\n", i);
16286 return ferror (f) || fclose (f) != 0;
16289 return 0;
16291 _ACEOF
16292 rm -f conftest$ac_exeext
16293 if { (ac_try="$ac_link"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297 esac
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_link") 2>&5
16300 ac_status=$?
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16303 { (case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_try") 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16312 ac_cv_sizeof_int=`cat conftest.val`
16313 else
16314 echo "$as_me: program exited with status $ac_status" >&5
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 ( exit $ac_status )
16319 if test "$ac_cv_type_int" = yes; then
16320 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16321 See \`config.log' for more details." >&5
16322 echo "$as_me: error: cannot compute sizeof (int)
16323 See \`config.log' for more details." >&2;}
16324 { (exit 77); exit 77; }; }
16325 else
16326 ac_cv_sizeof_int=0
16329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16331 rm -f conftest.val
16333 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16334 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16338 cat >>confdefs.h <<_ACEOF
16339 #define SIZEOF_INT $ac_cv_sizeof_int
16340 _ACEOF
16344 # do the package library checks now
16347 if test "${USE_ALSA}" != "no"; then
16348 pbxlibdir=""
16349 if test "x${ALSA_DIR}" != "x"; then
16350 if test -d ${ALSA_DIR}/lib; then
16351 pbxlibdir="-L${ALSA_DIR}/lib"
16352 else
16353 pbxlibdir="-L${ALSA_DIR}"
16356 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16357 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16358 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361 ac_check_lib_save_LIBS=$LIBS
16362 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16370 /* Override any GCC internal prototype to avoid an error.
16371 Use char because int might match the return type of a GCC
16372 builtin and then its argument prototype would still apply. */
16373 #ifdef __cplusplus
16374 extern "C"
16375 #endif
16376 char snd_spcm_init ();
16378 main ()
16380 return snd_spcm_init ();
16382 return 0;
16384 _ACEOF
16385 rm -f conftest.$ac_objext conftest$ac_exeext
16386 if { (ac_try="$ac_link"
16387 case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16390 esac
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_link") 2>conftest.er1
16393 ac_status=$?
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } && {
16399 test -z "$ac_c_werror_flag" ||
16400 test ! -s conftest.err
16401 } && test -s conftest$ac_exeext &&
16402 $as_test_x conftest$ac_exeext; then
16403 ac_cv_lib_asound_snd_spcm_init=yes
16404 else
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16408 ac_cv_lib_asound_snd_spcm_init=no
16411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16412 conftest$ac_exeext conftest.$ac_ext
16413 LIBS=$ac_check_lib_save_LIBS
16415 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16416 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16417 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16418 AST_ALSA_FOUND=yes
16419 else
16420 AST_ALSA_FOUND=no
16424 if test "${AST_ALSA_FOUND}" = "yes"; then
16425 ALSA_LIB="-lasound -lm -ldl"
16426 ALSA_HEADER_FOUND="1"
16427 if test "x${ALSA_DIR}" != "x"; then
16428 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
16429 ALSA_INCLUDE="-I${ALSA_DIR}/include"
16431 ALSA_INCLUDE="${ALSA_INCLUDE} "
16432 saved_cppflags="${CPPFLAGS}"
16433 CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
16434 if test "xalsa/asoundlib.h" != "x" ; then
16435 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16436 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16437 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16438 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16441 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16442 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16443 else
16444 # Is the header compilable?
16445 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16446 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16447 cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h. */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 $ac_includes_default
16454 #include <alsa/asoundlib.h>
16455 _ACEOF
16456 rm -f conftest.$ac_objext
16457 if { (ac_try="$ac_compile"
16458 case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_compile") 2>conftest.er1
16464 ac_status=$?
16465 grep -v '^ *+' conftest.er1 >conftest.err
16466 rm -f conftest.er1
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } && {
16470 test -z "$ac_c_werror_flag" ||
16471 test ! -s conftest.err
16472 } && test -s conftest.$ac_objext; then
16473 ac_header_compiler=yes
16474 else
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16478 ac_header_compiler=no
16481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16483 echo "${ECHO_T}$ac_header_compiler" >&6; }
16485 # Is the header present?
16486 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16487 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16488 cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h. */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16494 #include <alsa/asoundlib.h>
16495 _ACEOF
16496 if { (ac_try="$ac_cpp conftest.$ac_ext"
16497 case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16500 esac
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16503 ac_status=$?
16504 grep -v '^ *+' conftest.er1 >conftest.err
16505 rm -f conftest.er1
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } >/dev/null && {
16509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16510 test ! -s conftest.err
16511 }; then
16512 ac_header_preproc=yes
16513 else
16514 echo "$as_me: failed program was:" >&5
16515 sed 's/^/| /' conftest.$ac_ext >&5
16517 ac_header_preproc=no
16520 rm -f conftest.err conftest.$ac_ext
16521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16522 echo "${ECHO_T}$ac_header_preproc" >&6; }
16524 # So? What about this header?
16525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16526 yes:no: )
16527 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16528 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16529 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16530 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16531 ac_header_preproc=yes
16533 no:yes:* )
16534 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16535 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16536 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16537 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16538 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16539 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16540 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16541 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16542 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16543 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16544 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16545 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16546 ( cat <<\_ASBOX
16547 ## ------------------------------- ##
16548 ## Report this to www.asterisk.org ##
16549 ## ------------------------------- ##
16550 _ASBOX
16551 ) | sed "s/^/$as_me: WARNING: /" >&2
16553 esac
16554 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16555 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16556 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 else
16559 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
16561 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16562 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16565 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16566 ALSA_HEADER_FOUND=1
16567 else
16568 ALSA_HEADER_FOUND=0
16573 CPPFLAGS="${saved_cppflags}"
16574 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16575 if test -n "${ALSA_MANDATORY}" ;
16576 then
16577 { echo "$as_me:$LINENO: ***" >&5
16578 echo "$as_me: ***" >&6;}
16579 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16580 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16581 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16582 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16583 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16584 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16585 exit 1
16587 ALSA_LIB=""
16588 ALSA_INCLUDE=""
16589 PBX_ALSA=0
16590 else
16591 PBX_ALSA=1
16593 cat >>confdefs.h <<_ACEOF
16594 #define HAVE_ALSA 1
16595 _ACEOF
16598 elif test -n "${ALSA_MANDATORY}";
16599 then
16600 { echo "$as_me:$LINENO: ***" >&5
16601 echo "$as_me: ***" >&6;}
16602 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16603 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16604 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16605 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16606 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16607 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16608 exit 1
16614 if test "${USE_CURSES}" != "no"; then
16615 pbxlibdir=""
16616 if test "x${CURSES_DIR}" != "x"; then
16617 if test -d ${CURSES_DIR}/lib; then
16618 pbxlibdir="-L${CURSES_DIR}/lib"
16619 else
16620 pbxlibdir="-L${CURSES_DIR}"
16623 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16624 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16625 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628 ac_check_lib_save_LIBS=$LIBS
16629 LIBS="-lcurses ${pbxlibdir} $LIBS"
16630 cat >conftest.$ac_ext <<_ACEOF
16631 /* confdefs.h. */
16632 _ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16637 /* Override any GCC internal prototype to avoid an error.
16638 Use char because int might match the return type of a GCC
16639 builtin and then its argument prototype would still apply. */
16640 #ifdef __cplusplus
16641 extern "C"
16642 #endif
16643 char initscr ();
16645 main ()
16647 return initscr ();
16649 return 0;
16651 _ACEOF
16652 rm -f conftest.$ac_objext conftest$ac_exeext
16653 if { (ac_try="$ac_link"
16654 case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16657 esac
16658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659 (eval "$ac_link") 2>conftest.er1
16660 ac_status=$?
16661 grep -v '^ *+' conftest.er1 >conftest.err
16662 rm -f conftest.er1
16663 cat conftest.err >&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } && {
16666 test -z "$ac_c_werror_flag" ||
16667 test ! -s conftest.err
16668 } && test -s conftest$ac_exeext &&
16669 $as_test_x conftest$ac_exeext; then
16670 ac_cv_lib_curses_initscr=yes
16671 else
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 ac_cv_lib_curses_initscr=no
16678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16679 conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16682 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16683 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16684 if test $ac_cv_lib_curses_initscr = yes; then
16685 AST_CURSES_FOUND=yes
16686 else
16687 AST_CURSES_FOUND=no
16691 if test "${AST_CURSES_FOUND}" = "yes"; then
16692 CURSES_LIB="-lcurses "
16693 CURSES_HEADER_FOUND="1"
16694 if test "x${CURSES_DIR}" != "x"; then
16695 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16696 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16698 CURSES_INCLUDE="${CURSES_INCLUDE} "
16699 saved_cppflags="${CPPFLAGS}"
16700 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
16701 if test "xcurses.h" != "x" ; then
16702 if test "${ac_cv_header_curses_h+set}" = set; then
16703 { echo "$as_me:$LINENO: checking for curses.h" >&5
16704 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16705 if test "${ac_cv_header_curses_h+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16709 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16710 else
16711 # Is the header compilable?
16712 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16713 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16714 cat >conftest.$ac_ext <<_ACEOF
16715 /* confdefs.h. */
16716 _ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16720 $ac_includes_default
16721 #include <curses.h>
16722 _ACEOF
16723 rm -f conftest.$ac_objext
16724 if { (ac_try="$ac_compile"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728 esac
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_compile") 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest.$ac_objext; then
16740 ac_header_compiler=yes
16741 else
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 ac_header_compiler=no
16748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16750 echo "${ECHO_T}$ac_header_compiler" >&6; }
16752 # Is the header present?
16753 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16754 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h. */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 #include <curses.h>
16762 _ACEOF
16763 if { (ac_try="$ac_cpp conftest.$ac_ext"
16764 case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16767 esac
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16770 ac_status=$?
16771 grep -v '^ *+' conftest.er1 >conftest.err
16772 rm -f conftest.er1
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } >/dev/null && {
16776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16777 test ! -s conftest.err
16778 }; then
16779 ac_header_preproc=yes
16780 else
16781 echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16784 ac_header_preproc=no
16787 rm -f conftest.err conftest.$ac_ext
16788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16789 echo "${ECHO_T}$ac_header_preproc" >&6; }
16791 # So? What about this header?
16792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16793 yes:no: )
16794 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16795 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16797 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16798 ac_header_preproc=yes
16800 no:yes:* )
16801 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16802 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16804 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16806 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16808 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16810 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16811 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16812 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16813 ( cat <<\_ASBOX
16814 ## ------------------------------- ##
16815 ## Report this to www.asterisk.org ##
16816 ## ------------------------------- ##
16817 _ASBOX
16818 ) | sed "s/^/$as_me: WARNING: /" >&2
16820 esac
16821 { echo "$as_me:$LINENO: checking for curses.h" >&5
16822 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16823 if test "${ac_cv_header_curses_h+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826 ac_cv_header_curses_h=$ac_header_preproc
16828 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16829 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16832 if test $ac_cv_header_curses_h = yes; then
16833 CURSES_HEADER_FOUND=1
16834 else
16835 CURSES_HEADER_FOUND=0
16840 CPPFLAGS="${saved_cppflags}"
16841 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16842 if test -n "${CURSES_MANDATORY}" ;
16843 then
16844 { echo "$as_me:$LINENO: ***" >&5
16845 echo "$as_me: ***" >&6;}
16846 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16847 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16848 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16849 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16850 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16851 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16852 exit 1
16854 CURSES_LIB=""
16855 CURSES_INCLUDE=""
16856 PBX_CURSES=0
16857 else
16858 PBX_CURSES=1
16860 cat >>confdefs.h <<_ACEOF
16861 #define HAVE_CURSES 1
16862 _ACEOF
16865 elif test -n "${CURSES_MANDATORY}";
16866 then
16867 { echo "$as_me:$LINENO: ***" >&5
16868 echo "$as_me: ***" >&6;}
16869 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16870 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16871 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16872 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16873 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16874 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16875 exit 1
16880 if test "x${host_os}" = "xlinux-gnu" ; then
16882 if test "${USE_CAP}" != "no"; then
16883 pbxlibdir=""
16884 if test "x${CAP_DIR}" != "x"; then
16885 if test -d ${CAP_DIR}/lib; then
16886 pbxlibdir="-L${CAP_DIR}/lib"
16887 else
16888 pbxlibdir="-L${CAP_DIR}"
16891 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
16892 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
16893 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16895 else
16896 ac_check_lib_save_LIBS=$LIBS
16897 LIBS="-lcap ${pbxlibdir} $LIBS"
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16905 /* Override any GCC internal prototype to avoid an error.
16906 Use char because int might match the return type of a GCC
16907 builtin and then its argument prototype would still apply. */
16908 #ifdef __cplusplus
16909 extern "C"
16910 #endif
16911 char cap_from_text ();
16913 main ()
16915 return cap_from_text ();
16917 return 0;
16919 _ACEOF
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (ac_try="$ac_link"
16922 case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925 esac
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_link") 2>conftest.er1
16928 ac_status=$?
16929 grep -v '^ *+' conftest.er1 >conftest.err
16930 rm -f conftest.er1
16931 cat conftest.err >&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } && {
16934 test -z "$ac_c_werror_flag" ||
16935 test ! -s conftest.err
16936 } && test -s conftest$ac_exeext &&
16937 $as_test_x conftest$ac_exeext; then
16938 ac_cv_lib_cap_cap_from_text=yes
16939 else
16940 echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.$ac_ext >&5
16943 ac_cv_lib_cap_cap_from_text=no
16946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16947 conftest$ac_exeext conftest.$ac_ext
16948 LIBS=$ac_check_lib_save_LIBS
16950 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
16951 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
16952 if test $ac_cv_lib_cap_cap_from_text = yes; then
16953 AST_CAP_FOUND=yes
16954 else
16955 AST_CAP_FOUND=no
16959 if test "${AST_CAP_FOUND}" = "yes"; then
16960 CAP_LIB="-lcap "
16961 CAP_HEADER_FOUND="1"
16962 if test "x${CAP_DIR}" != "x"; then
16963 CAP_LIB="${pbxlibdir} ${CAP_LIB}"
16964 CAP_INCLUDE="-I${CAP_DIR}/include"
16966 CAP_INCLUDE="${CAP_INCLUDE} "
16967 saved_cppflags="${CPPFLAGS}"
16968 CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
16969 if test "xsys/capability.h" != "x" ; then
16970 if test "${ac_cv_header_sys_capability_h+set}" = set; then
16971 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
16972 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
16973 if test "${ac_cv_header_sys_capability_h+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16976 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
16977 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
16978 else
16979 # Is the header compilable?
16980 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
16981 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
16982 cat >conftest.$ac_ext <<_ACEOF
16983 /* confdefs.h. */
16984 _ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16988 $ac_includes_default
16989 #include <sys/capability.h>
16990 _ACEOF
16991 rm -f conftest.$ac_objext
16992 if { (ac_try="$ac_compile"
16993 case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996 esac
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_compile") 2>conftest.er1
16999 ac_status=$?
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } && {
17005 test -z "$ac_c_werror_flag" ||
17006 test ! -s conftest.err
17007 } && test -s conftest.$ac_objext; then
17008 ac_header_compiler=yes
17009 else
17010 echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17013 ac_header_compiler=no
17016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17018 echo "${ECHO_T}$ac_header_compiler" >&6; }
17020 # Is the header present?
17021 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17022 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17023 cat >conftest.$ac_ext <<_ACEOF
17024 /* confdefs.h. */
17025 _ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029 #include <sys/capability.h>
17030 _ACEOF
17031 if { (ac_try="$ac_cpp conftest.$ac_ext"
17032 case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17035 esac
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17038 ac_status=$?
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } >/dev/null && {
17044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17045 test ! -s conftest.err
17046 }; then
17047 ac_header_preproc=yes
17048 else
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17052 ac_header_preproc=no
17055 rm -f conftest.err conftest.$ac_ext
17056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17057 echo "${ECHO_T}$ac_header_preproc" >&6; }
17059 # So? What about this header?
17060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17061 yes:no: )
17062 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17063 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17064 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17065 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17066 ac_header_preproc=yes
17068 no:yes:* )
17069 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17070 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17071 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17072 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17073 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17074 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17075 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17076 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17078 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17079 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17080 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17081 ( cat <<\_ASBOX
17082 ## ------------------------------- ##
17083 ## Report this to www.asterisk.org ##
17084 ## ------------------------------- ##
17085 _ASBOX
17086 ) | sed "s/^/$as_me: WARNING: /" >&2
17088 esac
17089 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17090 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17091 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 else
17094 ac_cv_header_sys_capability_h=$ac_header_preproc
17096 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17097 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17100 if test $ac_cv_header_sys_capability_h = yes; then
17101 CAP_HEADER_FOUND=1
17102 else
17103 CAP_HEADER_FOUND=0
17108 CPPFLAGS="${saved_cppflags}"
17109 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17110 if test -n "${CAP_MANDATORY}" ;
17111 then
17112 { echo "$as_me:$LINENO: ***" >&5
17113 echo "$as_me: ***" >&6;}
17114 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17115 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17116 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17117 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17118 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17119 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17120 exit 1
17122 CAP_LIB=""
17123 CAP_INCLUDE=""
17124 PBX_CAP=0
17125 else
17126 PBX_CAP=1
17128 cat >>confdefs.h <<_ACEOF
17129 #define HAVE_CAP 1
17130 _ACEOF
17133 elif test -n "${CAP_MANDATORY}";
17134 then
17135 { echo "$as_me:$LINENO: ***" >&5
17136 echo "$as_me: ***" >&6;}
17137 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17138 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17139 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17140 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17141 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17142 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17143 exit 1
17149 if test "${USE_DAHDI}" != "no" ; then
17151 if test "x${PBX_DAHDI}" != "x1"; then
17152 { echo "$as_me:$LINENO: checking for DAHDI_CODE in dahdi/user.h" >&5
17153 echo $ECHO_N "checking for DAHDI_CODE in dahdi/user.h... $ECHO_C" >&6; }
17154 saved_cppflags="${CPPFLAGS}"
17155 if test "x${DAHDI_DIR}" != "x"; then
17156 DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
17158 CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h. */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 #include <dahdi/user.h>
17168 main ()
17170 #if defined(DAHDI_CODE)
17171 int foo = 0;
17172 #else
17173 int foo = bar;
17174 #endif
17178 return 0;
17180 _ACEOF
17181 rm -f conftest.$ac_objext
17182 if { (ac_try="$ac_compile"
17183 case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_compile") 2>conftest.er1
17189 ac_status=$?
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } && {
17195 test -z "$ac_c_werror_flag" ||
17196 test ! -s conftest.err
17197 } && test -s conftest.$ac_objext; then
17198 { echo "$as_me:$LINENO: result: yes" >&5
17199 echo "${ECHO_T}yes" >&6; }
17200 PBX_DAHDI=1
17202 cat >>confdefs.h <<\_ACEOF
17203 #define HAVE_DAHDI 1
17204 _ACEOF
17207 cat >>confdefs.h <<\_ACEOF
17208 #define HAVE_DAHDI_VERSION
17209 _ACEOF
17212 else
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17216 { echo "$as_me:$LINENO: result: no" >&5
17217 echo "${ECHO_T}no" >&6; }
17221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17222 CPPFLAGS="${saved_cppflags}"
17226 if test "x${PBX_DAHDI}" = "x1" ; then
17227 PBX_ZAPTEL_TRANSCODE=1
17233 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17234 if test "xgetifaddrs() support" != "x"; then
17235 { echo "$as_me:$LINENO: checking for getifaddrs() support" >&5
17236 echo $ECHO_N "checking for getifaddrs() support... $ECHO_C" >&6; }
17237 else
17238 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17239 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17241 saved_cppflags="${CPPFLAGS}"
17242 if test "x${GETIFADDRS_DIR}" != "x"; then
17243 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
17245 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17247 cat >conftest.$ac_ext <<_ACEOF
17248 /* confdefs.h. */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17253 #include <ifaddrs.h>
17255 main ()
17257 struct ifaddrs *p; getifaddrs(&p);
17260 return 0;
17262 _ACEOF
17263 rm -f conftest.$ac_objext
17264 if { (ac_try="$ac_compile"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_compile") 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest.$ac_objext; then
17280 { echo "$as_me:$LINENO: result: yes" >&5
17281 echo "${ECHO_T}yes" >&6; }
17282 PBX_GETIFADDRS=1
17284 cat >>confdefs.h <<\_ACEOF
17285 #define HAVE_GETIFADDRS 1
17286 _ACEOF
17289 cat >>confdefs.h <<\_ACEOF
17290 #define HAVE_GETIFADDRS_VERSION
17291 _ACEOF
17294 else
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17298 { echo "$as_me:$LINENO: result: no" >&5
17299 echo "${ECHO_T}no" >&6; }
17303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304 CPPFLAGS="${saved_cppflags}"
17308 GSM_INTERNAL="yes"
17310 GSM_SYSTEM="yes"
17311 if test "${USE_GSM}" != "no"; then
17312 if test "${GSM_DIR}" = "internal"; then
17313 GSM_SYSTEM="no"
17314 elif test "${GSM_DIR}" != ""; then
17315 GSM_INTERNAL="no"
17317 if test "${GSM_SYSTEM}" = "yes"; then
17318 gsmlibdir=""
17319 if test "x${GSM_DIR}" != "x"; then
17320 if test -d ${GSM_DIR}/lib; then
17321 gsmlibdir="-L${GSM_DIR}/lib"
17322 else
17323 gsmlibdir="-L${GSM_DIR}"
17326 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17327 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17328 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330 else
17331 ac_check_lib_save_LIBS=$LIBS
17332 LIBS="-lgsm ${gsmlibdir} $LIBS"
17333 cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h. */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17340 /* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
17343 #ifdef __cplusplus
17344 extern "C"
17345 #endif
17346 char gsm_create ();
17348 main ()
17350 return gsm_create ();
17352 return 0;
17354 _ACEOF
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (ac_try="$ac_link"
17357 case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_link") 2>conftest.er1
17363 ac_status=$?
17364 grep -v '^ *+' conftest.er1 >conftest.err
17365 rm -f conftest.er1
17366 cat conftest.err >&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } && {
17369 test -z "$ac_c_werror_flag" ||
17370 test ! -s conftest.err
17371 } && test -s conftest$ac_exeext &&
17372 $as_test_x conftest$ac_exeext; then
17373 ac_cv_lib_gsm_gsm_create=yes
17374 else
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 ac_cv_lib_gsm_gsm_create=no
17381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17382 conftest$ac_exeext conftest.$ac_ext
17383 LIBS=$ac_check_lib_save_LIBS
17385 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17386 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17387 if test $ac_cv_lib_gsm_gsm_create = yes; then
17389 cat >>confdefs.h <<_ACEOF
17390 #define HAVE_GSM 1
17391 _ACEOF
17395 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17396 if test "x${GSM_DIR}" != "x" ; then
17397 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17399 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17400 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 ac_res=`eval echo '${'$as_ac_Header'}'`
17405 { echo "$as_me:$LINENO: result: $ac_res" >&5
17406 echo "${ECHO_T}$ac_res" >&6; }
17407 else
17408 # Is the header compilable?
17409 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17410 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17411 cat >conftest.$ac_ext <<_ACEOF
17412 /* confdefs.h. */
17413 _ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17417 $ac_includes_default
17418 #include <${GSM_DIR}/include/gsm.h>
17419 _ACEOF
17420 rm -f conftest.$ac_objext
17421 if { (ac_try="$ac_compile"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_compile") 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && {
17434 test -z "$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17436 } && test -s conftest.$ac_objext; then
17437 ac_header_compiler=yes
17438 else
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 ac_header_compiler=no
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17447 echo "${ECHO_T}$ac_header_compiler" >&6; }
17449 # Is the header present?
17450 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17451 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17452 cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h. */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17458 #include <${GSM_DIR}/include/gsm.h>
17459 _ACEOF
17460 if { (ac_try="$ac_cpp conftest.$ac_ext"
17461 case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17464 esac
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17467 ac_status=$?
17468 grep -v '^ *+' conftest.er1 >conftest.err
17469 rm -f conftest.er1
17470 cat conftest.err >&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } >/dev/null && {
17473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17474 test ! -s conftest.err
17475 }; then
17476 ac_header_preproc=yes
17477 else
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17481 ac_header_preproc=no
17484 rm -f conftest.err conftest.$ac_ext
17485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17486 echo "${ECHO_T}$ac_header_preproc" >&6; }
17488 # So? What about this header?
17489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17490 yes:no: )
17491 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17492 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17493 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17494 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17495 ac_header_preproc=yes
17497 no:yes:* )
17498 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17499 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17500 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17501 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17502 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17503 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17504 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17505 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17506 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17507 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17508 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17509 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17510 ( cat <<\_ASBOX
17511 ## ------------------------------- ##
17512 ## Report this to www.asterisk.org ##
17513 ## ------------------------------- ##
17514 _ASBOX
17515 ) | sed "s/^/$as_me: WARNING: /" >&2
17517 esac
17518 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17519 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523 eval "$as_ac_Header=\$ac_header_preproc"
17525 ac_res=`eval echo '${'$as_ac_Header'}'`
17526 { echo "$as_me:$LINENO: result: $ac_res" >&5
17527 echo "${ECHO_T}$ac_res" >&6; }
17530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17531 GSM_HEADER_FOUND=1
17532 else
17533 GSM_HEADER_FOUND=0
17537 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17539 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17540 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 ac_res=`eval echo '${'$as_ac_Header'}'`
17545 { echo "$as_me:$LINENO: result: $ac_res" >&5
17546 echo "${ECHO_T}$ac_res" >&6; }
17547 else
17548 # Is the header compilable?
17549 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17550 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17551 cat >conftest.$ac_ext <<_ACEOF
17552 /* confdefs.h. */
17553 _ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17557 $ac_includes_default
17558 #include <${GSM_DIR}/include/gsm/gsm.h>
17559 _ACEOF
17560 rm -f conftest.$ac_objext
17561 if { (ac_try="$ac_compile"
17562 case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17565 esac
17566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_compile") 2>conftest.er1
17568 ac_status=$?
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } && {
17574 test -z "$ac_c_werror_flag" ||
17575 test ! -s conftest.err
17576 } && test -s conftest.$ac_objext; then
17577 ac_header_compiler=yes
17578 else
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17582 ac_header_compiler=no
17585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17587 echo "${ECHO_T}$ac_header_compiler" >&6; }
17589 # Is the header present?
17590 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17591 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h. */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 #include <${GSM_DIR}/include/gsm/gsm.h>
17599 _ACEOF
17600 if { (ac_try="$ac_cpp conftest.$ac_ext"
17601 case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17607 ac_status=$?
17608 grep -v '^ *+' conftest.er1 >conftest.err
17609 rm -f conftest.er1
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } >/dev/null && {
17613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17614 test ! -s conftest.err
17615 }; then
17616 ac_header_preproc=yes
17617 else
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621 ac_header_preproc=no
17624 rm -f conftest.err conftest.$ac_ext
17625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17626 echo "${ECHO_T}$ac_header_preproc" >&6; }
17628 # So? What about this header?
17629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17630 yes:no: )
17631 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17632 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17633 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17634 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17635 ac_header_preproc=yes
17637 no:yes:* )
17638 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17639 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17640 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17641 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17642 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17643 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17644 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17645 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17646 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17647 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17648 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17649 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17650 ( cat <<\_ASBOX
17651 ## ------------------------------- ##
17652 ## Report this to www.asterisk.org ##
17653 ## ------------------------------- ##
17654 _ASBOX
17655 ) | sed "s/^/$as_me: WARNING: /" >&2
17657 esac
17658 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17659 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17662 else
17663 eval "$as_ac_Header=\$ac_header_preproc"
17665 ac_res=`eval echo '${'$as_ac_Header'}'`
17666 { echo "$as_me:$LINENO: result: $ac_res" >&5
17667 echo "${ECHO_T}$ac_res" >&6; }
17670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17671 GSM_GSM_HEADER_FOUND=1
17672 else
17673 GSM_GSM_HEADER_FOUND=0
17677 else
17678 if test "${ac_cv_header_gsm_h+set}" = set; then
17679 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17680 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17681 if test "${ac_cv_header_gsm_h+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17685 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17686 else
17687 # Is the header compilable?
17688 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17689 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17690 cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h. */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17696 $ac_includes_default
17697 #include <gsm.h>
17698 _ACEOF
17699 rm -f conftest.$ac_objext
17700 if { (ac_try="$ac_compile"
17701 case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17704 esac
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_compile") 2>conftest.er1
17707 ac_status=$?
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } && {
17713 test -z "$ac_c_werror_flag" ||
17714 test ! -s conftest.err
17715 } && test -s conftest.$ac_objext; then
17716 ac_header_compiler=yes
17717 else
17718 echo "$as_me: failed program was:" >&5
17719 sed 's/^/| /' conftest.$ac_ext >&5
17721 ac_header_compiler=no
17724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17726 echo "${ECHO_T}$ac_header_compiler" >&6; }
17728 # Is the header present?
17729 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17730 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17731 cat >conftest.$ac_ext <<_ACEOF
17732 /* confdefs.h. */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17737 #include <gsm.h>
17738 _ACEOF
17739 if { (ac_try="$ac_cpp conftest.$ac_ext"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17743 esac
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17746 ac_status=$?
17747 grep -v '^ *+' conftest.er1 >conftest.err
17748 rm -f conftest.er1
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } >/dev/null && {
17752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17753 test ! -s conftest.err
17754 }; then
17755 ac_header_preproc=yes
17756 else
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 ac_header_preproc=no
17763 rm -f conftest.err conftest.$ac_ext
17764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17765 echo "${ECHO_T}$ac_header_preproc" >&6; }
17767 # So? What about this header?
17768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17769 yes:no: )
17770 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17771 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17772 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17773 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17774 ac_header_preproc=yes
17776 no:yes:* )
17777 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17778 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17779 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17780 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17781 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17782 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17783 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17784 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17785 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17786 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17787 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17788 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17789 ( cat <<\_ASBOX
17790 ## ------------------------------- ##
17791 ## Report this to www.asterisk.org ##
17792 ## ------------------------------- ##
17793 _ASBOX
17794 ) | sed "s/^/$as_me: WARNING: /" >&2
17796 esac
17797 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17798 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17799 if test "${ac_cv_header_gsm_h+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802 ac_cv_header_gsm_h=$ac_header_preproc
17804 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17805 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17808 if test $ac_cv_header_gsm_h = yes; then
17809 GSM_HEADER_FOUND=1
17810 else
17811 GSM_HEADER_FOUND=0
17815 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17816 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17817 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17818 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17819 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17822 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17823 else
17824 # Is the header compilable?
17825 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17826 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17827 cat >conftest.$ac_ext <<_ACEOF
17828 /* confdefs.h. */
17829 _ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17833 $ac_includes_default
17834 #include <gsm/gsm.h>
17835 _ACEOF
17836 rm -f conftest.$ac_objext
17837 if { (ac_try="$ac_compile"
17838 case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_compile") 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } && {
17850 test -z "$ac_c_werror_flag" ||
17851 test ! -s conftest.err
17852 } && test -s conftest.$ac_objext; then
17853 ac_header_compiler=yes
17854 else
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17858 ac_header_compiler=no
17861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17863 echo "${ECHO_T}$ac_header_compiler" >&6; }
17865 # Is the header present?
17866 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17867 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17868 cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h. */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17874 #include <gsm/gsm.h>
17875 _ACEOF
17876 if { (ac_try="$ac_cpp conftest.$ac_ext"
17877 case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17880 esac
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17883 ac_status=$?
17884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } >/dev/null && {
17889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17890 test ! -s conftest.err
17891 }; then
17892 ac_header_preproc=yes
17893 else
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17897 ac_header_preproc=no
17900 rm -f conftest.err conftest.$ac_ext
17901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17902 echo "${ECHO_T}$ac_header_preproc" >&6; }
17904 # So? What about this header?
17905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17906 yes:no: )
17907 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17908 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17909 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
17910 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
17911 ac_header_preproc=yes
17913 no:yes:* )
17914 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
17915 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
17916 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
17917 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17918 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
17919 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
17920 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17921 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17922 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
17923 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17924 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
17925 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17926 ( cat <<\_ASBOX
17927 ## ------------------------------- ##
17928 ## Report this to www.asterisk.org ##
17929 ## ------------------------------- ##
17930 _ASBOX
17931 ) | sed "s/^/$as_me: WARNING: /" >&2
17933 esac
17934 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17935 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17936 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17937 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 else
17939 ac_cv_header_gsm_gsm_h=$ac_header_preproc
17941 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17942 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17945 if test $ac_cv_header_gsm_gsm_h = yes; then
17946 GSM_GSM_HEADER_FOUND=1
17947 else
17948 GSM_GSM_HEADER_FOUND=0
17953 if test "${GSM_HEADER_FOUND}" = "0" ; then
17954 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
17955 if test "x${GSM_MANDATORY}" = "xyes" ; then
17956 { echo "$as_me:$LINENO: ***" >&5
17957 echo "$as_me: ***" >&6;}
17958 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
17959 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
17960 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
17961 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
17962 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
17963 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
17964 exit 1
17968 GSM_OK=0
17969 if test "${GSM_HEADER_FOUND}" = "1" ; then
17971 cat >>confdefs.h <<_ACEOF
17972 #define HAVE_GSM_HEADER 1
17973 _ACEOF
17975 GSM_OK=1
17976 else
17977 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
17979 cat >>confdefs.h <<_ACEOF
17980 #define HAVE_GSM_GSM_HEADER 1
17981 _ACEOF
17983 GSM_OK=1
17986 if test "${GSM_OK}" = "1" ; then
17987 GSM_LIB="-lgsm"
17988 if test "x${GSM_DIR}" != "x"; then
17989 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
17990 GSM_INCLUDE="-I${GSM_DIR}/include"
17992 PBX_GSM=1
17993 GSM_INTERNAL="no"
17997 if test "${GSM_INTERNAL}" = "yes"; then
17998 PBX_GSM=1
18000 cat >>confdefs.h <<_ACEOF
18001 #define HAVE_GSM_HEADER 1
18002 _ACEOF
18008 if test "${USE_IKSEMEL}" != "no"; then
18009 pbxlibdir=""
18010 if test "x${IKSEMEL_DIR}" != "x"; then
18011 if test -d ${IKSEMEL_DIR}/lib; then
18012 pbxlibdir="-L${IKSEMEL_DIR}/lib"
18013 else
18014 pbxlibdir="-L${IKSEMEL_DIR}"
18017 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18018 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18019 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18021 else
18022 ac_check_lib_save_LIBS=$LIBS
18023 LIBS="-liksemel ${pbxlibdir} $LIBS"
18024 cat >conftest.$ac_ext <<_ACEOF
18025 /* confdefs.h. */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18031 /* Override any GCC internal prototype to avoid an error.
18032 Use char because int might match the return type of a GCC
18033 builtin and then its argument prototype would still apply. */
18034 #ifdef __cplusplus
18035 extern "C"
18036 #endif
18037 char iks_start_sasl ();
18039 main ()
18041 return iks_start_sasl ();
18043 return 0;
18045 _ACEOF
18046 rm -f conftest.$ac_objext conftest$ac_exeext
18047 if { (ac_try="$ac_link"
18048 case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18051 esac
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_link") 2>conftest.er1
18054 ac_status=$?
18055 grep -v '^ *+' conftest.er1 >conftest.err
18056 rm -f conftest.er1
18057 cat conftest.err >&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } && {
18060 test -z "$ac_c_werror_flag" ||
18061 test ! -s conftest.err
18062 } && test -s conftest$ac_exeext &&
18063 $as_test_x conftest$ac_exeext; then
18064 ac_cv_lib_iksemel_iks_start_sasl=yes
18065 else
18066 echo "$as_me: failed program was:" >&5
18067 sed 's/^/| /' conftest.$ac_ext >&5
18069 ac_cv_lib_iksemel_iks_start_sasl=no
18072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18073 conftest$ac_exeext conftest.$ac_ext
18074 LIBS=$ac_check_lib_save_LIBS
18076 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18077 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18078 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18079 AST_IKSEMEL_FOUND=yes
18080 else
18081 AST_IKSEMEL_FOUND=no
18085 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18086 IKSEMEL_LIB="-liksemel "
18087 IKSEMEL_HEADER_FOUND="1"
18088 if test "x${IKSEMEL_DIR}" != "x"; then
18089 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
18090 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
18092 IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
18093 saved_cppflags="${CPPFLAGS}"
18094 CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
18095 if test "xiksemel.h" != "x" ; then
18096 if test "${ac_cv_header_iksemel_h+set}" = set; then
18097 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18098 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18099 if test "${ac_cv_header_iksemel_h+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18103 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18104 else
18105 # Is the header compilable?
18106 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18107 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18108 cat >conftest.$ac_ext <<_ACEOF
18109 /* confdefs.h. */
18110 _ACEOF
18111 cat confdefs.h >>conftest.$ac_ext
18112 cat >>conftest.$ac_ext <<_ACEOF
18113 /* end confdefs.h. */
18114 $ac_includes_default
18115 #include <iksemel.h>
18116 _ACEOF
18117 rm -f conftest.$ac_objext
18118 if { (ac_try="$ac_compile"
18119 case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_compile") 2>conftest.er1
18125 ac_status=$?
18126 grep -v '^ *+' conftest.er1 >conftest.err
18127 rm -f conftest.er1
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } && {
18131 test -z "$ac_c_werror_flag" ||
18132 test ! -s conftest.err
18133 } && test -s conftest.$ac_objext; then
18134 ac_header_compiler=yes
18135 else
18136 echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18139 ac_header_compiler=no
18142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18144 echo "${ECHO_T}$ac_header_compiler" >&6; }
18146 # Is the header present?
18147 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18148 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18149 cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h. */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18155 #include <iksemel.h>
18156 _ACEOF
18157 if { (ac_try="$ac_cpp conftest.$ac_ext"
18158 case "(($ac_try" in
18159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18160 *) ac_try_echo=$ac_try;;
18161 esac
18162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18164 ac_status=$?
18165 grep -v '^ *+' conftest.er1 >conftest.err
18166 rm -f conftest.er1
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } >/dev/null && {
18170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18171 test ! -s conftest.err
18172 }; then
18173 ac_header_preproc=yes
18174 else
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18178 ac_header_preproc=no
18181 rm -f conftest.err conftest.$ac_ext
18182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18183 echo "${ECHO_T}$ac_header_preproc" >&6; }
18185 # So? What about this header?
18186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18187 yes:no: )
18188 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18189 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18190 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18191 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18192 ac_header_preproc=yes
18194 no:yes:* )
18195 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18196 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18197 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18198 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18199 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18200 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18201 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18202 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18203 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18204 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18205 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18206 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18207 ( cat <<\_ASBOX
18208 ## ------------------------------- ##
18209 ## Report this to www.asterisk.org ##
18210 ## ------------------------------- ##
18211 _ASBOX
18212 ) | sed "s/^/$as_me: WARNING: /" >&2
18214 esac
18215 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18216 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18217 if test "${ac_cv_header_iksemel_h+set}" = set; then
18218 echo $ECHO_N "(cached) $ECHO_C" >&6
18219 else
18220 ac_cv_header_iksemel_h=$ac_header_preproc
18222 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18223 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18226 if test $ac_cv_header_iksemel_h = yes; then
18227 IKSEMEL_HEADER_FOUND=1
18228 else
18229 IKSEMEL_HEADER_FOUND=0
18234 CPPFLAGS="${saved_cppflags}"
18235 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18236 if test -n "${IKSEMEL_MANDATORY}" ;
18237 then
18238 { echo "$as_me:$LINENO: ***" >&5
18239 echo "$as_me: ***" >&6;}
18240 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18241 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18242 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18243 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18244 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18245 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18246 exit 1
18248 IKSEMEL_LIB=""
18249 IKSEMEL_INCLUDE=""
18250 PBX_IKSEMEL=0
18251 else
18252 PBX_IKSEMEL=1
18254 cat >>confdefs.h <<_ACEOF
18255 #define HAVE_IKSEMEL 1
18256 _ACEOF
18259 elif test -n "${IKSEMEL_MANDATORY}";
18260 then
18261 { echo "$as_me:$LINENO: ***" >&5
18262 echo "$as_me: ***" >&6;}
18263 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18264 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18265 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18266 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18267 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18268 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18269 exit 1
18274 if test "${PBX_IKSEMEL}" = 1; then
18276 if test "${USE_GNUTLS}" != "no"; then
18277 pbxlibdir=""
18278 if test "x${GNUTLS_DIR}" != "x"; then
18279 if test -d ${GNUTLS_DIR}/lib; then
18280 pbxlibdir="-L${GNUTLS_DIR}/lib"
18281 else
18282 pbxlibdir="-L${GNUTLS_DIR}"
18285 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18286 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18287 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18289 else
18290 ac_check_lib_save_LIBS=$LIBS
18291 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18292 cat >conftest.$ac_ext <<_ACEOF
18293 /* confdefs.h. */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h. */
18299 /* Override any GCC internal prototype to avoid an error.
18300 Use char because int might match the return type of a GCC
18301 builtin and then its argument prototype would still apply. */
18302 #ifdef __cplusplus
18303 extern "C"
18304 #endif
18305 char gnutls_bye ();
18307 main ()
18309 return gnutls_bye ();
18311 return 0;
18313 _ACEOF
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (ac_try="$ac_link"
18316 case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18319 esac
18320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_link") 2>conftest.er1
18322 ac_status=$?
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } && {
18328 test -z "$ac_c_werror_flag" ||
18329 test ! -s conftest.err
18330 } && test -s conftest$ac_exeext &&
18331 $as_test_x conftest$ac_exeext; then
18332 ac_cv_lib_gnutls_gnutls_bye=yes
18333 else
18334 echo "$as_me: failed program was:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18337 ac_cv_lib_gnutls_gnutls_bye=no
18340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18341 conftest$ac_exeext conftest.$ac_ext
18342 LIBS=$ac_check_lib_save_LIBS
18344 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18345 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18346 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18347 AST_GNUTLS_FOUND=yes
18348 else
18349 AST_GNUTLS_FOUND=no
18353 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18354 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
18355 GNUTLS_HEADER_FOUND="1"
18356 if test "x${GNUTLS_DIR}" != "x"; then
18357 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
18358 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
18360 GNUTLS_INCLUDE="${GNUTLS_INCLUDE} "
18361 saved_cppflags="${CPPFLAGS}"
18362 CPPFLAGS="${CPPFLAGS} ${GNUTLS_INCLUDE}"
18363 if test "xgnutls/gnutls.h" != "x" ; then
18364 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18365 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18366 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18367 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18371 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18372 else
18373 # Is the header compilable?
18374 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18375 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18376 cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h. */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18382 $ac_includes_default
18383 #include <gnutls/gnutls.h>
18384 _ACEOF
18385 rm -f conftest.$ac_objext
18386 if { (ac_try="$ac_compile"
18387 case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18390 esac
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_compile") 2>conftest.er1
18393 ac_status=$?
18394 grep -v '^ *+' conftest.er1 >conftest.err
18395 rm -f conftest.er1
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } && {
18399 test -z "$ac_c_werror_flag" ||
18400 test ! -s conftest.err
18401 } && test -s conftest.$ac_objext; then
18402 ac_header_compiler=yes
18403 else
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18407 ac_header_compiler=no
18410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18412 echo "${ECHO_T}$ac_header_compiler" >&6; }
18414 # Is the header present?
18415 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18416 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18417 cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h. */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 #include <gnutls/gnutls.h>
18424 _ACEOF
18425 if { (ac_try="$ac_cpp conftest.$ac_ext"
18426 case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18429 esac
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18432 ac_status=$?
18433 grep -v '^ *+' conftest.er1 >conftest.err
18434 rm -f conftest.er1
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } >/dev/null && {
18438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18439 test ! -s conftest.err
18440 }; then
18441 ac_header_preproc=yes
18442 else
18443 echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18446 ac_header_preproc=no
18449 rm -f conftest.err conftest.$ac_ext
18450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18451 echo "${ECHO_T}$ac_header_preproc" >&6; }
18453 # So? What about this header?
18454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18455 yes:no: )
18456 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18457 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18458 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18459 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18460 ac_header_preproc=yes
18462 no:yes:* )
18463 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18464 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18465 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18466 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18467 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18468 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18469 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18470 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18471 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18472 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18473 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18474 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18475 ( cat <<\_ASBOX
18476 ## ------------------------------- ##
18477 ## Report this to www.asterisk.org ##
18478 ## ------------------------------- ##
18479 _ASBOX
18480 ) | sed "s/^/$as_me: WARNING: /" >&2
18482 esac
18483 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18484 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18485 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18487 else
18488 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
18490 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18491 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18494 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18495 GNUTLS_HEADER_FOUND=1
18496 else
18497 GNUTLS_HEADER_FOUND=0
18502 CPPFLAGS="${saved_cppflags}"
18503 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18504 if test -n "${GNUTLS_MANDATORY}" ;
18505 then
18506 { echo "$as_me:$LINENO: ***" >&5
18507 echo "$as_me: ***" >&6;}
18508 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18509 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18510 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18511 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18512 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18513 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18514 exit 1
18516 GNUTLS_LIB=""
18517 GNUTLS_INCLUDE=""
18518 PBX_GNUTLS=0
18519 else
18520 PBX_GNUTLS=1
18522 cat >>confdefs.h <<_ACEOF
18523 #define HAVE_GNUTLS 1
18524 _ACEOF
18527 elif test -n "${GNUTLS_MANDATORY}";
18528 then
18529 { echo "$as_me:$LINENO: ***" >&5
18530 echo "$as_me: ***" >&6;}
18531 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18532 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18533 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18534 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18535 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18536 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18537 exit 1
18543 if test "${USE_IMAP_TK}" != "no"; then
18544 saved_cppflags="${CPPFLAGS}"
18545 saved_libs="${LIBS}"
18546 switch_to_system_on_failure="no"
18547 if test "${IMAP_TK_DIR}" = ""; then
18548 IMAP_TK_DIR=`pwd`"/../imap-2004g"
18549 switch_to_system_on_failure="yes"
18551 if test "${IMAP_TK_DIR}" != "system"; then
18552 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18553 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18554 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
18555 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18557 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
18558 imap_include="-I${IMAP_TK_DIR}/c-client"
18559 CPPFLAGS="${CPPFLAGS} ${imap_include}"
18560 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h. */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 #include "c-client.h"
18568 void mm_searched (MAILSTREAM *stream,unsigned long number)
18571 void mm_exists (MAILSTREAM *stream,unsigned long number)
18574 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18577 void mm_flags (MAILSTREAM *stream,unsigned long number)
18580 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18583 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18586 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18589 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18592 void mm_log (char *string,long errflg)
18595 void mm_dlog (char *string)
18598 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18601 void mm_critical (MAILSTREAM *stream)
18604 void mm_nocritical (MAILSTREAM *stream)
18607 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18610 void mm_fatal (char *string)
18614 main ()
18617 MAILSTREAM *foo = mail_open(NULL, "", 0);
18621 return 0;
18623 _ACEOF
18624 rm -f conftest.$ac_objext conftest$ac_exeext
18625 if { (ac_try="$ac_link"
18626 case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18629 esac
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_link") 2>conftest.er1
18632 ac_status=$?
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } && {
18638 test -z "$ac_c_werror_flag" ||
18639 test ! -s conftest.err
18640 } && test -s conftest$ac_exeext &&
18641 $as_test_x conftest$ac_exeext; then
18642 ac_cv_imap_tk="yes"
18643 else
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 ac_cv_imap_tk="no"
18651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18652 conftest$ac_exeext conftest.$ac_ext
18653 if test "${ac_cv_imap_tk}" = "yes"; then
18654 cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h. */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18660 #include "c-client.h"
18661 void mm_searched (MAILSTREAM *stream,unsigned long number)
18664 void mm_exists (MAILSTREAM *stream,unsigned long number)
18667 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18670 void mm_flags (MAILSTREAM *stream,unsigned long number)
18673 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18676 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18679 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18682 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18685 void mm_log (char *string,long errflg)
18688 void mm_dlog (char *string)
18691 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18694 void mm_critical (MAILSTREAM *stream)
18697 void mm_nocritical (MAILSTREAM *stream)
18700 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18703 void mm_fatal (char *string)
18707 main ()
18710 long check = mail_expunge_full(NULL, "", 0);
18714 return 0;
18716 _ACEOF
18717 rm -f conftest.$ac_objext conftest$ac_exeext
18718 if { (ac_try="$ac_link"
18719 case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_link") 2>conftest.er1
18725 ac_status=$?
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } && {
18731 test -z "$ac_c_werror_flag" ||
18732 test ! -s conftest.err
18733 } && test -s conftest$ac_exeext &&
18734 $as_test_x conftest$ac_exeext; then
18735 ac_cv_imap_tk2006="yes"
18736 else
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ac_cv_imap_tk2006="no"
18744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18745 conftest$ac_exeext conftest.$ac_ext
18747 CPPFLAGS="${saved_cppflags}"
18748 LIBS="${saved_libs}"
18749 if test "${ac_cv_imap_tk}" = "no"; then
18750 { echo "$as_me:$LINENO: result: no" >&5
18751 echo "${ECHO_T}no" >&6; }
18752 if test "${switch_to_system_on_failure}" = "yes"; then
18753 IMAP_TK_DIR="system"
18754 else #This means they specified a directory. Search for a package installation there too
18755 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
18756 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
18757 CPPFLAGS="${saved_cppflags}"
18758 LIBS="${saved_libs}"
18759 imap_include="-I${IMAP_TK_DIR}/include"
18760 imap_ldflags="-L${IMAP_TK_DIR}/lib"
18761 imap_libs="-lc-client"
18762 CPPFLAGS="${CPPFLAGS} ${imap_include}"
18763 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
18764 cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h. */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18770 #include "c-client.h"
18771 void mm_searched (MAILSTREAM *stream,unsigned long number)
18774 void mm_exists (MAILSTREAM *stream,unsigned long number)
18777 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18780 void mm_flags (MAILSTREAM *stream,unsigned long number)
18783 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18786 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18789 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18792 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18795 void mm_log (char *string,long errflg)
18798 void mm_dlog (char *string)
18801 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18804 void mm_critical (MAILSTREAM *stream)
18807 void mm_nocritical (MAILSTREAM *stream)
18810 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18813 void mm_fatal (char *string)
18817 main ()
18820 MAILSTREAM *foo = mail_open(NULL, "", 0);
18824 return 0;
18826 _ACEOF
18827 rm -f conftest.$ac_objext conftest$ac_exeext
18828 if { (ac_try="$ac_link"
18829 case "(($ac_try" in
18830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831 *) ac_try_echo=$ac_try;;
18832 esac
18833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834 (eval "$ac_link") 2>conftest.er1
18835 ac_status=$?
18836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); } && {
18841 test -z "$ac_c_werror_flag" ||
18842 test ! -s conftest.err
18843 } && test -s conftest$ac_exeext &&
18844 $as_test_x conftest$ac_exeext; then
18845 ac_cv_imap_tk="yes"
18846 else
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18850 ac_cv_imap_tk="no"
18854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18855 conftest$ac_exeext conftest.$ac_ext
18856 if test "${ac_cv_imap_tk}" = "yes"; then
18857 cat >conftest.$ac_ext <<_ACEOF
18858 /* confdefs.h. */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 #include "c-client.h"
18864 void mm_searched (MAILSTREAM *stream,unsigned long number)
18867 void mm_exists (MAILSTREAM *stream,unsigned long number)
18870 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18873 void mm_flags (MAILSTREAM *stream,unsigned long number)
18876 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18879 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18882 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18885 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18888 void mm_log (char *string,long errflg)
18891 void mm_dlog (char *string)
18894 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18897 void mm_critical (MAILSTREAM *stream)
18900 void mm_nocritical (MAILSTREAM *stream)
18903 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18906 void mm_fatal (char *string)
18910 main ()
18913 long check = mail_expunge_full(NULL, "", 0);
18917 return 0;
18919 _ACEOF
18920 rm -f conftest.$ac_objext conftest$ac_exeext
18921 if { (ac_try="$ac_link"
18922 case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_link") 2>conftest.er1
18928 ac_status=$?
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } && {
18934 test -z "$ac_c_werror_flag" ||
18935 test ! -s conftest.err
18936 } && test -s conftest$ac_exeext &&
18937 $as_test_x conftest$ac_exeext; then
18938 ac_cv_imap_tk2006="yes"
18939 else
18940 echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18943 ac_cv_imap_tk2006="no"
18947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18948 conftest$ac_exeext conftest.$ac_ext
18953 if test "${IMAP_TK_DIR}" = "system"; then
18954 #We will enter here if user specified "system" or if any of above checks failed
18955 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
18956 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
18957 CPPFLAGS="${saved_cppflags}"
18958 LIBS="${saved_libs}"
18959 imap_ldflags=""
18960 imap_libs="-lc-client"
18961 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
18962 CPPFLAGS="${CPPFLAGS} ${imap_include}"
18963 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18964 cat >conftest.$ac_ext <<_ACEOF
18965 /* confdefs.h. */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18970 #include <stdio.h>
18971 #include <imap/c-client.h>
18972 void mm_searched (MAILSTREAM *stream,unsigned long number)
18975 void mm_exists (MAILSTREAM *stream,unsigned long number)
18978 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18981 void mm_flags (MAILSTREAM *stream,unsigned long number)
18984 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18987 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18990 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18993 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18996 void mm_log (char *string,long errflg)
18999 void mm_dlog (char *string)
19002 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19005 void mm_critical (MAILSTREAM *stream)
19008 void mm_nocritical (MAILSTREAM *stream)
19011 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19014 void mm_fatal (char *string)
19018 main ()
19021 MAILSTREAM *foo = mail_open(NULL, "", 0);
19025 return 0;
19027 _ACEOF
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (ac_try="$ac_link"
19030 case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19033 esac
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_link") 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } && {
19042 test -z "$ac_c_werror_flag" ||
19043 test ! -s conftest.err
19044 } && test -s conftest$ac_exeext &&
19045 $as_test_x conftest$ac_exeext; then
19046 ac_cv_imap_tk="yes"
19047 else
19048 echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19051 ac_cv_imap_tk="no"
19055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19056 conftest$ac_exeext conftest.$ac_ext
19057 if test "${ac_cv_imap_tk}" = "yes"; then
19058 cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h. */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 #include <stdio.h>
19065 #include <imap/c-client.h>
19066 void mm_searched (MAILSTREAM *stream,unsigned long number)
19069 void mm_exists (MAILSTREAM *stream,unsigned long number)
19072 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19075 void mm_flags (MAILSTREAM *stream,unsigned long number)
19078 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19081 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19084 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19087 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19090 void mm_log (char *string,long errflg)
19093 void mm_dlog (char *string)
19096 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19099 void mm_critical (MAILSTREAM *stream)
19102 void mm_nocritical (MAILSTREAM *stream)
19105 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19108 void mm_fatal (char *string)
19112 main ()
19115 long check = mail_expunge_full(NULL, "", 0);
19119 return 0;
19121 _ACEOF
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (ac_try="$ac_link"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19127 esac
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_link") 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } && {
19136 test -z "$ac_c_werror_flag" ||
19137 test ! -s conftest.err
19138 } && test -s conftest$ac_exeext &&
19139 $as_test_x conftest$ac_exeext; then
19140 ac_cv_imap_tk2006="yes"
19141 else
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ac_cv_imap_tk2006="no"
19149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19150 conftest$ac_exeext conftest.$ac_ext
19151 else #looking in imap directory didn't work, try c-client
19152 imap_ldflags=""
19153 imap_libs="-lc-client"
19154 imap_include="-DUSE_SYSTEM_CCLIENT"
19155 CPPFLAGS="${saved_cppflags}"
19156 LIBS="${saved_libs}"
19157 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19158 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19159 cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h. */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 #include <stdio.h>
19166 #include <c-client/c-client.h>
19167 void mm_searched (MAILSTREAM *stream,unsigned long number)
19170 void mm_exists (MAILSTREAM *stream,unsigned long number)
19173 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19176 void mm_flags (MAILSTREAM *stream,unsigned long number)
19179 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19182 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19185 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19188 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19191 void mm_log (char *string,long errflg)
19194 void mm_dlog (char *string)
19197 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19200 void mm_critical (MAILSTREAM *stream)
19203 void mm_nocritical (MAILSTREAM *stream)
19206 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19209 void mm_fatal (char *string)
19213 main ()
19216 MAILSTREAM *foo = mail_open(NULL, "", 0);
19220 return 0;
19222 _ACEOF
19223 rm -f conftest.$ac_objext conftest$ac_exeext
19224 if { (ac_try="$ac_link"
19225 case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19228 esac
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_link") 2>conftest.er1
19231 ac_status=$?
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } && {
19237 test -z "$ac_c_werror_flag" ||
19238 test ! -s conftest.err
19239 } && test -s conftest$ac_exeext &&
19240 $as_test_x conftest$ac_exeext; then
19241 ac_cv_imap_tk="yes"
19242 else
19243 echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19246 ac_cv_imap_tk="no"
19250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19251 conftest$ac_exeext conftest.$ac_ext
19252 if test "${ac_cv_imap_tk}" = "yes"; then
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h. */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 #include <stdio.h>
19260 #include <c-client/c-client.h>
19261 void mm_searched (MAILSTREAM *stream,unsigned long number)
19264 void mm_exists (MAILSTREAM *stream,unsigned long number)
19267 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19270 void mm_flags (MAILSTREAM *stream,unsigned long number)
19273 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19276 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19279 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19282 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19285 void mm_log (char *string,long errflg)
19288 void mm_dlog (char *string)
19291 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19294 void mm_critical (MAILSTREAM *stream)
19297 void mm_nocritical (MAILSTREAM *stream)
19300 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19303 void mm_fatal (char *string)
19307 main ()
19310 long check = mail_expunge_full(NULL, "", 0);
19314 return 0;
19316 _ACEOF
19317 rm -f conftest.$ac_objext conftest$ac_exeext
19318 if { (ac_try="$ac_link"
19319 case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19322 esac
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_link") 2>conftest.er1
19325 ac_status=$?
19326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -f conftest.er1
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } && {
19331 test -z "$ac_c_werror_flag" ||
19332 test ! -s conftest.err
19333 } && test -s conftest$ac_exeext &&
19334 $as_test_x conftest$ac_exeext; then
19335 ac_cv_imap_tk2006="yes"
19336 else
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ac_cv_imap_tk2006="no"
19344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19345 conftest$ac_exeext conftest.$ac_ext
19349 if test "${ac_cv_imap_tk}" = "yes"; then
19350 { echo "$as_me:$LINENO: result: yes" >&5
19351 echo "${ECHO_T}yes" >&6; }
19352 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
19353 IMAP_TK_INCLUDE="${imap_include}"
19354 PBX_IMAP_TK=1
19356 cat >>confdefs.h <<\_ACEOF
19357 #define HAVE_IMAP_TK 1
19358 _ACEOF
19360 if test "${ac_cv_imap_tk2006}" = "yes"; then
19362 cat >>confdefs.h <<\_ACEOF
19363 #define HAVE_IMAP_TK2006 1
19364 _ACEOF
19367 elif test -n "${IMAP_TK_MANDATORY}"; then
19368 { echo "$as_me:$LINENO: result: no" >&5
19369 echo "${ECHO_T}no" >&6; }
19370 { echo "$as_me:$LINENO: ***" >&5
19371 echo "$as_me: ***" >&6;}
19372 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19373 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19374 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19375 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19376 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19377 echo "$as_me: *** including --without-imap." >&6;}
19378 exit 1
19379 else
19380 { echo "$as_me:$LINENO: result: no" >&5
19381 echo "${ECHO_T}no" >&6; }
19383 CPPFLAGS="${saved_cppflags}"
19384 LIBS="${saved_libs}"
19387 # Needed by unixodbc
19389 if test "${USE_LTDL}" != "no"; then
19390 pbxlibdir=""
19391 if test "x${LTDL_DIR}" != "x"; then
19392 if test -d ${LTDL_DIR}/lib; then
19393 pbxlibdir="-L${LTDL_DIR}/lib"
19394 else
19395 pbxlibdir="-L${LTDL_DIR}"
19398 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19399 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19400 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19402 else
19403 ac_check_lib_save_LIBS=$LIBS
19404 LIBS="-lltdl ${pbxlibdir} $LIBS"
19405 cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h. */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19415 #ifdef __cplusplus
19416 extern "C"
19417 #endif
19418 char lt_dlinit ();
19420 main ()
19422 return lt_dlinit ();
19424 return 0;
19426 _ACEOF
19427 rm -f conftest.$ac_objext conftest$ac_exeext
19428 if { (ac_try="$ac_link"
19429 case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432 esac
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_link") 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } && {
19441 test -z "$ac_c_werror_flag" ||
19442 test ! -s conftest.err
19443 } && test -s conftest$ac_exeext &&
19444 $as_test_x conftest$ac_exeext; then
19445 ac_cv_lib_ltdl_lt_dlinit=yes
19446 else
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19450 ac_cv_lib_ltdl_lt_dlinit=no
19453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19454 conftest$ac_exeext conftest.$ac_ext
19455 LIBS=$ac_check_lib_save_LIBS
19457 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
19458 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
19459 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
19460 AST_LTDL_FOUND=yes
19461 else
19462 AST_LTDL_FOUND=no
19466 if test "${AST_LTDL_FOUND}" = "yes"; then
19467 LTDL_LIB="-lltdl "
19468 LTDL_HEADER_FOUND="1"
19469 if test "x${LTDL_DIR}" != "x"; then
19470 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
19471 LTDL_INCLUDE="-I${LTDL_DIR}/include"
19473 LTDL_INCLUDE="${LTDL_INCLUDE} "
19474 saved_cppflags="${CPPFLAGS}"
19475 CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
19476 if test "xltdl.h" != "x" ; then
19477 if test "${ac_cv_header_ltdl_h+set}" = set; then
19478 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19479 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19480 if test "${ac_cv_header_ltdl_h+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19483 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
19484 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19485 else
19486 # Is the header compilable?
19487 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
19488 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
19489 cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h. */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19495 $ac_includes_default
19496 #include <ltdl.h>
19497 _ACEOF
19498 rm -f conftest.$ac_objext
19499 if { (ac_try="$ac_compile"
19500 case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_compile") 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && {
19512 test -z "$ac_c_werror_flag" ||
19513 test ! -s conftest.err
19514 } && test -s conftest.$ac_objext; then
19515 ac_header_compiler=yes
19516 else
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 ac_header_compiler=no
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19525 echo "${ECHO_T}$ac_header_compiler" >&6; }
19527 # Is the header present?
19528 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
19529 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
19530 cat >conftest.$ac_ext <<_ACEOF
19531 /* confdefs.h. */
19532 _ACEOF
19533 cat confdefs.h >>conftest.$ac_ext
19534 cat >>conftest.$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19536 #include <ltdl.h>
19537 _ACEOF
19538 if { (ac_try="$ac_cpp conftest.$ac_ext"
19539 case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19542 esac
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19545 ac_status=$?
19546 grep -v '^ *+' conftest.er1 >conftest.err
19547 rm -f conftest.er1
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } >/dev/null && {
19551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19552 test ! -s conftest.err
19553 }; then
19554 ac_header_preproc=yes
19555 else
19556 echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19559 ac_header_preproc=no
19562 rm -f conftest.err conftest.$ac_ext
19563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19564 echo "${ECHO_T}$ac_header_preproc" >&6; }
19566 # So? What about this header?
19567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19568 yes:no: )
19569 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19570 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19571 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
19572 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
19573 ac_header_preproc=yes
19575 no:yes:* )
19576 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
19577 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
19578 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
19579 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
19581 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
19582 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19583 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19584 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
19585 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
19586 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
19587 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
19588 ( cat <<\_ASBOX
19589 ## ------------------------------- ##
19590 ## Report this to www.asterisk.org ##
19591 ## ------------------------------- ##
19592 _ASBOX
19593 ) | sed "s/^/$as_me: WARNING: /" >&2
19595 esac
19596 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19597 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19598 if test "${ac_cv_header_ltdl_h+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19601 ac_cv_header_ltdl_h=$ac_header_preproc
19603 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
19604 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19607 if test $ac_cv_header_ltdl_h = yes; then
19608 LTDL_HEADER_FOUND=1
19609 else
19610 LTDL_HEADER_FOUND=0
19615 CPPFLAGS="${saved_cppflags}"
19616 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
19617 if test -n "${LTDL_MANDATORY}" ;
19618 then
19619 { echo "$as_me:$LINENO: ***" >&5
19620 echo "$as_me: ***" >&6;}
19621 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
19622 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
19623 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
19624 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
19625 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
19626 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
19627 exit 1
19629 LTDL_LIB=""
19630 LTDL_INCLUDE=""
19631 PBX_LTDL=0
19632 else
19633 PBX_LTDL=1
19635 cat >>confdefs.h <<_ACEOF
19636 #define HAVE_LTDL 1
19637 _ACEOF
19640 elif test -n "${LTDL_MANDATORY}";
19641 then
19642 { echo "$as_me:$LINENO: ***" >&5
19643 echo "$as_me: ***" >&6;}
19644 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
19645 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
19646 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19647 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19648 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
19649 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
19650 exit 1
19655 ac_ext=cpp
19656 ac_cpp='$CXXCPP $CPPFLAGS'
19657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19662 if test "${USE_KDE}" != "no"; then
19663 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
19664 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
19665 saved_libs="${LIBS}"
19666 saved_cppflags="${CPPFLAGS}"
19667 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
19668 if test -d ${KDE_DIR}/lib; then
19669 kdelibdir="${KDE_DIR}/lib"
19670 else
19671 kdelibdir="${KDE_DIR}"
19673 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
19676 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h. */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 #include "kcrash.h"
19684 main ()
19686 KCrash::defaultCrashHandler(1);
19688 return 0;
19691 _ACEOF
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (ac_try="$ac_link"
19694 case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_link") 2>conftest.er1
19700 ac_status=$?
19701 grep -v '^ *+' conftest.er1 >conftest.err
19702 rm -f conftest.er1
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } && {
19706 test -z "$ac_cxx_werror_flag" ||
19707 test ! -s conftest.err
19708 } && test -s conftest$ac_exeext &&
19709 $as_test_x conftest$ac_exeext; then
19710 ac_cv_lib_kde_crash="yes"
19711 else
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19715 ac_cv_lib_kde_crash="no"
19718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19719 conftest$ac_exeext conftest.$ac_ext
19721 LIBS="${saved_libs}"
19722 CPPFLAGS="${saved_cppflags}"
19724 if test "${ac_cv_lib_kde_crash}" = "yes"; then
19725 { echo "$as_me:$LINENO: result: yes" >&5
19726 echo "${ECHO_T}yes" >&6; }
19727 KDE_LIB="-lkdecore -lkdeui"
19728 if test "${KDE_DIR}" != ""; then
19729 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
19730 KDE_INCLUDE="-I${KDE_DIR}/include"
19732 PBX_KDE=1
19734 cat >>confdefs.h <<\_ACEOF
19735 #define HAVE_LIBKDE 1
19736 _ACEOF
19738 elif test -n "${KDE_MANDATORY}"; then
19739 { echo "$as_me:$LINENO: result: no" >&5
19740 echo "${ECHO_T}no" >&6; }
19741 { echo "$as_me:$LINENO: ***" >&5
19742 echo "$as_me: ***" >&6;}
19743 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
19744 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
19745 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19746 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19747 { echo "$as_me:$LINENO: *** including --without-kde." >&5
19748 echo "$as_me: *** including --without-kde." >&6;}
19749 exit 1
19750 else
19751 { echo "$as_me:$LINENO: result: no" >&5
19752 echo "${ECHO_T}no" >&6; }
19755 if test "${PBX_KDE}" = 1; then
19756 if test -n "$ac_tool_prefix"; then
19757 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
19758 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
19759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19761 if test "${ac_cv_path_KDEINIT+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 else
19764 case $KDEINIT in
19765 [\\/]* | ?:[\\/]*)
19766 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
19769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19770 for as_dir in $PATH
19772 IFS=$as_save_IFS
19773 test -z "$as_dir" && as_dir=.
19774 for ac_exec_ext in '' $ac_executable_extensions; do
19775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19776 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19778 break 2
19780 done
19781 done
19782 IFS=$as_save_IFS
19785 esac
19787 KDEINIT=$ac_cv_path_KDEINIT
19788 if test -n "$KDEINIT"; then
19789 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
19790 echo "${ECHO_T}$KDEINIT" >&6; }
19791 else
19792 { echo "$as_me:$LINENO: result: no" >&5
19793 echo "${ECHO_T}no" >&6; }
19798 if test -z "$ac_cv_path_KDEINIT"; then
19799 ac_pt_KDEINIT=$KDEINIT
19800 # Extract the first word of "kdeinit", so it can be a program name with args.
19801 set dummy kdeinit; ac_word=$2
19802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19804 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
19805 echo $ECHO_N "(cached) $ECHO_C" >&6
19806 else
19807 case $ac_pt_KDEINIT in
19808 [\\/]* | ?:[\\/]*)
19809 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
19812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19813 for as_dir in $PATH
19815 IFS=$as_save_IFS
19816 test -z "$as_dir" && as_dir=.
19817 for ac_exec_ext in '' $ac_executable_extensions; do
19818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19819 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19821 break 2
19823 done
19824 done
19825 IFS=$as_save_IFS
19828 esac
19830 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
19831 if test -n "$ac_pt_KDEINIT"; then
19832 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
19833 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
19834 else
19835 { echo "$as_me:$LINENO: result: no" >&5
19836 echo "${ECHO_T}no" >&6; }
19839 if test "x$ac_pt_KDEINIT" = x; then
19840 KDEINIT="No"
19841 else
19842 case $cross_compiling:$ac_tool_warned in
19843 yes:)
19844 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19845 whose name does not start with the host triplet. If you think this
19846 configuration is useful to you, please write to autoconf@gnu.org." >&5
19847 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19848 whose name does not start with the host triplet. If you think this
19849 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19850 ac_tool_warned=yes ;;
19851 esac
19852 KDEINIT=$ac_pt_KDEINIT
19854 else
19855 KDEINIT="$ac_cv_path_KDEINIT"
19858 if test ! x"${KDEINIT}" = xNo; then
19859 KDEDIR=$(${DIRNAME} ${KDEINIT})
19860 KDEDIR=$(${DIRNAME} ${KDEDIR})
19865 ac_ext=c
19866 ac_cpp='$CPP $CPPFLAGS'
19867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19873 if test "${USE_MISDN}" != "no"; then
19874 pbxlibdir=""
19875 if test "x${MISDN_DIR}" != "x"; then
19876 if test -d ${MISDN_DIR}/lib; then
19877 pbxlibdir="-L${MISDN_DIR}/lib"
19878 else
19879 pbxlibdir="-L${MISDN_DIR}"
19882 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
19883 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
19884 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887 ac_check_lib_save_LIBS=$LIBS
19888 LIBS="-lmISDN ${pbxlibdir} $LIBS"
19889 cat >conftest.$ac_ext <<_ACEOF
19890 /* confdefs.h. */
19891 _ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h. */
19896 /* Override any GCC internal prototype to avoid an error.
19897 Use char because int might match the return type of a GCC
19898 builtin and then its argument prototype would still apply. */
19899 #ifdef __cplusplus
19900 extern "C"
19901 #endif
19902 char mISDN_open ();
19904 main ()
19906 return mISDN_open ();
19908 return 0;
19910 _ACEOF
19911 rm -f conftest.$ac_objext conftest$ac_exeext
19912 if { (ac_try="$ac_link"
19913 case "(($ac_try" in
19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915 *) ac_try_echo=$ac_try;;
19916 esac
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918 (eval "$ac_link") 2>conftest.er1
19919 ac_status=$?
19920 grep -v '^ *+' conftest.er1 >conftest.err
19921 rm -f conftest.er1
19922 cat conftest.err >&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } && {
19925 test -z "$ac_c_werror_flag" ||
19926 test ! -s conftest.err
19927 } && test -s conftest$ac_exeext &&
19928 $as_test_x conftest$ac_exeext; then
19929 ac_cv_lib_mISDN_mISDN_open=yes
19930 else
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 ac_cv_lib_mISDN_mISDN_open=no
19937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19938 conftest$ac_exeext conftest.$ac_ext
19939 LIBS=$ac_check_lib_save_LIBS
19941 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
19942 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
19943 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
19944 AST_MISDN_FOUND=yes
19945 else
19946 AST_MISDN_FOUND=no
19950 if test "${AST_MISDN_FOUND}" = "yes"; then
19951 MISDN_LIB="-lmISDN "
19952 MISDN_HEADER_FOUND="1"
19953 if test "x${MISDN_DIR}" != "x"; then
19954 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
19955 MISDN_INCLUDE="-I${MISDN_DIR}/include"
19957 MISDN_INCLUDE="${MISDN_INCLUDE} "
19958 saved_cppflags="${CPPFLAGS}"
19959 CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
19960 if test "xmISDNuser/mISDNlib.h" != "x" ; then
19961 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19962 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
19963 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19964 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19968 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19969 else
19970 # Is the header compilable?
19971 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
19972 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
19973 cat >conftest.$ac_ext <<_ACEOF
19974 /* confdefs.h. */
19975 _ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19979 $ac_includes_default
19980 #include <mISDNuser/mISDNlib.h>
19981 _ACEOF
19982 rm -f conftest.$ac_objext
19983 if { (ac_try="$ac_compile"
19984 case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19987 esac
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_compile") 2>conftest.er1
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } && {
19996 test -z "$ac_c_werror_flag" ||
19997 test ! -s conftest.err
19998 } && test -s conftest.$ac_objext; then
19999 ac_header_compiler=yes
20000 else
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 ac_header_compiler=no
20007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20008 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20009 echo "${ECHO_T}$ac_header_compiler" >&6; }
20011 # Is the header present?
20012 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20013 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20014 cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h. */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 #include <mISDNuser/mISDNlib.h>
20021 _ACEOF
20022 if { (ac_try="$ac_cpp conftest.$ac_ext"
20023 case "(($ac_try" in
20024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025 *) ac_try_echo=$ac_try;;
20026 esac
20027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20029 ac_status=$?
20030 grep -v '^ *+' conftest.er1 >conftest.err
20031 rm -f conftest.er1
20032 cat conftest.err >&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); } >/dev/null && {
20035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20036 test ! -s conftest.err
20037 }; then
20038 ac_header_preproc=yes
20039 else
20040 echo "$as_me: failed program was:" >&5
20041 sed 's/^/| /' conftest.$ac_ext >&5
20043 ac_header_preproc=no
20046 rm -f conftest.err conftest.$ac_ext
20047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20048 echo "${ECHO_T}$ac_header_preproc" >&6; }
20050 # So? What about this header?
20051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20052 yes:no: )
20053 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20054 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20056 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20057 ac_header_preproc=yes
20059 no:yes:* )
20060 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20061 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20062 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20063 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20064 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20065 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20067 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20069 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20071 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20072 ( cat <<\_ASBOX
20073 ## ------------------------------- ##
20074 ## Report this to www.asterisk.org ##
20075 ## ------------------------------- ##
20076 _ASBOX
20077 ) | sed "s/^/$as_me: WARNING: /" >&2
20079 esac
20080 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20081 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20082 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 else
20085 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
20087 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20088 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20091 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20092 MISDN_HEADER_FOUND=1
20093 else
20094 MISDN_HEADER_FOUND=0
20099 CPPFLAGS="${saved_cppflags}"
20100 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20101 if test -n "${MISDN_MANDATORY}" ;
20102 then
20103 { echo "$as_me:$LINENO: ***" >&5
20104 echo "$as_me: ***" >&6;}
20105 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20106 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20107 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20108 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20109 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20110 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20111 exit 1
20113 MISDN_LIB=""
20114 MISDN_INCLUDE=""
20115 PBX_MISDN=0
20116 else
20117 PBX_MISDN=1
20119 cat >>confdefs.h <<_ACEOF
20120 #define HAVE_MISDN 1
20121 _ACEOF
20124 elif test -n "${MISDN_MANDATORY}";
20125 then
20126 { echo "$as_me:$LINENO: ***" >&5
20127 echo "$as_me: ***" >&6;}
20128 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
20129 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
20130 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20131 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20132 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20133 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20134 exit 1
20139 if test "${PBX_MISDN}" = 1; then
20141 if test "${USE_ISDNNET}" != "no"; then
20142 pbxlibdir=""
20143 if test "x${ISDNNET_DIR}" != "x"; then
20144 if test -d ${ISDNNET_DIR}/lib; then
20145 pbxlibdir="-L${ISDNNET_DIR}/lib"
20146 else
20147 pbxlibdir="-L${ISDNNET_DIR}"
20150 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
20151 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
20152 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 else
20155 ac_check_lib_save_LIBS=$LIBS
20156 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20164 /* Override any GCC internal prototype to avoid an error.
20165 Use char because int might match the return type of a GCC
20166 builtin and then its argument prototype would still apply. */
20167 #ifdef __cplusplus
20168 extern "C"
20169 #endif
20170 char init_manager ();
20172 main ()
20174 return init_manager ();
20176 return 0;
20178 _ACEOF
20179 rm -f conftest.$ac_objext conftest$ac_exeext
20180 if { (ac_try="$ac_link"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_link") 2>conftest.er1
20187 ac_status=$?
20188 grep -v '^ *+' conftest.er1 >conftest.err
20189 rm -f conftest.er1
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } && {
20193 test -z "$ac_c_werror_flag" ||
20194 test ! -s conftest.err
20195 } && test -s conftest$ac_exeext &&
20196 $as_test_x conftest$ac_exeext; then
20197 ac_cv_lib_isdnnet_init_manager=yes
20198 else
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20202 ac_cv_lib_isdnnet_init_manager=no
20205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20206 conftest$ac_exeext conftest.$ac_ext
20207 LIBS=$ac_check_lib_save_LIBS
20209 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
20210 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20211 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20212 AST_ISDNNET_FOUND=yes
20213 else
20214 AST_ISDNNET_FOUND=no
20218 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20219 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
20220 ISDNNET_HEADER_FOUND="1"
20221 if test "x${ISDNNET_DIR}" != "x"; then
20222 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
20223 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
20225 ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
20226 saved_cppflags="${CPPFLAGS}"
20227 CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
20228 if test "xmISDNuser/isdn_net.h" != "x" ; then
20229 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20230 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
20231 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20232 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
20236 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
20237 else
20238 # Is the header compilable?
20239 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
20240 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20241 cat >conftest.$ac_ext <<_ACEOF
20242 /* confdefs.h. */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20247 $ac_includes_default
20248 #include <mISDNuser/isdn_net.h>
20249 _ACEOF
20250 rm -f conftest.$ac_objext
20251 if { (ac_try="$ac_compile"
20252 case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20255 esac
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_compile") 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest.$ac_objext; then
20267 ac_header_compiler=yes
20268 else
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 ac_header_compiler=no
20275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20277 echo "${ECHO_T}$ac_header_compiler" >&6; }
20279 # Is the header present?
20280 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
20281 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20282 cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h. */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 #include <mISDNuser/isdn_net.h>
20289 _ACEOF
20290 if { (ac_try="$ac_cpp conftest.$ac_ext"
20291 case "(($ac_try" in
20292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293 *) ac_try_echo=$ac_try;;
20294 esac
20295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20297 ac_status=$?
20298 grep -v '^ *+' conftest.er1 >conftest.err
20299 rm -f conftest.er1
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } >/dev/null && {
20303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20304 test ! -s conftest.err
20305 }; then
20306 ac_header_preproc=yes
20307 else
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20311 ac_header_preproc=no
20314 rm -f conftest.err conftest.$ac_ext
20315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20316 echo "${ECHO_T}$ac_header_preproc" >&6; }
20318 # So? What about this header?
20319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20320 yes:no: )
20321 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
20322 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20323 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
20324 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
20325 ac_header_preproc=yes
20327 no:yes:* )
20328 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
20329 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
20330 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
20331 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
20332 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
20333 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
20334 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
20335 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
20337 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
20338 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
20339 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
20340 ( cat <<\_ASBOX
20341 ## ------------------------------- ##
20342 ## Report this to www.asterisk.org ##
20343 ## ------------------------------- ##
20344 _ASBOX
20345 ) | sed "s/^/$as_me: WARNING: /" >&2
20347 esac
20348 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
20349 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20350 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
20352 else
20353 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
20355 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
20356 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
20359 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
20360 ISDNNET_HEADER_FOUND=1
20361 else
20362 ISDNNET_HEADER_FOUND=0
20367 CPPFLAGS="${saved_cppflags}"
20368 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
20369 if test -n "${ISDNNET_MANDATORY}" ;
20370 then
20371 { echo "$as_me:$LINENO: ***" >&5
20372 echo "$as_me: ***" >&6;}
20373 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
20374 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
20375 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
20376 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
20377 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
20378 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
20379 exit 1
20381 ISDNNET_LIB=""
20382 ISDNNET_INCLUDE=""
20383 PBX_ISDNNET=0
20384 else
20385 PBX_ISDNNET=1
20387 cat >>confdefs.h <<_ACEOF
20388 #define HAVE_ISDNNET 1
20389 _ACEOF
20392 elif test -n "${ISDNNET_MANDATORY}";
20393 then
20394 { echo "$as_me:$LINENO: ***" >&5
20395 echo "$as_me: ***" >&6;}
20396 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
20397 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
20398 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20399 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20400 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
20401 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
20402 exit 1
20407 if test "${USE_SUPPSERV}" != "no"; then
20408 pbxlibdir=""
20409 if test "x${SUPPSERV_DIR}" != "x"; then
20410 if test -d ${SUPPSERV_DIR}/lib; then
20411 pbxlibdir="-L${SUPPSERV_DIR}/lib"
20412 else
20413 pbxlibdir="-L${SUPPSERV_DIR}"
20416 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
20417 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
20418 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 else
20421 ac_check_lib_save_LIBS=$LIBS
20422 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20430 /* Override any GCC internal prototype to avoid an error.
20431 Use char because int might match the return type of a GCC
20432 builtin and then its argument prototype would still apply. */
20433 #ifdef __cplusplus
20434 extern "C"
20435 #endif
20436 char encodeFac ();
20438 main ()
20440 return encodeFac ();
20442 return 0;
20444 _ACEOF
20445 rm -f conftest.$ac_objext conftest$ac_exeext
20446 if { (ac_try="$ac_link"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_link") 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } && {
20459 test -z "$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20461 } && test -s conftest$ac_exeext &&
20462 $as_test_x conftest$ac_exeext; then
20463 ac_cv_lib_suppserv_encodeFac=yes
20464 else
20465 echo "$as_me: failed program was:" >&5
20466 sed 's/^/| /' conftest.$ac_ext >&5
20468 ac_cv_lib_suppserv_encodeFac=no
20471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20472 conftest$ac_exeext conftest.$ac_ext
20473 LIBS=$ac_check_lib_save_LIBS
20475 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
20476 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
20477 if test $ac_cv_lib_suppserv_encodeFac = yes; then
20478 AST_SUPPSERV_FOUND=yes
20479 else
20480 AST_SUPPSERV_FOUND=no
20484 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
20485 SUPPSERV_LIB="-lsuppserv "
20486 SUPPSERV_HEADER_FOUND="1"
20487 if test "x${SUPPSERV_DIR}" != "x"; then
20488 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
20489 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
20491 SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
20492 saved_cppflags="${CPPFLAGS}"
20493 CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
20494 if test "xmISDNuser/suppserv.h" != "x" ; then
20495 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20496 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20497 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20498 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20499 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20502 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20503 else
20504 # Is the header compilable?
20505 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
20506 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h. */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 $ac_includes_default
20514 #include <mISDNuser/suppserv.h>
20515 _ACEOF
20516 rm -f conftest.$ac_objext
20517 if { (ac_try="$ac_compile"
20518 case "(($ac_try" in
20519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520 *) ac_try_echo=$ac_try;;
20521 esac
20522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20523 (eval "$ac_compile") 2>conftest.er1
20524 ac_status=$?
20525 grep -v '^ *+' conftest.er1 >conftest.err
20526 rm -f conftest.er1
20527 cat conftest.err >&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); } && {
20530 test -z "$ac_c_werror_flag" ||
20531 test ! -s conftest.err
20532 } && test -s conftest.$ac_objext; then
20533 ac_header_compiler=yes
20534 else
20535 echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20538 ac_header_compiler=no
20541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20543 echo "${ECHO_T}$ac_header_compiler" >&6; }
20545 # Is the header present?
20546 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
20547 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
20548 cat >conftest.$ac_ext <<_ACEOF
20549 /* confdefs.h. */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20554 #include <mISDNuser/suppserv.h>
20555 _ACEOF
20556 if { (ac_try="$ac_cpp conftest.$ac_ext"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20563 ac_status=$?
20564 grep -v '^ *+' conftest.er1 >conftest.err
20565 rm -f conftest.er1
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } >/dev/null && {
20569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20570 test ! -s conftest.err
20571 }; then
20572 ac_header_preproc=yes
20573 else
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 ac_header_preproc=no
20580 rm -f conftest.err conftest.$ac_ext
20581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20582 echo "${ECHO_T}$ac_header_preproc" >&6; }
20584 # So? What about this header?
20585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20586 yes:no: )
20587 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20588 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20589 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
20590 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
20591 ac_header_preproc=yes
20593 no:yes:* )
20594 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
20595 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
20596 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
20597 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
20599 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
20600 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
20601 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20602 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
20603 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
20604 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
20605 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
20606 ( cat <<\_ASBOX
20607 ## ------------------------------- ##
20608 ## Report this to www.asterisk.org ##
20609 ## ------------------------------- ##
20610 _ASBOX
20611 ) | sed "s/^/$as_me: WARNING: /" >&2
20613 esac
20614 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20615 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20616 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20617 echo $ECHO_N "(cached) $ECHO_C" >&6
20618 else
20619 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
20621 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20622 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20625 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
20626 SUPPSERV_HEADER_FOUND=1
20627 else
20628 SUPPSERV_HEADER_FOUND=0
20633 CPPFLAGS="${saved_cppflags}"
20634 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
20635 if test -n "${SUPPSERV_MANDATORY}" ;
20636 then
20637 { echo "$as_me:$LINENO: ***" >&5
20638 echo "$as_me: ***" >&6;}
20639 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
20640 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
20641 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
20642 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
20643 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20644 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20645 exit 1
20647 SUPPSERV_LIB=""
20648 SUPPSERV_INCLUDE=""
20649 PBX_SUPPSERV=0
20650 else
20651 PBX_SUPPSERV=1
20653 cat >>confdefs.h <<_ACEOF
20654 #define HAVE_SUPPSERV 1
20655 _ACEOF
20658 elif test -n "${SUPPSERV_MANDATORY}";
20659 then
20660 { echo "$as_me:$LINENO: ***" >&5
20661 echo "$as_me: ***" >&6;}
20662 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
20663 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
20664 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20665 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20666 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20667 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20668 exit 1
20672 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20673 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20674 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20675 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20679 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20680 else
20681 # Is the header compilable?
20682 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
20683 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
20684 cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h. */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 $ac_includes_default
20691 #include <linux/mISDNdsp.h>
20692 _ACEOF
20693 rm -f conftest.$ac_objext
20694 if { (ac_try="$ac_compile"
20695 case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20698 esac
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_compile") 2>conftest.er1
20701 ac_status=$?
20702 grep -v '^ *+' conftest.er1 >conftest.err
20703 rm -f conftest.er1
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } && {
20707 test -z "$ac_c_werror_flag" ||
20708 test ! -s conftest.err
20709 } && test -s conftest.$ac_objext; then
20710 ac_header_compiler=yes
20711 else
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20715 ac_header_compiler=no
20718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20720 echo "${ECHO_T}$ac_header_compiler" >&6; }
20722 # Is the header present?
20723 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
20724 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
20725 cat >conftest.$ac_ext <<_ACEOF
20726 /* confdefs.h. */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20731 #include <linux/mISDNdsp.h>
20732 _ACEOF
20733 if { (ac_try="$ac_cpp conftest.$ac_ext"
20734 case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } >/dev/null && {
20746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20748 }; then
20749 ac_header_preproc=yes
20750 else
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20754 ac_header_preproc=no
20757 rm -f conftest.err conftest.$ac_ext
20758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20759 echo "${ECHO_T}$ac_header_preproc" >&6; }
20761 # So? What about this header?
20762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20763 yes:no: )
20764 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20765 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20766 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
20767 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
20768 ac_header_preproc=yes
20770 no:yes:* )
20771 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
20772 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
20773 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
20774 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
20775 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
20776 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
20777 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
20778 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20779 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
20780 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
20781 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
20782 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
20783 ( cat <<\_ASBOX
20784 ## ------------------------------- ##
20785 ## Report this to www.asterisk.org ##
20786 ## ------------------------------- ##
20787 _ASBOX
20788 ) | sed "s/^/$as_me: WARNING: /" >&2
20790 esac
20791 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20792 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20793 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20795 else
20796 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
20798 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20799 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20802 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
20804 cat >>confdefs.h <<_ACEOF
20805 #define MISDN_1_2 1
20806 _ACEOF
20814 if test "${USE_NBS}" != "no"; then
20815 pbxlibdir=""
20816 if test "x${NBS_DIR}" != "x"; then
20817 if test -d ${NBS_DIR}/lib; then
20818 pbxlibdir="-L${NBS_DIR}/lib"
20819 else
20820 pbxlibdir="-L${NBS_DIR}"
20823 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
20824 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
20825 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20827 else
20828 ac_check_lib_save_LIBS=$LIBS
20829 LIBS="-lnbs ${pbxlibdir} $LIBS"
20830 cat >conftest.$ac_ext <<_ACEOF
20831 /* confdefs.h. */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20837 /* Override any GCC internal prototype to avoid an error.
20838 Use char because int might match the return type of a GCC
20839 builtin and then its argument prototype would still apply. */
20840 #ifdef __cplusplus
20841 extern "C"
20842 #endif
20843 char nbs_connect ();
20845 main ()
20847 return nbs_connect ();
20849 return 0;
20851 _ACEOF
20852 rm -f conftest.$ac_objext conftest$ac_exeext
20853 if { (ac_try="$ac_link"
20854 case "(($ac_try" in
20855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856 *) ac_try_echo=$ac_try;;
20857 esac
20858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20859 (eval "$ac_link") 2>conftest.er1
20860 ac_status=$?
20861 grep -v '^ *+' conftest.er1 >conftest.err
20862 rm -f conftest.er1
20863 cat conftest.err >&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); } && {
20866 test -z "$ac_c_werror_flag" ||
20867 test ! -s conftest.err
20868 } && test -s conftest$ac_exeext &&
20869 $as_test_x conftest$ac_exeext; then
20870 ac_cv_lib_nbs_nbs_connect=yes
20871 else
20872 echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875 ac_cv_lib_nbs_nbs_connect=no
20878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20879 conftest$ac_exeext conftest.$ac_ext
20880 LIBS=$ac_check_lib_save_LIBS
20882 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
20883 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
20884 if test $ac_cv_lib_nbs_nbs_connect = yes; then
20885 AST_NBS_FOUND=yes
20886 else
20887 AST_NBS_FOUND=no
20891 if test "${AST_NBS_FOUND}" = "yes"; then
20892 NBS_LIB="-lnbs "
20893 NBS_HEADER_FOUND="1"
20894 if test "x${NBS_DIR}" != "x"; then
20895 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
20896 NBS_INCLUDE="-I${NBS_DIR}/include"
20898 NBS_INCLUDE="${NBS_INCLUDE} "
20899 saved_cppflags="${CPPFLAGS}"
20900 CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
20901 if test "xnbs.h" != "x" ; then
20902 if test "${ac_cv_header_nbs_h+set}" = set; then
20903 { echo "$as_me:$LINENO: checking for nbs.h" >&5
20904 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
20905 if test "${ac_cv_header_nbs_h+set}" = set; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
20909 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
20910 else
20911 # Is the header compilable?
20912 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
20913 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
20914 cat >conftest.$ac_ext <<_ACEOF
20915 /* confdefs.h. */
20916 _ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h. */
20920 $ac_includes_default
20921 #include <nbs.h>
20922 _ACEOF
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927 *) ac_try_echo=$ac_try;;
20928 esac
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_compile") 2>conftest.er1
20931 ac_status=$?
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest.$ac_objext; then
20940 ac_header_compiler=yes
20941 else
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ac_header_compiler=no
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20950 echo "${ECHO_T}$ac_header_compiler" >&6; }
20952 # Is the header present?
20953 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
20954 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
20955 cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h. */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 #include <nbs.h>
20962 _ACEOF
20963 if { (ac_try="$ac_cpp conftest.$ac_ext"
20964 case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20967 esac
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20970 ac_status=$?
20971 grep -v '^ *+' conftest.er1 >conftest.err
20972 rm -f conftest.er1
20973 cat conftest.err >&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); } >/dev/null && {
20976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20977 test ! -s conftest.err
20978 }; then
20979 ac_header_preproc=yes
20980 else
20981 echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20984 ac_header_preproc=no
20987 rm -f conftest.err conftest.$ac_ext
20988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20989 echo "${ECHO_T}$ac_header_preproc" >&6; }
20991 # So? What about this header?
20992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20993 yes:no: )
20994 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20995 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20996 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
20997 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
20998 ac_header_preproc=yes
21000 no:yes:* )
21001 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
21002 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
21003 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
21004 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
21005 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
21006 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
21007 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21008 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21009 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
21010 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
21011 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
21012 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
21013 ( cat <<\_ASBOX
21014 ## ------------------------------- ##
21015 ## Report this to www.asterisk.org ##
21016 ## ------------------------------- ##
21017 _ASBOX
21018 ) | sed "s/^/$as_me: WARNING: /" >&2
21020 esac
21021 { echo "$as_me:$LINENO: checking for nbs.h" >&5
21022 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
21023 if test "${ac_cv_header_nbs_h+set}" = set; then
21024 echo $ECHO_N "(cached) $ECHO_C" >&6
21025 else
21026 ac_cv_header_nbs_h=$ac_header_preproc
21028 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
21029 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
21032 if test $ac_cv_header_nbs_h = yes; then
21033 NBS_HEADER_FOUND=1
21034 else
21035 NBS_HEADER_FOUND=0
21040 CPPFLAGS="${saved_cppflags}"
21041 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
21042 if test -n "${NBS_MANDATORY}" ;
21043 then
21044 { echo "$as_me:$LINENO: ***" >&5
21045 echo "$as_me: ***" >&6;}
21046 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
21047 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
21048 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
21049 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
21050 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
21051 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
21052 exit 1
21054 NBS_LIB=""
21055 NBS_INCLUDE=""
21056 PBX_NBS=0
21057 else
21058 PBX_NBS=1
21060 cat >>confdefs.h <<_ACEOF
21061 #define HAVE_NBS 1
21062 _ACEOF
21065 elif test -n "${NBS_MANDATORY}";
21066 then
21067 { echo "$as_me:$LINENO: ***" >&5
21068 echo "$as_me: ***" >&6;}
21069 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
21070 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
21071 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21072 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21073 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
21074 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
21075 exit 1
21081 if test "${USE_NCURSES}" != "no"; then
21082 pbxlibdir=""
21083 if test "x${NCURSES_DIR}" != "x"; then
21084 if test -d ${NCURSES_DIR}/lib; then
21085 pbxlibdir="-L${NCURSES_DIR}/lib"
21086 else
21087 pbxlibdir="-L${NCURSES_DIR}"
21090 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
21091 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
21092 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
21093 echo $ECHO_N "(cached) $ECHO_C" >&6
21094 else
21095 ac_check_lib_save_LIBS=$LIBS
21096 LIBS="-lncurses ${pbxlibdir} $LIBS"
21097 cat >conftest.$ac_ext <<_ACEOF
21098 /* confdefs.h. */
21099 _ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21104 /* Override any GCC internal prototype to avoid an error.
21105 Use char because int might match the return type of a GCC
21106 builtin and then its argument prototype would still apply. */
21107 #ifdef __cplusplus
21108 extern "C"
21109 #endif
21110 char initscr ();
21112 main ()
21114 return initscr ();
21116 return 0;
21118 _ACEOF
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (ac_try="$ac_link"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21124 esac
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_link") 2>conftest.er1
21127 ac_status=$?
21128 grep -v '^ *+' conftest.er1 >conftest.err
21129 rm -f conftest.er1
21130 cat conftest.err >&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } && {
21133 test -z "$ac_c_werror_flag" ||
21134 test ! -s conftest.err
21135 } && test -s conftest$ac_exeext &&
21136 $as_test_x conftest$ac_exeext; then
21137 ac_cv_lib_ncurses_initscr=yes
21138 else
21139 echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ac_cv_lib_ncurses_initscr=no
21145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21146 conftest$ac_exeext conftest.$ac_ext
21147 LIBS=$ac_check_lib_save_LIBS
21149 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
21150 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
21151 if test $ac_cv_lib_ncurses_initscr = yes; then
21152 AST_NCURSES_FOUND=yes
21153 else
21154 AST_NCURSES_FOUND=no
21158 if test "${AST_NCURSES_FOUND}" = "yes"; then
21159 NCURSES_LIB="-lncurses "
21160 NCURSES_HEADER_FOUND="1"
21161 if test "x${NCURSES_DIR}" != "x"; then
21162 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
21163 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
21165 NCURSES_INCLUDE="${NCURSES_INCLUDE} "
21166 saved_cppflags="${CPPFLAGS}"
21167 CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
21168 if test "xcurses.h" != "x" ; then
21169 if test "${ac_cv_header_curses_h+set}" = set; then
21170 { echo "$as_me:$LINENO: checking for curses.h" >&5
21171 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21172 if test "${ac_cv_header_curses_h+set}" = set; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21175 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21176 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21177 else
21178 # Is the header compilable?
21179 { echo "$as_me:$LINENO: checking curses.h usability" >&5
21180 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h. */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 $ac_includes_default
21188 #include <curses.h>
21189 _ACEOF
21190 rm -f conftest.$ac_objext
21191 if { (ac_try="$ac_compile"
21192 case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21195 esac
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_compile") 2>conftest.er1
21198 ac_status=$?
21199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } && {
21204 test -z "$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 } && test -s conftest.$ac_objext; then
21207 ac_header_compiler=yes
21208 else
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 ac_header_compiler=no
21215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21217 echo "${ECHO_T}$ac_header_compiler" >&6; }
21219 # Is the header present?
21220 { echo "$as_me:$LINENO: checking curses.h presence" >&5
21221 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
21222 cat >conftest.$ac_ext <<_ACEOF
21223 /* confdefs.h. */
21224 _ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h. */
21228 #include <curses.h>
21229 _ACEOF
21230 if { (ac_try="$ac_cpp conftest.$ac_ext"
21231 case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21234 esac
21235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21237 ac_status=$?
21238 grep -v '^ *+' conftest.er1 >conftest.err
21239 rm -f conftest.er1
21240 cat conftest.err >&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } >/dev/null && {
21243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21244 test ! -s conftest.err
21245 }; then
21246 ac_header_preproc=yes
21247 else
21248 echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21251 ac_header_preproc=no
21254 rm -f conftest.err conftest.$ac_ext
21255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21256 echo "${ECHO_T}$ac_header_preproc" >&6; }
21258 # So? What about this header?
21259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21260 yes:no: )
21261 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
21262 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21263 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
21264 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
21265 ac_header_preproc=yes
21267 no:yes:* )
21268 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
21269 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
21270 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
21271 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
21272 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
21273 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
21274 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
21275 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
21277 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
21279 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
21280 ( cat <<\_ASBOX
21281 ## ------------------------------- ##
21282 ## Report this to www.asterisk.org ##
21283 ## ------------------------------- ##
21284 _ASBOX
21285 ) | sed "s/^/$as_me: WARNING: /" >&2
21287 esac
21288 { echo "$as_me:$LINENO: checking for curses.h" >&5
21289 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21290 if test "${ac_cv_header_curses_h+set}" = set; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21292 else
21293 ac_cv_header_curses_h=$ac_header_preproc
21295 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21296 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21299 if test $ac_cv_header_curses_h = yes; then
21300 NCURSES_HEADER_FOUND=1
21301 else
21302 NCURSES_HEADER_FOUND=0
21307 CPPFLAGS="${saved_cppflags}"
21308 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
21309 if test -n "${NCURSES_MANDATORY}" ;
21310 then
21311 { echo "$as_me:$LINENO: ***" >&5
21312 echo "$as_me: ***" >&6;}
21313 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
21314 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
21315 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
21316 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
21317 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21318 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21319 exit 1
21321 NCURSES_LIB=""
21322 NCURSES_INCLUDE=""
21323 PBX_NCURSES=0
21324 else
21325 PBX_NCURSES=1
21327 cat >>confdefs.h <<_ACEOF
21328 #define HAVE_NCURSES 1
21329 _ACEOF
21332 elif test -n "${NCURSES_MANDATORY}";
21333 then
21334 { echo "$as_me:$LINENO: ***" >&5
21335 echo "$as_me: ***" >&6;}
21336 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
21337 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
21338 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21339 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21340 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21341 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21342 exit 1
21347 NETSNMP_CONFIG=No
21348 if test "${USE_NETSNMP}" != "no"; then
21349 if test "x${NETSNMP_DIR}" != "x"; then
21350 if test -n "$ac_tool_prefix"; then
21351 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21352 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21355 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21356 echo $ECHO_N "(cached) $ECHO_C" >&6
21357 else
21358 case $NETSNMP_CONFIG in
21359 [\\/]* | ?:[\\/]*)
21360 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21364 for as_dir in ${NETSNMP_DIR}/bin
21366 IFS=$as_save_IFS
21367 test -z "$as_dir" && as_dir=.
21368 for ac_exec_ext in '' $ac_executable_extensions; do
21369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21370 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21372 break 2
21374 done
21375 done
21376 IFS=$as_save_IFS
21379 esac
21381 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21382 if test -n "$NETSNMP_CONFIG"; then
21383 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21384 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21385 else
21386 { echo "$as_me:$LINENO: result: no" >&5
21387 echo "${ECHO_T}no" >&6; }
21392 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21393 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
21394 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21395 set dummy net-snmp-config; ac_word=$2
21396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21398 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21400 else
21401 case $ac_pt_NETSNMP_CONFIG in
21402 [\\/]* | ?:[\\/]*)
21403 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21407 for as_dir in ${NETSNMP_DIR}/bin
21409 IFS=$as_save_IFS
21410 test -z "$as_dir" && as_dir=.
21411 for ac_exec_ext in '' $ac_executable_extensions; do
21412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21413 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21415 break 2
21417 done
21418 done
21419 IFS=$as_save_IFS
21422 esac
21424 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21425 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21426 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21427 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21428 else
21429 { echo "$as_me:$LINENO: result: no" >&5
21430 echo "${ECHO_T}no" >&6; }
21433 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
21434 NETSNMP_CONFIG="No"
21435 else
21436 case $cross_compiling:$ac_tool_warned in
21437 yes:)
21438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21439 whose name does not start with the host triplet. If you think this
21440 configuration is useful to you, please write to autoconf@gnu.org." >&5
21441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21442 whose name does not start with the host triplet. If you think this
21443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21444 ac_tool_warned=yes ;;
21445 esac
21446 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
21448 else
21449 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
21452 if test x"${NETSNMP_CONFIG}" = xNo; then
21453 { echo "$as_me:$LINENO: ***" >&5
21454 echo "$as_me: ***" >&6;}
21455 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
21456 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
21457 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
21458 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
21459 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21460 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21461 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21462 echo "$as_me: *** including --without-netsnmp" >&6;}
21463 exit 1
21465 else
21466 if test -n "$ac_tool_prefix"; then
21467 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21468 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21471 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21473 else
21474 case $NETSNMP_CONFIG in
21475 [\\/]* | ?:[\\/]*)
21476 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21480 for as_dir in $PATH
21482 IFS=$as_save_IFS
21483 test -z "$as_dir" && as_dir=.
21484 for ac_exec_ext in '' $ac_executable_extensions; do
21485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21486 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21488 break 2
21490 done
21491 done
21492 IFS=$as_save_IFS
21495 esac
21497 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21498 if test -n "$NETSNMP_CONFIG"; then
21499 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21500 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21501 else
21502 { echo "$as_me:$LINENO: result: no" >&5
21503 echo "${ECHO_T}no" >&6; }
21508 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21509 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
21510 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21511 set dummy net-snmp-config; ac_word=$2
21512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21514 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 else
21517 case $ac_pt_NETSNMP_CONFIG in
21518 [\\/]* | ?:[\\/]*)
21519 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21523 for as_dir in $PATH
21525 IFS=$as_save_IFS
21526 test -z "$as_dir" && as_dir=.
21527 for ac_exec_ext in '' $ac_executable_extensions; do
21528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21529 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21531 break 2
21533 done
21534 done
21535 IFS=$as_save_IFS
21538 esac
21540 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21541 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21542 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21543 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21544 else
21545 { echo "$as_me:$LINENO: result: no" >&5
21546 echo "${ECHO_T}no" >&6; }
21549 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
21550 NETSNMP_CONFIG="No"
21551 else
21552 case $cross_compiling:$ac_tool_warned in
21553 yes:)
21554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21555 whose name does not start with the host triplet. If you think this
21556 configuration is useful to you, please write to autoconf@gnu.org." >&5
21557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21558 whose name does not start with the host triplet. If you think this
21559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21560 ac_tool_warned=yes ;;
21561 esac
21562 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
21564 else
21565 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
21570 if test x"${NETSNMP_CONFIG}" != xNo; then
21571 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
21573 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
21574 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
21575 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 else
21578 ac_check_lib_save_LIBS=$LIBS
21579 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
21580 cat >conftest.$ac_ext <<_ACEOF
21581 /* confdefs.h. */
21582 _ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h. */
21587 /* Override any GCC internal prototype to avoid an error.
21588 Use char because int might match the return type of a GCC
21589 builtin and then its argument prototype would still apply. */
21590 #ifdef __cplusplus
21591 extern "C"
21592 #endif
21593 char snmp_register_callback ();
21595 main ()
21597 return snmp_register_callback ();
21599 return 0;
21601 _ACEOF
21602 rm -f conftest.$ac_objext conftest$ac_exeext
21603 if { (ac_try="$ac_link"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21607 esac
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609 (eval "$ac_link") 2>conftest.er1
21610 ac_status=$?
21611 grep -v '^ *+' conftest.er1 >conftest.err
21612 rm -f conftest.er1
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } && {
21616 test -z "$ac_c_werror_flag" ||
21617 test ! -s conftest.err
21618 } && test -s conftest$ac_exeext &&
21619 $as_test_x conftest$ac_exeext; then
21620 ac_cv_lib_netsnmp_snmp_register_callback=yes
21621 else
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21625 ac_cv_lib_netsnmp_snmp_register_callback=no
21628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21629 conftest$ac_exeext conftest.$ac_ext
21630 LIBS=$ac_check_lib_save_LIBS
21632 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
21633 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
21634 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
21636 cat >>confdefs.h <<_ACEOF
21637 #define HAVE_NETSNMP 1
21638 _ACEOF
21643 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
21644 NETSNMP_LIB="${NETSNMP_libs}"
21645 PBX_NETSNMP=1
21646 elif test -n "${NETSNMP_MANDATORY}";
21647 then
21648 { echo "$as_me:$LINENO: ***" >&5
21649 echo "$as_me: ***" >&6;}
21650 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
21651 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
21652 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21653 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21654 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21655 echo "$as_me: *** including --without-netsnmp" >&6;}
21656 exit 1
21658 elif test -n "${NETSNMP_MANDATORY}";
21659 then
21660 { echo "$as_me:$LINENO: ***" >&5
21661 echo "$as_me: ***" >&6;}
21662 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
21663 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
21664 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21665 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21666 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21667 echo "$as_me: *** including --without-netsnmp" >&6;}
21668 exit 1
21672 if test "${USE_NEWT}" != "no"; then
21673 pbxlibdir=""
21674 if test "x${NEWT_DIR}" != "x"; then
21675 if test -d ${NEWT_DIR}/lib; then
21676 pbxlibdir="-L${NEWT_DIR}/lib"
21677 else
21678 pbxlibdir="-L${NEWT_DIR}"
21681 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
21682 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
21683 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
21684 echo $ECHO_N "(cached) $ECHO_C" >&6
21685 else
21686 ac_check_lib_save_LIBS=$LIBS
21687 LIBS="-lnewt ${pbxlibdir} $LIBS"
21688 cat >conftest.$ac_ext <<_ACEOF
21689 /* confdefs.h. */
21690 _ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h. */
21695 /* Override any GCC internal prototype to avoid an error.
21696 Use char because int might match the return type of a GCC
21697 builtin and then its argument prototype would still apply. */
21698 #ifdef __cplusplus
21699 extern "C"
21700 #endif
21701 char newtBell ();
21703 main ()
21705 return newtBell ();
21707 return 0;
21709 _ACEOF
21710 rm -f conftest.$ac_objext conftest$ac_exeext
21711 if { (ac_try="$ac_link"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21715 esac
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_link") 2>conftest.er1
21718 ac_status=$?
21719 grep -v '^ *+' conftest.er1 >conftest.err
21720 rm -f conftest.er1
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } && {
21724 test -z "$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21726 } && test -s conftest$ac_exeext &&
21727 $as_test_x conftest$ac_exeext; then
21728 ac_cv_lib_newt_newtBell=yes
21729 else
21730 echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21733 ac_cv_lib_newt_newtBell=no
21736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21737 conftest$ac_exeext conftest.$ac_ext
21738 LIBS=$ac_check_lib_save_LIBS
21740 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
21741 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
21742 if test $ac_cv_lib_newt_newtBell = yes; then
21743 AST_NEWT_FOUND=yes
21744 else
21745 AST_NEWT_FOUND=no
21749 if test "${AST_NEWT_FOUND}" = "yes"; then
21750 NEWT_LIB="-lnewt "
21751 NEWT_HEADER_FOUND="1"
21752 if test "x${NEWT_DIR}" != "x"; then
21753 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
21754 NEWT_INCLUDE="-I${NEWT_DIR}/include"
21756 NEWT_INCLUDE="${NEWT_INCLUDE} "
21757 saved_cppflags="${CPPFLAGS}"
21758 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
21759 if test "xnewt.h" != "x" ; then
21760 if test "${ac_cv_header_newt_h+set}" = set; then
21761 { echo "$as_me:$LINENO: checking for newt.h" >&5
21762 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
21763 if test "${ac_cv_header_newt_h+set}" = set; then
21764 echo $ECHO_N "(cached) $ECHO_C" >&6
21766 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
21767 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
21768 else
21769 # Is the header compilable?
21770 { echo "$as_me:$LINENO: checking newt.h usability" >&5
21771 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
21772 cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h. */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h. */
21778 $ac_includes_default
21779 #include <newt.h>
21780 _ACEOF
21781 rm -f conftest.$ac_objext
21782 if { (ac_try="$ac_compile"
21783 case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21786 esac
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_compile") 2>conftest.er1
21789 ac_status=$?
21790 grep -v '^ *+' conftest.er1 >conftest.err
21791 rm -f conftest.er1
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } && {
21795 test -z "$ac_c_werror_flag" ||
21796 test ! -s conftest.err
21797 } && test -s conftest.$ac_objext; then
21798 ac_header_compiler=yes
21799 else
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21803 ac_header_compiler=no
21806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21808 echo "${ECHO_T}$ac_header_compiler" >&6; }
21810 # Is the header present?
21811 { echo "$as_me:$LINENO: checking newt.h presence" >&5
21812 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
21813 cat >conftest.$ac_ext <<_ACEOF
21814 /* confdefs.h. */
21815 _ACEOF
21816 cat confdefs.h >>conftest.$ac_ext
21817 cat >>conftest.$ac_ext <<_ACEOF
21818 /* end confdefs.h. */
21819 #include <newt.h>
21820 _ACEOF
21821 if { (ac_try="$ac_cpp conftest.$ac_ext"
21822 case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21825 esac
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21828 ac_status=$?
21829 grep -v '^ *+' conftest.er1 >conftest.err
21830 rm -f conftest.er1
21831 cat conftest.err >&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } >/dev/null && {
21834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21835 test ! -s conftest.err
21836 }; then
21837 ac_header_preproc=yes
21838 else
21839 echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21842 ac_header_preproc=no
21845 rm -f conftest.err conftest.$ac_ext
21846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21847 echo "${ECHO_T}$ac_header_preproc" >&6; }
21849 # So? What about this header?
21850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21851 yes:no: )
21852 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21853 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21854 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
21855 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
21856 ac_header_preproc=yes
21858 no:yes:* )
21859 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
21860 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
21861 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
21862 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
21863 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
21864 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
21866 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
21868 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
21870 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
21871 ( cat <<\_ASBOX
21872 ## ------------------------------- ##
21873 ## Report this to www.asterisk.org ##
21874 ## ------------------------------- ##
21875 _ASBOX
21876 ) | sed "s/^/$as_me: WARNING: /" >&2
21878 esac
21879 { echo "$as_me:$LINENO: checking for newt.h" >&5
21880 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
21881 if test "${ac_cv_header_newt_h+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21883 else
21884 ac_cv_header_newt_h=$ac_header_preproc
21886 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
21887 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
21890 if test $ac_cv_header_newt_h = yes; then
21891 NEWT_HEADER_FOUND=1
21892 else
21893 NEWT_HEADER_FOUND=0
21898 CPPFLAGS="${saved_cppflags}"
21899 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
21900 if test -n "${NEWT_MANDATORY}" ;
21901 then
21902 { echo "$as_me:$LINENO: ***" >&5
21903 echo "$as_me: ***" >&6;}
21904 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
21905 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
21906 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
21907 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
21908 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
21909 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
21910 exit 1
21912 NEWT_LIB=""
21913 NEWT_INCLUDE=""
21914 PBX_NEWT=0
21915 else
21916 PBX_NEWT=1
21918 cat >>confdefs.h <<_ACEOF
21919 #define HAVE_NEWT 1
21920 _ACEOF
21923 elif test -n "${NEWT_MANDATORY}";
21924 then
21925 { echo "$as_me:$LINENO: ***" >&5
21926 echo "$as_me: ***" >&6;}
21927 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
21928 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
21929 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21930 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21931 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
21932 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
21933 exit 1
21939 if test "${USE_UNIXODBC}" != "no"; then
21940 pbxlibdir=""
21941 if test "x${UNIXODBC_DIR}" != "x"; then
21942 if test -d ${UNIXODBC_DIR}/lib; then
21943 pbxlibdir="-L${UNIXODBC_DIR}/lib"
21944 else
21945 pbxlibdir="-L${UNIXODBC_DIR}"
21948 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
21949 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
21950 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953 ac_check_lib_save_LIBS=$LIBS
21954 LIBS="-lodbc ${pbxlibdir} $LIBS"
21955 cat >conftest.$ac_ext <<_ACEOF
21956 /* confdefs.h. */
21957 _ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21962 /* Override any GCC internal prototype to avoid an error.
21963 Use char because int might match the return type of a GCC
21964 builtin and then its argument prototype would still apply. */
21965 #ifdef __cplusplus
21966 extern "C"
21967 #endif
21968 char SQLConnect ();
21970 main ()
21972 return SQLConnect ();
21974 return 0;
21976 _ACEOF
21977 rm -f conftest.$ac_objext conftest$ac_exeext
21978 if { (ac_try="$ac_link"
21979 case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21982 esac
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_link") 2>conftest.er1
21985 ac_status=$?
21986 grep -v '^ *+' conftest.er1 >conftest.err
21987 rm -f conftest.er1
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } && {
21991 test -z "$ac_c_werror_flag" ||
21992 test ! -s conftest.err
21993 } && test -s conftest$ac_exeext &&
21994 $as_test_x conftest$ac_exeext; then
21995 ac_cv_lib_odbc_SQLConnect=yes
21996 else
21997 echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
22000 ac_cv_lib_odbc_SQLConnect=no
22003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22004 conftest$ac_exeext conftest.$ac_ext
22005 LIBS=$ac_check_lib_save_LIBS
22007 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
22008 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
22009 if test $ac_cv_lib_odbc_SQLConnect = yes; then
22010 AST_UNIXODBC_FOUND=yes
22011 else
22012 AST_UNIXODBC_FOUND=no
22016 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
22017 UNIXODBC_LIB="-lodbc "
22018 UNIXODBC_HEADER_FOUND="1"
22019 if test "x${UNIXODBC_DIR}" != "x"; then
22020 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
22021 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
22023 UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
22024 saved_cppflags="${CPPFLAGS}"
22025 CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
22026 if test "xsql.h" != "x" ; then
22027 if test "${ac_cv_header_sql_h+set}" = set; then
22028 { echo "$as_me:$LINENO: checking for sql.h" >&5
22029 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22030 if test "${ac_cv_header_sql_h+set}" = set; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22034 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22035 else
22036 # Is the header compilable?
22037 { echo "$as_me:$LINENO: checking sql.h usability" >&5
22038 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
22039 cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h. */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22045 $ac_includes_default
22046 #include <sql.h>
22047 _ACEOF
22048 rm -f conftest.$ac_objext
22049 if { (ac_try="$ac_compile"
22050 case "(($ac_try" in
22051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052 *) ac_try_echo=$ac_try;;
22053 esac
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055 (eval "$ac_compile") 2>conftest.er1
22056 ac_status=$?
22057 grep -v '^ *+' conftest.er1 >conftest.err
22058 rm -f conftest.er1
22059 cat conftest.err >&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } && {
22062 test -z "$ac_c_werror_flag" ||
22063 test ! -s conftest.err
22064 } && test -s conftest.$ac_objext; then
22065 ac_header_compiler=yes
22066 else
22067 echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22070 ac_header_compiler=no
22073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22075 echo "${ECHO_T}$ac_header_compiler" >&6; }
22077 # Is the header present?
22078 { echo "$as_me:$LINENO: checking sql.h presence" >&5
22079 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
22080 cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h. */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h. */
22086 #include <sql.h>
22087 _ACEOF
22088 if { (ac_try="$ac_cpp conftest.$ac_ext"
22089 case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22095 ac_status=$?
22096 grep -v '^ *+' conftest.er1 >conftest.err
22097 rm -f conftest.er1
22098 cat conftest.err >&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } >/dev/null && {
22101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22102 test ! -s conftest.err
22103 }; then
22104 ac_header_preproc=yes
22105 else
22106 echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22109 ac_header_preproc=no
22112 rm -f conftest.err conftest.$ac_ext
22113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22114 echo "${ECHO_T}$ac_header_preproc" >&6; }
22116 # So? What about this header?
22117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22118 yes:no: )
22119 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
22120 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22121 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
22122 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
22123 ac_header_preproc=yes
22125 no:yes:* )
22126 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
22127 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
22128 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
22129 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
22130 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
22131 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
22132 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
22133 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
22134 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
22135 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
22136 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
22137 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
22138 ( cat <<\_ASBOX
22139 ## ------------------------------- ##
22140 ## Report this to www.asterisk.org ##
22141 ## ------------------------------- ##
22142 _ASBOX
22143 ) | sed "s/^/$as_me: WARNING: /" >&2
22145 esac
22146 { echo "$as_me:$LINENO: checking for sql.h" >&5
22147 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22148 if test "${ac_cv_header_sql_h+set}" = set; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 else
22151 ac_cv_header_sql_h=$ac_header_preproc
22153 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22154 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22157 if test $ac_cv_header_sql_h = yes; then
22158 UNIXODBC_HEADER_FOUND=1
22159 else
22160 UNIXODBC_HEADER_FOUND=0
22165 CPPFLAGS="${saved_cppflags}"
22166 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
22167 if test -n "${UNIXODBC_MANDATORY}" ;
22168 then
22169 { echo "$as_me:$LINENO: ***" >&5
22170 echo "$as_me: ***" >&6;}
22171 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
22172 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
22173 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
22174 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
22175 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22176 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22177 exit 1
22179 UNIXODBC_LIB=""
22180 UNIXODBC_INCLUDE=""
22181 PBX_UNIXODBC=0
22182 else
22183 PBX_UNIXODBC=1
22185 cat >>confdefs.h <<_ACEOF
22186 #define HAVE_UNIXODBC 1
22187 _ACEOF
22190 elif test -n "${UNIXODBC_MANDATORY}";
22191 then
22192 { echo "$as_me:$LINENO: ***" >&5
22193 echo "$as_me: ***" >&6;}
22194 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
22195 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
22196 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22197 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22198 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22199 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22200 exit 1
22206 if test "${USE_OGG}" != "no"; then
22207 pbxlibdir=""
22208 if test "x${OGG_DIR}" != "x"; then
22209 if test -d ${OGG_DIR}/lib; then
22210 pbxlibdir="-L${OGG_DIR}/lib"
22211 else
22212 pbxlibdir="-L${OGG_DIR}"
22215 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
22216 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
22217 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
22218 echo $ECHO_N "(cached) $ECHO_C" >&6
22219 else
22220 ac_check_lib_save_LIBS=$LIBS
22221 LIBS="-logg ${pbxlibdir} $LIBS"
22222 cat >conftest.$ac_ext <<_ACEOF
22223 /* confdefs.h. */
22224 _ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h. */
22229 /* Override any GCC internal prototype to avoid an error.
22230 Use char because int might match the return type of a GCC
22231 builtin and then its argument prototype would still apply. */
22232 #ifdef __cplusplus
22233 extern "C"
22234 #endif
22235 char ogg_sync_init ();
22237 main ()
22239 return ogg_sync_init ();
22241 return 0;
22243 _ACEOF
22244 rm -f conftest.$ac_objext conftest$ac_exeext
22245 if { (ac_try="$ac_link"
22246 case "(($ac_try" in
22247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248 *) ac_try_echo=$ac_try;;
22249 esac
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251 (eval "$ac_link") 2>conftest.er1
22252 ac_status=$?
22253 grep -v '^ *+' conftest.er1 >conftest.err
22254 rm -f conftest.er1
22255 cat conftest.err >&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); } && {
22258 test -z "$ac_c_werror_flag" ||
22259 test ! -s conftest.err
22260 } && test -s conftest$ac_exeext &&
22261 $as_test_x conftest$ac_exeext; then
22262 ac_cv_lib_ogg_ogg_sync_init=yes
22263 else
22264 echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22267 ac_cv_lib_ogg_ogg_sync_init=no
22270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22271 conftest$ac_exeext conftest.$ac_ext
22272 LIBS=$ac_check_lib_save_LIBS
22274 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
22275 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
22276 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
22277 AST_OGG_FOUND=yes
22278 else
22279 AST_OGG_FOUND=no
22283 if test "${AST_OGG_FOUND}" = "yes"; then
22284 OGG_LIB="-logg "
22285 OGG_HEADER_FOUND="1"
22286 if test "x${OGG_DIR}" != "x"; then
22287 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
22288 OGG_INCLUDE="-I${OGG_DIR}/include"
22290 OGG_INCLUDE="${OGG_INCLUDE} "
22291 saved_cppflags="${CPPFLAGS}"
22292 CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
22293 if test "x" != "x" ; then
22294 if test "${ac_cv_header_+set}" = set; then
22295 { echo "$as_me:$LINENO: checking for " >&5
22296 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22297 if test "${ac_cv_header_+set}" = set; then
22298 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22301 echo "${ECHO_T}$ac_cv_header_" >&6; }
22302 else
22303 # Is the header compilable?
22304 { echo "$as_me:$LINENO: checking usability" >&5
22305 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22306 cat >conftest.$ac_ext <<_ACEOF
22307 /* confdefs.h. */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h. */
22312 $ac_includes_default
22313 #include <>
22314 _ACEOF
22315 rm -f conftest.$ac_objext
22316 if { (ac_try="$ac_compile"
22317 case "(($ac_try" in
22318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319 *) ac_try_echo=$ac_try;;
22320 esac
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322 (eval "$ac_compile") 2>conftest.er1
22323 ac_status=$?
22324 grep -v '^ *+' conftest.er1 >conftest.err
22325 rm -f conftest.er1
22326 cat conftest.err >&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } && {
22329 test -z "$ac_c_werror_flag" ||
22330 test ! -s conftest.err
22331 } && test -s conftest.$ac_objext; then
22332 ac_header_compiler=yes
22333 else
22334 echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22337 ac_header_compiler=no
22340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22342 echo "${ECHO_T}$ac_header_compiler" >&6; }
22344 # Is the header present?
22345 { echo "$as_me:$LINENO: checking presence" >&5
22346 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22347 cat >conftest.$ac_ext <<_ACEOF
22348 /* confdefs.h. */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h. */
22353 #include <>
22354 _ACEOF
22355 if { (ac_try="$ac_cpp conftest.$ac_ext"
22356 case "(($ac_try" in
22357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358 *) ac_try_echo=$ac_try;;
22359 esac
22360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22362 ac_status=$?
22363 grep -v '^ *+' conftest.er1 >conftest.err
22364 rm -f conftest.er1
22365 cat conftest.err >&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } >/dev/null && {
22368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22369 test ! -s conftest.err
22370 }; then
22371 ac_header_preproc=yes
22372 else
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22376 ac_header_preproc=no
22379 rm -f conftest.err conftest.$ac_ext
22380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22381 echo "${ECHO_T}$ac_header_preproc" >&6; }
22383 # So? What about this header?
22384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22385 yes:no: )
22386 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22387 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22388 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22389 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22390 ac_header_preproc=yes
22392 no:yes:* )
22393 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22394 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22395 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22396 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22397 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22398 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22399 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22400 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22401 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22402 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22403 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22404 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22405 ( cat <<\_ASBOX
22406 ## ------------------------------- ##
22407 ## Report this to www.asterisk.org ##
22408 ## ------------------------------- ##
22409 _ASBOX
22410 ) | sed "s/^/$as_me: WARNING: /" >&2
22412 esac
22413 { echo "$as_me:$LINENO: checking for " >&5
22414 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22415 if test "${ac_cv_header_+set}" = set; then
22416 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 else
22418 ac_cv_header_=$ac_header_preproc
22420 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22421 echo "${ECHO_T}$ac_cv_header_" >&6; }
22424 if test $ac_cv_header_ = yes; then
22425 OGG_HEADER_FOUND=1
22426 else
22427 OGG_HEADER_FOUND=0
22432 CPPFLAGS="${saved_cppflags}"
22433 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
22434 if test -n "${OGG_MANDATORY}" ;
22435 then
22436 { echo "$as_me:$LINENO: ***" >&5
22437 echo "$as_me: ***" >&6;}
22438 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
22439 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
22440 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
22441 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
22442 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
22443 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
22444 exit 1
22446 OGG_LIB=""
22447 OGG_INCLUDE=""
22448 PBX_OGG=0
22449 else
22450 PBX_OGG=1
22452 cat >>confdefs.h <<_ACEOF
22453 #define HAVE_OGG 1
22454 _ACEOF
22457 elif test -n "${OGG_MANDATORY}";
22458 then
22459 { echo "$as_me:$LINENO: ***" >&5
22460 echo "$as_me: ***" >&6;}
22461 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
22462 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
22463 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22464 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22465 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
22466 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
22467 exit 1
22472 if test "${USE_OSS}" != "no"; then
22473 PBX_OSS=0
22474 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22475 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22476 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22477 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22478 echo $ECHO_N "(cached) $ECHO_C" >&6
22480 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22481 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22482 else
22483 # Is the header compilable?
22484 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
22485 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
22486 cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h. */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h. */
22492 $ac_includes_default
22493 #include <linux/soundcard.h>
22494 _ACEOF
22495 rm -f conftest.$ac_objext
22496 if { (ac_try="$ac_compile"
22497 case "(($ac_try" in
22498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499 *) ac_try_echo=$ac_try;;
22500 esac
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502 (eval "$ac_compile") 2>conftest.er1
22503 ac_status=$?
22504 grep -v '^ *+' conftest.er1 >conftest.err
22505 rm -f conftest.er1
22506 cat conftest.err >&5
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } && {
22509 test -z "$ac_c_werror_flag" ||
22510 test ! -s conftest.err
22511 } && test -s conftest.$ac_objext; then
22512 ac_header_compiler=yes
22513 else
22514 echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22517 ac_header_compiler=no
22520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22522 echo "${ECHO_T}$ac_header_compiler" >&6; }
22524 # Is the header present?
22525 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
22526 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
22527 cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h. */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22533 #include <linux/soundcard.h>
22534 _ACEOF
22535 if { (ac_try="$ac_cpp conftest.$ac_ext"
22536 case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22539 esac
22540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22542 ac_status=$?
22543 grep -v '^ *+' conftest.er1 >conftest.err
22544 rm -f conftest.er1
22545 cat conftest.err >&5
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } >/dev/null && {
22548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22549 test ! -s conftest.err
22550 }; then
22551 ac_header_preproc=yes
22552 else
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22556 ac_header_preproc=no
22559 rm -f conftest.err conftest.$ac_ext
22560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22561 echo "${ECHO_T}$ac_header_preproc" >&6; }
22563 # So? What about this header?
22564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22565 yes:no: )
22566 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22567 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22568 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
22569 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
22570 ac_header_preproc=yes
22572 no:yes:* )
22573 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
22574 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
22575 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
22576 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
22577 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
22578 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
22579 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22580 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22581 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
22582 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
22583 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
22584 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
22585 ( cat <<\_ASBOX
22586 ## ------------------------------- ##
22587 ## Report this to www.asterisk.org ##
22588 ## ------------------------------- ##
22589 _ASBOX
22590 ) | sed "s/^/$as_me: WARNING: /" >&2
22592 esac
22593 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22594 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22595 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22596 echo $ECHO_N "(cached) $ECHO_C" >&6
22597 else
22598 ac_cv_header_linux_soundcard_h=$ac_header_preproc
22600 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22601 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22604 if test $ac_cv_header_linux_soundcard_h = yes; then
22606 PBX_OSS=1
22608 cat >>confdefs.h <<_ACEOF
22609 #define HAVE_OSS 1
22610 _ACEOF
22616 if test "$PBX_OSS" = "0"; then
22617 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22618 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22619 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22620 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22621 echo $ECHO_N "(cached) $ECHO_C" >&6
22623 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22624 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22625 else
22626 # Is the header compilable?
22627 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
22628 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
22629 cat >conftest.$ac_ext <<_ACEOF
22630 /* confdefs.h. */
22631 _ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h. */
22635 $ac_includes_default
22636 #include <sys/soundcard.h>
22637 _ACEOF
22638 rm -f conftest.$ac_objext
22639 if { (ac_try="$ac_compile"
22640 case "(($ac_try" in
22641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22642 *) ac_try_echo=$ac_try;;
22643 esac
22644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22645 (eval "$ac_compile") 2>conftest.er1
22646 ac_status=$?
22647 grep -v '^ *+' conftest.er1 >conftest.err
22648 rm -f conftest.er1
22649 cat conftest.err >&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); } && {
22652 test -z "$ac_c_werror_flag" ||
22653 test ! -s conftest.err
22654 } && test -s conftest.$ac_objext; then
22655 ac_header_compiler=yes
22656 else
22657 echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.$ac_ext >&5
22660 ac_header_compiler=no
22663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22665 echo "${ECHO_T}$ac_header_compiler" >&6; }
22667 # Is the header present?
22668 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
22669 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
22670 cat >conftest.$ac_ext <<_ACEOF
22671 /* confdefs.h. */
22672 _ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h. */
22676 #include <sys/soundcard.h>
22677 _ACEOF
22678 if { (ac_try="$ac_cpp conftest.$ac_ext"
22679 case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22682 esac
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22685 ac_status=$?
22686 grep -v '^ *+' conftest.er1 >conftest.err
22687 rm -f conftest.er1
22688 cat conftest.err >&5
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); } >/dev/null && {
22691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22692 test ! -s conftest.err
22693 }; then
22694 ac_header_preproc=yes
22695 else
22696 echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22699 ac_header_preproc=no
22702 rm -f conftest.err conftest.$ac_ext
22703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22704 echo "${ECHO_T}$ac_header_preproc" >&6; }
22706 # So? What about this header?
22707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22708 yes:no: )
22709 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22710 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22711 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
22712 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
22713 ac_header_preproc=yes
22715 no:yes:* )
22716 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
22717 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
22718 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
22719 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
22720 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
22721 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
22722 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22723 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22724 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
22725 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
22726 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
22727 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
22728 ( cat <<\_ASBOX
22729 ## ------------------------------- ##
22730 ## Report this to www.asterisk.org ##
22731 ## ------------------------------- ##
22732 _ASBOX
22733 ) | sed "s/^/$as_me: WARNING: /" >&2
22735 esac
22736 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22737 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22738 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22739 echo $ECHO_N "(cached) $ECHO_C" >&6
22740 else
22741 ac_cv_header_sys_soundcard_h=$ac_header_preproc
22743 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22744 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22747 if test $ac_cv_header_sys_soundcard_h = yes; then
22749 PBX_OSS=1
22751 cat >>confdefs.h <<_ACEOF
22752 #define HAVE_OSS 1
22753 _ACEOF
22760 if test "$PBX_OSS" = "0"; then
22762 if test "${USE_OSS}" != "no"; then
22763 pbxlibdir=""
22764 if test "x${OSS_DIR}" != "x"; then
22765 if test -d ${OSS_DIR}/lib; then
22766 pbxlibdir="-L${OSS_DIR}/lib"
22767 else
22768 pbxlibdir="-L${OSS_DIR}"
22771 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
22772 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
22773 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
22774 echo $ECHO_N "(cached) $ECHO_C" >&6
22775 else
22776 ac_check_lib_save_LIBS=$LIBS
22777 LIBS="-lossaudio ${pbxlibdir} $LIBS"
22778 cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h. */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22785 /* Override any GCC internal prototype to avoid an error.
22786 Use char because int might match the return type of a GCC
22787 builtin and then its argument prototype would still apply. */
22788 #ifdef __cplusplus
22789 extern "C"
22790 #endif
22791 char oss_ioctl_mixer ();
22793 main ()
22795 return oss_ioctl_mixer ();
22797 return 0;
22799 _ACEOF
22800 rm -f conftest.$ac_objext conftest$ac_exeext
22801 if { (ac_try="$ac_link"
22802 case "(($ac_try" in
22803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804 *) ac_try_echo=$ac_try;;
22805 esac
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807 (eval "$ac_link") 2>conftest.er1
22808 ac_status=$?
22809 grep -v '^ *+' conftest.er1 >conftest.err
22810 rm -f conftest.er1
22811 cat conftest.err >&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); } && {
22814 test -z "$ac_c_werror_flag" ||
22815 test ! -s conftest.err
22816 } && test -s conftest$ac_exeext &&
22817 $as_test_x conftest$ac_exeext; then
22818 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
22819 else
22820 echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22823 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
22826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22827 conftest$ac_exeext conftest.$ac_ext
22828 LIBS=$ac_check_lib_save_LIBS
22830 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
22831 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
22832 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
22833 AST_OSS_FOUND=yes
22834 else
22835 AST_OSS_FOUND=no
22839 if test "${AST_OSS_FOUND}" = "yes"; then
22840 OSS_LIB="-lossaudio "
22841 OSS_HEADER_FOUND="1"
22842 if test "x${OSS_DIR}" != "x"; then
22843 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
22844 OSS_INCLUDE="-I${OSS_DIR}/include"
22846 OSS_INCLUDE="${OSS_INCLUDE} "
22847 saved_cppflags="${CPPFLAGS}"
22848 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
22849 if test "xsoundcard.h" != "x" ; then
22850 if test "${ac_cv_header_soundcard_h+set}" = set; then
22851 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22852 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22853 if test "${ac_cv_header_soundcard_h+set}" = set; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22857 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22858 else
22859 # Is the header compilable?
22860 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
22861 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
22862 cat >conftest.$ac_ext <<_ACEOF
22863 /* confdefs.h. */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22868 $ac_includes_default
22869 #include <soundcard.h>
22870 _ACEOF
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22876 esac
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_compile") 2>conftest.er1
22879 ac_status=$?
22880 grep -v '^ *+' conftest.er1 >conftest.err
22881 rm -f conftest.er1
22882 cat conftest.err >&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } && {
22885 test -z "$ac_c_werror_flag" ||
22886 test ! -s conftest.err
22887 } && test -s conftest.$ac_objext; then
22888 ac_header_compiler=yes
22889 else
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22893 ac_header_compiler=no
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22898 echo "${ECHO_T}$ac_header_compiler" >&6; }
22900 # Is the header present?
22901 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
22902 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
22903 cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h. */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22909 #include <soundcard.h>
22910 _ACEOF
22911 if { (ac_try="$ac_cpp conftest.$ac_ext"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22915 esac
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22918 ac_status=$?
22919 grep -v '^ *+' conftest.er1 >conftest.err
22920 rm -f conftest.er1
22921 cat conftest.err >&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } >/dev/null && {
22924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22925 test ! -s conftest.err
22926 }; then
22927 ac_header_preproc=yes
22928 else
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22932 ac_header_preproc=no
22935 rm -f conftest.err conftest.$ac_ext
22936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22937 echo "${ECHO_T}$ac_header_preproc" >&6; }
22939 # So? What about this header?
22940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22941 yes:no: )
22942 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22943 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22944 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
22945 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
22946 ac_header_preproc=yes
22948 no:yes:* )
22949 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
22950 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
22951 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
22952 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
22953 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
22954 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
22955 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22956 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22957 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
22958 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
22959 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
22960 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
22961 ( cat <<\_ASBOX
22962 ## ------------------------------- ##
22963 ## Report this to www.asterisk.org ##
22964 ## ------------------------------- ##
22965 _ASBOX
22966 ) | sed "s/^/$as_me: WARNING: /" >&2
22968 esac
22969 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22970 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22971 if test "${ac_cv_header_soundcard_h+set}" = set; then
22972 echo $ECHO_N "(cached) $ECHO_C" >&6
22973 else
22974 ac_cv_header_soundcard_h=$ac_header_preproc
22976 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22977 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22980 if test $ac_cv_header_soundcard_h = yes; then
22981 OSS_HEADER_FOUND=1
22982 else
22983 OSS_HEADER_FOUND=0
22988 CPPFLAGS="${saved_cppflags}"
22989 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
22990 if test -n "${OSS_MANDATORY}" ;
22991 then
22992 { echo "$as_me:$LINENO: ***" >&5
22993 echo "$as_me: ***" >&6;}
22994 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
22995 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
22996 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
22997 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
22998 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22999 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23000 exit 1
23002 OSS_LIB=""
23003 OSS_INCLUDE=""
23004 PBX_OSS=0
23005 else
23006 PBX_OSS=1
23008 cat >>confdefs.h <<_ACEOF
23009 #define HAVE_OSS 1
23010 _ACEOF
23013 elif test -n "${OSS_MANDATORY}";
23014 then
23015 { echo "$as_me:$LINENO: ***" >&5
23016 echo "$as_me: ***" >&6;}
23017 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
23018 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
23019 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23020 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23021 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23022 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23023 exit 1
23030 PG_CONFIG=No
23031 if test "${USE_PGSQL}" != "no"; then
23032 if test "x${PGSQL_DIR}" != "x"; then
23033 if test -n "$ac_tool_prefix"; then
23034 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23035 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23038 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041 case $PG_CONFIG in
23042 [\\/]* | ?:[\\/]*)
23043 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23047 for as_dir in ${PGSQL_DIR}/bin
23049 IFS=$as_save_IFS
23050 test -z "$as_dir" && as_dir=.
23051 for ac_exec_ext in '' $ac_executable_extensions; do
23052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23053 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23055 break 2
23057 done
23058 done
23059 IFS=$as_save_IFS
23062 esac
23064 PG_CONFIG=$ac_cv_path_PG_CONFIG
23065 if test -n "$PG_CONFIG"; then
23066 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23067 echo "${ECHO_T}$PG_CONFIG" >&6; }
23068 else
23069 { echo "$as_me:$LINENO: result: no" >&5
23070 echo "${ECHO_T}no" >&6; }
23075 if test -z "$ac_cv_path_PG_CONFIG"; then
23076 ac_pt_PG_CONFIG=$PG_CONFIG
23077 # Extract the first word of "pg_config", so it can be a program name with args.
23078 set dummy pg_config; ac_word=$2
23079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23081 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 else
23084 case $ac_pt_PG_CONFIG in
23085 [\\/]* | ?:[\\/]*)
23086 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23090 for as_dir in ${PGSQL_DIR}/bin
23092 IFS=$as_save_IFS
23093 test -z "$as_dir" && as_dir=.
23094 for ac_exec_ext in '' $ac_executable_extensions; do
23095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23096 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23098 break 2
23100 done
23101 done
23102 IFS=$as_save_IFS
23105 esac
23107 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23108 if test -n "$ac_pt_PG_CONFIG"; then
23109 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23110 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23111 else
23112 { echo "$as_me:$LINENO: result: no" >&5
23113 echo "${ECHO_T}no" >&6; }
23116 if test "x$ac_pt_PG_CONFIG" = x; then
23117 PG_CONFIG="No"
23118 else
23119 case $cross_compiling:$ac_tool_warned in
23120 yes:)
23121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23122 whose name does not start with the host triplet. If you think this
23123 configuration is useful to you, please write to autoconf@gnu.org." >&5
23124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23125 whose name does not start with the host triplet. If you think this
23126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23127 ac_tool_warned=yes ;;
23128 esac
23129 PG_CONFIG=$ac_pt_PG_CONFIG
23131 else
23132 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23135 if test x"${PG_CONFIG}" = xNo; then
23136 { echo "$as_me:$LINENO: ***" >&5
23137 echo "$as_me: ***" >&6;}
23138 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
23139 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
23140 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
23141 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
23142 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23143 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23144 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23145 echo "$as_me: *** including --without-postgres" >&6;}
23146 exit 1
23148 else
23149 if test -n "$ac_tool_prefix"; then
23150 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23151 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23154 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23155 echo $ECHO_N "(cached) $ECHO_C" >&6
23156 else
23157 case $PG_CONFIG in
23158 [\\/]* | ?:[\\/]*)
23159 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23163 for as_dir in $PATH
23165 IFS=$as_save_IFS
23166 test -z "$as_dir" && as_dir=.
23167 for ac_exec_ext in '' $ac_executable_extensions; do
23168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23169 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23171 break 2
23173 done
23174 done
23175 IFS=$as_save_IFS
23178 esac
23180 PG_CONFIG=$ac_cv_path_PG_CONFIG
23181 if test -n "$PG_CONFIG"; then
23182 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23183 echo "${ECHO_T}$PG_CONFIG" >&6; }
23184 else
23185 { echo "$as_me:$LINENO: result: no" >&5
23186 echo "${ECHO_T}no" >&6; }
23191 if test -z "$ac_cv_path_PG_CONFIG"; then
23192 ac_pt_PG_CONFIG=$PG_CONFIG
23193 # Extract the first word of "pg_config", so it can be a program name with args.
23194 set dummy pg_config; ac_word=$2
23195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23197 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23199 else
23200 case $ac_pt_PG_CONFIG in
23201 [\\/]* | ?:[\\/]*)
23202 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23206 for as_dir in $PATH
23208 IFS=$as_save_IFS
23209 test -z "$as_dir" && as_dir=.
23210 for ac_exec_ext in '' $ac_executable_extensions; do
23211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23212 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23214 break 2
23216 done
23217 done
23218 IFS=$as_save_IFS
23221 esac
23223 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23224 if test -n "$ac_pt_PG_CONFIG"; then
23225 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23226 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23227 else
23228 { echo "$as_me:$LINENO: result: no" >&5
23229 echo "${ECHO_T}no" >&6; }
23232 if test "x$ac_pt_PG_CONFIG" = x; then
23233 PG_CONFIG="No"
23234 else
23235 case $cross_compiling:$ac_tool_warned in
23236 yes:)
23237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23238 whose name does not start with the host triplet. If you think this
23239 configuration is useful to you, please write to autoconf@gnu.org." >&5
23240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23241 whose name does not start with the host triplet. If you think this
23242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23243 ac_tool_warned=yes ;;
23244 esac
23245 PG_CONFIG=$ac_pt_PG_CONFIG
23247 else
23248 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23253 if test "${PG_CONFIG}" != No; then
23254 PGSQL_libdir=`${PG_CONFIG} --libdir`
23255 PGSQL_includedir=`${PG_CONFIG} --includedir`
23257 if test "x$?" != "x0" ; then
23258 if test -n "${PGSQL_MANDATORY}" ; then
23259 { echo "$as_me:$LINENO: ***" >&5
23260 echo "$as_me: ***" >&6;}
23261 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23262 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23263 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23264 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23265 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23266 echo "$as_me: *** including --without-postgres" >&6;}
23267 exit 1
23269 else
23270 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
23271 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
23272 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
23273 echo $ECHO_N "(cached) $ECHO_C" >&6
23274 else
23275 ac_check_lib_save_LIBS=$LIBS
23276 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
23277 cat >conftest.$ac_ext <<_ACEOF
23278 /* confdefs.h. */
23279 _ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h. */
23284 /* Override any GCC internal prototype to avoid an error.
23285 Use char because int might match the return type of a GCC
23286 builtin and then its argument prototype would still apply. */
23287 #ifdef __cplusplus
23288 extern "C"
23289 #endif
23290 char PQescapeStringConn ();
23292 main ()
23294 return PQescapeStringConn ();
23296 return 0;
23298 _ACEOF
23299 rm -f conftest.$ac_objext conftest$ac_exeext
23300 if { (ac_try="$ac_link"
23301 case "(($ac_try" in
23302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23303 *) ac_try_echo=$ac_try;;
23304 esac
23305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23306 (eval "$ac_link") 2>conftest.er1
23307 ac_status=$?
23308 grep -v '^ *+' conftest.er1 >conftest.err
23309 rm -f conftest.er1
23310 cat conftest.err >&5
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); } && {
23313 test -z "$ac_c_werror_flag" ||
23314 test ! -s conftest.err
23315 } && test -s conftest$ac_exeext &&
23316 $as_test_x conftest$ac_exeext; then
23317 ac_cv_lib_pq_PQescapeStringConn=yes
23318 else
23319 echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23322 ac_cv_lib_pq_PQescapeStringConn=no
23325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23326 conftest$ac_exeext conftest.$ac_ext
23327 LIBS=$ac_check_lib_save_LIBS
23329 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
23330 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
23331 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
23333 cat >>confdefs.h <<_ACEOF
23334 #define HAVE_PGSQL 1
23335 _ACEOF
23340 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
23341 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
23342 PGSQL_INCLUDE="-I${PGSQL_includedir}"
23343 PBX_PGSQL=1
23344 elif test -n "${PGSQL_MANDATORY}";
23345 then
23346 { echo "$as_me:$LINENO: ***" >&5
23347 echo "$as_me: ***" >&6;}
23348 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23349 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23350 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23351 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23352 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23353 echo "$as_me: *** including --without-postgres" >&6;}
23354 exit 1
23357 elif test -n "${PGSQL_MANDATORY}";
23358 then
23359 { echo "$as_me:$LINENO: ***" >&5
23360 echo "$as_me: ***" >&6;}
23361 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23362 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23363 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23364 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23365 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23366 echo "$as_me: *** including --without-postgres" >&6;}
23367 exit 1
23371 if test "${USE_POPT}" != "no"; then
23372 pbxlibdir=""
23373 if test "x${POPT_DIR}" != "x"; then
23374 if test -d ${POPT_DIR}/lib; then
23375 pbxlibdir="-L${POPT_DIR}/lib"
23376 else
23377 pbxlibdir="-L${POPT_DIR}"
23380 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
23381 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
23382 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
23383 echo $ECHO_N "(cached) $ECHO_C" >&6
23384 else
23385 ac_check_lib_save_LIBS=$LIBS
23386 LIBS="-lpopt ${pbxlibdir} $LIBS"
23387 cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h. */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23394 /* Override any GCC internal prototype to avoid an error.
23395 Use char because int might match the return type of a GCC
23396 builtin and then its argument prototype would still apply. */
23397 #ifdef __cplusplus
23398 extern "C"
23399 #endif
23400 char poptStrerror ();
23402 main ()
23404 return poptStrerror ();
23406 return 0;
23408 _ACEOF
23409 rm -f conftest.$ac_objext conftest$ac_exeext
23410 if { (ac_try="$ac_link"
23411 case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23414 esac
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416 (eval "$ac_link") 2>conftest.er1
23417 ac_status=$?
23418 grep -v '^ *+' conftest.er1 >conftest.err
23419 rm -f conftest.er1
23420 cat conftest.err >&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); } && {
23423 test -z "$ac_c_werror_flag" ||
23424 test ! -s conftest.err
23425 } && test -s conftest$ac_exeext &&
23426 $as_test_x conftest$ac_exeext; then
23427 ac_cv_lib_popt_poptStrerror=yes
23428 else
23429 echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 ac_cv_lib_popt_poptStrerror=no
23435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23436 conftest$ac_exeext conftest.$ac_ext
23437 LIBS=$ac_check_lib_save_LIBS
23439 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
23440 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
23441 if test $ac_cv_lib_popt_poptStrerror = yes; then
23442 AST_POPT_FOUND=yes
23443 else
23444 AST_POPT_FOUND=no
23448 if test "${AST_POPT_FOUND}" = "yes"; then
23449 POPT_LIB="-lpopt "
23450 POPT_HEADER_FOUND="1"
23451 if test "x${POPT_DIR}" != "x"; then
23452 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
23453 POPT_INCLUDE="-I${POPT_DIR}/include"
23455 POPT_INCLUDE="${POPT_INCLUDE} "
23456 saved_cppflags="${CPPFLAGS}"
23457 CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
23458 if test "xpopt.h" != "x" ; then
23459 if test "${ac_cv_header_popt_h+set}" = set; then
23460 { echo "$as_me:$LINENO: checking for popt.h" >&5
23461 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23462 if test "${ac_cv_header_popt_h+set}" = set; then
23463 echo $ECHO_N "(cached) $ECHO_C" >&6
23465 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23466 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23467 else
23468 # Is the header compilable?
23469 { echo "$as_me:$LINENO: checking popt.h usability" >&5
23470 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
23471 cat >conftest.$ac_ext <<_ACEOF
23472 /* confdefs.h. */
23473 _ACEOF
23474 cat confdefs.h >>conftest.$ac_ext
23475 cat >>conftest.$ac_ext <<_ACEOF
23476 /* end confdefs.h. */
23477 $ac_includes_default
23478 #include <popt.h>
23479 _ACEOF
23480 rm -f conftest.$ac_objext
23481 if { (ac_try="$ac_compile"
23482 case "(($ac_try" in
23483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23484 *) ac_try_echo=$ac_try;;
23485 esac
23486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23487 (eval "$ac_compile") 2>conftest.er1
23488 ac_status=$?
23489 grep -v '^ *+' conftest.er1 >conftest.err
23490 rm -f conftest.er1
23491 cat conftest.err >&5
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); } && {
23494 test -z "$ac_c_werror_flag" ||
23495 test ! -s conftest.err
23496 } && test -s conftest.$ac_objext; then
23497 ac_header_compiler=yes
23498 else
23499 echo "$as_me: failed program was:" >&5
23500 sed 's/^/| /' conftest.$ac_ext >&5
23502 ac_header_compiler=no
23505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23507 echo "${ECHO_T}$ac_header_compiler" >&6; }
23509 # Is the header present?
23510 { echo "$as_me:$LINENO: checking popt.h presence" >&5
23511 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
23512 cat >conftest.$ac_ext <<_ACEOF
23513 /* confdefs.h. */
23514 _ACEOF
23515 cat confdefs.h >>conftest.$ac_ext
23516 cat >>conftest.$ac_ext <<_ACEOF
23517 /* end confdefs.h. */
23518 #include <popt.h>
23519 _ACEOF
23520 if { (ac_try="$ac_cpp conftest.$ac_ext"
23521 case "(($ac_try" in
23522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523 *) ac_try_echo=$ac_try;;
23524 esac
23525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23527 ac_status=$?
23528 grep -v '^ *+' conftest.er1 >conftest.err
23529 rm -f conftest.er1
23530 cat conftest.err >&5
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); } >/dev/null && {
23533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23534 test ! -s conftest.err
23535 }; then
23536 ac_header_preproc=yes
23537 else
23538 echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23541 ac_header_preproc=no
23544 rm -f conftest.err conftest.$ac_ext
23545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23546 echo "${ECHO_T}$ac_header_preproc" >&6; }
23548 # So? What about this header?
23549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23550 yes:no: )
23551 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23552 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23553 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
23554 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
23555 ac_header_preproc=yes
23557 no:yes:* )
23558 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
23559 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
23560 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
23561 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
23562 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
23563 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
23564 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
23565 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23566 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
23567 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
23568 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
23569 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
23570 ( cat <<\_ASBOX
23571 ## ------------------------------- ##
23572 ## Report this to www.asterisk.org ##
23573 ## ------------------------------- ##
23574 _ASBOX
23575 ) | sed "s/^/$as_me: WARNING: /" >&2
23577 esac
23578 { echo "$as_me:$LINENO: checking for popt.h" >&5
23579 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23580 if test "${ac_cv_header_popt_h+set}" = set; then
23581 echo $ECHO_N "(cached) $ECHO_C" >&6
23582 else
23583 ac_cv_header_popt_h=$ac_header_preproc
23585 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23586 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23589 if test $ac_cv_header_popt_h = yes; then
23590 POPT_HEADER_FOUND=1
23591 else
23592 POPT_HEADER_FOUND=0
23597 CPPFLAGS="${saved_cppflags}"
23598 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
23599 if test -n "${POPT_MANDATORY}" ;
23600 then
23601 { echo "$as_me:$LINENO: ***" >&5
23602 echo "$as_me: ***" >&6;}
23603 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
23604 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
23605 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
23606 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
23607 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23608 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23609 exit 1
23611 POPT_LIB=""
23612 POPT_INCLUDE=""
23613 PBX_POPT=0
23614 else
23615 PBX_POPT=1
23617 cat >>confdefs.h <<_ACEOF
23618 #define HAVE_POPT 1
23619 _ACEOF
23622 elif test -n "${POPT_MANDATORY}";
23623 then
23624 { echo "$as_me:$LINENO: ***" >&5
23625 echo "$as_me: ***" >&6;}
23626 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
23627 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
23628 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23629 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23630 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23631 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23632 exit 1
23638 if test "${USE_PRI}" != "no"; then
23639 pbxlibdir=""
23640 if test "x${PRI_DIR}" != "x"; then
23641 if test -d ${PRI_DIR}/lib; then
23642 pbxlibdir="-L${PRI_DIR}/lib"
23643 else
23644 pbxlibdir="-L${PRI_DIR}"
23647 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
23648 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
23649 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23651 else
23652 ac_check_lib_save_LIBS=$LIBS
23653 LIBS="-lpri ${pbxlibdir} $LIBS"
23654 cat >conftest.$ac_ext <<_ACEOF
23655 /* confdefs.h. */
23656 _ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h. */
23661 /* Override any GCC internal prototype to avoid an error.
23662 Use char because int might match the return type of a GCC
23663 builtin and then its argument prototype would still apply. */
23664 #ifdef __cplusplus
23665 extern "C"
23666 #endif
23667 char pri_keypad_facility ();
23669 main ()
23671 return pri_keypad_facility ();
23673 return 0;
23675 _ACEOF
23676 rm -f conftest.$ac_objext conftest$ac_exeext
23677 if { (ac_try="$ac_link"
23678 case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23681 esac
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_link") 2>conftest.er1
23684 ac_status=$?
23685 grep -v '^ *+' conftest.er1 >conftest.err
23686 rm -f conftest.er1
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); } && {
23690 test -z "$ac_c_werror_flag" ||
23691 test ! -s conftest.err
23692 } && test -s conftest$ac_exeext &&
23693 $as_test_x conftest$ac_exeext; then
23694 ac_cv_lib_pri_pri_keypad_facility=yes
23695 else
23696 echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23699 ac_cv_lib_pri_pri_keypad_facility=no
23702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23703 conftest$ac_exeext conftest.$ac_ext
23704 LIBS=$ac_check_lib_save_LIBS
23706 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
23707 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
23708 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
23709 AST_PRI_FOUND=yes
23710 else
23711 AST_PRI_FOUND=no
23715 if test "${AST_PRI_FOUND}" = "yes"; then
23716 PRI_LIB="-lpri "
23717 PRI_HEADER_FOUND="1"
23718 if test "x${PRI_DIR}" != "x"; then
23719 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
23720 PRI_INCLUDE="-I${PRI_DIR}/include"
23722 PRI_INCLUDE="${PRI_INCLUDE} "
23723 saved_cppflags="${CPPFLAGS}"
23724 CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
23725 if test "xlibpri.h" != "x" ; then
23726 if test "${ac_cv_header_libpri_h+set}" = set; then
23727 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23728 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23729 if test "${ac_cv_header_libpri_h+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23732 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23733 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23734 else
23735 # Is the header compilable?
23736 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
23737 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
23738 cat >conftest.$ac_ext <<_ACEOF
23739 /* confdefs.h. */
23740 _ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h. */
23744 $ac_includes_default
23745 #include <libpri.h>
23746 _ACEOF
23747 rm -f conftest.$ac_objext
23748 if { (ac_try="$ac_compile"
23749 case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23752 esac
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754 (eval "$ac_compile") 2>conftest.er1
23755 ac_status=$?
23756 grep -v '^ *+' conftest.er1 >conftest.err
23757 rm -f conftest.er1
23758 cat conftest.err >&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); } && {
23761 test -z "$ac_c_werror_flag" ||
23762 test ! -s conftest.err
23763 } && test -s conftest.$ac_objext; then
23764 ac_header_compiler=yes
23765 else
23766 echo "$as_me: failed program was:" >&5
23767 sed 's/^/| /' conftest.$ac_ext >&5
23769 ac_header_compiler=no
23772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23774 echo "${ECHO_T}$ac_header_compiler" >&6; }
23776 # Is the header present?
23777 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
23778 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
23779 cat >conftest.$ac_ext <<_ACEOF
23780 /* confdefs.h. */
23781 _ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h. */
23785 #include <libpri.h>
23786 _ACEOF
23787 if { (ac_try="$ac_cpp conftest.$ac_ext"
23788 case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23791 esac
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23794 ac_status=$?
23795 grep -v '^ *+' conftest.er1 >conftest.err
23796 rm -f conftest.er1
23797 cat conftest.err >&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } >/dev/null && {
23800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23801 test ! -s conftest.err
23802 }; then
23803 ac_header_preproc=yes
23804 else
23805 echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23808 ac_header_preproc=no
23811 rm -f conftest.err conftest.$ac_ext
23812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23813 echo "${ECHO_T}$ac_header_preproc" >&6; }
23815 # So? What about this header?
23816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23817 yes:no: )
23818 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23819 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23820 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
23821 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
23822 ac_header_preproc=yes
23824 no:yes:* )
23825 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
23826 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
23827 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
23828 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
23829 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
23830 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
23831 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23832 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23833 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
23834 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
23835 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
23836 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
23837 ( cat <<\_ASBOX
23838 ## ------------------------------- ##
23839 ## Report this to www.asterisk.org ##
23840 ## ------------------------------- ##
23841 _ASBOX
23842 ) | sed "s/^/$as_me: WARNING: /" >&2
23844 esac
23845 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23846 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23847 if test "${ac_cv_header_libpri_h+set}" = set; then
23848 echo $ECHO_N "(cached) $ECHO_C" >&6
23849 else
23850 ac_cv_header_libpri_h=$ac_header_preproc
23852 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23853 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23856 if test $ac_cv_header_libpri_h = yes; then
23857 PRI_HEADER_FOUND=1
23858 else
23859 PRI_HEADER_FOUND=0
23864 CPPFLAGS="${saved_cppflags}"
23865 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
23866 if test -n "${PRI_MANDATORY}" ;
23867 then
23868 { echo "$as_me:$LINENO: ***" >&5
23869 echo "$as_me: ***" >&6;}
23870 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
23871 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
23872 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
23873 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
23874 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23875 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23876 exit 1
23878 PRI_LIB=""
23879 PRI_INCLUDE=""
23880 PBX_PRI=0
23881 else
23882 PBX_PRI=1
23884 cat >>confdefs.h <<_ACEOF
23885 #define HAVE_PRI 1
23886 _ACEOF
23889 elif test -n "${PRI_MANDATORY}";
23890 then
23891 { echo "$as_me:$LINENO: ***" >&5
23892 echo "$as_me: ***" >&6;}
23893 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
23894 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
23895 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23896 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23897 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23898 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23899 exit 1
23905 if test "${USE_PRI_VERSION}" != "no"; then
23906 pbxlibdir=""
23907 if test "x${PRI_VERSION_DIR}" != "x"; then
23908 if test -d ${PRI_VERSION_DIR}/lib; then
23909 pbxlibdir="-L${PRI_VERSION_DIR}/lib"
23910 else
23911 pbxlibdir="-L${PRI_VERSION_DIR}"
23914 { echo "$as_me:$LINENO: checking for pri_get_version in -lpri" >&5
23915 echo $ECHO_N "checking for pri_get_version in -lpri... $ECHO_C" >&6; }
23916 if test "${ac_cv_lib_pri_pri_get_version+set}" = set; then
23917 echo $ECHO_N "(cached) $ECHO_C" >&6
23918 else
23919 ac_check_lib_save_LIBS=$LIBS
23920 LIBS="-lpri ${pbxlibdir} $LIBS"
23921 cat >conftest.$ac_ext <<_ACEOF
23922 /* confdefs.h. */
23923 _ACEOF
23924 cat confdefs.h >>conftest.$ac_ext
23925 cat >>conftest.$ac_ext <<_ACEOF
23926 /* end confdefs.h. */
23928 /* Override any GCC internal prototype to avoid an error.
23929 Use char because int might match the return type of a GCC
23930 builtin and then its argument prototype would still apply. */
23931 #ifdef __cplusplus
23932 extern "C"
23933 #endif
23934 char pri_get_version ();
23936 main ()
23938 return pri_get_version ();
23940 return 0;
23942 _ACEOF
23943 rm -f conftest.$ac_objext conftest$ac_exeext
23944 if { (ac_try="$ac_link"
23945 case "(($ac_try" in
23946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23947 *) ac_try_echo=$ac_try;;
23948 esac
23949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23950 (eval "$ac_link") 2>conftest.er1
23951 ac_status=$?
23952 grep -v '^ *+' conftest.er1 >conftest.err
23953 rm -f conftest.er1
23954 cat conftest.err >&5
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); } && {
23957 test -z "$ac_c_werror_flag" ||
23958 test ! -s conftest.err
23959 } && test -s conftest$ac_exeext &&
23960 $as_test_x conftest$ac_exeext; then
23961 ac_cv_lib_pri_pri_get_version=yes
23962 else
23963 echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.$ac_ext >&5
23966 ac_cv_lib_pri_pri_get_version=no
23969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23970 conftest$ac_exeext conftest.$ac_ext
23971 LIBS=$ac_check_lib_save_LIBS
23973 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_get_version" >&5
23974 echo "${ECHO_T}$ac_cv_lib_pri_pri_get_version" >&6; }
23975 if test $ac_cv_lib_pri_pri_get_version = yes; then
23976 AST_PRI_VERSION_FOUND=yes
23977 else
23978 AST_PRI_VERSION_FOUND=no
23982 if test "${AST_PRI_VERSION_FOUND}" = "yes"; then
23983 PRI_VERSION_LIB="-lpri "
23984 PRI_VERSION_HEADER_FOUND="1"
23985 if test "x${PRI_VERSION_DIR}" != "x"; then
23986 PRI_VERSION_LIB="${pbxlibdir} ${PRI_VERSION_LIB}"
23987 PRI_VERSION_INCLUDE="-I${PRI_VERSION_DIR}/include"
23989 PRI_VERSION_INCLUDE="${PRI_VERSION_INCLUDE} "
23990 saved_cppflags="${CPPFLAGS}"
23991 CPPFLAGS="${CPPFLAGS} ${PRI_VERSION_INCLUDE}"
23992 if test "xlibpri.h" != "x" ; then
23993 if test "${ac_cv_header_libpri_h+set}" = set; then
23994 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23995 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23996 if test "${ac_cv_header_libpri_h+set}" = set; then
23997 echo $ECHO_N "(cached) $ECHO_C" >&6
23999 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24000 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24001 else
24002 # Is the header compilable?
24003 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
24004 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
24005 cat >conftest.$ac_ext <<_ACEOF
24006 /* confdefs.h. */
24007 _ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h. */
24011 $ac_includes_default
24012 #include <libpri.h>
24013 _ACEOF
24014 rm -f conftest.$ac_objext
24015 if { (ac_try="$ac_compile"
24016 case "(($ac_try" in
24017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018 *) ac_try_echo=$ac_try;;
24019 esac
24020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021 (eval "$ac_compile") 2>conftest.er1
24022 ac_status=$?
24023 grep -v '^ *+' conftest.er1 >conftest.err
24024 rm -f conftest.er1
24025 cat conftest.err >&5
24026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027 (exit $ac_status); } && {
24028 test -z "$ac_c_werror_flag" ||
24029 test ! -s conftest.err
24030 } && test -s conftest.$ac_objext; then
24031 ac_header_compiler=yes
24032 else
24033 echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24036 ac_header_compiler=no
24039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24041 echo "${ECHO_T}$ac_header_compiler" >&6; }
24043 # Is the header present?
24044 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
24045 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
24046 cat >conftest.$ac_ext <<_ACEOF
24047 /* confdefs.h. */
24048 _ACEOF
24049 cat confdefs.h >>conftest.$ac_ext
24050 cat >>conftest.$ac_ext <<_ACEOF
24051 /* end confdefs.h. */
24052 #include <libpri.h>
24053 _ACEOF
24054 if { (ac_try="$ac_cpp conftest.$ac_ext"
24055 case "(($ac_try" in
24056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057 *) ac_try_echo=$ac_try;;
24058 esac
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24061 ac_status=$?
24062 grep -v '^ *+' conftest.er1 >conftest.err
24063 rm -f conftest.er1
24064 cat conftest.err >&5
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); } >/dev/null && {
24067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 }; then
24070 ac_header_preproc=yes
24071 else
24072 echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24075 ac_header_preproc=no
24078 rm -f conftest.err conftest.$ac_ext
24079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24080 echo "${ECHO_T}$ac_header_preproc" >&6; }
24082 # So? What about this header?
24083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24084 yes:no: )
24085 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24086 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24087 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
24088 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
24089 ac_header_preproc=yes
24091 no:yes:* )
24092 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
24093 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
24094 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
24095 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
24096 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
24097 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
24098 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24099 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24100 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
24101 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
24102 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
24103 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
24104 ( cat <<\_ASBOX
24105 ## ------------------------------- ##
24106 ## Report this to www.asterisk.org ##
24107 ## ------------------------------- ##
24108 _ASBOX
24109 ) | sed "s/^/$as_me: WARNING: /" >&2
24111 esac
24112 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24113 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24114 if test "${ac_cv_header_libpri_h+set}" = set; then
24115 echo $ECHO_N "(cached) $ECHO_C" >&6
24116 else
24117 ac_cv_header_libpri_h=$ac_header_preproc
24119 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24120 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24123 if test $ac_cv_header_libpri_h = yes; then
24124 PRI_VERSION_HEADER_FOUND=1
24125 else
24126 PRI_VERSION_HEADER_FOUND=0
24131 CPPFLAGS="${saved_cppflags}"
24132 if test "x${PRI_VERSION_HEADER_FOUND}" = "x0" ; then
24133 if test -n "${PRI_VERSION_MANDATORY}" ;
24134 then
24135 { echo "$as_me:$LINENO: ***" >&5
24136 echo "$as_me: ***" >&6;}
24137 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
24138 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
24139 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&5
24140 echo "$as_me: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&6;}
24141 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
24142 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
24143 exit 1
24145 PRI_VERSION_LIB=""
24146 PRI_VERSION_INCLUDE=""
24147 PBX_PRI_VERSION=0
24148 else
24149 PBX_PRI_VERSION=1
24151 cat >>confdefs.h <<_ACEOF
24152 #define HAVE_PRI_VERSION 1
24153 _ACEOF
24156 elif test -n "${PRI_VERSION_MANDATORY}";
24157 then
24158 { echo "$as_me:$LINENO: ***" >&5
24159 echo "$as_me: ***" >&6;}
24160 { echo "$as_me:$LINENO: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&5
24161 echo "$as_me: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&6;}
24162 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24163 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24164 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
24165 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
24166 exit 1
24172 if test "${USE_PRI_INBANDDISCONNECT}" != "no"; then
24173 pbxlibdir=""
24174 if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
24175 if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
24176 pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
24177 else
24178 pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
24181 { echo "$as_me:$LINENO: checking for pri_set_inbanddisconnect in -lpri" >&5
24182 echo $ECHO_N "checking for pri_set_inbanddisconnect in -lpri... $ECHO_C" >&6; }
24183 if test "${ac_cv_lib_pri_pri_set_inbanddisconnect+set}" = set; then
24184 echo $ECHO_N "(cached) $ECHO_C" >&6
24185 else
24186 ac_check_lib_save_LIBS=$LIBS
24187 LIBS="-lpri ${pbxlibdir} $LIBS"
24188 cat >conftest.$ac_ext <<_ACEOF
24189 /* confdefs.h. */
24190 _ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h. */
24195 /* Override any GCC internal prototype to avoid an error.
24196 Use char because int might match the return type of a GCC
24197 builtin and then its argument prototype would still apply. */
24198 #ifdef __cplusplus
24199 extern "C"
24200 #endif
24201 char pri_set_inbanddisconnect ();
24203 main ()
24205 return pri_set_inbanddisconnect ();
24207 return 0;
24209 _ACEOF
24210 rm -f conftest.$ac_objext conftest$ac_exeext
24211 if { (ac_try="$ac_link"
24212 case "(($ac_try" in
24213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24214 *) ac_try_echo=$ac_try;;
24215 esac
24216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24217 (eval "$ac_link") 2>conftest.er1
24218 ac_status=$?
24219 grep -v '^ *+' conftest.er1 >conftest.err
24220 rm -f conftest.er1
24221 cat conftest.err >&5
24222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223 (exit $ac_status); } && {
24224 test -z "$ac_c_werror_flag" ||
24225 test ! -s conftest.err
24226 } && test -s conftest$ac_exeext &&
24227 $as_test_x conftest$ac_exeext; then
24228 ac_cv_lib_pri_pri_set_inbanddisconnect=yes
24229 else
24230 echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24233 ac_cv_lib_pri_pri_set_inbanddisconnect=no
24236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24237 conftest$ac_exeext conftest.$ac_ext
24238 LIBS=$ac_check_lib_save_LIBS
24240 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_set_inbanddisconnect" >&5
24241 echo "${ECHO_T}$ac_cv_lib_pri_pri_set_inbanddisconnect" >&6; }
24242 if test $ac_cv_lib_pri_pri_set_inbanddisconnect = yes; then
24243 AST_PRI_INBANDDISCONNECT_FOUND=yes
24244 else
24245 AST_PRI_INBANDDISCONNECT_FOUND=no
24249 if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
24250 PRI_INBANDDISCONNECT_LIB="-lpri "
24251 PRI_INBANDDISCONNECT_HEADER_FOUND="1"
24252 if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
24253 PRI_INBANDDISCONNECT_LIB="${pbxlibdir} ${PRI_INBANDDISCONNECT_LIB}"
24254 PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
24256 PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
24257 saved_cppflags="${CPPFLAGS}"
24258 CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
24259 if test "xlibpri.h" != "x" ; then
24260 if test "${ac_cv_header_libpri_h+set}" = set; then
24261 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24262 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24263 if test "${ac_cv_header_libpri_h+set}" = set; then
24264 echo $ECHO_N "(cached) $ECHO_C" >&6
24266 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24267 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24268 else
24269 # Is the header compilable?
24270 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
24271 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
24272 cat >conftest.$ac_ext <<_ACEOF
24273 /* confdefs.h. */
24274 _ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h. */
24278 $ac_includes_default
24279 #include <libpri.h>
24280 _ACEOF
24281 rm -f conftest.$ac_objext
24282 if { (ac_try="$ac_compile"
24283 case "(($ac_try" in
24284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24285 *) ac_try_echo=$ac_try;;
24286 esac
24287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24288 (eval "$ac_compile") 2>conftest.er1
24289 ac_status=$?
24290 grep -v '^ *+' conftest.er1 >conftest.err
24291 rm -f conftest.er1
24292 cat conftest.err >&5
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } && {
24295 test -z "$ac_c_werror_flag" ||
24296 test ! -s conftest.err
24297 } && test -s conftest.$ac_objext; then
24298 ac_header_compiler=yes
24299 else
24300 echo "$as_me: failed program was:" >&5
24301 sed 's/^/| /' conftest.$ac_ext >&5
24303 ac_header_compiler=no
24306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24308 echo "${ECHO_T}$ac_header_compiler" >&6; }
24310 # Is the header present?
24311 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
24312 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
24313 cat >conftest.$ac_ext <<_ACEOF
24314 /* confdefs.h. */
24315 _ACEOF
24316 cat confdefs.h >>conftest.$ac_ext
24317 cat >>conftest.$ac_ext <<_ACEOF
24318 /* end confdefs.h. */
24319 #include <libpri.h>
24320 _ACEOF
24321 if { (ac_try="$ac_cpp conftest.$ac_ext"
24322 case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24328 ac_status=$?
24329 grep -v '^ *+' conftest.er1 >conftest.err
24330 rm -f conftest.er1
24331 cat conftest.err >&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); } >/dev/null && {
24334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24335 test ! -s conftest.err
24336 }; then
24337 ac_header_preproc=yes
24338 else
24339 echo "$as_me: failed program was:" >&5
24340 sed 's/^/| /' conftest.$ac_ext >&5
24342 ac_header_preproc=no
24345 rm -f conftest.err conftest.$ac_ext
24346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24347 echo "${ECHO_T}$ac_header_preproc" >&6; }
24349 # So? What about this header?
24350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24351 yes:no: )
24352 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24353 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24354 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
24355 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
24356 ac_header_preproc=yes
24358 no:yes:* )
24359 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
24360 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
24361 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
24362 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
24363 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
24364 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
24365 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24366 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24367 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
24368 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
24369 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
24370 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
24371 ( cat <<\_ASBOX
24372 ## ------------------------------- ##
24373 ## Report this to www.asterisk.org ##
24374 ## ------------------------------- ##
24375 _ASBOX
24376 ) | sed "s/^/$as_me: WARNING: /" >&2
24378 esac
24379 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24380 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24381 if test "${ac_cv_header_libpri_h+set}" = set; then
24382 echo $ECHO_N "(cached) $ECHO_C" >&6
24383 else
24384 ac_cv_header_libpri_h=$ac_header_preproc
24386 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24387 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24390 if test $ac_cv_header_libpri_h = yes; then
24391 PRI_INBANDDISCONNECT_HEADER_FOUND=1
24392 else
24393 PRI_INBANDDISCONNECT_HEADER_FOUND=0
24398 CPPFLAGS="${saved_cppflags}"
24399 if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
24400 if test -n "${PRI_INBANDDISCONNECT_MANDATORY}" ;
24401 then
24402 { echo "$as_me:$LINENO: ***" >&5
24403 echo "$as_me: ***" >&6;}
24404 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
24405 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
24406 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_INBANDDISCONNECT_DESCRIP} support, or re-run configure" >&5
24407 echo "$as_me: *** Please install it to include ${PRI_INBANDDISCONNECT_DESCRIP} support, or re-run configure" >&6;}
24408 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&5
24409 echo "$as_me: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&6;}
24410 exit 1
24412 PRI_INBANDDISCONNECT_LIB=""
24413 PRI_INBANDDISCONNECT_INCLUDE=""
24414 PBX_PRI_INBANDDISCONNECT=0
24415 else
24416 PBX_PRI_INBANDDISCONNECT=1
24418 cat >>confdefs.h <<_ACEOF
24419 #define HAVE_PRI_INBANDDISCONNECT 1
24420 _ACEOF
24423 elif test -n "${PRI_INBANDDISCONNECT_MANDATORY}";
24424 then
24425 { echo "$as_me:$LINENO: ***" >&5
24426 echo "$as_me: ***" >&6;}
24427 { echo "$as_me:$LINENO: *** The ${PRI_INBANDDISCONNECT_DESCRIP} installation on this system appears to be broken." >&5
24428 echo "$as_me: *** The ${PRI_INBANDDISCONNECT_DESCRIP} installation on this system appears to be broken." >&6;}
24429 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24430 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24431 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&5
24432 echo "$as_me: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&6;}
24433 exit 1
24438 if test "${USE_PWLIB}" != "no"; then
24439 if test -n "${PWLIB_DIR}"; then
24440 PWLIBDIR="${PWLIB_DIR}"
24444 PWLIB_INCDIR=
24445 PWLIB_LIBDIR=
24446 ac_ext=cpp
24447 ac_cpp='$CXXCPP $CPPFLAGS'
24448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24452 if test "${PWLIBDIR:-unset}" != "unset" ; then
24453 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
24454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24455 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24456 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24458 echo $ECHO_N "(cached) $ECHO_C" >&6
24460 ac_res=`eval echo '${'$as_ac_Header'}'`
24461 { echo "$as_me:$LINENO: result: $ac_res" >&5
24462 echo "${ECHO_T}$ac_res" >&6; }
24463 else
24464 # Is the header compilable?
24465 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
24466 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
24467 cat >conftest.$ac_ext <<_ACEOF
24468 /* confdefs.h. */
24469 _ACEOF
24470 cat confdefs.h >>conftest.$ac_ext
24471 cat >>conftest.$ac_ext <<_ACEOF
24472 /* end confdefs.h. */
24473 $ac_includes_default
24474 #include <${PWLIBDIR}/version.h>
24475 _ACEOF
24476 rm -f conftest.$ac_objext
24477 if { (ac_try="$ac_compile"
24478 case "(($ac_try" in
24479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480 *) ac_try_echo=$ac_try;;
24481 esac
24482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483 (eval "$ac_compile") 2>conftest.er1
24484 ac_status=$?
24485 grep -v '^ *+' conftest.er1 >conftest.err
24486 rm -f conftest.er1
24487 cat conftest.err >&5
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); } && {
24490 test -z "$ac_cxx_werror_flag" ||
24491 test ! -s conftest.err
24492 } && test -s conftest.$ac_objext; then
24493 ac_header_compiler=yes
24494 else
24495 echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24498 ac_header_compiler=no
24501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24503 echo "${ECHO_T}$ac_header_compiler" >&6; }
24505 # Is the header present?
24506 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
24507 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
24508 cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h. */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h. */
24514 #include <${PWLIBDIR}/version.h>
24515 _ACEOF
24516 if { (ac_try="$ac_cpp conftest.$ac_ext"
24517 case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24520 esac
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24523 ac_status=$?
24524 grep -v '^ *+' conftest.er1 >conftest.err
24525 rm -f conftest.er1
24526 cat conftest.err >&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } >/dev/null && {
24529 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24530 test ! -s conftest.err
24531 }; then
24532 ac_header_preproc=yes
24533 else
24534 echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24537 ac_header_preproc=no
24540 rm -f conftest.err conftest.$ac_ext
24541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24542 echo "${ECHO_T}$ac_header_preproc" >&6; }
24544 # So? What about this header?
24545 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24546 yes:no: )
24547 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
24548 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24549 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
24550 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
24551 ac_header_preproc=yes
24553 no:yes:* )
24554 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
24555 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
24556 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
24557 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
24558 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
24559 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
24560 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
24561 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
24562 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
24563 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
24564 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
24565 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
24566 ( cat <<\_ASBOX
24567 ## ------------------------------- ##
24568 ## Report this to www.asterisk.org ##
24569 ## ------------------------------- ##
24570 _ASBOX
24571 ) | sed "s/^/$as_me: WARNING: /" >&2
24573 esac
24574 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24575 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24577 echo $ECHO_N "(cached) $ECHO_C" >&6
24578 else
24579 eval "$as_ac_Header=\$ac_header_preproc"
24581 ac_res=`eval echo '${'$as_ac_Header'}'`
24582 { echo "$as_me:$LINENO: result: $ac_res" >&5
24583 echo "${ECHO_T}$ac_res" >&6; }
24586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24587 HAS_PWLIB=1
24592 if test "${HAS_PWLIB:-unset}" = "unset" ; then
24593 if test "${OPENH323DIR:-unset}" != "unset"; then
24594 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
24595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24596 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24597 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24599 echo $ECHO_N "(cached) $ECHO_C" >&6
24601 ac_res=`eval echo '${'$as_ac_Header'}'`
24602 { echo "$as_me:$LINENO: result: $ac_res" >&5
24603 echo "${ECHO_T}$ac_res" >&6; }
24604 else
24605 # Is the header compilable?
24606 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
24607 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
24608 cat >conftest.$ac_ext <<_ACEOF
24609 /* confdefs.h. */
24610 _ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h. */
24614 $ac_includes_default
24615 #include <${OPENH323DIR}/../pwlib/version.h>
24616 _ACEOF
24617 rm -f conftest.$ac_objext
24618 if { (ac_try="$ac_compile"
24619 case "(($ac_try" in
24620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24621 *) ac_try_echo=$ac_try;;
24622 esac
24623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24624 (eval "$ac_compile") 2>conftest.er1
24625 ac_status=$?
24626 grep -v '^ *+' conftest.er1 >conftest.err
24627 rm -f conftest.er1
24628 cat conftest.err >&5
24629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); } && {
24631 test -z "$ac_cxx_werror_flag" ||
24632 test ! -s conftest.err
24633 } && test -s conftest.$ac_objext; then
24634 ac_header_compiler=yes
24635 else
24636 echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24639 ac_header_compiler=no
24642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24644 echo "${ECHO_T}$ac_header_compiler" >&6; }
24646 # Is the header present?
24647 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
24648 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
24649 cat >conftest.$ac_ext <<_ACEOF
24650 /* confdefs.h. */
24651 _ACEOF
24652 cat confdefs.h >>conftest.$ac_ext
24653 cat >>conftest.$ac_ext <<_ACEOF
24654 /* end confdefs.h. */
24655 #include <${OPENH323DIR}/../pwlib/version.h>
24656 _ACEOF
24657 if { (ac_try="$ac_cpp conftest.$ac_ext"
24658 case "(($ac_try" in
24659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24660 *) ac_try_echo=$ac_try;;
24661 esac
24662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24664 ac_status=$?
24665 grep -v '^ *+' conftest.er1 >conftest.err
24666 rm -f conftest.er1
24667 cat conftest.err >&5
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); } >/dev/null && {
24670 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24671 test ! -s conftest.err
24672 }; then
24673 ac_header_preproc=yes
24674 else
24675 echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24678 ac_header_preproc=no
24681 rm -f conftest.err conftest.$ac_ext
24682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24683 echo "${ECHO_T}$ac_header_preproc" >&6; }
24685 # So? What about this header?
24686 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24687 yes:no: )
24688 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
24689 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24690 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
24691 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
24692 ac_header_preproc=yes
24694 no:yes:* )
24695 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
24696 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
24697 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
24698 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
24699 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
24700 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
24701 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
24702 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
24703 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
24704 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
24705 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
24706 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
24707 ( cat <<\_ASBOX
24708 ## ------------------------------- ##
24709 ## Report this to www.asterisk.org ##
24710 ## ------------------------------- ##
24711 _ASBOX
24712 ) | sed "s/^/$as_me: WARNING: /" >&2
24714 esac
24715 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24716 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24718 echo $ECHO_N "(cached) $ECHO_C" >&6
24719 else
24720 eval "$as_ac_Header=\$ac_header_preproc"
24722 ac_res=`eval echo '${'$as_ac_Header'}'`
24723 { echo "$as_me:$LINENO: result: $ac_res" >&5
24724 echo "${ECHO_T}$ac_res" >&6; }
24727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24728 HAS_PWLIB=1
24733 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24734 PWLIBDIR="${OPENH323DIR}/../pwlib"
24735 else
24736 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
24737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24738 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
24739 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
24740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24741 echo $ECHO_N "(cached) $ECHO_C" >&6
24743 ac_res=`eval echo '${'$as_ac_Header'}'`
24744 { echo "$as_me:$LINENO: result: $ac_res" >&5
24745 echo "${ECHO_T}$ac_res" >&6; }
24746 else
24747 # Is the header compilable?
24748 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
24749 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
24750 cat >conftest.$ac_ext <<_ACEOF
24751 /* confdefs.h. */
24752 _ACEOF
24753 cat confdefs.h >>conftest.$ac_ext
24754 cat >>conftest.$ac_ext <<_ACEOF
24755 /* end confdefs.h. */
24756 $ac_includes_default
24757 #include <${HOME}/pwlib/include/ptlib.h>
24758 _ACEOF
24759 rm -f conftest.$ac_objext
24760 if { (ac_try="$ac_compile"
24761 case "(($ac_try" in
24762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24763 *) ac_try_echo=$ac_try;;
24764 esac
24765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24766 (eval "$ac_compile") 2>conftest.er1
24767 ac_status=$?
24768 grep -v '^ *+' conftest.er1 >conftest.err
24769 rm -f conftest.er1
24770 cat conftest.err >&5
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); } && {
24773 test -z "$ac_cxx_werror_flag" ||
24774 test ! -s conftest.err
24775 } && test -s conftest.$ac_objext; then
24776 ac_header_compiler=yes
24777 else
24778 echo "$as_me: failed program was:" >&5
24779 sed 's/^/| /' conftest.$ac_ext >&5
24781 ac_header_compiler=no
24784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24786 echo "${ECHO_T}$ac_header_compiler" >&6; }
24788 # Is the header present?
24789 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
24790 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
24791 cat >conftest.$ac_ext <<_ACEOF
24792 /* confdefs.h. */
24793 _ACEOF
24794 cat confdefs.h >>conftest.$ac_ext
24795 cat >>conftest.$ac_ext <<_ACEOF
24796 /* end confdefs.h. */
24797 #include <${HOME}/pwlib/include/ptlib.h>
24798 _ACEOF
24799 if { (ac_try="$ac_cpp conftest.$ac_ext"
24800 case "(($ac_try" in
24801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24802 *) ac_try_echo=$ac_try;;
24803 esac
24804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24806 ac_status=$?
24807 grep -v '^ *+' conftest.er1 >conftest.err
24808 rm -f conftest.er1
24809 cat conftest.err >&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } >/dev/null && {
24812 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24813 test ! -s conftest.err
24814 }; then
24815 ac_header_preproc=yes
24816 else
24817 echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24820 ac_header_preproc=no
24823 rm -f conftest.err conftest.$ac_ext
24824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24825 echo "${ECHO_T}$ac_header_preproc" >&6; }
24827 # So? What about this header?
24828 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24829 yes:no: )
24830 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24831 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24832 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
24833 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
24834 ac_header_preproc=yes
24836 no:yes:* )
24837 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
24838 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
24839 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
24840 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
24841 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
24842 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
24843 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
24844 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24845 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
24846 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
24847 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
24848 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
24849 ( cat <<\_ASBOX
24850 ## ------------------------------- ##
24851 ## Report this to www.asterisk.org ##
24852 ## ------------------------------- ##
24853 _ASBOX
24854 ) | sed "s/^/$as_me: WARNING: /" >&2
24856 esac
24857 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
24858 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
24859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24860 echo $ECHO_N "(cached) $ECHO_C" >&6
24861 else
24862 eval "$as_ac_Header=\$ac_header_preproc"
24864 ac_res=`eval echo '${'$as_ac_Header'}'`
24865 { echo "$as_me:$LINENO: result: $ac_res" >&5
24866 echo "${ECHO_T}$ac_res" >&6; }
24869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24870 HAS_PWLIB=1
24874 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24875 PWLIBDIR="${HOME}/pwlib"
24876 else
24877 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
24878 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
24879 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
24880 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24883 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
24884 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
24885 else
24886 # Is the header compilable?
24887 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
24888 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
24889 cat >conftest.$ac_ext <<_ACEOF
24890 /* confdefs.h. */
24891 _ACEOF
24892 cat confdefs.h >>conftest.$ac_ext
24893 cat >>conftest.$ac_ext <<_ACEOF
24894 /* end confdefs.h. */
24895 $ac_includes_default
24896 #include </usr/local/include/ptlib.h>
24897 _ACEOF
24898 rm -f conftest.$ac_objext
24899 if { (ac_try="$ac_compile"
24900 case "(($ac_try" in
24901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24902 *) ac_try_echo=$ac_try;;
24903 esac
24904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24905 (eval "$ac_compile") 2>conftest.er1
24906 ac_status=$?
24907 grep -v '^ *+' conftest.er1 >conftest.err
24908 rm -f conftest.er1
24909 cat conftest.err >&5
24910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } && {
24912 test -z "$ac_cxx_werror_flag" ||
24913 test ! -s conftest.err
24914 } && test -s conftest.$ac_objext; then
24915 ac_header_compiler=yes
24916 else
24917 echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24920 ac_header_compiler=no
24923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24925 echo "${ECHO_T}$ac_header_compiler" >&6; }
24927 # Is the header present?
24928 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
24929 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
24930 cat >conftest.$ac_ext <<_ACEOF
24931 /* confdefs.h. */
24932 _ACEOF
24933 cat confdefs.h >>conftest.$ac_ext
24934 cat >>conftest.$ac_ext <<_ACEOF
24935 /* end confdefs.h. */
24936 #include </usr/local/include/ptlib.h>
24937 _ACEOF
24938 if { (ac_try="$ac_cpp conftest.$ac_ext"
24939 case "(($ac_try" in
24940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24941 *) ac_try_echo=$ac_try;;
24942 esac
24943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24945 ac_status=$?
24946 grep -v '^ *+' conftest.er1 >conftest.err
24947 rm -f conftest.er1
24948 cat conftest.err >&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } >/dev/null && {
24951 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24952 test ! -s conftest.err
24953 }; then
24954 ac_header_preproc=yes
24955 else
24956 echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.$ac_ext >&5
24959 ac_header_preproc=no
24962 rm -f conftest.err conftest.$ac_ext
24963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24964 echo "${ECHO_T}$ac_header_preproc" >&6; }
24966 # So? What about this header?
24967 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24968 yes:no: )
24969 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24970 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24971 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
24972 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
24973 ac_header_preproc=yes
24975 no:yes:* )
24976 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
24977 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
24978 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
24979 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
24980 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
24981 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
24982 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
24983 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24984 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
24985 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
24986 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
24987 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
24988 ( cat <<\_ASBOX
24989 ## ------------------------------- ##
24990 ## Report this to www.asterisk.org ##
24991 ## ------------------------------- ##
24992 _ASBOX
24993 ) | sed "s/^/$as_me: WARNING: /" >&2
24995 esac
24996 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
24997 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
24998 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
24999 echo $ECHO_N "(cached) $ECHO_C" >&6
25000 else
25001 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
25003 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
25004 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
25007 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
25008 HAS_PWLIB=1
25012 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25013 # Extract the first word of "ptlib-config", so it can be a program name with args.
25014 set dummy ptlib-config; ac_word=$2
25015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25017 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25018 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 else
25020 case $PTLIB_CONFIG in
25021 [\\/]* | ?:[\\/]*)
25022 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25026 for as_dir in /usr/local/bin
25028 IFS=$as_save_IFS
25029 test -z "$as_dir" && as_dir=.
25030 for ac_exec_ext in '' $ac_executable_extensions; do
25031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25032 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25034 break 2
25036 done
25037 done
25038 IFS=$as_save_IFS
25041 esac
25043 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25044 if test -n "$PTLIB_CONFIG"; then
25045 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25046 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25047 else
25048 { echo "$as_me:$LINENO: result: no" >&5
25049 echo "${ECHO_T}no" >&6; }
25053 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
25054 # Extract the first word of "ptlib-config", so it can be a program name with args.
25055 set dummy ptlib-config; ac_word=$2
25056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25058 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25059 echo $ECHO_N "(cached) $ECHO_C" >&6
25060 else
25061 case $PTLIB_CONFIG in
25062 [\\/]* | ?:[\\/]*)
25063 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25067 for as_dir in /usr/local/share/pwlib/make
25069 IFS=$as_save_IFS
25070 test -z "$as_dir" && as_dir=.
25071 for ac_exec_ext in '' $ac_executable_extensions; do
25072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25073 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25075 break 2
25077 done
25078 done
25079 IFS=$as_save_IFS
25082 esac
25084 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25085 if test -n "$PTLIB_CONFIG"; then
25086 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25087 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25088 else
25089 { echo "$as_me:$LINENO: result: no" >&5
25090 echo "${ECHO_T}no" >&6; }
25095 PWLIB_INCDIR="/usr/local/include"
25096 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
25097 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25098 if test "x$LIB64" != "x"; then
25099 PWLIB_LIBDIR="/usr/local/lib64"
25100 else
25101 PWLIB_LIBDIR="/usr/local/lib"
25104 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
25105 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25106 else
25107 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25108 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
25109 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
25110 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25111 echo $ECHO_N "(cached) $ECHO_C" >&6
25113 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
25114 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25115 else
25116 # Is the header compilable?
25117 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
25118 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
25119 cat >conftest.$ac_ext <<_ACEOF
25120 /* confdefs.h. */
25121 _ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h. */
25125 $ac_includes_default
25126 #include </usr/include/ptlib.h>
25127 _ACEOF
25128 rm -f conftest.$ac_objext
25129 if { (ac_try="$ac_compile"
25130 case "(($ac_try" in
25131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25132 *) ac_try_echo=$ac_try;;
25133 esac
25134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25135 (eval "$ac_compile") 2>conftest.er1
25136 ac_status=$?
25137 grep -v '^ *+' conftest.er1 >conftest.err
25138 rm -f conftest.er1
25139 cat conftest.err >&5
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } && {
25142 test -z "$ac_cxx_werror_flag" ||
25143 test ! -s conftest.err
25144 } && test -s conftest.$ac_objext; then
25145 ac_header_compiler=yes
25146 else
25147 echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25150 ac_header_compiler=no
25153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25155 echo "${ECHO_T}$ac_header_compiler" >&6; }
25157 # Is the header present?
25158 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
25159 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
25160 cat >conftest.$ac_ext <<_ACEOF
25161 /* confdefs.h. */
25162 _ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h. */
25166 #include </usr/include/ptlib.h>
25167 _ACEOF
25168 if { (ac_try="$ac_cpp conftest.$ac_ext"
25169 case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25172 esac
25173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25175 ac_status=$?
25176 grep -v '^ *+' conftest.er1 >conftest.err
25177 rm -f conftest.er1
25178 cat conftest.err >&5
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } >/dev/null && {
25181 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25182 test ! -s conftest.err
25183 }; then
25184 ac_header_preproc=yes
25185 else
25186 echo "$as_me: failed program was:" >&5
25187 sed 's/^/| /' conftest.$ac_ext >&5
25189 ac_header_preproc=no
25192 rm -f conftest.err conftest.$ac_ext
25193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25194 echo "${ECHO_T}$ac_header_preproc" >&6; }
25196 # So? What about this header?
25197 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25198 yes:no: )
25199 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25200 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25201 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
25202 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
25203 ac_header_preproc=yes
25205 no:yes:* )
25206 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
25207 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
25208 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
25209 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
25210 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
25211 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
25212 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
25213 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25214 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
25215 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
25216 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
25217 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
25218 ( cat <<\_ASBOX
25219 ## ------------------------------- ##
25220 ## Report this to www.asterisk.org ##
25221 ## ------------------------------- ##
25222 _ASBOX
25223 ) | sed "s/^/$as_me: WARNING: /" >&2
25225 esac
25226 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
25227 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
25228 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25229 echo $ECHO_N "(cached) $ECHO_C" >&6
25230 else
25231 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
25233 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
25234 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25237 if test $ac_cv_header__usr_include_ptlib_h = yes; then
25238 HAS_PWLIB=1
25242 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25243 # Extract the first word of "ptlib-config", so it can be a program name with args.
25244 set dummy ptlib-config; ac_word=$2
25245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25247 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25248 echo $ECHO_N "(cached) $ECHO_C" >&6
25249 else
25250 case $PTLIB_CONFIG in
25251 [\\/]* | ?:[\\/]*)
25252 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25256 for as_dir in /usr/share/pwlib/make
25258 IFS=$as_save_IFS
25259 test -z "$as_dir" && as_dir=.
25260 for ac_exec_ext in '' $ac_executable_extensions; do
25261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25262 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25264 break 2
25266 done
25267 done
25268 IFS=$as_save_IFS
25271 esac
25273 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25274 if test -n "$PTLIB_CONFIG"; then
25275 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25276 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25277 else
25278 { echo "$as_me:$LINENO: result: no" >&5
25279 echo "${ECHO_T}no" >&6; }
25283 PWLIB_INCDIR="/usr/include"
25284 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
25285 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25286 if test "x$LIB64" != "x"; then
25287 PWLIB_LIBDIR="/usr/lib64"
25288 else
25289 PWLIB_LIBDIR="/usr/lib"
25292 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
25293 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25300 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
25301 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
25302 # exit
25305 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25306 if test "${PWLIBDIR:-unset}" = "unset" ; then
25307 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
25308 PWLIBDIR=`$PTLIB_CONFIG --prefix`
25309 else
25310 echo "Cannot find ptlib-config - please install and try again"
25311 exit
25315 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
25316 PWLIBDIR="/usr/share/pwlib"
25317 PWLIB_INCDIR="/usr/include"
25318 if test "x$LIB64" != "x"; then
25319 PWLIB_LIBDIR="/usr/lib64"
25320 else
25321 PWLIB_LIBDIR="/usr/lib"
25324 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
25325 PWLIBDIR="/usr/local/share/pwlib"
25326 PWLIB_INCDIR="/usr/local/include"
25327 if test "x$LIB64" != "x"; then
25328 PWLIB_LIBDIR="/usr/local/lib64"
25329 else
25330 PWLIB_LIBDIR="/usr/local/lib"
25334 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
25335 PWLIB_INCDIR="${PWLIBDIR}/include"
25337 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25338 PWLIB_LIBDIR="${PWLIBDIR}/lib"
25345 ac_ext=c
25346 ac_cpp='$CPP $CPPFLAGS'
25347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25353 if test "${HAS_PWLIB:-unset}" != "unset"; then
25354 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
25355 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
25356 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
25357 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
25358 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
25359 let PWLIB_REQ=1*10000+9*100+2
25361 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
25362 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
25363 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
25364 { echo "$as_me:$LINENO: result: no" >&5
25365 echo "${ECHO_T}no" >&6; }
25366 unset HAS_PWLIB
25367 else
25368 { echo "$as_me:$LINENO: result: yes" >&5
25369 echo "${ECHO_T}yes" >&6; }
25374 if test "${HAS_PWLIB:-unset}" != "unset"; then
25376 PWLIB_OSTYPE=
25377 case "$host_os" in
25378 linux*) PWLIB_OSTYPE=linux ;
25380 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
25382 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
25383 ENDLDLIBS="-lossaudio" ;
25385 netbsd* ) PWLIB_OSTYPE=NetBSD ;
25386 ENDLDLIBS="-lossaudio" ;
25388 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
25390 darwin* ) PWLIB_OSTYPE=Darwin ;
25392 beos*) PWLIB_OSTYPE=beos ;
25393 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
25395 cygwin*) PWLIB_OSTYPE=cygwin ;
25397 mingw*) PWLIB_OSTYPE=mingw ;
25398 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
25399 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
25401 * ) PWLIB_OSTYPE="$host_os" ;
25402 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
25403 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
25405 esac
25407 PWLIB_MACHTYPE=
25408 case "$host_cpu" in
25409 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
25412 x86_64) PWLIB_MACHTYPE=x86_64 ;
25413 P_64BIT=1 ;
25414 LIB64=1 ;
25417 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
25418 P_64BIT=1 ;
25421 sparc ) PWLIB_MACHTYPE=sparc ;
25424 powerpc ) PWLIB_MACHTYPE=ppc ;
25427 ppc ) PWLIB_MACHTYPE=ppc ;
25430 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
25431 P_64BIT=1 ;
25432 LIB64=1 ;
25435 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
25436 P_64BIT=1 ;
25437 LIB64=1 ;
25440 ia64) PWLIB_MACHTYPE=ia64 ;
25441 P_64BIT=1 ;
25444 s390x) PWLIB_MACHTYPE=s390x ;
25445 P_64BIT=1 ;
25446 LIB64=1 ;
25449 s390) PWLIB_MACHTYPE=s390 ;
25452 * ) PWLIB_MACHTYPE="$host_cpu";
25453 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
25454 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
25455 esac
25457 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
25462 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
25465 if test "${HAS_PWLIB:-unset}" != "unset"; then
25466 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
25467 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
25469 saved_cppflags="${CPPFLAGS}"
25470 saved_libs="${LIBS}"
25471 if test "${PWLIB_LIB:-unset}" != "unset"; then
25472 LIBS="${LIBS} ${PWLIB_LIB} "
25473 else
25474 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
25476 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
25478 ac_ext=cpp
25479 ac_cpp='$CXXCPP $CPPFLAGS'
25480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25485 cat >conftest.$ac_ext <<_ACEOF
25486 /* confdefs.h. */
25487 _ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h. */
25491 #include "ptlib.h"
25493 main ()
25495 BOOL q = PTime::IsDaylightSavings();
25497 return 0;
25499 _ACEOF
25500 rm -f conftest.$ac_objext conftest$ac_exeext
25501 if { (ac_try="$ac_link"
25502 case "(($ac_try" in
25503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504 *) ac_try_echo=$ac_try;;
25505 esac
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507 (eval "$ac_link") 2>conftest.er1
25508 ac_status=$?
25509 grep -v '^ *+' conftest.er1 >conftest.err
25510 rm -f conftest.er1
25511 cat conftest.err >&5
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); } && {
25514 test -z "$ac_cxx_werror_flag" ||
25515 test ! -s conftest.err
25516 } && test -s conftest$ac_exeext &&
25517 $as_test_x conftest$ac_exeext; then
25518 { echo "$as_me:$LINENO: result: yes" >&5
25519 echo "${ECHO_T}yes" >&6; }
25520 ac_cv_lib_PWLIB="yes"
25522 else
25523 echo "$as_me: failed program was:" >&5
25524 sed 's/^/| /' conftest.$ac_ext >&5
25526 { echo "$as_me:$LINENO: result: no" >&5
25527 echo "${ECHO_T}no" >&6; }
25528 ac_cv_lib_PWLIB="no"
25533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25534 conftest$ac_exeext conftest.$ac_ext
25536 ac_ext=c
25537 ac_cpp='$CPP $CPPFLAGS'
25538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25543 LIBS="${saved_libs}"
25544 CPPFLAGS="${saved_cppflags}"
25546 if test "${ac_cv_lib_PWLIB}" = "yes"; then
25547 if test "${PWLIB_LIB:-undef}" = "undef"; then
25548 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
25549 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
25550 else
25551 PWLIB_LIB="-l${PLATFORM_PWLIB}"
25554 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
25555 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
25557 PBX_PWLIB=1
25559 cat >>confdefs.h <<\_ACEOF
25560 #define HAVE_PWLIB 1
25561 _ACEOF
25569 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
25570 { echo "$as_me:$LINENO: ***" >&5
25571 echo "$as_me: ***" >&6;}
25572 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
25573 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
25574 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25575 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25576 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
25577 echo "$as_me: *** including --without-pwlib" >&6;}
25578 exit 1
25581 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
25582 if test -n "${OPENH323_DIR}"; then
25583 OPENH323DIR="${OPENH323_DIR}"
25586 OPENH323_INCDIR=
25587 OPENH323_LIBDIR=
25588 ac_ext=cpp
25589 ac_cpp='$CXXCPP $CPPFLAGS'
25590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25594 if test "${OPENH323DIR:-unset}" != "unset" ; then
25595 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
25596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25597 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
25598 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
25599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25600 echo $ECHO_N "(cached) $ECHO_C" >&6
25602 ac_res=`eval echo '${'$as_ac_Header'}'`
25603 { echo "$as_me:$LINENO: result: $ac_res" >&5
25604 echo "${ECHO_T}$ac_res" >&6; }
25605 else
25606 # Is the header compilable?
25607 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
25608 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
25609 cat >conftest.$ac_ext <<_ACEOF
25610 /* confdefs.h. */
25611 _ACEOF
25612 cat confdefs.h >>conftest.$ac_ext
25613 cat >>conftest.$ac_ext <<_ACEOF
25614 /* end confdefs.h. */
25615 $ac_includes_default
25616 #include <${OPENH323DIR}/version.h>
25617 _ACEOF
25618 rm -f conftest.$ac_objext
25619 if { (ac_try="$ac_compile"
25620 case "(($ac_try" in
25621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25622 *) ac_try_echo=$ac_try;;
25623 esac
25624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25625 (eval "$ac_compile") 2>conftest.er1
25626 ac_status=$?
25627 grep -v '^ *+' conftest.er1 >conftest.err
25628 rm -f conftest.er1
25629 cat conftest.err >&5
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); } && {
25632 test -z "$ac_cxx_werror_flag" ||
25633 test ! -s conftest.err
25634 } && test -s conftest.$ac_objext; then
25635 ac_header_compiler=yes
25636 else
25637 echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25640 ac_header_compiler=no
25643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25645 echo "${ECHO_T}$ac_header_compiler" >&6; }
25647 # Is the header present?
25648 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
25649 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
25650 cat >conftest.$ac_ext <<_ACEOF
25651 /* confdefs.h. */
25652 _ACEOF
25653 cat confdefs.h >>conftest.$ac_ext
25654 cat >>conftest.$ac_ext <<_ACEOF
25655 /* end confdefs.h. */
25656 #include <${OPENH323DIR}/version.h>
25657 _ACEOF
25658 if { (ac_try="$ac_cpp conftest.$ac_ext"
25659 case "(($ac_try" in
25660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661 *) ac_try_echo=$ac_try;;
25662 esac
25663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25665 ac_status=$?
25666 grep -v '^ *+' conftest.er1 >conftest.err
25667 rm -f conftest.er1
25668 cat conftest.err >&5
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); } >/dev/null && {
25671 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25672 test ! -s conftest.err
25673 }; then
25674 ac_header_preproc=yes
25675 else
25676 echo "$as_me: failed program was:" >&5
25677 sed 's/^/| /' conftest.$ac_ext >&5
25679 ac_header_preproc=no
25682 rm -f conftest.err conftest.$ac_ext
25683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25684 echo "${ECHO_T}$ac_header_preproc" >&6; }
25686 # So? What about this header?
25687 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25688 yes:no: )
25689 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
25690 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25691 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
25692 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
25693 ac_header_preproc=yes
25695 no:yes:* )
25696 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
25697 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
25698 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
25699 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
25700 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
25701 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
25702 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
25703 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
25704 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
25705 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
25706 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
25707 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
25708 ( cat <<\_ASBOX
25709 ## ------------------------------- ##
25710 ## Report this to www.asterisk.org ##
25711 ## ------------------------------- ##
25712 _ASBOX
25713 ) | sed "s/^/$as_me: WARNING: /" >&2
25715 esac
25716 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
25717 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
25718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25719 echo $ECHO_N "(cached) $ECHO_C" >&6
25720 else
25721 eval "$as_ac_Header=\$ac_header_preproc"
25723 ac_res=`eval echo '${'$as_ac_Header'}'`
25724 { echo "$as_me:$LINENO: result: $ac_res" >&5
25725 echo "${ECHO_T}$ac_res" >&6; }
25728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25729 HAS_OPENH323=1
25734 if test "${HAS_OPENH323:-unset}" = "unset" ; then
25735 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
25736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25737 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
25738 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
25739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25740 echo $ECHO_N "(cached) $ECHO_C" >&6
25742 ac_res=`eval echo '${'$as_ac_Header'}'`
25743 { echo "$as_me:$LINENO: result: $ac_res" >&5
25744 echo "${ECHO_T}$ac_res" >&6; }
25745 else
25746 # Is the header compilable?
25747 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
25748 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
25749 cat >conftest.$ac_ext <<_ACEOF
25750 /* confdefs.h. */
25751 _ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h. */
25755 $ac_includes_default
25756 #include <${PWLIBDIR}/../openh323/version.h>
25757 _ACEOF
25758 rm -f conftest.$ac_objext
25759 if { (ac_try="$ac_compile"
25760 case "(($ac_try" in
25761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25762 *) ac_try_echo=$ac_try;;
25763 esac
25764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25765 (eval "$ac_compile") 2>conftest.er1
25766 ac_status=$?
25767 grep -v '^ *+' conftest.er1 >conftest.err
25768 rm -f conftest.er1
25769 cat conftest.err >&5
25770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771 (exit $ac_status); } && {
25772 test -z "$ac_cxx_werror_flag" ||
25773 test ! -s conftest.err
25774 } && test -s conftest.$ac_objext; then
25775 ac_header_compiler=yes
25776 else
25777 echo "$as_me: failed program was:" >&5
25778 sed 's/^/| /' conftest.$ac_ext >&5
25780 ac_header_compiler=no
25783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25785 echo "${ECHO_T}$ac_header_compiler" >&6; }
25787 # Is the header present?
25788 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
25789 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
25790 cat >conftest.$ac_ext <<_ACEOF
25791 /* confdefs.h. */
25792 _ACEOF
25793 cat confdefs.h >>conftest.$ac_ext
25794 cat >>conftest.$ac_ext <<_ACEOF
25795 /* end confdefs.h. */
25796 #include <${PWLIBDIR}/../openh323/version.h>
25797 _ACEOF
25798 if { (ac_try="$ac_cpp conftest.$ac_ext"
25799 case "(($ac_try" in
25800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25801 *) ac_try_echo=$ac_try;;
25802 esac
25803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25805 ac_status=$?
25806 grep -v '^ *+' conftest.er1 >conftest.err
25807 rm -f conftest.er1
25808 cat conftest.err >&5
25809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); } >/dev/null && {
25811 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25812 test ! -s conftest.err
25813 }; then
25814 ac_header_preproc=yes
25815 else
25816 echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25819 ac_header_preproc=no
25822 rm -f conftest.err conftest.$ac_ext
25823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25824 echo "${ECHO_T}$ac_header_preproc" >&6; }
25826 # So? What about this header?
25827 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25828 yes:no: )
25829 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
25830 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25831 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
25832 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
25833 ac_header_preproc=yes
25835 no:yes:* )
25836 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
25837 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
25838 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
25839 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
25840 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
25841 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
25842 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
25843 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
25844 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
25845 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
25846 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
25847 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
25848 ( cat <<\_ASBOX
25849 ## ------------------------------- ##
25850 ## Report this to www.asterisk.org ##
25851 ## ------------------------------- ##
25852 _ASBOX
25853 ) | sed "s/^/$as_me: WARNING: /" >&2
25855 esac
25856 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
25857 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
25858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25859 echo $ECHO_N "(cached) $ECHO_C" >&6
25860 else
25861 eval "$as_ac_Header=\$ac_header_preproc"
25863 ac_res=`eval echo '${'$as_ac_Header'}'`
25864 { echo "$as_me:$LINENO: result: $ac_res" >&5
25865 echo "${ECHO_T}$ac_res" >&6; }
25868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25869 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
25873 if test "${HAS_OPENH323:-unset}" != "unset" ; then
25874 OPENH323DIR="${PWLIBDIR}/../openh323"
25875 saved_cppflags="${CPPFLAGS}"
25876 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
25877 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
25878 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
25879 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
25880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25881 echo $ECHO_N "(cached) $ECHO_C" >&6
25882 else
25883 cat >conftest.$ac_ext <<_ACEOF
25884 /* confdefs.h. */
25885 _ACEOF
25886 cat confdefs.h >>conftest.$ac_ext
25887 cat >>conftest.$ac_ext <<_ACEOF
25888 /* end confdefs.h. */
25889 #include <ptlib.h>
25891 #include <${OPENH323DIR}/include/h323.h>
25892 _ACEOF
25893 rm -f conftest.$ac_objext
25894 if { (ac_try="$ac_compile"
25895 case "(($ac_try" in
25896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25897 *) ac_try_echo=$ac_try;;
25898 esac
25899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25900 (eval "$ac_compile") 2>conftest.er1
25901 ac_status=$?
25902 grep -v '^ *+' conftest.er1 >conftest.err
25903 rm -f conftest.er1
25904 cat conftest.err >&5
25905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906 (exit $ac_status); } && {
25907 test -z "$ac_cxx_werror_flag" ||
25908 test ! -s conftest.err
25909 } && test -s conftest.$ac_objext; then
25910 eval "$as_ac_Header=yes"
25911 else
25912 echo "$as_me: failed program was:" >&5
25913 sed 's/^/| /' conftest.$ac_ext >&5
25915 eval "$as_ac_Header=no"
25918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25920 ac_res=`eval echo '${'$as_ac_Header'}'`
25921 { echo "$as_me:$LINENO: result: $ac_res" >&5
25922 echo "${ECHO_T}$ac_res" >&6; }
25923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25925 else
25926 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
25930 CPPFLAGS="${saved_cppflags}"
25931 else
25932 saved_cppflags="${CPPFLAGS}"
25933 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
25934 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
25935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25936 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
25937 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
25938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25939 echo $ECHO_N "(cached) $ECHO_C" >&6
25941 ac_res=`eval echo '${'$as_ac_Header'}'`
25942 { echo "$as_me:$LINENO: result: $ac_res" >&5
25943 echo "${ECHO_T}$ac_res" >&6; }
25944 else
25945 # Is the header compilable?
25946 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
25947 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
25948 cat >conftest.$ac_ext <<_ACEOF
25949 /* confdefs.h. */
25950 _ACEOF
25951 cat confdefs.h >>conftest.$ac_ext
25952 cat >>conftest.$ac_ext <<_ACEOF
25953 /* end confdefs.h. */
25954 $ac_includes_default
25955 #include <${HOME}/openh323/include/h323.h>
25956 _ACEOF
25957 rm -f conftest.$ac_objext
25958 if { (ac_try="$ac_compile"
25959 case "(($ac_try" in
25960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25961 *) ac_try_echo=$ac_try;;
25962 esac
25963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25964 (eval "$ac_compile") 2>conftest.er1
25965 ac_status=$?
25966 grep -v '^ *+' conftest.er1 >conftest.err
25967 rm -f conftest.er1
25968 cat conftest.err >&5
25969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25970 (exit $ac_status); } && {
25971 test -z "$ac_cxx_werror_flag" ||
25972 test ! -s conftest.err
25973 } && test -s conftest.$ac_objext; then
25974 ac_header_compiler=yes
25975 else
25976 echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.$ac_ext >&5
25979 ac_header_compiler=no
25982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25984 echo "${ECHO_T}$ac_header_compiler" >&6; }
25986 # Is the header present?
25987 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
25988 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
25989 cat >conftest.$ac_ext <<_ACEOF
25990 /* confdefs.h. */
25991 _ACEOF
25992 cat confdefs.h >>conftest.$ac_ext
25993 cat >>conftest.$ac_ext <<_ACEOF
25994 /* end confdefs.h. */
25995 #include <${HOME}/openh323/include/h323.h>
25996 _ACEOF
25997 if { (ac_try="$ac_cpp conftest.$ac_ext"
25998 case "(($ac_try" in
25999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26000 *) ac_try_echo=$ac_try;;
26001 esac
26002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26004 ac_status=$?
26005 grep -v '^ *+' conftest.er1 >conftest.err
26006 rm -f conftest.er1
26007 cat conftest.err >&5
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); } >/dev/null && {
26010 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26011 test ! -s conftest.err
26012 }; then
26013 ac_header_preproc=yes
26014 else
26015 echo "$as_me: failed program was:" >&5
26016 sed 's/^/| /' conftest.$ac_ext >&5
26018 ac_header_preproc=no
26021 rm -f conftest.err conftest.$ac_ext
26022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26023 echo "${ECHO_T}$ac_header_preproc" >&6; }
26025 # So? What about this header?
26026 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26027 yes:no: )
26028 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26029 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26030 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
26031 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
26032 ac_header_preproc=yes
26034 no:yes:* )
26035 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
26036 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
26037 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
26038 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
26039 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
26040 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
26041 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26042 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26043 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
26044 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
26045 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
26046 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
26047 ( cat <<\_ASBOX
26048 ## ------------------------------- ##
26049 ## Report this to www.asterisk.org ##
26050 ## ------------------------------- ##
26051 _ASBOX
26052 ) | sed "s/^/$as_me: WARNING: /" >&2
26054 esac
26055 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
26056 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
26057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26058 echo $ECHO_N "(cached) $ECHO_C" >&6
26059 else
26060 eval "$as_ac_Header=\$ac_header_preproc"
26062 ac_res=`eval echo '${'$as_ac_Header'}'`
26063 { echo "$as_me:$LINENO: result: $ac_res" >&5
26064 echo "${ECHO_T}$ac_res" >&6; }
26067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26068 HAS_OPENH323=1
26072 CPPFLAGS="${saved_cppflags}"
26073 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26074 OPENH323DIR="${HOME}/openh323"
26075 else
26076 saved_cppflags="${CPPFLAGS}"
26077 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
26078 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26079 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26080 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26081 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26082 echo $ECHO_N "(cached) $ECHO_C" >&6
26084 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26085 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26086 else
26087 # Is the header compilable?
26088 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
26089 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
26090 cat >conftest.$ac_ext <<_ACEOF
26091 /* confdefs.h. */
26092 _ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h. */
26096 $ac_includes_default
26097 #include </usr/local/include/openh323/h323.h>
26098 _ACEOF
26099 rm -f conftest.$ac_objext
26100 if { (ac_try="$ac_compile"
26101 case "(($ac_try" in
26102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26103 *) ac_try_echo=$ac_try;;
26104 esac
26105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26106 (eval "$ac_compile") 2>conftest.er1
26107 ac_status=$?
26108 grep -v '^ *+' conftest.er1 >conftest.err
26109 rm -f conftest.er1
26110 cat conftest.err >&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } && {
26113 test -z "$ac_cxx_werror_flag" ||
26114 test ! -s conftest.err
26115 } && test -s conftest.$ac_objext; then
26116 ac_header_compiler=yes
26117 else
26118 echo "$as_me: failed program was:" >&5
26119 sed 's/^/| /' conftest.$ac_ext >&5
26121 ac_header_compiler=no
26124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26126 echo "${ECHO_T}$ac_header_compiler" >&6; }
26128 # Is the header present?
26129 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
26130 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
26131 cat >conftest.$ac_ext <<_ACEOF
26132 /* confdefs.h. */
26133 _ACEOF
26134 cat confdefs.h >>conftest.$ac_ext
26135 cat >>conftest.$ac_ext <<_ACEOF
26136 /* end confdefs.h. */
26137 #include </usr/local/include/openh323/h323.h>
26138 _ACEOF
26139 if { (ac_try="$ac_cpp conftest.$ac_ext"
26140 case "(($ac_try" in
26141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26142 *) ac_try_echo=$ac_try;;
26143 esac
26144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26146 ac_status=$?
26147 grep -v '^ *+' conftest.er1 >conftest.err
26148 rm -f conftest.er1
26149 cat conftest.err >&5
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); } >/dev/null && {
26152 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26153 test ! -s conftest.err
26154 }; then
26155 ac_header_preproc=yes
26156 else
26157 echo "$as_me: failed program was:" >&5
26158 sed 's/^/| /' conftest.$ac_ext >&5
26160 ac_header_preproc=no
26163 rm -f conftest.err conftest.$ac_ext
26164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26165 echo "${ECHO_T}$ac_header_preproc" >&6; }
26167 # So? What about this header?
26168 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26169 yes:no: )
26170 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26171 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26172 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
26173 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
26174 ac_header_preproc=yes
26176 no:yes:* )
26177 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
26178 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
26179 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
26180 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
26181 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
26182 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
26183 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26184 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26185 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
26186 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
26187 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
26188 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
26189 ( cat <<\_ASBOX
26190 ## ------------------------------- ##
26191 ## Report this to www.asterisk.org ##
26192 ## ------------------------------- ##
26193 _ASBOX
26194 ) | sed "s/^/$as_me: WARNING: /" >&2
26196 esac
26197 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26198 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26199 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26200 echo $ECHO_N "(cached) $ECHO_C" >&6
26201 else
26202 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
26204 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26205 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26208 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
26209 HAS_OPENH323=1
26213 CPPFLAGS="${saved_cppflags}"
26214 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26215 OPENH323DIR="/usr/local/share/openh323"
26216 OPENH323_INCDIR="/usr/local/include/openh323"
26217 if test "x$LIB64" != "x"; then
26218 OPENH323_LIBDIR="/usr/local/lib64"
26219 else
26220 OPENH323_LIBDIR="/usr/local/lib"
26222 else
26223 saved_cppflags="${CPPFLAGS}"
26224 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
26225 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
26226 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
26227 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
26228 echo $ECHO_N "(cached) $ECHO_C" >&6
26229 else
26230 cat >conftest.$ac_ext <<_ACEOF
26231 /* confdefs.h. */
26232 _ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h. */
26236 #include <ptlib.h>
26238 #include </usr/include/openh323/h323.h>
26239 _ACEOF
26240 rm -f conftest.$ac_objext
26241 if { (ac_try="$ac_compile"
26242 case "(($ac_try" in
26243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26244 *) ac_try_echo=$ac_try;;
26245 esac
26246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26247 (eval "$ac_compile") 2>conftest.er1
26248 ac_status=$?
26249 grep -v '^ *+' conftest.er1 >conftest.err
26250 rm -f conftest.er1
26251 cat conftest.err >&5
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); } && {
26254 test -z "$ac_cxx_werror_flag" ||
26255 test ! -s conftest.err
26256 } && test -s conftest.$ac_objext; then
26257 ac_cv_header__usr_include_openh323_h323_h=yes
26258 else
26259 echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26262 ac_cv_header__usr_include_openh323_h323_h=no
26265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26267 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
26268 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
26269 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
26270 HAS_OPENH323=1
26274 CPPFLAGS="${saved_cppflags}"
26275 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26276 OPENH323DIR="/usr/share/openh323"
26277 OPENH323_INCDIR="/usr/include/openh323"
26278 if test "x$LIB64" != "x"; then
26279 OPENH323_LIBDIR="/usr/lib64"
26280 else
26281 OPENH323_LIBDIR="/usr/lib"
26289 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26290 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
26291 OPENH323_INCDIR="${OPENH323DIR}/include"
26293 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
26294 OPENH323_LIBDIR="${OPENH323DIR}/lib"
26297 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
26298 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
26299 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
26305 ac_ext=c
26306 ac_cpp='$CPP $CPPFLAGS'
26307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26313 if test "${HAS_OPENH323:-unset}" != "unset"; then
26314 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
26315 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
26316 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
26317 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
26318 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
26319 let OPENH323_REQ=1*10000+17*100+3
26321 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
26322 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
26323 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
26324 { echo "$as_me:$LINENO: result: no" >&5
26325 echo "${ECHO_T}no" >&6; }
26326 unset HAS_OPENH323
26327 else
26328 { echo "$as_me:$LINENO: result: yes" >&5
26329 echo "${ECHO_T}yes" >&6; }
26334 if test "${HAS_OPENH323:-unset}" != "unset"; then
26335 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
26336 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
26337 OPENH323_SUFFIX=
26338 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
26339 for pfx in $prefixes; do
26340 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
26341 libfile=
26342 if test -n "$files"; then
26343 for f in $files; do
26344 if test -f $f -a ! -L $f; then
26345 libfile=`basename $f`
26346 break;
26348 done
26350 if test -n "$libfile"; then
26351 OPENH323_PREFIX=$pfx
26352 break;
26354 done
26355 if test "${libfile:-unset}" != "unset"; then
26356 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
26358 case "${OPENH323_SUFFIX}" in
26360 OPENH323_BUILD="notrace";;
26362 OPENH323_BUILD="opt";;
26364 OPENH323_BUILD="debug";;
26366 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
26367 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
26368 if test "x$notrace" = "x"; then
26369 notrace="0"
26371 if test "$notrace" -ne 0; then
26372 OPENH323_BUILD="notrace"
26373 else
26374 OPENH323_BUILD="opt"
26376 OPENH323_LIB="-l${OPENH323_PREFIX}"
26377 else
26378 OPENH323_BUILD="notrace"
26381 esac
26382 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
26383 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
26389 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
26391 if test "${HAS_OPENH323:-unset}" != "unset"; then
26392 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
26393 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
26395 saved_cppflags="${CPPFLAGS}"
26396 saved_libs="${LIBS}"
26397 if test "${OPENH323_LIB:-unset}" != "unset"; then
26398 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
26399 else
26400 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
26402 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
26404 ac_ext=cpp
26405 ac_cpp='$CXXCPP $CPPFLAGS'
26406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26411 cat >conftest.$ac_ext <<_ACEOF
26412 /* confdefs.h. */
26413 _ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h. */
26417 #include "ptlib.h"
26418 #include "h323.h"
26419 #include "h323ep.h"
26421 main ()
26423 H323EndPoint ep = H323EndPoint();
26425 return 0;
26427 _ACEOF
26428 rm -f conftest.$ac_objext conftest$ac_exeext
26429 if { (ac_try="$ac_link"
26430 case "(($ac_try" in
26431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26432 *) ac_try_echo=$ac_try;;
26433 esac
26434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26435 (eval "$ac_link") 2>conftest.er1
26436 ac_status=$?
26437 grep -v '^ *+' conftest.er1 >conftest.err
26438 rm -f conftest.er1
26439 cat conftest.err >&5
26440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441 (exit $ac_status); } && {
26442 test -z "$ac_cxx_werror_flag" ||
26443 test ! -s conftest.err
26444 } && test -s conftest$ac_exeext &&
26445 $as_test_x conftest$ac_exeext; then
26446 { echo "$as_me:$LINENO: result: yes" >&5
26447 echo "${ECHO_T}yes" >&6; }
26448 ac_cv_lib_OPENH323="yes"
26450 else
26451 echo "$as_me: failed program was:" >&5
26452 sed 's/^/| /' conftest.$ac_ext >&5
26454 { echo "$as_me:$LINENO: result: no" >&5
26455 echo "${ECHO_T}no" >&6; }
26456 ac_cv_lib_OPENH323="no"
26461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26462 conftest$ac_exeext conftest.$ac_ext
26464 ac_ext=c
26465 ac_cpp='$CPP $CPPFLAGS'
26466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26471 LIBS="${saved_libs}"
26472 CPPFLAGS="${saved_cppflags}"
26474 if test "${ac_cv_lib_OPENH323}" = "yes"; then
26475 if test "${OPENH323_LIB:-undef}" = "undef"; then
26476 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
26477 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
26478 else
26479 OPENH323_LIB="-l${PLATFORM_OPENH323}"
26482 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
26483 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
26485 PBX_OPENH323=1
26487 cat >>confdefs.h <<\_ACEOF
26488 #define HAVE_OPENH323 1
26489 _ACEOF
26495 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
26496 { echo "$as_me:$LINENO: ***" >&5
26497 echo "$as_me: ***" >&6;}
26498 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
26499 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
26500 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26501 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26502 { echo "$as_me:$LINENO: *** including --without-h323" >&5
26503 echo "$as_me: *** including --without-h323" >&6;}
26504 exit 1
26508 if test "${USE_RADIUS}" != "no"; then
26509 pbxlibdir=""
26510 if test "x${RADIUS_DIR}" != "x"; then
26511 if test -d ${RADIUS_DIR}/lib; then
26512 pbxlibdir="-L${RADIUS_DIR}/lib"
26513 else
26514 pbxlibdir="-L${RADIUS_DIR}"
26517 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
26518 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
26519 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
26520 echo $ECHO_N "(cached) $ECHO_C" >&6
26521 else
26522 ac_check_lib_save_LIBS=$LIBS
26523 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
26524 cat >conftest.$ac_ext <<_ACEOF
26525 /* confdefs.h. */
26526 _ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h. */
26531 /* Override any GCC internal prototype to avoid an error.
26532 Use char because int might match the return type of a GCC
26533 builtin and then its argument prototype would still apply. */
26534 #ifdef __cplusplus
26535 extern "C"
26536 #endif
26537 char rc_read_config ();
26539 main ()
26541 return rc_read_config ();
26543 return 0;
26545 _ACEOF
26546 rm -f conftest.$ac_objext conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26551 esac
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553 (eval "$ac_link") 2>conftest.er1
26554 ac_status=$?
26555 grep -v '^ *+' conftest.er1 >conftest.err
26556 rm -f conftest.er1
26557 cat conftest.err >&5
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); } && {
26560 test -z "$ac_c_werror_flag" ||
26561 test ! -s conftest.err
26562 } && test -s conftest$ac_exeext &&
26563 $as_test_x conftest$ac_exeext; then
26564 ac_cv_lib_radiusclient_ng_rc_read_config=yes
26565 else
26566 echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26569 ac_cv_lib_radiusclient_ng_rc_read_config=no
26572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26573 conftest$ac_exeext conftest.$ac_ext
26574 LIBS=$ac_check_lib_save_LIBS
26576 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
26577 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
26578 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
26579 AST_RADIUS_FOUND=yes
26580 else
26581 AST_RADIUS_FOUND=no
26585 if test "${AST_RADIUS_FOUND}" = "yes"; then
26586 RADIUS_LIB="-lradiusclient-ng "
26587 RADIUS_HEADER_FOUND="1"
26588 if test "x${RADIUS_DIR}" != "x"; then
26589 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
26590 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
26592 RADIUS_INCLUDE="${RADIUS_INCLUDE} "
26593 saved_cppflags="${CPPFLAGS}"
26594 CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
26595 if test "xradiusclient-ng.h" != "x" ; then
26596 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
26597 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
26598 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
26599 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
26600 echo $ECHO_N "(cached) $ECHO_C" >&6
26602 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
26603 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
26604 else
26605 # Is the header compilable?
26606 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
26607 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
26608 cat >conftest.$ac_ext <<_ACEOF
26609 /* confdefs.h. */
26610 _ACEOF
26611 cat confdefs.h >>conftest.$ac_ext
26612 cat >>conftest.$ac_ext <<_ACEOF
26613 /* end confdefs.h. */
26614 $ac_includes_default
26615 #include <radiusclient-ng.h>
26616 _ACEOF
26617 rm -f conftest.$ac_objext
26618 if { (ac_try="$ac_compile"
26619 case "(($ac_try" in
26620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26621 *) ac_try_echo=$ac_try;;
26622 esac
26623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26624 (eval "$ac_compile") 2>conftest.er1
26625 ac_status=$?
26626 grep -v '^ *+' conftest.er1 >conftest.err
26627 rm -f conftest.er1
26628 cat conftest.err >&5
26629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630 (exit $ac_status); } && {
26631 test -z "$ac_c_werror_flag" ||
26632 test ! -s conftest.err
26633 } && test -s conftest.$ac_objext; then
26634 ac_header_compiler=yes
26635 else
26636 echo "$as_me: failed program was:" >&5
26637 sed 's/^/| /' conftest.$ac_ext >&5
26639 ac_header_compiler=no
26642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26644 echo "${ECHO_T}$ac_header_compiler" >&6; }
26646 # Is the header present?
26647 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
26648 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
26649 cat >conftest.$ac_ext <<_ACEOF
26650 /* confdefs.h. */
26651 _ACEOF
26652 cat confdefs.h >>conftest.$ac_ext
26653 cat >>conftest.$ac_ext <<_ACEOF
26654 /* end confdefs.h. */
26655 #include <radiusclient-ng.h>
26656 _ACEOF
26657 if { (ac_try="$ac_cpp conftest.$ac_ext"
26658 case "(($ac_try" in
26659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26660 *) ac_try_echo=$ac_try;;
26661 esac
26662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26664 ac_status=$?
26665 grep -v '^ *+' conftest.er1 >conftest.err
26666 rm -f conftest.er1
26667 cat conftest.err >&5
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); } >/dev/null && {
26670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26671 test ! -s conftest.err
26672 }; then
26673 ac_header_preproc=yes
26674 else
26675 echo "$as_me: failed program was:" >&5
26676 sed 's/^/| /' conftest.$ac_ext >&5
26678 ac_header_preproc=no
26681 rm -f conftest.err conftest.$ac_ext
26682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26683 echo "${ECHO_T}$ac_header_preproc" >&6; }
26685 # So? What about this header?
26686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26687 yes:no: )
26688 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
26689 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26690 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
26691 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
26692 ac_header_preproc=yes
26694 no:yes:* )
26695 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
26696 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
26697 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
26698 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
26699 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
26700 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
26701 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
26702 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
26703 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
26704 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
26705 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
26706 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
26707 ( cat <<\_ASBOX
26708 ## ------------------------------- ##
26709 ## Report this to www.asterisk.org ##
26710 ## ------------------------------- ##
26711 _ASBOX
26712 ) | sed "s/^/$as_me: WARNING: /" >&2
26714 esac
26715 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
26716 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
26717 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
26718 echo $ECHO_N "(cached) $ECHO_C" >&6
26719 else
26720 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
26722 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
26723 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
26726 if test $ac_cv_header_radiusclient_ng_h = yes; then
26727 RADIUS_HEADER_FOUND=1
26728 else
26729 RADIUS_HEADER_FOUND=0
26734 CPPFLAGS="${saved_cppflags}"
26735 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
26736 if test -n "${RADIUS_MANDATORY}" ;
26737 then
26738 { echo "$as_me:$LINENO: ***" >&5
26739 echo "$as_me: ***" >&6;}
26740 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
26741 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
26742 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
26743 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
26744 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
26745 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
26746 exit 1
26748 RADIUS_LIB=""
26749 RADIUS_INCLUDE=""
26750 PBX_RADIUS=0
26751 else
26752 PBX_RADIUS=1
26754 cat >>confdefs.h <<_ACEOF
26755 #define HAVE_RADIUS 1
26756 _ACEOF
26759 elif test -n "${RADIUS_MANDATORY}";
26760 then
26761 { echo "$as_me:$LINENO: ***" >&5
26762 echo "$as_me: ***" >&6;}
26763 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
26764 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
26765 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26766 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26767 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
26768 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
26769 exit 1
26775 if test "${USE_SPEEX}" != "no"; then
26776 pbxlibdir=""
26777 if test "x${SPEEX_DIR}" != "x"; then
26778 if test -d ${SPEEX_DIR}/lib; then
26779 pbxlibdir="-L${SPEEX_DIR}/lib"
26780 else
26781 pbxlibdir="-L${SPEEX_DIR}"
26784 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
26785 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
26786 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
26787 echo $ECHO_N "(cached) $ECHO_C" >&6
26788 else
26789 ac_check_lib_save_LIBS=$LIBS
26790 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
26791 cat >conftest.$ac_ext <<_ACEOF
26792 /* confdefs.h. */
26793 _ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h. */
26798 /* Override any GCC internal prototype to avoid an error.
26799 Use char because int might match the return type of a GCC
26800 builtin and then its argument prototype would still apply. */
26801 #ifdef __cplusplus
26802 extern "C"
26803 #endif
26804 char speex_encode ();
26806 main ()
26808 return speex_encode ();
26810 return 0;
26812 _ACEOF
26813 rm -f conftest.$ac_objext conftest$ac_exeext
26814 if { (ac_try="$ac_link"
26815 case "(($ac_try" in
26816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26817 *) ac_try_echo=$ac_try;;
26818 esac
26819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26820 (eval "$ac_link") 2>conftest.er1
26821 ac_status=$?
26822 grep -v '^ *+' conftest.er1 >conftest.err
26823 rm -f conftest.er1
26824 cat conftest.err >&5
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); } && {
26827 test -z "$ac_c_werror_flag" ||
26828 test ! -s conftest.err
26829 } && test -s conftest$ac_exeext &&
26830 $as_test_x conftest$ac_exeext; then
26831 ac_cv_lib_speex_speex_encode=yes
26832 else
26833 echo "$as_me: failed program was:" >&5
26834 sed 's/^/| /' conftest.$ac_ext >&5
26836 ac_cv_lib_speex_speex_encode=no
26839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26840 conftest$ac_exeext conftest.$ac_ext
26841 LIBS=$ac_check_lib_save_LIBS
26843 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
26844 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
26845 if test $ac_cv_lib_speex_speex_encode = yes; then
26846 AST_SPEEX_FOUND=yes
26847 else
26848 AST_SPEEX_FOUND=no
26852 if test "${AST_SPEEX_FOUND}" = "yes"; then
26853 SPEEX_LIB="-lspeex -lm"
26854 SPEEX_HEADER_FOUND="1"
26855 if test "x${SPEEX_DIR}" != "x"; then
26856 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
26857 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
26859 SPEEX_INCLUDE="${SPEEX_INCLUDE} "
26860 saved_cppflags="${CPPFLAGS}"
26861 CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
26862 if test "xspeex/speex.h" != "x" ; then
26863 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26864 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26865 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26866 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26867 echo $ECHO_N "(cached) $ECHO_C" >&6
26869 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26870 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26871 else
26872 # Is the header compilable?
26873 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
26874 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
26875 cat >conftest.$ac_ext <<_ACEOF
26876 /* confdefs.h. */
26877 _ACEOF
26878 cat confdefs.h >>conftest.$ac_ext
26879 cat >>conftest.$ac_ext <<_ACEOF
26880 /* end confdefs.h. */
26881 $ac_includes_default
26882 #include <speex/speex.h>
26883 _ACEOF
26884 rm -f conftest.$ac_objext
26885 if { (ac_try="$ac_compile"
26886 case "(($ac_try" in
26887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26888 *) ac_try_echo=$ac_try;;
26889 esac
26890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26891 (eval "$ac_compile") 2>conftest.er1
26892 ac_status=$?
26893 grep -v '^ *+' conftest.er1 >conftest.err
26894 rm -f conftest.er1
26895 cat conftest.err >&5
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); } && {
26898 test -z "$ac_c_werror_flag" ||
26899 test ! -s conftest.err
26900 } && test -s conftest.$ac_objext; then
26901 ac_header_compiler=yes
26902 else
26903 echo "$as_me: failed program was:" >&5
26904 sed 's/^/| /' conftest.$ac_ext >&5
26906 ac_header_compiler=no
26909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26911 echo "${ECHO_T}$ac_header_compiler" >&6; }
26913 # Is the header present?
26914 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
26915 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
26916 cat >conftest.$ac_ext <<_ACEOF
26917 /* confdefs.h. */
26918 _ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26922 #include <speex/speex.h>
26923 _ACEOF
26924 if { (ac_try="$ac_cpp conftest.$ac_ext"
26925 case "(($ac_try" in
26926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26927 *) ac_try_echo=$ac_try;;
26928 esac
26929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26931 ac_status=$?
26932 grep -v '^ *+' conftest.er1 >conftest.err
26933 rm -f conftest.er1
26934 cat conftest.err >&5
26935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); } >/dev/null && {
26937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26938 test ! -s conftest.err
26939 }; then
26940 ac_header_preproc=yes
26941 else
26942 echo "$as_me: failed program was:" >&5
26943 sed 's/^/| /' conftest.$ac_ext >&5
26945 ac_header_preproc=no
26948 rm -f conftest.err conftest.$ac_ext
26949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26950 echo "${ECHO_T}$ac_header_preproc" >&6; }
26952 # So? What about this header?
26953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26954 yes:no: )
26955 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
26956 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26957 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
26958 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
26959 ac_header_preproc=yes
26961 no:yes:* )
26962 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
26963 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
26964 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
26965 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
26966 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
26967 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
26968 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
26969 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
26970 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
26971 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
26972 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
26973 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
26974 ( cat <<\_ASBOX
26975 ## ------------------------------- ##
26976 ## Report this to www.asterisk.org ##
26977 ## ------------------------------- ##
26978 _ASBOX
26979 ) | sed "s/^/$as_me: WARNING: /" >&2
26981 esac
26982 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26983 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26984 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26985 echo $ECHO_N "(cached) $ECHO_C" >&6
26986 else
26987 ac_cv_header_speex_speex_h=$ac_header_preproc
26989 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26990 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26993 if test $ac_cv_header_speex_speex_h = yes; then
26994 SPEEX_HEADER_FOUND=1
26995 else
26996 SPEEX_HEADER_FOUND=0
27001 CPPFLAGS="${saved_cppflags}"
27002 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
27003 if test -n "${SPEEX_MANDATORY}" ;
27004 then
27005 { echo "$as_me:$LINENO: ***" >&5
27006 echo "$as_me: ***" >&6;}
27007 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
27008 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
27009 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
27010 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
27011 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
27012 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
27013 exit 1
27015 SPEEX_LIB=""
27016 SPEEX_INCLUDE=""
27017 PBX_SPEEX=0
27018 else
27019 PBX_SPEEX=1
27021 cat >>confdefs.h <<_ACEOF
27022 #define HAVE_SPEEX 1
27023 _ACEOF
27026 elif test -n "${SPEEX_MANDATORY}";
27027 then
27028 { echo "$as_me:$LINENO: ***" >&5
27029 echo "$as_me: ***" >&6;}
27030 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
27031 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
27032 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27033 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27034 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
27035 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
27036 exit 1
27041 # See if the main speex library contains the preprocess functions
27043 if test "${USE_SPEEX_PREPROCESS}" != "no"; then
27044 pbxlibdir=""
27045 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
27046 if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
27047 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
27048 else
27049 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
27052 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeex" >&5
27053 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeex... $ECHO_C" >&6; }
27054 if test "${ac_cv_lib_speex_speex_preprocess_ctl+set}" = set; then
27055 echo $ECHO_N "(cached) $ECHO_C" >&6
27056 else
27057 ac_check_lib_save_LIBS=$LIBS
27058 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
27059 cat >conftest.$ac_ext <<_ACEOF
27060 /* confdefs.h. */
27061 _ACEOF
27062 cat confdefs.h >>conftest.$ac_ext
27063 cat >>conftest.$ac_ext <<_ACEOF
27064 /* end confdefs.h. */
27066 /* Override any GCC internal prototype to avoid an error.
27067 Use char because int might match the return type of a GCC
27068 builtin and then its argument prototype would still apply. */
27069 #ifdef __cplusplus
27070 extern "C"
27071 #endif
27072 char speex_preprocess_ctl ();
27074 main ()
27076 return speex_preprocess_ctl ();
27078 return 0;
27080 _ACEOF
27081 rm -f conftest.$ac_objext conftest$ac_exeext
27082 if { (ac_try="$ac_link"
27083 case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27086 esac
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_link") 2>conftest.er1
27089 ac_status=$?
27090 grep -v '^ *+' conftest.er1 >conftest.err
27091 rm -f conftest.er1
27092 cat conftest.err >&5
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); } && {
27095 test -z "$ac_c_werror_flag" ||
27096 test ! -s conftest.err
27097 } && test -s conftest$ac_exeext &&
27098 $as_test_x conftest$ac_exeext; then
27099 ac_cv_lib_speex_speex_preprocess_ctl=yes
27100 else
27101 echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27104 ac_cv_lib_speex_speex_preprocess_ctl=no
27107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27108 conftest$ac_exeext conftest.$ac_ext
27109 LIBS=$ac_check_lib_save_LIBS
27111 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_preprocess_ctl" >&5
27112 echo "${ECHO_T}$ac_cv_lib_speex_speex_preprocess_ctl" >&6; }
27113 if test $ac_cv_lib_speex_speex_preprocess_ctl = yes; then
27114 AST_SPEEX_PREPROCESS_FOUND=yes
27115 else
27116 AST_SPEEX_PREPROCESS_FOUND=no
27120 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
27121 SPEEX_PREPROCESS_LIB="-lspeex -lm"
27122 SPEEX_PREPROCESS_HEADER_FOUND="1"
27123 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
27124 SPEEX_PREPROCESS_LIB="${pbxlibdir} ${SPEEX_PREPROCESS_LIB}"
27125 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
27127 SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
27128 saved_cppflags="${CPPFLAGS}"
27129 CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
27130 if test "xspeex/speex.h" != "x" ; then
27131 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27132 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27133 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27134 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27135 echo $ECHO_N "(cached) $ECHO_C" >&6
27137 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27138 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27139 else
27140 # Is the header compilable?
27141 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
27142 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
27143 cat >conftest.$ac_ext <<_ACEOF
27144 /* confdefs.h. */
27145 _ACEOF
27146 cat confdefs.h >>conftest.$ac_ext
27147 cat >>conftest.$ac_ext <<_ACEOF
27148 /* end confdefs.h. */
27149 $ac_includes_default
27150 #include <speex/speex.h>
27151 _ACEOF
27152 rm -f conftest.$ac_objext
27153 if { (ac_try="$ac_compile"
27154 case "(($ac_try" in
27155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156 *) ac_try_echo=$ac_try;;
27157 esac
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159 (eval "$ac_compile") 2>conftest.er1
27160 ac_status=$?
27161 grep -v '^ *+' conftest.er1 >conftest.err
27162 rm -f conftest.er1
27163 cat conftest.err >&5
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); } && {
27166 test -z "$ac_c_werror_flag" ||
27167 test ! -s conftest.err
27168 } && test -s conftest.$ac_objext; then
27169 ac_header_compiler=yes
27170 else
27171 echo "$as_me: failed program was:" >&5
27172 sed 's/^/| /' conftest.$ac_ext >&5
27174 ac_header_compiler=no
27177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27179 echo "${ECHO_T}$ac_header_compiler" >&6; }
27181 # Is the header present?
27182 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
27183 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
27184 cat >conftest.$ac_ext <<_ACEOF
27185 /* confdefs.h. */
27186 _ACEOF
27187 cat confdefs.h >>conftest.$ac_ext
27188 cat >>conftest.$ac_ext <<_ACEOF
27189 /* end confdefs.h. */
27190 #include <speex/speex.h>
27191 _ACEOF
27192 if { (ac_try="$ac_cpp conftest.$ac_ext"
27193 case "(($ac_try" in
27194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27195 *) ac_try_echo=$ac_try;;
27196 esac
27197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27199 ac_status=$?
27200 grep -v '^ *+' conftest.er1 >conftest.err
27201 rm -f conftest.er1
27202 cat conftest.err >&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); } >/dev/null && {
27205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27206 test ! -s conftest.err
27207 }; then
27208 ac_header_preproc=yes
27209 else
27210 echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27213 ac_header_preproc=no
27216 rm -f conftest.err conftest.$ac_ext
27217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27218 echo "${ECHO_T}$ac_header_preproc" >&6; }
27220 # So? What about this header?
27221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27222 yes:no: )
27223 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
27224 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27225 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
27226 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
27227 ac_header_preproc=yes
27229 no:yes:* )
27230 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
27231 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
27232 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
27233 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
27234 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
27235 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
27236 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
27237 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
27238 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
27239 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
27240 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
27241 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
27242 ( cat <<\_ASBOX
27243 ## ------------------------------- ##
27244 ## Report this to www.asterisk.org ##
27245 ## ------------------------------- ##
27246 _ASBOX
27247 ) | sed "s/^/$as_me: WARNING: /" >&2
27249 esac
27250 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27251 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27252 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27253 echo $ECHO_N "(cached) $ECHO_C" >&6
27254 else
27255 ac_cv_header_speex_speex_h=$ac_header_preproc
27257 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27258 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27261 if test $ac_cv_header_speex_speex_h = yes; then
27262 SPEEX_PREPROCESS_HEADER_FOUND=1
27263 else
27264 SPEEX_PREPROCESS_HEADER_FOUND=0
27269 CPPFLAGS="${saved_cppflags}"
27270 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
27271 if test -n "${SPEEX_PREPROCESS_MANDATORY}" ;
27272 then
27273 { echo "$as_me:$LINENO: ***" >&5
27274 echo "$as_me: ***" >&6;}
27275 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
27276 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
27277 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&5
27278 echo "$as_me: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&6;}
27279 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
27280 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
27281 exit 1
27283 SPEEX_PREPROCESS_LIB=""
27284 SPEEX_PREPROCESS_INCLUDE=""
27285 PBX_SPEEX_PREPROCESS=0
27286 else
27287 PBX_SPEEX_PREPROCESS=1
27289 cat >>confdefs.h <<_ACEOF
27290 #define HAVE_SPEEX_PREPROCESS 1
27291 _ACEOF
27294 elif test -n "${SPEEX_PREPROCESS_MANDATORY}";
27295 then
27296 { echo "$as_me:$LINENO: ***" >&5
27297 echo "$as_me: ***" >&6;}
27298 { echo "$as_me:$LINENO: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&5
27299 echo "$as_me: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&6;}
27300 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27301 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27302 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
27303 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
27304 exit 1
27308 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
27309 PBX_SPEEX_PREPROCESS=1
27313 if test "${USE_SPEEXDSP}" != "no"; then
27314 pbxlibdir=""
27315 if test "x${SPEEXDSP_DIR}" != "x"; then
27316 if test -d ${SPEEXDSP_DIR}/lib; then
27317 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
27318 else
27319 pbxlibdir="-L${SPEEXDSP_DIR}"
27322 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
27323 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
27324 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
27325 echo $ECHO_N "(cached) $ECHO_C" >&6
27326 else
27327 ac_check_lib_save_LIBS=$LIBS
27328 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
27329 cat >conftest.$ac_ext <<_ACEOF
27330 /* confdefs.h. */
27331 _ACEOF
27332 cat confdefs.h >>conftest.$ac_ext
27333 cat >>conftest.$ac_ext <<_ACEOF
27334 /* end confdefs.h. */
27336 /* Override any GCC internal prototype to avoid an error.
27337 Use char because int might match the return type of a GCC
27338 builtin and then its argument prototype would still apply. */
27339 #ifdef __cplusplus
27340 extern "C"
27341 #endif
27342 char speex_preprocess_ctl ();
27344 main ()
27346 return speex_preprocess_ctl ();
27348 return 0;
27350 _ACEOF
27351 rm -f conftest.$ac_objext conftest$ac_exeext
27352 if { (ac_try="$ac_link"
27353 case "(($ac_try" in
27354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27355 *) ac_try_echo=$ac_try;;
27356 esac
27357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27358 (eval "$ac_link") 2>conftest.er1
27359 ac_status=$?
27360 grep -v '^ *+' conftest.er1 >conftest.err
27361 rm -f conftest.er1
27362 cat conftest.err >&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); } && {
27365 test -z "$ac_c_werror_flag" ||
27366 test ! -s conftest.err
27367 } && test -s conftest$ac_exeext &&
27368 $as_test_x conftest$ac_exeext; then
27369 ac_cv_lib_speexdsp_speex_preprocess_ctl=yes
27370 else
27371 echo "$as_me: failed program was:" >&5
27372 sed 's/^/| /' conftest.$ac_ext >&5
27374 ac_cv_lib_speexdsp_speex_preprocess_ctl=no
27377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27378 conftest$ac_exeext conftest.$ac_ext
27379 LIBS=$ac_check_lib_save_LIBS
27381 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
27382 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
27383 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
27384 AST_SPEEXDSP_FOUND=yes
27385 else
27386 AST_SPEEXDSP_FOUND=no
27390 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
27391 SPEEXDSP_LIB="-lspeexdsp -lm"
27392 SPEEXDSP_HEADER_FOUND="1"
27393 if test "x${SPEEXDSP_DIR}" != "x"; then
27394 SPEEXDSP_LIB="${pbxlibdir} ${SPEEXDSP_LIB}"
27395 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
27397 SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
27398 saved_cppflags="${CPPFLAGS}"
27399 CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
27400 if test "xspeex/speex.h" != "x" ; then
27401 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27402 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27403 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27404 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27405 echo $ECHO_N "(cached) $ECHO_C" >&6
27407 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27408 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27409 else
27410 # Is the header compilable?
27411 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
27412 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
27413 cat >conftest.$ac_ext <<_ACEOF
27414 /* confdefs.h. */
27415 _ACEOF
27416 cat confdefs.h >>conftest.$ac_ext
27417 cat >>conftest.$ac_ext <<_ACEOF
27418 /* end confdefs.h. */
27419 $ac_includes_default
27420 #include <speex/speex.h>
27421 _ACEOF
27422 rm -f conftest.$ac_objext
27423 if { (ac_try="$ac_compile"
27424 case "(($ac_try" in
27425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27426 *) ac_try_echo=$ac_try;;
27427 esac
27428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27429 (eval "$ac_compile") 2>conftest.er1
27430 ac_status=$?
27431 grep -v '^ *+' conftest.er1 >conftest.err
27432 rm -f conftest.er1
27433 cat conftest.err >&5
27434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435 (exit $ac_status); } && {
27436 test -z "$ac_c_werror_flag" ||
27437 test ! -s conftest.err
27438 } && test -s conftest.$ac_objext; then
27439 ac_header_compiler=yes
27440 else
27441 echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27444 ac_header_compiler=no
27447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27449 echo "${ECHO_T}$ac_header_compiler" >&6; }
27451 # Is the header present?
27452 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
27453 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
27454 cat >conftest.$ac_ext <<_ACEOF
27455 /* confdefs.h. */
27456 _ACEOF
27457 cat confdefs.h >>conftest.$ac_ext
27458 cat >>conftest.$ac_ext <<_ACEOF
27459 /* end confdefs.h. */
27460 #include <speex/speex.h>
27461 _ACEOF
27462 if { (ac_try="$ac_cpp conftest.$ac_ext"
27463 case "(($ac_try" in
27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465 *) ac_try_echo=$ac_try;;
27466 esac
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27469 ac_status=$?
27470 grep -v '^ *+' conftest.er1 >conftest.err
27471 rm -f conftest.er1
27472 cat conftest.err >&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); } >/dev/null && {
27475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27476 test ! -s conftest.err
27477 }; then
27478 ac_header_preproc=yes
27479 else
27480 echo "$as_me: failed program was:" >&5
27481 sed 's/^/| /' conftest.$ac_ext >&5
27483 ac_header_preproc=no
27486 rm -f conftest.err conftest.$ac_ext
27487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27488 echo "${ECHO_T}$ac_header_preproc" >&6; }
27490 # So? What about this header?
27491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27492 yes:no: )
27493 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
27494 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27495 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
27496 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
27497 ac_header_preproc=yes
27499 no:yes:* )
27500 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
27501 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
27502 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
27503 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
27504 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
27505 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
27506 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
27507 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
27508 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
27509 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
27510 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
27511 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
27512 ( cat <<\_ASBOX
27513 ## ------------------------------- ##
27514 ## Report this to www.asterisk.org ##
27515 ## ------------------------------- ##
27516 _ASBOX
27517 ) | sed "s/^/$as_me: WARNING: /" >&2
27519 esac
27520 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27521 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27522 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27524 else
27525 ac_cv_header_speex_speex_h=$ac_header_preproc
27527 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27528 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27531 if test $ac_cv_header_speex_speex_h = yes; then
27532 SPEEXDSP_HEADER_FOUND=1
27533 else
27534 SPEEXDSP_HEADER_FOUND=0
27539 CPPFLAGS="${saved_cppflags}"
27540 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
27541 if test -n "${SPEEXDSP_MANDATORY}" ;
27542 then
27543 { echo "$as_me:$LINENO: ***" >&5
27544 echo "$as_me: ***" >&6;}
27545 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
27546 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
27547 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
27548 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
27549 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
27550 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
27551 exit 1
27553 SPEEXDSP_LIB=""
27554 SPEEXDSP_INCLUDE=""
27555 PBX_SPEEXDSP=0
27556 else
27557 PBX_SPEEXDSP=1
27559 cat >>confdefs.h <<_ACEOF
27560 #define HAVE_SPEEXDSP 1
27561 _ACEOF
27564 elif test -n "${SPEEXDSP_MANDATORY}";
27565 then
27566 { echo "$as_me:$LINENO: ***" >&5
27567 echo "$as_me: ***" >&6;}
27568 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
27569 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
27570 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27571 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27572 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
27573 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
27574 exit 1
27578 if test "${PBX_SPEEXDSP}" = 1; then
27579 PBX_SPEEX_PREPROCESS=1
27585 if test "${USE_SQLITE}" != "no"; then
27586 pbxlibdir=""
27587 if test "x${SQLITE_DIR}" != "x"; then
27588 if test -d ${SQLITE_DIR}/lib; then
27589 pbxlibdir="-L${SQLITE_DIR}/lib"
27590 else
27591 pbxlibdir="-L${SQLITE_DIR}"
27594 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
27595 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
27596 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
27597 echo $ECHO_N "(cached) $ECHO_C" >&6
27598 else
27599 ac_check_lib_save_LIBS=$LIBS
27600 LIBS="-lsqlite ${pbxlibdir} $LIBS"
27601 cat >conftest.$ac_ext <<_ACEOF
27602 /* confdefs.h. */
27603 _ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h. */
27608 /* Override any GCC internal prototype to avoid an error.
27609 Use char because int might match the return type of a GCC
27610 builtin and then its argument prototype would still apply. */
27611 #ifdef __cplusplus
27612 extern "C"
27613 #endif
27614 char sqlite_exec ();
27616 main ()
27618 return sqlite_exec ();
27620 return 0;
27622 _ACEOF
27623 rm -f conftest.$ac_objext conftest$ac_exeext
27624 if { (ac_try="$ac_link"
27625 case "(($ac_try" in
27626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27627 *) ac_try_echo=$ac_try;;
27628 esac
27629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27630 (eval "$ac_link") 2>conftest.er1
27631 ac_status=$?
27632 grep -v '^ *+' conftest.er1 >conftest.err
27633 rm -f conftest.er1
27634 cat conftest.err >&5
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); } && {
27637 test -z "$ac_c_werror_flag" ||
27638 test ! -s conftest.err
27639 } && test -s conftest$ac_exeext &&
27640 $as_test_x conftest$ac_exeext; then
27641 ac_cv_lib_sqlite_sqlite_exec=yes
27642 else
27643 echo "$as_me: failed program was:" >&5
27644 sed 's/^/| /' conftest.$ac_ext >&5
27646 ac_cv_lib_sqlite_sqlite_exec=no
27649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27650 conftest$ac_exeext conftest.$ac_ext
27651 LIBS=$ac_check_lib_save_LIBS
27653 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
27654 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
27655 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
27656 AST_SQLITE_FOUND=yes
27657 else
27658 AST_SQLITE_FOUND=no
27662 if test "${AST_SQLITE_FOUND}" = "yes"; then
27663 SQLITE_LIB="-lsqlite "
27664 SQLITE_HEADER_FOUND="1"
27665 if test "x${SQLITE_DIR}" != "x"; then
27666 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
27667 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
27669 SQLITE_INCLUDE="${SQLITE_INCLUDE} "
27670 saved_cppflags="${CPPFLAGS}"
27671 CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
27672 if test "xsqlite.h" != "x" ; then
27673 if test "${ac_cv_header_sqlite_h+set}" = set; then
27674 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
27675 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
27676 if test "${ac_cv_header_sqlite_h+set}" = set; then
27677 echo $ECHO_N "(cached) $ECHO_C" >&6
27679 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
27680 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
27681 else
27682 # Is the header compilable?
27683 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
27684 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
27685 cat >conftest.$ac_ext <<_ACEOF
27686 /* confdefs.h. */
27687 _ACEOF
27688 cat confdefs.h >>conftest.$ac_ext
27689 cat >>conftest.$ac_ext <<_ACEOF
27690 /* end confdefs.h. */
27691 $ac_includes_default
27692 #include <sqlite.h>
27693 _ACEOF
27694 rm -f conftest.$ac_objext
27695 if { (ac_try="$ac_compile"
27696 case "(($ac_try" in
27697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27698 *) ac_try_echo=$ac_try;;
27699 esac
27700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27701 (eval "$ac_compile") 2>conftest.er1
27702 ac_status=$?
27703 grep -v '^ *+' conftest.er1 >conftest.err
27704 rm -f conftest.er1
27705 cat conftest.err >&5
27706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707 (exit $ac_status); } && {
27708 test -z "$ac_c_werror_flag" ||
27709 test ! -s conftest.err
27710 } && test -s conftest.$ac_objext; then
27711 ac_header_compiler=yes
27712 else
27713 echo "$as_me: failed program was:" >&5
27714 sed 's/^/| /' conftest.$ac_ext >&5
27716 ac_header_compiler=no
27719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27721 echo "${ECHO_T}$ac_header_compiler" >&6; }
27723 # Is the header present?
27724 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
27725 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
27726 cat >conftest.$ac_ext <<_ACEOF
27727 /* confdefs.h. */
27728 _ACEOF
27729 cat confdefs.h >>conftest.$ac_ext
27730 cat >>conftest.$ac_ext <<_ACEOF
27731 /* end confdefs.h. */
27732 #include <sqlite.h>
27733 _ACEOF
27734 if { (ac_try="$ac_cpp conftest.$ac_ext"
27735 case "(($ac_try" in
27736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27737 *) ac_try_echo=$ac_try;;
27738 esac
27739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27741 ac_status=$?
27742 grep -v '^ *+' conftest.er1 >conftest.err
27743 rm -f conftest.er1
27744 cat conftest.err >&5
27745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); } >/dev/null && {
27747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27748 test ! -s conftest.err
27749 }; then
27750 ac_header_preproc=yes
27751 else
27752 echo "$as_me: failed program was:" >&5
27753 sed 's/^/| /' conftest.$ac_ext >&5
27755 ac_header_preproc=no
27758 rm -f conftest.err conftest.$ac_ext
27759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27760 echo "${ECHO_T}$ac_header_preproc" >&6; }
27762 # So? What about this header?
27763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27764 yes:no: )
27765 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
27766 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27767 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
27768 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
27769 ac_header_preproc=yes
27771 no:yes:* )
27772 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
27773 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
27774 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
27775 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
27776 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
27777 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
27778 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
27779 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
27780 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
27781 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
27782 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
27783 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
27784 ( cat <<\_ASBOX
27785 ## ------------------------------- ##
27786 ## Report this to www.asterisk.org ##
27787 ## ------------------------------- ##
27788 _ASBOX
27789 ) | sed "s/^/$as_me: WARNING: /" >&2
27791 esac
27792 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
27793 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
27794 if test "${ac_cv_header_sqlite_h+set}" = set; then
27795 echo $ECHO_N "(cached) $ECHO_C" >&6
27796 else
27797 ac_cv_header_sqlite_h=$ac_header_preproc
27799 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
27800 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
27803 if test $ac_cv_header_sqlite_h = yes; then
27804 SQLITE_HEADER_FOUND=1
27805 else
27806 SQLITE_HEADER_FOUND=0
27811 CPPFLAGS="${saved_cppflags}"
27812 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
27813 if test -n "${SQLITE_MANDATORY}" ;
27814 then
27815 { echo "$as_me:$LINENO: ***" >&5
27816 echo "$as_me: ***" >&6;}
27817 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
27818 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
27819 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
27820 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
27821 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
27822 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
27823 exit 1
27825 SQLITE_LIB=""
27826 SQLITE_INCLUDE=""
27827 PBX_SQLITE=0
27828 else
27829 PBX_SQLITE=1
27831 cat >>confdefs.h <<_ACEOF
27832 #define HAVE_SQLITE 1
27833 _ACEOF
27836 elif test -n "${SQLITE_MANDATORY}";
27837 then
27838 { echo "$as_me:$LINENO: ***" >&5
27839 echo "$as_me: ***" >&6;}
27840 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
27841 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
27842 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27843 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27844 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
27845 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
27846 exit 1
27852 if test "${USE_OPENSSL}" != "no"; then
27853 pbxlibdir=""
27854 if test "x${OPENSSL_DIR}" != "x"; then
27855 if test -d ${OPENSSL_DIR}/lib; then
27856 pbxlibdir="-L${OPENSSL_DIR}/lib"
27857 else
27858 pbxlibdir="-L${OPENSSL_DIR}"
27861 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
27862 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
27863 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
27864 echo $ECHO_N "(cached) $ECHO_C" >&6
27865 else
27866 ac_check_lib_save_LIBS=$LIBS
27867 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
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. */
27875 /* Override any GCC internal prototype to avoid an error.
27876 Use char because int might match the return type of a GCC
27877 builtin and then its argument prototype would still apply. */
27878 #ifdef __cplusplus
27879 extern "C"
27880 #endif
27881 char ssl2_connect ();
27883 main ()
27885 return ssl2_connect ();
27887 return 0;
27889 _ACEOF
27890 rm -f conftest.$ac_objext conftest$ac_exeext
27891 if { (ac_try="$ac_link"
27892 case "(($ac_try" in
27893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27894 *) ac_try_echo=$ac_try;;
27895 esac
27896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897 (eval "$ac_link") 2>conftest.er1
27898 ac_status=$?
27899 grep -v '^ *+' conftest.er1 >conftest.err
27900 rm -f conftest.er1
27901 cat conftest.err >&5
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); } && {
27904 test -z "$ac_c_werror_flag" ||
27905 test ! -s conftest.err
27906 } && test -s conftest$ac_exeext &&
27907 $as_test_x conftest$ac_exeext; then
27908 ac_cv_lib_ssl_ssl2_connect=yes
27909 else
27910 echo "$as_me: failed program was:" >&5
27911 sed 's/^/| /' conftest.$ac_ext >&5
27913 ac_cv_lib_ssl_ssl2_connect=no
27916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27917 conftest$ac_exeext conftest.$ac_ext
27918 LIBS=$ac_check_lib_save_LIBS
27920 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
27921 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
27922 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
27923 AST_OPENSSL_FOUND=yes
27924 else
27925 AST_OPENSSL_FOUND=no
27929 if test "${AST_OPENSSL_FOUND}" = "yes"; then
27930 OPENSSL_LIB="-lssl -lcrypto"
27931 OPENSSL_HEADER_FOUND="1"
27932 if test "x${OPENSSL_DIR}" != "x"; then
27933 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
27934 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
27936 OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
27937 saved_cppflags="${CPPFLAGS}"
27938 CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
27939 if test "xopenssl/ssl.h" != "x" ; then
27940 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27941 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
27942 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
27943 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27944 echo $ECHO_N "(cached) $ECHO_C" >&6
27946 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
27947 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
27948 else
27949 # Is the header compilable?
27950 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
27951 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
27952 cat >conftest.$ac_ext <<_ACEOF
27953 /* confdefs.h. */
27954 _ACEOF
27955 cat confdefs.h >>conftest.$ac_ext
27956 cat >>conftest.$ac_ext <<_ACEOF
27957 /* end confdefs.h. */
27958 $ac_includes_default
27959 #include <openssl/ssl.h>
27960 _ACEOF
27961 rm -f conftest.$ac_objext
27962 if { (ac_try="$ac_compile"
27963 case "(($ac_try" in
27964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27965 *) ac_try_echo=$ac_try;;
27966 esac
27967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27968 (eval "$ac_compile") 2>conftest.er1
27969 ac_status=$?
27970 grep -v '^ *+' conftest.er1 >conftest.err
27971 rm -f conftest.er1
27972 cat conftest.err >&5
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); } && {
27975 test -z "$ac_c_werror_flag" ||
27976 test ! -s conftest.err
27977 } && test -s conftest.$ac_objext; then
27978 ac_header_compiler=yes
27979 else
27980 echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27983 ac_header_compiler=no
27986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27988 echo "${ECHO_T}$ac_header_compiler" >&6; }
27990 # Is the header present?
27991 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
27992 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
27993 cat >conftest.$ac_ext <<_ACEOF
27994 /* confdefs.h. */
27995 _ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h. */
27999 #include <openssl/ssl.h>
28000 _ACEOF
28001 if { (ac_try="$ac_cpp conftest.$ac_ext"
28002 case "(($ac_try" in
28003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004 *) ac_try_echo=$ac_try;;
28005 esac
28006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28008 ac_status=$?
28009 grep -v '^ *+' conftest.er1 >conftest.err
28010 rm -f conftest.er1
28011 cat conftest.err >&5
28012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013 (exit $ac_status); } >/dev/null && {
28014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28015 test ! -s conftest.err
28016 }; then
28017 ac_header_preproc=yes
28018 else
28019 echo "$as_me: failed program was:" >&5
28020 sed 's/^/| /' conftest.$ac_ext >&5
28022 ac_header_preproc=no
28025 rm -f conftest.err conftest.$ac_ext
28026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28027 echo "${ECHO_T}$ac_header_preproc" >&6; }
28029 # So? What about this header?
28030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28031 yes:no: )
28032 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28033 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28034 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
28035 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
28036 ac_header_preproc=yes
28038 no:yes:* )
28039 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
28040 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
28041 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
28042 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
28043 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
28044 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
28045 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
28046 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28047 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
28048 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
28049 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
28050 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
28051 ( cat <<\_ASBOX
28052 ## ------------------------------- ##
28053 ## Report this to www.asterisk.org ##
28054 ## ------------------------------- ##
28055 _ASBOX
28056 ) | sed "s/^/$as_me: WARNING: /" >&2
28058 esac
28059 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
28060 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
28061 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28062 echo $ECHO_N "(cached) $ECHO_C" >&6
28063 else
28064 ac_cv_header_openssl_ssl_h=$ac_header_preproc
28066 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
28067 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
28070 if test $ac_cv_header_openssl_ssl_h = yes; then
28071 OPENSSL_HEADER_FOUND=1
28072 else
28073 OPENSSL_HEADER_FOUND=0
28078 CPPFLAGS="${saved_cppflags}"
28079 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
28080 if test -n "${OPENSSL_MANDATORY}" ;
28081 then
28082 { echo "$as_me:$LINENO: ***" >&5
28083 echo "$as_me: ***" >&6;}
28084 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
28085 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
28086 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
28087 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
28088 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
28089 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
28090 exit 1
28092 OPENSSL_LIB=""
28093 OPENSSL_INCLUDE=""
28094 PBX_OPENSSL=0
28095 else
28096 PBX_OPENSSL=1
28098 cat >>confdefs.h <<_ACEOF
28099 #define HAVE_OPENSSL 1
28100 _ACEOF
28103 elif test -n "${OPENSSL_MANDATORY}";
28104 then
28105 { echo "$as_me:$LINENO: ***" >&5
28106 echo "$as_me: ***" >&6;}
28107 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
28108 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
28109 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28110 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28111 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
28112 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
28113 exit 1
28117 if test "$PBX_OPENSSL" = "1";
28118 then
28120 if test "${USE_OSPTK}" != "no"; then
28121 pbxlibdir=""
28122 if test "x${OSPTK_DIR}" != "x"; then
28123 if test -d ${OSPTK_DIR}/lib; then
28124 pbxlibdir="-L${OSPTK_DIR}/lib"
28125 else
28126 pbxlibdir="-L${OSPTK_DIR}"
28129 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
28130 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
28131 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
28132 echo $ECHO_N "(cached) $ECHO_C" >&6
28133 else
28134 ac_check_lib_save_LIBS=$LIBS
28135 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
28136 cat >conftest.$ac_ext <<_ACEOF
28137 /* confdefs.h. */
28138 _ACEOF
28139 cat confdefs.h >>conftest.$ac_ext
28140 cat >>conftest.$ac_ext <<_ACEOF
28141 /* end confdefs.h. */
28143 /* Override any GCC internal prototype to avoid an error.
28144 Use char because int might match the return type of a GCC
28145 builtin and then its argument prototype would still apply. */
28146 #ifdef __cplusplus
28147 extern "C"
28148 #endif
28149 char OSPPCryptoDecrypt ();
28151 main ()
28153 return OSPPCryptoDecrypt ();
28155 return 0;
28157 _ACEOF
28158 rm -f conftest.$ac_objext conftest$ac_exeext
28159 if { (ac_try="$ac_link"
28160 case "(($ac_try" in
28161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 *) ac_try_echo=$ac_try;;
28163 esac
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_link") 2>conftest.er1
28166 ac_status=$?
28167 grep -v '^ *+' conftest.er1 >conftest.err
28168 rm -f conftest.er1
28169 cat conftest.err >&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } && {
28172 test -z "$ac_c_werror_flag" ||
28173 test ! -s conftest.err
28174 } && test -s conftest$ac_exeext &&
28175 $as_test_x conftest$ac_exeext; then
28176 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
28177 else
28178 echo "$as_me: failed program was:" >&5
28179 sed 's/^/| /' conftest.$ac_ext >&5
28181 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
28184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28185 conftest$ac_exeext conftest.$ac_ext
28186 LIBS=$ac_check_lib_save_LIBS
28188 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
28189 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
28190 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
28191 AST_OSPTK_FOUND=yes
28192 else
28193 AST_OSPTK_FOUND=no
28197 if test "${AST_OSPTK_FOUND}" = "yes"; then
28198 OSPTK_LIB="-losptk -lcrypto -lssl"
28199 OSPTK_HEADER_FOUND="1"
28200 if test "x${OSPTK_DIR}" != "x"; then
28201 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
28202 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
28204 OSPTK_INCLUDE="${OSPTK_INCLUDE} "
28205 saved_cppflags="${CPPFLAGS}"
28206 CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE}"
28207 if test "xosp/osp.h" != "x" ; then
28208 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28209 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
28210 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
28211 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28212 echo $ECHO_N "(cached) $ECHO_C" >&6
28214 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
28215 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
28216 else
28217 # Is the header compilable?
28218 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
28219 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
28220 cat >conftest.$ac_ext <<_ACEOF
28221 /* confdefs.h. */
28222 _ACEOF
28223 cat confdefs.h >>conftest.$ac_ext
28224 cat >>conftest.$ac_ext <<_ACEOF
28225 /* end confdefs.h. */
28226 $ac_includes_default
28227 #include <osp/osp.h>
28228 _ACEOF
28229 rm -f conftest.$ac_objext
28230 if { (ac_try="$ac_compile"
28231 case "(($ac_try" in
28232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233 *) ac_try_echo=$ac_try;;
28234 esac
28235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28236 (eval "$ac_compile") 2>conftest.er1
28237 ac_status=$?
28238 grep -v '^ *+' conftest.er1 >conftest.err
28239 rm -f conftest.er1
28240 cat conftest.err >&5
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); } && {
28243 test -z "$ac_c_werror_flag" ||
28244 test ! -s conftest.err
28245 } && test -s conftest.$ac_objext; then
28246 ac_header_compiler=yes
28247 else
28248 echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28251 ac_header_compiler=no
28254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28256 echo "${ECHO_T}$ac_header_compiler" >&6; }
28258 # Is the header present?
28259 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
28260 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
28261 cat >conftest.$ac_ext <<_ACEOF
28262 /* confdefs.h. */
28263 _ACEOF
28264 cat confdefs.h >>conftest.$ac_ext
28265 cat >>conftest.$ac_ext <<_ACEOF
28266 /* end confdefs.h. */
28267 #include <osp/osp.h>
28268 _ACEOF
28269 if { (ac_try="$ac_cpp conftest.$ac_ext"
28270 case "(($ac_try" in
28271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272 *) ac_try_echo=$ac_try;;
28273 esac
28274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28276 ac_status=$?
28277 grep -v '^ *+' conftest.er1 >conftest.err
28278 rm -f conftest.er1
28279 cat conftest.err >&5
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); } >/dev/null && {
28282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28283 test ! -s conftest.err
28284 }; then
28285 ac_header_preproc=yes
28286 else
28287 echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28290 ac_header_preproc=no
28293 rm -f conftest.err conftest.$ac_ext
28294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28295 echo "${ECHO_T}$ac_header_preproc" >&6; }
28297 # So? What about this header?
28298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28299 yes:no: )
28300 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
28301 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28302 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
28303 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
28304 ac_header_preproc=yes
28306 no:yes:* )
28307 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
28308 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
28309 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
28310 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
28311 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
28312 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
28313 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
28314 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
28315 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
28316 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
28317 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
28318 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
28319 ( cat <<\_ASBOX
28320 ## ------------------------------- ##
28321 ## Report this to www.asterisk.org ##
28322 ## ------------------------------- ##
28323 _ASBOX
28324 ) | sed "s/^/$as_me: WARNING: /" >&2
28326 esac
28327 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
28328 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
28329 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28330 echo $ECHO_N "(cached) $ECHO_C" >&6
28331 else
28332 ac_cv_header_osp_osp_h=$ac_header_preproc
28334 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
28335 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
28338 if test $ac_cv_header_osp_osp_h = yes; then
28339 OSPTK_HEADER_FOUND=1
28340 else
28341 OSPTK_HEADER_FOUND=0
28346 CPPFLAGS="${saved_cppflags}"
28347 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
28348 if test -n "${OSPTK_MANDATORY}" ;
28349 then
28350 { echo "$as_me:$LINENO: ***" >&5
28351 echo "$as_me: ***" >&6;}
28352 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
28353 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
28354 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
28355 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
28356 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
28357 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
28358 exit 1
28360 OSPTK_LIB=""
28361 OSPTK_INCLUDE=""
28362 PBX_OSPTK=0
28363 else
28364 PBX_OSPTK=1
28366 cat >>confdefs.h <<_ACEOF
28367 #define HAVE_OSPTK 1
28368 _ACEOF
28371 elif test -n "${OSPTK_MANDATORY}";
28372 then
28373 { echo "$as_me:$LINENO: ***" >&5
28374 echo "$as_me: ***" >&6;}
28375 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
28376 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
28377 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28378 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28379 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
28380 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
28381 exit 1
28388 if test "${USE_FREETDS}" != "no"; then
28389 pbxlibdir=""
28390 if test "x${FREETDS_DIR}" != "x"; then
28391 if test -d ${FREETDS_DIR}/lib; then
28392 pbxlibdir="-L${FREETDS_DIR}/lib"
28393 else
28394 pbxlibdir="-L${FREETDS_DIR}"
28397 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
28398 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
28399 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
28400 echo $ECHO_N "(cached) $ECHO_C" >&6
28401 else
28402 ac_check_lib_save_LIBS=$LIBS
28403 LIBS="-ltds ${pbxlibdir} $LIBS"
28404 cat >conftest.$ac_ext <<_ACEOF
28405 /* confdefs.h. */
28406 _ACEOF
28407 cat confdefs.h >>conftest.$ac_ext
28408 cat >>conftest.$ac_ext <<_ACEOF
28409 /* end confdefs.h. */
28411 /* Override any GCC internal prototype to avoid an error.
28412 Use char because int might match the return type of a GCC
28413 builtin and then its argument prototype would still apply. */
28414 #ifdef __cplusplus
28415 extern "C"
28416 #endif
28417 char tds_version ();
28419 main ()
28421 return tds_version ();
28423 return 0;
28425 _ACEOF
28426 rm -f conftest.$ac_objext conftest$ac_exeext
28427 if { (ac_try="$ac_link"
28428 case "(($ac_try" in
28429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430 *) ac_try_echo=$ac_try;;
28431 esac
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433 (eval "$ac_link") 2>conftest.er1
28434 ac_status=$?
28435 grep -v '^ *+' conftest.er1 >conftest.err
28436 rm -f conftest.er1
28437 cat conftest.err >&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } && {
28440 test -z "$ac_c_werror_flag" ||
28441 test ! -s conftest.err
28442 } && test -s conftest$ac_exeext &&
28443 $as_test_x conftest$ac_exeext; then
28444 ac_cv_lib_tds_tds_version=yes
28445 else
28446 echo "$as_me: failed program was:" >&5
28447 sed 's/^/| /' conftest.$ac_ext >&5
28449 ac_cv_lib_tds_tds_version=no
28452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28453 conftest$ac_exeext conftest.$ac_ext
28454 LIBS=$ac_check_lib_save_LIBS
28456 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
28457 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
28458 if test $ac_cv_lib_tds_tds_version = yes; then
28459 AST_FREETDS_FOUND=yes
28460 else
28461 AST_FREETDS_FOUND=no
28465 if test "${AST_FREETDS_FOUND}" = "yes"; then
28466 FREETDS_LIB="-ltds "
28467 FREETDS_HEADER_FOUND="1"
28468 if test "x${FREETDS_DIR}" != "x"; then
28469 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
28470 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
28472 FREETDS_INCLUDE="${FREETDS_INCLUDE} "
28473 saved_cppflags="${CPPFLAGS}"
28474 CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
28475 if test "xtds.h" != "x" ; then
28476 if test "${ac_cv_header_tds_h+set}" = set; then
28477 { echo "$as_me:$LINENO: checking for tds.h" >&5
28478 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
28479 if test "${ac_cv_header_tds_h+set}" = set; then
28480 echo $ECHO_N "(cached) $ECHO_C" >&6
28482 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
28483 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
28484 else
28485 # Is the header compilable?
28486 { echo "$as_me:$LINENO: checking tds.h usability" >&5
28487 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
28488 cat >conftest.$ac_ext <<_ACEOF
28489 /* confdefs.h. */
28490 _ACEOF
28491 cat confdefs.h >>conftest.$ac_ext
28492 cat >>conftest.$ac_ext <<_ACEOF
28493 /* end confdefs.h. */
28494 $ac_includes_default
28495 #include <tds.h>
28496 _ACEOF
28497 rm -f conftest.$ac_objext
28498 if { (ac_try="$ac_compile"
28499 case "(($ac_try" in
28500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28501 *) ac_try_echo=$ac_try;;
28502 esac
28503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28504 (eval "$ac_compile") 2>conftest.er1
28505 ac_status=$?
28506 grep -v '^ *+' conftest.er1 >conftest.err
28507 rm -f conftest.er1
28508 cat conftest.err >&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); } && {
28511 test -z "$ac_c_werror_flag" ||
28512 test ! -s conftest.err
28513 } && test -s conftest.$ac_objext; then
28514 ac_header_compiler=yes
28515 else
28516 echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28519 ac_header_compiler=no
28522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28524 echo "${ECHO_T}$ac_header_compiler" >&6; }
28526 # Is the header present?
28527 { echo "$as_me:$LINENO: checking tds.h presence" >&5
28528 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
28529 cat >conftest.$ac_ext <<_ACEOF
28530 /* confdefs.h. */
28531 _ACEOF
28532 cat confdefs.h >>conftest.$ac_ext
28533 cat >>conftest.$ac_ext <<_ACEOF
28534 /* end confdefs.h. */
28535 #include <tds.h>
28536 _ACEOF
28537 if { (ac_try="$ac_cpp conftest.$ac_ext"
28538 case "(($ac_try" in
28539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28540 *) ac_try_echo=$ac_try;;
28541 esac
28542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28544 ac_status=$?
28545 grep -v '^ *+' conftest.er1 >conftest.err
28546 rm -f conftest.er1
28547 cat conftest.err >&5
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); } >/dev/null && {
28550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28551 test ! -s conftest.err
28552 }; then
28553 ac_header_preproc=yes
28554 else
28555 echo "$as_me: failed program was:" >&5
28556 sed 's/^/| /' conftest.$ac_ext >&5
28558 ac_header_preproc=no
28561 rm -f conftest.err conftest.$ac_ext
28562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28563 echo "${ECHO_T}$ac_header_preproc" >&6; }
28565 # So? What about this header?
28566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28567 yes:no: )
28568 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
28569 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28570 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
28571 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
28572 ac_header_preproc=yes
28574 no:yes:* )
28575 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
28576 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
28577 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
28578 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
28579 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
28580 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
28581 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
28582 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
28583 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
28584 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
28585 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
28586 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
28587 ( cat <<\_ASBOX
28588 ## ------------------------------- ##
28589 ## Report this to www.asterisk.org ##
28590 ## ------------------------------- ##
28591 _ASBOX
28592 ) | sed "s/^/$as_me: WARNING: /" >&2
28594 esac
28595 { echo "$as_me:$LINENO: checking for tds.h" >&5
28596 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
28597 if test "${ac_cv_header_tds_h+set}" = set; then
28598 echo $ECHO_N "(cached) $ECHO_C" >&6
28599 else
28600 ac_cv_header_tds_h=$ac_header_preproc
28602 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
28603 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
28606 if test $ac_cv_header_tds_h = yes; then
28607 FREETDS_HEADER_FOUND=1
28608 else
28609 FREETDS_HEADER_FOUND=0
28614 CPPFLAGS="${saved_cppflags}"
28615 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
28616 if test -n "${FREETDS_MANDATORY}" ;
28617 then
28618 { echo "$as_me:$LINENO: ***" >&5
28619 echo "$as_me: ***" >&6;}
28620 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
28621 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
28622 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
28623 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
28624 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
28625 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
28626 exit 1
28628 FREETDS_LIB=""
28629 FREETDS_INCLUDE=""
28630 PBX_FREETDS=0
28631 else
28632 PBX_FREETDS=1
28634 cat >>confdefs.h <<_ACEOF
28635 #define HAVE_FREETDS 1
28636 _ACEOF
28639 elif test -n "${FREETDS_MANDATORY}";
28640 then
28641 { echo "$as_me:$LINENO: ***" >&5
28642 echo "$as_me: ***" >&6;}
28643 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
28644 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
28645 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28646 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28647 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
28648 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
28649 exit 1
28653 if test "${PBX_FREETDS}" != "0";
28654 then
28655 if test "${FREETDS_DIR}x" = "x";
28656 then
28657 for tds_dir in /usr /usr/local;
28659 if test -f "${tds_dir}/include/tdsver.h";
28660 then
28661 FREETDS_DIR="${tds_dir}"
28663 done
28665 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
28666 *0.64*)
28667 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
28669 *0.63*)
28670 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
28672 *0.62*)
28673 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
28676 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
28678 esac
28682 if test "${USE_TERMCAP}" != "no"; then
28683 pbxlibdir=""
28684 if test "x${TERMCAP_DIR}" != "x"; then
28685 if test -d ${TERMCAP_DIR}/lib; then
28686 pbxlibdir="-L${TERMCAP_DIR}/lib"
28687 else
28688 pbxlibdir="-L${TERMCAP_DIR}"
28691 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
28692 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
28693 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
28694 echo $ECHO_N "(cached) $ECHO_C" >&6
28695 else
28696 ac_check_lib_save_LIBS=$LIBS
28697 LIBS="-ltermcap ${pbxlibdir} $LIBS"
28698 cat >conftest.$ac_ext <<_ACEOF
28699 /* confdefs.h. */
28700 _ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h. */
28705 /* Override any GCC internal prototype to avoid an error.
28706 Use char because int might match the return type of a GCC
28707 builtin and then its argument prototype would still apply. */
28708 #ifdef __cplusplus
28709 extern "C"
28710 #endif
28711 char tgetent ();
28713 main ()
28715 return tgetent ();
28717 return 0;
28719 _ACEOF
28720 rm -f conftest.$ac_objext conftest$ac_exeext
28721 if { (ac_try="$ac_link"
28722 case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28725 esac
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_link") 2>conftest.er1
28728 ac_status=$?
28729 grep -v '^ *+' conftest.er1 >conftest.err
28730 rm -f conftest.er1
28731 cat conftest.err >&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } && {
28734 test -z "$ac_c_werror_flag" ||
28735 test ! -s conftest.err
28736 } && test -s conftest$ac_exeext &&
28737 $as_test_x conftest$ac_exeext; then
28738 ac_cv_lib_termcap_tgetent=yes
28739 else
28740 echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28743 ac_cv_lib_termcap_tgetent=no
28746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28747 conftest$ac_exeext conftest.$ac_ext
28748 LIBS=$ac_check_lib_save_LIBS
28750 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
28751 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
28752 if test $ac_cv_lib_termcap_tgetent = yes; then
28753 AST_TERMCAP_FOUND=yes
28754 else
28755 AST_TERMCAP_FOUND=no
28759 if test "${AST_TERMCAP_FOUND}" = "yes"; then
28760 TERMCAP_LIB="-ltermcap "
28761 TERMCAP_HEADER_FOUND="1"
28762 if test "x${TERMCAP_DIR}" != "x"; then
28763 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
28764 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
28766 TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
28767 saved_cppflags="${CPPFLAGS}"
28768 CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
28769 if test "x" != "x" ; then
28770 if test "${ac_cv_header_+set}" = set; then
28771 { echo "$as_me:$LINENO: checking for " >&5
28772 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28773 if test "${ac_cv_header_+set}" = set; then
28774 echo $ECHO_N "(cached) $ECHO_C" >&6
28776 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28777 echo "${ECHO_T}$ac_cv_header_" >&6; }
28778 else
28779 # Is the header compilable?
28780 { echo "$as_me:$LINENO: checking usability" >&5
28781 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28782 cat >conftest.$ac_ext <<_ACEOF
28783 /* confdefs.h. */
28784 _ACEOF
28785 cat confdefs.h >>conftest.$ac_ext
28786 cat >>conftest.$ac_ext <<_ACEOF
28787 /* end confdefs.h. */
28788 $ac_includes_default
28789 #include <>
28790 _ACEOF
28791 rm -f conftest.$ac_objext
28792 if { (ac_try="$ac_compile"
28793 case "(($ac_try" in
28794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28795 *) ac_try_echo=$ac_try;;
28796 esac
28797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28798 (eval "$ac_compile") 2>conftest.er1
28799 ac_status=$?
28800 grep -v '^ *+' conftest.er1 >conftest.err
28801 rm -f conftest.er1
28802 cat conftest.err >&5
28803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); } && {
28805 test -z "$ac_c_werror_flag" ||
28806 test ! -s conftest.err
28807 } && test -s conftest.$ac_objext; then
28808 ac_header_compiler=yes
28809 else
28810 echo "$as_me: failed program was:" >&5
28811 sed 's/^/| /' conftest.$ac_ext >&5
28813 ac_header_compiler=no
28816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28818 echo "${ECHO_T}$ac_header_compiler" >&6; }
28820 # Is the header present?
28821 { echo "$as_me:$LINENO: checking presence" >&5
28822 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28823 cat >conftest.$ac_ext <<_ACEOF
28824 /* confdefs.h. */
28825 _ACEOF
28826 cat confdefs.h >>conftest.$ac_ext
28827 cat >>conftest.$ac_ext <<_ACEOF
28828 /* end confdefs.h. */
28829 #include <>
28830 _ACEOF
28831 if { (ac_try="$ac_cpp conftest.$ac_ext"
28832 case "(($ac_try" in
28833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834 *) ac_try_echo=$ac_try;;
28835 esac
28836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28838 ac_status=$?
28839 grep -v '^ *+' conftest.er1 >conftest.err
28840 rm -f conftest.er1
28841 cat conftest.err >&5
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); } >/dev/null && {
28844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28845 test ! -s conftest.err
28846 }; then
28847 ac_header_preproc=yes
28848 else
28849 echo "$as_me: failed program was:" >&5
28850 sed 's/^/| /' conftest.$ac_ext >&5
28852 ac_header_preproc=no
28855 rm -f conftest.err conftest.$ac_ext
28856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28857 echo "${ECHO_T}$ac_header_preproc" >&6; }
28859 # So? What about this header?
28860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28861 yes:no: )
28862 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28863 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28864 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28865 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28866 ac_header_preproc=yes
28868 no:yes:* )
28869 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28870 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28872 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28873 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28874 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28875 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28876 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28877 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28878 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28879 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28880 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28881 ( cat <<\_ASBOX
28882 ## ------------------------------- ##
28883 ## Report this to www.asterisk.org ##
28884 ## ------------------------------- ##
28885 _ASBOX
28886 ) | sed "s/^/$as_me: WARNING: /" >&2
28888 esac
28889 { echo "$as_me:$LINENO: checking for " >&5
28890 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28891 if test "${ac_cv_header_+set}" = set; then
28892 echo $ECHO_N "(cached) $ECHO_C" >&6
28893 else
28894 ac_cv_header_=$ac_header_preproc
28896 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28897 echo "${ECHO_T}$ac_cv_header_" >&6; }
28900 if test $ac_cv_header_ = yes; then
28901 TERMCAP_HEADER_FOUND=1
28902 else
28903 TERMCAP_HEADER_FOUND=0
28908 CPPFLAGS="${saved_cppflags}"
28909 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
28910 if test -n "${TERMCAP_MANDATORY}" ;
28911 then
28912 { echo "$as_me:$LINENO: ***" >&5
28913 echo "$as_me: ***" >&6;}
28914 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
28915 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
28916 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
28917 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
28918 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28919 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28920 exit 1
28922 TERMCAP_LIB=""
28923 TERMCAP_INCLUDE=""
28924 PBX_TERMCAP=0
28925 else
28926 PBX_TERMCAP=1
28928 cat >>confdefs.h <<_ACEOF
28929 #define HAVE_TERMCAP 1
28930 _ACEOF
28933 elif test -n "${TERMCAP_MANDATORY}";
28934 then
28935 { echo "$as_me:$LINENO: ***" >&5
28936 echo "$as_me: ***" >&6;}
28937 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
28938 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
28939 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28940 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28941 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28942 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28943 exit 1
28949 if test "${USE_TINFO}" != "no"; then
28950 pbxlibdir=""
28951 if test "x${TINFO_DIR}" != "x"; then
28952 if test -d ${TINFO_DIR}/lib; then
28953 pbxlibdir="-L${TINFO_DIR}/lib"
28954 else
28955 pbxlibdir="-L${TINFO_DIR}"
28958 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
28959 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
28960 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
28961 echo $ECHO_N "(cached) $ECHO_C" >&6
28962 else
28963 ac_check_lib_save_LIBS=$LIBS
28964 LIBS="-ltinfo ${pbxlibdir} $LIBS"
28965 cat >conftest.$ac_ext <<_ACEOF
28966 /* confdefs.h. */
28967 _ACEOF
28968 cat confdefs.h >>conftest.$ac_ext
28969 cat >>conftest.$ac_ext <<_ACEOF
28970 /* end confdefs.h. */
28972 /* Override any GCC internal prototype to avoid an error.
28973 Use char because int might match the return type of a GCC
28974 builtin and then its argument prototype would still apply. */
28975 #ifdef __cplusplus
28976 extern "C"
28977 #endif
28978 char tgetent ();
28980 main ()
28982 return tgetent ();
28984 return 0;
28986 _ACEOF
28987 rm -f conftest.$ac_objext conftest$ac_exeext
28988 if { (ac_try="$ac_link"
28989 case "(($ac_try" in
28990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28991 *) ac_try_echo=$ac_try;;
28992 esac
28993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28994 (eval "$ac_link") 2>conftest.er1
28995 ac_status=$?
28996 grep -v '^ *+' conftest.er1 >conftest.err
28997 rm -f conftest.er1
28998 cat conftest.err >&5
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); } && {
29001 test -z "$ac_c_werror_flag" ||
29002 test ! -s conftest.err
29003 } && test -s conftest$ac_exeext &&
29004 $as_test_x conftest$ac_exeext; then
29005 ac_cv_lib_tinfo_tgetent=yes
29006 else
29007 echo "$as_me: failed program was:" >&5
29008 sed 's/^/| /' conftest.$ac_ext >&5
29010 ac_cv_lib_tinfo_tgetent=no
29013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29014 conftest$ac_exeext conftest.$ac_ext
29015 LIBS=$ac_check_lib_save_LIBS
29017 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
29018 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
29019 if test $ac_cv_lib_tinfo_tgetent = yes; then
29020 AST_TINFO_FOUND=yes
29021 else
29022 AST_TINFO_FOUND=no
29026 if test "${AST_TINFO_FOUND}" = "yes"; then
29027 TINFO_LIB="-ltinfo "
29028 TINFO_HEADER_FOUND="1"
29029 if test "x${TINFO_DIR}" != "x"; then
29030 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
29031 TINFO_INCLUDE="-I${TINFO_DIR}/include"
29033 TINFO_INCLUDE="${TINFO_INCLUDE} "
29034 saved_cppflags="${CPPFLAGS}"
29035 CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
29036 if test "x" != "x" ; then
29037 if test "${ac_cv_header_+set}" = set; then
29038 { echo "$as_me:$LINENO: checking for " >&5
29039 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29040 if test "${ac_cv_header_+set}" = set; then
29041 echo $ECHO_N "(cached) $ECHO_C" >&6
29043 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29044 echo "${ECHO_T}$ac_cv_header_" >&6; }
29045 else
29046 # Is the header compilable?
29047 { echo "$as_me:$LINENO: checking usability" >&5
29048 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29049 cat >conftest.$ac_ext <<_ACEOF
29050 /* confdefs.h. */
29051 _ACEOF
29052 cat confdefs.h >>conftest.$ac_ext
29053 cat >>conftest.$ac_ext <<_ACEOF
29054 /* end confdefs.h. */
29055 $ac_includes_default
29056 #include <>
29057 _ACEOF
29058 rm -f conftest.$ac_objext
29059 if { (ac_try="$ac_compile"
29060 case "(($ac_try" in
29061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062 *) ac_try_echo=$ac_try;;
29063 esac
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065 (eval "$ac_compile") 2>conftest.er1
29066 ac_status=$?
29067 grep -v '^ *+' conftest.er1 >conftest.err
29068 rm -f conftest.er1
29069 cat conftest.err >&5
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); } && {
29072 test -z "$ac_c_werror_flag" ||
29073 test ! -s conftest.err
29074 } && test -s conftest.$ac_objext; then
29075 ac_header_compiler=yes
29076 else
29077 echo "$as_me: failed program was:" >&5
29078 sed 's/^/| /' conftest.$ac_ext >&5
29080 ac_header_compiler=no
29083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29085 echo "${ECHO_T}$ac_header_compiler" >&6; }
29087 # Is the header present?
29088 { echo "$as_me:$LINENO: checking presence" >&5
29089 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29090 cat >conftest.$ac_ext <<_ACEOF
29091 /* confdefs.h. */
29092 _ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h. */
29096 #include <>
29097 _ACEOF
29098 if { (ac_try="$ac_cpp conftest.$ac_ext"
29099 case "(($ac_try" in
29100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101 *) ac_try_echo=$ac_try;;
29102 esac
29103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29105 ac_status=$?
29106 grep -v '^ *+' conftest.er1 >conftest.err
29107 rm -f conftest.er1
29108 cat conftest.err >&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); } >/dev/null && {
29111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29112 test ! -s conftest.err
29113 }; then
29114 ac_header_preproc=yes
29115 else
29116 echo "$as_me: failed program was:" >&5
29117 sed 's/^/| /' conftest.$ac_ext >&5
29119 ac_header_preproc=no
29122 rm -f conftest.err conftest.$ac_ext
29123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29124 echo "${ECHO_T}$ac_header_preproc" >&6; }
29126 # So? What about this header?
29127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29128 yes:no: )
29129 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29130 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29131 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29132 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29133 ac_header_preproc=yes
29135 no:yes:* )
29136 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29137 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29138 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29139 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29140 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29141 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29142 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29143 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29144 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29145 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29146 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29147 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29148 ( cat <<\_ASBOX
29149 ## ------------------------------- ##
29150 ## Report this to www.asterisk.org ##
29151 ## ------------------------------- ##
29152 _ASBOX
29153 ) | sed "s/^/$as_me: WARNING: /" >&2
29155 esac
29156 { echo "$as_me:$LINENO: checking for " >&5
29157 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29158 if test "${ac_cv_header_+set}" = set; then
29159 echo $ECHO_N "(cached) $ECHO_C" >&6
29160 else
29161 ac_cv_header_=$ac_header_preproc
29163 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29164 echo "${ECHO_T}$ac_cv_header_" >&6; }
29167 if test $ac_cv_header_ = yes; then
29168 TINFO_HEADER_FOUND=1
29169 else
29170 TINFO_HEADER_FOUND=0
29175 CPPFLAGS="${saved_cppflags}"
29176 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
29177 if test -n "${TINFO_MANDATORY}" ;
29178 then
29179 { echo "$as_me:$LINENO: ***" >&5
29180 echo "$as_me: ***" >&6;}
29181 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
29182 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
29183 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
29184 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
29185 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
29186 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
29187 exit 1
29189 TINFO_LIB=""
29190 TINFO_INCLUDE=""
29191 PBX_TINFO=0
29192 else
29193 PBX_TINFO=1
29195 cat >>confdefs.h <<_ACEOF
29196 #define HAVE_TINFO 1
29197 _ACEOF
29200 elif test -n "${TINFO_MANDATORY}";
29201 then
29202 { echo "$as_me:$LINENO: ***" >&5
29203 echo "$as_me: ***" >&6;}
29204 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
29205 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
29206 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29207 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29208 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
29209 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
29210 exit 1
29215 if test "${host_os}" != "linux-gnu" ; then
29216 tonezone_extra_lib="-lm"
29219 if test "${PBX_DAHDI}" = "1" || test "${USE_ZAPTEL}" = "no"; then
29220 tonezone_dir="dahdi"
29221 if test "x${DAHDI_DIR}" != "x"; then
29222 tonezone_extra_inc="${DAHDI_INCLUDE}"
29224 else
29225 tonezone_dir="zaptel"
29226 if test "x${ZAPTEL_DIR}" != "x"; then
29227 tonezone_extra_inc="${ZAPTEL_INCLUDE}"
29232 if test "${USE_TONEZONE}" != "no"; then
29233 pbxlibdir=""
29234 if test "x${TONEZONE_DIR}" != "x"; then
29235 if test -d ${TONEZONE_DIR}/lib; then
29236 pbxlibdir="-L${TONEZONE_DIR}/lib"
29237 else
29238 pbxlibdir="-L${TONEZONE_DIR}"
29241 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
29242 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
29243 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
29244 echo $ECHO_N "(cached) $ECHO_C" >&6
29245 else
29246 ac_check_lib_save_LIBS=$LIBS
29247 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra_lib} $LIBS"
29248 cat >conftest.$ac_ext <<_ACEOF
29249 /* confdefs.h. */
29250 _ACEOF
29251 cat confdefs.h >>conftest.$ac_ext
29252 cat >>conftest.$ac_ext <<_ACEOF
29253 /* end confdefs.h. */
29255 /* Override any GCC internal prototype to avoid an error.
29256 Use char because int might match the return type of a GCC
29257 builtin and then its argument prototype would still apply. */
29258 #ifdef __cplusplus
29259 extern "C"
29260 #endif
29261 char tone_zone_find ();
29263 main ()
29265 return tone_zone_find ();
29267 return 0;
29269 _ACEOF
29270 rm -f conftest.$ac_objext conftest$ac_exeext
29271 if { (ac_try="$ac_link"
29272 case "(($ac_try" in
29273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29274 *) ac_try_echo=$ac_try;;
29275 esac
29276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29277 (eval "$ac_link") 2>conftest.er1
29278 ac_status=$?
29279 grep -v '^ *+' conftest.er1 >conftest.err
29280 rm -f conftest.er1
29281 cat conftest.err >&5
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); } && {
29284 test -z "$ac_c_werror_flag" ||
29285 test ! -s conftest.err
29286 } && test -s conftest$ac_exeext &&
29287 $as_test_x conftest$ac_exeext; then
29288 ac_cv_lib_tonezone_tone_zone_find=yes
29289 else
29290 echo "$as_me: failed program was:" >&5
29291 sed 's/^/| /' conftest.$ac_ext >&5
29293 ac_cv_lib_tonezone_tone_zone_find=no
29296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29297 conftest$ac_exeext conftest.$ac_ext
29298 LIBS=$ac_check_lib_save_LIBS
29300 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
29301 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
29302 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
29303 AST_TONEZONE_FOUND=yes
29304 else
29305 AST_TONEZONE_FOUND=no
29309 if test "${AST_TONEZONE_FOUND}" = "yes"; then
29310 TONEZONE_LIB="-ltonezone ${tonezone_extra_lib}"
29311 TONEZONE_HEADER_FOUND="1"
29312 if test "x${TONEZONE_DIR}" != "x"; then
29313 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
29314 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
29316 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} ${tonezone_extra_inc}"
29317 saved_cppflags="${CPPFLAGS}"
29318 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
29319 if test "x${tonezone_dir}/tonezone.h" != "x" ; then
29320 as_ac_Header=`echo "ac_cv_header_${tonezone_dir}/tonezone.h" | $as_tr_sh`
29321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29322 { echo "$as_me:$LINENO: checking for ${tonezone_dir}/tonezone.h" >&5
29323 echo $ECHO_N "checking for ${tonezone_dir}/tonezone.h... $ECHO_C" >&6; }
29324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29325 echo $ECHO_N "(cached) $ECHO_C" >&6
29327 ac_res=`eval echo '${'$as_ac_Header'}'`
29328 { echo "$as_me:$LINENO: result: $ac_res" >&5
29329 echo "${ECHO_T}$ac_res" >&6; }
29330 else
29331 # Is the header compilable?
29332 { echo "$as_me:$LINENO: checking ${tonezone_dir}/tonezone.h usability" >&5
29333 echo $ECHO_N "checking ${tonezone_dir}/tonezone.h usability... $ECHO_C" >&6; }
29334 cat >conftest.$ac_ext <<_ACEOF
29335 /* confdefs.h. */
29336 _ACEOF
29337 cat confdefs.h >>conftest.$ac_ext
29338 cat >>conftest.$ac_ext <<_ACEOF
29339 /* end confdefs.h. */
29340 $ac_includes_default
29341 #include <${tonezone_dir}/tonezone.h>
29342 _ACEOF
29343 rm -f conftest.$ac_objext
29344 if { (ac_try="$ac_compile"
29345 case "(($ac_try" in
29346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29347 *) ac_try_echo=$ac_try;;
29348 esac
29349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29350 (eval "$ac_compile") 2>conftest.er1
29351 ac_status=$?
29352 grep -v '^ *+' conftest.er1 >conftest.err
29353 rm -f conftest.er1
29354 cat conftest.err >&5
29355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29356 (exit $ac_status); } && {
29357 test -z "$ac_c_werror_flag" ||
29358 test ! -s conftest.err
29359 } && test -s conftest.$ac_objext; then
29360 ac_header_compiler=yes
29361 else
29362 echo "$as_me: failed program was:" >&5
29363 sed 's/^/| /' conftest.$ac_ext >&5
29365 ac_header_compiler=no
29368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29370 echo "${ECHO_T}$ac_header_compiler" >&6; }
29372 # Is the header present?
29373 { echo "$as_me:$LINENO: checking ${tonezone_dir}/tonezone.h presence" >&5
29374 echo $ECHO_N "checking ${tonezone_dir}/tonezone.h presence... $ECHO_C" >&6; }
29375 cat >conftest.$ac_ext <<_ACEOF
29376 /* confdefs.h. */
29377 _ACEOF
29378 cat confdefs.h >>conftest.$ac_ext
29379 cat >>conftest.$ac_ext <<_ACEOF
29380 /* end confdefs.h. */
29381 #include <${tonezone_dir}/tonezone.h>
29382 _ACEOF
29383 if { (ac_try="$ac_cpp conftest.$ac_ext"
29384 case "(($ac_try" in
29385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29386 *) ac_try_echo=$ac_try;;
29387 esac
29388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29390 ac_status=$?
29391 grep -v '^ *+' conftest.er1 >conftest.err
29392 rm -f conftest.er1
29393 cat conftest.err >&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); } >/dev/null && {
29396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29397 test ! -s conftest.err
29398 }; then
29399 ac_header_preproc=yes
29400 else
29401 echo "$as_me: failed program was:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29404 ac_header_preproc=no
29407 rm -f conftest.err conftest.$ac_ext
29408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29409 echo "${ECHO_T}$ac_header_preproc" >&6; }
29411 # So? What about this header?
29412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29413 yes:no: )
29414 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
29415 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29416 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the compiler's result" >&5
29417 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the compiler's result" >&2;}
29418 ac_header_preproc=yes
29420 no:yes:* )
29421 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: present but cannot be compiled" >&5
29422 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: present but cannot be compiled" >&2;}
29423 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: check for missing prerequisite headers?" >&5
29424 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: check for missing prerequisite headers?" >&2;}
29425 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: see the Autoconf documentation" >&5
29426 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: see the Autoconf documentation" >&2;}
29427 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
29428 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
29429 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the preprocessor's result" >&5
29430 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the preprocessor's result" >&2;}
29431 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: in the future, the compiler will take precedence" >&5
29432 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: in the future, the compiler will take precedence" >&2;}
29433 ( cat <<\_ASBOX
29434 ## ------------------------------- ##
29435 ## Report this to www.asterisk.org ##
29436 ## ------------------------------- ##
29437 _ASBOX
29438 ) | sed "s/^/$as_me: WARNING: /" >&2
29440 esac
29441 { echo "$as_me:$LINENO: checking for ${tonezone_dir}/tonezone.h" >&5
29442 echo $ECHO_N "checking for ${tonezone_dir}/tonezone.h... $ECHO_C" >&6; }
29443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29445 else
29446 eval "$as_ac_Header=\$ac_header_preproc"
29448 ac_res=`eval echo '${'$as_ac_Header'}'`
29449 { echo "$as_me:$LINENO: result: $ac_res" >&5
29450 echo "${ECHO_T}$ac_res" >&6; }
29453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29454 TONEZONE_HEADER_FOUND=1
29455 else
29456 TONEZONE_HEADER_FOUND=0
29461 CPPFLAGS="${saved_cppflags}"
29462 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
29463 if test -n "${TONEZONE_MANDATORY}" ;
29464 then
29465 { echo "$as_me:$LINENO: ***" >&5
29466 echo "$as_me: ***" >&6;}
29467 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
29468 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
29469 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
29470 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
29471 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
29472 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
29473 exit 1
29475 TONEZONE_LIB=""
29476 TONEZONE_INCLUDE=""
29477 PBX_TONEZONE=0
29478 else
29479 PBX_TONEZONE=1
29481 cat >>confdefs.h <<_ACEOF
29482 #define HAVE_TONEZONE 1
29483 _ACEOF
29486 elif test -n "${TONEZONE_MANDATORY}";
29487 then
29488 { echo "$as_me:$LINENO: ***" >&5
29489 echo "$as_me: ***" >&6;}
29490 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
29491 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
29492 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29493 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29494 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
29495 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
29496 exit 1
29502 if test "${USE_USB}" != "no"; then
29503 pbxlibdir=""
29504 if test "x${USB_DIR}" != "x"; then
29505 if test -d ${USB_DIR}/lib; then
29506 pbxlibdir="-L${USB_DIR}/lib"
29507 else
29508 pbxlibdir="-L${USB_DIR}"
29511 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
29512 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
29513 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
29514 echo $ECHO_N "(cached) $ECHO_C" >&6
29515 else
29516 ac_check_lib_save_LIBS=$LIBS
29517 LIBS="-lusb ${pbxlibdir} $LIBS"
29518 cat >conftest.$ac_ext <<_ACEOF
29519 /* confdefs.h. */
29520 _ACEOF
29521 cat confdefs.h >>conftest.$ac_ext
29522 cat >>conftest.$ac_ext <<_ACEOF
29523 /* end confdefs.h. */
29525 /* Override any GCC internal prototype to avoid an error.
29526 Use char because int might match the return type of a GCC
29527 builtin and then its argument prototype would still apply. */
29528 #ifdef __cplusplus
29529 extern "C"
29530 #endif
29531 char usb_init ();
29533 main ()
29535 return usb_init ();
29537 return 0;
29539 _ACEOF
29540 rm -f conftest.$ac_objext conftest$ac_exeext
29541 if { (ac_try="$ac_link"
29542 case "(($ac_try" in
29543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544 *) ac_try_echo=$ac_try;;
29545 esac
29546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29547 (eval "$ac_link") 2>conftest.er1
29548 ac_status=$?
29549 grep -v '^ *+' conftest.er1 >conftest.err
29550 rm -f conftest.er1
29551 cat conftest.err >&5
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } && {
29554 test -z "$ac_c_werror_flag" ||
29555 test ! -s conftest.err
29556 } && test -s conftest$ac_exeext &&
29557 $as_test_x conftest$ac_exeext; then
29558 ac_cv_lib_usb_usb_init=yes
29559 else
29560 echo "$as_me: failed program was:" >&5
29561 sed 's/^/| /' conftest.$ac_ext >&5
29563 ac_cv_lib_usb_usb_init=no
29566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29567 conftest$ac_exeext conftest.$ac_ext
29568 LIBS=$ac_check_lib_save_LIBS
29570 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
29571 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
29572 if test $ac_cv_lib_usb_usb_init = yes; then
29573 AST_USB_FOUND=yes
29574 else
29575 AST_USB_FOUND=no
29579 if test "${AST_USB_FOUND}" = "yes"; then
29580 USB_LIB="-lusb "
29581 USB_HEADER_FOUND="1"
29582 if test "x${USB_DIR}" != "x"; then
29583 USB_LIB="${pbxlibdir} ${USB_LIB}"
29584 USB_INCLUDE="-I${USB_DIR}/include"
29586 USB_INCLUDE="${USB_INCLUDE} "
29587 saved_cppflags="${CPPFLAGS}"
29588 CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE}"
29589 if test "xusb.h" != "x" ; then
29590 if test "${ac_cv_header_usb_h+set}" = set; then
29591 { echo "$as_me:$LINENO: checking for usb.h" >&5
29592 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
29593 if test "${ac_cv_header_usb_h+set}" = set; then
29594 echo $ECHO_N "(cached) $ECHO_C" >&6
29596 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
29597 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
29598 else
29599 # Is the header compilable?
29600 { echo "$as_me:$LINENO: checking usb.h usability" >&5
29601 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
29602 cat >conftest.$ac_ext <<_ACEOF
29603 /* confdefs.h. */
29604 _ACEOF
29605 cat confdefs.h >>conftest.$ac_ext
29606 cat >>conftest.$ac_ext <<_ACEOF
29607 /* end confdefs.h. */
29608 $ac_includes_default
29609 #include <usb.h>
29610 _ACEOF
29611 rm -f conftest.$ac_objext
29612 if { (ac_try="$ac_compile"
29613 case "(($ac_try" in
29614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29615 *) ac_try_echo=$ac_try;;
29616 esac
29617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29618 (eval "$ac_compile") 2>conftest.er1
29619 ac_status=$?
29620 grep -v '^ *+' conftest.er1 >conftest.err
29621 rm -f conftest.er1
29622 cat conftest.err >&5
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); } && {
29625 test -z "$ac_c_werror_flag" ||
29626 test ! -s conftest.err
29627 } && test -s conftest.$ac_objext; then
29628 ac_header_compiler=yes
29629 else
29630 echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29633 ac_header_compiler=no
29636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29638 echo "${ECHO_T}$ac_header_compiler" >&6; }
29640 # Is the header present?
29641 { echo "$as_me:$LINENO: checking usb.h presence" >&5
29642 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
29643 cat >conftest.$ac_ext <<_ACEOF
29644 /* confdefs.h. */
29645 _ACEOF
29646 cat confdefs.h >>conftest.$ac_ext
29647 cat >>conftest.$ac_ext <<_ACEOF
29648 /* end confdefs.h. */
29649 #include <usb.h>
29650 _ACEOF
29651 if { (ac_try="$ac_cpp conftest.$ac_ext"
29652 case "(($ac_try" in
29653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654 *) ac_try_echo=$ac_try;;
29655 esac
29656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29658 ac_status=$?
29659 grep -v '^ *+' conftest.er1 >conftest.err
29660 rm -f conftest.er1
29661 cat conftest.err >&5
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); } >/dev/null && {
29664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29665 test ! -s conftest.err
29666 }; then
29667 ac_header_preproc=yes
29668 else
29669 echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29672 ac_header_preproc=no
29675 rm -f conftest.err conftest.$ac_ext
29676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29677 echo "${ECHO_T}$ac_header_preproc" >&6; }
29679 # So? What about this header?
29680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29681 yes:no: )
29682 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
29683 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29684 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
29685 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
29686 ac_header_preproc=yes
29688 no:yes:* )
29689 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
29690 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
29691 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
29692 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
29693 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
29694 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
29695 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
29696 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
29697 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
29698 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
29699 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
29700 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
29701 ( cat <<\_ASBOX
29702 ## ------------------------------- ##
29703 ## Report this to www.asterisk.org ##
29704 ## ------------------------------- ##
29705 _ASBOX
29706 ) | sed "s/^/$as_me: WARNING: /" >&2
29708 esac
29709 { echo "$as_me:$LINENO: checking for usb.h" >&5
29710 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
29711 if test "${ac_cv_header_usb_h+set}" = set; then
29712 echo $ECHO_N "(cached) $ECHO_C" >&6
29713 else
29714 ac_cv_header_usb_h=$ac_header_preproc
29716 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
29717 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
29720 if test $ac_cv_header_usb_h = yes; then
29721 USB_HEADER_FOUND=1
29722 else
29723 USB_HEADER_FOUND=0
29728 CPPFLAGS="${saved_cppflags}"
29729 if test "x${USB_HEADER_FOUND}" = "x0" ; then
29730 if test -n "${USB_MANDATORY}" ;
29731 then
29732 { echo "$as_me:$LINENO: ***" >&5
29733 echo "$as_me: ***" >&6;}
29734 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
29735 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
29736 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
29737 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
29738 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
29739 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
29740 exit 1
29742 USB_LIB=""
29743 USB_INCLUDE=""
29744 PBX_USB=0
29745 else
29746 PBX_USB=1
29748 cat >>confdefs.h <<_ACEOF
29749 #define HAVE_USB 1
29750 _ACEOF
29753 elif test -n "${USB_MANDATORY}";
29754 then
29755 { echo "$as_me:$LINENO: ***" >&5
29756 echo "$as_me: ***" >&6;}
29757 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
29758 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
29759 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29760 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29761 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
29762 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
29763 exit 1
29769 if test "${USE_VORBIS}" != "no"; then
29770 pbxlibdir=""
29771 if test "x${VORBIS_DIR}" != "x"; then
29772 if test -d ${VORBIS_DIR}/lib; then
29773 pbxlibdir="-L${VORBIS_DIR}/lib"
29774 else
29775 pbxlibdir="-L${VORBIS_DIR}"
29778 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
29779 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
29780 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
29781 echo $ECHO_N "(cached) $ECHO_C" >&6
29782 else
29783 ac_check_lib_save_LIBS=$LIBS
29784 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
29785 cat >conftest.$ac_ext <<_ACEOF
29786 /* confdefs.h. */
29787 _ACEOF
29788 cat confdefs.h >>conftest.$ac_ext
29789 cat >>conftest.$ac_ext <<_ACEOF
29790 /* end confdefs.h. */
29792 /* Override any GCC internal prototype to avoid an error.
29793 Use char because int might match the return type of a GCC
29794 builtin and then its argument prototype would still apply. */
29795 #ifdef __cplusplus
29796 extern "C"
29797 #endif
29798 char vorbis_info_init ();
29800 main ()
29802 return vorbis_info_init ();
29804 return 0;
29806 _ACEOF
29807 rm -f conftest.$ac_objext conftest$ac_exeext
29808 if { (ac_try="$ac_link"
29809 case "(($ac_try" in
29810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811 *) ac_try_echo=$ac_try;;
29812 esac
29813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814 (eval "$ac_link") 2>conftest.er1
29815 ac_status=$?
29816 grep -v '^ *+' conftest.er1 >conftest.err
29817 rm -f conftest.er1
29818 cat conftest.err >&5
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); } && {
29821 test -z "$ac_c_werror_flag" ||
29822 test ! -s conftest.err
29823 } && test -s conftest$ac_exeext &&
29824 $as_test_x conftest$ac_exeext; then
29825 ac_cv_lib_vorbis_vorbis_info_init=yes
29826 else
29827 echo "$as_me: failed program was:" >&5
29828 sed 's/^/| /' conftest.$ac_ext >&5
29830 ac_cv_lib_vorbis_vorbis_info_init=no
29833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29834 conftest$ac_exeext conftest.$ac_ext
29835 LIBS=$ac_check_lib_save_LIBS
29837 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
29838 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
29839 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
29840 AST_VORBIS_FOUND=yes
29841 else
29842 AST_VORBIS_FOUND=no
29846 if test "${AST_VORBIS_FOUND}" = "yes"; then
29847 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
29848 VORBIS_HEADER_FOUND="1"
29849 if test "x${VORBIS_DIR}" != "x"; then
29850 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
29851 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
29853 VORBIS_INCLUDE="${VORBIS_INCLUDE} "
29854 saved_cppflags="${CPPFLAGS}"
29855 CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
29856 if test "xvorbis/codec.h" != "x" ; then
29857 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29858 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29859 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29860 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29861 echo $ECHO_N "(cached) $ECHO_C" >&6
29863 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29864 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29865 else
29866 # Is the header compilable?
29867 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
29868 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
29869 cat >conftest.$ac_ext <<_ACEOF
29870 /* confdefs.h. */
29871 _ACEOF
29872 cat confdefs.h >>conftest.$ac_ext
29873 cat >>conftest.$ac_ext <<_ACEOF
29874 /* end confdefs.h. */
29875 $ac_includes_default
29876 #include <vorbis/codec.h>
29877 _ACEOF
29878 rm -f conftest.$ac_objext
29879 if { (ac_try="$ac_compile"
29880 case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29883 esac
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_compile") 2>conftest.er1
29886 ac_status=$?
29887 grep -v '^ *+' conftest.er1 >conftest.err
29888 rm -f conftest.er1
29889 cat conftest.err >&5
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); } && {
29892 test -z "$ac_c_werror_flag" ||
29893 test ! -s conftest.err
29894 } && test -s conftest.$ac_objext; then
29895 ac_header_compiler=yes
29896 else
29897 echo "$as_me: failed program was:" >&5
29898 sed 's/^/| /' conftest.$ac_ext >&5
29900 ac_header_compiler=no
29903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29905 echo "${ECHO_T}$ac_header_compiler" >&6; }
29907 # Is the header present?
29908 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
29909 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
29910 cat >conftest.$ac_ext <<_ACEOF
29911 /* confdefs.h. */
29912 _ACEOF
29913 cat confdefs.h >>conftest.$ac_ext
29914 cat >>conftest.$ac_ext <<_ACEOF
29915 /* end confdefs.h. */
29916 #include <vorbis/codec.h>
29917 _ACEOF
29918 if { (ac_try="$ac_cpp conftest.$ac_ext"
29919 case "(($ac_try" in
29920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921 *) ac_try_echo=$ac_try;;
29922 esac
29923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29925 ac_status=$?
29926 grep -v '^ *+' conftest.er1 >conftest.err
29927 rm -f conftest.er1
29928 cat conftest.err >&5
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } >/dev/null && {
29931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29932 test ! -s conftest.err
29933 }; then
29934 ac_header_preproc=yes
29935 else
29936 echo "$as_me: failed program was:" >&5
29937 sed 's/^/| /' conftest.$ac_ext >&5
29939 ac_header_preproc=no
29942 rm -f conftest.err conftest.$ac_ext
29943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29944 echo "${ECHO_T}$ac_header_preproc" >&6; }
29946 # So? What about this header?
29947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29948 yes:no: )
29949 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29950 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29951 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
29952 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
29953 ac_header_preproc=yes
29955 no:yes:* )
29956 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
29957 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
29958 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
29959 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29960 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
29961 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
29962 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29963 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29964 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
29965 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29966 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
29967 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29968 ( cat <<\_ASBOX
29969 ## ------------------------------- ##
29970 ## Report this to www.asterisk.org ##
29971 ## ------------------------------- ##
29972 _ASBOX
29973 ) | sed "s/^/$as_me: WARNING: /" >&2
29975 esac
29976 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29977 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29978 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29979 echo $ECHO_N "(cached) $ECHO_C" >&6
29980 else
29981 ac_cv_header_vorbis_codec_h=$ac_header_preproc
29983 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29984 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29987 if test $ac_cv_header_vorbis_codec_h = yes; then
29988 VORBIS_HEADER_FOUND=1
29989 else
29990 VORBIS_HEADER_FOUND=0
29995 CPPFLAGS="${saved_cppflags}"
29996 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
29997 if test -n "${VORBIS_MANDATORY}" ;
29998 then
29999 { echo "$as_me:$LINENO: ***" >&5
30000 echo "$as_me: ***" >&6;}
30001 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
30002 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
30003 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
30004 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
30005 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
30006 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
30007 exit 1
30009 VORBIS_LIB=""
30010 VORBIS_INCLUDE=""
30011 PBX_VORBIS=0
30012 else
30013 PBX_VORBIS=1
30015 cat >>confdefs.h <<_ACEOF
30016 #define HAVE_VORBIS 1
30017 _ACEOF
30020 elif test -n "${VORBIS_MANDATORY}";
30021 then
30022 { echo "$as_me:$LINENO: ***" >&5
30023 echo "$as_me: ***" >&6;}
30024 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
30025 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
30026 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30027 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30028 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
30029 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
30030 exit 1
30035 ac_ext=cpp
30036 ac_cpp='$CXXCPP $CPPFLAGS'
30037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30042 if test "${USE_VPB}" != "no"; then
30043 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
30044 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
30045 saved_libs="${LIBS}"
30046 saved_cppflags="${CPPFLAGS}"
30047 if test "x${VPB_DIR}" != "x"; then
30048 if test -d ${VPB_DIR}/lib; then
30049 vpblibdir=${VPB_DIR}/lib
30050 else
30051 vpblibdir=${VPB_DIR}
30053 LIBS="${LIBS} -L${vpblibdir}"
30054 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
30056 LIBS="${LIBS} -lvpb -lpthread"
30057 cat >conftest.$ac_ext <<_ACEOF
30059 /* confdefs.h. */
30060 _ACEOF
30061 cat confdefs.h >>conftest.$ac_ext
30062 cat >>conftest.$ac_ext <<_ACEOF
30063 /* end confdefs.h. */
30064 #include <vpbapi.h>
30066 main ()
30068 int q = vpb_open(0,0);
30070 return 0;
30073 _ACEOF
30074 rm -f conftest.$ac_objext conftest$ac_exeext
30075 if { (ac_try="$ac_link"
30076 case "(($ac_try" in
30077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30078 *) ac_try_echo=$ac_try;;
30079 esac
30080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30081 (eval "$ac_link") 2>conftest.er1
30082 ac_status=$?
30083 grep -v '^ *+' conftest.er1 >conftest.err
30084 rm -f conftest.er1
30085 cat conftest.err >&5
30086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087 (exit $ac_status); } && {
30088 test -z "$ac_cxx_werror_flag" ||
30089 test ! -s conftest.err
30090 } && test -s conftest$ac_exeext &&
30091 $as_test_x conftest$ac_exeext; then
30092 { echo "$as_me:$LINENO: result: yes" >&5
30093 echo "${ECHO_T}yes" >&6; }
30094 ac_cv_lib_vpb_vpb_open="yes"
30096 else
30097 echo "$as_me: failed program was:" >&5
30098 sed 's/^/| /' conftest.$ac_ext >&5
30100 { echo "$as_me:$LINENO: result: no" >&5
30101 echo "${ECHO_T}no" >&6; }
30102 ac_cv_lib_vpb_vpb_open="no"
30107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30108 conftest$ac_exeext conftest.$ac_ext
30109 LIBS="${saved_libs}"
30110 CPPFLAGS="${saved_cppflags}"
30111 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
30112 VPB_LIB="-lvpb"
30113 if test "${VPB_DIR}" != ""; then
30114 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
30115 VPB_INCLUDE="-I${VPB_DIR}/include"
30117 PBX_VPB=1
30119 cat >>confdefs.h <<\_ACEOF
30120 #define HAVE_VPB 1
30121 _ACEOF
30123 elif test -n "${VPB_MANDATORY}"; then
30124 { echo "$as_me:$LINENO: ***" >&5
30125 echo "$as_me: ***" >&6;}
30126 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
30127 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
30128 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30129 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30130 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
30131 echo "$as_me: *** including --without-vpb." >&6;}
30132 exit 1
30136 ac_ext=c
30137 ac_cpp='$CPP $CPPFLAGS'
30138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30144 if test "${USE_ZLIB}" != "no"; then
30145 pbxlibdir=""
30146 if test "x${ZLIB_DIR}" != "x"; then
30147 if test -d ${ZLIB_DIR}/lib; then
30148 pbxlibdir="-L${ZLIB_DIR}/lib"
30149 else
30150 pbxlibdir="-L${ZLIB_DIR}"
30153 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
30154 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
30155 if test "${ac_cv_lib_z_compress+set}" = set; then
30156 echo $ECHO_N "(cached) $ECHO_C" >&6
30157 else
30158 ac_check_lib_save_LIBS=$LIBS
30159 LIBS="-lz ${pbxlibdir} $LIBS"
30160 cat >conftest.$ac_ext <<_ACEOF
30161 /* confdefs.h. */
30162 _ACEOF
30163 cat confdefs.h >>conftest.$ac_ext
30164 cat >>conftest.$ac_ext <<_ACEOF
30165 /* end confdefs.h. */
30167 /* Override any GCC internal prototype to avoid an error.
30168 Use char because int might match the return type of a GCC
30169 builtin and then its argument prototype would still apply. */
30170 #ifdef __cplusplus
30171 extern "C"
30172 #endif
30173 char compress ();
30175 main ()
30177 return compress ();
30179 return 0;
30181 _ACEOF
30182 rm -f conftest.$ac_objext conftest$ac_exeext
30183 if { (ac_try="$ac_link"
30184 case "(($ac_try" in
30185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186 *) ac_try_echo=$ac_try;;
30187 esac
30188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30189 (eval "$ac_link") 2>conftest.er1
30190 ac_status=$?
30191 grep -v '^ *+' conftest.er1 >conftest.err
30192 rm -f conftest.er1
30193 cat conftest.err >&5
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); } && {
30196 test -z "$ac_c_werror_flag" ||
30197 test ! -s conftest.err
30198 } && test -s conftest$ac_exeext &&
30199 $as_test_x conftest$ac_exeext; then
30200 ac_cv_lib_z_compress=yes
30201 else
30202 echo "$as_me: failed program was:" >&5
30203 sed 's/^/| /' conftest.$ac_ext >&5
30205 ac_cv_lib_z_compress=no
30208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30209 conftest$ac_exeext conftest.$ac_ext
30210 LIBS=$ac_check_lib_save_LIBS
30212 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
30213 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
30214 if test $ac_cv_lib_z_compress = yes; then
30215 AST_ZLIB_FOUND=yes
30216 else
30217 AST_ZLIB_FOUND=no
30221 if test "${AST_ZLIB_FOUND}" = "yes"; then
30222 ZLIB_LIB="-lz "
30223 ZLIB_HEADER_FOUND="1"
30224 if test "x${ZLIB_DIR}" != "x"; then
30225 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
30226 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
30228 ZLIB_INCLUDE="${ZLIB_INCLUDE} "
30229 saved_cppflags="${CPPFLAGS}"
30230 CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
30231 if test "xzlib.h" != "x" ; then
30232 if test "${ac_cv_header_zlib_h+set}" = set; then
30233 { echo "$as_me:$LINENO: checking for zlib.h" >&5
30234 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30235 if test "${ac_cv_header_zlib_h+set}" = set; then
30236 echo $ECHO_N "(cached) $ECHO_C" >&6
30238 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30239 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30240 else
30241 # Is the header compilable?
30242 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
30243 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
30244 cat >conftest.$ac_ext <<_ACEOF
30245 /* confdefs.h. */
30246 _ACEOF
30247 cat confdefs.h >>conftest.$ac_ext
30248 cat >>conftest.$ac_ext <<_ACEOF
30249 /* end confdefs.h. */
30250 $ac_includes_default
30251 #include <zlib.h>
30252 _ACEOF
30253 rm -f conftest.$ac_objext
30254 if { (ac_try="$ac_compile"
30255 case "(($ac_try" in
30256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30257 *) ac_try_echo=$ac_try;;
30258 esac
30259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30260 (eval "$ac_compile") 2>conftest.er1
30261 ac_status=$?
30262 grep -v '^ *+' conftest.er1 >conftest.err
30263 rm -f conftest.er1
30264 cat conftest.err >&5
30265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30266 (exit $ac_status); } && {
30267 test -z "$ac_c_werror_flag" ||
30268 test ! -s conftest.err
30269 } && test -s conftest.$ac_objext; then
30270 ac_header_compiler=yes
30271 else
30272 echo "$as_me: failed program was:" >&5
30273 sed 's/^/| /' conftest.$ac_ext >&5
30275 ac_header_compiler=no
30278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30280 echo "${ECHO_T}$ac_header_compiler" >&6; }
30282 # Is the header present?
30283 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
30284 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
30285 cat >conftest.$ac_ext <<_ACEOF
30286 /* confdefs.h. */
30287 _ACEOF
30288 cat confdefs.h >>conftest.$ac_ext
30289 cat >>conftest.$ac_ext <<_ACEOF
30290 /* end confdefs.h. */
30291 #include <zlib.h>
30292 _ACEOF
30293 if { (ac_try="$ac_cpp conftest.$ac_ext"
30294 case "(($ac_try" in
30295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30296 *) ac_try_echo=$ac_try;;
30297 esac
30298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30300 ac_status=$?
30301 grep -v '^ *+' conftest.er1 >conftest.err
30302 rm -f conftest.er1
30303 cat conftest.err >&5
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); } >/dev/null && {
30306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30307 test ! -s conftest.err
30308 }; then
30309 ac_header_preproc=yes
30310 else
30311 echo "$as_me: failed program was:" >&5
30312 sed 's/^/| /' conftest.$ac_ext >&5
30314 ac_header_preproc=no
30317 rm -f conftest.err conftest.$ac_ext
30318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30319 echo "${ECHO_T}$ac_header_preproc" >&6; }
30321 # So? What about this header?
30322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30323 yes:no: )
30324 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30325 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30326 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
30327 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
30328 ac_header_preproc=yes
30330 no:yes:* )
30331 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
30332 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
30333 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
30334 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
30335 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
30336 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
30337 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
30338 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30339 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
30340 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
30341 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
30342 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
30343 ( cat <<\_ASBOX
30344 ## ------------------------------- ##
30345 ## Report this to www.asterisk.org ##
30346 ## ------------------------------- ##
30347 _ASBOX
30348 ) | sed "s/^/$as_me: WARNING: /" >&2
30350 esac
30351 { echo "$as_me:$LINENO: checking for zlib.h" >&5
30352 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30353 if test "${ac_cv_header_zlib_h+set}" = set; then
30354 echo $ECHO_N "(cached) $ECHO_C" >&6
30355 else
30356 ac_cv_header_zlib_h=$ac_header_preproc
30358 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30359 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30362 if test $ac_cv_header_zlib_h = yes; then
30363 ZLIB_HEADER_FOUND=1
30364 else
30365 ZLIB_HEADER_FOUND=0
30370 CPPFLAGS="${saved_cppflags}"
30371 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
30372 if test -n "${ZLIB_MANDATORY}" ;
30373 then
30374 { echo "$as_me:$LINENO: ***" >&5
30375 echo "$as_me: ***" >&6;}
30376 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
30377 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
30378 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
30379 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
30380 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30381 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30382 exit 1
30384 ZLIB_LIB=""
30385 ZLIB_INCLUDE=""
30386 PBX_ZLIB=0
30387 else
30388 PBX_ZLIB=1
30390 cat >>confdefs.h <<_ACEOF
30391 #define HAVE_ZLIB 1
30392 _ACEOF
30395 elif test -n "${ZLIB_MANDATORY}";
30396 then
30397 { echo "$as_me:$LINENO: ***" >&5
30398 echo "$as_me: ***" >&6;}
30399 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
30400 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
30401 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30402 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30403 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30404 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30405 exit 1
30410 if test "${USE_ZAPTEL}" != "no" && test "x${PBX_DAHDI}" != "x1"; then
30411 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
30412 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
30413 saved_cppflags="${CPPFLAGS}"
30414 if test "x${ZAPTEL_DIR}" != "x"; then
30415 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30417 cat >conftest.$ac_ext <<_ACEOF
30419 /* confdefs.h. */
30420 _ACEOF
30421 cat confdefs.h >>conftest.$ac_ext
30422 cat >>conftest.$ac_ext <<_ACEOF
30423 /* end confdefs.h. */
30424 #include <zaptel/zaptel.h>
30426 main ()
30428 int foo = ZT_DIAL_OP_CANCEL;
30430 return 0;
30433 _ACEOF
30434 rm -f conftest.$ac_objext
30435 if { (ac_try="$ac_compile"
30436 case "(($ac_try" in
30437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30438 *) ac_try_echo=$ac_try;;
30439 esac
30440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30441 (eval "$ac_compile") 2>conftest.er1
30442 ac_status=$?
30443 grep -v '^ *+' conftest.er1 >conftest.err
30444 rm -f conftest.er1
30445 cat conftest.err >&5
30446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30447 (exit $ac_status); } && {
30448 test -z "$ac_c_werror_flag" ||
30449 test ! -s conftest.err
30450 } && test -s conftest.$ac_objext; then
30451 { echo "$as_me:$LINENO: result: yes" >&5
30452 echo "${ECHO_T}yes" >&6; }
30453 ac_cv_zaptel_h="yes"
30455 else
30456 echo "$as_me: failed program was:" >&5
30457 sed 's/^/| /' conftest.$ac_ext >&5
30459 { echo "$as_me:$LINENO: result: no" >&5
30460 echo "${ECHO_T}no" >&6; }
30461 ac_cv_zaptel_h="no"
30466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30467 CPPFLAGS="${saved_cppflags}"
30468 if test "${ac_cv_zaptel_h}" = "yes"; then
30469 if test "${ZAPTEL_DIR}" != ""; then
30470 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
30472 PBX_ZAPTEL=1
30474 cat >>confdefs.h <<\_ACEOF
30475 #define HAVE_ZAPTEL 1
30476 _ACEOF
30478 elif test -n "${ZAPTEL_MANDATORY}";
30479 then
30480 { echo "$as_me:$LINENO: ***" >&5
30481 echo "$as_me: ***" >&6;}
30482 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
30483 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
30484 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30485 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30486 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
30487 echo "$as_me: *** including --without-zaptel." >&6;}
30488 exit 1
30492 if test "${PBX_ZAPTEL}" = 1 && test "x${PBX_DAHDI}" != "x1"; then
30493 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
30494 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
30495 saved_cppflags="${CPPFLAGS}"
30496 if test "x${ZAPTEL_DIR}" != "x"; then
30497 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30499 cat >conftest.$ac_ext <<_ACEOF
30501 /* confdefs.h. */
30502 _ACEOF
30503 cat confdefs.h >>conftest.$ac_ext
30504 cat >>conftest.$ac_ext <<_ACEOF
30505 /* end confdefs.h. */
30506 #include <zaptel/zaptel.h>
30508 main ()
30510 int foo = ZT_EVENT_REMOVED;
30512 return 0;
30515 _ACEOF
30516 rm -f conftest.$ac_objext
30517 if { (ac_try="$ac_compile"
30518 case "(($ac_try" in
30519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520 *) ac_try_echo=$ac_try;;
30521 esac
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523 (eval "$ac_compile") 2>conftest.er1
30524 ac_status=$?
30525 grep -v '^ *+' conftest.er1 >conftest.err
30526 rm -f conftest.er1
30527 cat conftest.err >&5
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); } && {
30530 test -z "$ac_c_werror_flag" ||
30531 test ! -s conftest.err
30532 } && test -s conftest.$ac_objext; then
30533 { echo "$as_me:$LINENO: result: yes" >&5
30534 echo "${ECHO_T}yes" >&6; }
30535 ac_cv_zaptel_vldtmf="yes"
30537 else
30538 echo "$as_me: failed program was:" >&5
30539 sed 's/^/| /' conftest.$ac_ext >&5
30541 { echo "$as_me:$LINENO: result: no" >&5
30542 echo "${ECHO_T}no" >&6; }
30543 ac_cv_zaptel_vldtmf="no"
30548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30549 CPPFLAGS="${saved_cppflags}"
30550 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
30551 PBX_ZAPTEL_VLDTMF=1
30553 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
30554 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
30555 saved_cppflags="${CPPFLAGS}"
30556 if test "x${ZAPTEL_DIR}" != "x"; then
30557 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30559 cat >conftest.$ac_ext <<_ACEOF
30561 /* confdefs.h. */
30562 _ACEOF
30563 cat confdefs.h >>conftest.$ac_ext
30564 cat >>conftest.$ac_ext <<_ACEOF
30565 /* end confdefs.h. */
30566 #include <zaptel/zaptel.h>
30568 main ()
30570 int foo = ZT_TCOP_ALLOCATE;
30572 return 0;
30575 _ACEOF
30576 rm -f conftest.$ac_objext
30577 if { (ac_try="$ac_compile"
30578 case "(($ac_try" in
30579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30580 *) ac_try_echo=$ac_try;;
30581 esac
30582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30583 (eval "$ac_compile") 2>conftest.er1
30584 ac_status=$?
30585 grep -v '^ *+' conftest.er1 >conftest.err
30586 rm -f conftest.er1
30587 cat conftest.err >&5
30588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589 (exit $ac_status); } && {
30590 test -z "$ac_c_werror_flag" ||
30591 test ! -s conftest.err
30592 } && test -s conftest.$ac_objext; then
30593 { echo "$as_me:$LINENO: result: yes" >&5
30594 echo "${ECHO_T}yes" >&6; }
30595 ac_cv_zaptel_transcode="yes"
30597 else
30598 echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.$ac_ext >&5
30601 { echo "$as_me:$LINENO: result: no" >&5
30602 echo "${ECHO_T}no" >&6; }
30603 ac_cv_zaptel_transcode="no"
30608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30609 CPPFLAGS="${saved_cppflags}"
30610 if test "${ac_cv_zaptel_transcode}" = "yes"; then
30611 PBX_ZAPTEL_TRANSCODE=1
30617 if test "x${PBX_ZAPTEL}" = "x1" ; then
30618 PBX_DAHDI=1
30622 EDITLINE_LIB=""
30623 if test "x$TERMCAP_LIB" != "x" ; then
30624 EDITLINE_LIB="$TERMCAP_LIB"
30625 elif test "x$TINFO_LIB" != "x" ; then
30626 EDITLINE_LIB="$TINFO_LIB"
30627 elif test "x$CURSES_LIB" != "x" ; then
30628 EDITLINE_LIB="$CURSES_LIB"
30629 elif test "x$NCURSES_LIB" != "x" ; then
30630 EDITLINE_LIB="$NCURSES_LIB"
30631 else
30632 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
30633 echo "$as_me: error: *** termcap support not found" >&2;}
30634 { (exit 1); exit 1; }; }
30638 if test "${ac_cv_header_h323_h+set}" = set; then
30639 { echo "$as_me:$LINENO: checking for h323.h" >&5
30640 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30641 if test "${ac_cv_header_h323_h+set}" = set; then
30642 echo $ECHO_N "(cached) $ECHO_C" >&6
30644 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30645 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30646 else
30647 # Is the header compilable?
30648 { echo "$as_me:$LINENO: checking h323.h usability" >&5
30649 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
30650 cat >conftest.$ac_ext <<_ACEOF
30651 /* confdefs.h. */
30652 _ACEOF
30653 cat confdefs.h >>conftest.$ac_ext
30654 cat >>conftest.$ac_ext <<_ACEOF
30655 /* end confdefs.h. */
30656 $ac_includes_default
30657 #include <h323.h>
30658 _ACEOF
30659 rm -f conftest.$ac_objext
30660 if { (ac_try="$ac_compile"
30661 case "(($ac_try" in
30662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663 *) ac_try_echo=$ac_try;;
30664 esac
30665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666 (eval "$ac_compile") 2>conftest.er1
30667 ac_status=$?
30668 grep -v '^ *+' conftest.er1 >conftest.err
30669 rm -f conftest.er1
30670 cat conftest.err >&5
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); } && {
30673 test -z "$ac_c_werror_flag" ||
30674 test ! -s conftest.err
30675 } && test -s conftest.$ac_objext; then
30676 ac_header_compiler=yes
30677 else
30678 echo "$as_me: failed program was:" >&5
30679 sed 's/^/| /' conftest.$ac_ext >&5
30681 ac_header_compiler=no
30684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30686 echo "${ECHO_T}$ac_header_compiler" >&6; }
30688 # Is the header present?
30689 { echo "$as_me:$LINENO: checking h323.h presence" >&5
30690 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
30691 cat >conftest.$ac_ext <<_ACEOF
30692 /* confdefs.h. */
30693 _ACEOF
30694 cat confdefs.h >>conftest.$ac_ext
30695 cat >>conftest.$ac_ext <<_ACEOF
30696 /* end confdefs.h. */
30697 #include <h323.h>
30698 _ACEOF
30699 if { (ac_try="$ac_cpp conftest.$ac_ext"
30700 case "(($ac_try" in
30701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30702 *) ac_try_echo=$ac_try;;
30703 esac
30704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30706 ac_status=$?
30707 grep -v '^ *+' conftest.er1 >conftest.err
30708 rm -f conftest.er1
30709 cat conftest.err >&5
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); } >/dev/null && {
30712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30713 test ! -s conftest.err
30714 }; then
30715 ac_header_preproc=yes
30716 else
30717 echo "$as_me: failed program was:" >&5
30718 sed 's/^/| /' conftest.$ac_ext >&5
30720 ac_header_preproc=no
30723 rm -f conftest.err conftest.$ac_ext
30724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30725 echo "${ECHO_T}$ac_header_preproc" >&6; }
30727 # So? What about this header?
30728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30729 yes:no: )
30730 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
30731 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30732 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
30733 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
30734 ac_header_preproc=yes
30736 no:yes:* )
30737 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
30738 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
30739 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
30740 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
30741 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
30742 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
30743 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
30744 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
30745 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
30746 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
30747 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
30748 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
30749 ( cat <<\_ASBOX
30750 ## ------------------------------- ##
30751 ## Report this to www.asterisk.org ##
30752 ## ------------------------------- ##
30753 _ASBOX
30754 ) | sed "s/^/$as_me: WARNING: /" >&2
30756 esac
30757 { echo "$as_me:$LINENO: checking for h323.h" >&5
30758 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30759 if test "${ac_cv_header_h323_h+set}" = set; then
30760 echo $ECHO_N "(cached) $ECHO_C" >&6
30761 else
30762 ac_cv_header_h323_h=$ac_header_preproc
30764 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30765 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30768 if test $ac_cv_header_h323_h = yes; then
30769 PBX_H323=1
30770 else
30771 PBX_H323=0
30777 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
30778 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
30779 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
30780 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
30781 echo $ECHO_N "(cached) $ECHO_C" >&6
30783 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
30784 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
30785 else
30786 # Is the header compilable?
30787 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
30788 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
30789 cat >conftest.$ac_ext <<_ACEOF
30790 /* confdefs.h. */
30791 _ACEOF
30792 cat confdefs.h >>conftest.$ac_ext
30793 cat >>conftest.$ac_ext <<_ACEOF
30794 /* end confdefs.h. */
30795 $ac_includes_default
30796 #include <linux/compiler.h>
30797 _ACEOF
30798 rm -f conftest.$ac_objext
30799 if { (ac_try="$ac_compile"
30800 case "(($ac_try" in
30801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30803 esac
30804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805 (eval "$ac_compile") 2>conftest.er1
30806 ac_status=$?
30807 grep -v '^ *+' conftest.er1 >conftest.err
30808 rm -f conftest.er1
30809 cat conftest.err >&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } && {
30812 test -z "$ac_c_werror_flag" ||
30813 test ! -s conftest.err
30814 } && test -s conftest.$ac_objext; then
30815 ac_header_compiler=yes
30816 else
30817 echo "$as_me: failed program was:" >&5
30818 sed 's/^/| /' conftest.$ac_ext >&5
30820 ac_header_compiler=no
30823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30825 echo "${ECHO_T}$ac_header_compiler" >&6; }
30827 # Is the header present?
30828 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
30829 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
30830 cat >conftest.$ac_ext <<_ACEOF
30831 /* confdefs.h. */
30832 _ACEOF
30833 cat confdefs.h >>conftest.$ac_ext
30834 cat >>conftest.$ac_ext <<_ACEOF
30835 /* end confdefs.h. */
30836 #include <linux/compiler.h>
30837 _ACEOF
30838 if { (ac_try="$ac_cpp conftest.$ac_ext"
30839 case "(($ac_try" in
30840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841 *) ac_try_echo=$ac_try;;
30842 esac
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30845 ac_status=$?
30846 grep -v '^ *+' conftest.er1 >conftest.err
30847 rm -f conftest.er1
30848 cat conftest.err >&5
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); } >/dev/null && {
30851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30852 test ! -s conftest.err
30853 }; then
30854 ac_header_preproc=yes
30855 else
30856 echo "$as_me: failed program was:" >&5
30857 sed 's/^/| /' conftest.$ac_ext >&5
30859 ac_header_preproc=no
30862 rm -f conftest.err conftest.$ac_ext
30863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30864 echo "${ECHO_T}$ac_header_preproc" >&6; }
30866 # So? What about this header?
30867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30868 yes:no: )
30869 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
30870 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30871 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
30872 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
30873 ac_header_preproc=yes
30875 no:yes:* )
30876 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
30877 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
30878 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
30879 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
30880 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
30881 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
30882 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
30883 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
30884 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
30885 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
30886 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
30887 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
30888 ( cat <<\_ASBOX
30889 ## ------------------------------- ##
30890 ## Report this to www.asterisk.org ##
30891 ## ------------------------------- ##
30892 _ASBOX
30893 ) | sed "s/^/$as_me: WARNING: /" >&2
30895 esac
30896 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
30897 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
30898 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
30899 echo $ECHO_N "(cached) $ECHO_C" >&6
30900 else
30901 ac_cv_header_linux_compiler_h=$ac_header_preproc
30903 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
30904 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
30907 if test $ac_cv_header_linux_compiler_h = yes; then
30909 cat >>confdefs.h <<_ACEOF
30910 #define HAVE_LINUX_COMPILER_H 1
30911 _ACEOF
30917 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
30918 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
30919 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30921 else
30922 cat >conftest.$ac_ext <<_ACEOF
30923 /* confdefs.h. */
30924 _ACEOF
30925 cat confdefs.h >>conftest.$ac_ext
30926 cat >>conftest.$ac_ext <<_ACEOF
30927 /* end confdefs.h. */
30929 #include <linux/version.h>
30930 #ifdef HAVE_LINUX_COMPILER_H
30931 #include <linux/compiler.h>
30932 #endif
30935 #include <linux/ixjuser.h>
30936 _ACEOF
30937 rm -f conftest.$ac_objext
30938 if { (ac_try="$ac_compile"
30939 case "(($ac_try" in
30940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30941 *) ac_try_echo=$ac_try;;
30942 esac
30943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30944 (eval "$ac_compile") 2>conftest.er1
30945 ac_status=$?
30946 grep -v '^ *+' conftest.er1 >conftest.err
30947 rm -f conftest.er1
30948 cat conftest.err >&5
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); } && {
30951 test -z "$ac_c_werror_flag" ||
30952 test ! -s conftest.err
30953 } && test -s conftest.$ac_objext; then
30954 ac_cv_header_linux_ixjuser_h=yes
30955 else
30956 echo "$as_me: failed program was:" >&5
30957 sed 's/^/| /' conftest.$ac_ext >&5
30959 ac_cv_header_linux_ixjuser_h=no
30962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30964 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
30965 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
30966 if test $ac_cv_header_linux_ixjuser_h = yes; then
30967 PBX_IXJUSER=1
30968 else
30969 PBX_IXJUSER=0
30975 if test "${cross_compiling}" = "no";
30976 then
30977 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
30978 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
30979 if test "${ac_cv_file__sbin_launchd+set}" = set; then
30980 echo $ECHO_N "(cached) $ECHO_C" >&6
30981 else
30982 test "$cross_compiling" = yes &&
30983 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30984 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30985 { (exit 1); exit 1; }; }
30986 if test -r "/sbin/launchd"; then
30987 ac_cv_file__sbin_launchd=yes
30988 else
30989 ac_cv_file__sbin_launchd=no
30992 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
30993 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
30994 if test $ac_cv_file__sbin_launchd = yes; then
30996 cat >>confdefs.h <<\_ACEOF
30997 #define HAVE_SBIN_LAUNCHD 1
30998 _ACEOF
31004 PBX_GTK=0
31005 if test -n "$ac_tool_prefix"; then
31006 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
31007 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
31008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31010 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
31011 echo $ECHO_N "(cached) $ECHO_C" >&6
31012 else
31013 if test -n "$GTKCONFIG"; then
31014 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
31015 else
31016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31017 for as_dir in $PATH
31019 IFS=$as_save_IFS
31020 test -z "$as_dir" && as_dir=.
31021 for ac_exec_ext in '' $ac_executable_extensions; do
31022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31023 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
31024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31025 break 2
31027 done
31028 done
31029 IFS=$as_save_IFS
31033 GTKCONFIG=$ac_cv_prog_GTKCONFIG
31034 if test -n "$GTKCONFIG"; then
31035 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
31036 echo "${ECHO_T}$GTKCONFIG" >&6; }
31037 else
31038 { echo "$as_me:$LINENO: result: no" >&5
31039 echo "${ECHO_T}no" >&6; }
31044 if test -z "$ac_cv_prog_GTKCONFIG"; then
31045 ac_ct_GTKCONFIG=$GTKCONFIG
31046 # Extract the first word of "gtk-config", so it can be a program name with args.
31047 set dummy gtk-config; ac_word=$2
31048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31050 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
31051 echo $ECHO_N "(cached) $ECHO_C" >&6
31052 else
31053 if test -n "$ac_ct_GTKCONFIG"; then
31054 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
31055 else
31056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31057 for as_dir in $PATH
31059 IFS=$as_save_IFS
31060 test -z "$as_dir" && as_dir=.
31061 for ac_exec_ext in '' $ac_executable_extensions; do
31062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31063 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
31064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31065 break 2
31067 done
31068 done
31069 IFS=$as_save_IFS
31073 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
31074 if test -n "$ac_ct_GTKCONFIG"; then
31075 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
31076 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
31077 else
31078 { echo "$as_me:$LINENO: result: no" >&5
31079 echo "${ECHO_T}no" >&6; }
31082 if test "x$ac_ct_GTKCONFIG" = x; then
31083 GTKCONFIG="No"
31084 else
31085 case $cross_compiling:$ac_tool_warned in
31086 yes:)
31087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31088 whose name does not start with the host triplet. If you think this
31089 configuration is useful to you, please write to autoconf@gnu.org." >&5
31090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31091 whose name does not start with the host triplet. If you think this
31092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31093 ac_tool_warned=yes ;;
31094 esac
31095 GTKCONFIG=$ac_ct_GTKCONFIG
31097 else
31098 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
31101 if test ! "x${GTKCONFIG}" = xNo; then
31102 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
31103 GTK_LIB=$(${GTKCONFIG} --libs gthread)
31104 PBX_GTK=1
31106 cat >>confdefs.h <<\_ACEOF
31107 #define HAVE_GTK 1
31108 _ACEOF
31115 PBX_GTK2=0
31116 if test -n "$ac_tool_prefix"; then
31117 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31118 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31121 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
31122 echo $ECHO_N "(cached) $ECHO_C" >&6
31123 else
31124 if test -n "$PKGCONFIG"; then
31125 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
31126 else
31127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31128 for as_dir in $PATH
31130 IFS=$as_save_IFS
31131 test -z "$as_dir" && as_dir=.
31132 for ac_exec_ext in '' $ac_executable_extensions; do
31133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31134 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
31135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31136 break 2
31138 done
31139 done
31140 IFS=$as_save_IFS
31144 PKGCONFIG=$ac_cv_prog_PKGCONFIG
31145 if test -n "$PKGCONFIG"; then
31146 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
31147 echo "${ECHO_T}$PKGCONFIG" >&6; }
31148 else
31149 { echo "$as_me:$LINENO: result: no" >&5
31150 echo "${ECHO_T}no" >&6; }
31155 if test -z "$ac_cv_prog_PKGCONFIG"; then
31156 ac_ct_PKGCONFIG=$PKGCONFIG
31157 # Extract the first word of "pkg-config", so it can be a program name with args.
31158 set dummy pkg-config; ac_word=$2
31159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31161 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
31162 echo $ECHO_N "(cached) $ECHO_C" >&6
31163 else
31164 if test -n "$ac_ct_PKGCONFIG"; then
31165 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
31166 else
31167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31168 for as_dir in $PATH
31170 IFS=$as_save_IFS
31171 test -z "$as_dir" && as_dir=.
31172 for ac_exec_ext in '' $ac_executable_extensions; do
31173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31174 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
31175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31176 break 2
31178 done
31179 done
31180 IFS=$as_save_IFS
31184 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
31185 if test -n "$ac_ct_PKGCONFIG"; then
31186 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
31187 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
31188 else
31189 { echo "$as_me:$LINENO: result: no" >&5
31190 echo "${ECHO_T}no" >&6; }
31193 if test "x$ac_ct_PKGCONFIG" = x; then
31194 PKGCONFIG="No"
31195 else
31196 case $cross_compiling:$ac_tool_warned in
31197 yes:)
31198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31199 whose name does not start with the host triplet. If you think this
31200 configuration is useful to you, please write to autoconf@gnu.org." >&5
31201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31202 whose name does not start with the host triplet. If you think this
31203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31204 ac_tool_warned=yes ;;
31205 esac
31206 PKGCONFIG=$ac_ct_PKGCONFIG
31208 else
31209 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
31212 if test ! "x${PKGCONFIG}" = xNo; then
31213 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
31214 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
31215 PBX_GTK2=1
31217 cat >>confdefs.h <<\_ACEOF
31218 #define HAVE_GTK2 1
31219 _ACEOF
31226 if test "${USE_CURL}" != "no"; then
31227 if test -n "$ac_tool_prefix"; then
31228 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
31229 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
31230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31232 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
31233 echo $ECHO_N "(cached) $ECHO_C" >&6
31234 else
31235 case $CURL_CONFIG in
31236 [\\/]* | ?:[\\/]*)
31237 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
31240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31241 for as_dir in $PATH
31243 IFS=$as_save_IFS
31244 test -z "$as_dir" && as_dir=.
31245 for ac_exec_ext in '' $ac_executable_extensions; do
31246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31247 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31249 break 2
31251 done
31252 done
31253 IFS=$as_save_IFS
31256 esac
31258 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
31259 if test -n "$CURL_CONFIG"; then
31260 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
31261 echo "${ECHO_T}$CURL_CONFIG" >&6; }
31262 else
31263 { echo "$as_me:$LINENO: result: no" >&5
31264 echo "${ECHO_T}no" >&6; }
31269 if test -z "$ac_cv_path_CURL_CONFIG"; then
31270 ac_pt_CURL_CONFIG=$CURL_CONFIG
31271 # Extract the first word of "curl-config", so it can be a program name with args.
31272 set dummy curl-config; ac_word=$2
31273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31275 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
31276 echo $ECHO_N "(cached) $ECHO_C" >&6
31277 else
31278 case $ac_pt_CURL_CONFIG in
31279 [\\/]* | ?:[\\/]*)
31280 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
31283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31284 for as_dir in $PATH
31286 IFS=$as_save_IFS
31287 test -z "$as_dir" && as_dir=.
31288 for ac_exec_ext in '' $ac_executable_extensions; do
31289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31290 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31292 break 2
31294 done
31295 done
31296 IFS=$as_save_IFS
31299 esac
31301 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
31302 if test -n "$ac_pt_CURL_CONFIG"; then
31303 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
31304 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
31305 else
31306 { echo "$as_me:$LINENO: result: no" >&5
31307 echo "${ECHO_T}no" >&6; }
31310 if test "x$ac_pt_CURL_CONFIG" = x; then
31311 CURL_CONFIG="No"
31312 else
31313 case $cross_compiling:$ac_tool_warned in
31314 yes:)
31315 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31316 whose name does not start with the host triplet. If you think this
31317 configuration is useful to you, please write to autoconf@gnu.org." >&5
31318 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31319 whose name does not start with the host triplet. If you think this
31320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31321 ac_tool_warned=yes ;;
31322 esac
31323 CURL_CONFIG=$ac_pt_CURL_CONFIG
31325 else
31326 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
31329 if test ! x"${CURL_CONFIG}" = xNo; then
31330 # check for version
31331 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
31332 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
31333 CURL_LIB=$(${CURL_CONFIG} --libs)
31335 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
31336 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
31337 saved_cppflags="${CPPFLAGS}"
31338 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
31339 cat >conftest.$ac_ext <<_ACEOF
31340 /* confdefs.h. */
31341 _ACEOF
31342 cat confdefs.h >>conftest.$ac_ext
31343 cat >>conftest.$ac_ext <<_ACEOF
31344 /* end confdefs.h. */
31345 #include <curl/curl.h>
31347 main ()
31349 curl_version();
31351 return 0;
31354 _ACEOF
31355 rm -f conftest.$ac_objext
31356 if { (ac_try="$ac_compile"
31357 case "(($ac_try" in
31358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359 *) ac_try_echo=$ac_try;;
31360 esac
31361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362 (eval "$ac_compile") 2>conftest.er1
31363 ac_status=$?
31364 grep -v '^ *+' conftest.er1 >conftest.err
31365 rm -f conftest.er1
31366 cat conftest.err >&5
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); } && {
31369 test -z "$ac_c_werror_flag" ||
31370 test ! -s conftest.err
31371 } && test -s conftest.$ac_objext; then
31373 { echo "$as_me:$LINENO: result: yes" >&5
31374 echo "${ECHO_T}yes" >&6; }
31375 ac_cv_curl_h="yes"
31377 else
31378 echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31382 { echo "$as_me:$LINENO: result: no" >&5
31383 echo "${ECHO_T}no" >&6; }
31384 ac_cv_curl_h="no"
31389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31390 CPPFLAGS="${saved_cppflags}"
31391 if test "${ac_cv_curl_h}" = "yes"; then
31392 PBX_CURL=1
31394 cat >>confdefs.h <<\_ACEOF
31395 #define HAVE_CURL 1
31396 _ACEOF
31403 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
31405 cat >confcache <<\_ACEOF
31406 # This file is a shell script that caches the results of configure
31407 # tests run on this system so they can be shared between configure
31408 # scripts and configure runs, see configure's option --config-cache.
31409 # It is not useful on other systems. If it contains results you don't
31410 # want to keep, you may remove or edit it.
31412 # config.status only pays attention to the cache file if you give it
31413 # the --recheck option to rerun configure.
31415 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31416 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31417 # following values.
31419 _ACEOF
31421 # The following way of writing the cache mishandles newlines in values,
31422 # but we know of no workaround that is simple, portable, and efficient.
31423 # So, we kill variables containing newlines.
31424 # Ultrix sh set writes to stderr and can't be redirected directly,
31425 # and sets the high bit in the cache file unless we assign to the vars.
31427 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31428 eval ac_val=\$$ac_var
31429 case $ac_val in #(
31430 *${as_nl}*)
31431 case $ac_var in #(
31432 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31433 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31434 esac
31435 case $ac_var in #(
31436 _ | IFS | as_nl) ;; #(
31437 *) $as_unset $ac_var ;;
31438 esac ;;
31439 esac
31440 done
31442 (set) 2>&1 |
31443 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31444 *${as_nl}ac_space=\ *)
31445 # `set' does not quote correctly, so add quotes (double-quote
31446 # substitution turns \\\\ into \\, and sed turns \\ into \).
31447 sed -n \
31448 "s/'/'\\\\''/g;
31449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31450 ;; #(
31452 # `set' quotes correctly as required by POSIX, so do not add quotes.
31453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31455 esac |
31456 sort
31458 sed '
31459 /^ac_cv_env_/b end
31460 t clear
31461 :clear
31462 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31463 t end
31464 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31465 :end' >>confcache
31466 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31467 if test -w "$cache_file"; then
31468 test "x$cache_file" != "x/dev/null" &&
31469 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31470 echo "$as_me: updating cache $cache_file" >&6;}
31471 cat confcache >$cache_file
31472 else
31473 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31474 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31477 rm -f confcache
31479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31480 # Let make expand exec_prefix.
31481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31483 DEFS=-DHAVE_CONFIG_H
31485 ac_libobjs=
31486 ac_ltlibobjs=
31487 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31488 # 1. Remove the extension, and $U if already installed.
31489 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31490 ac_i=`echo "$ac_i" | sed "$ac_script"`
31491 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31492 # will be set to the directory where LIBOBJS objects are built.
31493 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31494 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31495 done
31496 LIBOBJS=$ac_libobjs
31498 LTLIBOBJS=$ac_ltlibobjs
31502 : ${CONFIG_STATUS=./config.status}
31503 ac_clean_files_save=$ac_clean_files
31504 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31505 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31506 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31507 cat >$CONFIG_STATUS <<_ACEOF
31508 #! $SHELL
31509 # Generated by $as_me.
31510 # Run this file to recreate the current configuration.
31511 # Compiler output produced by configure, useful for debugging
31512 # configure, is in config.log if it exists.
31514 debug=false
31515 ac_cs_recheck=false
31516 ac_cs_silent=false
31517 SHELL=\${CONFIG_SHELL-$SHELL}
31518 _ACEOF
31520 cat >>$CONFIG_STATUS <<\_ACEOF
31521 ## --------------------- ##
31522 ## M4sh Initialization. ##
31523 ## --------------------- ##
31525 # Be more Bourne compatible
31526 DUALCASE=1; export DUALCASE # for MKS sh
31527 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31528 emulate sh
31529 NULLCMD=:
31530 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31531 # is contrary to our usage. Disable this feature.
31532 alias -g '${1+"$@"}'='"$@"'
31533 setopt NO_GLOB_SUBST
31534 else
31535 case `(set -o) 2>/dev/null` in
31536 *posix*) set -o posix ;;
31537 esac
31544 # PATH needs CR
31545 # Avoid depending upon Character Ranges.
31546 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31547 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31548 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31549 as_cr_digits='0123456789'
31550 as_cr_alnum=$as_cr_Letters$as_cr_digits
31552 # The user is always right.
31553 if test "${PATH_SEPARATOR+set}" != set; then
31554 echo "#! /bin/sh" >conf$$.sh
31555 echo "exit 0" >>conf$$.sh
31556 chmod +x conf$$.sh
31557 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31558 PATH_SEPARATOR=';'
31559 else
31560 PATH_SEPARATOR=:
31562 rm -f conf$$.sh
31565 # Support unset when possible.
31566 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31567 as_unset=unset
31568 else
31569 as_unset=false
31573 # IFS
31574 # We need space, tab and new line, in precisely that order. Quoting is
31575 # there to prevent editors from complaining about space-tab.
31576 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31577 # splitting by setting IFS to empty value.)
31578 as_nl='
31580 IFS=" "" $as_nl"
31582 # Find who we are. Look in the path if we contain no directory separator.
31583 case $0 in
31584 *[\\/]* ) as_myself=$0 ;;
31585 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31586 for as_dir in $PATH
31588 IFS=$as_save_IFS
31589 test -z "$as_dir" && as_dir=.
31590 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31591 done
31592 IFS=$as_save_IFS
31595 esac
31596 # We did not find ourselves, most probably we were run as `sh COMMAND'
31597 # in which case we are not to be found in the path.
31598 if test "x$as_myself" = x; then
31599 as_myself=$0
31601 if test ! -f "$as_myself"; then
31602 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31603 { (exit 1); exit 1; }
31606 # Work around bugs in pre-3.0 UWIN ksh.
31607 for as_var in ENV MAIL MAILPATH
31608 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31609 done
31610 PS1='$ '
31611 PS2='> '
31612 PS4='+ '
31614 # NLS nuisances.
31615 for as_var in \
31616 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31617 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31618 LC_TELEPHONE LC_TIME
31620 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31621 eval $as_var=C; export $as_var
31622 else
31623 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31625 done
31627 # Required to use basename.
31628 if expr a : '\(a\)' >/dev/null 2>&1 &&
31629 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31630 as_expr=expr
31631 else
31632 as_expr=false
31635 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31636 as_basename=basename
31637 else
31638 as_basename=false
31642 # Name of the executable.
31643 as_me=`$as_basename -- "$0" ||
31644 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31645 X"$0" : 'X\(//\)$' \| \
31646 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31647 echo X/"$0" |
31648 sed '/^.*\/\([^/][^/]*\)\/*$/{
31649 s//\1/
31652 /^X\/\(\/\/\)$/{
31653 s//\1/
31656 /^X\/\(\/\).*/{
31657 s//\1/
31660 s/.*/./; q'`
31662 # CDPATH.
31663 $as_unset CDPATH
31667 as_lineno_1=$LINENO
31668 as_lineno_2=$LINENO
31669 test "x$as_lineno_1" != "x$as_lineno_2" &&
31670 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31672 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31673 # uniformly replaced by the line number. The first 'sed' inserts a
31674 # line-number line after each line using $LINENO; the second 'sed'
31675 # does the real work. The second script uses 'N' to pair each
31676 # line-number line with the line containing $LINENO, and appends
31677 # trailing '-' during substitution so that $LINENO is not a special
31678 # case at line end.
31679 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31680 # scripts with optimization help from Paolo Bonzini. Blame Lee
31681 # E. McMahon (1931-1989) for sed's syntax. :-)
31682 sed -n '
31684 /[$]LINENO/=
31685 ' <$as_myself |
31686 sed '
31687 s/[$]LINENO.*/&-/
31688 t lineno
31690 :lineno
31692 :loop
31693 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31694 t loop
31695 s/-\n.*//
31696 ' >$as_me.lineno &&
31697 chmod +x "$as_me.lineno" ||
31698 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31699 { (exit 1); exit 1; }; }
31701 # Don't try to exec as it changes $[0], causing all sort of problems
31702 # (the dirname of $[0] is not the place where we might find the
31703 # original and so on. Autoconf is especially sensitive to this).
31704 . "./$as_me.lineno"
31705 # Exit status is that of the last command.
31706 exit
31710 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31711 as_dirname=dirname
31712 else
31713 as_dirname=false
31716 ECHO_C= ECHO_N= ECHO_T=
31717 case `echo -n x` in
31718 -n*)
31719 case `echo 'x\c'` in
31720 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31721 *) ECHO_C='\c';;
31722 esac;;
31724 ECHO_N='-n';;
31725 esac
31727 if expr a : '\(a\)' >/dev/null 2>&1 &&
31728 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31729 as_expr=expr
31730 else
31731 as_expr=false
31734 rm -f conf$$ conf$$.exe conf$$.file
31735 if test -d conf$$.dir; then
31736 rm -f conf$$.dir/conf$$.file
31737 else
31738 rm -f conf$$.dir
31739 mkdir conf$$.dir
31741 echo >conf$$.file
31742 if ln -s conf$$.file conf$$ 2>/dev/null; then
31743 as_ln_s='ln -s'
31744 # ... but there are two gotchas:
31745 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31746 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31747 # In both cases, we have to default to `cp -p'.
31748 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31749 as_ln_s='cp -p'
31750 elif ln conf$$.file conf$$ 2>/dev/null; then
31751 as_ln_s=ln
31752 else
31753 as_ln_s='cp -p'
31755 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31756 rmdir conf$$.dir 2>/dev/null
31758 if mkdir -p . 2>/dev/null; then
31759 as_mkdir_p=:
31760 else
31761 test -d ./-p && rmdir ./-p
31762 as_mkdir_p=false
31765 if test -x / >/dev/null 2>&1; then
31766 as_test_x='test -x'
31767 else
31768 if ls -dL / >/dev/null 2>&1; then
31769 as_ls_L_option=L
31770 else
31771 as_ls_L_option=
31773 as_test_x='
31774 eval sh -c '\''
31775 if test -d "$1"; then
31776 test -d "$1/.";
31777 else
31778 case $1 in
31779 -*)set "./$1";;
31780 esac;
31781 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31782 ???[sx]*):;;*)false;;esac;fi
31783 '\'' sh
31786 as_executable_p=$as_test_x
31788 # Sed expression to map a string onto a valid CPP name.
31789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31791 # Sed expression to map a string onto a valid variable name.
31792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31795 exec 6>&1
31797 # Save the log message, to keep $[0] and so on meaningful, and to
31798 # report actual input values of CONFIG_FILES etc. instead of their
31799 # values after options handling.
31800 ac_log="
31801 This file was extended by asterisk $as_me 1.4, which was
31802 generated by GNU Autoconf 2.61. Invocation command line was
31804 CONFIG_FILES = $CONFIG_FILES
31805 CONFIG_HEADERS = $CONFIG_HEADERS
31806 CONFIG_LINKS = $CONFIG_LINKS
31807 CONFIG_COMMANDS = $CONFIG_COMMANDS
31808 $ $0 $@
31810 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31813 _ACEOF
31815 cat >>$CONFIG_STATUS <<_ACEOF
31816 # Files that config.status was made for.
31817 config_files="$ac_config_files"
31818 config_headers="$ac_config_headers"
31820 _ACEOF
31822 cat >>$CONFIG_STATUS <<\_ACEOF
31823 ac_cs_usage="\
31824 \`$as_me' instantiates files from templates according to the
31825 current configuration.
31827 Usage: $0 [OPTIONS] [FILE]...
31829 -h, --help print this help, then exit
31830 -V, --version print version number and configuration settings, then exit
31831 -q, --quiet do not print progress messages
31832 -d, --debug don't remove temporary files
31833 --recheck update $as_me by reconfiguring in the same conditions
31834 --file=FILE[:TEMPLATE]
31835 instantiate the configuration file FILE
31836 --header=FILE[:TEMPLATE]
31837 instantiate the configuration header FILE
31839 Configuration files:
31840 $config_files
31842 Configuration headers:
31843 $config_headers
31845 Report bugs to <bug-autoconf@gnu.org>."
31847 _ACEOF
31848 cat >>$CONFIG_STATUS <<_ACEOF
31849 ac_cs_version="\\
31850 asterisk config.status 1.4
31851 configured by $0, generated by GNU Autoconf 2.61,
31852 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31854 Copyright (C) 2006 Free Software Foundation, Inc.
31855 This config.status script is free software; the Free Software Foundation
31856 gives unlimited permission to copy, distribute and modify it."
31858 ac_pwd='$ac_pwd'
31859 srcdir='$srcdir'
31860 INSTALL='$INSTALL'
31861 _ACEOF
31863 cat >>$CONFIG_STATUS <<\_ACEOF
31864 # If no file are specified by the user, then we need to provide default
31865 # value. By we need to know if files were specified by the user.
31866 ac_need_defaults=:
31867 while test $# != 0
31869 case $1 in
31870 --*=*)
31871 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31872 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31873 ac_shift=:
31876 ac_option=$1
31877 ac_optarg=$2
31878 ac_shift=shift
31880 esac
31882 case $ac_option in
31883 # Handling of the options.
31884 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31885 ac_cs_recheck=: ;;
31886 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31887 echo "$ac_cs_version"; exit ;;
31888 --debug | --debu | --deb | --de | --d | -d )
31889 debug=: ;;
31890 --file | --fil | --fi | --f )
31891 $ac_shift
31892 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31893 ac_need_defaults=false;;
31894 --header | --heade | --head | --hea )
31895 $ac_shift
31896 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31897 ac_need_defaults=false;;
31898 --he | --h)
31899 # Conflict between --help and --header
31900 { echo "$as_me: error: ambiguous option: $1
31901 Try \`$0 --help' for more information." >&2
31902 { (exit 1); exit 1; }; };;
31903 --help | --hel | -h )
31904 echo "$ac_cs_usage"; exit ;;
31905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31906 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31907 ac_cs_silent=: ;;
31909 # This is an error.
31910 -*) { echo "$as_me: error: unrecognized option: $1
31911 Try \`$0 --help' for more information." >&2
31912 { (exit 1); exit 1; }; } ;;
31914 *) ac_config_targets="$ac_config_targets $1"
31915 ac_need_defaults=false ;;
31917 esac
31918 shift
31919 done
31921 ac_configure_extra_args=
31923 if $ac_cs_silent; then
31924 exec 6>/dev/null
31925 ac_configure_extra_args="$ac_configure_extra_args --silent"
31928 _ACEOF
31929 cat >>$CONFIG_STATUS <<_ACEOF
31930 if \$ac_cs_recheck; then
31931 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31932 CONFIG_SHELL=$SHELL
31933 export CONFIG_SHELL
31934 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31937 _ACEOF
31938 cat >>$CONFIG_STATUS <<\_ACEOF
31939 exec 5>>config.log
31941 echo
31942 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31943 ## Running $as_me. ##
31944 _ASBOX
31945 echo "$ac_log"
31946 } >&5
31948 _ACEOF
31949 cat >>$CONFIG_STATUS <<_ACEOF
31950 _ACEOF
31952 cat >>$CONFIG_STATUS <<\_ACEOF
31954 # Handling of arguments.
31955 for ac_config_target in $ac_config_targets
31957 case $ac_config_target in
31958 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
31959 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
31960 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
31961 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
31963 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31964 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31965 { (exit 1); exit 1; }; };;
31966 esac
31967 done
31970 # If the user did not use the arguments to specify the items to instantiate,
31971 # then the envvar interface is used. Set only those that are not.
31972 # We use the long form for the default assignment because of an extremely
31973 # bizarre bug on SunOS 4.1.3.
31974 if $ac_need_defaults; then
31975 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31976 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31979 # Have a temporary directory for convenience. Make it in the build tree
31980 # simply because there is no reason against having it here, and in addition,
31981 # creating and moving files from /tmp can sometimes cause problems.
31982 # Hook for its removal unless debugging.
31983 # Note that there is a small window in which the directory will not be cleaned:
31984 # after its creation but before its name has been assigned to `$tmp'.
31985 $debug ||
31987 tmp=
31988 trap 'exit_status=$?
31989 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31991 trap '{ (exit 1); exit 1; }' 1 2 13 15
31993 # Create a (secure) tmp directory for tmp files.
31996 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31997 test -n "$tmp" && test -d "$tmp"
31998 } ||
32000 tmp=./conf$$-$RANDOM
32001 (umask 077 && mkdir "$tmp")
32002 } ||
32004 echo "$me: cannot create a temporary directory in ." >&2
32005 { (exit 1); exit 1; }
32009 # Set up the sed scripts for CONFIG_FILES section.
32012 # No need to generate the scripts if there are no CONFIG_FILES.
32013 # This happens for instance when ./config.status config.h
32014 if test -n "$CONFIG_FILES"; then
32016 _ACEOF
32020 ac_delim='%!_!# '
32021 for ac_last_try in false false false false false :; do
32022 cat >conf$$subs.sed <<_ACEOF
32023 SHELL!$SHELL$ac_delim
32024 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32025 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32026 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32027 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32028 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32029 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32030 exec_prefix!$exec_prefix$ac_delim
32031 prefix!$prefix$ac_delim
32032 program_transform_name!$program_transform_name$ac_delim
32033 bindir!$bindir$ac_delim
32034 sbindir!$sbindir$ac_delim
32035 libexecdir!$libexecdir$ac_delim
32036 datarootdir!$datarootdir$ac_delim
32037 datadir!$datadir$ac_delim
32038 sysconfdir!$sysconfdir$ac_delim
32039 sharedstatedir!$sharedstatedir$ac_delim
32040 localstatedir!$localstatedir$ac_delim
32041 includedir!$includedir$ac_delim
32042 oldincludedir!$oldincludedir$ac_delim
32043 docdir!$docdir$ac_delim
32044 infodir!$infodir$ac_delim
32045 htmldir!$htmldir$ac_delim
32046 dvidir!$dvidir$ac_delim
32047 pdfdir!$pdfdir$ac_delim
32048 psdir!$psdir$ac_delim
32049 libdir!$libdir$ac_delim
32050 localedir!$localedir$ac_delim
32051 mandir!$mandir$ac_delim
32052 DEFS!$DEFS$ac_delim
32053 ECHO_C!$ECHO_C$ac_delim
32054 ECHO_N!$ECHO_N$ac_delim
32055 ECHO_T!$ECHO_T$ac_delim
32056 LIBS!$LIBS$ac_delim
32057 build_alias!$build_alias$ac_delim
32058 host_alias!$host_alias$ac_delim
32059 target_alias!$target_alias$ac_delim
32060 build!$build$ac_delim
32061 build_cpu!$build_cpu$ac_delim
32062 build_vendor!$build_vendor$ac_delim
32063 build_os!$build_os$ac_delim
32064 host!$host$ac_delim
32065 host_cpu!$host_cpu$ac_delim
32066 host_vendor!$host_vendor$ac_delim
32067 host_os!$host_os$ac_delim
32068 CC!$CC$ac_delim
32069 CFLAGS!$CFLAGS$ac_delim
32070 LDFLAGS!$LDFLAGS$ac_delim
32071 CPPFLAGS!$CPPFLAGS$ac_delim
32072 ac_ct_CC!$ac_ct_CC$ac_delim
32073 EXEEXT!$EXEEXT$ac_delim
32074 OBJEXT!$OBJEXT$ac_delim
32075 CPP!$CPP$ac_delim
32076 GREP!$GREP$ac_delim
32077 EGREP!$EGREP$ac_delim
32078 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
32079 BUILD_CPU!$BUILD_CPU$ac_delim
32080 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
32081 BUILD_OS!$BUILD_OS$ac_delim
32082 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
32083 HOST_CPU!$HOST_CPU$ac_delim
32084 HOST_VENDOR!$HOST_VENDOR$ac_delim
32085 HOST_OS!$HOST_OS$ac_delim
32086 OSARCH!$OSARCH$ac_delim
32087 UNAME!$UNAME$ac_delim
32088 PBX_OSREV!$PBX_OSREV$ac_delim
32089 CXX!$CXX$ac_delim
32090 LD!$LD$ac_delim
32091 RANLIB!$RANLIB$ac_delim
32092 CXXFLAGS!$CXXFLAGS$ac_delim
32093 ac_ct_CXX!$ac_ct_CXX$ac_delim
32094 CXXCPP!$CXXCPP$ac_delim
32095 SED!$SED$ac_delim
32096 AWK!$AWK$ac_delim
32097 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32098 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32099 INSTALL_DATA!$INSTALL_DATA$ac_delim
32100 LN_S!$LN_S$ac_delim
32101 GNU_MAKE!$GNU_MAKE$ac_delim
32102 STRIP!$STRIP$ac_delim
32103 AR!$AR$ac_delim
32104 GNU_LD!$GNU_LD$ac_delim
32105 FIND!$FIND$ac_delim
32106 COMPRESS!$COMPRESS$ac_delim
32107 BASENAME!$BASENAME$ac_delim
32108 ID!$ID$ac_delim
32109 DIRNAME!$DIRNAME$ac_delim
32110 LN!$LN$ac_delim
32111 DOT!$DOT$ac_delim
32112 WGET!$WGET$ac_delim
32113 FETCH!$FETCH$ac_delim
32114 DOWNLOAD!$DOWNLOAD$ac_delim
32115 SOXMIX!$SOXMIX$ac_delim
32116 acx_pthread_config!$acx_pthread_config$ac_delim
32117 PTHREAD_CC!$PTHREAD_CC$ac_delim
32118 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
32119 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
32120 _ACEOF
32122 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32123 break
32124 elif $ac_last_try; then
32125 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32126 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32127 { (exit 1); exit 1; }; }
32128 else
32129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32131 done
32133 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32134 if test -n "$ac_eof"; then
32135 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32136 ac_eof=`expr $ac_eof + 1`
32139 cat >>$CONFIG_STATUS <<_ACEOF
32140 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32142 _ACEOF
32143 sed '
32144 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32145 s/^/s,@/; s/!/@,|#_!!_#|/
32148 s/'"$ac_delim"'$/,g/; t
32149 s/$/\\/; p
32150 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32151 ' >>$CONFIG_STATUS <conf$$subs.sed
32152 rm -f conf$$subs.sed
32153 cat >>$CONFIG_STATUS <<_ACEOF
32154 CEOF$ac_eof
32155 _ACEOF
32158 ac_delim='%!_!# '
32159 for ac_last_try in false false false false false :; do
32160 cat >conf$$subs.sed <<_ACEOF
32161 AST_DEVMODE!$AST_DEVMODE$ac_delim
32162 ALSA_LIB!$ALSA_LIB$ac_delim
32163 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
32164 ALSA_DIR!$ALSA_DIR$ac_delim
32165 PBX_ALSA!$PBX_ALSA$ac_delim
32166 CURL_LIB!$CURL_LIB$ac_delim
32167 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
32168 CURL_DIR!$CURL_DIR$ac_delim
32169 PBX_CURL!$PBX_CURL$ac_delim
32170 CAP_LIB!$CAP_LIB$ac_delim
32171 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
32172 CAP_DIR!$CAP_DIR$ac_delim
32173 PBX_CAP!$PBX_CAP$ac_delim
32174 CURSES_LIB!$CURSES_LIB$ac_delim
32175 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
32176 CURSES_DIR!$CURSES_DIR$ac_delim
32177 PBX_CURSES!$PBX_CURSES$ac_delim
32178 DAHDI_LIB!$DAHDI_LIB$ac_delim
32179 DAHDI_INCLUDE!$DAHDI_INCLUDE$ac_delim
32180 DAHDI_DIR!$DAHDI_DIR$ac_delim
32181 PBX_DAHDI!$PBX_DAHDI$ac_delim
32182 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
32183 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
32184 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
32185 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
32186 GSM_LIB!$GSM_LIB$ac_delim
32187 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
32188 GSM_DIR!$GSM_DIR$ac_delim
32189 PBX_GSM!$PBX_GSM$ac_delim
32190 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
32191 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
32192 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
32193 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
32194 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
32195 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
32196 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
32197 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
32198 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
32199 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
32200 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
32201 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
32202 KDE_LIB!$KDE_LIB$ac_delim
32203 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
32204 KDE_DIR!$KDE_DIR$ac_delim
32205 PBX_KDE!$PBX_KDE$ac_delim
32206 LTDL_LIB!$LTDL_LIB$ac_delim
32207 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
32208 LTDL_DIR!$LTDL_DIR$ac_delim
32209 PBX_LTDL!$PBX_LTDL$ac_delim
32210 MISDN_LIB!$MISDN_LIB$ac_delim
32211 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
32212 MISDN_DIR!$MISDN_DIR$ac_delim
32213 PBX_MISDN!$PBX_MISDN$ac_delim
32214 NBS_LIB!$NBS_LIB$ac_delim
32215 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
32216 NBS_DIR!$NBS_DIR$ac_delim
32217 PBX_NBS!$PBX_NBS$ac_delim
32218 NCURSES_LIB!$NCURSES_LIB$ac_delim
32219 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
32220 NCURSES_DIR!$NCURSES_DIR$ac_delim
32221 PBX_NCURSES!$PBX_NCURSES$ac_delim
32222 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
32223 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
32224 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
32225 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
32226 NEWT_LIB!$NEWT_LIB$ac_delim
32227 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
32228 NEWT_DIR!$NEWT_DIR$ac_delim
32229 PBX_NEWT!$PBX_NEWT$ac_delim
32230 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
32231 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
32232 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
32233 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
32234 OGG_LIB!$OGG_LIB$ac_delim
32235 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
32236 OGG_DIR!$OGG_DIR$ac_delim
32237 PBX_OGG!$PBX_OGG$ac_delim
32238 OSPTK_LIB!$OSPTK_LIB$ac_delim
32239 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
32240 OSPTK_DIR!$OSPTK_DIR$ac_delim
32241 PBX_OSPTK!$PBX_OSPTK$ac_delim
32242 OSS_LIB!$OSS_LIB$ac_delim
32243 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
32244 OSS_DIR!$OSS_DIR$ac_delim
32245 PBX_OSS!$PBX_OSS$ac_delim
32246 POPT_LIB!$POPT_LIB$ac_delim
32247 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
32248 POPT_DIR!$POPT_DIR$ac_delim
32249 PBX_POPT!$PBX_POPT$ac_delim
32250 PGSQL_LIB!$PGSQL_LIB$ac_delim
32251 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
32252 PGSQL_DIR!$PGSQL_DIR$ac_delim
32253 PBX_PGSQL!$PBX_PGSQL$ac_delim
32254 PRI_LIB!$PRI_LIB$ac_delim
32255 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
32256 PRI_DIR!$PRI_DIR$ac_delim
32257 PBX_PRI!$PBX_PRI$ac_delim
32258 _ACEOF
32260 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32261 break
32262 elif $ac_last_try; then
32263 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32264 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32265 { (exit 1); exit 1; }; }
32266 else
32267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32269 done
32271 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32272 if test -n "$ac_eof"; then
32273 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32274 ac_eof=`expr $ac_eof + 1`
32277 cat >>$CONFIG_STATUS <<_ACEOF
32278 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32280 _ACEOF
32281 sed '
32282 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32283 s/^/s,@/; s/!/@,|#_!!_#|/
32286 s/'"$ac_delim"'$/,g/; t
32287 s/$/\\/; p
32288 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32289 ' >>$CONFIG_STATUS <conf$$subs.sed
32290 rm -f conf$$subs.sed
32291 cat >>$CONFIG_STATUS <<_ACEOF
32292 CEOF$ac_eof
32293 _ACEOF
32296 ac_delim='%!_!# '
32297 for ac_last_try in false false false false false :; do
32298 cat >conf$$subs.sed <<_ACEOF
32299 PWLIB_LIB!$PWLIB_LIB$ac_delim
32300 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
32301 PWLIB_DIR!$PWLIB_DIR$ac_delim
32302 PBX_PWLIB!$PBX_PWLIB$ac_delim
32303 OPENH323_LIB!$OPENH323_LIB$ac_delim
32304 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
32305 OPENH323_DIR!$OPENH323_DIR$ac_delim
32306 PBX_OPENH323!$PBX_OPENH323$ac_delim
32307 RADIUS_LIB!$RADIUS_LIB$ac_delim
32308 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
32309 RADIUS_DIR!$RADIUS_DIR$ac_delim
32310 PBX_RADIUS!$PBX_RADIUS$ac_delim
32311 SPEEX_LIB!$SPEEX_LIB$ac_delim
32312 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
32313 SPEEX_DIR!$SPEEX_DIR$ac_delim
32314 PBX_SPEEX!$PBX_SPEEX$ac_delim
32315 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
32316 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
32317 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
32318 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
32319 SQLITE_LIB!$SQLITE_LIB$ac_delim
32320 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
32321 SQLITE_DIR!$SQLITE_DIR$ac_delim
32322 PBX_SQLITE!$PBX_SQLITE$ac_delim
32323 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
32324 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
32325 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
32326 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
32327 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
32328 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
32329 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
32330 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
32331 FREETDS_LIB!$FREETDS_LIB$ac_delim
32332 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
32333 FREETDS_DIR!$FREETDS_DIR$ac_delim
32334 PBX_FREETDS!$PBX_FREETDS$ac_delim
32335 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
32336 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
32337 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
32338 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
32339 TINFO_LIB!$TINFO_LIB$ac_delim
32340 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
32341 TINFO_DIR!$TINFO_DIR$ac_delim
32342 PBX_TINFO!$PBX_TINFO$ac_delim
32343 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
32344 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
32345 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
32346 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
32347 USB_LIB!$USB_LIB$ac_delim
32348 USB_INCLUDE!$USB_INCLUDE$ac_delim
32349 USB_DIR!$USB_DIR$ac_delim
32350 PBX_USB!$PBX_USB$ac_delim
32351 VORBIS_LIB!$VORBIS_LIB$ac_delim
32352 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
32353 VORBIS_DIR!$VORBIS_DIR$ac_delim
32354 PBX_VORBIS!$PBX_VORBIS$ac_delim
32355 VPB_LIB!$VPB_LIB$ac_delim
32356 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
32357 VPB_DIR!$VPB_DIR$ac_delim
32358 PBX_VPB!$PBX_VPB$ac_delim
32359 ZLIB_LIB!$ZLIB_LIB$ac_delim
32360 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
32361 ZLIB_DIR!$ZLIB_DIR$ac_delim
32362 PBX_ZLIB!$PBX_ZLIB$ac_delim
32363 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
32364 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
32365 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
32366 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
32367 ALLOCA!$ALLOCA$ac_delim
32368 LIBOBJS!$LIBOBJS$ac_delim
32369 POW_LIB!$POW_LIB$ac_delim
32370 GC_CFLAGS!$GC_CFLAGS$ac_delim
32371 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
32372 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
32373 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
32374 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
32375 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
32376 KDEINIT!$KDEINIT$ac_delim
32377 KDEDIR!$KDEDIR$ac_delim
32378 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
32379 PG_CONFIG!$PG_CONFIG$ac_delim
32380 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
32381 PWLIBDIR!$PWLIBDIR$ac_delim
32382 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
32383 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
32384 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
32385 OPENH323DIR!$OPENH323DIR$ac_delim
32386 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
32387 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
32388 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
32389 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
32390 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
32391 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
32392 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
32393 PBX_H323!$PBX_H323$ac_delim
32394 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
32395 GTKCONFIG!$GTKCONFIG$ac_delim
32396 _ACEOF
32398 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32399 break
32400 elif $ac_last_try; then
32401 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32402 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32403 { (exit 1); exit 1; }; }
32404 else
32405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32407 done
32409 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32410 if test -n "$ac_eof"; then
32411 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32412 ac_eof=`expr $ac_eof + 1`
32415 cat >>$CONFIG_STATUS <<_ACEOF
32416 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
32417 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32418 _ACEOF
32419 sed '
32420 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32421 s/^/s,@/; s/!/@,|#_!!_#|/
32424 s/'"$ac_delim"'$/,g/; t
32425 s/$/\\/; p
32426 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32427 ' >>$CONFIG_STATUS <conf$$subs.sed
32428 rm -f conf$$subs.sed
32429 cat >>$CONFIG_STATUS <<_ACEOF
32430 CEOF$ac_eof
32431 _ACEOF
32434 ac_delim='%!_!# '
32435 for ac_last_try in false false false false false :; do
32436 cat >conf$$subs.sed <<_ACEOF
32437 PBX_GTK!$PBX_GTK$ac_delim
32438 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
32439 GTK_LIB!$GTK_LIB$ac_delim
32440 PKGCONFIG!$PKGCONFIG$ac_delim
32441 PBX_GTK2!$PBX_GTK2$ac_delim
32442 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
32443 GTK2_LIB!$GTK2_LIB$ac_delim
32444 CURL_CONFIG!$CURL_CONFIG$ac_delim
32445 LTLIBOBJS!$LTLIBOBJS$ac_delim
32446 _ACEOF
32448 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
32449 break
32450 elif $ac_last_try; then
32451 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32452 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32453 { (exit 1); exit 1; }; }
32454 else
32455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32457 done
32459 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32460 if test -n "$ac_eof"; then
32461 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32462 ac_eof=`expr $ac_eof + 1`
32465 cat >>$CONFIG_STATUS <<_ACEOF
32466 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
32467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32468 _ACEOF
32469 sed '
32470 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32471 s/^/s,@/; s/!/@,|#_!!_#|/
32474 s/'"$ac_delim"'$/,g/; t
32475 s/$/\\/; p
32476 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32477 ' >>$CONFIG_STATUS <conf$$subs.sed
32478 rm -f conf$$subs.sed
32479 cat >>$CONFIG_STATUS <<_ACEOF
32480 :end
32481 s/|#_!!_#|//g
32482 CEOF$ac_eof
32483 _ACEOF
32486 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32487 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32488 # trailing colons and then remove the whole line if VPATH becomes empty
32489 # (actually we leave an empty line to preserve line numbers).
32490 if test "x$srcdir" = x.; then
32491 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32492 s/:*\$(srcdir):*/:/
32493 s/:*\${srcdir}:*/:/
32494 s/:*@srcdir@:*/:/
32495 s/^\([^=]*=[ ]*\):*/\1/
32496 s/:*$//
32497 s/^[^=]*=[ ]*$//
32501 cat >>$CONFIG_STATUS <<\_ACEOF
32502 fi # test -n "$CONFIG_FILES"
32505 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
32507 case $ac_tag in
32508 :[FHLC]) ac_mode=$ac_tag; continue;;
32509 esac
32510 case $ac_mode$ac_tag in
32511 :[FHL]*:*);;
32512 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32513 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32514 { (exit 1); exit 1; }; };;
32515 :[FH]-) ac_tag=-:-;;
32516 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32517 esac
32518 ac_save_IFS=$IFS
32519 IFS=:
32520 set x $ac_tag
32521 IFS=$ac_save_IFS
32522 shift
32523 ac_file=$1
32524 shift
32526 case $ac_mode in
32527 :L) ac_source=$1;;
32528 :[FH])
32529 ac_file_inputs=
32530 for ac_f
32532 case $ac_f in
32533 -) ac_f="$tmp/stdin";;
32534 *) # Look for the file first in the build tree, then in the source tree
32535 # (if the path is not absolute). The absolute path cannot be DOS-style,
32536 # because $ac_f cannot contain `:'.
32537 test -f "$ac_f" ||
32538 case $ac_f in
32539 [\\/$]*) false;;
32540 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32541 esac ||
32542 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32543 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32544 { (exit 1); exit 1; }; };;
32545 esac
32546 ac_file_inputs="$ac_file_inputs $ac_f"
32547 done
32549 # Let's still pretend it is `configure' which instantiates (i.e., don't
32550 # use $as_me), people would be surprised to read:
32551 # /* config.h. Generated by config.status. */
32552 configure_input="Generated from "`IFS=:
32553 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32554 if test x"$ac_file" != x-; then
32555 configure_input="$ac_file. $configure_input"
32556 { echo "$as_me:$LINENO: creating $ac_file" >&5
32557 echo "$as_me: creating $ac_file" >&6;}
32560 case $ac_tag in
32561 *:-:* | *:-) cat >"$tmp/stdin";;
32562 esac
32564 esac
32566 ac_dir=`$as_dirname -- "$ac_file" ||
32567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32568 X"$ac_file" : 'X\(//\)[^/]' \| \
32569 X"$ac_file" : 'X\(//\)$' \| \
32570 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32571 echo X"$ac_file" |
32572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32573 s//\1/
32576 /^X\(\/\/\)[^/].*/{
32577 s//\1/
32580 /^X\(\/\/\)$/{
32581 s//\1/
32584 /^X\(\/\).*/{
32585 s//\1/
32588 s/.*/./; q'`
32589 { as_dir="$ac_dir"
32590 case $as_dir in #(
32591 -*) as_dir=./$as_dir;;
32592 esac
32593 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32594 as_dirs=
32595 while :; do
32596 case $as_dir in #(
32597 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32598 *) as_qdir=$as_dir;;
32599 esac
32600 as_dirs="'$as_qdir' $as_dirs"
32601 as_dir=`$as_dirname -- "$as_dir" ||
32602 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32603 X"$as_dir" : 'X\(//\)[^/]' \| \
32604 X"$as_dir" : 'X\(//\)$' \| \
32605 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32606 echo X"$as_dir" |
32607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32608 s//\1/
32611 /^X\(\/\/\)[^/].*/{
32612 s//\1/
32615 /^X\(\/\/\)$/{
32616 s//\1/
32619 /^X\(\/\).*/{
32620 s//\1/
32623 s/.*/./; q'`
32624 test -d "$as_dir" && break
32625 done
32626 test -z "$as_dirs" || eval "mkdir $as_dirs"
32627 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32628 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32629 { (exit 1); exit 1; }; }; }
32630 ac_builddir=.
32632 case "$ac_dir" in
32633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32636 # A ".." for each directory in $ac_dir_suffix.
32637 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32638 case $ac_top_builddir_sub in
32639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32641 esac ;;
32642 esac
32643 ac_abs_top_builddir=$ac_pwd
32644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32645 # for backward compatibility:
32646 ac_top_builddir=$ac_top_build_prefix
32648 case $srcdir in
32649 .) # We are building in place.
32650 ac_srcdir=.
32651 ac_top_srcdir=$ac_top_builddir_sub
32652 ac_abs_top_srcdir=$ac_pwd ;;
32653 [\\/]* | ?:[\\/]* ) # Absolute name.
32654 ac_srcdir=$srcdir$ac_dir_suffix;
32655 ac_top_srcdir=$srcdir
32656 ac_abs_top_srcdir=$srcdir ;;
32657 *) # Relative name.
32658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32659 ac_top_srcdir=$ac_top_build_prefix$srcdir
32660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32661 esac
32662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32665 case $ac_mode in
32668 # CONFIG_FILE
32671 case $INSTALL in
32672 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32673 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32674 esac
32675 _ACEOF
32677 cat >>$CONFIG_STATUS <<\_ACEOF
32678 # If the template does not know about datarootdir, expand it.
32679 # FIXME: This hack should be removed a few years after 2.60.
32680 ac_datarootdir_hack=; ac_datarootdir_seen=
32682 case `sed -n '/datarootdir/ {
32686 /@datadir@/p
32687 /@docdir@/p
32688 /@infodir@/p
32689 /@localedir@/p
32690 /@mandir@/p
32691 ' $ac_file_inputs` in
32692 *datarootdir*) ac_datarootdir_seen=yes;;
32693 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32694 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32695 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32696 _ACEOF
32697 cat >>$CONFIG_STATUS <<_ACEOF
32698 ac_datarootdir_hack='
32699 s&@datadir@&$datadir&g
32700 s&@docdir@&$docdir&g
32701 s&@infodir@&$infodir&g
32702 s&@localedir@&$localedir&g
32703 s&@mandir@&$mandir&g
32704 s&\\\${datarootdir}&$datarootdir&g' ;;
32705 esac
32706 _ACEOF
32708 # Neutralize VPATH when `$srcdir' = `.'.
32709 # Shell code in configure.ac might set extrasub.
32710 # FIXME: do we really want to maintain this feature?
32711 cat >>$CONFIG_STATUS <<_ACEOF
32712 sed "$ac_vpsub
32713 $extrasub
32714 _ACEOF
32715 cat >>$CONFIG_STATUS <<\_ACEOF
32717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32718 s&@configure_input@&$configure_input&;t t
32719 s&@top_builddir@&$ac_top_builddir_sub&;t t
32720 s&@srcdir@&$ac_srcdir&;t t
32721 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32722 s&@top_srcdir@&$ac_top_srcdir&;t t
32723 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32724 s&@builddir@&$ac_builddir&;t t
32725 s&@abs_builddir@&$ac_abs_builddir&;t t
32726 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32727 s&@INSTALL@&$ac_INSTALL&;t t
32728 $ac_datarootdir_hack
32729 " $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
32731 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32732 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32733 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32734 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32735 which seems to be undefined. Please make sure it is defined." >&5
32736 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32737 which seems to be undefined. Please make sure it is defined." >&2;}
32739 rm -f "$tmp/stdin"
32740 case $ac_file in
32741 -) cat "$tmp/out"; rm -f "$tmp/out";;
32742 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32743 esac
32747 # CONFIG_HEADER
32749 _ACEOF
32751 # Transform confdefs.h into a sed script `conftest.defines', that
32752 # substitutes the proper values into config.h.in to produce config.h.
32753 rm -f conftest.defines conftest.tail
32754 # First, append a space to every undef/define line, to ease matching.
32755 echo 's/$/ /' >conftest.defines
32756 # Then, protect against being on the right side of a sed subst, or in
32757 # an unquoted here document, in config.status. If some macros were
32758 # called several times there might be several #defines for the same
32759 # symbol, which is useless. But do not sort them, since the last
32760 # AC_DEFINE must be honored.
32761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32762 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32763 # NAME is the cpp macro being defined, VALUE is the value it is being given.
32764 # PARAMS is the parameter list in the macro definition--in most cases, it's
32765 # just an empty string.
32766 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
32767 ac_dB='\\)[ (].*,\\1define\\2'
32768 ac_dC=' '
32769 ac_dD=' ,'
32771 uniq confdefs.h |
32772 sed -n '
32773 t rset
32774 :rset
32775 s/^[ ]*#[ ]*define[ ][ ]*//
32776 t ok
32779 s/[\\&,]/\\&/g
32780 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32781 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32782 ' >>conftest.defines
32784 # Remove the space that was appended to ease matching.
32785 # Then replace #undef with comments. This is necessary, for
32786 # example, in the case of _POSIX_SOURCE, which is predefined and required
32787 # on some systems where configure will not decide to define it.
32788 # (The regexp can be short, since the line contains either #define or #undef.)
32789 echo 's/ $//
32790 s,^[ #]*u.*,/* & */,' >>conftest.defines
32792 # Break up conftest.defines:
32793 ac_max_sed_lines=50
32795 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32796 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32797 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32798 # et cetera.
32799 ac_in='$ac_file_inputs'
32800 ac_out='"$tmp/out1"'
32801 ac_nxt='"$tmp/out2"'
32803 while :
32805 # Write a here document:
32806 cat >>$CONFIG_STATUS <<_ACEOF
32807 # First, check the format of the line:
32808 cat >"\$tmp/defines.sed" <<\\CEOF
32809 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
32810 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
32812 :def
32813 _ACEOF
32814 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
32815 echo 'CEOF
32816 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32817 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
32818 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
32819 grep . conftest.tail >/dev/null || break
32820 rm -f conftest.defines
32821 mv conftest.tail conftest.defines
32822 done
32823 rm -f conftest.defines conftest.tail
32825 echo "ac_result=$ac_in" >>$CONFIG_STATUS
32826 cat >>$CONFIG_STATUS <<\_ACEOF
32827 if test x"$ac_file" != x-; then
32828 echo "/* $configure_input */" >"$tmp/config.h"
32829 cat "$ac_result" >>"$tmp/config.h"
32830 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
32831 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32832 echo "$as_me: $ac_file is unchanged" >&6;}
32833 else
32834 rm -f $ac_file
32835 mv "$tmp/config.h" $ac_file
32837 else
32838 echo "/* $configure_input */"
32839 cat "$ac_result"
32841 rm -f "$tmp/out12"
32845 esac
32847 done # for ac_tag
32850 { (exit 0); exit 0; }
32851 _ACEOF
32852 chmod +x $CONFIG_STATUS
32853 ac_clean_files=$ac_clean_files_save
32856 # configure is writing to config.log, and then calls config.status.
32857 # config.status does its own redirection, appending to config.log.
32858 # Unfortunately, on DOS this fails, as config.log is still kept open
32859 # by configure, so config.status won't be able to write to it; its
32860 # output is simply discarded. So we exec the FD to /dev/null,
32861 # effectively closing config.log, so it can be properly (re)opened and
32862 # appended to by config.status. When coming back to configure, we
32863 # need to make the FD available again.
32864 if test "$no_create" != yes; then
32865 ac_cs_success=:
32866 ac_config_status_args=
32867 test "$silent" = yes &&
32868 ac_config_status_args="$ac_config_status_args --quiet"
32869 exec 5>/dev/null
32870 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32871 exec 5>>config.log
32872 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32873 # would make configure fail if this is the last instruction.
32874 $ac_cs_success || { (exit 1); exit 1; }
32878 if test "x${silent}" != "xyes" ; then
32879 echo
32880 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
32881 echo " .\$7\$7.. .7\$\$7:. "
32882 echo " .\$\$:. ,\$7.7 "
32883 echo " .\$7. 7\$\$\$\$ .\$\$77 "
32884 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
32885 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
32886 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
32887 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
32888 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
32889 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
32890 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
32891 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
32892 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
32893 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
32894 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
32895 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
32896 echo " \$\$\$\$\$ \$\$\$ "
32897 echo " \$\$\$\$7. \$\$ (TM) "
32898 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
32899 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
32900 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
32901 echo
32904 { echo "$as_me:$LINENO: Package configured for: " >&5
32905 echo "$as_me: Package configured for: " >&6;}
32906 { echo "$as_me:$LINENO: OS type : $host_os" >&5
32907 echo "$as_me: OS type : $host_os" >&6;}
32908 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
32909 echo "$as_me: Host CPU : $host_cpu" >&6;}
32910 if test "${cross_compiling}" = "yes"; then
32911 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
32912 echo "$as_me: Cross Compilation = YES" >&6;}