2 # From configure.ac Revision: 115341 .
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.
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
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+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in
29 *posix
*) set -o posix
;;
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
50 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
58 # Support unset when possible.
59 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
75 # Find who we are. Look in the path if we contain no directory separator.
77 *[\\/]* ) as_myself
=$0 ;;
78 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
82 test -z "$as_dir" && as_dir
=.
83 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
113 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C
; export $as_var
116 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
120 # Required to use basename.
121 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
128 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 if test "x$CONFIG_SHELL" = x
; then
160 if (eval ":") 2>/dev
/null
; then
166 if test $as_have_required = yes && (eval ":
176 as_func_ret_success () {
179 as_func_ret_failure () {
184 if as_func_success; then
188 echo as_func_success failed.
191 if as_func_failure; then
193 echo as_func_failure succeeded.
196 if as_func_ret_success; then
200 echo as_func_ret_success failed.
203 if as_func_ret_failure; then
205 echo as_func_ret_failure succeeded.
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
212 echo positional parameters were not saved.
215 test \$exitcode = 0) || { (exit 1); exit 1; }
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
226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
227 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
230 test -z "$as_dir" && as_dir
=.
233 for as_base
in sh bash ksh sh5
; do
234 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
253 case `(set -o) 2>/dev/null` in
254 *posix
*) set -o posix
;;
263 CONFIG_SHELL
=$as_shell
265 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
274 case `(set -o) 2>/dev/null` in
275 *posix
*) set -o posix
;;
291 as_func_ret_success
() {
294 as_func_ret_failure
() {
299 if as_func_success
; then
303 echo as_func_success failed.
306 if as_func_failure
; then
308 echo as_func_failure succeeded.
311 if as_func_ret_success
; then
315 echo as_func_ret_success failed.
318 if as_func_ret_failure
; then
320 echo as_func_ret_failure succeeded.
323 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
327 echo positional parameters were not saved.
330 test $exitcode = 0) ||
{ (exit 1); exit 1; }
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; }
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
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 () {
380 as_func_ret_success () {
383 as_func_ret_failure () {
388 if as_func_success; then
392 echo as_func_success failed.
395 if as_func_failure; then
397 echo as_func_failure succeeded.
400 if as_func_ret_success; then
404 echo as_func_ret_success failed.
407 if as_func_ret_failure; then
409 echo as_func_ret_failure succeeded.
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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
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
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. :-)
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
466 # Exit status is that of the last command.
471 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
477 ECHO_C
= ECHO_N
= ECHO_T
=
481 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
488 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
495 rm -f conf$$ conf$$.exe conf$$.
file
496 if test -d conf$$.dir
; then
497 rm -f conf$$.dir
/conf$$.
file
503 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
511 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
522 test -d .
/-p && rmdir .
/-p
526 if test -x / >/dev
/null
2>&1; then
529 if ls -dL / >/dev
/null
2>&1; then
536 if test -d "$1"; then
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
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
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`
567 ac_default_prefix
=/usr
/local
569 ac_config_libobj_dir
=.
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
="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
631 program_transform_name
885 AST_DECLARATION_AFTER_STATEMENT
886 AST_NO_STRICT_OVERFLOW
919 ac_precious_vars
='build_alias
934 # Initialize some variables set by options.
936 ac_init_version
=false
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
946 program_transform_name
=s
,x
,x
,
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir
='${exec_prefix}/bin'
961 sbindir
='${exec_prefix}/sbin'
962 libexecdir
='${exec_prefix}/libexec'
963 datarootdir
='${prefix}/share'
964 datadir
='${datarootdir}'
965 sysconfdir
='${prefix}/etc'
966 sharedstatedir
='${prefix}/com'
967 localstatedir
='${prefix}/var'
968 includedir
='${prefix}/include'
969 oldincludedir
='/usr/include'
970 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
971 infodir
='${datarootdir}/info'
976 libdir
='${exec_prefix}/lib'
977 localedir
='${datarootdir}/locale'
978 mandir
='${datarootdir}/man'
984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
986 eval $ac_prev=\
$ac_option
992 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996 # Accept the important Cygnus configure options, so we can diagnose typos.
998 case $ac_dashdash$ac_option in
1002 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1004 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1005 bindir
=$ac_optarg ;;
1007 -build |
--build |
--buil |
--bui |
--bu)
1008 ac_prev
=build_alias
;;
1009 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1010 build_alias
=$ac_optarg ;;
1012 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1013 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1014 ac_prev
=cache_file
;;
1015 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1016 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1017 cache_file
=$ac_optarg ;;
1019 --config-cache |
-C)
1020 cache_file
=config.cache
;;
1022 -datadir |
--datadir |
--datadi |
--datad)
1024 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1025 datadir
=$ac_optarg ;;
1027 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1028 |
--dataroo |
--dataro |
--datar)
1029 ac_prev
=datarootdir
;;
1030 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1031 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1032 datarootdir
=$ac_optarg ;;
1034 -disable-* |
--disable-*)
1035 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_
$ac_feature=no
;;
1043 -docdir |
--docdir |
--docdi |
--doc |
--do)
1045 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1046 docdir
=$ac_optarg ;;
1048 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1050 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1051 dvidir
=$ac_optarg ;;
1053 -enable-* |
--enable-*)
1054 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1060 eval enable_
$ac_feature=\
$ac_optarg ;;
1062 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1063 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1064 |
--exec |
--exe |
--ex)
1065 ac_prev
=exec_prefix
;;
1066 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1067 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1068 |
--exec=* |
--exe=* |
--ex=*)
1069 exec_prefix
=$ac_optarg ;;
1071 -gas |
--gas |
--ga |
--g)
1072 # Obsolete; use --with-gas.
1075 -help |
--help |
--hel |
--he |
-h)
1076 ac_init_help
=long
;;
1077 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1078 ac_init_help
=recursive
;;
1079 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1080 ac_init_help
=short
;;
1082 -host |
--host |
--hos |
--ho)
1083 ac_prev
=host_alias
;;
1084 -host=* |
--host=* |
--hos=* |
--ho=*)
1085 host_alias
=$ac_optarg ;;
1087 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1089 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1091 htmldir
=$ac_optarg ;;
1093 -includedir |
--includedir |
--includedi |
--included |
--include \
1094 |
--includ |
--inclu |
--incl |
--inc)
1095 ac_prev
=includedir
;;
1096 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1097 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1098 includedir
=$ac_optarg ;;
1100 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1102 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1103 infodir
=$ac_optarg ;;
1105 -libdir |
--libdir |
--libdi |
--libd)
1107 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1108 libdir
=$ac_optarg ;;
1110 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1111 |
--libexe |
--libex |
--libe)
1112 ac_prev
=libexecdir
;;
1113 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1114 |
--libexe=* |
--libex=* |
--libe=*)
1115 libexecdir
=$ac_optarg ;;
1117 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1118 ac_prev
=localedir
;;
1119 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1120 localedir
=$ac_optarg ;;
1122 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1123 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1124 ac_prev
=localstatedir
;;
1125 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1126 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1127 localstatedir
=$ac_optarg ;;
1129 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1131 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1132 mandir
=$ac_optarg ;;
1134 -nfp |
--nfp |
--nf)
1135 # Obsolete; use --without-fp.
1138 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1139 |
--no-cr |
--no-c |
-n)
1142 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1143 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1146 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1147 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1148 |
--oldin |
--oldi |
--old |
--ol |
--o)
1149 ac_prev
=oldincludedir
;;
1150 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1151 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1152 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1153 oldincludedir
=$ac_optarg ;;
1155 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1157 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1158 prefix
=$ac_optarg ;;
1160 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1161 |
--program-pre |
--program-pr |
--program-p)
1162 ac_prev
=program_prefix
;;
1163 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1164 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1165 program_prefix
=$ac_optarg ;;
1167 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1168 |
--program-suf |
--program-su |
--program-s)
1169 ac_prev
=program_suffix
;;
1170 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1171 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1172 program_suffix
=$ac_optarg ;;
1174 -program-transform-name |
--program-transform-name \
1175 |
--program-transform-nam |
--program-transform-na \
1176 |
--program-transform-n |
--program-transform- \
1177 |
--program-transform |
--program-transfor \
1178 |
--program-transfo |
--program-transf \
1179 |
--program-trans |
--program-tran \
1180 |
--progr-tra |
--program-tr |
--program-t)
1181 ac_prev
=program_transform_name
;;
1182 -program-transform-name=* |
--program-transform-name=* \
1183 |
--program-transform-nam=* |
--program-transform-na=* \
1184 |
--program-transform-n=* |
--program-transform-=* \
1185 |
--program-transform=* |
--program-transfor=* \
1186 |
--program-transfo=* |
--program-transf=* \
1187 |
--program-trans=* |
--program-tran=* \
1188 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1189 program_transform_name
=$ac_optarg ;;
1191 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1193 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1194 pdfdir
=$ac_optarg ;;
1196 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1198 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1201 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1202 |
-silent |
--silent |
--silen |
--sile |
--sil)
1205 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1207 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1209 sbindir
=$ac_optarg ;;
1211 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1212 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1213 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1215 ac_prev
=sharedstatedir
;;
1216 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1217 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1218 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1220 sharedstatedir
=$ac_optarg ;;
1222 -site |
--site |
--sit)
1224 -site=* |
--site=* |
--sit=*)
1227 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1229 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1230 srcdir
=$ac_optarg ;;
1232 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1233 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1234 ac_prev
=sysconfdir
;;
1235 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1236 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1237 sysconfdir
=$ac_optarg ;;
1239 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1240 ac_prev
=target_alias
;;
1241 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1242 target_alias
=$ac_optarg ;;
1244 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1247 -version |
--version |
--versio |
--versi |
--vers |
-V)
1248 ac_init_version
=: ;;
1251 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1254 { echo "$as_me: error: invalid package name: $ac_package" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1257 eval with_
$ac_package=\
$ac_optarg ;;
1259 -without-* |
--without-*)
1260 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1263 { echo "$as_me: error: invalid package name: $ac_package" >&2
1264 { (exit 1); exit 1; }; }
1265 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1266 eval with_
$ac_package=no
;;
1269 # Obsolete; use --with-x.
1272 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1273 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1274 ac_prev
=x_includes
;;
1275 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1276 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1277 x_includes
=$ac_optarg ;;
1279 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1280 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1281 ac_prev
=x_libraries
;;
1282 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1283 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1284 x_libraries
=$ac_optarg ;;
1286 -*) { echo "$as_me: error: unrecognized option: $ac_option
1287 Try \`$0 --help' for more information." >&2
1288 { (exit 1); exit 1; }; }
1292 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1295 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1296 { (exit 1); exit 1; }; }
1297 eval $ac_envvar=\
$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1304 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1311 if test -n "$ac_prev"; then
1312 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1313 { echo "$as_me: error: missing argument to $ac_option" >&2
1314 { (exit 1); exit 1; }; }
1317 # Be sure to have absolute directory names.
1318 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
1323 eval ac_val
=\$
$ac_var
1325 [\\/$
]* | ?
:[\\/]* ) continue;;
1326 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1328 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1329 { (exit 1); exit 1; }; }
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1337 target
=$target_alias
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x
; then
1341 if test "x$build_alias" = x
; then
1342 cross_compiling
=maybe
1343 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1344 If a cross compiler is detected then cross compile mode will be used." >&2
1345 elif test "x$build_alias" != "x$host_alias"; then
1351 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1353 test "$silent" = yes && exec 6>/dev
/null
1356 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di
=`ls -di .` &&
1358 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1359 { echo "$as_me: error: Working directory cannot be determined" >&2
1360 { (exit 1); exit 1; }; }
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362 { echo "$as_me: error: pwd does not report name of working directory" >&2
1363 { (exit 1); exit 1; }; }
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted
=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir
=`$as_dirname -- "$0" ||
1371 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$0" : 'X\(//\)[^/]' \| \
1373 X"$0" : 'X\(//\)$' \| \
1374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1398 ac_srcdir_defaulted
=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1402 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1403 { (exit 1); exit 1; }; }
1405 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1408 { (exit 1); exit 1; }; }
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1418 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 for ac_var
in $ac_precious_vars; do
1421 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1423 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1434 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1492 --build=BUILD configure
for building on BUILD
[guessed
]
1493 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive
) echo "Configuration of asterisk 1.4:";;
1504 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1505 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1506 --enable-dev-mode Turn on developer mode
1507 --disable-largefile omit support
for large files
1510 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1511 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1512 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1513 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1514 --with-curl=PATH use cURL files
in PATH
1515 --with-cap=PATH use POSIX
1.e capabilities files
in PATH
1516 --with-curses=PATH use curses files
in PATH
1517 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1519 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1520 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1521 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1522 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1523 --with-kde=PATH use KDE files
in PATH
1524 --with-ltdl=PATH use libtool files
in PATH
1525 --with-misdn=PATH use mISDN User Library files
in PATH
1526 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1527 --with-ncurses=PATH use ncurses files
in PATH
1528 --with-netsnmp=PATH use Net-SNMP files
in PATH
1529 --with-newt=PATH use newt files
in PATH
1530 --with-odbc=PATH use unixODBC files
in PATH
1531 --with-ogg=PATH use OGG files
in PATH
1532 --with-osptk=PATH use OSP Toolkit files
in PATH
1533 --with-oss=PATH use Open Sound System files
in PATH
1534 --with-popt=PATH use popt files
in PATH
1535 --with-postgres=PATH use PostgreSQL files
in PATH
1536 --with-pri=PATH use ISDN PRI files
in PATH
1537 --with-pwlib=PATH use PWlib files
in PATH
1538 --with-h323=PATH use OpenH323 files
in PATH
1539 --with-radius=PATH use Radius Client files
in PATH
1540 --with-speex=PATH use Speex files
in PATH
1541 --with-speexdsp=PATH use Speexdsp files
in PATH
1542 --with-sqlite=PATH use SQLite files
in PATH
1543 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1544 --with-ssl=PATH use OpenSSL files
in PATH
1545 --with-tds=PATH use FreeTDS files
in PATH
1546 --with-termcap=PATH use Termcap files
in PATH
1547 --with-tinfo=PATH use Term Info files
in PATH
1548 --with-tonezone=PATH use tonezone files
in PATH
1549 --with-usb=PATH use usb files
in PATH
1550 --with-vorbis=PATH use Vorbis files
in PATH
1551 --with-vpb=PATH use Voicetronix API files
in PATH
1552 --with-z=PATH use zlib files
in PATH
1553 --with-zaptel=PATH use Zaptel files
in PATH
1555 Some influential environment variables
:
1556 CC C compiler
command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1559 nonstandard directory
<lib dir
>
1560 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1561 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1562 you have headers
in a nonstandard directory
<include dir
>
1564 CXX C
++ compiler
command
1565 CXXFLAGS C
++ compiler flags
1566 CXXCPP C
++ preprocessor
1568 Use these variables to override the choices made by
`configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1571 Report bugs to <www.asterisk.org>.
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" || continue
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1599 .) # We are building in place.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1623 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1632 asterisk configure 1.4
1633 generated by GNU Autoconf 2.61
1635 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1644 cat >config.log <<_ACEOF
1645 This file contains any messages produced by compilers while
1646 running configure, to aid debugging if configure makes a mistake.
1648 It was created by asterisk $as_me 1.4, which was
1649 generated by GNU Autoconf 2.61. Invocation command line was
1661 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1662 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1663 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1664 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1665 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1667 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1668 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1670 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1671 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1672 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1673 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1674 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1675 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1676 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir=.
1685 echo "PATH: $as_dir"
1701 # Keep a trace of the command line.
1702 # Strip out --no-create and --no-recursion so they do not pile up.
1703 # Strip out --silent because we don't want to record it for future runs.
1704 # Also quote any args containing shell meta-characters.
1705 # Make two passes to allow for proper duplicate-argument suppression.
1709 ac_must_keep_next=false
1715 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717 | -silent | --silent | --silen | --sile | --sil)
1720 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1723 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726 if test $ac_must_keep_next = true; then
1727 ac_must_keep_next=false # Got value, back to normal.
1730 *=* | --config-cache | -C | -disable-* | --disable-* \
1731 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733 | -with-* | --with-* | -without-* | --without-* | --x)
1734 case "$ac_configure_args0 " in
1735 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738 -* ) ac_must_keep_next=true ;;
1741 ac_configure_args="$ac_configure_args '$ac_arg'"
1746 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1749 # When interrupted or exit'd, cleanup temporary files, and complete
1750 # config.log. We remove comments because anyway the quotes in there
1751 # would cause problems or look ugly.
1752 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1754 trap 'exit_status=$?
1755 # Save into config.log some information that might help in debugging.
1760 ## ---------------- ##
1761 ## Cache variables. ##
1762 ## ---------------- ##
1765 # The following way of writing the cache mishandles newlines in values,
1767 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1768 eval ac_val=\$$ac_var
1772 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1773 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1776 _ | IFS | as_nl) ;; #(
1777 *) $as_unset $ac_var ;;
1782 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1783 *${as_nl}ac_space=\ *)
1785 "s/'\''/'\''\\\\'\'''\''/g;
1786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1802 for ac_var in $ac_subst_vars
1804 eval ac_val=\$$ac_var
1806 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 echo "$ac_var='\''$ac_val'\''"
1812 if test -n "$ac_subst_files"; then
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1819 for ac_var in $ac_subst_files
1821 eval ac_val=\$$ac_var
1823 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 echo "$ac_var='\''$ac_val'\''"
1830 if test -s confdefs.h; then
1840 test "$ac_signal" != 0 &&
1841 echo "$as_me: caught signal $ac_signal"
1842 echo "$as_me: exit $exit_status"
1844 rm -f core *.core core.conftest.* &&
1845 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848 for ac_signal in 1 2 13 15; do
1849 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1856 # Predefined preprocessor variables.
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer explicitly selected file to automatically selected ones.
1885 if test -n "$CONFIG_SITE"; then
1886 set x "$CONFIG_SITE"
1887 elif test "x$prefix" != xNONE; then
1888 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1890 set x "$ac_default_prefix/share/config.site" \
1891 "$ac_default_prefix/etc/config.site"
1896 if test -r "$ac_site_file"; then
1897 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1904 if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 echo "$as_me: loading cache $cache_file" >&6;}
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1916 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1921 ac_header_list="$ac_header_list utime.h"
1922 # Check that the precious variables saved in the cache have kept the same
1924 ac_cache_corrupted=false
1925 for ac_var in $ac_precious_vars; do
1926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927 eval ac_new_set=\$ac_env_${ac_var}_set
1928 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929 eval ac_new_val=\$ac_env_${ac_var}_value
1930 case $ac_old_set,$ac_new_set in
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1933 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1937 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1941 if test "x$ac_old_val" != "x$ac_new_val"; then
1942 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1944 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1945 echo "$as_me: former value
: $ac_old_val" >&2;}
1946 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1947 echo "$as_me: current value
: $ac_new_val" >&2;}
1948 ac_cache_corrupted=:
1951 # Pass precious variables to config.status.
1952 if test "$ac_new_set" = set; then
1954 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1955 *) ac_arg=$ac_var=$ac_new_val ;;
1957 case " $ac_configure_args " in
1958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1959 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963 if $ac_cache_corrupted; then
1964 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1965 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1966 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 # cross-compile macros
2005 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2006 if test -f "$ac_dir/install-sh"; then
2008 ac_install_sh="$ac_aux_dir/install-sh -c"
2010 elif test -f "$ac_dir/install.sh"; then
2012 ac_install_sh="$ac_aux_dir/install.sh -c"
2014 elif test -f "$ac_dir/shtool"; then
2016 ac_install_sh="$ac_aux_dir/shtool install -c"
2020 if test -z "$ac_aux_dir"; then
2021 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2022 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2023 { (exit 1); exit 1; }; }
2026 # These three variables are undocumented and unsupported,
2027 # and are intended to be withdrawn in a future Autoconf release.
2028 # They can cause serious problems if a builder's source tree is in a directory
2029 # whose full name contains unusual characters.
2030 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2031 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2032 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2035 # Make sure we can run config.sub.
2036 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2037 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2038 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2039 { (exit 1); exit 1; }; }
2041 { echo "$as_me:$LINENO: checking build system type" >&5
2042 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2043 if test "${ac_cv_build+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 ac_build_alias=$build_alias
2047 test "x$ac_build_alias" = x &&
2048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2049 test "x$ac_build_alias" = x &&
2050 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2051 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2052 { (exit 1); exit 1; }; }
2053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2054 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2055 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2056 { (exit 1); exit 1; }; }
2059 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2060 echo "${ECHO_T}$ac_cv_build" >&6; }
2061 case $ac_cv_build in
2063 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2064 echo "$as_me: error: invalid value of canonical build" >&2;}
2065 { (exit 1); exit 1; }; };;
2068 ac_save_IFS=$IFS; IFS='-'
2074 # Remember, the first character of IFS is used to create $*,
2075 # except with old shells:
2078 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2081 { echo "$as_me:$LINENO: checking host system type" >&5
2082 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2083 if test "${ac_cv_host+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test "x$host_alias" = x; then
2087 ac_cv_host=$ac_cv_build
2089 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2090 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2091 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2092 { (exit 1); exit 1; }; }
2096 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2097 echo "${ECHO_T}$ac_cv_host" >&6; }
2100 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2101 echo "$as_me: error: invalid value of canonical host" >&2;}
2102 { (exit 1); exit 1; }; };;
2105 ac_save_IFS=$IFS; IFS='-'
2111 # Remember, the first character of IFS is used to create $*,
2112 # except with old shells:
2115 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2119 # check existence of the package
2122 # specify output header file
2123 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2130 cat >>confdefs.h <<\_ACEOF
2131 #define _GNU_SOURCE 1
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 if test -n "$CC"; then
2170 { echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6; }
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2179 if test -z "$ac_cv_prog_CC"; then
2181 # Extract the first word of "gcc", so it can be a program name with args.
2182 set dummy gcc; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 if test -n "$ac_ct_CC"; then
2189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_ac_ct_CC="gcc"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 if test -n "$ac_ct_CC"; then
2210 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2211 echo "${ECHO_T}$ac_ct_CC" >&6; }
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2217 if test "x$ac_ct_CC" = x; then
2220 case $cross_compiling:$ac_tool_warned in
2222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2223 whose name does not start with the host triplet. If you think this
2224 configuration is useful to you, please write to autoconf@gnu.org." >&5
2225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2226 whose name does not start with the host triplet. If you think this
2227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2228 ac_tool_warned=yes ;;
2236 if test -z "$CC"; then
2237 if test -n "$ac_tool_prefix"; then
2238 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2239 set dummy ${ac_tool_prefix}cc; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_CC="${ac_tool_prefix}cc"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 if test -n "$CC"; then
2267 { echo "$as_me:$LINENO: result: $CC" >&5
2268 echo "${ECHO_T}$CC" >&6; }
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2277 if test -z "$CC"; then
2278 # Extract the first word of "cc", so it can be a program name with args.
2279 set dummy cc; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2297 ac_prog_rejected=yes
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 if test $ac_prog_rejected = yes; then
2309 # We found a bogon in the path, so make sure we never use it.
2310 set dummy $ac_cv_prog_CC
2312 if test $# != 0; then
2313 # We chose a different compiler from the bogus one.
2314 # However, it has the same basename, so the bogon will be chosen
2315 # first if we set CC to just the basename; use the full file name.
2317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2323 if test -n "$CC"; then
2324 { echo "$as_me:$LINENO: result: $CC" >&5
2325 echo "${ECHO_T}$CC" >&6; }
2327 { echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6; }
2333 if test -z "$CC"; then
2334 if test -n "$ac_tool_prefix"; then
2335 for ac_prog in cl.exe
2337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 if test -n "$CC"; then
2366 { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2374 test -n "$CC" && break
2377 if test -z "$CC"; then
2379 for ac_prog in cl.exe
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 if test -n "$ac_ct_CC"; then
2389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_ac_ct_CC="$ac_prog"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6; }
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2418 test -n "$ac_ct_CC" && break
2421 if test "x$ac_ct_CC" = x; then
2424 case $cross_compiling:$ac_tool_warned in
2426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2441 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2442 See \`config.log
' for more details." >&5
2443 echo "$as_me: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details.
" >&2;}
2445 { (exit 1); exit 1; }; }
2447 # Provide some information about the compiler.
2448 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2449 ac_compiler=`set X $ac_compile; echo $2`
2450 { (ac_try="$ac_compiler --version >&5"
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compiler --version >&5") 2>&5
2458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2459 (exit $ac_status); }
2460 { (ac_try="$ac_compiler -v >&5"
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_compiler -v >&5") 2>&5
2468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2469 (exit $ac_status); }
2470 { (ac_try="$ac_compiler -V >&5"
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compiler -V >&5") 2>&5
2478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2479 (exit $ac_status); }
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 ac_clean_files_save=$ac_clean_files
2497 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2498 # Try to create an executable without -o first, disregard a.out.
2499 # It will help us diagnose broken compilers, and finding out an intuition
2501 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2502 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2505 # List of possible output files, starting from the most likely.
2506 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2507 # only as a last resort. b.out is created by i960 compilers.
2508 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2510 # The IRIX 6 linker writes into existing files which may not be
2511 # executable, retaining their permissions. Remove them first so a
2512 # subsequent execution test works.
2514 for ac_file in $ac_files
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2523 if { (ac_try="$ac_link_default"
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_link_default") 2>&5
2531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2532 (exit $ac_status); }; then
2533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2535 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2536 # so that the user can short-circuit this test for compilers unknown to
2538 for ac_file in $ac_files ''
2540 test -f "$ac_file" || continue
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2545 # We found the default executable, but exeext='' is most
2549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553 # We set ac_cv_exeext here because the later test for it is not
2554 # safe: cross compilers may not add the suffix if given an `-o'
2555 # argument, so we may need to know it at that point already.
2556 # Even if this section looks crufty: it has the advantage of
2563 test "$ac_cv_exeext" = no && ac_cv_exeext=
2569 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2570 echo "${ECHO_T}$ac_file" >&6; }
2571 if test -z "$ac_file"; then
2572 echo "$as_me: failed program was
:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2576 See \
`config.log' for more details." >&5
2577 echo "$as_me: error: C compiler cannot create executables
2578 See \`config.log
' for more details." >&2;}
2579 { (exit 77); exit 77; }; }
2582 ac_exeext=$ac_cv_exeext
2584 # Check that the compiler produces executables we can run. If not, either
2585 # the compiler is broken, or we cross compile.
2586 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2587 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2588 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2589 # If not cross compiling, check that we can run a simple program.
2590 if test "$cross_compiling" != yes; then
2591 if { ac_try='.
/$ac_file'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2603 if test "$cross_compiling" = maybe; then
2606 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2607 If you meant to cross compile, use \`--host'.
2608 See \
`config.log' for more details." >&5
2609 echo "$as_me: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details.
" >&2;}
2612 { (exit 1); exit 1; }; }
2616 { echo "$as_me:$LINENO: result
: yes" >&5
2617 echo "${ECHO_T}yes" >&6; }
2619 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2620 ac_clean_files=$ac_clean_files_save
2621 # Check that the compiler produces executables we can run. If not, either
2622 # the compiler is broken, or we cross compile.
2623 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2624 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2625 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2626 echo "${ECHO_T}$cross_compiling" >&6; }
2628 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2629 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2630 if { (ac_try="$ac_link"
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2636 (eval "$ac_link") 2>&5
2638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2639 (exit $ac_status); }; then
2640 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2641 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2642 # work properly (i.e., refer to `conftest.exe'), while it won't with
2644 for ac_file in conftest.exe conftest conftest.*; do
2645 test -f "$ac_file" || continue
2647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2654 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2655 See \
`config.log' for more details." >&5
2656 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2657 See \`config.log
' for more details." >&2;}
2658 { (exit 1); exit 1; }; }
2661 rm -f conftest$ac_cv_exeext
2662 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2663 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2665 rm -f conftest.$ac_ext
2666 EXEEXT=$ac_cv_exeext
2668 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2669 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2670 if test "${ac_cv_objext+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.o conftest.obj
2689 if { (ac_try="$ac_compile"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; then
2699 for ac_file in conftest.o conftest.obj conftest.*; do
2700 test -f "$ac_file" || continue;
2702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2703 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2708 echo "$as_me: failed program was:" >&5
2709 sed 's
/^
/|
/' conftest.$ac_ext >&5
2711 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details.
" >&5
2713 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2714 See \
`config.log' for more details." >&2;}
2715 { (exit 1); exit 1; }; }
2718 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2720 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2721 echo "${ECHO_T}$ac_cv_objext" >&6; }
2722 OBJEXT=$ac_cv_objext
2724 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2725 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2726 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 cat >conftest.$ac_ext <<_ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2751 *) ac_try_echo
=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compile") 2>conftest.er1
2756 grep -v '^ *+' conftest.er1
>conftest.err
2758 cat conftest.err
>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } && {
2761 test -z "$ac_c_werror_flag" ||
2762 test ! -s conftest.err
2763 } && test -s conftest.
$ac_objext; then
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.
$ac_ext >&5
2772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2773 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2776 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2777 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2778 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2779 ac_test_CFLAGS
=${CFLAGS+set}
2780 ac_save_CFLAGS
=$CFLAGS
2781 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2782 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_cc_g+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 ac_save_c_werror_flag
=$ac_c_werror_flag
2787 ac_c_werror_flag
=yes
2790 cat >conftest.
$ac_ext <<_ACEOF
2793 cat confdefs.h
>>conftest.
$ac_ext
2794 cat >>conftest.
$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2805 rm -f conftest.
$ac_objext
2806 if { (ac_try
="$ac_compile"
2808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2814 grep -v '^ *+' conftest.er1 >conftest.err
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2843 rm -f conftest.$ac_objext
2844 if { (ac_try="$ac_compile"
2846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2847 *) ac_try_echo
=$ac_try;;
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_compile") 2>conftest.er1
2852 grep -v '^ *+' conftest.er1
>conftest.err
2854 cat conftest.err
>&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } && {
2857 test -z "$ac_c_werror_flag" ||
2858 test ! -s conftest.err
2859 } && test -s conftest.
$ac_objext; then
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.
$ac_ext >&5
2865 ac_c_werror_flag
=$ac_save_c_werror_flag
2867 cat >conftest.
$ac_ext <<_ACEOF
2870 cat confdefs.h
>>conftest.
$ac_ext
2871 cat >>conftest.
$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2882 rm -f conftest.
$ac_objext
2883 if { (ac_try
="$ac_compile"
2885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compile") 2>conftest.er1
2891 grep -v '^ *+' conftest.er1 >conftest.err
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } && {
2896 test -z "$ac_c_werror_flag" ||
2897 test ! -s conftest.err
2898 } && test -s conftest.$ac_objext; then
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 ac_c_werror_flag=$ac_save_c_werror_flag
2916 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2918 if test "$ac_test_CFLAGS" = set; then
2919 CFLAGS=$ac_save_CFLAGS
2920 elif test $ac_cv_prog_cc_g = yes; then
2921 if test "$GCC" = yes; then
2927 if test "$GCC" = yes; then
2933 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2934 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2935 if test "${ac_cv_prog_cc_c89+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 ac_cv_prog_cc_c89=no
2940 cat >conftest.$ac_ext <<_ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2948 #include <sys/types.h>
2949 #include <sys/stat.h>
2950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2951 struct buf { int x; };
2952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2953 static char *e (p, i)
2959 static char *f (char * (*g) (char **, int), char **p, ...)
2964 s = g (p, va_arg (v,int));
2969 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2970 function prototypes and stuff, but not '\xHH' hex character constants.
2971 These don't provoke an error unfortunately, instead are silently treated
2972 as 'x'. The following induces an error, until -std is added to get
2973 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2974 array size at least. It's necessary to write '\x00'==0 to get something
2975 that's true only with -std. */
2976 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2978 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2979 inside strings and character constants. */
2981 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2983 int test (int i, double x);
2984 struct s1 {int (*f) (int a);};
2985 struct s2 {int (*f) (double a);};
2986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2992 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2997 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2998 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3000 CC="$ac_save_CC $ac_arg"
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3005 *) ac_try_echo
=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1
>conftest.err
3012 cat conftest.err
>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.
$ac_objext; then
3018 ac_cv_prog_cc_c89
=$ac_arg
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.
$ac_ext >&5
3026 rm -f core conftest.err conftest.
$ac_objext
3027 test "x$ac_cv_prog_cc_c89" != "xno" && break
3029 rm -f conftest.
$ac_ext
3034 case "x$ac_cv_prog_cc_c89" in
3036 { echo "$as_me:$LINENO: result: none needed" >&5
3037 echo "${ECHO_T}none needed" >&6; } ;;
3039 { echo "$as_me:$LINENO: result: unsupported" >&5
3040 echo "${ECHO_T}unsupported" >&6; } ;;
3042 CC
="$CC $ac_cv_prog_cc_c89"
3043 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3044 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3049 ac_cpp
='$CPP $CPPFLAGS'
3050 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3056 ac_cpp
='$CPP $CPPFLAGS'
3057 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3060 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3061 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3062 # On Suns, sometimes $CPP names a directory.
3063 if test -n "$CPP" && test -d "$CPP"; then
3066 if test -z "$CPP"; then
3067 if test "${ac_cv_prog_CPP+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 # Double quotes because CPP needs to be expanded
3071 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3074 for ac_c_preproc_warn_flag
in '' yes
3076 # Use a header file that comes with gcc, so configuring glibc
3077 # with a fresh cross-compiler works.
3078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3079 # <limits.h> exists even on freestanding compilers.
3080 # On the NeXT, cc -E runs the code through the compiler's parser,
3081 # not just through cpp. "Syntax error" is here to catch this case.
3082 cat >conftest.
$ac_ext <<_ACEOF
3085 cat confdefs.h
>>conftest.
$ac_ext
3086 cat >>conftest.
$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3089 # include <limits.h>
3091 # include <assert.h>
3095 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null && {
3108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 # Broken: fails on valid input.
3120 rm -f conftest.err conftest.$ac_ext
3122 # OK, works on sane cases. Now check whether nonexistent headers
3123 # can be detected and how.
3124 cat >conftest.$ac_ext <<_ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130 #include <ac_nonexistent.h>
3132 if { (ac_try="$ac_cpp conftest.$ac_ext"
3134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3135 *) ac_try_echo
=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3140 grep -v '^ *+' conftest.er1
>conftest.err
3142 cat conftest.err
>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev
/null
&& {
3145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3146 test ! -s conftest.err
3148 # Broken: success on invalid input.
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.
$ac_ext >&5
3154 # Passes both tests.
3159 rm -f conftest.err conftest.
$ac_ext
3162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3163 rm -f conftest.err conftest.
$ac_ext
3164 if $ac_preproc_ok; then
3176 { echo "$as_me:$LINENO: result: $CPP" >&5
3177 echo "${ECHO_T}$CPP" >&6; }
3179 for ac_c_preproc_warn_flag
in '' yes
3181 # Use a header file that comes with gcc, so configuring glibc
3182 # with a fresh cross-compiler works.
3183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3184 # <limits.h> exists even on freestanding compilers.
3185 # On the NeXT, cc -E runs the code through the compiler's parser,
3186 # not just through cpp. "Syntax error" is here to catch this case.
3187 cat >conftest.
$ac_ext <<_ACEOF
3190 cat confdefs.h
>>conftest.
$ac_ext
3191 cat >>conftest.
$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3194 # include <limits.h>
3196 # include <assert.h>
3200 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3208 grep -v '^ *+' conftest.er1 >conftest.err
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } >/dev/null && {
3213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3221 # Broken: fails on valid input.
3225 rm -f conftest.err conftest.$ac_ext
3227 # OK, works on sane cases. Now check whether nonexistent headers
3228 # can be detected and how.
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <ac_nonexistent.h>
3237 if { (ac_try="$ac_cpp conftest.$ac_ext"
3239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3240 *) ac_try_echo
=$ac_try;;
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245 grep -v '^ *+' conftest.er1
>conftest.err
3247 cat conftest.err
>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev
/null
&& {
3250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3253 # Broken: success on invalid input.
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.
$ac_ext >&5
3259 # Passes both tests.
3264 rm -f conftest.err conftest.
$ac_ext
3267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268 rm -f conftest.err conftest.
$ac_ext
3269 if $ac_preproc_ok; then
3272 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3273 See \`config.log' for more details." >&5
3274 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3275 See \`config.log' for more details." >&2;}
3276 { (exit 1); exit 1; }; }
3280 ac_cpp
='$CPP $CPPFLAGS'
3281 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3286 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3287 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3288 if test "${ac_cv_path_GREP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 # Extract the first word of "grep ggrep" to use in msg output
3292 if test -z "$GREP"; then
3293 set dummy
grep ggrep
; ac_prog_name
=$2
3294 if test "${ac_cv_path_GREP+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 ac_path_GREP_found
=false
3298 # Loop through the user's path and test for each of PROGNAME-LIST
3299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3300 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3303 test -z "$as_dir" && as_dir
=.
3304 for ac_prog
in grep ggrep
; do
3305 for ac_exec_ext
in '' $ac_executable_extensions; do
3306 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3307 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3308 # Check for GNU ac_path_GREP and select it if it is found.
3309 # Check for GNU $ac_path_GREP
3310 case `"$ac_path_GREP" --version 2>&1` in
3312 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3315 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3318 cat "conftest.in" "conftest.in" >"conftest.tmp"
3319 mv "conftest.tmp" "conftest.in"
3320 cp "conftest.in" "conftest.nl"
3321 echo 'GREP' >> "conftest.nl"
3322 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3323 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3324 ac_count
=`expr $ac_count + 1`
3325 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3326 # Best one so far, save it but keep looking for a better one
3327 ac_cv_path_GREP
="$ac_path_GREP"
3328 ac_path_GREP_max
=$ac_count
3330 # 10*(2^10) chars as input seems more than enough
3331 test $ac_count -gt 10 && break
3333 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3337 $ac_path_GREP_found && break 3
3347 GREP
="$ac_cv_path_GREP"
3348 if test -z "$GREP"; then
3349 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3350 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3351 { (exit 1); exit 1; }; }
3355 ac_cv_path_GREP
=$GREP
3360 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3361 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3362 GREP
="$ac_cv_path_GREP"
3365 { echo "$as_me:$LINENO: checking for egrep" >&5
3366 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3367 if test "${ac_cv_path_EGREP+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3371 then ac_cv_path_EGREP
="$GREP -E"
3373 # Extract the first word of "egrep" to use in msg output
3374 if test -z "$EGREP"; then
3375 set dummy
egrep; ac_prog_name
=$2
3376 if test "${ac_cv_path_EGREP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 ac_path_EGREP_found
=false
3380 # Loop through the user's path and test for each of PROGNAME-LIST
3381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3382 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3385 test -z "$as_dir" && as_dir
=.
3386 for ac_prog
in egrep; do
3387 for ac_exec_ext
in '' $ac_executable_extensions; do
3388 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3389 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3390 # Check for GNU ac_path_EGREP and select it if it is found.
3391 # Check for GNU $ac_path_EGREP
3392 case `"$ac_path_EGREP" --version 2>&1` in
3394 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3397 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3400 cat "conftest.in" "conftest.in" >"conftest.tmp"
3401 mv "conftest.tmp" "conftest.in"
3402 cp "conftest.in" "conftest.nl"
3403 echo 'EGREP' >> "conftest.nl"
3404 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3405 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3406 ac_count
=`expr $ac_count + 1`
3407 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3408 # Best one so far, save it but keep looking for a better one
3409 ac_cv_path_EGREP
="$ac_path_EGREP"
3410 ac_path_EGREP_max
=$ac_count
3412 # 10*(2^10) chars as input seems more than enough
3413 test $ac_count -gt 10 && break
3415 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3419 $ac_path_EGREP_found && break 3
3429 EGREP
="$ac_cv_path_EGREP"
3430 if test -z "$EGREP"; then
3431 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3432 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3433 { (exit 1); exit 1; }; }
3437 ac_cv_path_EGREP
=$EGREP
3443 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3444 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3445 EGREP
="$ac_cv_path_EGREP"
3449 { echo "$as_me:$LINENO: checking for AIX" >&5
3450 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3451 cat >conftest.
$ac_ext <<_ACEOF
3454 cat confdefs.h
>>conftest.
$ac_ext
3455 cat >>conftest.
$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463 $EGREP "yes" >/dev
/null
2>&1; then
3464 { echo "$as_me:$LINENO: result: yes" >&5
3465 echo "${ECHO_T}yes" >&6; }
3466 cat >>confdefs.h
<<\_ACEOF
3467 #define _ALL_SOURCE 1
3471 { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3477 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3478 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3479 if test "${ac_cv_header_stdc+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 cat >conftest.
$ac_ext <<_ACEOF
3485 cat confdefs.h
>>conftest.
$ac_ext
3486 cat >>conftest.
$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3501 rm -f conftest.
$ac_objext
3502 if { (ac_try
="$ac_compile"
3504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_compile") 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && {
3515 test -z "$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 } && test -s conftest.$ac_objext; then
3518 ac_cv_header_stdc=yes
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 ac_cv_header_stdc=no
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 if test $ac_cv_header_stdc = yes; then
3529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3530 cat >conftest.$ac_ext <<_ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540 $EGREP "memchr" >/dev/null 2>&1; then
3543 ac_cv_header_stdc=no
3549 if test $ac_cv_header_stdc = yes; then
3550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3561 $EGREP "free" >/dev/null 2>&1; then
3564 ac_cv_header_stdc=no
3570 if test $ac_cv_header_stdc = yes; then
3571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3572 if test "$cross_compiling" = yes; then
3575 cat >conftest.$ac_ext <<_ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3583 #if ((' ' & 0x0FF) == 0x020)
3584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3587 # define ISLOWER(c) \
3588 (('a' <= (c) && (c) <= 'i') \
3589 || ('j' <= (c) && (c) <= 'r') \
3590 || ('s' <= (c) && (c) <= 'z'))
3591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3599 for (i = 0; i < 256; i++)
3600 if (XOR (islower (i), ISLOWER (i))
3601 || toupper (i) != TOUPPER (i))
3606 rm -f conftest$ac_exeext
3607 if { (ac_try="$ac_link"
3609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3610 *) ac_try_echo
=$ac_try;;
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_link") 2>&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3617 { (case "(($ac_try" in
3618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3622 (eval "$ac_try") 2>&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3628 echo "$as_me: program exited with status $ac_status" >&5
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3633 ac_cv_header_stdc=no
3635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3641 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3642 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3643 if test $ac_cv_header_stdc = yes; then
3645 cat >>confdefs.h <<\_ACEOF
3646 #define STDC_HEADERS 1
3651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3661 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3662 inttypes.h stdint.h unistd.h
3664 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 cat >conftest.$ac_ext <<_ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 $ac_includes_default
3678 #include <$ac_header>
3680 rm -f conftest.$ac_objext
3681 if { (ac_try="$ac_compile"
3683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3684 *) ac_try_echo
=$ac_try;;
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_compile") 2>conftest.er1
3689 grep -v '^ *+' conftest.er1
>conftest.err
3691 cat conftest.err
>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } && {
3694 test -z "$ac_c_werror_flag" ||
3695 test ! -s conftest.err
3696 } && test -s conftest.
$ac_objext; then
3697 eval "$as_ac_Header=yes"
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.
$ac_ext >&5
3702 eval "$as_ac_Header=no"
3705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3707 ac_res
=`eval echo '${'$as_ac_Header'}'`
3708 { echo "$as_me:$LINENO: result: $ac_res" >&5
3709 echo "${ECHO_T}$ac_res" >&6; }
3710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3711 cat >>confdefs.h
<<_ACEOF
3712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3720 if test "${ac_cv_header_minix_config_h+set}" = set; then
3721 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3722 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3723 if test "${ac_cv_header_minix_config_h+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3727 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3729 # Is the header compilable?
3730 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3731 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3732 cat >conftest.
$ac_ext <<_ACEOF
3735 cat confdefs.h
>>conftest.
$ac_ext
3736 cat >>conftest.
$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 $ac_includes_default
3739 #include <minix/config.h>
3741 rm -f conftest.
$ac_objext
3742 if { (ac_try
="$ac_compile"
3744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_compile") 2>conftest.er1
3750 grep -v '^ *+' conftest.er1 >conftest.err
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } && {
3755 test -z "$ac_c_werror_flag" ||
3756 test ! -s conftest.err
3757 } && test -s conftest.$ac_objext; then
3758 ac_header_compiler=yes
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 ac_header_compiler=no
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3768 echo "${ECHO_T}$ac_header_compiler" >&6; }
3770 # Is the header present?
3771 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3772 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 #include <minix/config.h>
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3784 *) ac_try_echo
=$ac_try;;
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3789 grep -v '^ *+' conftest.er1
>conftest.err
3791 cat conftest.err
>&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } >/dev
/null
&& {
3794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3797 ac_header_preproc
=yes
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.
$ac_ext >&5
3802 ac_header_preproc
=no
3805 rm -f conftest.err conftest.
$ac_ext
3806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3807 echo "${ECHO_T}$ac_header_preproc" >&6; }
3809 # So? What about this header?
3810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3812 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3813 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3814 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3815 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3816 ac_header_preproc
=yes
3819 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3820 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3821 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3822 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3823 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3824 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3825 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3826 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3827 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3828 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3829 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3830 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3832 ## ------------------------------- ##
3833 ## Report this to www.asterisk.org ##
3834 ## ------------------------------- ##
3836 ) |
sed "s/^/$as_me: WARNING: /" >&2
3839 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3840 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3841 if test "${ac_cv_header_minix_config_h+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 ac_cv_header_minix_config_h
=$ac_header_preproc
3846 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3847 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3850 if test $ac_cv_header_minix_config_h = yes; then
3857 if test "$MINIX" = yes; then
3859 cat >>confdefs.h
<<\_ACEOF
3860 #define _POSIX_SOURCE 1
3864 cat >>confdefs.h
<<\_ACEOF
3865 #define _POSIX_1_SOURCE 2
3869 cat >>confdefs.h
<<\_ACEOF
3885 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3886 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3887 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 cat >conftest.
$ac_ext <<_ACEOF
3893 cat confdefs.h
>>conftest.
$ac_ext
3894 cat >>conftest.
$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3897 # define __EXTENSIONS__ 1
3898 $ac_includes_default
3907 rm -f conftest.
$ac_objext
3908 if { (ac_try
="$ac_compile"
3910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3924 ac_cv_safe_to_define___extensions__=yes
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 ac_cv_safe_to_define___extensions__=no
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3935 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3936 test $ac_cv_safe_to_define___extensions__ = yes &&
3937 cat >>confdefs.h <<\_ACEOF
3938 #define __EXTENSIONS__ 1
3941 cat >>confdefs.h <<\_ACEOF
3942 #define _POSIX_PTHREAD_SEMANTICS 1
3945 cat >>confdefs.h <<\_ACEOF
3946 #define _TANDEM_SOURCE 1
3949 # note- does not work on FreeBSD
3951 case "${host_os}" in
3953 ac_default_prefix=/usr/local
3954 CPPFLAGS=-I/usr/local/include
3955 LDFLAGS=-L/usr/local/lib
3958 ac_default_prefix=/usr
3959 if test ${sysconfdir} = '${prefix}/etc'; then
3962 if test ${mandir} = '${prefix}/man'; then
3963 mandir=/usr/share/man
3968 if test ${localstatedir} = '${prefix}/var'; then
3972 BUILD_PLATFORM=${build}
3973 BUILD_CPU=${build_cpu}
3974 BUILD_VENDOR=${build_vendor}
3975 BUILD_OS=${build_os}
3982 HOST_PLATFORM=${host}
3983 HOST_CPU=${host_cpu}
3984 HOST_VENDOR=${host_vendor}
3992 case "${host_os}" in
4013 if test -n "$ac_tool_prefix"; then
4014 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4015 set dummy ${ac_tool_prefix}uname; ac_word=$2
4016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4018 if test "${ac_cv_path_UNAME+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 UNAME=$ac_cv_path_UNAME
4045 if test -n "$UNAME"; then
4046 { echo "$as_me:$LINENO: result: $UNAME" >&5
4047 echo "${ECHO_T}$UNAME" >&6; }
4049 { echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6; }
4055 if test -z "$ac_cv_path_UNAME"; then
4057 # Extract the first word of "uname", so it can be a program name with args.
4058 set dummy uname; ac_word=$2
4059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4061 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 case $ac_pt_UNAME in
4066 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4076 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4088 if test -n "$ac_pt_UNAME"; then
4089 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4090 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4092 { echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6; }
4096 if test "x$ac_pt_UNAME" = x; then
4099 case $cross_compiling:$ac_tool_warned in
4101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4102 whose name does not start with the host triplet. If you think this
4103 configuration is useful to you, please write to autoconf@gnu.org." >&5
4104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4105 whose name does not start with the host triplet. If you think this
4106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4107 ac_tool_warned=yes ;;
4112 UNAME="$ac_cv_path_UNAME"
4115 if test ! x"${UNAME}" = xNo; then
4116 PBX_OSREV=$(${UNAME} -r)
4126 # cross-compile checks
4127 if test "${cross_compiling}" = "yes";
4129 if test -n "$ac_tool_prefix"; then
4130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4134 if test "${ac_cv_prog_CC+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 if test -n "$CC"; then
4159 { echo "$as_me:$LINENO: result: $CC" >&5
4160 echo "${ECHO_T}$CC" >&6; }
4162 { echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6; }
4168 if test -z "$ac_cv_prog_CC"; then
4170 # Extract the first word of "gcc", so it can be a program name with args.
4171 set dummy gcc; ac_word=$2
4172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 if test -n "$ac_ct_CC"; then
4178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187 ac_cv_prog_ac_ct_CC="gcc"
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4200 echo "${ECHO_T}$ac_ct_CC" >&6; }
4202 { echo "$as_me:$LINENO: result: no" >&5
4203 echo "${ECHO_T}no" >&6; }
4206 if test "x$ac_ct_CC" = x; then
4209 case $cross_compiling:$ac_tool_warned in
4211 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4212 whose name does not start with the host triplet. If you think this
4213 configuration is useful to you, please write to autoconf@gnu.org." >&5
4214 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4215 whose name does not start with the host triplet. If you think this
4216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4217 ac_tool_warned=yes ;;
4225 if test -n "$ac_tool_prefix"; then
4226 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4227 set dummy ${ac_tool_prefix}g++; ac_word=$2
4228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4230 if test "${ac_cv_prog_CXX+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if test -n "$CXX"; then
4234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 if test -n "$CXX"; then
4255 { echo "$as_me:$LINENO: result: $CXX" >&5
4256 echo "${ECHO_T}$CXX" >&6; }
4258 { echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6; }
4264 if test -z "$ac_cv_prog_CXX"; then
4266 # Extract the first word of "g++", so it can be a program name with args.
4267 set dummy g++; ac_word=$2
4268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 if test -n "$ac_ct_CXX"; then
4274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_ac_ct_CXX="g++"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4294 if test -n "$ac_ct_CXX"; then
4295 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4298 { echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; }
4302 if test "x$ac_ct_CXX" = x; then
4305 case $cross_compiling:$ac_tool_warned in
4307 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4308 whose name does not start with the host triplet. If you think this
4309 configuration is useful to you, please write to autoconf@gnu.org." >&5
4310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4311 whose name does not start with the host triplet. If you think this
4312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4313 ac_tool_warned=yes ;;
4318 CXX="$ac_cv_prog_CXX"
4321 if test -n "$ac_tool_prefix"; then
4322 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4323 set dummy ${ac_tool_prefix}ld; ac_word=$2
4324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4326 if test "${ac_cv_prog_LD+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 if test -n "$LD"; then
4330 ac_cv_prog_LD="$LD" # Let the user override the test.
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_LD="${ac_tool_prefix}ld"
4340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 if test -n "$LD"; then
4351 { echo "$as_me:$LINENO: result: $LD" >&5
4352 echo "${ECHO_T}$LD" >&6; }
4354 { echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6; }
4360 if test -z "$ac_cv_prog_LD"; then
4362 # Extract the first word of "ld", so it can be a program name with args.
4363 set dummy ld; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 if test -n "$ac_ct_LD"; then
4370 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_LD="ld"
4380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4390 if test -n "$ac_ct_LD"; then
4391 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4392 echo "${ECHO_T}$ac_ct_LD" >&6; }
4394 { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4398 if test "x$ac_ct_LD" = x; then
4401 case $cross_compiling:$ac_tool_warned in
4403 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4404 whose name does not start with the host triplet. If you think this
4405 configuration is useful to you, please write to autoconf@gnu.org." >&5
4406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4407 whose name does not start with the host triplet. If you think this
4408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4409 ac_tool_warned=yes ;;
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_RANLIB+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test -n "$RANLIB"; then
4426 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 RANLIB=$ac_cv_prog_RANLIB
4446 if test -n "$RANLIB"; then
4447 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4448 echo "${ECHO_T}$RANLIB" >&6; }
4450 { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4456 if test -z "$ac_cv_prog_RANLIB"; then
4457 ac_ct_RANLIB=$RANLIB
4458 # Extract the first word of "ranlib", so it can be a program name with args.
4459 set dummy ranlib; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$ac_ct_RANLIB"; then
4466 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_RANLIB="ranlib"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4486 if test -n "$ac_ct_RANLIB"; then
4487 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4488 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4494 if test "x$ac_ct_RANLIB" = x; then
4497 case $cross_compiling:$ac_tool_warned in
4499 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4500 whose name does not start with the host triplet. If you think this
4501 configuration is useful to you, please write to autoconf@gnu.org." >&5
4502 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4503 whose name does not start with the host triplet. If you think this
4504 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4505 ac_tool_warned=yes ;;
4507 RANLIB=$ac_ct_RANLIB
4510 RANLIB="$ac_cv_prog_RANLIB"
4515 # Checks for programs.
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521 if test -n "$ac_tool_prefix"; then
4522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_prog_CC+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 if test -n "$CC"; then
4530 ac_cv_prog_CC="$CC" # Let the user override the test.
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 if test -n "$CC"; then
4551 { echo "$as_me:$LINENO: result: $CC" >&5
4552 echo "${ECHO_T}$CC" >&6; }
4554 { echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6; }
4560 if test -z "$ac_cv_prog_CC"; then
4562 # Extract the first word of "gcc", so it can be a program name with args.
4563 set dummy gcc; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 if test -n "$ac_ct_CC"; then
4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CC="gcc"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4590 if test -n "$ac_ct_CC"; then
4591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4592 echo "${ECHO_T}$ac_ct_CC" >&6; }
4594 { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4598 if test "x$ac_ct_CC" = x; then
4601 case $cross_compiling:$ac_tool_warned in
4603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4604 whose name does not start with the host triplet. If you think this
4605 configuration is useful to you, please write to autoconf@gnu.org." >&5
4606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4607 whose name does not start with the host triplet. If you think this
4608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4609 ac_tool_warned=yes ;;
4617 if test -z "$CC"; then
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}cc; ac_word=$2
4621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623 if test "${ac_cv_prog_CC+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test -n "$CC"; then
4627 ac_cv_prog_CC="$CC" # Let the user override the test.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_CC="${ac_tool_prefix}cc"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 if test -n "$CC"; then
4648 { echo "$as_me:$LINENO: result: $CC" >&5
4649 echo "${ECHO_T}$CC" >&6; }
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4658 if test -z "$CC"; then
4659 # Extract the first word of "cc", so it can be a program name with args.
4660 set dummy cc; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_CC+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4678 ac_prog_rejected=yes
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 if test $ac_prog_rejected = yes; then
4690 # We found a bogon in the path, so make sure we never use it.
4691 set dummy $ac_cv_prog_CC
4693 if test $# != 0; then
4694 # We chose a different compiler from the bogus one.
4695 # However, it has the same basename, so the bogon will be chosen
4696 # first if we set CC to just the basename; use the full file name.
4698 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4704 if test -n "$CC"; then
4705 { echo "$as_me:$LINENO: result: $CC" >&5
4706 echo "${ECHO_T}$CC" >&6; }
4708 { echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6; }
4714 if test -z "$CC"; then
4715 if test -n "$ac_tool_prefix"; then
4716 for ac_prog in cl.exe
4718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4722 if test "${ac_cv_prog_CC+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 if test -n "$CC"; then
4726 ac_cv_prog_CC="$CC" # Let the user override the test.
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 if test -n "$CC"; then
4747 { echo "$as_me:$LINENO: result: $CC" >&5
4748 echo "${ECHO_T}$CC" >&6; }
4750 { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4755 test -n "$CC" && break
4758 if test -z "$CC"; then
4760 for ac_prog in cl.exe
4762 # Extract the first word of "$ac_prog", so it can be a program name with args.
4763 set dummy $ac_prog; ac_word=$2
4764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 if test -n "$ac_ct_CC"; then
4770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_ac_ct_CC="$ac_prog"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4790 if test -n "$ac_ct_CC"; then
4791 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4792 echo "${ECHO_T}$ac_ct_CC" >&6; }
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4799 test -n "$ac_ct_CC" && break
4802 if test "x$ac_ct_CC" = x; then
4805 case $cross_compiling:$ac_tool_warned in
4807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4808 whose name does not start with the host triplet. If you think this
4809 configuration is useful to you, please write to autoconf@gnu.org." >&5
4810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4811 whose name does not start with the host triplet. If you think this
4812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4813 ac_tool_warned=yes ;;
4822 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4823 See \`config.log
' for more details." >&5
4824 echo "$as_me: error: no acceptable C compiler found in \$PATH
4825 See \`config.log' for more details.
" >&2;}
4826 { (exit 1); exit 1; }; }
4828 # Provide some information about the compiler.
4829 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4830 ac_compiler=`set X $ac_compile; echo $2`
4831 { (ac_try="$ac_compiler --version >&5"
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_compiler --version >&5") 2>&5
4839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4840 (exit $ac_status); }
4841 { (ac_try="$ac_compiler -v >&5"
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4847 (eval "$ac_compiler -v >&5") 2>&5
4849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4850 (exit $ac_status); }
4851 { (ac_try="$ac_compiler -V >&5"
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4857 (eval "$ac_compiler -V >&5") 2>&5
4859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4860 (exit $ac_status); }
4862 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4863 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4864 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4865 echo $ECHO_N "(cached
) $ECHO_C" >&6
4867 cat >conftest.$ac_ext <<_ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4894 grep -v '^ *+' conftest.er1 >conftest.err
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4904 echo "$as_me: failed program was
:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4914 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4915 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4916 GCC=`test $ac_compiler_gnu = yes && echo yes`
4917 ac_test_CFLAGS=${CFLAGS+set}
4918 ac_save_CFLAGS=$CFLAGS
4919 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4920 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4921 if test "${ac_cv_prog_cc_g+set}" = set; then
4922 echo $ECHO_N "(cached
) $ECHO_C" >&6
4924 ac_save_c_werror_flag=$ac_c_werror_flag
4925 ac_c_werror_flag=yes
4928 cat >conftest.$ac_ext <<_ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4943 rm -f conftest.$ac_objext
4944 if { (ac_try="$ac_compile"
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4950 (eval "$ac_compile") 2>conftest.er1
4952 grep -v '^ *+' conftest.er1 >conftest.err
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4956 (exit $ac_status); } && {
4957 test -z "$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4959 } && test -s conftest.$ac_objext; then
4962 echo "$as_me: failed program was
:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4966 cat >conftest.$ac_ext <<_ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4981 rm -f conftest.$ac_objext
4982 if { (ac_try="$ac_compile"
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_compile") 2>conftest.er1
4990 grep -v '^ *+' conftest.er1 >conftest.err
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4994 (exit $ac_status); } && {
4995 test -z "$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 } && test -s conftest.$ac_objext; then
5000 echo "$as_me: failed program was
:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_c_werror_flag=$ac_save_c_werror_flag
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5020 rm -f conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_compile") 2>conftest.er1
5029 grep -v '^ *+' conftest.er1 >conftest.err
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5033 (exit $ac_status); } && {
5034 test -z "$ac_c_werror_flag" ||
5035 test ! -s conftest.err
5036 } && test -s conftest.$ac_objext; then
5039 echo "$as_me: failed program was
:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 ac_c_werror_flag=$ac_save_c_werror_flag
5054 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5055 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5056 if test "$ac_test_CFLAGS" = set; then
5057 CFLAGS=$ac_save_CFLAGS
5058 elif test $ac_cv_prog_cc_g = yes; then
5059 if test "$GCC" = yes; then
5065 if test "$GCC" = yes; then
5071 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5072 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5073 if test "${ac_cv_prog_cc_c89+set}" = set; then
5074 echo $ECHO_N "(cached
) $ECHO_C" >&6
5076 ac_cv_prog_cc_c89=no
5078 cat >conftest.$ac_ext <<_ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5086 #include <sys/types.h>
5087 #include <sys/stat.h>
5088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5089 struct buf { int x; };
5090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5091 static char *e (p, i)
5097 static char *f (char * (*g) (char **, int), char **p, ...)
5102 s = g (p, va_arg (v,int));
5107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5108 function prototypes and stuff, but not '\xHH' hex character constants.
5109 These don't provoke an error unfortunately, instead are silently treated
5110 as 'x'. The following induces an error, until -std is added to get
5111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5112 array size at least. It's necessary to write '\x00'==0 to get something
5113 that's true only with -std. */
5114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5117 inside strings and character constants. */
5119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5121 int test (int i, double x);
5122 struct s1 {int (*f) (int a);};
5123 struct s2 {int (*f) (double a);};
5124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5138 CC="$ac_save_CC $ac_arg"
5139 rm -f conftest.$ac_objext
5140 if { (ac_try="$ac_compile"
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_compile") 2>conftest.er1
5148 grep -v '^ *+' conftest.er1 >conftest.err
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5152 (exit $ac_status); } && {
5153 test -z "$ac_c_werror_flag" ||
5154 test ! -s conftest.err
5155 } && test -s conftest.$ac_objext; then
5156 ac_cv_prog_cc_c89=$ac_arg
5158 echo "$as_me: failed program was
:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5164 rm -f core conftest.err conftest.$ac_objext
5165 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5167 rm -f conftest.$ac_ext
5172 case "x
$ac_cv_prog_cc_c89" in
5174 { echo "$as_me:$LINENO: result
: none needed
" >&5
5175 echo "${ECHO_T}none needed
" >&6; } ;;
5177 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5178 echo "${ECHO_T}unsupported
" >&6; } ;;
5180 CC="$CC $ac_cv_prog_cc_c89"
5181 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5182 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5187 ac_cpp='$CPP $CPPFLAGS'
5188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193 ac_cpp='$CXXCPP $CPPFLAGS'
5194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5197 if test -z "$CXX"; then
5198 if test -n "$CCC"; then
5201 if test -n "$ac_tool_prefix"; then
5202 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5206 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5207 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5208 if test "${ac_cv_prog_CXX+set}" = set; then
5209 echo $ECHO_N "(cached
) $ECHO_C" >&6
5211 if test -n "$CXX"; then
5212 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5222 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5232 if test -n "$CXX"; then
5233 { echo "$as_me:$LINENO: result
: $CXX" >&5
5234 echo "${ECHO_T}$CXX" >&6; }
5236 { echo "$as_me:$LINENO: result
: no
" >&5
5237 echo "${ECHO_T}no
" >&6; }
5241 test -n "$CXX" && break
5244 if test -z "$CXX"; then
5246 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5248 # Extract the first word of "$ac_prog", so it can be a program name with args.
5249 set dummy $ac_prog; ac_word=$2
5250 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5251 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5252 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5253 echo $ECHO_N "(cached
) $ECHO_C" >&6
5255 if test -n "$ac_ct_CXX"; then
5256 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_prog_ac_ct_CXX="$ac_prog"
5266 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5275 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5276 if test -n "$ac_ct_CXX"; then
5277 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5278 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5280 { echo "$as_me:$LINENO: result
: no
" >&5
5281 echo "${ECHO_T}no
" >&6; }
5285 test -n "$ac_ct_CXX" && break
5288 if test "x
$ac_ct_CXX" = x; then
5291 case $cross_compiling:$ac_tool_warned in
5293 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5294 whose name does not start with the
host triplet. If you think this
5295 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5296 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5297 whose name does not start with the
host triplet. If you think this
5298 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5299 ac_tool_warned=yes ;;
5307 # Provide some information about the compiler.
5308 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5309 ac_compiler=`set X $ac_compile; echo $2`
5310 { (ac_try="$ac_compiler --version >&5"
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5315 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compiler --version >&5") 2>&5
5318 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5319 (exit $ac_status); }
5320 { (ac_try="$ac_compiler -v >&5"
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compiler -v >&5") 2>&5
5328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5329 (exit $ac_status); }
5330 { (ac_try="$ac_compiler -V >&5"
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compiler -V >&5") 2>&5
5338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5339 (exit $ac_status); }
5341 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5342 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5343 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5344 echo $ECHO_N "(cached
) $ECHO_C" >&6
5346 cat >conftest.$ac_ext <<_ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5364 rm -f conftest.$ac_objext
5365 if { (ac_try="$ac_compile"
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_compile") 2>conftest.er1
5373 grep -v '^ *+' conftest.er1 >conftest.err
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5377 (exit $ac_status); } && {
5378 test -z "$ac_cxx_werror_flag" ||
5379 test ! -s conftest.err
5380 } && test -s conftest.$ac_objext; then
5383 echo "$as_me: failed program was
:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5393 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5394 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5395 GXX=`test $ac_compiler_gnu = yes && echo yes`
5396 ac_test_CXXFLAGS=${CXXFLAGS+set}
5397 ac_save_CXXFLAGS=$CXXFLAGS
5398 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5399 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5400 if test "${ac_cv_prog_cxx_g+set}" = set; then
5401 echo $ECHO_N "(cached
) $ECHO_C" >&6
5403 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5404 ac_cxx_werror_flag=yes
5407 cat >conftest.$ac_ext <<_ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5422 rm -f conftest.$ac_objext
5423 if { (ac_try="$ac_compile"
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_compile") 2>conftest.er1
5431 grep -v '^ *+' conftest.er1 >conftest.err
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5435 (exit $ac_status); } && {
5436 test -z "$ac_cxx_werror_flag" ||
5437 test ! -s conftest.err
5438 } && test -s conftest.$ac_objext; then
5439 ac_cv_prog_cxx_g=yes
5441 echo "$as_me: failed program was
:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5460 rm -f conftest.$ac_objext
5461 if { (ac_try="$ac_compile"
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compile") 2>conftest.er1
5469 grep -v '^ *+' conftest.er1 >conftest.err
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_cxx_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
5479 echo "$as_me: failed program was
:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5484 cat >conftest.$ac_ext <<_ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5499 rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_compile") 2>conftest.er1
5508 grep -v '^ *+' conftest.er1 >conftest.err
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5512 (exit $ac_status); } && {
5513 test -z "$ac_cxx_werror_flag" ||
5514 test ! -s conftest.err
5515 } && test -s conftest.$ac_objext; then
5516 ac_cv_prog_cxx_g=yes
5518 echo "$as_me: failed program was
:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5533 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5534 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5535 if test "$ac_test_CXXFLAGS" = set; then
5536 CXXFLAGS=$ac_save_CXXFLAGS
5537 elif test $ac_cv_prog_cxx_g = yes; then
5538 if test "$GXX" = yes; then
5544 if test "$GXX" = yes; then
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557 ac_cpp='$CPP $CPPFLAGS'
5558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5562 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5563 # On Suns, sometimes $CPP names a directory.
5564 if test -n "$CPP" && test -d "$CPP"; then
5567 if test -z "$CPP"; then
5568 if test "${ac_cv_prog_CPP+set}" = set; then
5569 echo $ECHO_N "(cached
) $ECHO_C" >&6
5571 # Double quotes because CPP needs to be expanded
5572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5575 for ac_c_preproc_warn_flag in '' yes
5577 # Use a header file that comes with gcc, so configuring glibc
5578 # with a fresh cross-compiler works.
5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580 # <limits.h> exists even on freestanding compilers.
5581 # On the NeXT, cc -E runs the code through the compiler's parser,
5582 # not just through cpp. "Syntax error
" is here to catch this case.
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5590 # include <limits.h>
5592 # include <assert.h>
5596 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5608 (exit $ac_status); } >/dev/null && {
5609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5610 test ! -s conftest.err
5614 echo "$as_me: failed program was
:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 # Broken: fails on valid input.
5621 rm -f conftest.err conftest.$ac_ext
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat >conftest.$ac_ext <<_ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #include <ac_nonexistent.h>
5633 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5645 (exit $ac_status); } >/dev/null && {
5646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5649 # Broken: success on invalid input.
5652 echo "$as_me: failed program was
:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 # Passes both tests.
5660 rm -f conftest.err conftest.$ac_ext
5663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5664 rm -f conftest.err conftest.$ac_ext
5665 if $ac_preproc_ok; then
5677 { echo "$as_me:$LINENO: result
: $CPP" >&5
5678 echo "${ECHO_T}$CPP" >&6; }
5680 for ac_c_preproc_warn_flag in '' yes
5682 # Use a header file that comes with gcc, so configuring glibc
5683 # with a fresh cross-compiler works.
5684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685 # <limits.h> exists even on freestanding compilers.
5686 # On the NeXT, cc -E runs the code through the compiler's parser,
5687 # not just through cpp. "Syntax error
" is here to catch this case.
5688 cat >conftest.$ac_ext <<_ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5695 # include <limits.h>
5697 # include <assert.h>
5701 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5709 grep -v '^ *+' conftest.er1 >conftest.err
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5713 (exit $ac_status); } >/dev/null && {
5714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5715 test ! -s conftest.err
5719 echo "$as_me: failed program was
:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 # Broken: fails on valid input.
5726 rm -f conftest.err conftest.$ac_ext
5728 # OK, works on sane cases. Now check whether nonexistent headers
5729 # can be detected and how.
5730 cat >conftest.$ac_ext <<_ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <ac_nonexistent.h>
5738 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5746 grep -v '^ *+' conftest.er1 >conftest.err
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5750 (exit $ac_status); } >/dev/null && {
5751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5754 # Broken: success on invalid input.
5757 echo "$as_me: failed program was
:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 # Passes both tests.
5765 rm -f conftest.err conftest.$ac_ext
5768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5769 rm -f conftest.err conftest.$ac_ext
5770 if $ac_preproc_ok; then
5773 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5774 See \
`config.log' for more details." >&5
5775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5776 See \`config.log
' for more details." >&2;}
5777 { (exit 1); exit 1; }; }
5781 ac_cpp='$CPP $CPPFLAGS'
5782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5783 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5787 ac_cpp='$CXXCPP $CPPFLAGS'
5788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5789 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5791 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5792 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5793 if test -z "$CXXCPP"; then
5794 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 # Double quotes because CXXCPP needs to be expanded
5798 for CXXCPP in "$CXX -E" "/lib/cpp"
5801 for ac_cxx_preproc_warn_flag in '' yes
5803 # Use a header file that comes with gcc, so configuring glibc
5804 # with a fresh cross-compiler works.
5805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5806 # <limits.h> exists even on freestanding compilers.
5807 # On the NeXT, cc -E runs the code through the compiler's parser
,
5808 # not just through cpp. "Syntax error" is here to catch this case.
5809 cat >conftest.
$ac_ext <<_ACEOF
5812 cat confdefs.h
>>conftest.
$ac_ext
5813 cat >>conftest.
$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5816 # include <limits.h>
5818 # include <assert.h>
5822 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5830 grep -v '^ *+' conftest.er1 >conftest.err
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null && {
5835 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5836 test ! -s conftest.err
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5843 # Broken: fails on valid input.
5847 rm -f conftest.err conftest.$ac_ext
5849 # OK, works on sane cases. Now check whether nonexistent headers
5850 # can be detected and how.
5851 cat >conftest.$ac_ext <<_ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <ac_nonexistent.h>
5859 if { (ac_try="$ac_cpp conftest.$ac_ext"
5861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5862 *) ac_try_echo
=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5867 grep -v '^ *+' conftest.er1
>conftest.err
5869 cat conftest.err
>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev
/null
&& {
5872 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5873 test ! -s conftest.err
5875 # Broken: success on invalid input.
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.
$ac_ext >&5
5881 # Passes both tests.
5886 rm -f conftest.err conftest.
$ac_ext
5889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5890 rm -f conftest.err conftest.
$ac_ext
5891 if $ac_preproc_ok; then
5896 ac_cv_prog_CXXCPP
=$CXXCPP
5899 CXXCPP
=$ac_cv_prog_CXXCPP
5901 ac_cv_prog_CXXCPP
=$CXXCPP
5903 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5904 echo "${ECHO_T}$CXXCPP" >&6; }
5906 for ac_cxx_preproc_warn_flag
in '' yes
5908 # Use a header file that comes with gcc, so configuring glibc
5909 # with a fresh cross-compiler works.
5910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911 # <limits.h> exists even on freestanding compilers.
5912 # On the NeXT, cc -E runs the code through the compiler's parser,
5913 # not just through cpp. "Syntax error" is here to catch this case.
5914 cat >conftest.
$ac_ext <<_ACEOF
5917 cat confdefs.h
>>conftest.
$ac_ext
5918 cat >>conftest.
$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5921 # include <limits.h>
5923 # include <assert.h>
5927 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5935 grep -v '^ *+' conftest.er1 >conftest.err
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } >/dev/null && {
5940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5941 test ! -s conftest.err
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 # Broken: fails on valid input.
5952 rm -f conftest.err conftest.$ac_ext
5954 # OK, works on sane cases. Now check whether nonexistent headers
5955 # can be detected and how.
5956 cat >conftest.$ac_ext <<_ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <ac_nonexistent.h>
5964 if { (ac_try="$ac_cpp conftest.$ac_ext"
5966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5967 *) ac_try_echo
=$ac_try;;
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5972 grep -v '^ *+' conftest.er1
>conftest.err
5974 cat conftest.err
>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } >/dev
/null
&& {
5977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5978 test ! -s conftest.err
5980 # Broken: success on invalid input.
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.
$ac_ext >&5
5986 # Passes both tests.
5991 rm -f conftest.err conftest.
$ac_ext
5994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5995 rm -f conftest.err conftest.
$ac_ext
5996 if $ac_preproc_ok; then
5999 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6000 See \`config.log' for more details." >&5
6001 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6002 See \`config.log' for more details." >&2;}
6003 { (exit 1); exit 1; }; }
6007 ac_cpp
='$CPP $CPPFLAGS'
6008 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6012 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6013 # the developers regenerating the configure script don't have to install libtool.
6014 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6015 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6016 if test "${ac_cv_path_SED+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6020 for ac_i
in 1 2 3 4 5 6 7; do
6021 ac_script
="$ac_script$as_nl$ac_script"
6023 echo "$ac_script" |
sed 99q
>conftest.
sed
6024 $as_unset ac_script || ac_script
=
6025 # Extract the first word of "sed gsed" to use in msg output
6026 if test -z "$SED"; then
6027 set dummy
sed gsed
; ac_prog_name
=$2
6028 if test "${ac_cv_path_SED+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 ac_path_SED_found
=false
6032 # Loop through the user's path and test for each of PROGNAME-LIST
6033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir
=.
6038 for ac_prog
in sed gsed
; do
6039 for ac_exec_ext
in '' $ac_executable_extensions; do
6040 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6041 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6042 # Check for GNU ac_path_SED and select it if it is found.
6043 # Check for GNU $ac_path_SED
6044 case `"$ac_path_SED" --version 2>&1` in
6046 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6052 cat "conftest.in" "conftest.in" >"conftest.tmp"
6053 mv "conftest.tmp" "conftest.in"
6054 cp "conftest.in" "conftest.nl"
6055 echo '' >> "conftest.nl"
6056 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6057 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6058 ac_count
=`expr $ac_count + 1`
6059 if test $ac_count -gt ${ac_path_SED_max-0}; then
6060 # Best one so far, save it but keep looking for a better one
6061 ac_cv_path_SED
="$ac_path_SED"
6062 ac_path_SED_max
=$ac_count
6064 # 10*(2^10) chars as input seems more than enough
6065 test $ac_count -gt 10 && break
6067 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6071 $ac_path_SED_found && break 3
6081 SED
="$ac_cv_path_SED"
6082 if test -z "$SED"; then
6083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6084 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6085 { (exit 1); exit 1; }; }
6093 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6094 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6095 SED
="$ac_cv_path_SED"
6098 { echo "$as_me:$LINENO: checking for egrep" >&5
6099 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6100 if test "${ac_cv_prog_egrep+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6104 then ac_cv_prog_egrep
='grep -E'
6105 else ac_cv_prog_egrep
='egrep'
6108 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6109 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6110 EGREP
=$ac_cv_prog_egrep
6114 # Check whether --with-gnu-ld was given.
6115 if test "${with_gnu_ld+set}" = set; then
6116 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6122 if test "$GCC" = yes; then
6123 # Check if gcc -print-prog-name=ld gives a path.
6124 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6128 # gcc leaves a trailing carriage return which upsets mingw
6129 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6131 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6134 # Accept absolute paths.
6136 re_direlt
='/[^/][^/]*/\.\./'
6137 # Canonicalize the pathname of ld
6138 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6139 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6140 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6142 test -z "$LD" && LD
="$ac_prog"
6145 # If it fails, then pretend we aren't using GCC.
6149 # If it is relative, then search for the first ld in PATH.
6153 elif test "$with_gnu_ld" = yes; then
6154 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6157 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6160 if test "${lt_cv_path_LD+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 if test -z "$LD"; then
6164 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6165 for ac_dir
in $PATH; do
6167 test -z "$ac_dir" && ac_dir
=.
6168 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6169 lt_cv_path_LD
="$ac_dir/$ac_prog"
6170 # Check to see if the program is GNU ld. I'd rather use --version,
6171 # but apparently some variants of GNU ld only accept -v.
6172 # Break only if it was the GNU/non-GNU ld that we prefer.
6173 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6174 *GNU
* |
*'with BFD'*)
6175 test "$with_gnu_ld" != no
&& break
6178 test "$with_gnu_ld" != yes && break
6185 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6190 if test -n "$LD"; then
6191 { echo "$as_me:$LINENO: result: $LD" >&5
6192 echo "${ECHO_T}$LD" >&6; }
6194 { echo "$as_me:$LINENO: result: no" >&5
6195 echo "${ECHO_T}no" >&6; }
6197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6199 { (exit 1); exit 1; }; }
6200 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6206 case `$LD -v 2>&1 </dev/null` in
6207 *GNU
* |
*'with BFD'*)
6208 lt_cv_prog_gnu_ld
=yes
6211 lt_cv_prog_gnu_ld
=no
6215 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6217 with_gnu_ld
=$lt_cv_prog_gnu_ld
6219 # note - does not work on freebsd
6220 for ac_prog
in gawk mawk nawk
awk
6222 # Extract the first word of "$ac_prog", so it can be a program name with args.
6223 set dummy
$ac_prog; ac_word
=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_AWK+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 if test -n "$AWK"; then
6230 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir
=.
6237 for ac_exec_ext
in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_AWK
="$ac_prog"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 if test -n "$AWK"; then
6251 { echo "$as_me:$LINENO: result: $AWK" >&5
6252 echo "${ECHO_T}$AWK" >&6; }
6254 { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6259 test -n "$AWK" && break
6262 # Find a good install program. We prefer a C program (faster),
6263 # so one script is as good as another. But avoid the broken or
6264 # incompatible versions:
6265 # SysV /etc/install, /usr/sbin/install
6266 # SunOS /usr/etc/install
6267 # IRIX /sbin/install
6269 # AmigaOS /C/install, which installs bootblocks on floppy discs
6270 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6271 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6272 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6273 # OS/2's system install, which has a completely different semantic
6274 # ./install, which can be erroneously created by make from ./install.sh.
6275 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6276 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6277 if test -z "$INSTALL"; then
6278 if test "${ac_cv_path_install+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir
=.
6286 # Account for people who put trailing slashes in PATH elements.
6288 .
/ | .
// |
/cC
/* | \
6289 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6290 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6293 # OSF1 and SCO ODT 3.0 have their own names for install.
6294 # Don't use installbsd from OSF since it installs stuff as root
6296 for ac_prog
in ginstall scoinst
install; do
6297 for ac_exec_ext
in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6299 if test $ac_prog = install &&
6300 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6301 # AIX install. It has an incompatible calling convention.
6303 elif test $ac_prog = install &&
6304 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6305 # program-specific install script used by HP pwplus--don't use.
6308 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6321 if test "${ac_cv_path_install+set}" = set; then
6322 INSTALL
=$ac_cv_path_install
6324 # As a last resort, use the slow shell script. Don't cache a
6325 # value for INSTALL within a source directory, because that will
6326 # break other packages using the cache if that directory is
6327 # removed, or if the value is a relative name.
6328 INSTALL
=$ac_install_sh
6331 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6332 echo "${ECHO_T}$INSTALL" >&6; }
6334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6335 # It thinks the first close brace ends the variable substitution.
6336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6340 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6342 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6343 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6345 if test "$LN_S" = "ln -s"; then
6346 { echo "$as_me:$LINENO: result: yes" >&5
6347 echo "${ECHO_T}yes" >&6; }
6349 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6350 echo "${ECHO_T}no, using $LN_S" >&6; }
6353 if test -n "$ac_tool_prefix"; then
6354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6355 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_prog_RANLIB+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 if test -n "$RANLIB"; then
6362 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir
=.
6369 for ac_exec_ext
in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 RANLIB
=$ac_cv_prog_RANLIB
6382 if test -n "$RANLIB"; then
6383 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6384 echo "${ECHO_T}$RANLIB" >&6; }
6386 { echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6; }
6392 if test -z "$ac_cv_prog_RANLIB"; then
6393 ac_ct_RANLIB
=$RANLIB
6394 # Extract the first word of "ranlib", so it can be a program name with args.
6395 set dummy ranlib
; ac_word
=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 if test -n "$ac_ct_RANLIB"; then
6402 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir
=.
6409 for ac_exec_ext
in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6422 if test -n "$ac_ct_RANLIB"; then
6423 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6424 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6426 { echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6; }
6430 if test "x$ac_ct_RANLIB" = x
; then
6433 case $cross_compiling:$ac_tool_warned in
6435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6436 whose name does not start with the host triplet. If you think this
6437 configuration is useful to you, please write to autoconf@gnu.org." >&5
6438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6439 whose name does not start with the host triplet. If you think this
6440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6441 ac_tool_warned
=yes ;;
6443 RANLIB
=$ac_ct_RANLIB
6446 RANLIB
="$ac_cv_prog_RANLIB"
6449 { echo "$as_me:$LINENO: checking for GNU make" >&5
6450 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6451 if test "${GNU_MAKE+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 GNU_MAKE
='Not Found' ;
6455 GNU_MAKE_VERSION_MAJOR
=0 ;
6456 GNU_MAKE_VERSION_MINOR
=0 ;
6457 for a
in make gmake gnumake
; do
6458 if test -z "$a" ; then continue ; fi ;
6459 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6461 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6462 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6468 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6469 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6470 if test "x$GNU_MAKE" = "xNot Found" ; then
6471 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6472 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6473 { (exit 1); exit 1; }; }
6479 if test -n "$ac_tool_prefix"; then
6480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6481 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_path_STRIP+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir
=.
6497 for ac_exec_ext
in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 STRIP
=$ac_cv_path_STRIP
6511 if test -n "$STRIP"; then
6512 { echo "$as_me:$LINENO: result: $STRIP" >&5
6513 echo "${ECHO_T}$STRIP" >&6; }
6515 { echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6; }
6521 if test -z "$ac_cv_path_STRIP"; then
6523 # Extract the first word of "strip", so it can be a program name with args.
6524 set dummy strip
; ac_word
=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 case $ac_pt_STRIP in
6532 ac_cv_path_ac_pt_STRIP
="$ac_pt_STRIP" # Let the user override the test with a path.
6535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6539 test -z "$as_dir" && as_dir
=.
6540 for ac_exec_ext
in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_path_ac_pt_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 ac_pt_STRIP
=$ac_cv_path_ac_pt_STRIP
6554 if test -n "$ac_pt_STRIP"; then
6555 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6556 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6562 if test "x$ac_pt_STRIP" = x
; then
6565 case $cross_compiling:$ac_tool_warned in
6567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6568 whose name does not start with the host triplet. If you think this
6569 configuration is useful to you, please write to autoconf@gnu.org." >&5
6570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6571 whose name does not start with the host triplet. If you think this
6572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6573 ac_tool_warned
=yes ;;
6578 STRIP
="$ac_cv_path_STRIP"
6581 if test -n "$ac_tool_prefix"; then
6582 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6583 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_AR+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir
=.
6599 for ac_exec_ext
in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 if test -n "$AR"; then
6614 { echo "$as_me:$LINENO: result: $AR" >&5
6615 echo "${ECHO_T}$AR" >&6; }
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6623 if test -z "$ac_cv_path_AR"; then
6625 # Extract the first word of "ar", so it can be a program name with args.
6626 set dummy
ar; ac_word
=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_cv_path_ac_pt_AR
="$ac_pt_AR" # Let the user override the test with a path.
6637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir
=.
6642 for ac_exec_ext
in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_path_ac_pt_AR
="$as_dir/$ac_word$ac_exec_ext"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 ac_pt_AR
=$ac_cv_path_ac_pt_AR
6656 if test -n "$ac_pt_AR"; then
6657 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6658 echo "${ECHO_T}$ac_pt_AR" >&6; }
6660 { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6664 if test "x$ac_pt_AR" = x
; then
6667 case $cross_compiling:$ac_tool_warned in
6669 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6670 whose name does not start with the host triplet. If you think this
6671 configuration is useful to you, please write to autoconf@gnu.org." >&5
6672 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6673 whose name does not start with the host triplet. If you think this
6674 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6675 ac_tool_warned
=yes ;;
6685 if test "x$with_gnu_ld" = "xyes" ; then
6690 # Extract the first word of "awk", so it can be a program name with args.
6691 set dummy
awk; ac_word
=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_path_AWK+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
6702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir
=.
6707 for ac_exec_ext
in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_path_AWK
="$as_dir/$ac_word$ac_exec_ext"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK
=":"
6722 if test -n "$AWK"; then
6723 { echo "$as_me:$LINENO: result: $AWK" >&5
6724 echo "${ECHO_T}$AWK" >&6; }
6726 { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6731 # Extract the first word of "grep", so it can be a program name with args.
6732 set dummy
grep; ac_word
=$2
6733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735 if test "${ac_cv_path_GREP+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir
=.
6748 for ac_exec_ext
in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
6762 GREP
=$ac_cv_path_GREP
6763 if test -n "$GREP"; then
6764 { echo "$as_me:$LINENO: result: $GREP" >&5
6765 echo "${ECHO_T}$GREP" >&6; }
6767 { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6772 # Extract the first word of "find", so it can be a program name with args.
6773 set dummy
find; ac_word
=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_FIND+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir
=.
6789 for ac_exec_ext
in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
6803 FIND
=$ac_cv_path_FIND
6804 if test -n "$FIND"; then
6805 { echo "$as_me:$LINENO: result: $FIND" >&5
6806 echo "${ECHO_T}$FIND" >&6; }
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6813 # Extract the first word of "compress", so it can be a program name with args.
6814 set dummy
compress; ac_word
=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_path_COMPRESS+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
6825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir
=.
6830 for ac_exec_ext
in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
6844 COMPRESS
=$ac_cv_path_COMPRESS
6845 if test -n "$COMPRESS"; then
6846 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6847 echo "${ECHO_T}$COMPRESS" >&6; }
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6854 # Extract the first word of "basename", so it can be a program name with args.
6855 set dummy
basename; ac_word
=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_path_BASENAME+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
6866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir
=.
6871 for ac_exec_ext
in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
6885 BASENAME
=$ac_cv_path_BASENAME
6886 if test -n "$BASENAME"; then
6887 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6888 echo "${ECHO_T}$BASENAME" >&6; }
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6895 # Extract the first word of "id", so it can be a program name with args.
6896 set dummy id
; ac_word
=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_path_ID+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
6907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6911 test -z "$as_dir" && as_dir
=.
6912 for ac_exec_ext
in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
6927 if test -n "$ID"; then
6928 { echo "$as_me:$LINENO: result: $ID" >&5
6929 echo "${ECHO_T}$ID" >&6; }
6931 { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6936 # Extract the first word of "dirname", so it can be a program name with args.
6937 set dummy
dirname; ac_word
=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_path_DIRNAME+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
6948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir
=.
6953 for ac_exec_ext
in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
6967 DIRNAME
=$ac_cv_path_DIRNAME
6968 if test -n "$DIRNAME"; then
6969 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6970 echo "${ECHO_T}$DIRNAME" >&6; }
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6977 # Extract the first word of "sh", so it can be a program name with args.
6978 set dummy sh
; ac_word
=$2
6979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981 if test "${ac_cv_path_SHELL+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
6989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir
=.
6994 for ac_exec_ext
in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
7008 SHELL
=$ac_cv_path_SHELL
7009 if test -n "$SHELL"; then
7010 { echo "$as_me:$LINENO: result: $SHELL" >&5
7011 echo "${ECHO_T}$SHELL" >&6; }
7013 { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7018 # Extract the first word of "ln", so it can be a program name with args.
7019 set dummy
ln; ac_word
=$2
7020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7022 if test "${ac_cv_path_LN+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
7030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir
=.
7035 for ac_exec_ext
in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
7038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
7050 if test -n "$LN"; then
7051 { echo "$as_me:$LINENO: result: $LN" >&5
7052 echo "${ECHO_T}$LN" >&6; }
7054 { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7059 # Extract the first word of "dot", so it can be a program name with args.
7060 set dummy dot
; ac_word
=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_path_DOT+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7075 test -z "$as_dir" && as_dir
=.
7076 for ac_exec_ext
in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
7091 if test -n "$DOT"; then
7092 { echo "$as_me:$LINENO: result: $DOT" >&5
7093 echo "${ECHO_T}$DOT" >&6; }
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7100 # Extract the first word of "wget", so it can be a program name with args.
7101 set dummy wget
; ac_word
=$2
7102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104 if test "${ac_cv_path_WGET+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
7112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir
=.
7117 for ac_exec_ext
in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
7131 WGET
=$ac_cv_path_WGET
7132 if test -n "$WGET"; then
7133 { echo "$as_me:$LINENO: result: $WGET" >&5
7134 echo "${ECHO_T}$WGET" >&6; }
7136 { echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6; }
7141 if test "${WGET}" != ":" ; then
7144 # Extract the first word of "fetch", so it can be a program name with args.
7145 set dummy fetch
; ac_word
=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_FETCH+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir
=.
7161 for ac_exec_ext
in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7175 FETCH
=$ac_cv_path_FETCH
7176 if test -n "$FETCH"; then
7177 { echo "$as_me:$LINENO: result: $FETCH" >&5
7178 echo "${ECHO_T}$FETCH" >&6; }
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7191 set dummy
${ac_tool_prefix}soxmix
; ac_word
=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 if test -n "$SOXMIX"; then
7198 ac_cv_prog_SOXMIX
="$SOXMIX" # Let the user override the test.
7200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir
=.
7205 for ac_exec_ext
in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_SOXMIX
="${ac_tool_prefix}soxmix"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 SOXMIX
=$ac_cv_prog_SOXMIX
7218 if test -n "$SOXMIX"; then
7219 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7220 echo "${ECHO_T}$SOXMIX" >&6; }
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7228 if test -z "$ac_cv_prog_SOXMIX"; then
7229 ac_ct_SOXMIX
=$SOXMIX
7230 # Extract the first word of "soxmix", so it can be a program name with args.
7231 set dummy soxmix
; ac_word
=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 if test -n "$ac_ct_SOXMIX"; then
7238 ac_cv_prog_ac_ct_SOXMIX
="$ac_ct_SOXMIX" # Let the user override the test.
7240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7244 test -z "$as_dir" && as_dir
=.
7245 for ac_exec_ext
in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_SOXMIX
="soxmix"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 ac_ct_SOXMIX
=$ac_cv_prog_ac_ct_SOXMIX
7258 if test -n "$ac_ct_SOXMIX"; then
7259 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7260 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7266 if test "x$ac_ct_SOXMIX" = x
; then
7269 case $cross_compiling:$ac_tool_warned in
7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272 whose name does not start with the host triplet. If you think this
7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275 whose name does not start with the host triplet. If you think this
7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7277 ac_tool_warned
=yes ;;
7279 SOXMIX
=$ac_ct_SOXMIX
7282 SOXMIX
="$ac_cv_prog_SOXMIX"
7285 if test "${SOXMIX}" != ":" ; then
7287 cat >>confdefs.h
<<\_ACEOF
7288 #define HAVE_SOXMIX 1
7297 ac_cpp
='$CPP $CPPFLAGS'
7298 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7304 # We used to check for pthread.h first, but this fails if pthread.h
7305 # requires special compiler flags (e.g. on True64 or Sequent).
7306 # It gets checked for in the link test anyway.
7308 # First of all, check if the user has set any of the PTHREAD_LIBS,
7309 # etcetera environment variables, and if threads linking works using
7311 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
7312 save_CFLAGS
="$CFLAGS"
7313 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7315 LIBS
="$PTHREAD_LIBS $LIBS"
7316 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7317 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7318 cat >conftest.
$ac_ext <<_ACEOF
7321 cat confdefs.h
>>conftest.
$ac_ext
7322 cat >>conftest.
$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7325 /* Override any GCC internal prototype to avoid an error.
7326 Use char because int might match the return type of a GCC
7327 builtin and then its argument prototype would still apply. */
7331 char pthread_join ();
7335 return pthread_join ();
7340 rm -f conftest.
$ac_objext conftest
$ac_exeext
7341 if { (ac_try
="$ac_link"
7343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_link") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest$ac_exeext &&
7357 $as_test_x conftest$ac_exeext; then
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367 conftest$ac_exeext conftest.$ac_ext
7368 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7369 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7370 if test x"$acx_pthread_ok" = xno; then
7375 CFLAGS="$save_CFLAGS"
7378 # We must check for the threads library under a number of different
7379 # names; the ordering is very important because some systems
7380 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7381 # libraries is broken (non-POSIX).
7383 # Create a list of thread flags to try. Items starting with a "-" are
7384 # C compiler flags, and other items are library names, except for "none"
7385 # which indicates that we try without any flags at all, and "pthread-config"
7386 # which is a program returning the flags for the Pth emulation library.
7388 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7390 # The ordering *is* (sometimes) important. Some notes on the
7391 # individual items follow:
7393 # pthreads: AIX (must check this before -lpthread)
7394 # none: in case threads are in libc; should be tried before -Kthread and
7395 # other compiler flags to prevent continual compiler warnings
7396 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7397 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7398 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7399 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7400 # -pthreads: Solaris/gcc
7401 # -mthreads: Mingw32/gcc, Lynx/gcc
7402 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7403 # doesn't hurt to check since this sometimes defines pthreads too;
7404 # also defines -D_REENTRANT)
7405 # ... -mt is also the pthreads flag for HP/aCC
7406 # pthread: Linux, etcetera
7407 # --thread-safe: KAI C++
7408 # pthread-config: use pthread-config program (for GNU Pth library)
7410 case "${host_cpu}-${host_os}" in
7413 # On Solaris (at least, for some versions), libc contains stubbed
7414 # (non-functional) versions of the pthreads routines, so link-based
7415 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7416 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7417 # a function called by this macro, so we could check for that, but
7418 # who knows whether they'll stub that too in a future libc.) So,
7419 # we'll just look for -pthreads and -lpthread first:
7421 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7425 if test x"$acx_pthread_ok" = xno; then
7426 for flag in $acx_pthread_flags; do
7430 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7431 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7435 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7436 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7437 PTHREAD_CFLAGS="$flag"
7441 # Extract the first word of "pthread-config", so it can be a program name with args.
7442 set dummy pthread-config; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 if test -n "$acx_pthread_config"; then
7449 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_acx_pthread_config="yes"
7459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7469 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7470 if test -n "$acx_pthread_config"; then
7471 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7472 echo "${ECHO_T}$acx_pthread_config" >&6; }
7474 { echo "$as_me:$LINENO: result: no" >&5
7475 echo "${ECHO_T}no" >&6; }
7479 if test x"$acx_pthread_config" = xno; then continue; fi
7480 PTHREAD_CFLAGS="`pthread-config
--cflags`"
7481 PTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
7485 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7486 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7487 PTHREAD_LIBS="-l$flag"
7492 save_CFLAGS="$CFLAGS"
7493 LIBS="$PTHREAD_LIBS $LIBS"
7494 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7496 # Check for various functions. We must include pthread.h,
7497 # since some functions may be macros. (On the Sequent, we
7498 # need a special flag -Kthread to make this header compile.)
7499 # We check for pthread_join because it is in -lpthread on IRIX
7500 # while pthread_create is in libc. We check for pthread_attr_init
7501 # due to DEC craziness with -lpthreads. We check for
7502 # pthread_cleanup_push because it is one of the few pthread
7503 # functions on Solaris that doesn't have a non-functional libc stub.
7504 # We try pthread_create on general principles.
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 #include <pthread.h>
7515 pthread_t th; pthread_join(th, 0);
7516 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7517 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7522 rm -f conftest.$ac_objext conftest$ac_exeext
7523 if { (ac_try="$ac_link"
7525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7526 *) ac_try_echo
=$ac_try;;
7528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529 (eval "$ac_link") 2>conftest.er1
7531 grep -v '^ *+' conftest.er1
>conftest.err
7533 cat conftest.err
>&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } && {
7536 test -z "$ac_c_werror_flag" ||
7537 test ! -s conftest.err
7538 } && test -s conftest
$ac_exeext &&
7539 $as_test_x conftest
$ac_exeext; then
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.
$ac_ext >&5
7548 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7549 conftest
$ac_exeext conftest.
$ac_ext
7552 CFLAGS
="$save_CFLAGS"
7554 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7555 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7556 if test "x$acx_pthread_ok" = xyes
; then
7565 # Various other checks:
7566 if test "x$acx_pthread_ok" = xyes
; then
7568 LIBS
="$PTHREAD_LIBS $LIBS"
7569 save_CFLAGS
="$CFLAGS"
7570 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7572 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7573 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7574 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7576 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7577 cat >conftest.
$ac_ext <<_ACEOF
7580 cat confdefs.h
>>conftest.
$ac_ext
7581 cat >>conftest.
$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7583 #include <pthread.h>
7587 int attr=$attr; return attr;
7592 rm -f conftest.
$ac_objext conftest
$ac_exeext
7593 if { (ac_try
="$ac_link"
7595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_link") 2>conftest.er1
7601 grep -v '^ *+' conftest.er1 >conftest.err
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest$ac_exeext &&
7609 $as_test_x conftest$ac_exeext; then
7610 attr_name=$attr; break
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7619 conftest$ac_exeext conftest.$ac_ext
7621 { echo "$as_me:$LINENO: result: $attr_name" >&5
7622 echo "${ECHO_T}$attr_name" >&6; }
7623 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7625 cat >>confdefs.h <<_ACEOF
7626 #define PTHREAD_CREATE_JOINABLE $attr_name
7631 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7632 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7634 case "${host_cpu}-${host_os}" in
7635 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7636 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7638 { echo "$as_me:$LINENO: result: ${flag}" >&5
7639 echo "${ECHO_T}${flag}" >&6; }
7640 if test "x$flag" != xno; then
7641 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7645 CFLAGS="$save_CFLAGS"
7647 # More AIX lossage: must compile with xlc_r or cc_r
7648 if test x"$GCC" != xyes; then
7649 for ac_prog in xlc_r cc_r
7651 # Extract the first word of "$ac_prog", so it can be a program name with args.
7652 set dummy $ac_prog; ac_word=$2
7653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7655 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 if test -n "$PTHREAD_CC"; then
7659 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_prog_PTHREAD_CC="$ac_prog"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7679 if test -n "$PTHREAD_CC"; then
7680 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7681 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7683 { echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6; }
7688 test -n "$PTHREAD_CC" && break
7690 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7703 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7704 if test x"$acx_pthread_ok" = xyes; then
7706 cat >>confdefs.h <<\_ACEOF
7707 #define HAVE_PTHREAD 1
7716 ac_cpp='$CPP $CPPFLAGS'
7717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7724 ac_cpp='$CPP $CPPFLAGS'
7725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730 # Check whether --enable-dev-mode was given.
7731 if test "${enable_dev_mode+set}" = set; then
7732 enableval=$enable_dev_mode; case "${enableval}" in
7733 y|ye|yes) AST_DEVMODE=yes ;;
7734 n|no) AST_DEVMODE=no ;;
7735 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7736 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7737 { (exit 1); exit 1; }; } ;;
7743 # package option names should be in alphabetical order
7744 # by the --with option name, to make things easier for the users :-)
7747 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7748 ALSA_OPTION="asound"
7750 # Check whether --with-asound was given.
7751 if test "${with_asound+set}" = set; then
7752 withval=$with_asound;
7758 ALSA_MANDATORY="yes"
7761 ALSA_DIR="${withval}"
7762 ALSA_MANDATORY="yes"
7778 # Check whether --with-curl was given.
7779 if test "${with_curl+set}" = set; then
7786 CURL_MANDATORY="yes"
7789 CURL_DIR="${withval}"
7790 CURL_MANDATORY="yes"
7803 CAP_DESCRIP="POSIX 1.e capabilities"
7806 # Check whether --with-cap was given.
7807 if test "${with_cap+set}" = set; then
7817 CAP_DIR="${withval}"
7831 CURSES_DESCRIP="curses"
7832 CURSES_OPTION="curses"
7834 # Check whether --with-curses was given.
7835 if test "${with_curses+set}" = set; then
7836 withval=$with_curses;
7842 CURSES_MANDATORY="yes"
7845 CURSES_DIR="${withval}"
7846 CURSES_MANDATORY="yes"
7859 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7860 GNUTLS_OPTION="gnutls"
7862 # Check whether --with-gnutls was given.
7863 if test "${with_gnutls+set}" = set; then
7864 withval=$with_gnutls;
7870 GNUTLS_MANDATORY="yes"
7873 GNUTLS_DIR="${withval}"
7874 GNUTLS_MANDATORY="yes"
7890 # Check whether --with-gsm was given.
7891 if test "${with_gsm+set}" = set; then
7901 GSM_DIR="${withval}"
7915 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7916 IKSEMEL_OPTION="iksemel"
7918 # Check whether --with-iksemel was given.
7919 if test "${with_iksemel+set}" = set; then
7920 withval=$with_iksemel;
7926 IKSEMEL_MANDATORY="yes"
7929 IKSEMEL_DIR="${withval}"
7930 IKSEMEL_MANDATORY="yes"
7943 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7944 IMAP_TK_OPTION="imap"
7946 # Check whether --with-imap was given.
7947 if test "${with_imap+set}" = set; then
7954 IMAP_TK_MANDATORY="yes"
7957 IMAP_TK_DIR="${withval}"
7958 IMAP_TK_MANDATORY="yes"
7971 ISDNNET_DESCRIP="ISDN4Linux Library"
7972 ISDNNET_OPTION="isdnnet"
7974 # Check whether --with-isdnnet was given.
7975 if test "${with_isdnnet+set}" = set; then
7976 withval=$with_isdnnet;
7982 ISDNNET_MANDATORY="yes"
7985 ISDNNET_DIR="${withval}"
7986 ISDNNET_MANDATORY="yes"
8002 # Check whether --with-kde was given.
8003 if test "${with_kde+set}" = set; then
8013 KDE_DIR="${withval}"
8027 LTDL_DESCRIP="libtool"
8030 # Check whether --with-ltdl was given.
8031 if test "${with_ltdl+set}" = set; then
8038 LTDL_MANDATORY="yes"
8041 LTDL_DIR="${withval}"
8042 LTDL_MANDATORY="yes"
8055 MISDN_DESCRIP="mISDN User Library"
8056 MISDN_OPTION="misdn"
8058 # Check whether --with-misdn was given.
8059 if test "${with_misdn+set}" = set; then
8060 withval=$with_misdn;
8066 MISDN_MANDATORY="yes"
8069 MISDN_DIR="${withval}"
8070 MISDN_MANDATORY="yes"
8083 NBS_DESCRIP="Network Broadcast Sound"
8086 # Check whether --with-nbs was given.
8087 if test "${with_nbs+set}" = set; then
8097 NBS_DIR="${withval}"
8111 NCURSES_DESCRIP="ncurses"
8112 NCURSES_OPTION="ncurses"
8114 # Check whether --with-ncurses was given.
8115 if test "${with_ncurses+set}" = set; then
8116 withval=$with_ncurses;
8122 NCURSES_MANDATORY="yes"
8125 NCURSES_DIR="${withval}"
8126 NCURSES_MANDATORY="yes"
8139 NETSNMP_DESCRIP="Net-SNMP"
8140 NETSNMP_OPTION="netsnmp"
8142 # Check whether --with-netsnmp was given.
8143 if test "${with_netsnmp+set}" = set; then
8144 withval=$with_netsnmp;
8150 NETSNMP_MANDATORY="yes"
8153 NETSNMP_DIR="${withval}"
8154 NETSNMP_MANDATORY="yes"
8170 # Check whether --with-newt was given.
8171 if test "${with_newt+set}" = set; then
8178 NEWT_MANDATORY="yes"
8181 NEWT_DIR="${withval}"
8182 NEWT_MANDATORY="yes"
8195 UNIXODBC_DESCRIP="unixODBC"
8196 UNIXODBC_OPTION="odbc"
8198 # Check whether --with-odbc was given.
8199 if test "${with_odbc+set}" = set; then
8206 UNIXODBC_MANDATORY="yes"
8209 UNIXODBC_DIR="${withval}"
8210 UNIXODBC_MANDATORY="yes"
8226 # Check whether --with-ogg was given.
8227 if test "${with_ogg+set}" = set; then
8237 OGG_DIR="${withval}"
8251 OSPTK_DESCRIP="OSP Toolkit"
8252 OSPTK_OPTION="osptk"
8254 # Check whether --with-osptk was given.
8255 if test "${with_osptk+set}" = set; then
8256 withval=$with_osptk;
8262 OSPTK_MANDATORY="yes"
8265 OSPTK_DIR="${withval}"
8266 OSPTK_MANDATORY="yes"
8279 OSS_DESCRIP="Open Sound System"
8282 # Check whether --with-oss was given.
8283 if test "${with_oss+set}" = set; then
8293 OSS_DIR="${withval}"
8310 # Check whether --with-popt was given.
8311 if test "${with_popt+set}" = set; then
8318 POPT_MANDATORY="yes"
8321 POPT_DIR="${withval}"
8322 POPT_MANDATORY="yes"
8335 PGSQL_DESCRIP="PostgreSQL"
8336 PGSQL_OPTION="postgres"
8338 # Check whether --with-postgres was given.
8339 if test "${with_postgres+set}" = set; then
8340 withval=$with_postgres;
8346 PGSQL_MANDATORY="yes"
8349 PGSQL_DIR="${withval}"
8350 PGSQL_MANDATORY="yes"
8363 PRI_DESCRIP="ISDN PRI"
8366 # Check whether --with-pri was given.
8367 if test "${with_pri+set}" = set; then
8377 PRI_DIR="${withval}"
8391 PWLIB_DESCRIP="PWlib"
8392 PWLIB_OPTION="pwlib"
8394 # Check whether --with-pwlib was given.
8395 if test "${with_pwlib+set}" = set; then
8396 withval=$with_pwlib;
8402 PWLIB_MANDATORY="yes"
8405 PWLIB_DIR="${withval}"
8406 PWLIB_MANDATORY="yes"
8419 OPENH323_DESCRIP="OpenH323"
8420 OPENH323_OPTION="h323"
8422 # Check whether --with-h323 was given.
8423 if test "${with_h323+set}" = set; then
8430 OPENH323_MANDATORY="yes"
8433 OPENH323_DIR="${withval}"
8434 OPENH323_MANDATORY="yes"
8447 RADIUS_DESCRIP="Radius Client"
8448 RADIUS_OPTION="radius"
8450 # Check whether --with-radius was given.
8451 if test "${with_radius+set}" = set; then
8452 withval=$with_radius;
8458 RADIUS_MANDATORY="yes"
8461 RADIUS_DIR="${withval}"
8462 RADIUS_MANDATORY="yes"
8475 SPEEX_DESCRIP="Speex"
8476 SPEEX_OPTION="speex"
8478 # Check whether --with-speex was given.
8479 if test "${with_speex+set}" = set; then
8480 withval=$with_speex;
8486 SPEEX_MANDATORY="yes"
8489 SPEEX_DIR="${withval}"
8490 SPEEX_MANDATORY="yes"
8503 SPEEXDSP_DESCRIP="Speexdsp"
8504 SPEEXDSP_OPTION="speexdsp"
8506 # Check whether --with-speexdsp was given.
8507 if test "${with_speexdsp+set}" = set; then
8508 withval=$with_speexdsp;
8514 SPEEXDSP_MANDATORY="yes"
8517 SPEEXDSP_DIR="${withval}"
8518 SPEEXDSP_MANDATORY="yes"
8531 SQLITE_DESCRIP="SQLite"
8532 SQLITE_OPTION="sqlite"
8534 # Check whether --with-sqlite was given.
8535 if test "${with_sqlite+set}" = set; then
8536 withval=$with_sqlite;
8542 SQLITE_MANDATORY="yes"
8545 SQLITE_DIR="${withval}"
8546 SQLITE_MANDATORY="yes"
8559 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8560 SUPPSERV_OPTION="suppserv"
8562 # Check whether --with-suppserv was given.
8563 if test "${with_suppserv+set}" = set; then
8564 withval=$with_suppserv;
8570 SUPPSERV_MANDATORY="yes"
8573 SUPPSERV_DIR="${withval}"
8574 SUPPSERV_MANDATORY="yes"
8587 OPENSSL_DESCRIP="OpenSSL"
8588 OPENSSL_OPTION="ssl"
8590 # Check whether --with-ssl was given.
8591 if test "${with_ssl+set}" = set; then
8598 OPENSSL_MANDATORY="yes"
8601 OPENSSL_DIR="${withval}"
8602 OPENSSL_MANDATORY="yes"
8615 FREETDS_DESCRIP="FreeTDS"
8616 FREETDS_OPTION="tds"
8618 # Check whether --with-tds was given.
8619 if test "${with_tds+set}" = set; then
8626 FREETDS_MANDATORY="yes"
8629 FREETDS_DIR="${withval}"
8630 FREETDS_MANDATORY="yes"
8643 TERMCAP_DESCRIP="Termcap"
8644 TERMCAP_OPTION="termcap"
8646 # Check whether --with-termcap was given.
8647 if test "${with_termcap+set}" = set; then
8648 withval=$with_termcap;
8654 TERMCAP_MANDATORY="yes"
8657 TERMCAP_DIR="${withval}"
8658 TERMCAP_MANDATORY="yes"
8671 TINFO_DESCRIP="Term Info"
8672 TINFO_OPTION="tinfo"
8674 # Check whether --with-tinfo was given.
8675 if test "${with_tinfo+set}" = set; then
8676 withval=$with_tinfo;
8682 TINFO_MANDATORY="yes"
8685 TINFO_DIR="${withval}"
8686 TINFO_MANDATORY="yes"
8699 TONEZONE_DESCRIP="tonezone"
8700 TONEZONE_OPTION="tonezone"
8702 # Check whether --with-tonezone was given.
8703 if test "${with_tonezone+set}" = set; then
8704 withval=$with_tonezone;
8710 TONEZONE_MANDATORY="yes"
8713 TONEZONE_DIR="${withval}"
8714 TONEZONE_MANDATORY="yes"
8730 # Check whether --with-usb was given.
8731 if test "${with_usb+set}" = set; then
8741 USB_DIR="${withval}"
8755 VORBIS_DESCRIP="Vorbis"
8756 VORBIS_OPTION="vorbis"
8758 # Check whether --with-vorbis was given.
8759 if test "${with_vorbis+set}" = set; then
8760 withval=$with_vorbis;
8766 VORBIS_MANDATORY="yes"
8769 VORBIS_DIR="${withval}"
8770 VORBIS_MANDATORY="yes"
8783 VPB_DESCRIP="Voicetronix API"
8786 # Check whether --with-vpb was given.
8787 if test "${with_vpb+set}" = set; then
8797 VPB_DIR="${withval}"
8814 # Check whether --with-z was given.
8815 if test "${with_z+set}" = set; then
8822 ZLIB_MANDATORY="yes"
8825 ZLIB_DIR="${withval}"
8826 ZLIB_MANDATORY="yes"
8839 ZAPTEL_DESCRIP="Zaptel"
8840 ZAPTEL_OPTION="zaptel"
8842 # Check whether --with-zaptel was given.
8843 if test "${with_zaptel+set}" = set; then
8844 withval=$with_zaptel;
8850 ZAPTEL_MANDATORY="yes"
8853 ZAPTEL_DIR="${withval}"
8854 ZAPTEL_MANDATORY="yes"
8867 # check for basic system features and functionality before
8868 # checking for package libraries
8870 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8871 # for constant arguments. Useless!
8872 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8873 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8874 if test "${ac_cv_working_alloca_h+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8887 char *p = (char *) alloca (2 * sizeof (int));
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (ac_try="$ac_link"
8896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8897 *) ac_try_echo
=$ac_try;;
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_link") 2>conftest.er1
8902 grep -v '^ *+' conftest.er1
>conftest.err
8904 cat conftest.err
>&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } && {
8907 test -z "$ac_c_werror_flag" ||
8908 test ! -s conftest.err
8909 } && test -s conftest
$ac_exeext &&
8910 $as_test_x conftest
$ac_exeext; then
8911 ac_cv_working_alloca_h
=yes
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.
$ac_ext >&5
8916 ac_cv_working_alloca_h
=no
8919 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8920 conftest
$ac_exeext conftest.
$ac_ext
8922 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8923 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8924 if test $ac_cv_working_alloca_h = yes; then
8926 cat >>confdefs.h
<<\_ACEOF
8927 #define HAVE_ALLOCA_H 1
8932 { echo "$as_me:$LINENO: checking for alloca" >&5
8933 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8934 if test "${ac_cv_func_alloca_works+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 cat >conftest.
$ac_ext <<_ACEOF
8940 cat confdefs.h
>>conftest.
$ac_ext
8941 cat >>conftest.
$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8944 # define alloca __builtin_alloca
8947 # include <malloc.h>
8948 # define alloca _alloca
8950 # ifdef HAVE_ALLOCA_H
8951 # include <alloca.h>
8956 # ifndef alloca /* predefined by HP cc +Olibcalls */
8967 char *p = (char *) alloca (1);
8973 rm -f conftest.
$ac_objext conftest
$ac_exeext
8974 if { (ac_try
="$ac_link"
8976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8977 *) ac_try_echo=$ac_try;;
8979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8980 (eval "$ac_link") 2>conftest.er1
8982 grep -v '^ *+' conftest.er1 >conftest.err
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } && {
8987 test -z "$ac_c_werror_flag" ||
8988 test ! -s conftest.err
8989 } && test -s conftest$ac_exeext &&
8990 $as_test_x conftest$ac_exeext; then
8991 ac_cv_func_alloca_works=yes
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 ac_cv_func_alloca_works=no
8999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9000 conftest$ac_exeext conftest.$ac_ext
9002 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9003 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9005 if test $ac_cv_func_alloca_works = yes; then
9007 cat >>confdefs.h <<\_ACEOF
9008 #define HAVE_ALLOCA 1
9012 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9013 # that cause trouble. Some versions do not even contain alloca or
9014 # contain a buggy version. If you still want to use their alloca,
9015 # use ar to extract alloca.o from them instead of compiling alloca.c.
9017 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9019 cat >>confdefs.h <<\_ACEOF
9024 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
9025 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
9026 if test "${ac_cv_os_cray+set}" = set; then
9027 echo $ECHO_N "(cached
) $ECHO_C" >&6
9029 cat >conftest.$ac_ext <<_ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 #if defined CRAY && ! defined CRAY2
9042 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9043 $EGREP "webecray
" >/dev/null 2>&1; then
9051 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
9052 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9053 if test $ac_cv_os_cray = yes; then
9054 for ac_func in _getb67 GETB67 getb67; do
9055 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
9056 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
9057 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
9058 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
9059 echo $ECHO_N "(cached
) $ECHO_C" >&6
9061 cat >conftest.$ac_ext <<_ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9069 #define $ac_func innocuous_$ac_func
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char $ac_func (); below.
9073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9074 <limits.h> exists even on freestanding compilers. */
9077 # include <limits.h>
9079 # include <assert.h>
9084 /* Override any GCC internal prototype to avoid an error.
9085 Use char because int might match the return type of a GCC
9086 builtin and then its argument prototype would still apply. */
9091 /* The GNU C library defines this for functions which it implements
9092 to always fail with ENOSYS. Some functions are actually named
9093 something starting with __ and the normal name is an alias. */
9094 #if defined __stub_$ac_func || defined __stub___$ac_func
9106 rm -f conftest.$ac_objext conftest$ac_exeext
9107 if { (ac_try="$ac_link"
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_link") 2>conftest.er1
9115 grep -v '^ *+' conftest.er1 >conftest.err
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest$ac_exeext &&
9123 $as_test_x conftest$ac_exeext; then
9124 eval "$as_ac_var=yes"
9126 echo "$as_me: failed program was
:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9129 eval "$as_ac_var=no
"
9132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9133 conftest$ac_exeext conftest.$ac_ext
9135 ac_res=`eval echo '${'$as_ac_var'}'`
9136 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9137 echo "${ECHO_T}$ac_res" >&6; }
9138 if test `eval echo '${'$as_ac_var'}'` = yes; then
9140 cat >>confdefs.h <<_ACEOF
9141 #define CRAY_STACKSEG_END $ac_func
9150 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
9151 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
9152 if test "${ac_cv_c_stack_direction+set}" = set; then
9153 echo $ECHO_N "(cached
) $ECHO_C" >&6
9155 if test "$cross_compiling" = yes; then
9156 ac_cv_c_stack_direction=0
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 $ac_includes_default
9166 find_stack_direction ()
9168 static char *addr = 0;
9173 return find_stack_direction ();
9176 return (&dummy > addr) ? 1 : -1;
9182 return find_stack_direction () < 0;
9185 rm -f conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_link") 2>&5
9194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9196 { (case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_try") 2>&5
9203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9204 (exit $ac_status); }; }; then
9205 ac_cv_c_stack_direction=1
9207 echo "$as_me: program exited with status
$ac_status" >&5
9208 echo "$as_me: failed program was
:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9212 ac_cv_c_stack_direction=-1
9214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9219 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
9220 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9222 cat >>confdefs.h <<_ACEOF
9223 #define STACK_DIRECTION $ac_cv_c_stack_direction
9235 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9236 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
9237 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
9238 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
9239 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9240 echo $ECHO_N "(cached
) $ECHO_C" >&6
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248 #include <sys/types.h>
9260 rm -f conftest.$ac_objext
9261 if { (ac_try="$ac_compile"
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_compile") 2>conftest.er1
9269 grep -v '^ *+' conftest.er1 >conftest.err
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest.$ac_objext; then
9277 eval "$as_ac_Header=yes"
9279 echo "$as_me: failed program was
:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9282 eval "$as_ac_Header=no
"
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 ac_res=`eval echo '${'$as_ac_Header'}'`
9288 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9289 echo "${ECHO_T}$ac_res" >&6; }
9290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9291 cat >>confdefs.h <<_ACEOF
9292 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
9295 ac_header_dirent=$ac_hdr; break
9299 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9300 if test $ac_header_dirent = dirent.h; then
9301 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9302 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9303 if test "${ac_cv_search_opendir+set}" = set; then
9304 echo $ECHO_N "(cached
) $ECHO_C" >&6
9306 ac_func_search_save_LIBS=$LIBS
9307 cat >conftest.$ac_ext <<_ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9314 /* Override any GCC internal prototype to avoid an error.
9315 Use char because int might match the return type of a GCC
9316 builtin and then its argument prototype would still apply. */
9329 for ac_lib in '' dir; do
9330 if test -z "$ac_lib"; then
9331 ac_res="none required
"
9334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (ac_try="$ac_link"
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_link") 2>conftest.er1
9345 grep -v '^ *+' conftest.er1 >conftest.err
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9349 (exit $ac_status); } && {
9350 test -z "$ac_c_werror_flag" ||
9351 test ! -s conftest.err
9352 } && test -s conftest$ac_exeext &&
9353 $as_test_x conftest$ac_exeext; then
9354 ac_cv_search_opendir=$ac_res
9356 echo "$as_me: failed program was
:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9364 if test "${ac_cv_search_opendir+set}" = set; then
9368 if test "${ac_cv_search_opendir+set}" = set; then
9371 ac_cv_search_opendir=no
9374 LIBS=$ac_func_search_save_LIBS
9376 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9377 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9378 ac_res=$ac_cv_search_opendir
9379 if test "$ac_res" != no; then
9380 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9385 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9386 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9387 if test "${ac_cv_search_opendir+set}" = set; then
9388 echo $ECHO_N "(cached
) $ECHO_C" >&6
9390 ac_func_search_save_LIBS=$LIBS
9391 cat >conftest.$ac_ext <<_ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9398 /* Override any GCC internal prototype to avoid an error.
9399 Use char because int might match the return type of a GCC
9400 builtin and then its argument prototype would still apply. */
9413 for ac_lib in '' x; do
9414 if test -z "$ac_lib"; then
9415 ac_res="none required
"
9418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9420 rm -f conftest.$ac_objext conftest$ac_exeext
9421 if { (ac_try="$ac_link"
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9427 (eval "$ac_link") 2>conftest.er1
9429 grep -v '^ *+' conftest.er1 >conftest.err
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9433 (exit $ac_status); } && {
9434 test -z "$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9436 } && test -s conftest$ac_exeext &&
9437 $as_test_x conftest$ac_exeext; then
9438 ac_cv_search_opendir=$ac_res
9440 echo "$as_me: failed program was
:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9448 if test "${ac_cv_search_opendir+set}" = set; then
9452 if test "${ac_cv_search_opendir+set}" = set; then
9455 ac_cv_search_opendir=no
9458 LIBS=$ac_func_search_save_LIBS
9460 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9461 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9462 ac_res=$ac_cv_search_opendir
9463 if test "$ac_res" != no; then
9464 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9470 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
9471 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
9472 if test "${ac_cv_header_stdc+set}" = set; then
9473 echo $ECHO_N "(cached
) $ECHO_C" >&6
9475 cat >conftest.$ac_ext <<_ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9494 rm -f conftest.$ac_objext
9495 if { (ac_try="$ac_compile"
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_compile") 2>conftest.er1
9503 grep -v '^ *+' conftest.er1 >conftest.err
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9507 (exit $ac_status); } && {
9508 test -z "$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest.$ac_objext; then
9511 ac_cv_header_stdc=yes
9513 echo "$as_me: failed program was
:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 ac_cv_header_stdc=no
9519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 if test $ac_cv_header_stdc = yes; then
9522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9523 cat >conftest.$ac_ext <<_ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9532 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9533 $EGREP "memchr
" >/dev/null 2>&1; then
9536 ac_cv_header_stdc=no
9542 if test $ac_cv_header_stdc = yes; then
9543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9544 cat >conftest.$ac_ext <<_ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9553 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9554 $EGREP "free
" >/dev/null 2>&1; then
9557 ac_cv_header_stdc=no
9563 if test $ac_cv_header_stdc = yes; then
9564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9565 if test "$cross_compiling" = yes; then
9568 cat >conftest.$ac_ext <<_ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9576 #if ((' ' & 0x0FF) == 0x020)
9577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9580 # define ISLOWER(c) \
9581 (('a' <= (c) && (c) <= 'i') \
9582 || ('j' <= (c) && (c) <= 'r') \
9583 || ('s' <= (c) && (c) <= 'z'))
9584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9592 for (i = 0; i < 256; i++)
9593 if (XOR (islower (i), ISLOWER (i))
9594 || toupper (i) != TOUPPER (i))
9599 rm -f conftest$ac_exeext
9600 if { (ac_try="$ac_link"
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_link") 2>&5
9608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
9617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9618 (exit $ac_status); }; }; then
9621 echo "$as_me: program exited with status
$ac_status" >&5
9622 echo "$as_me: failed program was
:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9626 ac_cv_header_stdc=no
9628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9634 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
9635 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9636 if test $ac_cv_header_stdc = yes; then
9638 cat >>confdefs.h <<\_ACEOF
9639 #define STDC_HEADERS 1
9644 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
9645 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
9646 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9647 echo $ECHO_N "(cached
) $ECHO_C" >&6
9649 cat >conftest.$ac_ext <<_ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655 #include <sys/types.h>
9656 #include <sys/wait.h>
9658 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9661 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9669 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9674 rm -f conftest.$ac_objext
9675 if { (ac_try="$ac_compile"
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_compile") 2>conftest.er1
9683 grep -v '^ *+' conftest.er1 >conftest.err
9685 cat conftest.err >&5
9686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest.$ac_objext; then
9691 ac_cv_header_sys_wait_h=yes
9693 echo "$as_me: failed program was
:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_header_sys_wait_h=no
9699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
9702 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9703 if test $ac_cv_header_sys_wait_h = yes; then
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_SYS_WAIT_H 1
9735 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
9737 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9738 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9739 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9740 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9741 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9742 echo $ECHO_N "(cached
) $ECHO_C" >&6
9744 ac_res=`eval echo '${'$as_ac_Header'}'`
9745 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9746 echo "${ECHO_T}$ac_res" >&6; }
9748 # Is the header compilable?
9749 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9750 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9751 cat >conftest.$ac_ext <<_ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 $ac_includes_default
9758 #include <$ac_header>
9760 rm -f conftest.$ac_objext
9761 if { (ac_try="$ac_compile"
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_compile") 2>conftest.er1
9769 grep -v '^ *+' conftest.er1 >conftest.err
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest.$ac_objext; then
9777 ac_header_compiler=yes
9779 echo "$as_me: failed program was
:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 ac_header_compiler=no
9785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9787 echo "${ECHO_T}$ac_header_compiler" >&6; }
9789 # Is the header present?
9790 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9791 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9792 cat >conftest.$ac_ext <<_ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9798 #include <$ac_header>
9800 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9808 grep -v '^ *+' conftest.er1 >conftest.err
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9812 (exit $ac_status); } >/dev/null && {
9813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9816 ac_header_preproc=yes
9818 echo "$as_me: failed program was
:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 ac_header_preproc=no
9824 rm -f conftest.err conftest.$ac_ext
9825 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9826 echo "${ECHO_T}$ac_header_preproc" >&6; }
9828 # So? What about this header?
9829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9831 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9832 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9833 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9835 ac_header_preproc=yes
9838 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9839 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9840 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9841 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9842 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9843 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9844 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9845 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9846 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9848 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9849 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9851 ## ------------------------------- ##
9852 ## Report this to www.asterisk.org ##
9853 ## ------------------------------- ##
9855 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9858 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9859 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9860 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9861 echo $ECHO_N "(cached
) $ECHO_C" >&6
9863 eval "$as_ac_Header=\
$ac_header_preproc"
9865 ac_res=`eval echo '${'$as_ac_Header'}'`
9866 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9867 echo "${ECHO_T}$ac_res" >&6; }
9870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9871 cat >>confdefs.h <<_ACEOF
9872 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9880 # Check whether --enable-largefile was given.
9881 if test "${enable_largefile+set}" = set; then
9882 enableval=$enable_largefile;
9885 if test "$enable_largefile" != no; then
9887 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
9888 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
9889 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9890 echo $ECHO_N "(cached
) $ECHO_C" >&6
9892 ac_cv_sys_largefile_CC=no
9893 if test "$GCC" != yes; then
9896 # IRIX 6.2 and later do not support large files by default,
9897 # so use the C compiler's -n32 option if that helps.
9898 cat >conftest.$ac_ext <<_ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 #include <sys/types.h>
9905 /* Check that off_t can represent 2**63 - 1 correctly.
9906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9907 since some C++ compilers masquerading as C compilers
9908 incorrectly reject 9223372036854775807. */
9909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9911 && LARGE_OFF_T % 2147483647 == 1)
9921 rm -f conftest.$ac_objext
9922 if { (ac_try="$ac_compile"
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9927 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9930 grep -v '^ *+' conftest.er1 >conftest.err
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9940 echo "$as_me: failed program was
:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9946 rm -f core conftest.err conftest.$ac_objext
9948 rm -f conftest.$ac_objext
9949 if { (ac_try="$ac_compile"
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_compile") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest.$ac_objext; then
9965 ac_cv_sys_largefile_CC=' -n32'; break
9967 echo "$as_me: failed program was
:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9973 rm -f core conftest.err conftest.$ac_objext
9977 rm -f conftest.$ac_ext
9980 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
9981 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9982 if test "$ac_cv_sys_largefile_CC" != no; then
9983 CC=$CC$ac_cv_sys_largefile_CC
9986 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
9987 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
9988 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9989 echo $ECHO_N "(cached
) $ECHO_C" >&6
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 #include <sys/types.h>
9999 /* Check that off_t can represent 2**63 - 1 correctly.
10000 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10001 since some C++ compilers masquerading as C compilers
10002 incorrectly reject 9223372036854775807. */
10003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10005 && LARGE_OFF_T % 2147483647 == 1)
10015 rm -f conftest.$ac_objext
10016 if { (ac_try="$ac_compile"
10017 case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_compile") 2>conftest.er1
10024 grep -v '^ *+' conftest.er1 >conftest.err
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10028 (exit $ac_status); } && {
10029 test -z "$ac_c_werror_flag" ||
10030 test ! -s conftest.err
10031 } && test -s conftest.$ac_objext; then
10032 ac_cv_sys_file_offset_bits=no; break
10034 echo "$as_me: failed program was
:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041 cat >conftest.$ac_ext <<_ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 #define _FILE_OFFSET_BITS 64
10048 #include <sys/types.h>
10049 /* Check that off_t can represent 2**63 - 1 correctly.
10050 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10051 since some C++ compilers masquerading as C compilers
10052 incorrectly reject 9223372036854775807. */
10053 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10054 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10055 && LARGE_OFF_T % 2147483647 == 1)
10065 rm -f conftest.$ac_objext
10066 if { (ac_try="$ac_compile"
10067 case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_compile") 2>conftest.er1
10074 grep -v '^ *+' conftest.er1 >conftest.err
10076 cat conftest.err >&5
10077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10078 (exit $ac_status); } && {
10079 test -z "$ac_c_werror_flag" ||
10080 test ! -s conftest.err
10081 } && test -s conftest.$ac_objext; then
10082 ac_cv_sys_file_offset_bits=64; break
10084 echo "$as_me: failed program was
:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10091 ac_cv_sys_file_offset_bits=unknown
10095 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
10096 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10097 case $ac_cv_sys_file_offset_bits in #(
10100 cat >>confdefs.h <<_ACEOF
10101 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10106 if test $ac_cv_sys_file_offset_bits = unknown; then
10107 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
10108 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
10109 if test "${ac_cv_sys_large_files+set}" = set; then
10110 echo $ECHO_N "(cached
) $ECHO_C" >&6
10113 cat >conftest.$ac_ext <<_ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 #include <sys/types.h>
10120 /* Check that off_t can represent 2**63 - 1 correctly.
10121 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10122 since some C++ compilers masquerading as C compilers
10123 incorrectly reject 9223372036854775807. */
10124 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10126 && LARGE_OFF_T % 2147483647 == 1)
10136 rm -f conftest.$ac_objext
10137 if { (ac_try="$ac_compile"
10138 case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_compile") 2>conftest.er1
10145 grep -v '^ *+' conftest.er1 >conftest.err
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10149 (exit $ac_status); } && {
10150 test -z "$ac_c_werror_flag" ||
10151 test ! -s conftest.err
10152 } && test -s conftest.$ac_objext; then
10153 ac_cv_sys_large_files=no; break
10155 echo "$as_me: failed program was
:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162 cat >conftest.$ac_ext <<_ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 #define _LARGE_FILES 1
10169 #include <sys/types.h>
10170 /* Check that off_t can represent 2**63 - 1 correctly.
10171 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10172 since some C++ compilers masquerading as C compilers
10173 incorrectly reject 9223372036854775807. */
10174 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10175 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10176 && LARGE_OFF_T % 2147483647 == 1)
10186 rm -f conftest.$ac_objext
10187 if { (ac_try="$ac_compile"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_compile") 2>conftest.er1
10195 grep -v '^ *+' conftest.er1 >conftest.err
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10199 (exit $ac_status); } && {
10200 test -z "$ac_c_werror_flag" ||
10201 test ! -s conftest.err
10202 } && test -s conftest.$ac_objext; then
10203 ac_cv_sys_large_files=1; break
10205 echo "$as_me: failed program was
:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212 ac_cv_sys_large_files=unknown
10216 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
10217 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10218 case $ac_cv_sys_large_files in #(
10221 cat >>confdefs.h <<_ACEOF
10222 #define _LARGE_FILES $ac_cv_sys_large_files
10231 # Checks for typedefs, structures, and compiler characteristics.
10232 { echo "$as_me:$LINENO: checking
for stdbool.h that conforms to C99
" >&5
10233 echo $ECHO_N "checking
for stdbool.h that conforms to C99...
$ECHO_C" >&6; }
10234 if test "${ac_cv_header_stdbool_h+set}" = set; then
10235 echo $ECHO_N "(cached
) $ECHO_C" >&6
10237 cat >conftest.$ac_ext <<_ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10244 #include <stdbool.h>
10246 "error
: bool is not defined
"
10249 "error
: false is not defined
"
10252 "error
: false is not
0"
10255 "error
: true is not defined
"
10258 "error
: true is not
1"
10260 #ifndef __bool_true_false_are_defined
10261 "error
: __bool_true_false_are_defined is not defined
"
10264 struct s { _Bool s: 1; _Bool t; } s;
10266 char a[true == 1 ? 1 : -1];
10267 char b[false == 0 ? 1 : -1];
10268 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10269 char d[(bool) 0.5 == true ? 1 : -1];
10271 char f[(_Bool) 0.0 == false ? 1 : -1];
10273 char h[sizeof (_Bool)];
10274 char i[sizeof s.t];
10275 enum { j = false, k = true, l = false * true, m = true * 256 };
10277 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10278 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10279 # if defined __xlc__ || defined __GNUC__
10280 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10281 reported by James Lemley on 2005-10-05; see
10282 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10283 This test is not quite right, since xlc is allowed to
10284 reject this program, as the initializer for xlcbug is
10285 not one of the forms that C requires support for.
10286 However, doing the test right would require a runtime
10287 test, and that would make cross-compilation harder.
10288 Let us hope that IBM fixes the xlc bug, and also adds
10289 support for this kind of constant expression. In the
10290 meantime, this test will reject xlc, which is OK, since
10291 our stdbool.h substitute should suffice. We also test
10292 this with GCC, where it should work, to detect more
10293 quickly whether someone messes up the test in the
10295 char digs[] = "0123456789";
10296 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10298 /* Catch a bug in an HP-UX C compiler. See
10299 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10300 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10311 /* Refer to every declared value, to avoid compiler optimizations. */
10312 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10313 + !m + !n + !o + !p + !q + !pq);
10319 rm -f conftest.$ac_objext
10320 if { (ac_try="$ac_compile"
10321 case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_compile") 2>conftest.er1
10328 grep -v '^ *+' conftest.er1 >conftest.err
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest.$ac_objext; then
10336 ac_cv_header_stdbool_h=yes
10338 echo "$as_me: failed program was
:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 ac_cv_header_stdbool_h=no
10344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10346 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdbool_h" >&5
10347 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10348 { echo "$as_me:$LINENO: checking
for _Bool
" >&5
10349 echo $ECHO_N "checking
for _Bool...
$ECHO_C" >&6; }
10350 if test "${ac_cv_type__Bool+set}" = set; then
10351 echo $ECHO_N "(cached
) $ECHO_C" >&6
10353 cat >conftest.$ac_ext <<_ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 $ac_includes_default
10360 typedef _Bool ac__type_new_;
10364 if ((ac__type_new_ *) 0)
10366 if (sizeof (ac__type_new_))
10372 rm -f conftest.$ac_objext
10373 if { (ac_try="$ac_compile"
10374 case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_compile") 2>conftest.er1
10381 grep -v '^ *+' conftest.er1 >conftest.err
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest.$ac_objext; then
10389 ac_cv_type__Bool=yes
10391 echo "$as_me: failed program was
:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10394 ac_cv_type__Bool=no
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10399 { echo "$as_me:$LINENO: result
: $ac_cv_type__Bool" >&5
10400 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10401 if test $ac_cv_type__Bool = yes; then
10403 cat >>confdefs.h <<_ACEOF
10404 #define HAVE__BOOL 1
10410 if test $ac_cv_header_stdbool_h = yes; then
10412 cat >>confdefs.h <<\_ACEOF
10413 #define HAVE_STDBOOL_H 1
10418 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
10419 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
10420 if test "${ac_cv_c_const+set}" = set; then
10421 echo $ECHO_N "(cached
) $ECHO_C" >&6
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10433 /* FIXME: Include the comments suggested by Paul. */
10434 #ifndef __cplusplus
10435 /* Ultrix mips cc rejects this. */
10436 typedef int charset[2];
10438 /* SunOS 4.1.1 cc rejects this. */
10439 char const *const *pcpcc;
10441 /* NEC SVR4.0.2 mips cc rejects this. */
10442 struct point {int x, y;};
10443 static struct point const zero = {0,0};
10444 /* AIX XL C 1.02.0.0 rejects this.
10445 It does not let you subtract one const X* pointer from another in
10446 an arm of an if-expression whose if-part is not a constant
10448 const char *g = "string
";
10449 pcpcc = &g + (g ? g-g : 0);
10450 /* HPUX 7.0 cc rejects these. */
10452 ppc = (char**) pcpcc;
10453 pcpcc = (char const *const *) ppc;
10454 { /* SCO 3.2v4 cc rejects this. */
10456 char const *s = 0 ? (char *) 0 : (char const *) 0;
10461 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10462 int x[] = {25, 17};
10463 const int *foo = &x[0];
10466 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10467 typedef const int *iptr;
10471 { /* AIX XL C 1.02.0.0 rejects this saying
10472 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10473 struct s { int j; const int *ap[3]; };
10474 struct s *b; b->j = 5;
10476 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10477 const int foo = 10;
10478 if (!foo) return 0;
10480 return !cs[0] && !zero.x;
10487 rm -f conftest.$ac_objext
10488 if { (ac_try="$ac_compile"
10489 case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_compile") 2>conftest.er1
10496 grep -v '^ *+' conftest.er1 >conftest.err
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10500 (exit $ac_status); } && {
10501 test -z "$ac_c_werror_flag" ||
10502 test ! -s conftest.err
10503 } && test -s conftest.$ac_objext; then
10506 echo "$as_me: failed program was
:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
10515 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10516 if test $ac_cv_c_const = no; then
10518 cat >>confdefs.h <<\_ACEOF
10524 { echo "$as_me:$LINENO: checking
for uid_t
in sys
/types.h
" >&5
10525 echo $ECHO_N "checking
for uid_t
in sys
/types.h...
$ECHO_C" >&6; }
10526 if test "${ac_cv_type_uid_t+set}" = set; then
10527 echo $ECHO_N "(cached
) $ECHO_C" >&6
10529 cat >conftest.$ac_ext <<_ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535 #include <sys/types.h>
10538 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10539 $EGREP "uid_t
" >/dev/null 2>&1; then
10540 ac_cv_type_uid_t=yes
10542 ac_cv_type_uid_t=no
10547 { echo "$as_me:$LINENO: result
: $ac_cv_type_uid_t" >&5
10548 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10549 if test $ac_cv_type_uid_t = no; then
10551 cat >>confdefs.h <<\_ACEOF
10556 cat >>confdefs.h <<\_ACEOF
10562 { echo "$as_me:$LINENO: checking
for inline
" >&5
10563 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
10564 if test "${ac_cv_c_inline+set}" = set; then
10565 echo $ECHO_N "(cached
) $ECHO_C" >&6
10568 for ac_kw in inline __inline__ __inline; do
10569 cat >conftest.$ac_ext <<_ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 #ifndef __cplusplus
10577 static $ac_kw foo_t static_foo () {return 0; }
10578 $ac_kw foo_t foo () {return 0; }
10582 rm -f conftest.$ac_objext
10583 if { (ac_try="$ac_compile"
10584 case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_compile") 2>conftest.er1
10591 grep -v '^ *+' conftest.er1 >conftest.err
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest.$ac_objext; then
10599 ac_cv_c_inline=$ac_kw
10601 echo "$as_me: failed program was
:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608 test "$ac_cv_c_inline" != no && break
10612 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
10613 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10616 case $ac_cv_c_inline in
10619 case $ac_cv_c_inline in
10621 *) ac_val=$ac_cv_c_inline;;
10623 cat >>confdefs.h <<_ACEOF
10624 #ifndef __cplusplus
10625 #define inline $ac_val
10631 { echo "$as_me:$LINENO: checking
for mode_t
" >&5
10632 echo $ECHO_N "checking
for mode_t...
$ECHO_C" >&6; }
10633 if test "${ac_cv_type_mode_t+set}" = set; then
10634 echo $ECHO_N "(cached
) $ECHO_C" >&6
10636 cat >conftest.$ac_ext <<_ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10642 $ac_includes_default
10643 typedef mode_t ac__type_new_;
10647 if ((ac__type_new_ *) 0)
10649 if (sizeof (ac__type_new_))
10655 rm -f conftest.$ac_objext
10656 if { (ac_try="$ac_compile"
10657 case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_compile") 2>conftest.er1
10664 grep -v '^ *+' conftest.er1 >conftest.err
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10668 (exit $ac_status); } && {
10669 test -z "$ac_c_werror_flag" ||
10670 test ! -s conftest.err
10671 } && test -s conftest.$ac_objext; then
10672 ac_cv_type_mode_t=yes
10674 echo "$as_me: failed program was
:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10677 ac_cv_type_mode_t=no
10680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682 { echo "$as_me:$LINENO: result
: $ac_cv_type_mode_t" >&5
10683 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10684 if test $ac_cv_type_mode_t = yes; then
10688 cat >>confdefs.h <<_ACEOF
10694 { echo "$as_me:$LINENO: checking
for off_t
" >&5
10695 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
10696 if test "${ac_cv_type_off_t+set}" = set; then
10697 echo $ECHO_N "(cached
) $ECHO_C" >&6
10699 cat >conftest.$ac_ext <<_ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705 $ac_includes_default
10706 typedef off_t ac__type_new_;
10710 if ((ac__type_new_ *) 0)
10712 if (sizeof (ac__type_new_))
10718 rm -f conftest.$ac_objext
10719 if { (ac_try="$ac_compile"
10720 case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_compile") 2>conftest.er1
10727 grep -v '^ *+' conftest.er1 >conftest.err
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10734 } && test -s conftest.$ac_objext; then
10735 ac_cv_type_off_t=yes
10737 echo "$as_me: failed program was
:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10740 ac_cv_type_off_t=no
10743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10745 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
10746 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10747 if test $ac_cv_type_off_t = yes; then
10751 cat >>confdefs.h <<_ACEOF
10752 #define off_t long int
10757 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
10758 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
10759 if test "${ac_cv_type_pid_t+set}" = set; then
10760 echo $ECHO_N "(cached
) $ECHO_C" >&6
10762 cat >conftest.$ac_ext <<_ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 $ac_includes_default
10769 typedef pid_t ac__type_new_;
10773 if ((ac__type_new_ *) 0)
10775 if (sizeof (ac__type_new_))
10781 rm -f conftest.$ac_objext
10782 if { (ac_try="$ac_compile"
10783 case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_compile") 2>conftest.er1
10790 grep -v '^ *+' conftest.er1 >conftest.err
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10794 (exit $ac_status); } && {
10795 test -z "$ac_c_werror_flag" ||
10796 test ! -s conftest.err
10797 } && test -s conftest.$ac_objext; then
10798 ac_cv_type_pid_t=yes
10800 echo "$as_me: failed program was
:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_cv_type_pid_t=no
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
10809 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10810 if test $ac_cv_type_pid_t = yes; then
10814 cat >>confdefs.h <<_ACEOF
10820 { echo "$as_me:$LINENO: checking
for size_t
" >&5
10821 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
10822 if test "${ac_cv_type_size_t+set}" = set; then
10823 echo $ECHO_N "(cached
) $ECHO_C" >&6
10825 cat >conftest.$ac_ext <<_ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 $ac_includes_default
10832 typedef size_t ac__type_new_;
10836 if ((ac__type_new_ *) 0)
10838 if (sizeof (ac__type_new_))
10844 rm -f conftest.$ac_objext
10845 if { (ac_try="$ac_compile"
10846 case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_compile") 2>conftest.er1
10853 grep -v '^ *+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10857 (exit $ac_status); } && {
10858 test -z "$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10860 } && test -s conftest.$ac_objext; then
10861 ac_cv_type_size_t=yes
10863 echo "$as_me: failed program was
:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_cv_type_size_t=no
10869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
10872 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10873 if test $ac_cv_type_size_t = yes; then
10877 cat >>confdefs.h <<_ACEOF
10878 #define size_t unsigned int
10883 { echo "$as_me:$LINENO: checking
for struct stat.st_blksize
" >&5
10884 echo $ECHO_N "checking
for struct stat.st_blksize...
$ECHO_C" >&6; }
10885 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10886 echo $ECHO_N "(cached
) $ECHO_C" >&6
10888 cat >conftest.$ac_ext <<_ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 $ac_includes_default
10898 static struct stat ac_aggr;
10899 if (ac_aggr.st_blksize)
10905 rm -f conftest.$ac_objext
10906 if { (ac_try="$ac_compile"
10907 case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_compile") 2>conftest.er1
10914 grep -v '^ *+' conftest.er1 >conftest.err
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10918 (exit $ac_status); } && {
10919 test -z "$ac_c_werror_flag" ||
10920 test ! -s conftest.err
10921 } && test -s conftest.$ac_objext; then
10922 ac_cv_member_struct_stat_st_blksize=yes
10924 echo "$as_me: failed program was
:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 cat >conftest.$ac_ext <<_ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933 $ac_includes_default
10937 static struct stat ac_aggr;
10938 if (sizeof ac_aggr.st_blksize)
10944 rm -f conftest.$ac_objext
10945 if { (ac_try="$ac_compile"
10946 case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_compile") 2>conftest.er1
10953 grep -v '^ *+' conftest.er1 >conftest.err
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10957 (exit $ac_status); } && {
10958 test -z "$ac_c_werror_flag" ||
10959 test ! -s conftest.err
10960 } && test -s conftest.$ac_objext; then
10961 ac_cv_member_struct_stat_st_blksize=yes
10963 echo "$as_me: failed program was
:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10966 ac_cv_member_struct_stat_st_blksize=no
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_stat_st_blksize" >&5
10975 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10976 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10978 cat >>confdefs.h <<_ACEOF
10979 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10985 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
10986 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
10987 if test "${ac_cv_header_time+set}" = set; then
10988 echo $ECHO_N "(cached
) $ECHO_C" >&6
10990 cat >conftest.$ac_ext <<_ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 #include <sys/types.h>
10997 #include <sys/time.h>
11003 if ((struct tm *) 0)
11009 rm -f conftest.$ac_objext
11010 if { (ac_try="$ac_compile"
11011 case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11015 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_compile") 2>conftest.er1
11018 grep -v '^ *+' conftest.er1 >conftest.err
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11022 (exit $ac_status); } && {
11023 test -z "$ac_c_werror_flag" ||
11024 test ! -s conftest.err
11025 } && test -s conftest.$ac_objext; then
11026 ac_cv_header_time=yes
11028 echo "$as_me: failed program was
:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11031 ac_cv_header_time=no
11034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11036 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
11037 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11038 if test $ac_cv_header_time = yes; then
11040 cat >>confdefs.h <<\_ACEOF
11041 #define TIME_WITH_SYS_TIME 1
11046 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
11047 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
11048 if test "${ac_cv_struct_tm+set}" = set; then
11049 echo $ECHO_N "(cached
) $ECHO_C" >&6
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <sys/types.h>
11064 int *p = &tm.tm_sec;
11070 rm -f conftest.$ac_objext
11071 if { (ac_try="$ac_compile"
11072 case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_compile") 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11083 (exit $ac_status); } && {
11084 test -z "$ac_c_werror_flag" ||
11085 test ! -s conftest.err
11086 } && test -s conftest.$ac_objext; then
11087 ac_cv_struct_tm=time.h
11089 echo "$as_me: failed program was
:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 ac_cv_struct_tm=sys/time.h
11095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
11098 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11099 if test $ac_cv_struct_tm = sys/time.h; then
11101 cat >>confdefs.h <<\_ACEOF
11102 #define TM_IN_SYS_TIME 1
11107 { echo "$as_me:$LINENO: checking
for working volatile
" >&5
11108 echo $ECHO_N "checking
for working volatile...
$ECHO_C" >&6; }
11109 if test "${ac_cv_c_volatile+set}" = set; then
11110 echo $ECHO_N "(cached
) $ECHO_C" >&6
11112 cat >conftest.$ac_ext <<_ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11124 int * volatile y = (int *) 0;
11130 rm -f conftest.$ac_objext
11131 if { (ac_try="$ac_compile"
11132 case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_compile") 2>conftest.er1
11139 grep -v '^ *+' conftest.er1 >conftest.err
11141 cat conftest.err >&5
11142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11143 (exit $ac_status); } && {
11144 test -z "$ac_c_werror_flag" ||
11145 test ! -s conftest.err
11146 } && test -s conftest.$ac_objext; then
11147 ac_cv_c_volatile=yes
11149 echo "$as_me: failed program was
:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11152 ac_cv_c_volatile=no
11155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11157 { echo "$as_me:$LINENO: result
: $ac_cv_c_volatile" >&5
11158 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11159 if test $ac_cv_c_volatile = no; then
11161 cat >>confdefs.h <<\_ACEOF
11167 { echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
11168 echo $ECHO_N "checking
for ptrdiff_t...
$ECHO_C" >&6; }
11169 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11170 echo $ECHO_N "(cached
) $ECHO_C" >&6
11172 cat >conftest.$ac_ext <<_ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 $ac_includes_default
11179 typedef ptrdiff_t ac__type_new_;
11183 if ((ac__type_new_ *) 0)
11185 if (sizeof (ac__type_new_))
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11200 grep -v '^ *+' conftest.er1 >conftest.err
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest.$ac_objext; then
11208 ac_cv_type_ptrdiff_t=yes
11210 echo "$as_me: failed program was
:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11213 ac_cv_type_ptrdiff_t=no
11216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218 { echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
11219 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11220 if test $ac_cv_type_ptrdiff_t = yes; then
11222 cat >>confdefs.h <<_ACEOF
11223 #define HAVE_PTRDIFF_T 1
11230 # Checks for library functions.
11232 for ac_header in unistd.h
11234 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11235 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11236 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11237 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11239 echo $ECHO_N "(cached
) $ECHO_C" >&6
11241 ac_res=`eval echo '${'$as_ac_Header'}'`
11242 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11243 echo "${ECHO_T}$ac_res" >&6; }
11245 # Is the header compilable?
11246 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11247 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11248 cat >conftest.$ac_ext <<_ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 $ac_includes_default
11255 #include <$ac_header>
11257 rm -f conftest.$ac_objext
11258 if { (ac_try="$ac_compile"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_compile") 2>conftest.er1
11266 grep -v '^ *+' conftest.er1 >conftest.err
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11270 (exit $ac_status); } && {
11271 test -z "$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11273 } && test -s conftest.$ac_objext; then
11274 ac_header_compiler=yes
11276 echo "$as_me: failed program was
:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11279 ac_header_compiler=no
11282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11284 echo "${ECHO_T}$ac_header_compiler" >&6; }
11286 # Is the header present?
11287 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11288 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11289 cat >conftest.$ac_ext <<_ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 #include <$ac_header>
11297 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11298 case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11305 grep -v '^ *+' conftest.er1 >conftest.err
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11309 (exit $ac_status); } >/dev/null && {
11310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11313 ac_header_preproc=yes
11315 echo "$as_me: failed program was
:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 ac_header_preproc=no
11321 rm -f conftest.err conftest.$ac_ext
11322 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11323 echo "${ECHO_T}$ac_header_preproc" >&6; }
11325 # So? What about this header?
11326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11328 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11329 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11330 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11332 ac_header_preproc=yes
11335 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11336 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11337 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11338 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11339 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11340 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11341 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11342 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11343 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11345 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11346 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11348 ## ------------------------------- ##
11349 ## Report this to www.asterisk.org ##
11350 ## ------------------------------- ##
11352 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11355 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11356 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11357 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11358 echo $ECHO_N "(cached
) $ECHO_C" >&6
11360 eval "$as_ac_Header=\
$ac_header_preproc"
11362 ac_res=`eval echo '${'$as_ac_Header'}'`
11363 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11364 echo "${ECHO_T}$ac_res" >&6; }
11367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11368 cat >>confdefs.h <<_ACEOF
11369 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11376 { echo "$as_me:$LINENO: checking
for working chown
" >&5
11377 echo $ECHO_N "checking
for working chown...
$ECHO_C" >&6; }
11378 if test "${ac_cv_func_chown_works+set}" = set; then
11379 echo $ECHO_N "(cached
) $ECHO_C" >&6
11381 if test "$cross_compiling" = yes; then
11382 ac_cv_func_chown_works=no
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11396 char *f = "conftest.chown
";
11397 struct stat before, after;
11399 if (creat (f, 0600) < 0)
11401 if (stat (f, &before) < 0)
11403 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11405 if (stat (f, &after) < 0)
11407 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11413 rm -f conftest$ac_exeext
11414 if { (ac_try="$ac_link"
11415 case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_link") 2>&5
11422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11424 { (case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_try") 2>&5
11431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11432 (exit $ac_status); }; }; then
11433 ac_cv_func_chown_works=yes
11435 echo "$as_me: program exited with status
$ac_status" >&5
11436 echo "$as_me: failed program was
:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ( exit $ac_status )
11440 ac_cv_func_chown_works=no
11442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11446 rm -f conftest.chown
11449 { echo "$as_me:$LINENO: result
: $ac_cv_func_chown_works" >&5
11450 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11451 if test $ac_cv_func_chown_works = yes; then
11453 cat >>confdefs.h <<\_ACEOF
11454 #define HAVE_CHOWN 1
11459 { echo "$as_me:$LINENO: checking whether closedir returns void
" >&5
11460 echo $ECHO_N "checking whether closedir returns void...
$ECHO_C" >&6; }
11461 if test "${ac_cv_func_closedir_void+set}" = set; then
11462 echo $ECHO_N "(cached
) $ECHO_C" >&6
11464 if test "$cross_compiling" = yes; then
11465 ac_cv_func_closedir_void=yes
11467 cat >conftest.$ac_ext <<_ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 $ac_includes_default
11474 #include <$ac_header_dirent>
11475 #ifndef __cplusplus
11482 return closedir (opendir (".
")) != 0;
11487 rm -f conftest$ac_exeext
11488 if { (ac_try="$ac_link"
11489 case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_link") 2>&5
11496 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11498 { (case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_try") 2>&5
11505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 ac_cv_func_closedir_void=no
11509 echo "$as_me: program exited with status
$ac_status" >&5
11510 echo "$as_me: failed program was
:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ( exit $ac_status )
11514 ac_cv_func_closedir_void=yes
11516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result
: $ac_cv_func_closedir_void" >&5
11522 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11523 if test $ac_cv_func_closedir_void = yes; then
11525 cat >>confdefs.h <<\_ACEOF
11526 #define CLOSEDIR_VOID 1
11531 { echo "$as_me:$LINENO: checking
for error_at_line
" >&5
11532 echo $ECHO_N "checking
for error_at_line...
$ECHO_C" >&6; }
11533 if test "${ac_cv_lib_error_at_line+set}" = set; then
11534 echo $ECHO_N "(cached
) $ECHO_C" >&6
11536 cat >conftest.$ac_ext <<_ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11546 error_at_line (0, 0, "", 0, "an error occurred
");
11551 rm -f conftest.$ac_objext conftest$ac_exeext
11552 if { (ac_try="$ac_link"
11553 case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11557 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11558 (eval "$ac_link") 2>conftest.er1
11560 grep -v '^ *+' conftest.er1 >conftest.err
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11564 (exit $ac_status); } && {
11565 test -z "$ac_c_werror_flag" ||
11566 test ! -s conftest.err
11567 } && test -s conftest$ac_exeext &&
11568 $as_test_x conftest$ac_exeext; then
11569 ac_cv_lib_error_at_line=yes
11571 echo "$as_me: failed program was
:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 ac_cv_lib_error_at_line=no
11577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11578 conftest$ac_exeext conftest.$ac_ext
11580 { echo "$as_me:$LINENO: result
: $ac_cv_lib_error_at_line" >&5
11581 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11582 if test $ac_cv_lib_error_at_line = no; then
11583 case " $LIBOBJS " in
11584 *" error.
$ac_objext "* ) ;;
11585 *) LIBOBJS="$LIBOBJS error.
$ac_objext"
11592 for ac_header in vfork.h
11594 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11595 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11596 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11597 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11598 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11599 echo $ECHO_N "(cached
) $ECHO_C" >&6
11601 ac_res=`eval echo '${'$as_ac_Header'}'`
11602 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11603 echo "${ECHO_T}$ac_res" >&6; }
11605 # Is the header compilable?
11606 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11607 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11608 cat >conftest.$ac_ext <<_ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 $ac_includes_default
11615 #include <$ac_header>
11617 rm -f conftest.$ac_objext
11618 if { (ac_try="$ac_compile"
11619 case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_compile") 2>conftest.er1
11626 grep -v '^ *+' conftest.er1 >conftest.err
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11630 (exit $ac_status); } && {
11631 test -z "$ac_c_werror_flag" ||
11632 test ! -s conftest.err
11633 } && test -s conftest.$ac_objext; then
11634 ac_header_compiler=yes
11636 echo "$as_me: failed program was
:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11639 ac_header_compiler=no
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11644 echo "${ECHO_T}$ac_header_compiler" >&6; }
11646 # Is the header present?
11647 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11648 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11649 cat >conftest.$ac_ext <<_ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 #include <$ac_header>
11657 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11658 case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11665 grep -v '^ *+' conftest.er1 >conftest.err
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11669 (exit $ac_status); } >/dev/null && {
11670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11671 test ! -s conftest.err
11673 ac_header_preproc=yes
11675 echo "$as_me: failed program was
:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 ac_header_preproc=no
11681 rm -f conftest.err conftest.$ac_ext
11682 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11683 echo "${ECHO_T}$ac_header_preproc" >&6; }
11685 # So? What about this header?
11686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11688 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11689 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11690 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11692 ac_header_preproc=yes
11695 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11696 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11697 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11698 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11699 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11700 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11701 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11702 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11703 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11705 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11706 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11708 ## ------------------------------- ##
11709 ## Report this to www.asterisk.org ##
11710 ## ------------------------------- ##
11712 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11715 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11716 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11717 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11718 echo $ECHO_N "(cached
) $ECHO_C" >&6
11720 eval "$as_ac_Header=\
$ac_header_preproc"
11722 ac_res=`eval echo '${'$as_ac_Header'}'`
11723 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11738 for ac_func in fork vfork
11740 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11741 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11742 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11743 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11744 echo $ECHO_N "(cached
) $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754 #define $ac_func innocuous_$ac_func
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11762 # include <limits.h>
11764 # include <assert.h>
11769 /* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11776 /* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
11779 #if defined __stub_$ac_func || defined __stub___$ac_func
11786 return $ac_func ();
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
11800 grep -v '^ *+' conftest.er1 >conftest.err
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11804 (exit $ac_status); } && {
11805 test -z "$ac_c_werror_flag" ||
11806 test ! -s conftest.err
11807 } && test -s conftest$ac_exeext &&
11808 $as_test_x conftest$ac_exeext; then
11809 eval "$as_ac_var=yes"
11811 echo "$as_me: failed program was
:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 eval "$as_ac_var=no
"
11817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11818 conftest$ac_exeext conftest.$ac_ext
11820 ac_res=`eval echo '${'$as_ac_var'}'`
11821 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11822 echo "${ECHO_T}$ac_res" >&6; }
11823 if test `eval echo '${'$as_ac_var'}'` = yes; then
11824 cat >>confdefs.h <<_ACEOF
11825 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11831 if test "x
$ac_cv_func_fork" = xyes; then
11832 { echo "$as_me:$LINENO: checking
for working fork
" >&5
11833 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
11834 if test "${ac_cv_func_fork_works+set}" = set; then
11835 echo $ECHO_N "(cached
) $ECHO_C" >&6
11837 if test "$cross_compiling" = yes; then
11838 ac_cv_func_fork_works=cross
11840 cat >conftest.$ac_ext <<_ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11846 $ac_includes_default
11851 /* By Ruediger Kuhlmann. */
11852 return fork () < 0;
11858 rm -f conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_link") 2>&5
11867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11869 { (case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_try") 2>&5
11876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 ac_cv_func_fork_works=yes
11880 echo "$as_me: program exited with status
$ac_status" >&5
11881 echo "$as_me: failed program was
:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 ( exit $ac_status )
11885 ac_cv_func_fork_works=no
11887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11892 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
11893 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11896 ac_cv_func_fork_works=$ac_cv_func_fork
11898 if test "x
$ac_cv_func_fork_works" = xcross; then
11900 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11901 # Override, as these systems have only a dummy fork() stub
11902 ac_cv_func_fork_works=no
11905 ac_cv_func_fork_works=yes
11908 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
11909 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
11911 ac_cv_func_vfork_works=$ac_cv_func_vfork
11912 if test "x
$ac_cv_func_vfork" = xyes; then
11913 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
11914 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
11915 if test "${ac_cv_func_vfork_works+set}" = set; then
11916 echo $ECHO_N "(cached
) $ECHO_C" >&6
11918 if test "$cross_compiling" = yes; then
11919 ac_cv_func_vfork_works=cross
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 /* Thanks to Paul Eggert for this test. */
11928 $ac_includes_default
11929 #include <sys/wait.h>
11930 #ifdef HAVE_VFORK_H
11931 # include <vfork.h>
11933 /* On some sparc systems, changes by the child to local and incoming
11934 argument registers are propagated back to the parent. The compiler
11935 is told about this with #include <vfork.h>, but some compilers
11936 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11937 static variable whose address is put into a register that is
11938 clobbered by the vfork. */
11941 sparc_address_test (int arg)
11943 sparc_address_test (arg) int arg;
11946 static pid_t child;
11964 pid_t parent = getpid ();
11967 sparc_address_test (0);
11972 /* Here is another test for sparc vfork register problems. This
11973 test uses lots of local variables, at least as many local
11974 variables as main has allocated so far including compiler
11975 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11976 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11977 reuse the register of parent for one of the local variables,
11978 since it will think that parent can't possibly be used any more
11979 in this routine. Assigning to the local variable will thus
11980 munge parent in the parent process. */
11982 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11983 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11984 /* Convince the compiler that p..p7 are live; otherwise, it might
11985 use the same hardware register for all 8 local variables. */
11986 if (p != p1 || p != p2 || p != p3 || p != p4
11987 || p != p5 || p != p6 || p != p7)
11990 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11991 from child file descriptors. If the child closes a descriptor
11992 before it execs or exits, this munges the parent's descriptor
11993 as well. Test for this by closing stdout in the child. */
11994 _exit(close(fileno(stdout)) != 0);
11999 while (wait(&status) != child)
12002 /* Was there some problem with vforking? */
12005 /* Did the child fail? (This shouldn't happen.) */
12008 /* Did the vfork/compiler bug occur? */
12009 || parent != getpid()
12011 /* Did the file descriptor bug occur? */
12012 || fstat(fileno(stdout), &st) != 0
12017 rm -f conftest$ac_exeext
12018 if { (ac_try="$ac_link"
12019 case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_link") 2>&5
12026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12036 (exit $ac_status); }; }; then
12037 ac_cv_func_vfork_works=yes
12039 echo "$as_me: program exited with status
$ac_status" >&5
12040 echo "$as_me: failed program was
:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12043 ( exit $ac_status )
12044 ac_cv_func_vfork_works=no
12046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12051 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
12052 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12055 if test "x
$ac_cv_func_fork_works" = xcross; then
12056 ac_cv_func_vfork_works=$ac_cv_func_vfork
12057 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
12058 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
12061 if test "x
$ac_cv_func_vfork_works" = xyes; then
12063 cat >>confdefs.h <<\_ACEOF
12064 #define HAVE_WORKING_VFORK 1
12069 cat >>confdefs.h <<\_ACEOF
12074 if test "x
$ac_cv_func_fork_works" = xyes; then
12076 cat >>confdefs.h <<\_ACEOF
12077 #define HAVE_WORKING_FORK 1
12082 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
12083 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
12084 if test "${ac_cv_sys_largefile_source+set}" = set; then
12085 echo $ECHO_N "(cached
) $ECHO_C" >&6
12088 cat >conftest.$ac_ext <<_ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <sys/types.h> /* for off_t */
12099 int (*fp) (FILE *, off_t, int) = fseeko;
12100 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (ac_try="$ac_link"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_link") 2>conftest.er1
12114 grep -v '^ *+' conftest.er1 >conftest.err
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12118 (exit $ac_status); } && {
12119 test -z "$ac_c_werror_flag" ||
12120 test ! -s conftest.err
12121 } && test -s conftest$ac_exeext &&
12122 $as_test_x conftest$ac_exeext; then
12123 ac_cv_sys_largefile_source=no; break
12125 echo "$as_me: failed program was
:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12132 conftest$ac_exeext conftest.$ac_ext
12133 cat >conftest.$ac_ext <<_ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12139 #define _LARGEFILE_SOURCE 1
12140 #include <sys/types.h> /* for off_t */
12145 int (*fp) (FILE *, off_t, int) = fseeko;
12146 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (ac_try="$ac_link"
12153 case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_link") 2>conftest.er1
12160 grep -v '^ *+' conftest.er1 >conftest.err
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12164 (exit $ac_status); } && {
12165 test -z "$ac_c_werror_flag" ||
12166 test ! -s conftest.err
12167 } && test -s conftest$ac_exeext &&
12168 $as_test_x conftest$ac_exeext; then
12169 ac_cv_sys_largefile_source=1; break
12171 echo "$as_me: failed program was
:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12178 conftest$ac_exeext conftest.$ac_ext
12179 ac_cv_sys_largefile_source=unknown
12183 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
12184 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12185 case $ac_cv_sys_largefile_source in #(
12188 cat >>confdefs.h <<_ACEOF
12189 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12195 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12196 # in glibc 2.1.3, but that breaks too many other things.
12197 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12198 if test $ac_cv_sys_largefile_source != unknown; then
12200 cat >>confdefs.h <<\_ACEOF
12201 #define HAVE_FSEEKO 1
12206 if test $ac_cv_c_compiler_gnu = yes; then
12207 { echo "$as_me:$LINENO: checking whether
$CC needs
-traditional" >&5
12208 echo $ECHO_N "checking whether
$CC needs
-traditional...
$ECHO_C" >&6; }
12209 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12210 echo $ECHO_N "(cached
) $ECHO_C" >&6
12212 ac_pattern="Autoconf.
*'x'"
12213 cat >conftest.$ac_ext <<_ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12222 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12223 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12224 ac_cv_prog_gcc_traditional=yes
12226 ac_cv_prog_gcc_traditional=no
12231 if test $ac_cv_prog_gcc_traditional = no; then
12232 cat >conftest.$ac_ext <<_ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238 #include <termio.h>
12241 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12242 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12243 ac_cv_prog_gcc_traditional=yes
12249 { echo "$as_me:$LINENO: result
: $ac_cv_prog_gcc_traditional" >&5
12250 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12251 if test $ac_cv_prog_gcc_traditional = yes; then
12252 CC="$CC -traditional"
12256 # XXX: these are commented out until we determine whether it matters if our malloc()
12257 # acts exactly like glibc's or not
12260 { echo "$as_me:$LINENO: checking
for working memcmp
" >&5
12261 echo $ECHO_N "checking
for working memcmp...
$ECHO_C" >&6; }
12262 if test "${ac_cv_func_memcmp_working+set}" = set; then
12263 echo $ECHO_N "(cached
) $ECHO_C" >&6
12265 if test "$cross_compiling" = yes; then
12266 ac_cv_func_memcmp_working=no
12268 cat >conftest.$ac_ext <<_ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12274 $ac_includes_default
12279 /* Some versions of memcmp are not 8-bit clean. */
12280 char c0 = '\100', c1 = '\200', c2 = '\201';
12281 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12284 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12285 or more and with at least one buffer not starting on a 4-byte boundary.
12286 William Lewis provided this test program. */
12291 for (i = 0; i < 4; i++)
12295 strcpy (a, "--------01111111");
12296 strcpy (b, "--------10000000");
12297 if (memcmp (a, b, 16) >= 0)
12307 rm -f conftest$ac_exeext
12308 if { (ac_try="$ac_link"
12309 case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_link") 2>&5
12316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12318 { (case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_try") 2>&5
12325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 ac_cv_func_memcmp_working=yes
12329 echo "$as_me: program exited with status
$ac_status" >&5
12330 echo "$as_me: failed program was
:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12333 ( exit $ac_status )
12334 ac_cv_func_memcmp_working=no
12336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12341 { echo "$as_me:$LINENO: result
: $ac_cv_func_memcmp_working" >&5
12342 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12343 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12344 *" memcmp.
$ac_objext "* ) ;;
12345 *) LIBOBJS="$LIBOBJS memcmp.
$ac_objext"
12352 for ac_header in stdlib.h unistd.h
12354 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12355 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12356 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12357 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12358 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12359 echo $ECHO_N "(cached
) $ECHO_C" >&6
12361 ac_res=`eval echo '${'$as_ac_Header'}'`
12362 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12363 echo "${ECHO_T}$ac_res" >&6; }
12365 # Is the header compilable?
12366 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12367 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12368 cat >conftest.$ac_ext <<_ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 $ac_includes_default
12375 #include <$ac_header>
12377 rm -f conftest.$ac_objext
12378 if { (ac_try="$ac_compile"
12379 case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_compile") 2>conftest.er1
12386 grep -v '^ *+' conftest.er1 >conftest.err
12388 cat conftest.err >&5
12389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12390 (exit $ac_status); } && {
12391 test -z "$ac_c_werror_flag" ||
12392 test ! -s conftest.err
12393 } && test -s conftest.$ac_objext; then
12394 ac_header_compiler=yes
12396 echo "$as_me: failed program was
:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 ac_header_compiler=no
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12404 echo "${ECHO_T}$ac_header_compiler" >&6; }
12406 # Is the header present?
12407 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12408 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12409 cat >conftest.$ac_ext <<_ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 #include <$ac_header>
12417 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12425 grep -v '^ *+' conftest.er1 >conftest.err
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12429 (exit $ac_status); } >/dev/null && {
12430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12431 test ! -s conftest.err
12433 ac_header_preproc=yes
12435 echo "$as_me: failed program was
:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12438 ac_header_preproc=no
12441 rm -f conftest.err conftest.$ac_ext
12442 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12443 echo "${ECHO_T}$ac_header_preproc" >&6; }
12445 # So? What about this header?
12446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12448 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12449 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12450 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12452 ac_header_preproc=yes
12455 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12456 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12457 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12458 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12459 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12460 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12461 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12462 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12463 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12465 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12466 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12468 ## ------------------------------- ##
12469 ## Report this to www.asterisk.org ##
12470 ## ------------------------------- ##
12472 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12475 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12476 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12477 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12478 echo $ECHO_N "(cached
) $ECHO_C" >&6
12480 eval "$as_ac_Header=\
$ac_header_preproc"
12482 ac_res=`eval echo '${'$as_ac_Header'}'`
12483 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12484 echo "${ECHO_T}$ac_res" >&6; }
12487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12488 cat >>confdefs.h <<_ACEOF
12489 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12497 for ac_func in getpagesize
12499 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12500 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12501 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12502 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12503 echo $ECHO_N "(cached
) $ECHO_C" >&6
12505 cat >conftest.$ac_ext <<_ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12513 #define $ac_func innocuous_$ac_func
12515 /* System header to define __stub macros and hopefully few prototypes,
12516 which can conflict with char $ac_func (); below.
12517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12518 <limits.h> exists even on freestanding compilers. */
12521 # include <limits.h>
12523 # include <assert.h>
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12535 /* The GNU C library defines this for functions which it implements
12536 to always fail with ENOSYS. Some functions are actually named
12537 something starting with __ and the normal name is an alias. */
12538 #if defined __stub_$ac_func || defined __stub___$ac_func
12545 return $ac_func ();
12550 rm -f conftest.$ac_objext conftest$ac_exeext
12551 if { (ac_try="$ac_link"
12552 case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_link") 2>conftest.er1
12559 grep -v '^ *+' conftest.er1 >conftest.err
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12563 (exit $ac_status); } && {
12564 test -z "$ac_c_werror_flag" ||
12565 test ! -s conftest.err
12566 } && test -s conftest$ac_exeext &&
12567 $as_test_x conftest$ac_exeext; then
12568 eval "$as_ac_var=yes"
12570 echo "$as_me: failed program was
:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12573 eval "$as_ac_var=no
"
12576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12577 conftest$ac_exeext conftest.$ac_ext
12579 ac_res=`eval echo '${'$as_ac_var'}'`
12580 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12581 echo "${ECHO_T}$ac_res" >&6; }
12582 if test `eval echo '${'$as_ac_var'}'` = yes; then
12583 cat >>confdefs.h <<_ACEOF
12584 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12590 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
12591 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
12592 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12593 echo $ECHO_N "(cached
) $ECHO_C" >&6
12595 if test "$cross_compiling" = yes; then
12596 ac_cv_func_mmap_fixed_mapped=no
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 $ac_includes_default
12605 /* malloc might have been renamed as rpl_malloc. */
12608 /* Thanks to Mike Haertel and Jim Avera for this test.
12609 Here is a matrix of mmap possibilities:
12610 mmap private not fixed
12611 mmap private fixed at somewhere currently unmapped
12612 mmap private fixed at somewhere already mapped
12613 mmap shared not fixed
12614 mmap shared fixed at somewhere currently unmapped
12615 mmap shared fixed at somewhere already mapped
12616 For private mappings, we should verify that changes cannot be read()
12617 back from the file, nor mmap's back from the file at a different
12618 address. (There have been systems where private was not correctly
12619 implemented like the infamous i386 svr4.0, and systems where the
12620 VM page cache was not coherent with the file system buffer cache
12621 like early versions of FreeBSD and possibly contemporary NetBSD.)
12622 For shared mappings, we should conversely verify that changes get
12623 propagated back to all the places they're supposed to be.
12625 Grep wants private fixed already mapped.
12626 The main things grep needs to know about mmap are:
12627 * does it exist and is it safe to write into the mmap'd area
12628 * how to use it (BSD variants) */
12631 #include <sys/mman.h>
12633 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12637 /* This mess was copied from the GNU getpagesize.h. */
12638 #ifndef HAVE_GETPAGESIZE
12639 /* Assume that all systems that can run configure have sys/param.h. */
12640 # ifndef HAVE_SYS_PARAM_H
12641 # define HAVE_SYS_PARAM_H 1
12644 # ifdef _SC_PAGESIZE
12645 # define getpagesize() sysconf(_SC_PAGESIZE)
12646 # else /* no _SC_PAGESIZE */
12647 # ifdef HAVE_SYS_PARAM_H
12648 # include <sys/param.h>
12649 # ifdef EXEC_PAGESIZE
12650 # define getpagesize() EXEC_PAGESIZE
12651 # else /* no EXEC_PAGESIZE */
12653 # define getpagesize() NBPG * CLSIZE
12656 # endif /* no CLSIZE */
12657 # else /* no NBPG */
12659 # define getpagesize() NBPC
12660 # else /* no NBPC */
12662 # define getpagesize() PAGESIZE
12663 # endif /* PAGESIZE */
12664 # endif /* no NBPC */
12665 # endif /* no NBPG */
12666 # endif /* no EXEC_PAGESIZE */
12667 # else /* no HAVE_SYS_PARAM_H */
12668 # define getpagesize() 8192 /* punt totally */
12669 # endif /* no HAVE_SYS_PARAM_H */
12670 # endif /* no _SC_PAGESIZE */
12672 #endif /* no HAVE_GETPAGESIZE */
12677 char *data, *data2, *data3;
12681 pagesize = getpagesize ();
12683 /* First, make a file with some known garbage in it. */
12684 data = (char *) malloc (pagesize);
12687 for (i = 0; i < pagesize; ++i)
12688 *(data + i) = rand ();
12690 fd = creat ("conftest.mmap
", 0600);
12693 if (write (fd, data, pagesize) != pagesize)
12697 /* Next, try to mmap the file at a fixed address which already has
12698 something else allocated at it. If we can, also make sure that
12699 we see the same garbage. */
12700 fd = open ("conftest.mmap
", O_RDWR);
12703 data2 = (char *) malloc (2 * pagesize);
12706 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12707 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12708 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12710 for (i = 0; i < pagesize; ++i)
12711 if (*(data + i) != *(data2 + i))
12714 /* Finally, make sure that changes to the mapped area do not
12715 percolate back to the file as seen by read(). (This is a bug on
12716 some variants of i386 svr4.0.) */
12717 for (i = 0; i < pagesize; ++i)
12718 *(data2 + i) = *(data2 + i) + 1;
12719 data3 = (char *) malloc (pagesize);
12722 if (read (fd, data3, pagesize) != pagesize)
12724 for (i = 0; i < pagesize; ++i)
12725 if (*(data + i) != *(data3 + i))
12731 rm -f conftest$ac_exeext
12732 if { (ac_try="$ac_link"
12733 case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_link") 2>&5
12740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12742 { (case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12746 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_try") 2>&5
12749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_cv_func_mmap_fixed_mapped=yes
12753 echo "$as_me: program exited with status
$ac_status" >&5
12754 echo "$as_me: failed program was
:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 ( exit $ac_status )
12758 ac_cv_func_mmap_fixed_mapped=no
12760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12765 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
12766 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12767 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12769 cat >>confdefs.h <<\_ACEOF
12770 #define HAVE_MMAP 1
12774 rm -f conftest.mmap
12778 for ac_header in sys/select.h sys/socket.h
12780 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12781 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12782 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12783 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12784 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12785 echo $ECHO_N "(cached
) $ECHO_C" >&6
12787 ac_res=`eval echo '${'$as_ac_Header'}'`
12788 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12789 echo "${ECHO_T}$ac_res" >&6; }
12791 # Is the header compilable?
12792 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12793 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12794 cat >conftest.$ac_ext <<_ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 $ac_includes_default
12801 #include <$ac_header>
12803 rm -f conftest.$ac_objext
12804 if { (ac_try="$ac_compile"
12805 case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_compile") 2>conftest.er1
12812 grep -v '^ *+' conftest.er1 >conftest.err
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest.$ac_objext; then
12820 ac_header_compiler=yes
12822 echo "$as_me: failed program was
:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12825 ac_header_compiler=no
12828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12829 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12830 echo "${ECHO_T}$ac_header_compiler" >&6; }
12832 # Is the header present?
12833 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12834 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12835 cat >conftest.$ac_ext <<_ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 #include <$ac_header>
12843 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12851 grep -v '^ *+' conftest.er1 >conftest.err
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12855 (exit $ac_status); } >/dev/null && {
12856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12859 ac_header_preproc=yes
12861 echo "$as_me: failed program was
:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_header_preproc=no
12867 rm -f conftest.err conftest.$ac_ext
12868 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12869 echo "${ECHO_T}$ac_header_preproc" >&6; }
12871 # So? What about this header?
12872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12874 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12875 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12876 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12878 ac_header_preproc=yes
12881 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12882 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12883 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12884 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12885 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12886 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12887 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12888 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12889 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12891 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12892 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12894 ## ------------------------------- ##
12895 ## Report this to www.asterisk.org ##
12896 ## ------------------------------- ##
12898 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12901 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12902 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12903 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12904 echo $ECHO_N "(cached
) $ECHO_C" >&6
12906 eval "$as_ac_Header=\
$ac_header_preproc"
12908 ac_res=`eval echo '${'$as_ac_Header'}'`
12909 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12910 echo "${ECHO_T}$ac_res" >&6; }
12913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12914 cat >>confdefs.h <<_ACEOF
12915 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12922 { echo "$as_me:$LINENO: checking types of arguments
for select" >&5
12923 echo $ECHO_N "checking types of arguments
for select...
$ECHO_C" >&6; }
12924 if test "${ac_cv_func_select_args+set}" = set; then
12925 echo $ECHO_N "(cached
) $ECHO_C" >&6
12927 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12928 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12929 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 $ac_includes_default
12937 #ifdef HAVE_SYS_SELECT_H
12938 # include <sys/select.h>
12940 #ifdef HAVE_SYS_SOCKET_H
12941 # include <sys/socket.h>
12947 extern int select ($ac_arg1,
12948 $ac_arg234, $ac_arg234, $ac_arg234,
12954 rm -f conftest.$ac_objext
12955 if { (ac_try="$ac_compile"
12956 case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_compile") 2>conftest.er1
12963 grep -v '^ *+' conftest.er1 >conftest.err
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12967 (exit $ac_status); } && {
12968 test -z "$ac_c_werror_flag" ||
12969 test ! -s conftest.err
12970 } && test -s conftest.$ac_objext; then
12971 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12973 echo "$as_me: failed program was
:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983 # Provide a safe default value.
12984 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12987 { echo "$as_me:$LINENO: result
: $ac_cv_func_select_args" >&5
12988 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12989 ac_save_IFS=$IFS; IFS=','
12990 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12994 cat >>confdefs.h <<_ACEOF
12995 #define SELECT_TYPE_ARG1 $1
12999 cat >>confdefs.h <<_ACEOF
13000 #define SELECT_TYPE_ARG234 ($2)
13004 cat >>confdefs.h <<_ACEOF
13005 #define SELECT_TYPE_ARG5 ($3)
13010 { echo "$as_me:$LINENO: checking
for function prototypes
" >&5
13011 echo $ECHO_N "checking
for function prototypes...
$ECHO_C" >&6; }
13012 if test "$ac_cv_prog_cc_c89" != no; then
13013 { echo "$as_me:$LINENO: result
: yes" >&5
13014 echo "${ECHO_T}yes" >&6; }
13016 cat >>confdefs.h <<\_ACEOF
13017 #define PROTOTYPES 1
13021 cat >>confdefs.h <<\_ACEOF
13022 #define __PROTOTYPES 1
13026 { echo "$as_me:$LINENO: result
: no
" >&5
13027 echo "${ECHO_T}no
" >&6; }
13030 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed
" >&5
13031 echo $ECHO_N "checking whether setvbuf arguments are reversed...
$ECHO_C" >&6; }
13032 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13033 echo $ECHO_N "(cached
) $ECHO_C" >&6
13035 ac_cv_func_setvbuf_reversed=no
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13044 int (setvbuf) (FILE *, int, char *, size_t);
13049 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13054 rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (ac_try="$ac_link"
13056 case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_link") 2>conftest.er1
13063 grep -v '^ *+' conftest.er1 >conftest.err
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13067 (exit $ac_status); } && {
13068 test -z "$ac_c_werror_flag" ||
13069 test ! -s conftest.err
13070 } && test -s conftest$ac_exeext &&
13071 $as_test_x conftest$ac_exeext; then
13072 cat >conftest.$ac_ext <<_ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13080 int (setvbuf) (FILE *, int, char *, size_t);
13085 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13090 rm -f conftest.$ac_objext conftest$ac_exeext
13091 if { (ac_try="$ac_link"
13092 case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_link") 2>conftest.er1
13099 grep -v '^ *+' conftest.er1 >conftest.err
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13103 (exit $ac_status); } && {
13104 test -z "$ac_c_werror_flag" ||
13105 test ! -s conftest.err
13106 } && test -s conftest$ac_exeext &&
13107 $as_test_x conftest$ac_exeext; then
13108 # It compiles and links either way, so it must not be declared
13109 # with a prototype and most likely this is a K&R C compiler.
13111 if test "$cross_compiling" = yes; then
13112 : # Assume setvbuf is not reversed when cross-compiling.
13114 cat >conftest.$ac_ext <<_ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h. */
13120 $ac_includes_default
13124 /* This call has the arguments reversed.
13125 A reversed system may check and see that the address of buf
13126 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13128 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13131 return 0; /* Non-reversed systems SEGV here. */
13136 rm -f conftest$ac_exeext
13137 if { (ac_try="$ac_link"
13138 case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_link") 2>&5
13145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_func_setvbuf_reversed=yes
13158 echo "$as_me: program exited with status
$ac_status" >&5
13159 echo "$as_me: failed program was
:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13167 ac_cv_func_setvbuf_reversed=yes
13169 echo "$as_me: failed program was
:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13176 conftest$ac_exeext conftest.$ac_ext
13178 echo "$as_me: failed program was
:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13185 conftest$ac_exeext conftest.$ac_ext
13187 { echo "$as_me:$LINENO: result
: $ac_cv_func_setvbuf_reversed" >&5
13188 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13189 if test $ac_cv_func_setvbuf_reversed = yes; then
13191 cat >>confdefs.h <<\_ACEOF
13192 #define SETVBUF_REVERSED 1
13197 { echo "$as_me:$LINENO: checking
return type of signal handlers
" >&5
13198 echo $ECHO_N "checking
return type of signal handlers...
$ECHO_C" >&6; }
13199 if test "${ac_cv_type_signal+set}" = set; then
13200 echo $ECHO_N "(cached
) $ECHO_C" >&6
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 #include <sys/types.h>
13209 #include <signal.h>
13214 return *(signal (0, 0)) (0) == 1;
13219 rm -f conftest.$ac_objext
13220 if { (ac_try="$ac_compile"
13221 case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_compile") 2>conftest.er1
13228 grep -v '^ *+' conftest.er1 >conftest.err
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest.$ac_objext; then
13236 ac_cv_type_signal=int
13238 echo "$as_me: failed program was
:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 ac_cv_type_signal=void
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 { echo "$as_me:$LINENO: result
: $ac_cv_type_signal" >&5
13247 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13249 cat >>confdefs.h <<_ACEOF
13250 #define RETSIGTYPE $ac_cv_type_signal
13254 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash
" >&5
13255 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash...
$ECHO_C" >&6; }
13256 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13257 echo $ECHO_N "(cached
) $ECHO_C" >&6
13259 rm -f conftest.sym conftest.file
13260 echo >conftest.file
13261 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13262 if test "$cross_compiling" = yes; then
13263 ac_cv_func_lstat_dereferences_slashed_symlink=no
13265 cat >conftest.$ac_ext <<_ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13271 $ac_includes_default
13276 /* Linux will dereference the symlink and fail.
13277 That is better in the sense that it means we will not
13278 have to compile and use the lstat wrapper. */
13279 return lstat ("conftest.sym
/", &sbuf) == 0;
13284 rm -f conftest$ac_exeext
13285 if { (ac_try="$ac_link"
13286 case "(($ac_try" in
13287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288 *) ac_try_echo=$ac_try;;
13290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13291 (eval "$ac_link") 2>&5
13293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13295 { (case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_try") 2>&5
13302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13306 echo "$as_me: program exited with status
$ac_status" >&5
13307 echo "$as_me: failed program was
:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 ( exit $ac_status )
13311 ac_cv_func_lstat_dereferences_slashed_symlink=no
13313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13318 # If the `ln -s' command failed, then we probably don't even
13319 # have an lstat function.
13320 ac_cv_func_lstat_dereferences_slashed_symlink=no
13322 rm -f conftest.sym conftest.file
13325 { echo "$as_me:$LINENO: result
: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13326 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13328 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13330 cat >>confdefs.h <<_ACEOF
13331 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13335 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13336 case " $LIBOBJS " in
13337 *" lstat.
$ac_objext "* ) ;;
13338 *) LIBOBJS="$LIBOBJS lstat.
$ac_objext"
13344 { echo "$as_me:$LINENO: checking whether stat accepts an empty string
" >&5
13345 echo $ECHO_N "checking whether stat accepts an empty string...
$ECHO_C" >&6; }
13346 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13347 echo $ECHO_N "(cached
) $ECHO_C" >&6
13349 if test "$cross_compiling" = yes; then
13350 ac_cv_func_stat_empty_string_bug=yes
13352 cat >conftest.$ac_ext <<_ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 $ac_includes_default
13363 return stat ("", &sbuf) == 0;
13368 rm -f conftest$ac_exeext
13369 if { (ac_try="$ac_link"
13370 case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_link") 2>&5
13377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13379 { (case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_try") 2>&5
13386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_cv_func_stat_empty_string_bug=no
13390 echo "$as_me: program exited with status
$ac_status" >&5
13391 echo "$as_me: failed program was
:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ( exit $ac_status )
13395 ac_cv_func_stat_empty_string_bug=yes
13397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13402 { echo "$as_me:$LINENO: result
: $ac_cv_func_stat_empty_string_bug" >&5
13403 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13404 if test $ac_cv_func_stat_empty_string_bug = yes; then
13405 case " $LIBOBJS " in
13406 *" stat.
$ac_objext "* ) ;;
13407 *) LIBOBJS="$LIBOBJS stat.
$ac_objext"
13412 cat >>confdefs.h <<_ACEOF
13413 #define HAVE_STAT_EMPTY_STRING_BUG 1
13418 { echo "$as_me:$LINENO: checking
for working strcoll
" >&5
13419 echo $ECHO_N "checking
for working strcoll...
$ECHO_C" >&6; }
13420 if test "${ac_cv_func_strcoll_works+set}" = set; then
13421 echo $ECHO_N "(cached
) $ECHO_C" >&6
13423 if test "$cross_compiling" = yes; then
13424 ac_cv_func_strcoll_works=no
13426 cat >conftest.$ac_ext <<_ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13432 $ac_includes_default
13436 return (strcoll ("abc
", "def
") >= 0 ||
13437 strcoll ("ABC
", "DEF
") >= 0 ||
13438 strcoll ("123", "456") >= 0)
13443 rm -f conftest$ac_exeext
13444 if { (ac_try="$ac_link"
13445 case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_link") 2>&5
13452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13454 { (case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_try") 2>&5
13461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 ac_cv_func_strcoll_works=yes
13465 echo "$as_me: program exited with status
$ac_status" >&5
13466 echo "$as_me: failed program was
:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 ( exit $ac_status )
13470 ac_cv_func_strcoll_works=no
13472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13477 { echo "$as_me:$LINENO: result
: $ac_cv_func_strcoll_works" >&5
13478 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13479 if test $ac_cv_func_strcoll_works = yes; then
13481 cat >>confdefs.h <<\_ACEOF
13482 #define HAVE_STRCOLL 1
13488 for ac_func in strftime
13490 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
13491 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
13492 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
13493 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
13494 echo $ECHO_N "(cached
) $ECHO_C" >&6
13496 cat >conftest.$ac_ext <<_ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13504 #define $ac_func innocuous_$ac_func
13506 /* System header to define __stub macros and hopefully few prototypes,
13507 which can conflict with char $ac_func (); below.
13508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13509 <limits.h> exists even on freestanding compilers. */
13512 # include <limits.h>
13514 # include <assert.h>
13519 /* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
13526 /* The GNU C library defines this for functions which it implements
13527 to always fail with ENOSYS. Some functions are actually named
13528 something starting with __ and the normal name is an alias. */
13529 #if defined __stub_$ac_func || defined __stub___$ac_func
13536 return $ac_func ();
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (ac_try="$ac_link"
13543 case "(($ac_try" in
13544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545 *) ac_try_echo=$ac_try;;
13547 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13548 (eval "$ac_link") 2>conftest.er1
13550 grep -v '^ *+' conftest.er1 >conftest.err
13552 cat conftest.err >&5
13553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13554 (exit $ac_status); } && {
13555 test -z "$ac_c_werror_flag" ||
13556 test ! -s conftest.err
13557 } && test -s conftest$ac_exeext &&
13558 $as_test_x conftest$ac_exeext; then
13559 eval "$as_ac_var=yes"
13561 echo "$as_me: failed program was
:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 eval "$as_ac_var=no
"
13567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13568 conftest$ac_exeext conftest.$ac_ext
13570 ac_res=`eval echo '${'$as_ac_var'}'`
13571 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13572 echo "${ECHO_T}$ac_res" >&6; }
13573 if test `eval echo '${'$as_ac_var'}'` = yes; then
13574 cat >>confdefs.h <<_ACEOF
13575 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
13579 # strftime is in -lintl on SCO UNIX.
13580 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
13581 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
13582 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13583 echo $ECHO_N "(cached
) $ECHO_C" >&6
13585 ac_check_lib_save_LIBS=$LIBS
13586 LIBS="-lintl $LIBS"
13587 cat >conftest.$ac_ext <<_ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13594 /* Override any GCC internal prototype to avoid an error.
13595 Use char because int might match the return type of a GCC
13596 builtin and then its argument prototype would still apply. */
13604 return strftime ();
13609 rm -f conftest.$ac_objext conftest$ac_exeext
13610 if { (ac_try="$ac_link"
13611 case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_link") 2>conftest.er1
13618 grep -v '^ *+' conftest.er1 >conftest.err
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13622 (exit $ac_status); } && {
13623 test -z "$ac_c_werror_flag" ||
13624 test ! -s conftest.err
13625 } && test -s conftest$ac_exeext &&
13626 $as_test_x conftest$ac_exeext; then
13627 ac_cv_lib_intl_strftime=yes
13629 echo "$as_me: failed program was
:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13632 ac_cv_lib_intl_strftime=no
13635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13636 conftest$ac_exeext conftest.$ac_ext
13637 LIBS=$ac_check_lib_save_LIBS
13639 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
13640 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13641 if test $ac_cv_lib_intl_strftime = yes; then
13642 cat >>confdefs.h <<\_ACEOF
13643 #define HAVE_STRFTIME 1
13646 LIBS="-lintl $LIBS"
13652 { echo "$as_me:$LINENO: checking
for working strnlen
" >&5
13653 echo $ECHO_N "checking
for working strnlen...
$ECHO_C" >&6; }
13654 if test "${ac_cv_func_strnlen_working+set}" = set; then
13655 echo $ECHO_N "(cached
) $ECHO_C" >&6
13657 if test "$cross_compiling" = yes; then
13658 ac_cv_func_strnlen_working=no
13660 cat >conftest.$ac_ext <<_ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 $ac_includes_default
13672 #define S_LEN (sizeof S - 1)
13674 /* At least one implementation is buggy: that of AIX 4.3 would
13675 give strnlen (S, 1) == 3. */
13678 for (i = 0; i < S_LEN + 1; ++i)
13680 int expected = i <= S_LEN ? i : S_LEN;
13681 if (strnlen (S, i) != expected)
13690 rm -f conftest$ac_exeext
13691 if { (ac_try="$ac_link"
13692 case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_link") 2>&5
13699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13701 { (case "(($ac_try" in
13702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703 *) ac_try_echo=$ac_try;;
13705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13706 (eval "$ac_try") 2>&5
13708 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 ac_cv_func_strnlen_working=yes
13712 echo "$as_me: program exited with status
$ac_status" >&5
13713 echo "$as_me: failed program was
:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 ( exit $ac_status )
13717 ac_cv_func_strnlen_working=no
13719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13724 { echo "$as_me:$LINENO: result
: $ac_cv_func_strnlen_working" >&5
13725 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13726 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13727 *" strnlen.
$ac_objext "* ) ;;
13728 *) LIBOBJS="$LIBOBJS strnlen.
$ac_objext"
13733 { echo "$as_me:$LINENO: checking
for working strtod
" >&5
13734 echo $ECHO_N "checking
for working strtod...
$ECHO_C" >&6; }
13735 if test "${ac_cv_func_strtod+set}" = set; then
13736 echo $ECHO_N "(cached
) $ECHO_C" >&6
13738 if test "$cross_compiling" = yes; then
13739 ac_cv_func_strtod=no
13741 cat >conftest.$ac_ext <<_ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13748 $ac_includes_default
13756 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13757 char *string = " +69";
13760 value = strtod (string, &term);
13761 if (value != 69 || term != (string + 4))
13766 /* Under Solaris 2.4, strtod returns the wrong value for the
13767 terminating character under some conditions. */
13768 char *string = "NaN
";
13770 strtod (string, &term);
13771 if (term != string && *(term - 1) == 0)
13778 rm -f conftest$ac_exeext
13779 if { (ac_try="$ac_link"
13780 case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_link") 2>&5
13787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13789 { (case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_try") 2>&5
13796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_cv_func_strtod=yes
13800 echo "$as_me: program exited with status
$ac_status" >&5
13801 echo "$as_me: failed program was
:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ( exit $ac_status )
13805 ac_cv_func_strtod=no
13807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13812 { echo "$as_me:$LINENO: result
: $ac_cv_func_strtod" >&5
13813 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13814 if test $ac_cv_func_strtod = no; then
13815 case " $LIBOBJS " in
13816 *" strtod.
$ac_objext "* ) ;;
13817 *) LIBOBJS="$LIBOBJS strtod.
$ac_objext"
13821 { echo "$as_me:$LINENO: checking
for pow
" >&5
13822 echo $ECHO_N "checking
for pow...
$ECHO_C" >&6; }
13823 if test "${ac_cv_func_pow+set}" = set; then
13824 echo $ECHO_N "(cached
) $ECHO_C" >&6
13826 cat >conftest.$ac_ext <<_ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13832 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13834 #define pow innocuous_pow
13836 /* System header to define __stub macros and hopefully few prototypes,
13837 which can conflict with char pow (); below.
13838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13839 <limits.h> exists even on freestanding compilers. */
13842 # include <limits.h>
13844 # include <assert.h>
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13856 /* The GNU C library defines this for functions which it implements
13857 to always fail with ENOSYS. Some functions are actually named
13858 something starting with __ and the normal name is an alias. */
13859 #if defined __stub_pow || defined __stub___pow
13871 rm -f conftest.$ac_objext conftest$ac_exeext
13872 if { (ac_try="$ac_link"
13873 case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13878 (eval "$ac_link") 2>conftest.er1
13880 grep -v '^ *+' conftest.er1 >conftest.err
13882 cat conftest.err >&5
13883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13884 (exit $ac_status); } && {
13885 test -z "$ac_c_werror_flag" ||
13886 test ! -s conftest.err
13887 } && test -s conftest$ac_exeext &&
13888 $as_test_x conftest$ac_exeext; then
13891 echo "$as_me: failed program was
:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13898 conftest$ac_exeext conftest.$ac_ext
13900 { echo "$as_me:$LINENO: result
: $ac_cv_func_pow" >&5
13901 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13903 if test $ac_cv_func_pow = no; then
13904 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
13905 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
13906 if test "${ac_cv_lib_m_pow+set}" = set; then
13907 echo $ECHO_N "(cached
) $ECHO_C" >&6
13909 ac_check_lib_save_LIBS=$LIBS
13911 cat >conftest.$ac_ext <<_ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13918 /* Override any GCC internal prototype to avoid an error.
13919 Use char because int might match the return type of a GCC
13920 builtin and then its argument prototype would still apply. */
13933 rm -f conftest.$ac_objext conftest$ac_exeext
13934 if { (ac_try="$ac_link"
13935 case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_link") 2>conftest.er1
13942 grep -v '^ *+' conftest.er1 >conftest.err
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13946 (exit $ac_status); } && {
13947 test -z "$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13949 } && test -s conftest$ac_exeext &&
13950 $as_test_x conftest$ac_exeext; then
13951 ac_cv_lib_m_pow=yes
13953 echo "$as_me: failed program was
:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13960 conftest$ac_exeext conftest.$ac_ext
13961 LIBS=$ac_check_lib_save_LIBS
13963 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
13964 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13965 if test $ac_cv_lib_m_pow = yes; then
13968 { echo "$as_me:$LINENO: WARNING
: cannot
find library containing definition of pow
" >&5
13969 echo "$as_me: WARNING
: cannot
find library containing definition of pow
" >&2;}
13980 for ac_header in $ac_header_list
13982 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13983 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13984 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13985 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13986 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13987 echo $ECHO_N "(cached
) $ECHO_C" >&6
13989 ac_res=`eval echo '${'$as_ac_Header'}'`
13990 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13991 echo "${ECHO_T}$ac_res" >&6; }
13993 # Is the header compilable?
13994 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13995 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13996 cat >conftest.$ac_ext <<_ACEOF
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h. */
14002 $ac_includes_default
14003 #include <$ac_header>
14005 rm -f conftest.$ac_objext
14006 if { (ac_try="$ac_compile"
14007 case "(($ac_try" in
14008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009 *) ac_try_echo=$ac_try;;
14011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14012 (eval "$ac_compile") 2>conftest.er1
14014 grep -v '^ *+' conftest.er1 >conftest.err
14016 cat conftest.err >&5
14017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14018 (exit $ac_status); } && {
14019 test -z "$ac_c_werror_flag" ||
14020 test ! -s conftest.err
14021 } && test -s conftest.$ac_objext; then
14022 ac_header_compiler=yes
14024 echo "$as_me: failed program was
:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14027 ac_header_compiler=no
14030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14031 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14032 echo "${ECHO_T}$ac_header_compiler" >&6; }
14034 # Is the header present?
14035 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14036 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14037 cat >conftest.$ac_ext <<_ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 #include <$ac_header>
14045 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14046 case "(($ac_try" in
14047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048 *) ac_try_echo=$ac_try;;
14050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14051 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14053 grep -v '^ *+' conftest.er1 >conftest.err
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14057 (exit $ac_status); } >/dev/null && {
14058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14059 test ! -s conftest.err
14061 ac_header_preproc=yes
14063 echo "$as_me: failed program was
:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14066 ac_header_preproc=no
14069 rm -f conftest.err conftest.$ac_ext
14070 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14071 echo "${ECHO_T}$ac_header_preproc" >&6; }
14073 # So? What about this header?
14074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14076 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14077 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14078 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14080 ac_header_preproc=yes
14083 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14084 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14085 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14086 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14087 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14088 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14089 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14090 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14091 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14093 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14094 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14096 ## ------------------------------- ##
14097 ## Report this to www.asterisk.org ##
14098 ## ------------------------------- ##
14100 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
14103 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14104 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14105 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14106 echo $ECHO_N "(cached
) $ECHO_C" >&6
14108 eval "$as_ac_Header=\
$ac_header_preproc"
14110 ac_res=`eval echo '${'$as_ac_Header'}'`
14111 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14112 echo "${ECHO_T}$ac_res" >&6; }
14115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14116 cat >>confdefs.h <<_ACEOF
14117 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14132 { echo "$as_me:$LINENO: checking whether utime accepts a null argument
" >&5
14133 echo $ECHO_N "checking whether utime accepts a null argument...
$ECHO_C" >&6; }
14134 if test "${ac_cv_func_utime_null+set}" = set; then
14135 echo $ECHO_N "(cached
) $ECHO_C" >&6
14137 rm -f conftest.data; >conftest.data
14138 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14139 if test "$cross_compiling" = yes; then
14140 ac_cv_func_utime_null=no
14142 cat >conftest.$ac_ext <<_ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 $ac_includes_default
14149 #ifdef HAVE_UTIME_H
14150 # include <utime.h>
14156 return ! (stat ("conftest.data
", &s) == 0
14157 && utime ("conftest.data
", 0) == 0
14158 && stat ("conftest.data
", &t) == 0
14159 && t.st_mtime >= s.st_mtime
14160 && t.st_mtime - s.st_mtime < 120);
14165 rm -f conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_link") 2>&5
14174 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_cv_func_utime_null=yes
14187 echo "$as_me: program exited with status
$ac_status" >&5
14188 echo "$as_me: failed program was
:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14191 ( exit $ac_status )
14192 ac_cv_func_utime_null=no
14194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14199 { echo "$as_me:$LINENO: result
: $ac_cv_func_utime_null" >&5
14200 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14201 if test $ac_cv_func_utime_null = yes; then
14203 cat >>confdefs.h <<\_ACEOF
14204 #define HAVE_UTIME_NULL 1
14208 rm -f conftest.data
14211 for ac_func in vprintf
14213 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14214 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14215 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14216 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14217 echo $ECHO_N "(cached
) $ECHO_C" >&6
14219 cat >conftest.$ac_ext <<_ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14227 #define $ac_func innocuous_$ac_func
14229 /* System header to define __stub macros and hopefully few prototypes,
14230 which can conflict with char $ac_func (); below.
14231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14232 <limits.h> exists even on freestanding compilers. */
14235 # include <limits.h>
14237 # include <assert.h>
14242 /* Override any GCC internal prototype to avoid an error.
14243 Use char because int might match the return type of a GCC
14244 builtin and then its argument prototype would still apply. */
14249 /* The GNU C library defines this for functions which it implements
14250 to always fail with ENOSYS. Some functions are actually named
14251 something starting with __ and the normal name is an alias. */
14252 #if defined __stub_$ac_func || defined __stub___$ac_func
14259 return $ac_func ();
14264 rm -f conftest.$ac_objext conftest$ac_exeext
14265 if { (ac_try="$ac_link"
14266 case "(($ac_try" in
14267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268 *) ac_try_echo=$ac_try;;
14270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14271 (eval "$ac_link") 2>conftest.er1
14273 grep -v '^ *+' conftest.er1 >conftest.err
14275 cat conftest.err >&5
14276 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14277 (exit $ac_status); } && {
14278 test -z "$ac_c_werror_flag" ||
14279 test ! -s conftest.err
14280 } && test -s conftest$ac_exeext &&
14281 $as_test_x conftest$ac_exeext; then
14282 eval "$as_ac_var=yes"
14284 echo "$as_me: failed program was
:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14287 eval "$as_ac_var=no
"
14290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14291 conftest$ac_exeext conftest.$ac_ext
14293 ac_res=`eval echo '${'$as_ac_var'}'`
14294 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14295 echo "${ECHO_T}$ac_res" >&6; }
14296 if test `eval echo '${'$as_ac_var'}'` = yes; then
14297 cat >>confdefs.h <<_ACEOF
14298 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14301 { echo "$as_me:$LINENO: checking
for _doprnt
" >&5
14302 echo $ECHO_N "checking
for _doprnt...
$ECHO_C" >&6; }
14303 if test "${ac_cv_func__doprnt+set}" = set; then
14304 echo $ECHO_N "(cached
) $ECHO_C" >&6
14306 cat >conftest.$ac_ext <<_ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14314 #define _doprnt innocuous__doprnt
14316 /* System header to define __stub macros and hopefully few prototypes,
14317 which can conflict with char _doprnt (); below.
14318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14319 <limits.h> exists even on freestanding compilers. */
14322 # include <limits.h>
14324 # include <assert.h>
14329 /* Override any GCC internal prototype to avoid an error.
14330 Use char because int might match the return type of a GCC
14331 builtin and then its argument prototype would still apply. */
14336 /* The GNU C library defines this for functions which it implements
14337 to always fail with ENOSYS. Some functions are actually named
14338 something starting with __ and the normal name is an alias. */
14339 #if defined __stub__doprnt || defined __stub____doprnt
14351 rm -f conftest.$ac_objext conftest$ac_exeext
14352 if { (ac_try="$ac_link"
14353 case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_link") 2>conftest.er1
14360 grep -v '^ *+' conftest.er1 >conftest.err
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest$ac_exeext &&
14368 $as_test_x conftest$ac_exeext; then
14369 ac_cv_func__doprnt=yes
14371 echo "$as_me: failed program was
:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14374 ac_cv_func__doprnt=no
14377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14378 conftest$ac_exeext conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result
: $ac_cv_func__doprnt" >&5
14381 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14382 if test $ac_cv_func__doprnt = yes; then
14384 cat >>confdefs.h <<\_ACEOF
14385 #define HAVE_DOPRNT 1
14443 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
14445 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14446 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14447 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14448 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14449 echo $ECHO_N "(cached
) $ECHO_C" >&6
14451 cat >conftest.$ac_ext <<_ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14459 #define $ac_func innocuous_$ac_func
14461 /* System header to define __stub macros and hopefully few prototypes,
14462 which can conflict with char $ac_func (); below.
14463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14464 <limits.h> exists even on freestanding compilers. */
14467 # include <limits.h>
14469 # include <assert.h>
14474 /* Override any GCC internal prototype to avoid an error.
14475 Use char because int might match the return type of a GCC
14476 builtin and then its argument prototype would still apply. */
14481 /* The GNU C library defines this for functions which it implements
14482 to always fail with ENOSYS. Some functions are actually named
14483 something starting with __ and the normal name is an alias. */
14484 #if defined __stub_$ac_func || defined __stub___$ac_func
14491 return $ac_func ();
14496 rm -f conftest.$ac_objext conftest$ac_exeext
14497 if { (ac_try="$ac_link"
14498 case "(($ac_try" in
14499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500 *) ac_try_echo=$ac_try;;
14502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14503 (eval "$ac_link") 2>conftest.er1
14505 grep -v '^ *+' conftest.er1 >conftest.err
14507 cat conftest.err >&5
14508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14509 (exit $ac_status); } && {
14510 test -z "$ac_c_werror_flag" ||
14511 test ! -s conftest.err
14512 } && test -s conftest$ac_exeext &&
14513 $as_test_x conftest$ac_exeext; then
14514 eval "$as_ac_var=yes"
14516 echo "$as_me: failed program was
:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14519 eval "$as_ac_var=no
"
14522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14523 conftest$ac_exeext conftest.$ac_ext
14525 ac_res=`eval echo '${'$as_ac_var'}'`
14526 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14527 echo "${ECHO_T}$ac_res" >&6; }
14528 if test `eval echo '${'$as_ac_var'}'` = yes; then
14529 cat >>confdefs.h <<_ACEOF
14530 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14537 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14538 { echo "$as_me:$LINENO: checking
for library containing gethostbyname_r
" >&5
14539 echo $ECHO_N "checking
for library containing gethostbyname_r...
$ECHO_C" >&6; }
14540 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14541 echo $ECHO_N "(cached
) $ECHO_C" >&6
14543 ac_func_search_save_LIBS=$LIBS
14544 cat >conftest.$ac_ext <<_ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14551 /* Override any GCC internal prototype to avoid an error.
14552 Use char because int might match the return type of a GCC
14553 builtin and then its argument prototype would still apply. */
14557 char gethostbyname_r ();
14561 return gethostbyname_r ();
14566 for ac_lib in '' socket nsl; do
14567 if test -z "$ac_lib"; then
14568 ac_res="none required
"
14571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14573 rm -f conftest.$ac_objext conftest$ac_exeext
14574 if { (ac_try="$ac_link"
14575 case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_link") 2>conftest.er1
14582 grep -v '^ *+' conftest.er1 >conftest.err
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14586 (exit $ac_status); } && {
14587 test -z "$ac_c_werror_flag" ||
14588 test ! -s conftest.err
14589 } && test -s conftest$ac_exeext &&
14590 $as_test_x conftest$ac_exeext; then
14591 ac_cv_search_gethostbyname_r=$ac_res
14593 echo "$as_me: failed program was
:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14601 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14605 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14608 ac_cv_search_gethostbyname_r=no
14610 rm conftest.$ac_ext
14611 LIBS=$ac_func_search_save_LIBS
14613 { echo "$as_me:$LINENO: result
: $ac_cv_search_gethostbyname_r" >&5
14614 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14615 ac_res=$ac_cv_search_gethostbyname_r
14616 if test "$ac_res" != no; then
14617 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14622 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
6 arguments
" >&5
14623 echo $ECHO_N "checking
for gethostbyname_r with
6 arguments...
$ECHO_C" >&6; }
14624 cat >conftest.$ac_ext <<_ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14630 #include <stdlib.h>
14635 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (ac_try="$ac_link"
14642 case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14646 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_link") 2>conftest.er1
14649 grep -v '^ *+' conftest.er1 >conftest.err
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14653 (exit $ac_status); } && {
14654 test -z "$ac_c_werror_flag" ||
14655 test ! -s conftest.err
14656 } && test -s conftest$ac_exeext &&
14657 $as_test_x conftest$ac_exeext; then
14658 { echo "$as_me:$LINENO: result
: yes" >&5
14659 echo "${ECHO_T}yes" >&6; }
14661 cat >>confdefs.h <<\_ACEOF
14662 #define HAVE_GETHOSTBYNAME_R_6 1
14666 echo "$as_me: failed program was
:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14669 { echo "$as_me:$LINENO: result
: no
" >&5
14670 echo "${ECHO_T}no
" >&6; }
14674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14675 conftest$ac_exeext conftest.$ac_ext
14677 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
5 arguments
" >&5
14678 echo $ECHO_N "checking
for gethostbyname_r with
5 arguments...
$ECHO_C" >&6; }
14679 cat >conftest.$ac_ext <<_ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 #include <stdlib.h>
14690 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14695 rm -f conftest.$ac_objext conftest$ac_exeext
14696 if { (ac_try="$ac_link"
14697 case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_link") 2>conftest.er1
14704 grep -v '^ *+' conftest.er1 >conftest.err
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14708 (exit $ac_status); } && {
14709 test -z "$ac_c_werror_flag" ||
14710 test ! -s conftest.err
14711 } && test -s conftest$ac_exeext &&
14712 $as_test_x conftest$ac_exeext; then
14713 { echo "$as_me:$LINENO: result
: yes" >&5
14714 echo "${ECHO_T}yes" >&6; }
14716 cat >>confdefs.h <<\_ACEOF
14717 #define HAVE_GETHOSTBYNAME_R_5 1
14721 echo "$as_me: failed program was
:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 { echo "$as_me:$LINENO: result
: no
" >&5
14725 echo "${ECHO_T}no
" >&6; }
14729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14730 conftest$ac_exeext conftest.$ac_ext
14732 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_INITIALIZER
" >&5
14733 echo $ECHO_N "checking
for PTHREAD_RWLOCK_INITIALIZER...
$ECHO_C" >&6; }
14734 cat >conftest.$ac_ext <<_ACEOF
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h. */
14740 #include <pthread.h>
14744 int foo = PTHREAD_RWLOCK_INITIALIZER;
14749 rm -f conftest.$ac_objext conftest$ac_exeext
14750 if { (ac_try="$ac_link"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_link") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest$ac_exeext &&
14766 $as_test_x conftest$ac_exeext; then
14767 { echo "$as_me:$LINENO: result
: yes" >&5
14768 echo "${ECHO_T}yes" >&6; }
14770 cat >>confdefs.h <<\_ACEOF
14771 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14775 echo "$as_me: failed program was
:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 { echo "$as_me:$LINENO: result
: no
" >&5
14779 echo "${ECHO_T}no
" >&6; }
14783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14784 conftest$ac_exeext conftest.$ac_ext
14786 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP
" >&5
14787 echo $ECHO_N "checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP...
$ECHO_C" >&6; }
14788 cat >conftest.$ac_ext <<_ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 #include <pthread.h>
14798 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14803 rm -f conftest.$ac_objext conftest$ac_exeext
14804 if { (ac_try="$ac_link"
14805 case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_link") 2>conftest.er1
14812 grep -v '^ *+' conftest.er1 >conftest.err
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14816 (exit $ac_status); } && {
14817 test -z "$ac_c_werror_flag" ||
14818 test ! -s conftest.err
14819 } && test -s conftest$ac_exeext &&
14820 $as_test_x conftest$ac_exeext; then
14821 { echo "$as_me:$LINENO: result
: yes" >&5
14822 echo "${ECHO_T}yes" >&6; }
14824 cat >>confdefs.h <<\_ACEOF
14825 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14829 echo "$as_me: failed program was
:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 { echo "$as_me:$LINENO: result
: no
" >&5
14833 echo "${ECHO_T}no
" >&6; }
14837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14838 conftest$ac_exeext conftest.$ac_ext
14840 { echo "$as_me:$LINENO: checking
for compiler atomic operations
" >&5
14841 echo $ECHO_N "checking
for compiler atomic operations...
$ECHO_C" >&6; }
14842 cat >conftest.$ac_ext <<_ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14852 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14857 rm -f conftest.$ac_objext conftest$ac_exeext
14858 if { (ac_try="$ac_link"
14859 case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14864 (eval "$ac_link") 2>conftest.er1
14866 grep -v '^ *+' conftest.er1 >conftest.err
14868 cat conftest.err >&5
14869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14870 (exit $ac_status); } && {
14871 test -z "$ac_c_werror_flag" ||
14872 test ! -s conftest.err
14873 } && test -s conftest$ac_exeext &&
14874 $as_test_x conftest$ac_exeext; then
14875 { echo "$as_me:$LINENO: result
: yes" >&5
14876 echo "${ECHO_T}yes" >&6; }
14878 cat >>confdefs.h <<\_ACEOF
14879 #define HAVE_GCC_ATOMICS 1
14883 echo "$as_me: failed program was
:" >&5
14884 sed 's/^/| /' conftest.$ac_ext >&5
14886 { echo "$as_me:$LINENO: result
: no
" >&5
14887 echo "${ECHO_T}no
" >&6; }
14891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14892 conftest$ac_exeext conftest.$ac_ext
14895 { echo "$as_me:$LINENO: checking
for compiler
'attribute pure' support
" >&5
14896 echo $ECHO_N "checking
for compiler
'attribute pure' support...
$ECHO_C" >&6; }
14897 saved_CFLAGS="$CFLAGS"
14898 CFLAGS="$CFLAGS -Werror"
14899 cat >conftest.$ac_ext <<_ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 static void __attribute__((pure)) *test(void *muffin, ...) {}
14914 rm -f conftest.$ac_objext
14915 if { (ac_try="$ac_compile"
14916 case "(($ac_try" in
14917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918 *) ac_try_echo=$ac_try;;
14920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14921 (eval "$ac_compile") 2>conftest.er1
14923 grep -v '^ *+' conftest.er1 >conftest.err
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14927 (exit $ac_status); } && {
14928 test -z "$ac_c_werror_flag" ||
14929 test ! -s conftest.err
14930 } && test -s conftest.$ac_objext; then
14931 { echo "$as_me:$LINENO: result
: yes" >&5
14932 echo "${ECHO_T}yes" >&6; }
14934 cat >>confdefs.h <<_ACEOF
14935 #define HAVE_ATTRIBUTE_pure 1
14939 echo "$as_me: failed program was
:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 { echo "$as_me:$LINENO: result
: no
" >&5
14943 echo "${ECHO_T}no
" >&6; }
14946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14948 CFLAGS="$saved_CFLAGS"
14951 { echo "$as_me:$LINENO: checking
for compiler
'attribute malloc' support
" >&5
14952 echo $ECHO_N "checking
for compiler
'attribute malloc' support...
$ECHO_C" >&6; }
14953 saved_CFLAGS="$CFLAGS"
14954 CFLAGS="$CFLAGS -Werror"
14955 cat >conftest.$ac_ext <<_ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 static void __attribute__((malloc)) *test(void *muffin, ...) {}
14970 rm -f conftest.$ac_objext
14971 if { (ac_try="$ac_compile"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_compile") 2>conftest.er1
14979 grep -v '^ *+' conftest.er1 >conftest.err
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest.$ac_objext; then
14987 { echo "$as_me:$LINENO: result
: yes" >&5
14988 echo "${ECHO_T}yes" >&6; }
14990 cat >>confdefs.h <<_ACEOF
14991 #define HAVE_ATTRIBUTE_malloc 1
14995 echo "$as_me: failed program was
:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14998 { echo "$as_me:$LINENO: result
: no
" >&5
14999 echo "${ECHO_T}no
" >&6; }
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 CFLAGS="$saved_CFLAGS"
15007 { echo "$as_me:$LINENO: checking
for compiler
'attribute const' support
" >&5
15008 echo $ECHO_N "checking
for compiler
'attribute const' support...
$ECHO_C" >&6; }
15009 saved_CFLAGS="$CFLAGS"
15010 CFLAGS="$CFLAGS -Werror"
15011 cat >conftest.$ac_ext <<_ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 static void __attribute__((const)) *test(void *muffin, ...) {}
15026 rm -f conftest.$ac_objext
15027 if { (ac_try="$ac_compile"
15028 case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_compile") 2>conftest.er1
15035 grep -v '^ *+' conftest.er1 >conftest.err
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest.$ac_objext; then
15043 { echo "$as_me:$LINENO: result
: yes" >&5
15044 echo "${ECHO_T}yes" >&6; }
15046 cat >>confdefs.h <<_ACEOF
15047 #define HAVE_ATTRIBUTE_const 1
15051 echo "$as_me: failed program was
:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 { echo "$as_me:$LINENO: result
: no
" >&5
15055 echo "${ECHO_T}no
" >&6; }
15058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15060 CFLAGS="$saved_CFLAGS"
15063 { echo "$as_me:$LINENO: checking
for compiler
'attribute unused' support
" >&5
15064 echo $ECHO_N "checking
for compiler
'attribute unused' support...
$ECHO_C" >&6; }
15065 saved_CFLAGS="$CFLAGS"
15066 CFLAGS="$CFLAGS -Werror"
15067 cat >conftest.$ac_ext <<_ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 static void __attribute__((unused)) *test(void *muffin, ...) {}
15082 rm -f conftest.$ac_objext
15083 if { (ac_try="$ac_compile"
15084 case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_compile") 2>conftest.er1
15091 grep -v '^ *+' conftest.er1 >conftest.err
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15095 (exit $ac_status); } && {
15096 test -z "$ac_c_werror_flag" ||
15097 test ! -s conftest.err
15098 } && test -s conftest.$ac_objext; then
15099 { echo "$as_me:$LINENO: result
: yes" >&5
15100 echo "${ECHO_T}yes" >&6; }
15102 cat >>confdefs.h <<_ACEOF
15103 #define HAVE_ATTRIBUTE_unused 1
15107 echo "$as_me: failed program was
:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 { echo "$as_me:$LINENO: result
: no
" >&5
15111 echo "${ECHO_T}no
" >&6; }
15114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116 CFLAGS="$saved_CFLAGS"
15119 { echo "$as_me:$LINENO: checking
for compiler
'attribute always_inline' support
" >&5
15120 echo $ECHO_N "checking
for compiler
'attribute always_inline' support...
$ECHO_C" >&6; }
15121 saved_CFLAGS="$CFLAGS"
15122 CFLAGS="$CFLAGS -Werror"
15123 cat >conftest.$ac_ext <<_ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
15138 rm -f conftest.$ac_objext
15139 if { (ac_try="$ac_compile"
15140 case "(($ac_try" in
15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15145 (eval "$ac_compile") 2>conftest.er1
15147 grep -v '^ *+' conftest.er1 >conftest.err
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest.$ac_objext; then
15155 { echo "$as_me:$LINENO: result
: yes" >&5
15156 echo "${ECHO_T}yes" >&6; }
15158 cat >>confdefs.h <<_ACEOF
15159 #define HAVE_ATTRIBUTE_always_inline 1
15163 echo "$as_me: failed program was
:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15166 { echo "$as_me:$LINENO: result
: no
" >&5
15167 echo "${ECHO_T}no
" >&6; }
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172 CFLAGS="$saved_CFLAGS"
15175 { echo "$as_me:$LINENO: checking
for compiler
'attribute deprecated' support
" >&5
15176 echo $ECHO_N "checking
for compiler
'attribute deprecated' support...
$ECHO_C" >&6; }
15177 saved_CFLAGS="$CFLAGS"
15178 CFLAGS="$CFLAGS -Werror"
15179 cat >conftest.$ac_ext <<_ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15185 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
15194 rm -f conftest.$ac_objext
15195 if { (ac_try="$ac_compile"
15196 case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15201 (eval "$ac_compile") 2>conftest.er1
15203 grep -v '^ *+' conftest.er1 >conftest.err
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15207 (exit $ac_status); } && {
15208 test -z "$ac_c_werror_flag" ||
15209 test ! -s conftest.err
15210 } && test -s conftest.$ac_objext; then
15211 { echo "$as_me:$LINENO: result
: yes" >&5
15212 echo "${ECHO_T}yes" >&6; }
15214 cat >>confdefs.h <<_ACEOF
15215 #define HAVE_ATTRIBUTE_deprecated 1
15219 echo "$as_me: failed program was
:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 { echo "$as_me:$LINENO: result
: no
" >&5
15223 echo "${ECHO_T}no
" >&6; }
15226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228 CFLAGS="$saved_CFLAGS"
15231 { echo "$as_me:$LINENO: checking
for -ffunction-sections support
" >&5
15232 echo $ECHO_N "checking
for -ffunction-sections support...
$ECHO_C" >&6; }
15233 saved_CFLAGS="${CFLAGS}"
15234 CFLAGS="${CFLAGS} -ffunction-sections"
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15250 rm -f conftest.$ac_objext
15251 if { (ac_try="$ac_compile"
15252 case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_compile") 2>conftest.er1
15259 grep -v '^ *+' conftest.er1 >conftest.err
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15263 (exit $ac_status); } && {
15264 test -z "$ac_c_werror_flag" ||
15265 test ! -s conftest.err
15266 } && test -s conftest.$ac_objext; then
15267 { echo "$as_me:$LINENO: result
: yes" >&5
15268 echo "${ECHO_T}yes" >&6; }
15269 saved_LDFLAGS="${LDFLAGS}"
15270 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15271 { echo "$as_me:$LINENO: checking
for --gc-sections support
" >&5
15272 echo $ECHO_N "checking
for --gc-sections support...
$ECHO_C" >&6; }
15273 cat >conftest.$ac_ext <<_ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15288 rm -f conftest.$ac_objext conftest$ac_exeext
15289 if { (ac_try="$ac_link"
15290 case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15295 (eval "$ac_link") 2>conftest.er1
15297 grep -v '^ *+' conftest.er1 >conftest.err
15299 cat conftest.err >&5
15300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15301 (exit $ac_status); } && {
15302 test -z "$ac_c_werror_flag" ||
15303 test ! -s conftest.err
15304 } && test -s conftest$ac_exeext &&
15305 $as_test_x conftest$ac_exeext; then
15306 { echo "$as_me:$LINENO: result
: yes" >&5
15307 echo "${ECHO_T}yes" >&6; }
15308 GC_CFLAGS="-ffunction-sections"
15309 GC_LDFLAGS="-Wl,--gc-sections"
15311 echo "$as_me: failed program was
:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 { echo "$as_me:$LINENO: result
: no
" >&5
15315 echo "${ECHO_T}no
" >&6; }
15319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15320 conftest$ac_exeext conftest.$ac_ext
15321 LDFLAGS="${saved_LDFLAGS}"
15323 echo "$as_me: failed program was
:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15326 { echo "$as_me:$LINENO: result
: no
" >&5
15327 echo "${ECHO_T}no
" >&6; }
15331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15332 CFLAGS="${saved_CFLAGS}"
15336 { echo "$as_me:$LINENO: checking
for -Wdeclaration-after-statement support
" >&5
15337 echo $ECHO_N "checking
for -Wdeclaration-after-statement support...
$ECHO_C" >&6; }
15338 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15339 { echo "$as_me:$LINENO: result
: yes" >&5
15340 echo "${ECHO_T}yes" >&6; }
15341 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15343 { echo "$as_me:$LINENO: result
: no
" >&5
15344 echo "${ECHO_T}no
" >&6; }
15345 AST_DECLARATION_AFTER_STATEMENT=
15349 { echo "$as_me:$LINENO: checking
for -fno-strict-overflow" >&5
15350 echo $ECHO_N "checking
for -fno-strict-overflow...
$ECHO_C" >&6; }
15351 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15352 { echo "$as_me:$LINENO: result
: yes" >&5
15353 echo "${ECHO_T}yes" >&6; }
15354 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15356 { echo "$as_me:$LINENO: result
: no
" >&5
15357 echo "${ECHO_T}no
" >&6; }
15358 AST_NO_STRICT_OVERFLOW=
15362 { echo "$as_me:$LINENO: checking
for library containing res_9_ninit
" >&5
15363 echo $ECHO_N "checking
for library containing res_9_ninit...
$ECHO_C" >&6; }
15364 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15365 echo $ECHO_N "(cached
) $ECHO_C" >&6
15367 ac_func_search_save_LIBS=$LIBS
15368 cat >conftest.$ac_ext <<_ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15375 /* Override any GCC internal prototype to avoid an error.
15376 Use char because int might match the return type of a GCC
15377 builtin and then its argument prototype would still apply. */
15381 char res_9_ninit ();
15385 return res_9_ninit ();
15390 for ac_lib in '' resolv; do
15391 if test -z "$ac_lib"; then
15392 ac_res="none required
"
15395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (ac_try="$ac_link"
15399 case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_link") 2>conftest.er1
15406 grep -v '^ *+' conftest.er1 >conftest.err
15408 cat conftest.err >&5
15409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest$ac_exeext &&
15414 $as_test_x conftest$ac_exeext; then
15415 ac_cv_search_res_9_ninit=$ac_res
15417 echo "$as_me: failed program was
:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15425 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15429 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15432 ac_cv_search_res_9_ninit=no
15434 rm conftest.$ac_ext
15435 LIBS=$ac_func_search_save_LIBS
15437 { echo "$as_me:$LINENO: result
: $ac_cv_search_res_9_ninit" >&5
15438 echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; }
15439 ac_res=$ac_cv_search_res_9_ninit
15440 if test "$ac_res" != no; then
15441 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
15445 { echo "$as_me:$LINENO: checking
for res_ninit
" >&5
15446 echo $ECHO_N "checking
for res_ninit...
$ECHO_C" >&6; }
15447 cat >conftest.$ac_ext <<_ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15454 #ifdef HAVE_SYS_SOCKET_H
15455 #include <sys/socket.h>
15457 #ifdef HAVE_NETINET_IN_H
15458 #include <netinet/in.h>
15460 #ifdef HAVE_ARPA_NAMESER_H
15461 #include <arpa/nameser.h>
15463 #include <resolv.h>
15467 int foo = res_ninit(NULL);
15472 rm -f conftest.$ac_objext conftest$ac_exeext
15473 if { (ac_try="$ac_link"
15474 case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_link") 2>conftest.er1
15481 grep -v '^ *+' conftest.er1 >conftest.err
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15485 (exit $ac_status); } && {
15486 test -z "$ac_c_werror_flag" ||
15487 test ! -s conftest.err
15488 } && test -s conftest$ac_exeext &&
15489 $as_test_x conftest$ac_exeext; then
15490 { echo "$as_me:$LINENO: result
: yes" >&5
15491 echo "${ECHO_T}yes" >&6; }
15493 cat >>confdefs.h <<\_ACEOF
15494 #define HAVE_RES_NINIT 1
15497 { echo "$as_me:$LINENO: checking
for library containing res_9_ndestroy
" >&5
15498 echo $ECHO_N "checking
for library containing res_9_ndestroy...
$ECHO_C" >&6; }
15499 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15500 echo $ECHO_N "(cached
) $ECHO_C" >&6
15502 ac_func_search_save_LIBS=$LIBS
15503 cat >conftest.$ac_ext <<_ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15510 /* Override any GCC internal prototype to avoid an error.
15511 Use char because int might match the return type of a GCC
15512 builtin and then its argument prototype would still apply. */
15516 char res_9_ndestroy ();
15520 return res_9_ndestroy ();
15525 for ac_lib in '' resolv; do
15526 if test -z "$ac_lib"; then
15527 ac_res="none required
"
15530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15532 rm -f conftest.$ac_objext conftest$ac_exeext
15533 if { (ac_try="$ac_link"
15534 case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_link") 2>conftest.er1
15541 grep -v '^ *+' conftest.er1 >conftest.err
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15545 (exit $ac_status); } && {
15546 test -z "$ac_c_werror_flag" ||
15547 test ! -s conftest.err
15548 } && test -s conftest$ac_exeext &&
15549 $as_test_x conftest$ac_exeext; then
15550 ac_cv_search_res_9_ndestroy=$ac_res
15552 echo "$as_me: failed program was
:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15560 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15564 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15567 ac_cv_search_res_9_ndestroy=no
15569 rm conftest.$ac_ext
15570 LIBS=$ac_func_search_save_LIBS
15572 { echo "$as_me:$LINENO: result
: $ac_cv_search_res_9_ndestroy" >&5
15573 echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; }
15574 ac_res=$ac_cv_search_res_9_ndestroy
15575 if test "$ac_res" != no; then
15576 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
15580 { echo "$as_me:$LINENO: checking
for res_ndestroy
" >&5
15581 echo $ECHO_N "checking
for res_ndestroy...
$ECHO_C" >&6; }
15582 cat >conftest.$ac_ext <<_ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15589 #ifdef HAVE_SYS_SOCKET_H
15590 #include <sys/socket.h>
15592 #ifdef HAVE_NETINET_IN_H
15593 #include <netinet/in.h>
15595 #ifdef HAVE_ARPA_NAMESER_H
15596 #include <arpa/nameser.h>
15598 #include <resolv.h>
15602 res_ndestroy(NULL);
15607 rm -f conftest.$ac_objext conftest$ac_exeext
15608 if { (ac_try="$ac_link"
15609 case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_link") 2>conftest.er1
15616 grep -v '^ *+' conftest.er1 >conftest.err
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15620 (exit $ac_status); } && {
15621 test -z "$ac_c_werror_flag" ||
15622 test ! -s conftest.err
15623 } && test -s conftest$ac_exeext &&
15624 $as_test_x conftest$ac_exeext; then
15625 { echo "$as_me:$LINENO: result
: yes" >&5
15626 echo "${ECHO_T}yes" >&6; }
15628 cat >>confdefs.h <<\_ACEOF
15629 #define HAVE_RES_NDESTROY 1
15633 echo "$as_me: failed program was
:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 { echo "$as_me:$LINENO: result
: no
" >&5
15637 echo "${ECHO_T}no
" >&6; }
15641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15642 conftest$ac_exeext conftest.$ac_ext
15644 echo "$as_me: failed program was
:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 { echo "$as_me:$LINENO: result
: no
" >&5
15648 echo "${ECHO_T}no
" >&6; }
15652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15653 conftest$ac_exeext conftest.$ac_ext
15655 { echo "$as_me:$LINENO: checking
for RTLD_NOLOAD
" >&5
15656 echo $ECHO_N "checking
for RTLD_NOLOAD...
$ECHO_C" >&6; }
15657 cat >conftest.$ac_ext <<_ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15667 int foo = RTLD_NOLOAD;
15672 rm -f conftest.$ac_objext conftest$ac_exeext
15673 if { (ac_try="$ac_link"
15674 case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15679 (eval "$ac_link") 2>conftest.er1
15681 grep -v '^ *+' conftest.er1 >conftest.err
15683 cat conftest.err >&5
15684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15685 (exit $ac_status); } && {
15686 test -z "$ac_c_werror_flag" ||
15687 test ! -s conftest.err
15688 } && test -s conftest$ac_exeext &&
15689 $as_test_x conftest$ac_exeext; then
15690 { echo "$as_me:$LINENO: result
: yes" >&5
15691 echo "${ECHO_T}yes" >&6; }
15693 cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_RTLD_NOLOAD 1
15698 echo "$as_me: failed program was
:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15701 { echo "$as_me:$LINENO: result
: no
" >&5
15702 echo "${ECHO_T}no
" >&6; }
15706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15707 conftest$ac_exeext conftest.$ac_ext
15709 { echo "$as_me:$LINENO: checking
for IP_MTU_DISCOVER
" >&5
15710 echo $ECHO_N "checking
for IP_MTU_DISCOVER...
$ECHO_C" >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 #include <netinet/in.h>
15721 int foo = IP_MTU_DISCOVER;
15726 rm -f conftest.$ac_objext conftest$ac_exeext
15727 if { (ac_try="$ac_link"
15728 case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_link") 2>conftest.er1
15735 grep -v '^ *+' conftest.er1 >conftest.err
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15739 (exit $ac_status); } && {
15740 test -z "$ac_c_werror_flag" ||
15741 test ! -s conftest.err
15742 } && test -s conftest$ac_exeext &&
15743 $as_test_x conftest$ac_exeext; then
15744 { echo "$as_me:$LINENO: result
: yes" >&5
15745 echo "${ECHO_T}yes" >&6; }
15747 cat >>confdefs.h <<\_ACEOF
15748 #define HAVE_IP_MTU_DISCOVER 1
15752 echo "$as_me: failed program was
:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 { echo "$as_me:$LINENO: result
: no
" >&5
15756 echo "${ECHO_T}no
" >&6; }
15760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15761 conftest$ac_exeext conftest.$ac_ext
15763 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15764 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15765 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15766 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15767 echo $ECHO_N "(cached
) $ECHO_C" >&6
15769 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15770 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15772 # Is the header compilable?
15773 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h usability
" >&5
15774 echo $ECHO_N "checking libkern
/OSAtomic.h usability...
$ECHO_C" >&6; }
15775 cat >conftest.$ac_ext <<_ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 $ac_includes_default
15782 #include <libkern/OSAtomic.h>
15784 rm -f conftest.$ac_objext
15785 if { (ac_try="$ac_compile"
15786 case "(($ac_try" in
15787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788 *) ac_try_echo=$ac_try;;
15790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15791 (eval "$ac_compile") 2>conftest.er1
15793 grep -v '^ *+' conftest.er1 >conftest.err
15795 cat conftest.err >&5
15796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15797 (exit $ac_status); } && {
15798 test -z "$ac_c_werror_flag" ||
15799 test ! -s conftest.err
15800 } && test -s conftest.$ac_objext; then
15801 ac_header_compiler=yes
15803 echo "$as_me: failed program was
:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15806 ac_header_compiler=no
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15810 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15811 echo "${ECHO_T}$ac_header_compiler" >&6; }
15813 # Is the header present?
15814 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h presence
" >&5
15815 echo $ECHO_N "checking libkern
/OSAtomic.h presence...
$ECHO_C" >&6; }
15816 cat >conftest.$ac_ext <<_ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 #include <libkern/OSAtomic.h>
15824 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15825 case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15832 grep -v '^ *+' conftest.er1 >conftest.err
15834 cat conftest.err >&5
15835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15836 (exit $ac_status); } >/dev/null && {
15837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15838 test ! -s conftest.err
15840 ac_header_preproc=yes
15842 echo "$as_me: failed program was
:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15845 ac_header_preproc=no
15848 rm -f conftest.err conftest.$ac_ext
15849 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15850 echo "${ECHO_T}$ac_header_preproc" >&6; }
15852 # So? What about this header?
15853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15855 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15856 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15857 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the compiler
's result" >&5
15858 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result
" >&2;}
15859 ac_header_preproc=yes
15862 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&5
15863 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&2;}
15864 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&5
15865 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&2;}
15866 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&5
15867 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&2;}
15868 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15869 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15870 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the preprocessor
's result" >&5
15871 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result
" >&2;}
15872 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&5
15873 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&2;}
15875 ## ------------------------------- ##
15876 ## Report this to www.asterisk.org ##
15877 ## ------------------------------- ##
15879 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15882 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15883 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15884 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15885 echo $ECHO_N "(cached
) $ECHO_C" >&6
15887 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15889 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15890 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15893 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15895 cat >>confdefs.h <<_ACEOF
15896 #define HAVE_OSX_ATOMICS 1
15903 { echo "$as_me:$LINENO: checking
for int
" >&5
15904 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
15905 if test "${ac_cv_type_int+set}" = set; then
15906 echo $ECHO_N "(cached
) $ECHO_C" >&6
15908 cat >conftest.$ac_ext <<_ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 $ac_includes_default
15915 typedef int ac__type_new_;
15919 if ((ac__type_new_ *) 0)
15921 if (sizeof (ac__type_new_))
15927 rm -f conftest.$ac_objext
15928 if { (ac_try="$ac_compile"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_compile") 2>conftest.er1
15936 grep -v '^ *+' conftest.er1 >conftest.err
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest.$ac_objext; then
15946 echo "$as_me: failed program was
:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
15955 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15957 # The cast to long int works around a bug in the HP C Compiler
15958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15960 # This bug is HP SR number 8606223364.
15961 { echo "$as_me:$LINENO: checking size of int
" >&5
15962 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
15963 if test "${ac_cv_sizeof_int+set}" = set; then
15964 echo $ECHO_N "(cached
) $ECHO_C" >&6
15966 if test "$cross_compiling" = yes; then
15967 # Depending upon the size, compute the lo and hi bounds.
15968 cat >conftest.$ac_ext <<_ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 $ac_includes_default
15975 typedef int ac__type_sizeof_;
15979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15986 rm -f conftest.$ac_objext
15987 if { (ac_try="$ac_compile"
15988 case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_compile") 2>conftest.er1
15995 grep -v '^ *+' conftest.er1 >conftest.err
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15999 (exit $ac_status); } && {
16000 test -z "$ac_c_werror_flag" ||
16001 test ! -s conftest.err
16002 } && test -s conftest.$ac_objext; then
16005 cat >conftest.$ac_ext <<_ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 $ac_includes_default
16012 typedef int ac__type_sizeof_;
16016 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16023 rm -f conftest.$ac_objext
16024 if { (ac_try="$ac_compile"
16025 case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_compile") 2>conftest.er1
16032 grep -v '^ *+' conftest.er1 >conftest.err
16034 cat conftest.err >&5
16035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16036 (exit $ac_status); } && {
16037 test -z "$ac_c_werror_flag" ||
16038 test ! -s conftest.err
16039 } && test -s conftest.$ac_objext; then
16040 ac_hi=$ac_mid; break
16042 echo "$as_me: failed program was
:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16045 ac_lo=`expr $ac_mid + 1`
16046 if test $ac_lo -le $ac_mid; then
16050 ac_mid=`expr 2 '*' $ac_mid + 1`
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056 echo "$as_me: failed program was
:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16059 cat >conftest.$ac_ext <<_ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 $ac_includes_default
16066 typedef int ac__type_sizeof_;
16070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
16077 rm -f conftest.$ac_objext
16078 if { (ac_try="$ac_compile"
16079 case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_compile") 2>conftest.er1
16086 grep -v '^ *+' conftest.er1 >conftest.err
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16090 (exit $ac_status); } && {
16091 test -z "$ac_c_werror_flag" ||
16092 test ! -s conftest.err
16093 } && test -s conftest.$ac_objext; then
16096 cat >conftest.$ac_ext <<_ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16102 $ac_includes_default
16103 typedef int ac__type_sizeof_;
16107 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
16114 rm -f conftest.$ac_objext
16115 if { (ac_try="$ac_compile"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_compile") 2>conftest.er1
16123 grep -v '^ *+' conftest.er1 >conftest.err
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16127 (exit $ac_status); } && {
16128 test -z "$ac_c_werror_flag" ||
16129 test ! -s conftest.err
16130 } && test -s conftest.$ac_objext; then
16131 ac_lo=$ac_mid; break
16133 echo "$as_me: failed program was
:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16136 ac_hi=`expr '(' $ac_mid ')' - 1`
16137 if test $ac_mid -le $ac_hi; then
16141 ac_mid=`expr 2 '*' $ac_mid`
16144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147 echo "$as_me: failed program was
:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16157 # Binary search between lo and hi bounds.
16158 while test "x
$ac_lo" != "x
$ac_hi"; do
16159 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16160 cat >conftest.$ac_ext <<_ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 $ac_includes_default
16167 typedef int ac__type_sizeof_;
16171 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16178 rm -f conftest.$ac_objext
16179 if { (ac_try="$ac_compile"
16180 case "(($ac_try" in
16181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182 *) ac_try_echo=$ac_try;;
16184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16185 (eval "$ac_compile") 2>conftest.er1
16187 grep -v '^ *+' conftest.er1 >conftest.err
16189 cat conftest.err >&5
16190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16191 (exit $ac_status); } && {
16192 test -z "$ac_c_werror_flag" ||
16193 test ! -s conftest.err
16194 } && test -s conftest.$ac_objext; then
16197 echo "$as_me: failed program was
:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16200 ac_lo=`expr '(' $ac_mid ')' + 1`
16203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206 ?*) ac_cv_sizeof_int=$ac_lo;;
16207 '') if test "$ac_cv_type_int" = yes; then
16208 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
16209 See \
`config.log' for more details." >&5
16210 echo "$as_me: error: cannot compute sizeof (int)
16211 See \`config.log
' for more details." >&2;}
16212 { (exit 77); exit 77; }; }
16218 cat >conftest.$ac_ext <<_ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 $ac_includes_default
16225 typedef int ac__type_sizeof_;
16226 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16227 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16229 #include <stdlib.h>
16234 FILE *f = fopen ("conftest.val", "w");
16237 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16239 long int i = longval ();
16240 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16242 fprintf (f, "%ld\n", i);
16246 unsigned long int i = ulongval ();
16247 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16249 fprintf (f, "%lu\n", i);
16251 return ferror (f) || fclose (f) != 0;
16257 rm -f conftest$ac_exeext
16258 if { (ac_try="$ac_link"
16259 case "(($ac_try" in
16260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261 *) ac_try_echo=$ac_try;;
16263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16264 (eval "$ac_link") 2>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16268 { (case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_try") 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_cv_sizeof_int=`cat conftest.val`
16279 echo "$as_me: program exited with status $ac_status" >&5
16280 echo "$as_me: failed program was:" >&5
16281 sed 's
/^
/|
/' conftest.$ac_ext >&5
16283 ( exit $ac_status )
16284 if test "$ac_cv_type_int" = yes; then
16285 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16286 See \`config.log' for more details.
" >&5
16287 echo "$as_me: error
: cannot compute sizeof
(int
)
16288 See \
`config.log' for more details." >&2;}
16289 { (exit 77); exit 77; }; }
16294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16298 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16299 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16303 cat >>confdefs.h <<_ACEOF
16304 #define SIZEOF_INT $ac_cv_sizeof_int
16309 # do the package library checks now
16312 if test "${USE_ALSA}" != "no"; then
16314 if test "x${ALSA_DIR}" != "x"; then
16315 if test -d ${ALSA_DIR}/lib; then
16316 pbxlibdir="-L${ALSA_DIR}/lib"
16318 pbxlibdir="-L${ALSA_DIR}"
16321 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16322 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16323 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 ac_check_lib_save_LIBS=$LIBS
16327 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16328 cat >conftest.$ac_ext <<_ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16335 /* Override any GCC internal prototype to avoid an error.
16336 Use char because int might match the return type of a GCC
16337 builtin and then its argument prototype would still apply. */
16341 char snd_spcm_init ();
16345 return snd_spcm_init ();
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (ac_try="$ac_link"
16352 case "(($ac_try" in
16353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16354 *) ac_try_echo
=$ac_try;;
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_link") 2>conftest.er1
16359 grep -v '^ *+' conftest.er1
>conftest.err
16361 cat conftest.err
>&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } && {
16364 test -z "$ac_c_werror_flag" ||
16365 test ! -s conftest.err
16366 } && test -s conftest
$ac_exeext &&
16367 $as_test_x conftest
$ac_exeext; then
16368 ac_cv_lib_asound_snd_spcm_init
=yes
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.
$ac_ext >&5
16373 ac_cv_lib_asound_snd_spcm_init
=no
16376 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16377 conftest
$ac_exeext conftest.
$ac_ext
16378 LIBS
=$ac_check_lib_save_LIBS
16380 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16381 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16382 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16389 if test "${AST_ALSA_FOUND}" = "yes"; then
16390 ALSA_LIB
="-lasound -lm -ldl"
16391 ALSA_HEADER_FOUND
="1"
16392 if test "x${ALSA_DIR}" != "x"; then
16393 ALSA_LIB
="${pbxlibdir} ${ALSA_LIB}"
16394 ALSA_INCLUDE
="-I${ALSA_DIR}/include"
16395 saved_cppflags
="${CPPFLAGS}"
16396 CPPFLAGS
="${CPPFLAGS} -I${ALSA_DIR}/include"
16397 if test "xalsa/asoundlib.h" != "x" ; then
16398 as_ac_Header
=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16399 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16400 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16401 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16402 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 ac_res
=`eval echo '${'$as_ac_Header'}'`
16406 { echo "$as_me:$LINENO: result: $ac_res" >&5
16407 echo "${ECHO_T}$ac_res" >&6; }
16409 # Is the header compilable?
16410 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16411 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16412 cat >conftest.
$ac_ext <<_ACEOF
16415 cat confdefs.h
>>conftest.
$ac_ext
16416 cat >>conftest.
$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 $ac_includes_default
16419 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16421 rm -f conftest.
$ac_objext
16422 if { (ac_try
="$ac_compile"
16423 case "(($ac_try" in
16424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_compile") 2>conftest.er1
16430 grep -v '^ *+' conftest.er1 >conftest.err
16432 cat conftest.err >&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } && {
16435 test -z "$ac_c_werror_flag" ||
16436 test ! -s conftest.err
16437 } && test -s conftest.$ac_objext; then
16438 ac_header_compiler=yes
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 ac_header_compiler=no
16446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16448 echo "${ECHO_T}$ac_header_compiler" >&6; }
16450 # Is the header present?
16451 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16452 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16453 cat >conftest.$ac_ext <<_ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16461 if { (ac_try="$ac_cpp conftest.$ac_ext"
16462 case "(($ac_try" in
16463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16464 *) ac_try_echo
=$ac_try;;
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16469 grep -v '^ *+' conftest.er1
>conftest.err
16471 cat conftest.err
>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } >/dev
/null
&& {
16474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16475 test ! -s conftest.err
16477 ac_header_preproc
=yes
16479 echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.
$ac_ext >&5
16482 ac_header_preproc
=no
16485 rm -f conftest.err conftest.
$ac_ext
16486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16487 echo "${ECHO_T}$ac_header_preproc" >&6; }
16489 # So? What about this header?
16490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16492 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16493 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16495 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16496 ac_header_preproc
=yes
16499 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16500 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16502 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16504 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16506 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16508 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16510 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16512 ## ------------------------------- ##
16513 ## Report this to www.asterisk.org ##
16514 ## ------------------------------- ##
16516 ) |
sed "s/^/$as_me: WARNING: /" >&2
16519 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16520 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16521 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 eval "$as_ac_Header=\$ac_header_preproc"
16526 ac_res
=`eval echo '${'$as_ac_Header'}'`
16527 { echo "$as_me:$LINENO: result: $ac_res" >&5
16528 echo "${ECHO_T}$ac_res" >&6; }
16531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16532 ALSA_HEADER_FOUND
=1
16534 ALSA_HEADER_FOUND
=0
16539 CPPFLAGS
="${saved_cppflags}"
16541 if test "xalsa/asoundlib.h" != "x" ; then
16542 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16543 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16544 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16545 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16549 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16551 # Is the header compilable?
16552 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16553 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16554 cat >conftest.
$ac_ext <<_ACEOF
16557 cat confdefs.h
>>conftest.
$ac_ext
16558 cat >>conftest.
$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16560 $ac_includes_default
16561 #include <alsa/asoundlib.h>
16563 rm -f conftest.
$ac_objext
16564 if { (ac_try
="$ac_compile"
16565 case "(($ac_try" in
16566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_compile") 2>conftest.er1
16572 grep -v '^ *+' conftest.er1 >conftest.err
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } && {
16577 test -z "$ac_c_werror_flag" ||
16578 test ! -s conftest.err
16579 } && test -s conftest.$ac_objext; then
16580 ac_header_compiler=yes
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ac_header_compiler=no
16588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16590 echo "${ECHO_T}$ac_header_compiler" >&6; }
16592 # Is the header present?
16593 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16594 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16595 cat >conftest.$ac_ext <<_ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 #include <alsa/asoundlib.h>
16603 if { (ac_try="$ac_cpp conftest.$ac_ext"
16604 case "(($ac_try" in
16605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16606 *) ac_try_echo
=$ac_try;;
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16611 grep -v '^ *+' conftest.er1
>conftest.err
16613 cat conftest.err
>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } >/dev
/null
&& {
16616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16617 test ! -s conftest.err
16619 ac_header_preproc
=yes
16621 echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.
$ac_ext >&5
16624 ac_header_preproc
=no
16627 rm -f conftest.err conftest.
$ac_ext
16628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16629 echo "${ECHO_T}$ac_header_preproc" >&6; }
16631 # So? What about this header?
16632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16634 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16635 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16637 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16638 ac_header_preproc
=yes
16641 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16642 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16644 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16646 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16647 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16648 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16650 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16651 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16652 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16654 ## ------------------------------- ##
16655 ## Report this to www.asterisk.org ##
16656 ## ------------------------------- ##
16658 ) |
sed "s/^/$as_me: WARNING: /" >&2
16661 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16662 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16663 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 ac_cv_header_alsa_asoundlib_h
=$ac_header_preproc
16668 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16669 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16672 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16673 ALSA_HEADER_FOUND
=1
16675 ALSA_HEADER_FOUND
=0
16681 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16682 if test -n "${ALSA_MANDATORY}" ;
16684 { echo "$as_me:$LINENO: ***" >&5
16685 echo "$as_me: ***" >&6;}
16686 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16687 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16688 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16689 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16690 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16691 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16700 cat >>confdefs.h
<<_ACEOF
16701 #define HAVE_ALSA 1
16705 elif test -n "${ALSA_MANDATORY}";
16707 { echo "$as_me:$LINENO: ***" >&5
16708 echo "$as_me: ***" >&6;}
16709 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16710 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16711 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16712 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16713 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16714 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16721 if test "${USE_CURSES}" != "no"; then
16723 if test "x${CURSES_DIR}" != "x"; then
16724 if test -d ${CURSES_DIR}/lib
; then
16725 pbxlibdir
="-L${CURSES_DIR}/lib"
16727 pbxlibdir
="-L${CURSES_DIR}"
16730 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16731 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16732 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16735 ac_check_lib_save_LIBS
=$LIBS
16736 LIBS
="-lcurses ${pbxlibdir} $LIBS"
16737 cat >conftest.
$ac_ext <<_ACEOF
16740 cat confdefs.h
>>conftest.
$ac_ext
16741 cat >>conftest.
$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16744 /* Override any GCC internal prototype to avoid an error.
16745 Use char because int might match the return type of a GCC
16746 builtin and then its argument prototype would still apply. */
16759 rm -f conftest.
$ac_objext conftest
$ac_exeext
16760 if { (ac_try
="$ac_link"
16761 case "(($ac_try" in
16762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_link") 2>conftest.er1
16768 grep -v '^ *+' conftest.er1 >conftest.err
16770 cat conftest.err >&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } && {
16773 test -z "$ac_c_werror_flag" ||
16774 test ! -s conftest.err
16775 } && test -s conftest$ac_exeext &&
16776 $as_test_x conftest$ac_exeext; then
16777 ac_cv_lib_curses_initscr=yes
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ac_cv_lib_curses_initscr=no
16785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16786 conftest$ac_exeext conftest.$ac_ext
16787 LIBS=$ac_check_lib_save_LIBS
16789 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16790 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16791 if test $ac_cv_lib_curses_initscr = yes; then
16792 AST_CURSES_FOUND=yes
16794 AST_CURSES_FOUND=no
16798 if test "${AST_CURSES_FOUND}" = "yes"; then
16799 CURSES_LIB="-lcurses "
16800 CURSES_HEADER_FOUND="1"
16801 if test "x${CURSES_DIR}" != "x"; then
16802 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16803 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16804 saved_cppflags="${CPPFLAGS}"
16805 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16806 if test "xcurses.h" != "x" ; then
16807 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" |
$as_tr_sh`
16808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16809 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16810 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 ac_res=`eval echo '${'$as_ac_Header'}'`
16815 { echo "$as_me:$LINENO: result: $ac_res" >&5
16816 echo "${ECHO_T}$ac_res" >&6; }
16818 # Is the header compilable?
16819 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16820 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16821 cat >conftest.$ac_ext <<_ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 $ac_includes_default
16828 #include <${CURSES_DIR}/include/curses.h>
16830 rm -f conftest.$ac_objext
16831 if { (ac_try="$ac_compile"
16832 case "(($ac_try" in
16833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16834 *) ac_try_echo
=$ac_try;;
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_compile") 2>conftest.er1
16839 grep -v '^ *+' conftest.er1
>conftest.err
16841 cat conftest.err
>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } && {
16844 test -z "$ac_c_werror_flag" ||
16845 test ! -s conftest.err
16846 } && test -s conftest.
$ac_objext; then
16847 ac_header_compiler
=yes
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.
$ac_ext >&5
16852 ac_header_compiler
=no
16855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16857 echo "${ECHO_T}$ac_header_compiler" >&6; }
16859 # Is the header present?
16860 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16861 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16862 cat >conftest.
$ac_ext <<_ACEOF
16865 cat confdefs.h
>>conftest.
$ac_ext
16866 cat >>conftest.
$ac_ext <<_ACEOF
16867 /* end confdefs.h. */
16868 #include <${CURSES_DIR}/include/curses.h>
16870 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16871 case "(($ac_try" in
16872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16878 grep -v '^ *+' conftest.er1 >conftest.err
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } >/dev/null && {
16883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16884 test ! -s conftest.err
16886 ac_header_preproc=yes
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 ac_header_preproc=no
16894 rm -f conftest.err conftest.$ac_ext
16895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16896 echo "${ECHO_T}$ac_header_preproc" >&6; }
16898 # So? What about this header?
16899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16901 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16902 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16903 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16904 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16905 ac_header_preproc=yes
16908 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16909 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16911 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16913 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16915 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16917 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16919 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16921 ## ------------------------------- ##
16922 ## Report this to www.asterisk.org ##
16923 ## ------------------------------- ##
16925 ) | sed "s/^/$as_me: WARNING: /" >&2
16928 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16929 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 eval "$as_ac_Header=\$ac_header_preproc"
16935 ac_res=`eval echo '${'$as_ac_Header'}'`
16936 { echo "$as_me:$LINENO: result: $ac_res" >&5
16937 echo "${ECHO_T}$ac_res" >&6; }
16940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16941 CURSES_HEADER_FOUND=1
16943 CURSES_HEADER_FOUND=0
16948 CPPFLAGS="${saved_cppflags}"
16950 if test "xcurses.h" != "x" ; then
16951 if test "${ac_cv_header_curses_h+set}" = set; then
16952 { echo "$as_me:$LINENO: checking for curses.h" >&5
16953 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16954 if test "${ac_cv_header_curses_h+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16957 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16958 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16960 # Is the header compilable?
16961 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16962 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16963 cat >conftest.$ac_ext <<_ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16969 $ac_includes_default
16970 #include <curses.h>
16972 rm -f conftest.$ac_objext
16973 if { (ac_try="$ac_compile"
16974 case "(($ac_try" in
16975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16976 *) ac_try_echo
=$ac_try;;
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979 (eval "$ac_compile") 2>conftest.er1
16981 grep -v '^ *+' conftest.er1
>conftest.err
16983 cat conftest.err
>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && {
16986 test -z "$ac_c_werror_flag" ||
16987 test ! -s conftest.err
16988 } && test -s conftest.
$ac_objext; then
16989 ac_header_compiler
=yes
16991 echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.
$ac_ext >&5
16994 ac_header_compiler
=no
16997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16999 echo "${ECHO_T}$ac_header_compiler" >&6; }
17001 # Is the header present?
17002 { echo "$as_me:$LINENO: checking curses.h presence" >&5
17003 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
17004 cat >conftest.
$ac_ext <<_ACEOF
17007 cat confdefs.h
>>conftest.
$ac_ext
17008 cat >>conftest.
$ac_ext <<_ACEOF
17009 /* end confdefs.h. */
17010 #include <curses.h>
17012 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17013 case "(($ac_try" in
17014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17020 grep -v '^ *+' conftest.er1 >conftest.err
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } >/dev/null && {
17025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17026 test ! -s conftest.err
17028 ac_header_preproc=yes
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 ac_header_preproc=no
17036 rm -f conftest.err conftest.$ac_ext
17037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17038 echo "${ECHO_T}$ac_header_preproc" >&6; }
17040 # So? What about this header?
17041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17043 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
17044 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17045 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
17046 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
17047 ac_header_preproc=yes
17050 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
17051 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
17052 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
17053 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
17054 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
17055 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
17056 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
17057 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
17058 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
17059 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
17060 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
17061 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
17063 ## ------------------------------- ##
17064 ## Report this to www.asterisk.org ##
17065 ## ------------------------------- ##
17067 ) | sed "s/^/$as_me: WARNING: /" >&2
17070 { echo "$as_me:$LINENO: checking for curses.h" >&5
17071 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
17072 if test "${ac_cv_header_curses_h+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17075 ac_cv_header_curses_h=$ac_header_preproc
17077 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
17078 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
17081 if test $ac_cv_header_curses_h = yes; then
17082 CURSES_HEADER_FOUND=1
17084 CURSES_HEADER_FOUND=0
17090 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
17091 if test -n "${CURSES_MANDATORY}" ;
17093 { echo "$as_me:$LINENO: ***" >&5
17094 echo "$as_me: ***" >&6;}
17095 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
17096 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
17097 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
17098 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
17099 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
17100 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
17109 cat >>confdefs.h <<_ACEOF
17110 #define HAVE_CURSES 1
17114 elif test -n "${CURSES_MANDATORY}";
17116 { echo "$as_me:$LINENO: ***" >&5
17117 echo "$as_me: ***" >&6;}
17118 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
17119 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
17120 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17121 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17122 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
17123 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
17129 if test "x${host_os}" = "xlinux-gnu" ; then
17131 if test "${USE_CAP}" != "no"; then
17133 if test "x${CAP_DIR}" != "x"; then
17134 if test -d ${CAP_DIR}/lib; then
17135 pbxlibdir="-L${CAP_DIR}/lib"
17137 pbxlibdir="-L${CAP_DIR}"
17140 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
17141 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
17142 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
17143 echo $ECHO_N "(cached) $ECHO_C" >&6
17145 ac_check_lib_save_LIBS=$LIBS
17146 LIBS="-lcap ${pbxlibdir} $LIBS"
17147 cat >conftest.$ac_ext <<_ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17154 /* Override any GCC internal prototype to avoid an error.
17155 Use char because int might match the return type of a GCC
17156 builtin and then its argument prototype would still apply. */
17160 char cap_from_text ();
17164 return cap_from_text ();
17169 rm -f conftest.$ac_objext conftest$ac_exeext
17170 if { (ac_try="$ac_link"
17171 case "(($ac_try" in
17172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17173 *) ac_try_echo
=$ac_try;;
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_link") 2>conftest.er1
17178 grep -v '^ *+' conftest.er1
>conftest.err
17180 cat conftest.err
>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } && {
17183 test -z "$ac_c_werror_flag" ||
17184 test ! -s conftest.err
17185 } && test -s conftest
$ac_exeext &&
17186 $as_test_x conftest
$ac_exeext; then
17187 ac_cv_lib_cap_cap_from_text
=yes
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.
$ac_ext >&5
17192 ac_cv_lib_cap_cap_from_text
=no
17195 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17196 conftest
$ac_exeext conftest.
$ac_ext
17197 LIBS
=$ac_check_lib_save_LIBS
17199 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
17200 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
17201 if test $ac_cv_lib_cap_cap_from_text = yes; then
17208 if test "${AST_CAP_FOUND}" = "yes"; then
17210 CAP_HEADER_FOUND
="1"
17211 if test "x${CAP_DIR}" != "x"; then
17212 CAP_LIB
="${pbxlibdir} ${CAP_LIB}"
17213 CAP_INCLUDE
="-I${CAP_DIR}/include"
17214 saved_cppflags
="${CPPFLAGS}"
17215 CPPFLAGS
="${CPPFLAGS} -I${CAP_DIR}/include"
17216 if test "xsys/capability.h" != "x" ; then
17217 as_ac_Header
=`echo "ac_cv_header_${CAP_DIR}/include/sys/capability.h" | $as_tr_sh`
17218 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17219 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17220 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17221 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 ac_res
=`eval echo '${'$as_ac_Header'}'`
17225 { echo "$as_me:$LINENO: result: $ac_res" >&5
17226 echo "${ECHO_T}$ac_res" >&6; }
17228 # Is the header compilable?
17229 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h usability" >&5
17230 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h usability... $ECHO_C" >&6; }
17231 cat >conftest.
$ac_ext <<_ACEOF
17234 cat confdefs.h
>>conftest.
$ac_ext
17235 cat >>conftest.
$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 $ac_includes_default
17238 #include <${CAP_DIR}/include/sys/capability.h>
17240 rm -f conftest.
$ac_objext
17241 if { (ac_try
="$ac_compile"
17242 case "(($ac_try" in
17243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_compile") 2>conftest.er1
17249 grep -v '^ *+' conftest.er1 >conftest.err
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } && {
17254 test -z "$ac_c_werror_flag" ||
17255 test ! -s conftest.err
17256 } && test -s conftest.$ac_objext; then
17257 ac_header_compiler=yes
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17262 ac_header_compiler=no
17265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17267 echo "${ECHO_T}$ac_header_compiler" >&6; }
17269 # Is the header present?
17270 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h presence" >&5
17271 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h presence... $ECHO_C" >&6; }
17272 cat >conftest.$ac_ext <<_ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278 #include <${CAP_DIR}/include/sys/capability.h>
17280 if { (ac_try="$ac_cpp conftest.$ac_ext"
17281 case "(($ac_try" in
17282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17283 *) ac_try_echo
=$ac_try;;
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17288 grep -v '^ *+' conftest.er1
>conftest.err
17290 cat conftest.err
>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } >/dev
/null
&& {
17293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17294 test ! -s conftest.err
17296 ac_header_preproc
=yes
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.
$ac_ext >&5
17301 ac_header_preproc
=no
17304 rm -f conftest.err conftest.
$ac_ext
17305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17306 echo "${ECHO_T}$ac_header_preproc" >&6; }
17308 # So? What about this header?
17309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17311 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17312 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17313 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&5
17314 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&2;}
17315 ac_header_preproc
=yes
17318 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&5
17319 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&5
17321 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&5
17323 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17325 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17326 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&5
17327 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&5
17329 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&2;}
17331 ## ------------------------------- ##
17332 ## Report this to www.asterisk.org ##
17333 ## ------------------------------- ##
17335 ) |
sed "s/^/$as_me: WARNING: /" >&2
17338 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17339 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17340 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 eval "$as_ac_Header=\$ac_header_preproc"
17345 ac_res
=`eval echo '${'$as_ac_Header'}'`
17346 { echo "$as_me:$LINENO: result: $ac_res" >&5
17347 echo "${ECHO_T}$ac_res" >&6; }
17350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17358 CPPFLAGS
="${saved_cppflags}"
17360 if test "xsys/capability.h" != "x" ; then
17361 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17362 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17363 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17364 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17368 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17370 # Is the header compilable?
17371 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
17372 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
17373 cat >conftest.
$ac_ext <<_ACEOF
17376 cat confdefs.h
>>conftest.
$ac_ext
17377 cat >>conftest.
$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17379 $ac_includes_default
17380 #include <sys/capability.h>
17382 rm -f conftest.
$ac_objext
17383 if { (ac_try
="$ac_compile"
17384 case "(($ac_try" in
17385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_compile") 2>conftest.er1
17391 grep -v '^ *+' conftest.er1 >conftest.err
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } && {
17396 test -z "$ac_c_werror_flag" ||
17397 test ! -s conftest.err
17398 } && test -s conftest.$ac_objext; then
17399 ac_header_compiler=yes
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17404 ac_header_compiler=no
17407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17409 echo "${ECHO_T}$ac_header_compiler" >&6; }
17411 # Is the header present?
17412 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17413 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17414 cat >conftest.$ac_ext <<_ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17420 #include <sys/capability.h>
17422 if { (ac_try="$ac_cpp conftest.$ac_ext"
17423 case "(($ac_try" in
17424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17425 *) ac_try_echo
=$ac_try;;
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17430 grep -v '^ *+' conftest.er1
>conftest.err
17432 cat conftest.err
>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } >/dev
/null
&& {
17435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17436 test ! -s conftest.err
17438 ac_header_preproc
=yes
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.
$ac_ext >&5
17443 ac_header_preproc
=no
17446 rm -f conftest.err conftest.
$ac_ext
17447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17448 echo "${ECHO_T}$ac_header_preproc" >&6; }
17450 # So? What about this header?
17451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17453 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17454 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17455 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17456 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17457 ac_header_preproc
=yes
17460 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17461 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17462 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17463 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17464 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17465 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17466 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17467 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17468 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17469 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17470 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17471 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17473 ## ------------------------------- ##
17474 ## Report this to www.asterisk.org ##
17475 ## ------------------------------- ##
17477 ) |
sed "s/^/$as_me: WARNING: /" >&2
17480 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17481 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17482 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17485 ac_cv_header_sys_capability_h
=$ac_header_preproc
17487 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17488 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17491 if test $ac_cv_header_sys_capability_h = yes; then
17500 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17501 if test -n "${CAP_MANDATORY}" ;
17503 { echo "$as_me:$LINENO: ***" >&5
17504 echo "$as_me: ***" >&6;}
17505 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17506 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17507 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17508 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17509 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17510 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17519 cat >>confdefs.h
<<_ACEOF
17524 elif test -n "${CAP_MANDATORY}";
17526 { echo "$as_me:$LINENO: ***" >&5
17527 echo "$as_me: ***" >&6;}
17528 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17529 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17530 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17531 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17532 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17533 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17541 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17542 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17543 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17544 saved_cppflags
="${CPPFLAGS}"
17545 if test "x${GETIFADDRS_DIR}" != "x"; then
17546 GETIFADDRS_INCLUDE
="-I${GETIFADDRS_DIR}/include"
17548 CPPFLAGS
="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17550 cat >conftest.
$ac_ext <<_ACEOF
17553 cat confdefs.h
>>conftest.
$ac_ext
17554 cat >>conftest.
$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 #include <ifaddrs.h>
17560 struct ifaddrs *p; getifaddrs(&p);
17566 rm -f conftest.
$ac_objext
17567 if { (ac_try
="$ac_compile"
17568 case "(($ac_try" in
17569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_compile") 2>conftest.er1
17575 grep -v '^ *+' conftest.er1 >conftest.err
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } && {
17580 test -z "$ac_c_werror_flag" ||
17581 test ! -s conftest.err
17582 } && test -s conftest.$ac_objext; then
17583 { echo "$as_me:$LINENO: result: yes" >&5
17584 echo "${ECHO_T}yes" >&6; }
17587 cat >>confdefs.h <<\_ACEOF
17588 #define HAVE_GETIFADDRS 1
17592 cat >>confdefs.h <<\_ACEOF
17593 #define HAVE_GETIFADDRS_VERSION
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 { echo "$as_me:$LINENO: result: no" >&5
17602 echo "${ECHO_T}no" >&6; }
17606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17607 CPPFLAGS="${saved_cppflags}"
17614 if test "${USE_GSM}" != "no"; then
17615 if test "${GSM_DIR}" = "internal"; then
17617 elif test "${GSM_DIR}" != ""; then
17620 if test "${GSM_SYSTEM}" = "yes"; then
17622 if test "x${GSM_DIR}" != "x"; then
17623 if test -d ${GSM_DIR}/lib; then
17624 gsmlibdir="-L${GSM_DIR}/lib"
17626 gsmlibdir="-L${GSM_DIR}"
17629 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17630 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17631 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 ac_check_lib_save_LIBS=$LIBS
17635 LIBS="-lgsm ${gsmlibdir} $LIBS"
17636 cat >conftest.$ac_ext <<_ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17643 /* Override any GCC internal prototype to avoid an error.
17644 Use char because int might match the return type of a GCC
17645 builtin and then its argument prototype would still apply. */
17649 char gsm_create ();
17653 return gsm_create ();
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17662 *) ac_try_echo
=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1
>conftest.err
17669 cat conftest.err
>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest
$ac_exeext &&
17675 $as_test_x conftest
$ac_exeext; then
17676 ac_cv_lib_gsm_gsm_create
=yes
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.
$ac_ext >&5
17681 ac_cv_lib_gsm_gsm_create
=no
17684 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17685 conftest
$ac_exeext conftest.
$ac_ext
17686 LIBS
=$ac_check_lib_save_LIBS
17688 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17689 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17690 if test $ac_cv_lib_gsm_gsm_create = yes; then
17692 cat >>confdefs.h
<<_ACEOF
17698 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17699 if test "x${GSM_DIR}" != "x" ; then
17700 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17701 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17702 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17703 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17704 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 ac_res
=`eval echo '${'$as_ac_Header'}'`
17708 { echo "$as_me:$LINENO: result: $ac_res" >&5
17709 echo "${ECHO_T}$ac_res" >&6; }
17711 # Is the header compilable?
17712 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17713 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17714 cat >conftest.
$ac_ext <<_ACEOF
17717 cat confdefs.h
>>conftest.
$ac_ext
17718 cat >>conftest.
$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 $ac_includes_default
17721 #include <${GSM_DIR}/include/gsm.h>
17723 rm -f conftest.
$ac_objext
17724 if { (ac_try
="$ac_compile"
17725 case "(($ac_try" in
17726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_compile") 2>conftest.er1
17732 grep -v '^ *+' conftest.er1 >conftest.err
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } && {
17737 test -z "$ac_c_werror_flag" ||
17738 test ! -s conftest.err
17739 } && test -s conftest.$ac_objext; then
17740 ac_header_compiler=yes
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 ac_header_compiler=no
17748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17750 echo "${ECHO_T}$ac_header_compiler" >&6; }
17752 # Is the header present?
17753 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17754 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17755 cat >conftest.$ac_ext <<_ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 #include <${GSM_DIR}/include/gsm.h>
17763 if { (ac_try="$ac_cpp conftest.$ac_ext"
17764 case "(($ac_try" in
17765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17766 *) ac_try_echo
=$ac_try;;
17768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17771 grep -v '^ *+' conftest.er1
>conftest.err
17773 cat conftest.err
>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } >/dev
/null
&& {
17776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17777 test ! -s conftest.err
17779 ac_header_preproc
=yes
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.
$ac_ext >&5
17784 ac_header_preproc
=no
17787 rm -f conftest.err conftest.
$ac_ext
17788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17789 echo "${ECHO_T}$ac_header_preproc" >&6; }
17791 # So? What about this header?
17792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17794 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17795 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17796 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17797 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17798 ac_header_preproc
=yes
17801 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17802 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17803 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17804 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17805 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17806 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17807 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17808 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17809 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17810 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17811 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17812 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17814 ## ------------------------------- ##
17815 ## Report this to www.asterisk.org ##
17816 ## ------------------------------- ##
17818 ) |
sed "s/^/$as_me: WARNING: /" >&2
17821 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17822 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17823 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17826 eval "$as_ac_Header=\$ac_header_preproc"
17828 ac_res
=`eval echo '${'$as_ac_Header'}'`
17829 { echo "$as_me:$LINENO: result: $ac_res" >&5
17830 echo "${ECHO_T}$ac_res" >&6; }
17833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17840 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17841 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17842 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17843 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17844 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 ac_res
=`eval echo '${'$as_ac_Header'}'`
17848 { echo "$as_me:$LINENO: result: $ac_res" >&5
17849 echo "${ECHO_T}$ac_res" >&6; }
17851 # Is the header compilable?
17852 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17853 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17854 cat >conftest.
$ac_ext <<_ACEOF
17857 cat confdefs.h
>>conftest.
$ac_ext
17858 cat >>conftest.
$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860 $ac_includes_default
17861 #include <${GSM_DIR}/include/gsm/gsm.h>
17863 rm -f conftest.
$ac_objext
17864 if { (ac_try
="$ac_compile"
17865 case "(($ac_try" in
17866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_compile") 2>conftest.er1
17872 grep -v '^ *+' conftest.er1 >conftest.err
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } && {
17877 test -z "$ac_c_werror_flag" ||
17878 test ! -s conftest.err
17879 } && test -s conftest.$ac_objext; then
17880 ac_header_compiler=yes
17882 echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17885 ac_header_compiler=no
17888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17890 echo "${ECHO_T}$ac_header_compiler" >&6; }
17892 # Is the header present?
17893 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17894 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17895 cat >conftest.$ac_ext <<_ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17901 #include <${GSM_DIR}/include/gsm/gsm.h>
17903 if { (ac_try="$ac_cpp conftest.$ac_ext"
17904 case "(($ac_try" in
17905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17906 *) ac_try_echo
=$ac_try;;
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17911 grep -v '^ *+' conftest.er1
>conftest.err
17913 cat conftest.err
>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } >/dev
/null
&& {
17916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17917 test ! -s conftest.err
17919 ac_header_preproc
=yes
17921 echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.
$ac_ext >&5
17924 ac_header_preproc
=no
17927 rm -f conftest.err conftest.
$ac_ext
17928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17929 echo "${ECHO_T}$ac_header_preproc" >&6; }
17931 # So? What about this header?
17932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17934 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17935 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17937 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17938 ac_header_preproc
=yes
17941 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17942 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17943 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17944 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17945 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17946 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17947 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17948 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17949 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17950 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17951 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17952 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17954 ## ------------------------------- ##
17955 ## Report this to www.asterisk.org ##
17956 ## ------------------------------- ##
17958 ) |
sed "s/^/$as_me: WARNING: /" >&2
17961 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17962 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17963 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 eval "$as_ac_Header=\$ac_header_preproc"
17968 ac_res
=`eval echo '${'$as_ac_Header'}'`
17969 { echo "$as_me:$LINENO: result: $ac_res" >&5
17970 echo "${ECHO_T}$ac_res" >&6; }
17973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17974 GSM_GSM_HEADER_FOUND
=1
17976 GSM_GSM_HEADER_FOUND
=0
17981 if test "${ac_cv_header_gsm_h+set}" = set; then
17982 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17983 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17984 if test "${ac_cv_header_gsm_h+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17988 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17990 # Is the header compilable?
17991 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17992 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17993 cat >conftest.
$ac_ext <<_ACEOF
17996 cat confdefs.h
>>conftest.
$ac_ext
17997 cat >>conftest.
$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 $ac_includes_default
18002 rm -f conftest.
$ac_objext
18003 if { (ac_try
="$ac_compile"
18004 case "(($ac_try" in
18005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_compile") 2>conftest.er1
18011 grep -v '^ *+' conftest.er1 >conftest.err
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } && {
18016 test -z "$ac_c_werror_flag" ||
18017 test ! -s conftest.err
18018 } && test -s conftest.$ac_objext; then
18019 ac_header_compiler=yes
18021 echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18024 ac_header_compiler=no
18027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18029 echo "${ECHO_T}$ac_header_compiler" >&6; }
18031 # Is the header present?
18032 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
18033 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
18034 cat >conftest.$ac_ext <<_ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18042 if { (ac_try="$ac_cpp conftest.$ac_ext"
18043 case "(($ac_try" in
18044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18045 *) ac_try_echo
=$ac_try;;
18047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18050 grep -v '^ *+' conftest.er1
>conftest.err
18052 cat conftest.err
>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } >/dev
/null
&& {
18055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18056 test ! -s conftest.err
18058 ac_header_preproc
=yes
18060 echo "$as_me: failed program was:" >&5
18061 sed 's/^/| /' conftest.
$ac_ext >&5
18063 ac_header_preproc
=no
18066 rm -f conftest.err conftest.
$ac_ext
18067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18068 echo "${ECHO_T}$ac_header_preproc" >&6; }
18070 # So? What about this header?
18071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18073 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18074 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
18076 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
18077 ac_header_preproc
=yes
18080 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
18081 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
18083 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
18084 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
18085 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
18086 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
18087 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18088 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
18089 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
18090 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
18091 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
18093 ## ------------------------------- ##
18094 ## Report this to www.asterisk.org ##
18095 ## ------------------------------- ##
18097 ) |
sed "s/^/$as_me: WARNING: /" >&2
18100 { echo "$as_me:$LINENO: checking for gsm.h" >&5
18101 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
18102 if test "${ac_cv_header_gsm_h+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18105 ac_cv_header_gsm_h
=$ac_header_preproc
18107 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
18108 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
18111 if test $ac_cv_header_gsm_h = yes; then
18118 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18119 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
18120 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
18121 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
18125 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
18127 # Is the header compilable?
18128 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
18129 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
18130 cat >conftest.
$ac_ext <<_ACEOF
18133 cat confdefs.h
>>conftest.
$ac_ext
18134 cat >>conftest.
$ac_ext <<_ACEOF
18135 /* end confdefs.h. */
18136 $ac_includes_default
18137 #include <gsm/gsm.h>
18139 rm -f conftest.
$ac_objext
18140 if { (ac_try
="$ac_compile"
18141 case "(($ac_try" in
18142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146 (eval "$ac_compile") 2>conftest.er1
18148 grep -v '^ *+' conftest.er1 >conftest.err
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } && {
18153 test -z "$ac_c_werror_flag" ||
18154 test ! -s conftest.err
18155 } && test -s conftest.$ac_objext; then
18156 ac_header_compiler=yes
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 ac_header_compiler=no
18164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18166 echo "${ECHO_T}$ac_header_compiler" >&6; }
18168 # Is the header present?
18169 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
18170 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
18171 cat >conftest.$ac_ext <<_ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h. */
18177 #include <gsm/gsm.h>
18179 if { (ac_try="$ac_cpp conftest.$ac_ext"
18180 case "(($ac_try" in
18181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18182 *) ac_try_echo
=$ac_try;;
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18187 grep -v '^ *+' conftest.er1
>conftest.err
18189 cat conftest.err
>&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } >/dev
/null
&& {
18192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18193 test ! -s conftest.err
18195 ac_header_preproc
=yes
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.
$ac_ext >&5
18200 ac_header_preproc
=no
18203 rm -f conftest.err conftest.
$ac_ext
18204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18205 echo "${ECHO_T}$ac_header_preproc" >&6; }
18207 # So? What about this header?
18208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18210 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18211 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18212 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
18213 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
18214 ac_header_preproc
=yes
18217 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
18218 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
18219 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
18220 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
18221 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
18222 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
18224 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
18226 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
18228 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
18230 ## ------------------------------- ##
18231 ## Report this to www.asterisk.org ##
18232 ## ------------------------------- ##
18234 ) |
sed "s/^/$as_me: WARNING: /" >&2
18237 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
18238 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
18239 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 ac_cv_header_gsm_gsm_h
=$ac_header_preproc
18244 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
18245 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
18248 if test $ac_cv_header_gsm_gsm_h = yes; then
18249 GSM_GSM_HEADER_FOUND
=1
18251 GSM_GSM_HEADER_FOUND
=0
18256 if test "${GSM_HEADER_FOUND}" = "0" ; then
18257 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
18258 if test "x${GSM_MANDATORY}" = "xyes" ; then
18259 { echo "$as_me:$LINENO: ***" >&5
18260 echo "$as_me: ***" >&6;}
18261 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
18262 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
18263 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
18264 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
18265 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
18266 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
18272 if test "${GSM_HEADER_FOUND}" = "1" ; then
18274 cat >>confdefs.h
<<_ACEOF
18275 #define HAVE_GSM_HEADER 1
18280 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
18282 cat >>confdefs.h
<<_ACEOF
18283 #define HAVE_GSM_GSM_HEADER 1
18289 if test "${GSM_OK}" = "1" ; then
18291 if test "x${GSM_DIR}" != "x"; then
18292 GSM_LIB
="${gsmlibdir} ${GSM_LIB}"
18293 GSM_INCLUDE
="-I${GSM_DIR}/include"
18300 if test "${GSM_INTERNAL}" = "yes"; then
18303 cat >>confdefs.h
<<_ACEOF
18304 #define HAVE_GSM_HEADER 1
18311 if test "${USE_IKSEMEL}" != "no"; then
18313 if test "x${IKSEMEL_DIR}" != "x"; then
18314 if test -d ${IKSEMEL_DIR}/lib
; then
18315 pbxlibdir
="-L${IKSEMEL_DIR}/lib"
18317 pbxlibdir
="-L${IKSEMEL_DIR}"
18320 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18321 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18322 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18323 echo $ECHO_N "(cached) $ECHO_C" >&6
18325 ac_check_lib_save_LIBS
=$LIBS
18326 LIBS
="-liksemel ${pbxlibdir} $LIBS"
18327 cat >conftest.
$ac_ext <<_ACEOF
18330 cat confdefs.h
>>conftest.
$ac_ext
18331 cat >>conftest.
$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18334 /* Override any GCC internal prototype to avoid an error.
18335 Use char because int might match the return type of a GCC
18336 builtin and then its argument prototype would still apply. */
18340 char iks_start_sasl ();
18344 return iks_start_sasl ();
18349 rm -f conftest.
$ac_objext conftest
$ac_exeext
18350 if { (ac_try
="$ac_link"
18351 case "(($ac_try" in
18352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18353 *) ac_try_echo=$ac_try;;
18355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18356 (eval "$ac_link") 2>conftest.er1
18358 grep -v '^ *+' conftest.er1 >conftest.err
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } && {
18363 test -z "$ac_c_werror_flag" ||
18364 test ! -s conftest.err
18365 } && test -s conftest$ac_exeext &&
18366 $as_test_x conftest$ac_exeext; then
18367 ac_cv_lib_iksemel_iks_start_sasl=yes
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18372 ac_cv_lib_iksemel_iks_start_sasl=no
18375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18376 conftest$ac_exeext conftest.$ac_ext
18377 LIBS=$ac_check_lib_save_LIBS
18379 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18380 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18381 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18382 AST_IKSEMEL_FOUND=yes
18384 AST_IKSEMEL_FOUND=no
18388 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18389 IKSEMEL_LIB="-liksemel "
18390 IKSEMEL_HEADER_FOUND="1"
18391 if test "x${IKSEMEL_DIR}" != "x"; then
18392 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
18393 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
18394 saved_cppflags="${CPPFLAGS}"
18395 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
18396 if test "xiksemel.h" != "x" ; then
18397 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" |
$as_tr_sh`
18398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18399 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18400 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18404 ac_res=`eval echo '${'$as_ac_Header'}'`
18405 { echo "$as_me:$LINENO: result: $ac_res" >&5
18406 echo "${ECHO_T}$ac_res" >&6; }
18408 # Is the header compilable?
18409 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
18410 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
18411 cat >conftest.$ac_ext <<_ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18417 $ac_includes_default
18418 #include <${IKSEMEL_DIR}/include/iksemel.h>
18420 rm -f conftest.$ac_objext
18421 if { (ac_try="$ac_compile"
18422 case "(($ac_try" in
18423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18424 *) ac_try_echo
=$ac_try;;
18426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427 (eval "$ac_compile") 2>conftest.er1
18429 grep -v '^ *+' conftest.er1
>conftest.err
18431 cat conftest.err
>&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } && {
18434 test -z "$ac_c_werror_flag" ||
18435 test ! -s conftest.err
18436 } && test -s conftest.
$ac_objext; then
18437 ac_header_compiler
=yes
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.
$ac_ext >&5
18442 ac_header_compiler
=no
18445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18447 echo "${ECHO_T}$ac_header_compiler" >&6; }
18449 # Is the header present?
18450 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
18451 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
18452 cat >conftest.
$ac_ext <<_ACEOF
18455 cat confdefs.h
>>conftest.
$ac_ext
18456 cat >>conftest.
$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 #include <${IKSEMEL_DIR}/include/iksemel.h>
18460 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18461 case "(($ac_try" in
18462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18468 grep -v '^ *+' conftest.er1 >conftest.err
18470 cat conftest.err >&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } >/dev/null && {
18473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18474 test ! -s conftest.err
18476 ac_header_preproc=yes
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 ac_header_preproc=no
18484 rm -f conftest.err conftest.$ac_ext
18485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18486 echo "${ECHO_T}$ac_header_preproc" >&6; }
18488 # So? What about this header?
18489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18491 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18492 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18493 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
18494 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
18495 ac_header_preproc=yes
18498 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
18499 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
18500 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
18501 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
18502 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
18503 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18505 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18506 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
18507 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
18508 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
18509 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
18511 ## ------------------------------- ##
18512 ## Report this to www.asterisk.org ##
18513 ## ------------------------------- ##
18515 ) | sed "s/^/$as_me: WARNING: /" >&2
18518 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18519 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 eval "$as_ac_Header=\$ac_header_preproc"
18525 ac_res=`eval echo '${'$as_ac_Header'}'`
18526 { echo "$as_me:$LINENO: result: $ac_res" >&5
18527 echo "${ECHO_T}$ac_res" >&6; }
18530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18531 IKSEMEL_HEADER_FOUND=1
18533 IKSEMEL_HEADER_FOUND=0
18538 CPPFLAGS="${saved_cppflags}"
18540 if test "xiksemel.h" != "x" ; then
18541 if test "${ac_cv_header_iksemel_h+set}" = set; then
18542 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18543 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18544 if test "${ac_cv_header_iksemel_h+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18548 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18550 # Is the header compilable?
18551 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18552 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18553 cat >conftest.$ac_ext <<_ACEOF
18556 cat confdefs.h >>conftest.$ac_ext
18557 cat >>conftest.$ac_ext <<_ACEOF
18558 /* end confdefs.h. */
18559 $ac_includes_default
18560 #include <iksemel.h>
18562 rm -f conftest.$ac_objext
18563 if { (ac_try="$ac_compile"
18564 case "(($ac_try" in
18565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18566 *) ac_try_echo
=$ac_try;;
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_compile") 2>conftest.er1
18571 grep -v '^ *+' conftest.er1
>conftest.err
18573 cat conftest.err
>&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } && {
18576 test -z "$ac_c_werror_flag" ||
18577 test ! -s conftest.err
18578 } && test -s conftest.
$ac_objext; then
18579 ac_header_compiler
=yes
18581 echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.
$ac_ext >&5
18584 ac_header_compiler
=no
18587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18589 echo "${ECHO_T}$ac_header_compiler" >&6; }
18591 # Is the header present?
18592 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18593 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18594 cat >conftest.
$ac_ext <<_ACEOF
18597 cat confdefs.h
>>conftest.
$ac_ext
18598 cat >>conftest.
$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18600 #include <iksemel.h>
18602 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18603 case "(($ac_try" in
18604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18610 grep -v '^ *+' conftest.er1 >conftest.err
18612 cat conftest.err >&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } >/dev/null && {
18615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18616 test ! -s conftest.err
18618 ac_header_preproc=yes
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 ac_header_preproc=no
18626 rm -f conftest.err conftest.$ac_ext
18627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18628 echo "${ECHO_T}$ac_header_preproc" >&6; }
18630 # So? What about this header?
18631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18633 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18634 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18635 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18636 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18637 ac_header_preproc=yes
18640 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18641 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18642 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18643 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18644 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18645 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18646 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18647 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18648 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18649 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18650 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18651 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18653 ## ------------------------------- ##
18654 ## Report this to www.asterisk.org ##
18655 ## ------------------------------- ##
18657 ) | sed "s/^/$as_me: WARNING: /" >&2
18660 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18661 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18662 if test "${ac_cv_header_iksemel_h+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 ac_cv_header_iksemel_h=$ac_header_preproc
18667 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18668 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18671 if test $ac_cv_header_iksemel_h = yes; then
18672 IKSEMEL_HEADER_FOUND=1
18674 IKSEMEL_HEADER_FOUND=0
18680 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18681 if test -n "${IKSEMEL_MANDATORY}" ;
18683 { echo "$as_me:$LINENO: ***" >&5
18684 echo "$as_me: ***" >&6;}
18685 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18686 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18687 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18688 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18689 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18690 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18699 cat >>confdefs.h <<_ACEOF
18700 #define HAVE_IKSEMEL 1
18704 elif test -n "${IKSEMEL_MANDATORY}";
18706 { echo "$as_me:$LINENO: ***" >&5
18707 echo "$as_me: ***" >&6;}
18708 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18709 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18710 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18711 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18712 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18713 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18719 if test "${PBX_IKSEMEL}" = 1; then
18721 if test "${USE_GNUTLS}" != "no"; then
18723 if test "x${GNUTLS_DIR}" != "x"; then
18724 if test -d ${GNUTLS_DIR}/lib; then
18725 pbxlibdir="-L${GNUTLS_DIR}/lib"
18727 pbxlibdir="-L${GNUTLS_DIR}"
18730 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18731 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18732 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 ac_check_lib_save_LIBS=$LIBS
18736 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18737 cat >conftest.$ac_ext <<_ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18744 /* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18750 char gnutls_bye ();
18754 return gnutls_bye ();
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (ac_try="$ac_link"
18761 case "(($ac_try" in
18762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18763 *) ac_try_echo
=$ac_try;;
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_link") 2>conftest.er1
18768 grep -v '^ *+' conftest.er1
>conftest.err
18770 cat conftest.err
>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest
$ac_exeext &&
18776 $as_test_x conftest
$ac_exeext; then
18777 ac_cv_lib_gnutls_gnutls_bye
=yes
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.
$ac_ext >&5
18782 ac_cv_lib_gnutls_gnutls_bye
=no
18785 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18786 conftest
$ac_exeext conftest.
$ac_ext
18787 LIBS
=$ac_check_lib_save_LIBS
18789 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18790 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18791 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18792 AST_GNUTLS_FOUND
=yes
18794 AST_GNUTLS_FOUND
=no
18798 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18799 GNUTLS_LIB
="-lgnutls -lz -lgcrypt -lgpg-error"
18800 GNUTLS_HEADER_FOUND
="1"
18801 if test "x${GNUTLS_DIR}" != "x"; then
18802 GNUTLS_LIB
="${pbxlibdir} ${GNUTLS_LIB}"
18803 GNUTLS_INCLUDE
="-I${GNUTLS_DIR}/include"
18804 saved_cppflags
="${CPPFLAGS}"
18805 CPPFLAGS
="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18806 if test "xgnutls/gnutls.h" != "x" ; then
18807 as_ac_Header
=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18808 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18809 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18810 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18811 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18814 ac_res
=`eval echo '${'$as_ac_Header'}'`
18815 { echo "$as_me:$LINENO: result: $ac_res" >&5
18816 echo "${ECHO_T}$ac_res" >&6; }
18818 # Is the header compilable?
18819 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18820 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18821 cat >conftest.
$ac_ext <<_ACEOF
18824 cat confdefs.h
>>conftest.
$ac_ext
18825 cat >>conftest.
$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18827 $ac_includes_default
18828 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18830 rm -f conftest.
$ac_objext
18831 if { (ac_try
="$ac_compile"
18832 case "(($ac_try" in
18833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_compile") 2>conftest.er1
18839 grep -v '^ *+' conftest.er1 >conftest.err
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } && {
18844 test -z "$ac_c_werror_flag" ||
18845 test ! -s conftest.err
18846 } && test -s conftest.$ac_objext; then
18847 ac_header_compiler=yes
18849 echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18852 ac_header_compiler=no
18855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18857 echo "${ECHO_T}$ac_header_compiler" >&6; }
18859 # Is the header present?
18860 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18861 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18862 cat >conftest.$ac_ext <<_ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18868 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18870 if { (ac_try="$ac_cpp conftest.$ac_ext"
18871 case "(($ac_try" in
18872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18873 *) ac_try_echo
=$ac_try;;
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18878 grep -v '^ *+' conftest.er1
>conftest.err
18880 cat conftest.err
>&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } >/dev
/null
&& {
18883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18884 test ! -s conftest.err
18886 ac_header_preproc
=yes
18888 echo "$as_me: failed program was:" >&5
18889 sed 's/^/| /' conftest.
$ac_ext >&5
18891 ac_header_preproc
=no
18894 rm -f conftest.err conftest.
$ac_ext
18895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18896 echo "${ECHO_T}$ac_header_preproc" >&6; }
18898 # So? What about this header?
18899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18901 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18902 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18903 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18904 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18905 ac_header_preproc
=yes
18908 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18909 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18910 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18911 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18913 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18914 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18915 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18916 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18917 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18918 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18919 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18921 ## ------------------------------- ##
18922 ## Report this to www.asterisk.org ##
18923 ## ------------------------------- ##
18925 ) |
sed "s/^/$as_me: WARNING: /" >&2
18928 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18929 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18930 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18933 eval "$as_ac_Header=\$ac_header_preproc"
18935 ac_res
=`eval echo '${'$as_ac_Header'}'`
18936 { echo "$as_me:$LINENO: result: $ac_res" >&5
18937 echo "${ECHO_T}$ac_res" >&6; }
18940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18941 GNUTLS_HEADER_FOUND
=1
18943 GNUTLS_HEADER_FOUND
=0
18948 CPPFLAGS
="${saved_cppflags}"
18950 if test "xgnutls/gnutls.h" != "x" ; then
18951 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18952 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18953 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18954 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18958 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18960 # Is the header compilable?
18961 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18962 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18963 cat >conftest.
$ac_ext <<_ACEOF
18966 cat confdefs.h
>>conftest.
$ac_ext
18967 cat >>conftest.
$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18969 $ac_includes_default
18970 #include <gnutls/gnutls.h>
18972 rm -f conftest.
$ac_objext
18973 if { (ac_try
="$ac_compile"
18974 case "(($ac_try" in
18975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_compile") 2>conftest.er1
18981 grep -v '^ *+' conftest.er1 >conftest.err
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } && {
18986 test -z "$ac_c_werror_flag" ||
18987 test ! -s conftest.err
18988 } && test -s conftest.$ac_objext; then
18989 ac_header_compiler=yes
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 ac_header_compiler=no
18997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18999 echo "${ECHO_T}$ac_header_compiler" >&6; }
19001 # Is the header present?
19002 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
19003 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
19004 cat >conftest.$ac_ext <<_ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19010 #include <gnutls/gnutls.h>
19012 if { (ac_try="$ac_cpp conftest.$ac_ext"
19013 case "(($ac_try" in
19014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19015 *) ac_try_echo
=$ac_try;;
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19020 grep -v '^ *+' conftest.er1
>conftest.err
19022 cat conftest.err
>&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); } >/dev
/null
&& {
19025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19026 test ! -s conftest.err
19028 ac_header_preproc
=yes
19030 echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.
$ac_ext >&5
19033 ac_header_preproc
=no
19036 rm -f conftest.err conftest.
$ac_ext
19037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19038 echo "${ECHO_T}$ac_header_preproc" >&6; }
19040 # So? What about this header?
19041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19043 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
19044 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19045 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
19046 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
19047 ac_header_preproc
=yes
19050 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
19051 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
19052 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
19053 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
19054 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
19055 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
19056 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
19057 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
19058 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
19059 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
19060 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
19061 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
19063 ## ------------------------------- ##
19064 ## Report this to www.asterisk.org ##
19065 ## ------------------------------- ##
19067 ) |
sed "s/^/$as_me: WARNING: /" >&2
19070 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
19071 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
19072 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
19073 echo $ECHO_N "(cached) $ECHO_C" >&6
19075 ac_cv_header_gnutls_gnutls_h
=$ac_header_preproc
19077 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
19078 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
19081 if test $ac_cv_header_gnutls_gnutls_h = yes; then
19082 GNUTLS_HEADER_FOUND
=1
19084 GNUTLS_HEADER_FOUND
=0
19090 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
19091 if test -n "${GNUTLS_MANDATORY}" ;
19093 { echo "$as_me:$LINENO: ***" >&5
19094 echo "$as_me: ***" >&6;}
19095 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
19096 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
19097 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
19098 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
19099 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
19100 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
19109 cat >>confdefs.h
<<_ACEOF
19110 #define HAVE_GNUTLS 1
19114 elif test -n "${GNUTLS_MANDATORY}";
19116 { echo "$as_me:$LINENO: ***" >&5
19117 echo "$as_me: ***" >&6;}
19118 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
19119 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
19120 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19121 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19122 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
19123 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
19130 if test "${USE_IMAP_TK}" != "no"; then
19131 saved_cppflags
="${CPPFLAGS}"
19132 saved_libs
="${LIBS}"
19133 switch_to_system_on_failure
="no"
19134 if test "${IMAP_TK_DIR}" = ""; then
19135 IMAP_TK_DIR
=`pwd`"/../imap-2004g"
19136 switch_to_system_on_failure
="yes"
19138 if test "${IMAP_TK_DIR}" != "system"; then
19139 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
19140 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
19141 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
19142 imap_ldflags
=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
19144 imap_libs
="${IMAP_TK_DIR}/c-client/c-client.a"
19145 imap_include
="-I${IMAP_TK_DIR}/c-client"
19146 CPPFLAGS
="${CPPFLAGS} ${imap_include}"
19147 LIBS
="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19148 cat >conftest.$ac_ext <<_ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #include "c-client.h
"
19155 void mm_searched (MAILSTREAM *stream,unsigned long number)
19158 void mm_exists (MAILSTREAM *stream,unsigned long number)
19161 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19164 void mm_flags (MAILSTREAM *stream,unsigned long number)
19167 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19170 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19173 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19176 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19179 void mm_log (char *string,long errflg)
19182 void mm_dlog (char *string)
19185 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19188 void mm_critical (MAILSTREAM *stream)
19191 void mm_nocritical (MAILSTREAM *stream)
19194 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19197 void mm_fatal (char *string)
19204 MAILSTREAM *foo = mail_open(NULL, "", 0);
19211 rm -f conftest.$ac_objext conftest$ac_exeext
19212 if { (ac_try="$ac_link"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_link") 2>conftest.er1
19220 grep -v '^ *+' conftest.er1 >conftest.err
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19224 (exit $ac_status); } && {
19225 test -z "$ac_c_werror_flag" ||
19226 test ! -s conftest.err
19227 } && test -s conftest$ac_exeext &&
19228 $as_test_x conftest$ac_exeext; then
19229 ac_cv_imap_tk="yes"
19231 echo "$as_me: failed program was
:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19239 conftest$ac_exeext conftest.$ac_ext
19240 if test "${ac_cv_imap_tk}" = "yes"; then
19241 cat >conftest.$ac_ext <<_ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 #include "c-client.h
"
19248 void mm_searched (MAILSTREAM *stream,unsigned long number)
19251 void mm_exists (MAILSTREAM *stream,unsigned long number)
19254 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19257 void mm_flags (MAILSTREAM *stream,unsigned long number)
19260 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19263 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19266 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19269 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19272 void mm_log (char *string,long errflg)
19275 void mm_dlog (char *string)
19278 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19281 void mm_critical (MAILSTREAM *stream)
19284 void mm_nocritical (MAILSTREAM *stream)
19287 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19290 void mm_fatal (char *string)
19297 long check = mail_expunge_full(NULL, "", 0);
19304 rm -f conftest.$ac_objext conftest$ac_exeext
19305 if { (ac_try="$ac_link"
19306 case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_link") 2>conftest.er1
19313 grep -v '^ *+' conftest.er1 >conftest.err
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19317 (exit $ac_status); } && {
19318 test -z "$ac_c_werror_flag" ||
19319 test ! -s conftest.err
19320 } && test -s conftest$ac_exeext &&
19321 $as_test_x conftest$ac_exeext; then
19322 ac_cv_imap_tk2006="yes"
19324 echo "$as_me: failed program was
:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_cv_imap_tk2006="no
"
19331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19332 conftest$ac_exeext conftest.$ac_ext
19334 CPPFLAGS="${saved_cppflags}"
19335 LIBS="${saved_libs}"
19336 if test "${ac_cv_imap_tk}" = "no
"; then
19337 { echo "$as_me:$LINENO: result
: no
" >&5
19338 echo "${ECHO_T}no
" >&6; }
19339 if test "${switch_to_system_on_failure}" = "yes"; then
19340 IMAP_TK_DIR="system
"
19341 else #This means they specified a directory. Search for a package installation there too
19342 { echo "$as_me:$LINENO: checking
for system c-client library...
" >&5
19343 echo $ECHO_N "checking
for system c-client library......
$ECHO_C" >&6; }
19344 CPPFLAGS="${saved_cppflags}"
19345 LIBS="${saved_libs}"
19346 imap_include="-I${IMAP_TK_DIR}/include
"
19347 imap_ldflags="-L${IMAP_TK_DIR}/lib
"
19348 imap_libs="-lc-client"
19349 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19350 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
19351 cat >conftest.$ac_ext <<_ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19357 #include "c-client.h
"
19358 void mm_searched (MAILSTREAM *stream,unsigned long number)
19361 void mm_exists (MAILSTREAM *stream,unsigned long number)
19364 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19367 void mm_flags (MAILSTREAM *stream,unsigned long number)
19370 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19373 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19376 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19379 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19382 void mm_log (char *string,long errflg)
19385 void mm_dlog (char *string)
19388 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19391 void mm_critical (MAILSTREAM *stream)
19394 void mm_nocritical (MAILSTREAM *stream)
19397 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19400 void mm_fatal (char *string)
19407 MAILSTREAM *foo = mail_open(NULL, "", 0);
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (ac_try="$ac_link"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_link") 2>conftest.er1
19423 grep -v '^ *+' conftest.er1 >conftest.err
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19427 (exit $ac_status); } && {
19428 test -z "$ac_c_werror_flag" ||
19429 test ! -s conftest.err
19430 } && test -s conftest$ac_exeext &&
19431 $as_test_x conftest$ac_exeext; then
19432 ac_cv_imap_tk="yes"
19434 echo "$as_me: failed program was
:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19442 conftest$ac_exeext conftest.$ac_ext
19443 if test "${ac_cv_imap_tk}" = "yes"; then
19444 cat >conftest.$ac_ext <<_ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h. */
19450 #include "c-client.h
"
19451 void mm_searched (MAILSTREAM *stream,unsigned long number)
19454 void mm_exists (MAILSTREAM *stream,unsigned long number)
19457 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19460 void mm_flags (MAILSTREAM *stream,unsigned long number)
19463 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19466 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19469 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19472 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19475 void mm_log (char *string,long errflg)
19478 void mm_dlog (char *string)
19481 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19484 void mm_critical (MAILSTREAM *stream)
19487 void mm_nocritical (MAILSTREAM *stream)
19490 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19493 void mm_fatal (char *string)
19500 long check = mail_expunge_full(NULL, "", 0);
19507 rm -f conftest.$ac_objext conftest$ac_exeext
19508 if { (ac_try="$ac_link"
19509 case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_link") 2>conftest.er1
19516 grep -v '^ *+' conftest.er1 >conftest.err
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest$ac_exeext &&
19524 $as_test_x conftest$ac_exeext; then
19525 ac_cv_imap_tk2006="yes"
19527 echo "$as_me: failed program was
:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_cv_imap_tk2006="no
"
19534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19535 conftest$ac_exeext conftest.$ac_ext
19540 if test "${IMAP_TK_DIR}" = "system
"; then
19541 #We will enter here if user specified "system
" or if any of above checks failed
19542 { echo "$as_me:$LINENO: checking
for system c-client library...
" >&5
19543 echo $ECHO_N "checking
for system c-client library......
$ECHO_C" >&6; }
19544 CPPFLAGS="${saved_cppflags}"
19545 LIBS="${saved_libs}"
19547 imap_libs="-lc-client"
19548 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
19549 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19550 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19551 cat >conftest.$ac_ext <<_ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19558 #include <imap/c-client.h>
19559 void mm_searched (MAILSTREAM *stream,unsigned long number)
19562 void mm_exists (MAILSTREAM *stream,unsigned long number)
19565 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19568 void mm_flags (MAILSTREAM *stream,unsigned long number)
19571 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19574 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19577 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19580 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19583 void mm_log (char *string,long errflg)
19586 void mm_dlog (char *string)
19589 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19592 void mm_critical (MAILSTREAM *stream)
19595 void mm_nocritical (MAILSTREAM *stream)
19598 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19601 void mm_fatal (char *string)
19608 MAILSTREAM *foo = mail_open(NULL, "", 0);
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19619 *) ac_try_echo
=$ac_try;;
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_link") 2>conftest.er1
19624 grep -v '^ *+' conftest.er1
>conftest.err
19626 cat conftest.err
>&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } && {
19629 test -z "$ac_c_werror_flag" ||
19630 test ! -s conftest.err
19631 } && test -s conftest
$ac_exeext &&
19632 $as_test_x conftest
$ac_exeext; then
19633 ac_cv_imap_tk
="yes"
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.
$ac_ext >&5
19642 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19643 conftest
$ac_exeext conftest.
$ac_ext
19644 if test "${ac_cv_imap_tk}" = "yes"; then
19645 cat >conftest.
$ac_ext <<_ACEOF
19648 cat confdefs.h
>>conftest.
$ac_ext
19649 cat >>conftest.
$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19652 #include <imap/c-client.h>
19653 void mm_searched (MAILSTREAM *stream,unsigned long number)
19656 void mm_exists (MAILSTREAM *stream,unsigned long number)
19659 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19662 void mm_flags (MAILSTREAM *stream,unsigned long number)
19665 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19668 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19671 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19674 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19677 void mm_log (char *string,long errflg)
19680 void mm_dlog (char *string)
19683 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19686 void mm_critical (MAILSTREAM *stream)
19689 void mm_nocritical (MAILSTREAM *stream)
19692 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19695 void mm_fatal (char *string)
19702 long check = mail_expunge_full(NULL, "", 0);
19709 rm -f conftest.
$ac_objext conftest
$ac_exeext
19710 if { (ac_try
="$ac_link"
19711 case "(($ac_try" in
19712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_link") 2>conftest.er1
19718 grep -v '^ *+' conftest.er1 >conftest.err
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } && {
19723 test -z "$ac_c_werror_flag" ||
19724 test ! -s conftest.err
19725 } && test -s conftest$ac_exeext &&
19726 $as_test_x conftest$ac_exeext; then
19727 ac_cv_imap_tk2006="yes"
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_cv_imap_tk2006="no"
19736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19737 conftest$ac_exeext conftest.$ac_ext
19738 else #looking in imap directory didn't work, try c-client
19740 imap_libs="-lc-client"
19741 imap_include="-DUSE_SYSTEM_CCLIENT"
19742 CPPFLAGS="${saved_cppflags}"
19743 LIBS="${saved_libs}"
19744 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19745 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19746 cat >conftest.
$ac_ext <<_ACEOF
19749 cat confdefs.h
>>conftest.
$ac_ext
19750 cat >>conftest.
$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19753 #include <c-client/c-client.h>
19754 void mm_searched (MAILSTREAM *stream,unsigned long number)
19757 void mm_exists (MAILSTREAM *stream,unsigned long number)
19760 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19763 void mm_flags (MAILSTREAM *stream,unsigned long number)
19766 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19769 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19772 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19775 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19778 void mm_log (char *string,long errflg)
19781 void mm_dlog (char *string)
19784 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19787 void mm_critical (MAILSTREAM *stream)
19790 void mm_nocritical (MAILSTREAM *stream)
19793 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19796 void mm_fatal (char *string)
19803 MAILSTREAM *foo = mail_open(NULL, "", 0);
19810 rm -f conftest.
$ac_objext conftest
$ac_exeext
19811 if { (ac_try
="$ac_link"
19812 case "(($ac_try" in
19813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_link") 2>conftest.er1
19819 grep -v '^ *+' conftest.er1 >conftest.err
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } && {
19824 test -z "$ac_c_werror_flag" ||
19825 test ! -s conftest.err
19826 } && test -s conftest$ac_exeext &&
19827 $as_test_x conftest$ac_exeext; then
19828 ac_cv_imap_tk="yes"
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19838 conftest$ac_exeext conftest.$ac_ext
19839 if test "${ac_cv_imap_tk}" = "yes"; then
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19847 #include <c-client/c-client.h>
19848 void mm_searched (MAILSTREAM *stream,unsigned long number)
19851 void mm_exists (MAILSTREAM *stream,unsigned long number)
19854 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19857 void mm_flags (MAILSTREAM *stream,unsigned long number)
19860 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19863 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19866 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19869 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19872 void mm_log (char *string,long errflg)
19875 void mm_dlog (char *string)
19878 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19881 void mm_critical (MAILSTREAM *stream)
19884 void mm_nocritical (MAILSTREAM *stream)
19887 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19890 void mm_fatal (char *string)
19897 long check = mail_expunge_full(NULL, "", 0);
19904 rm -f conftest.$ac_objext conftest$ac_exeext
19905 if { (ac_try="$ac_link"
19906 case "(($ac_try" in
19907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19908 *) ac_try_echo
=$ac_try;;
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_link") 2>conftest.er1
19913 grep -v '^ *+' conftest.er1
>conftest.err
19915 cat conftest.err
>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && {
19918 test -z "$ac_c_werror_flag" ||
19919 test ! -s conftest.err
19920 } && test -s conftest
$ac_exeext &&
19921 $as_test_x conftest
$ac_exeext; then
19922 ac_cv_imap_tk2006
="yes"
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.
$ac_ext >&5
19927 ac_cv_imap_tk2006
="no"
19931 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19932 conftest
$ac_exeext conftest.
$ac_ext
19936 if test "${ac_cv_imap_tk}" = "yes"; then
19937 { echo "$as_me:$LINENO: result: yes" >&5
19938 echo "${ECHO_T}yes" >&6; }
19939 IMAP_TK_LIB
="${imap_libs} "`echo ${imap_ldflags}`
19940 IMAP_TK_INCLUDE
="${imap_include}"
19943 cat >>confdefs.h
<<\_ACEOF
19944 #define HAVE_IMAP_TK 1
19947 if test "${ac_cv_imap_tk2006}" = "yes"; then
19949 cat >>confdefs.h
<<\_ACEOF
19950 #define HAVE_IMAP_TK2006 1
19954 elif test -n "${IMAP_TK_MANDATORY}"; then
19955 { echo "$as_me:$LINENO: result: no" >&5
19956 echo "${ECHO_T}no" >&6; }
19957 { echo "$as_me:$LINENO: ***" >&5
19958 echo "$as_me: ***" >&6;}
19959 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19960 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19961 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19962 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19963 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19964 echo "$as_me: *** including --without-imap." >&6;}
19967 { echo "$as_me:$LINENO: result: no" >&5
19968 echo "${ECHO_T}no" >&6; }
19970 CPPFLAGS
="${saved_cppflags}"
19971 LIBS
="${saved_libs}"
19974 # Needed by unixodbc
19976 if test "${USE_LTDL}" != "no"; then
19978 if test "x${LTDL_DIR}" != "x"; then
19979 if test -d ${LTDL_DIR}/lib
; then
19980 pbxlibdir
="-L${LTDL_DIR}/lib"
19982 pbxlibdir
="-L${LTDL_DIR}"
19985 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19986 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19987 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19988 echo $ECHO_N "(cached) $ECHO_C" >&6
19990 ac_check_lib_save_LIBS
=$LIBS
19991 LIBS
="-lltdl ${pbxlibdir} $LIBS"
19992 cat >conftest.
$ac_ext <<_ACEOF
19995 cat confdefs.h
>>conftest.
$ac_ext
19996 cat >>conftest.
$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19999 /* Override any GCC internal prototype to avoid an error.
20000 Use char because int might match the return type of a GCC
20001 builtin and then its argument prototype would still apply. */
20009 return lt_dlinit ();
20014 rm -f conftest.
$ac_objext conftest
$ac_exeext
20015 if { (ac_try
="$ac_link"
20016 case "(($ac_try" in
20017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20018 *) ac_try_echo=$ac_try;;
20020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20021 (eval "$ac_link") 2>conftest.er1
20023 grep -v '^ *+' conftest.er1 >conftest.err
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } && {
20028 test -z "$ac_c_werror_flag" ||
20029 test ! -s conftest.err
20030 } && test -s conftest$ac_exeext &&
20031 $as_test_x conftest$ac_exeext; then
20032 ac_cv_lib_ltdl_lt_dlinit=yes
20034 echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20037 ac_cv_lib_ltdl_lt_dlinit=no
20040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20041 conftest$ac_exeext conftest.$ac_ext
20042 LIBS=$ac_check_lib_save_LIBS
20044 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
20045 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
20046 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
20053 if test "${AST_LTDL_FOUND}" = "yes"; then
20055 LTDL_HEADER_FOUND="1"
20056 if test "x${LTDL_DIR}" != "x"; then
20057 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
20058 LTDL_INCLUDE="-I${LTDL_DIR}/include"
20059 saved_cppflags="${CPPFLAGS}"
20060 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
20061 if test "xltdl.h" != "x" ; then
20062 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" |
$as_tr_sh`
20063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20064 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
20065 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
20066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 ac_res=`eval echo '${'$as_ac_Header'}'`
20070 { echo "$as_me:$LINENO: result: $ac_res" >&5
20071 echo "${ECHO_T}$ac_res" >&6; }
20073 # Is the header compilable?
20074 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
20075 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
20076 cat >conftest.$ac_ext <<_ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082 $ac_includes_default
20083 #include <${LTDL_DIR}/include/ltdl.h>
20085 rm -f conftest.$ac_objext
20086 if { (ac_try="$ac_compile"
20087 case "(($ac_try" in
20088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20089 *) ac_try_echo
=$ac_try;;
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092 (eval "$ac_compile") 2>conftest.er1
20094 grep -v '^ *+' conftest.er1
>conftest.err
20096 cat conftest.err
>&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } && {
20099 test -z "$ac_c_werror_flag" ||
20100 test ! -s conftest.err
20101 } && test -s conftest.
$ac_objext; then
20102 ac_header_compiler
=yes
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.
$ac_ext >&5
20107 ac_header_compiler
=no
20110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20112 echo "${ECHO_T}$ac_header_compiler" >&6; }
20114 # Is the header present?
20115 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
20116 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
20117 cat >conftest.
$ac_ext <<_ACEOF
20120 cat confdefs.h
>>conftest.
$ac_ext
20121 cat >>conftest.
$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 #include <${LTDL_DIR}/include/ltdl.h>
20125 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20126 case "(($ac_try" in
20127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20133 grep -v '^ *+' conftest.er1 >conftest.err
20135 cat conftest.err >&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } >/dev/null && {
20138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20139 test ! -s conftest.err
20141 ac_header_preproc=yes
20143 echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20146 ac_header_preproc=no
20149 rm -f conftest.err conftest.$ac_ext
20150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20151 echo "${ECHO_T}$ac_header_preproc" >&6; }
20153 # So? What about this header?
20154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20156 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20157 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
20159 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
20160 ac_header_preproc=yes
20163 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
20164 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
20165 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
20166 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
20167 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
20168 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
20169 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
20170 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20171 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
20172 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
20173 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
20174 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
20176 ## ------------------------------- ##
20177 ## Report this to www.asterisk.org ##
20178 ## ------------------------------- ##
20180 ) | sed "s/^/$as_me: WARNING: /" >&2
20183 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
20184 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
20185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 eval "$as_ac_Header=\$ac_header_preproc"
20190 ac_res=`eval echo '${'$as_ac_Header'}'`
20191 { echo "$as_me:$LINENO: result: $ac_res" >&5
20192 echo "${ECHO_T}$ac_res" >&6; }
20195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20196 LTDL_HEADER_FOUND=1
20198 LTDL_HEADER_FOUND=0
20203 CPPFLAGS="${saved_cppflags}"
20205 if test "xltdl.h" != "x" ; then
20206 if test "${ac_cv_header_ltdl_h+set}" = set; then
20207 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20208 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20209 if test "${ac_cv_header_ltdl_h+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20212 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20213 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20215 # Is the header compilable?
20216 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
20217 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
20218 cat >conftest.$ac_ext <<_ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 $ac_includes_default
20227 rm -f conftest.$ac_objext
20228 if { (ac_try="$ac_compile"
20229 case "(($ac_try" in
20230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20231 *) ac_try_echo
=$ac_try;;
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234 (eval "$ac_compile") 2>conftest.er1
20236 grep -v '^ *+' conftest.er1
>conftest.err
20238 cat conftest.err
>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && {
20241 test -z "$ac_c_werror_flag" ||
20242 test ! -s conftest.err
20243 } && test -s conftest.
$ac_objext; then
20244 ac_header_compiler
=yes
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.
$ac_ext >&5
20249 ac_header_compiler
=no
20252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20254 echo "${ECHO_T}$ac_header_compiler" >&6; }
20256 # Is the header present?
20257 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
20258 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
20259 cat >conftest.
$ac_ext <<_ACEOF
20262 cat confdefs.h
>>conftest.
$ac_ext
20263 cat >>conftest.
$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20267 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20268 case "(($ac_try" in
20269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20275 grep -v '^ *+' conftest.er1 >conftest.err
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } >/dev/null && {
20280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20283 ac_header_preproc=yes
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ac_header_preproc=no
20291 rm -f conftest.err conftest.$ac_ext
20292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20293 echo "${ECHO_T}$ac_header_preproc" >&6; }
20295 # So? What about this header?
20296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20298 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20299 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
20301 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
20302 ac_header_preproc=yes
20305 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
20306 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
20308 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
20310 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
20312 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
20314 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
20315 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
20316 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
20318 ## ------------------------------- ##
20319 ## Report this to www.asterisk.org ##
20320 ## ------------------------------- ##
20322 ) | sed "s/^/$as_me: WARNING: /" >&2
20325 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20326 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20327 if test "${ac_cv_header_ltdl_h+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20330 ac_cv_header_ltdl_h=$ac_header_preproc
20332 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20333 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20336 if test $ac_cv_header_ltdl_h = yes; then
20337 LTDL_HEADER_FOUND=1
20339 LTDL_HEADER_FOUND=0
20345 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
20346 if test -n "${LTDL_MANDATORY}" ;
20348 { echo "$as_me:$LINENO: ***" >&5
20349 echo "$as_me: ***" >&6;}
20350 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
20351 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
20352 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
20353 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
20354 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20355 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20364 cat >>confdefs.h <<_ACEOF
20365 #define HAVE_LTDL 1
20369 elif test -n "${LTDL_MANDATORY}";
20371 { echo "$as_me:$LINENO: ***" >&5
20372 echo "$as_me: ***" >&6;}
20373 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
20374 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
20375 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20376 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20377 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20378 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20385 ac_cpp='$CXXCPP $CPPFLAGS'
20386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20391 if test "${USE_KDE}" != "no"; then
20392 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
20393 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
20394 saved_libs="${LIBS}"
20395 saved_cppflags="${CPPFLAGS}"
20396 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
20397 if test -d ${KDE_DIR}/lib; then
20398 kdelibdir="${KDE_DIR}/lib"
20400 kdelibdir="${KDE_DIR}"
20402 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
20405 cat >conftest.$ac_ext <<_ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h. */
20411 #include "kcrash.h"
20415 KCrash::defaultCrashHandler(1);
20421 rm -f conftest.$ac_objext conftest$ac_exeext
20422 if { (ac_try="$ac_link"
20423 case "(($ac_try" in
20424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20425 *) ac_try_echo
=$ac_try;;
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_link") 2>conftest.er1
20430 grep -v '^ *+' conftest.er1
>conftest.err
20432 cat conftest.err
>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } && {
20435 test -z "$ac_cxx_werror_flag" ||
20436 test ! -s conftest.err
20437 } && test -s conftest
$ac_exeext &&
20438 $as_test_x conftest
$ac_exeext; then
20439 ac_cv_lib_kde_crash
="yes"
20441 echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.
$ac_ext >&5
20444 ac_cv_lib_kde_crash
="no"
20447 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20448 conftest
$ac_exeext conftest.
$ac_ext
20450 LIBS
="${saved_libs}"
20451 CPPFLAGS
="${saved_cppflags}"
20453 if test "${ac_cv_lib_kde_crash}" = "yes"; then
20454 { echo "$as_me:$LINENO: result: yes" >&5
20455 echo "${ECHO_T}yes" >&6; }
20456 KDE_LIB
="-lkdecore -lkdeui"
20457 if test "${KDE_DIR}" != ""; then
20458 KDE_LIB
="-L${kdelibdir} ${KDE_LIB}"
20459 KDE_INCLUDE
="-I${KDE_DIR}/include"
20463 cat >>confdefs.h
<<\_ACEOF
20464 #define HAVE_LIBKDE 1
20467 elif test -n "${KDE_MANDATORY}"; then
20468 { echo "$as_me:$LINENO: result: no" >&5
20469 echo "${ECHO_T}no" >&6; }
20470 { echo "$as_me:$LINENO: ***" >&5
20471 echo "$as_me: ***" >&6;}
20472 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
20473 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
20474 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20475 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20476 { echo "$as_me:$LINENO: *** including --without-kde." >&5
20477 echo "$as_me: *** including --without-kde." >&6;}
20480 { echo "$as_me:$LINENO: result: no" >&5
20481 echo "${ECHO_T}no" >&6; }
20484 if test "${PBX_KDE}" = 1; then
20485 if test -n "$ac_tool_prefix"; then
20486 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
20487 set dummy
${ac_tool_prefix}kdeinit
; ac_word
=$2
20488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20490 if test "${ac_cv_path_KDEINIT+set}" = set; then
20491 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 ac_cv_path_KDEINIT
="$KDEINIT" # Let the user override the test with a path.
20498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20499 for as_dir
in $PATH
20502 test -z "$as_dir" && as_dir
=.
20503 for ac_exec_ext
in '' $ac_executable_extensions; do
20504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20505 ac_cv_path_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
20506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20516 KDEINIT
=$ac_cv_path_KDEINIT
20517 if test -n "$KDEINIT"; then
20518 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
20519 echo "${ECHO_T}$KDEINIT" >&6; }
20521 { echo "$as_me:$LINENO: result: no" >&5
20522 echo "${ECHO_T}no" >&6; }
20527 if test -z "$ac_cv_path_KDEINIT"; then
20528 ac_pt_KDEINIT
=$KDEINIT
20529 # Extract the first word of "kdeinit", so it can be a program name with args.
20530 set dummy kdeinit
; ac_word
=$2
20531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20533 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 case $ac_pt_KDEINIT in
20538 ac_cv_path_ac_pt_KDEINIT
="$ac_pt_KDEINIT" # Let the user override the test with a path.
20541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20542 for as_dir
in $PATH
20545 test -z "$as_dir" && as_dir
=.
20546 for ac_exec_ext
in '' $ac_executable_extensions; do
20547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20548 ac_cv_path_ac_pt_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
20549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20559 ac_pt_KDEINIT
=$ac_cv_path_ac_pt_KDEINIT
20560 if test -n "$ac_pt_KDEINIT"; then
20561 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
20562 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
20564 { echo "$as_me:$LINENO: result: no" >&5
20565 echo "${ECHO_T}no" >&6; }
20568 if test "x$ac_pt_KDEINIT" = x
; then
20571 case $cross_compiling:$ac_tool_warned in
20573 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20574 whose name does not start with the host triplet. If you think this
20575 configuration is useful to you, please write to autoconf@gnu.org." >&5
20576 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20577 whose name does not start with the host triplet. If you think this
20578 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20579 ac_tool_warned
=yes ;;
20581 KDEINIT
=$ac_pt_KDEINIT
20584 KDEINIT
="$ac_cv_path_KDEINIT"
20587 if test ! x
"${KDEINIT}" = xNo
; then
20588 KDEDIR
=$
(${DIRNAME} ${KDEINIT})
20589 KDEDIR
=$
(${DIRNAME} ${KDEDIR})
20595 ac_cpp
='$CPP $CPPFLAGS'
20596 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20602 if test "${USE_MISDN}" != "no"; then
20604 if test "x${MISDN_DIR}" != "x"; then
20605 if test -d ${MISDN_DIR}/lib
; then
20606 pbxlibdir
="-L${MISDN_DIR}/lib"
20608 pbxlibdir
="-L${MISDN_DIR}"
20611 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
20612 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
20613 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20616 ac_check_lib_save_LIBS
=$LIBS
20617 LIBS
="-lmISDN ${pbxlibdir} $LIBS"
20618 cat >conftest.
$ac_ext <<_ACEOF
20621 cat confdefs.h
>>conftest.
$ac_ext
20622 cat >>conftest.
$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20625 /* Override any GCC internal prototype to avoid an error.
20626 Use char because int might match the return type of a GCC
20627 builtin and then its argument prototype would still apply. */
20631 char mISDN_open ();
20635 return mISDN_open ();
20640 rm -f conftest.
$ac_objext conftest
$ac_exeext
20641 if { (ac_try
="$ac_link"
20642 case "(($ac_try" in
20643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_link") 2>conftest.er1
20649 grep -v '^ *+' conftest.er1 >conftest.err
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } && {
20654 test -z "$ac_c_werror_flag" ||
20655 test ! -s conftest.err
20656 } && test -s conftest$ac_exeext &&
20657 $as_test_x conftest$ac_exeext; then
20658 ac_cv_lib_mISDN_mISDN_open=yes
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_cv_lib_mISDN_mISDN_open=no
20666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20667 conftest$ac_exeext conftest.$ac_ext
20668 LIBS=$ac_check_lib_save_LIBS
20670 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
20671 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
20672 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
20673 AST_MISDN_FOUND=yes
20679 if test "${AST_MISDN_FOUND}" = "yes"; then
20680 MISDN_LIB="-lmISDN "
20681 MISDN_HEADER_FOUND="1"
20682 if test "x${MISDN_DIR}" != "x"; then
20683 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
20684 MISDN_INCLUDE="-I${MISDN_DIR}/include"
20685 saved_cppflags="${CPPFLAGS}"
20686 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
20687 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20688 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" |
$as_tr_sh`
20689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20690 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20691 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20695 ac_res=`eval echo '${'$as_ac_Header'}'`
20696 { echo "$as_me:$LINENO: result: $ac_res" >&5
20697 echo "${ECHO_T}$ac_res" >&6; }
20699 # Is the header compilable?
20700 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
20701 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20702 cat >conftest.$ac_ext <<_ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20708 $ac_includes_default
20709 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20711 rm -f conftest.$ac_objext
20712 if { (ac_try="$ac_compile"
20713 case "(($ac_try" in
20714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20715 *) ac_try_echo
=$ac_try;;
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_compile") 2>conftest.er1
20720 grep -v '^ *+' conftest.er1
>conftest.err
20722 cat conftest.err
>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } && {
20725 test -z "$ac_c_werror_flag" ||
20726 test ! -s conftest.err
20727 } && test -s conftest.
$ac_objext; then
20728 ac_header_compiler
=yes
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.
$ac_ext >&5
20733 ac_header_compiler
=no
20736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20738 echo "${ECHO_T}$ac_header_compiler" >&6; }
20740 # Is the header present?
20741 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
20742 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20743 cat >conftest.
$ac_ext <<_ACEOF
20746 cat confdefs.h
>>conftest.
$ac_ext
20747 cat >>conftest.
$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20749 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20751 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20752 case "(($ac_try" in
20753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20759 grep -v '^ *+' conftest.er1 >conftest.err
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } >/dev/null && {
20764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20765 test ! -s conftest.err
20767 ac_header_preproc=yes
20769 echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20772 ac_header_preproc=no
20775 rm -f conftest.err conftest.$ac_ext
20776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20777 echo "${ECHO_T}$ac_header_preproc" >&6; }
20779 # So? What about this header?
20780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20782 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20783 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20784 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20785 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20786 ac_header_preproc=yes
20789 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20790 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20791 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20792 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20794 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20796 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20797 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20798 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20800 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20802 ## ------------------------------- ##
20803 ## Report this to www.asterisk.org ##
20804 ## ------------------------------- ##
20806 ) | sed "s/^/$as_me: WARNING: /" >&2
20809 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20810 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20814 eval "$as_ac_Header=\$ac_header_preproc"
20816 ac_res=`eval echo '${'$as_ac_Header'}'`
20817 { echo "$as_me:$LINENO: result: $ac_res" >&5
20818 echo "${ECHO_T}$ac_res" >&6; }
20821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20822 MISDN_HEADER_FOUND=1
20824 MISDN_HEADER_FOUND=0
20829 CPPFLAGS="${saved_cppflags}"
20831 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20832 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20833 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20834 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20835 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20836 echo $ECHO_N "(cached) $ECHO_C" >&6
20838 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20839 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20841 # Is the header compilable?
20842 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
20843 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20844 cat >conftest.$ac_ext <<_ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 $ac_includes_default
20851 #include <mISDNuser/mISDNlib.h>
20853 rm -f conftest.$ac_objext
20854 if { (ac_try="$ac_compile"
20855 case "(($ac_try" in
20856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20857 *) ac_try_echo
=$ac_try;;
20859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860 (eval "$ac_compile") 2>conftest.er1
20862 grep -v '^ *+' conftest.er1
>conftest.err
20864 cat conftest.err
>&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } && {
20867 test -z "$ac_c_werror_flag" ||
20868 test ! -s conftest.err
20869 } && test -s conftest.
$ac_objext; then
20870 ac_header_compiler
=yes
20872 echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.
$ac_ext >&5
20875 ac_header_compiler
=no
20878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20880 echo "${ECHO_T}$ac_header_compiler" >&6; }
20882 # Is the header present?
20883 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20884 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20885 cat >conftest.
$ac_ext <<_ACEOF
20888 cat confdefs.h
>>conftest.
$ac_ext
20889 cat >>conftest.
$ac_ext <<_ACEOF
20890 /* end confdefs.h. */
20891 #include <mISDNuser/mISDNlib.h>
20893 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20894 case "(($ac_try" in
20895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20901 grep -v '^ *+' conftest.er1 >conftest.err
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } >/dev/null && {
20906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20907 test ! -s conftest.err
20909 ac_header_preproc=yes
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 ac_header_preproc=no
20917 rm -f conftest.err conftest.$ac_ext
20918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20919 echo "${ECHO_T}$ac_header_preproc" >&6; }
20921 # So? What about this header?
20922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20924 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20925 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20927 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20928 ac_header_preproc=yes
20931 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20932 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20933 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20934 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20935 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20936 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20937 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20938 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20939 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20940 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20942 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20944 ## ------------------------------- ##
20945 ## Report this to www.asterisk.org ##
20946 ## ------------------------------- ##
20948 ) | sed "s/^/$as_me: WARNING: /" >&2
20951 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20952 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20953 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
20958 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20959 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20962 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20963 MISDN_HEADER_FOUND=1
20965 MISDN_HEADER_FOUND=0
20971 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20972 if test -n "${MISDN_MANDATORY}" ;
20974 { echo "$as_me:$LINENO: ***" >&5
20975 echo "$as_me: ***" >&6;}
20976 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20977 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20978 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20979 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20980 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20981 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20990 cat >>confdefs.h <<_ACEOF
20991 #define HAVE_MISDN 1
20995 elif test -n "${MISDN_MANDATORY}";
20997 { echo "$as_me:$LINENO: ***" >&5
20998 echo "$as_me: ***" >&6;}
20999 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
21000 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
21001 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21002 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21003 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
21004 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
21010 if test "${PBX_MISDN}" = 1; then
21012 if test "${USE_ISDNNET}" != "no"; then
21014 if test "x${ISDNNET_DIR}" != "x"; then
21015 if test -d ${ISDNNET_DIR}/lib; then
21016 pbxlibdir="-L${ISDNNET_DIR}/lib"
21018 pbxlibdir="-L${ISDNNET_DIR}"
21021 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
21022 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
21023 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
21024 echo $ECHO_N "(cached) $ECHO_C" >&6
21026 ac_check_lib_save_LIBS=$LIBS
21027 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
21028 cat >conftest.$ac_ext <<_ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21035 /* Override any GCC internal prototype to avoid an error.
21036 Use char because int might match the return type of a GCC
21037 builtin and then its argument prototype would still apply. */
21041 char init_manager ();
21045 return init_manager ();
21050 rm -f conftest.$ac_objext conftest$ac_exeext
21051 if { (ac_try="$ac_link"
21052 case "(($ac_try" in
21053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21054 *) ac_try_echo
=$ac_try;;
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_link") 2>conftest.er1
21059 grep -v '^ *+' conftest.er1
>conftest.err
21061 cat conftest.err
>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } && {
21064 test -z "$ac_c_werror_flag" ||
21065 test ! -s conftest.err
21066 } && test -s conftest
$ac_exeext &&
21067 $as_test_x conftest
$ac_exeext; then
21068 ac_cv_lib_isdnnet_init_manager
=yes
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.
$ac_ext >&5
21073 ac_cv_lib_isdnnet_init_manager
=no
21076 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21077 conftest
$ac_exeext conftest.
$ac_ext
21078 LIBS
=$ac_check_lib_save_LIBS
21080 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
21081 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
21082 if test $ac_cv_lib_isdnnet_init_manager = yes; then
21083 AST_ISDNNET_FOUND
=yes
21085 AST_ISDNNET_FOUND
=no
21089 if test "${AST_ISDNNET_FOUND}" = "yes"; then
21090 ISDNNET_LIB
="-lisdnnet -lmISDN -lpthread"
21091 ISDNNET_HEADER_FOUND
="1"
21092 if test "x${ISDNNET_DIR}" != "x"; then
21093 ISDNNET_LIB
="${pbxlibdir} ${ISDNNET_LIB}"
21094 ISDNNET_INCLUDE
="-I${ISDNNET_DIR}/include"
21095 saved_cppflags
="${CPPFLAGS}"
21096 CPPFLAGS
="${CPPFLAGS} -I${ISDNNET_DIR}/include"
21097 if test "xmISDNuser/isdn_net.h" != "x" ; then
21098 as_ac_Header
=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
21099 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21100 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
21101 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21102 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21103 echo $ECHO_N "(cached) $ECHO_C" >&6
21105 ac_res
=`eval echo '${'$as_ac_Header'}'`
21106 { echo "$as_me:$LINENO: result: $ac_res" >&5
21107 echo "${ECHO_T}$ac_res" >&6; }
21109 # Is the header compilable?
21110 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
21111 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
21112 cat >conftest.
$ac_ext <<_ACEOF
21115 cat confdefs.h
>>conftest.
$ac_ext
21116 cat >>conftest.
$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 $ac_includes_default
21119 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
21121 rm -f conftest.
$ac_objext
21122 if { (ac_try
="$ac_compile"
21123 case "(($ac_try" in
21124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_compile") 2>conftest.er1
21130 grep -v '^ *+' conftest.er1 >conftest.err
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } && {
21135 test -z "$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21137 } && test -s conftest.$ac_objext; then
21138 ac_header_compiler=yes
21140 echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21143 ac_header_compiler=no
21146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21148 echo "${ECHO_T}$ac_header_compiler" >&6; }
21150 # Is the header present?
21151 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
21152 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
21153 cat >conftest.$ac_ext <<_ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h. */
21159 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
21161 if { (ac_try="$ac_cpp conftest.$ac_ext"
21162 case "(($ac_try" in
21163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21164 *) ac_try_echo
=$ac_try;;
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21169 grep -v '^ *+' conftest.er1
>conftest.err
21171 cat conftest.err
>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } >/dev
/null
&& {
21174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21177 ac_header_preproc
=yes
21179 echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.
$ac_ext >&5
21182 ac_header_preproc
=no
21185 rm -f conftest.err conftest.
$ac_ext
21186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21187 echo "${ECHO_T}$ac_header_preproc" >&6; }
21189 # So? What about this header?
21190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21192 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21193 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21195 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21196 ac_header_preproc
=yes
21199 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21200 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21201 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21202 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21203 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21204 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21205 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21206 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21207 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21208 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21209 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21210 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21212 ## ------------------------------- ##
21213 ## Report this to www.asterisk.org ##
21214 ## ------------------------------- ##
21216 ) |
sed "s/^/$as_me: WARNING: /" >&2
21219 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
21220 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21221 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21224 eval "$as_ac_Header=\$ac_header_preproc"
21226 ac_res
=`eval echo '${'$as_ac_Header'}'`
21227 { echo "$as_me:$LINENO: result: $ac_res" >&5
21228 echo "${ECHO_T}$ac_res" >&6; }
21231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21232 ISDNNET_HEADER_FOUND
=1
21234 ISDNNET_HEADER_FOUND
=0
21239 CPPFLAGS
="${saved_cppflags}"
21241 if test "xmISDNuser/isdn_net.h" != "x" ; then
21242 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21243 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21244 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21245 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21248 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21249 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21251 # Is the header compilable?
21252 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
21253 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
21254 cat >conftest.
$ac_ext <<_ACEOF
21257 cat confdefs.h
>>conftest.
$ac_ext
21258 cat >>conftest.
$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 $ac_includes_default
21261 #include <mISDNuser/isdn_net.h>
21263 rm -f conftest.
$ac_objext
21264 if { (ac_try
="$ac_compile"
21265 case "(($ac_try" in
21266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_compile") 2>conftest.er1
21272 grep -v '^ *+' conftest.er1 >conftest.err
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } && {
21277 test -z "$ac_c_werror_flag" ||
21278 test ! -s conftest.err
21279 } && test -s conftest.$ac_objext; then
21280 ac_header_compiler=yes
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 ac_header_compiler=no
21288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21290 echo "${ECHO_T}$ac_header_compiler" >&6; }
21292 # Is the header present?
21293 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
21294 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
21295 cat >conftest.$ac_ext <<_ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 #include <mISDNuser/isdn_net.h>
21303 if { (ac_try="$ac_cpp conftest.$ac_ext"
21304 case "(($ac_try" in
21305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21306 *) ac_try_echo
=$ac_try;;
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21311 grep -v '^ *+' conftest.er1
>conftest.err
21313 cat conftest.err
>&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } >/dev
/null
&& {
21316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21317 test ! -s conftest.err
21319 ac_header_preproc
=yes
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.
$ac_ext >&5
21324 ac_header_preproc
=no
21327 rm -f conftest.err conftest.
$ac_ext
21328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21329 echo "${ECHO_T}$ac_header_preproc" >&6; }
21331 # So? What about this header?
21332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21334 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21335 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21336 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21337 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21338 ac_header_preproc
=yes
21341 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21342 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21344 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21346 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21347 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21348 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21350 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21351 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21352 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21354 ## ------------------------------- ##
21355 ## Report this to www.asterisk.org ##
21356 ## ------------------------------- ##
21358 ) |
sed "s/^/$as_me: WARNING: /" >&2
21361 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21362 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21363 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21364 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 ac_cv_header_mISDNuser_isdn_net_h
=$ac_header_preproc
21368 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21369 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21372 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
21373 ISDNNET_HEADER_FOUND
=1
21375 ISDNNET_HEADER_FOUND
=0
21381 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
21382 if test -n "${ISDNNET_MANDATORY}" ;
21384 { echo "$as_me:$LINENO: ***" >&5
21385 echo "$as_me: ***" >&6;}
21386 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
21387 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
21388 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
21389 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
21390 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21391 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21400 cat >>confdefs.h
<<_ACEOF
21401 #define HAVE_ISDNNET 1
21405 elif test -n "${ISDNNET_MANDATORY}";
21407 { echo "$as_me:$LINENO: ***" >&5
21408 echo "$as_me: ***" >&6;}
21409 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
21410 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
21411 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21412 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21413 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21414 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21420 if test "${USE_SUPPSERV}" != "no"; then
21422 if test "x${SUPPSERV_DIR}" != "x"; then
21423 if test -d ${SUPPSERV_DIR}/lib
; then
21424 pbxlibdir
="-L${SUPPSERV_DIR}/lib"
21426 pbxlibdir
="-L${SUPPSERV_DIR}"
21429 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
21430 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
21431 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 ac_check_lib_save_LIBS
=$LIBS
21435 LIBS
="-lsuppserv ${pbxlibdir} $LIBS"
21436 cat >conftest.
$ac_ext <<_ACEOF
21439 cat confdefs.h
>>conftest.
$ac_ext
21440 cat >>conftest.
$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21443 /* Override any GCC internal prototype to avoid an error.
21444 Use char because int might match the return type of a GCC
21445 builtin and then its argument prototype would still apply. */
21453 return encodeFac ();
21458 rm -f conftest.
$ac_objext conftest
$ac_exeext
21459 if { (ac_try
="$ac_link"
21460 case "(($ac_try" in
21461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_link") 2>conftest.er1
21467 grep -v '^ *+' conftest.er1 >conftest.err
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } && {
21472 test -z "$ac_c_werror_flag" ||
21473 test ! -s conftest.err
21474 } && test -s conftest$ac_exeext &&
21475 $as_test_x conftest$ac_exeext; then
21476 ac_cv_lib_suppserv_encodeFac=yes
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21481 ac_cv_lib_suppserv_encodeFac=no
21484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21485 conftest$ac_exeext conftest.$ac_ext
21486 LIBS=$ac_check_lib_save_LIBS
21488 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
21489 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
21490 if test $ac_cv_lib_suppserv_encodeFac = yes; then
21491 AST_SUPPSERV_FOUND=yes
21493 AST_SUPPSERV_FOUND=no
21497 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
21498 SUPPSERV_LIB="-lsuppserv "
21499 SUPPSERV_HEADER_FOUND="1"
21500 if test "x${SUPPSERV_DIR}" != "x"; then
21501 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
21502 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
21503 saved_cppflags="${CPPFLAGS}"
21504 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
21505 if test "xmISDNuser/suppserv.h" != "x" ; then
21506 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" |
$as_tr_sh`
21507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21508 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21509 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21513 ac_res=`eval echo '${'$as_ac_Header'}'`
21514 { echo "$as_me:$LINENO: result: $ac_res" >&5
21515 echo "${ECHO_T}$ac_res" >&6; }
21517 # Is the header compilable?
21518 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
21519 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21520 cat >conftest.$ac_ext <<_ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h. */
21526 $ac_includes_default
21527 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21529 rm -f conftest.$ac_objext
21530 if { (ac_try="$ac_compile"
21531 case "(($ac_try" in
21532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21533 *) ac_try_echo
=$ac_try;;
21535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21536 (eval "$ac_compile") 2>conftest.er1
21538 grep -v '^ *+' conftest.er1
>conftest.err
21540 cat conftest.err
>&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } && {
21543 test -z "$ac_c_werror_flag" ||
21544 test ! -s conftest.err
21545 } && test -s conftest.
$ac_objext; then
21546 ac_header_compiler
=yes
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.
$ac_ext >&5
21551 ac_header_compiler
=no
21554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21556 echo "${ECHO_T}$ac_header_compiler" >&6; }
21558 # Is the header present?
21559 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
21560 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21561 cat >conftest.
$ac_ext <<_ACEOF
21564 cat confdefs.h
>>conftest.
$ac_ext
21565 cat >>conftest.
$ac_ext <<_ACEOF
21566 /* end confdefs.h. */
21567 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21569 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21570 case "(($ac_try" in
21571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21577 grep -v '^ *+' conftest.er1 >conftest.err
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } >/dev/null && {
21582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21585 ac_header_preproc=yes
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21590 ac_header_preproc=no
21593 rm -f conftest.err conftest.$ac_ext
21594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21595 echo "${ECHO_T}$ac_header_preproc" >&6; }
21597 # So? What about this header?
21598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21600 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21601 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21602 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21603 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21604 ac_header_preproc=yes
21607 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
21608 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21609 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21610 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21611 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21612 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21613 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21614 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21616 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21617 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21618 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21620 ## ------------------------------- ##
21621 ## Report this to www.asterisk.org ##
21622 ## ------------------------------- ##
21624 ) | sed "s/^/$as_me: WARNING: /" >&2
21627 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21628 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21630 echo $ECHO_N "(cached) $ECHO_C" >&6
21632 eval "$as_ac_Header=\$ac_header_preproc"
21634 ac_res=`eval echo '${'$as_ac_Header'}'`
21635 { echo "$as_me:$LINENO: result: $ac_res" >&5
21636 echo "${ECHO_T}$ac_res" >&6; }
21639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21640 SUPPSERV_HEADER_FOUND=1
21642 SUPPSERV_HEADER_FOUND=0
21647 CPPFLAGS="${saved_cppflags}"
21649 if test "xmISDNuser/suppserv.h" != "x" ; then
21650 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21651 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21652 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21653 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21656 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21657 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21659 # Is the header compilable?
21660 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
21661 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21662 cat >conftest.$ac_ext <<_ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21668 $ac_includes_default
21669 #include <mISDNuser/suppserv.h>
21671 rm -f conftest.$ac_objext
21672 if { (ac_try="$ac_compile"
21673 case "(($ac_try" in
21674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21675 *) ac_try_echo
=$ac_try;;
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_compile") 2>conftest.er1
21680 grep -v '^ *+' conftest.er1
>conftest.err
21682 cat conftest.err
>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } && {
21685 test -z "$ac_c_werror_flag" ||
21686 test ! -s conftest.err
21687 } && test -s conftest.
$ac_objext; then
21688 ac_header_compiler
=yes
21690 echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.
$ac_ext >&5
21693 ac_header_compiler
=no
21696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21698 echo "${ECHO_T}$ac_header_compiler" >&6; }
21700 # Is the header present?
21701 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
21702 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21703 cat >conftest.
$ac_ext <<_ACEOF
21706 cat confdefs.h
>>conftest.
$ac_ext
21707 cat >>conftest.
$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21709 #include <mISDNuser/suppserv.h>
21711 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21712 case "(($ac_try" in
21713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21719 grep -v '^ *+' conftest.er1 >conftest.err
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } >/dev/null && {
21724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21727 ac_header_preproc=yes
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21732 ac_header_preproc=no
21735 rm -f conftest.err conftest.$ac_ext
21736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21737 echo "${ECHO_T}$ac_header_preproc" >&6; }
21739 # So? What about this header?
21740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21742 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21743 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21745 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21746 ac_header_preproc=yes
21749 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
21750 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21752 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21754 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21755 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21756 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21757 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21758 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21759 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21760 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21762 ## ------------------------------- ##
21763 ## Report this to www.asterisk.org ##
21764 ## ------------------------------- ##
21766 ) | sed "s/^/$as_me: WARNING: /" >&2
21769 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21770 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21771 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
21776 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21777 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21780 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
21781 SUPPSERV_HEADER_FOUND=1
21783 SUPPSERV_HEADER_FOUND=0
21789 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
21790 if test -n "${SUPPSERV_MANDATORY}" ;
21792 { echo "$as_me:$LINENO: ***" >&5
21793 echo "$as_me: ***" >&6;}
21794 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
21795 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
21796 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
21797 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
21798 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21799 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21803 SUPPSERV_INCLUDE=""
21808 cat >>confdefs.h <<_ACEOF
21809 #define HAVE_SUPPSERV 1
21813 elif test -n "${SUPPSERV_MANDATORY}";
21815 { echo "$as_me:$LINENO: ***" >&5
21816 echo "$as_me: ***" >&6;}
21817 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
21818 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
21819 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21820 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21821 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21822 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21827 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21828 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21829 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21830 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21833 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21834 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21836 # Is the header compilable?
21837 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
21838 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 $ac_includes_default
21846 #include <linux/mISDNdsp.h>
21848 rm -f conftest.$ac_objext
21849 if { (ac_try="$ac_compile"
21850 case "(($ac_try" in
21851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21852 *) ac_try_echo
=$ac_try;;
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_compile") 2>conftest.er1
21857 grep -v '^ *+' conftest.er1
>conftest.err
21859 cat conftest.err
>&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); } && {
21862 test -z "$ac_c_werror_flag" ||
21863 test ! -s conftest.err
21864 } && test -s conftest.
$ac_objext; then
21865 ac_header_compiler
=yes
21867 echo "$as_me: failed program was:" >&5
21868 sed 's/^/| /' conftest.
$ac_ext >&5
21870 ac_header_compiler
=no
21873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21875 echo "${ECHO_T}$ac_header_compiler" >&6; }
21877 # Is the header present?
21878 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
21879 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
21880 cat >conftest.
$ac_ext <<_ACEOF
21883 cat confdefs.h
>>conftest.
$ac_ext
21884 cat >>conftest.
$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21886 #include <linux/mISDNdsp.h>
21888 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21889 case "(($ac_try" in
21890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21891 *) ac_try_echo=$ac_try;;
21893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21896 grep -v '^ *+' conftest.er1 >conftest.err
21898 cat conftest.err >&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } >/dev/null && {
21901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21902 test ! -s conftest.err
21904 ac_header_preproc=yes
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21909 ac_header_preproc=no
21912 rm -f conftest.err conftest.$ac_ext
21913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21914 echo "${ECHO_T}$ac_header_preproc" >&6; }
21916 # So? What about this header?
21917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21919 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21920 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21921 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
21922 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
21923 ac_header_preproc=yes
21926 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
21927 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
21928 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
21929 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
21931 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
21932 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
21933 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21934 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
21935 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
21937 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
21939 ## ------------------------------- ##
21940 ## Report this to www.asterisk.org ##
21941 ## ------------------------------- ##
21943 ) | sed "s/^/$as_me: WARNING: /" >&2
21946 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21947 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21948 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
21953 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21954 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21957 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
21959 cat >>confdefs.h <<_ACEOF
21960 #define MISDN_1_2 1
21969 if test "${USE_NBS}" != "no"; then
21971 if test "x${NBS_DIR}" != "x"; then
21972 if test -d ${NBS_DIR}/lib; then
21973 pbxlibdir="-L${NBS_DIR}/lib"
21975 pbxlibdir="-L${NBS_DIR}"
21978 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
21979 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
21980 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21983 ac_check_lib_save_LIBS=$LIBS
21984 LIBS="-lnbs ${pbxlibdir} $LIBS"
21985 cat >conftest.$ac_ext <<_ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21992 /* Override any GCC internal prototype to avoid an error.
21993 Use char because int might match the return type of a GCC
21994 builtin and then its argument prototype would still apply. */
21998 char nbs_connect ();
22002 return nbs_connect ();
22007 rm -f conftest.$ac_objext conftest$ac_exeext
22008 if { (ac_try="$ac_link"
22009 case "(($ac_try" in
22010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22011 *) ac_try_echo
=$ac_try;;
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_link") 2>conftest.er1
22016 grep -v '^ *+' conftest.er1
>conftest.err
22018 cat conftest.err
>&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } && {
22021 test -z "$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 } && test -s conftest
$ac_exeext &&
22024 $as_test_x conftest
$ac_exeext; then
22025 ac_cv_lib_nbs_nbs_connect
=yes
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.
$ac_ext >&5
22030 ac_cv_lib_nbs_nbs_connect
=no
22033 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22034 conftest
$ac_exeext conftest.
$ac_ext
22035 LIBS
=$ac_check_lib_save_LIBS
22037 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
22038 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
22039 if test $ac_cv_lib_nbs_nbs_connect = yes; then
22046 if test "${AST_NBS_FOUND}" = "yes"; then
22048 NBS_HEADER_FOUND
="1"
22049 if test "x${NBS_DIR}" != "x"; then
22050 NBS_LIB
="${pbxlibdir} ${NBS_LIB}"
22051 NBS_INCLUDE
="-I${NBS_DIR}/include"
22052 saved_cppflags
="${CPPFLAGS}"
22053 CPPFLAGS
="${CPPFLAGS} -I${NBS_DIR}/include"
22054 if test "xnbs.h" != "x" ; then
22055 as_ac_Header
=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
22056 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22057 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
22058 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
22059 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 ac_res
=`eval echo '${'$as_ac_Header'}'`
22063 { echo "$as_me:$LINENO: result: $ac_res" >&5
22064 echo "${ECHO_T}$ac_res" >&6; }
22066 # Is the header compilable?
22067 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
22068 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
22069 cat >conftest.
$ac_ext <<_ACEOF
22072 cat confdefs.h
>>conftest.
$ac_ext
22073 cat >>conftest.
$ac_ext <<_ACEOF
22074 /* end confdefs.h. */
22075 $ac_includes_default
22076 #include <${NBS_DIR}/include/nbs.h>
22078 rm -f conftest.
$ac_objext
22079 if { (ac_try
="$ac_compile"
22080 case "(($ac_try" in
22081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_compile") 2>conftest.er1
22087 grep -v '^ *+' conftest.er1 >conftest.err
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest.$ac_objext; then
22095 ac_header_compiler=yes
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 ac_header_compiler=no
22103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22105 echo "${ECHO_T}$ac_header_compiler" >&6; }
22107 # Is the header present?
22108 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
22109 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
22110 cat >conftest.$ac_ext <<_ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22116 #include <${NBS_DIR}/include/nbs.h>
22118 if { (ac_try="$ac_cpp conftest.$ac_ext"
22119 case "(($ac_try" in
22120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22121 *) ac_try_echo
=$ac_try;;
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22126 grep -v '^ *+' conftest.er1
>conftest.err
22128 cat conftest.err
>&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } >/dev
/null
&& {
22131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22132 test ! -s conftest.err
22134 ac_header_preproc
=yes
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.
$ac_ext >&5
22139 ac_header_preproc
=no
22142 rm -f conftest.err conftest.
$ac_ext
22143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22144 echo "${ECHO_T}$ac_header_preproc" >&6; }
22146 # So? What about this header?
22147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22149 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22150 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22151 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
22152 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
22153 ac_header_preproc
=yes
22156 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
22157 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
22158 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
22159 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
22160 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
22161 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
22162 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
22163 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22164 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
22165 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
22166 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
22167 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
22169 ## ------------------------------- ##
22170 ## Report this to www.asterisk.org ##
22171 ## ------------------------------- ##
22173 ) |
sed "s/^/$as_me: WARNING: /" >&2
22176 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
22177 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
22178 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22179 echo $ECHO_N "(cached) $ECHO_C" >&6
22181 eval "$as_ac_Header=\$ac_header_preproc"
22183 ac_res
=`eval echo '${'$as_ac_Header'}'`
22184 { echo "$as_me:$LINENO: result: $ac_res" >&5
22185 echo "${ECHO_T}$ac_res" >&6; }
22188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22196 CPPFLAGS
="${saved_cppflags}"
22198 if test "xnbs.h" != "x" ; then
22199 if test "${ac_cv_header_nbs_h+set}" = set; then
22200 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22201 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22202 if test "${ac_cv_header_nbs_h+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
22205 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22206 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22208 # Is the header compilable?
22209 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
22210 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
22211 cat >conftest.
$ac_ext <<_ACEOF
22214 cat confdefs.h
>>conftest.
$ac_ext
22215 cat >>conftest.
$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22217 $ac_includes_default
22220 rm -f conftest.
$ac_objext
22221 if { (ac_try
="$ac_compile"
22222 case "(($ac_try" in
22223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22227 (eval "$ac_compile") 2>conftest.er1
22229 grep -v '^ *+' conftest.er1 >conftest.err
22231 cat conftest.err >&5
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } && {
22234 test -z "$ac_c_werror_flag" ||
22235 test ! -s conftest.err
22236 } && test -s conftest.$ac_objext; then
22237 ac_header_compiler=yes
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 ac_header_compiler=no
22245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22247 echo "${ECHO_T}$ac_header_compiler" >&6; }
22249 # Is the header present?
22250 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
22251 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
22252 cat >conftest.$ac_ext <<_ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22260 if { (ac_try="$ac_cpp conftest.$ac_ext"
22261 case "(($ac_try" in
22262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22263 *) ac_try_echo
=$ac_try;;
22265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22268 grep -v '^ *+' conftest.er1
>conftest.err
22270 cat conftest.err
>&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } >/dev
/null
&& {
22273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22274 test ! -s conftest.err
22276 ac_header_preproc
=yes
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.
$ac_ext >&5
22281 ac_header_preproc
=no
22284 rm -f conftest.err conftest.
$ac_ext
22285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22286 echo "${ECHO_T}$ac_header_preproc" >&6; }
22288 # So? What about this header?
22289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22291 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22292 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22293 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
22294 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
22295 ac_header_preproc
=yes
22298 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
22299 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
22300 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
22301 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
22302 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
22303 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
22304 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
22305 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22306 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
22307 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
22308 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
22309 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
22311 ## ------------------------------- ##
22312 ## Report this to www.asterisk.org ##
22313 ## ------------------------------- ##
22315 ) |
sed "s/^/$as_me: WARNING: /" >&2
22318 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22319 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22320 if test "${ac_cv_header_nbs_h+set}" = set; then
22321 echo $ECHO_N "(cached) $ECHO_C" >&6
22323 ac_cv_header_nbs_h
=$ac_header_preproc
22325 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22326 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22329 if test $ac_cv_header_nbs_h = yes; then
22338 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
22339 if test -n "${NBS_MANDATORY}" ;
22341 { echo "$as_me:$LINENO: ***" >&5
22342 echo "$as_me: ***" >&6;}
22343 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
22344 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
22345 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
22346 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
22347 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22348 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22357 cat >>confdefs.h
<<_ACEOF
22362 elif test -n "${NBS_MANDATORY}";
22364 { echo "$as_me:$LINENO: ***" >&5
22365 echo "$as_me: ***" >&6;}
22366 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
22367 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
22368 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22369 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22370 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22371 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22378 if test "${USE_NCURSES}" != "no"; then
22380 if test "x${NCURSES_DIR}" != "x"; then
22381 if test -d ${NCURSES_DIR}/lib
; then
22382 pbxlibdir
="-L${NCURSES_DIR}/lib"
22384 pbxlibdir
="-L${NCURSES_DIR}"
22387 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
22388 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
22389 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
22390 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 ac_check_lib_save_LIBS
=$LIBS
22393 LIBS
="-lncurses ${pbxlibdir} $LIBS"
22394 cat >conftest.
$ac_ext <<_ACEOF
22397 cat confdefs.h
>>conftest.
$ac_ext
22398 cat >>conftest.
$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22401 /* Override any GCC internal prototype to avoid an error.
22402 Use char because int might match the return type of a GCC
22403 builtin and then its argument prototype would still apply. */
22416 rm -f conftest.
$ac_objext conftest
$ac_exeext
22417 if { (ac_try
="$ac_link"
22418 case "(($ac_try" in
22419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423 (eval "$ac_link") 2>conftest.er1
22425 grep -v '^ *+' conftest.er1 >conftest.err
22427 cat conftest.err >&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } && {
22430 test -z "$ac_c_werror_flag" ||
22431 test ! -s conftest.err
22432 } && test -s conftest$ac_exeext &&
22433 $as_test_x conftest$ac_exeext; then
22434 ac_cv_lib_ncurses_initscr=yes
22436 echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22439 ac_cv_lib_ncurses_initscr=no
22442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22443 conftest$ac_exeext conftest.$ac_ext
22444 LIBS=$ac_check_lib_save_LIBS
22446 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
22447 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
22448 if test $ac_cv_lib_ncurses_initscr = yes; then
22449 AST_NCURSES_FOUND=yes
22451 AST_NCURSES_FOUND=no
22455 if test "${AST_NCURSES_FOUND}" = "yes"; then
22456 NCURSES_LIB="-lncurses "
22457 NCURSES_HEADER_FOUND="1"
22458 if test "x${NCURSES_DIR}" != "x"; then
22459 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
22460 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
22461 saved_cppflags="${CPPFLAGS}"
22462 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
22463 if test "xcurses.h" != "x" ; then
22464 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" |
$as_tr_sh`
22465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22466 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22467 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22471 ac_res=`eval echo '${'$as_ac_Header'}'`
22472 { echo "$as_me:$LINENO: result: $ac_res" >&5
22473 echo "${ECHO_T}$ac_res" >&6; }
22475 # Is the header compilable?
22476 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
22477 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
22478 cat >conftest.$ac_ext <<_ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 $ac_includes_default
22485 #include <${NCURSES_DIR}/include/curses.h>
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22491 *) ac_try_echo
=$ac_try;;
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_compile") 2>conftest.er1
22496 grep -v '^ *+' conftest.er1
>conftest.err
22498 cat conftest.err
>&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } && {
22501 test -z "$ac_c_werror_flag" ||
22502 test ! -s conftest.err
22503 } && test -s conftest.
$ac_objext; then
22504 ac_header_compiler
=yes
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.
$ac_ext >&5
22509 ac_header_compiler
=no
22512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22514 echo "${ECHO_T}$ac_header_compiler" >&6; }
22516 # Is the header present?
22517 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
22518 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
22519 cat >conftest.
$ac_ext <<_ACEOF
22522 cat confdefs.h
>>conftest.
$ac_ext
22523 cat >>conftest.
$ac_ext <<_ACEOF
22524 /* end confdefs.h. */
22525 #include <${NCURSES_DIR}/include/curses.h>
22527 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22528 case "(($ac_try" in
22529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } >/dev/null && {
22540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22541 test ! -s conftest.err
22543 ac_header_preproc=yes
22545 echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22548 ac_header_preproc=no
22551 rm -f conftest.err conftest.$ac_ext
22552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22553 echo "${ECHO_T}$ac_header_preproc" >&6; }
22555 # So? What about this header?
22556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22558 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22559 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22560 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
22561 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
22562 ac_header_preproc=yes
22565 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
22566 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
22567 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
22568 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
22569 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
22570 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
22571 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
22572 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22573 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
22574 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
22575 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
22576 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
22578 ## ------------------------------- ##
22579 ## Report this to www.asterisk.org ##
22580 ## ------------------------------- ##
22582 ) | sed "s/^/$as_me: WARNING: /" >&2
22585 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22586 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22590 eval "$as_ac_Header=\$ac_header_preproc"
22592 ac_res=`eval echo '${'$as_ac_Header'}'`
22593 { echo "$as_me:$LINENO: result: $ac_res" >&5
22594 echo "${ECHO_T}$ac_res" >&6; }
22597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22598 NCURSES_HEADER_FOUND=1
22600 NCURSES_HEADER_FOUND=0
22605 CPPFLAGS="${saved_cppflags}"
22607 if test "xcurses.h" != "x" ; then
22608 if test "${ac_cv_header_curses_h+set}" = set; then
22609 { echo "$as_me:$LINENO: checking for curses.h" >&5
22610 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22611 if test "${ac_cv_header_curses_h+set}" = set; then
22612 echo $ECHO_N "(cached) $ECHO_C" >&6
22614 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22615 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22617 # Is the header compilable?
22618 { echo "$as_me:$LINENO: checking curses.h usability" >&5
22619 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
22620 cat >conftest.$ac_ext <<_ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22626 $ac_includes_default
22627 #include <curses.h>
22629 rm -f conftest.$ac_objext
22630 if { (ac_try="$ac_compile"
22631 case "(($ac_try" in
22632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22633 *) ac_try_echo
=$ac_try;;
22635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636 (eval "$ac_compile") 2>conftest.er1
22638 grep -v '^ *+' conftest.er1
>conftest.err
22640 cat conftest.err
>&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } && {
22643 test -z "$ac_c_werror_flag" ||
22644 test ! -s conftest.err
22645 } && test -s conftest.
$ac_objext; then
22646 ac_header_compiler
=yes
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.
$ac_ext >&5
22651 ac_header_compiler
=no
22654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22656 echo "${ECHO_T}$ac_header_compiler" >&6; }
22658 # Is the header present?
22659 { echo "$as_me:$LINENO: checking curses.h presence" >&5
22660 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
22661 cat >conftest.
$ac_ext <<_ACEOF
22664 cat confdefs.h
>>conftest.
$ac_ext
22665 cat >>conftest.
$ac_ext <<_ACEOF
22666 /* end confdefs.h. */
22667 #include <curses.h>
22669 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22670 case "(($ac_try" in
22671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22677 grep -v '^ *+' conftest.er1 >conftest.err
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } >/dev/null && {
22682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22685 ac_header_preproc=yes
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22690 ac_header_preproc=no
22693 rm -f conftest.err conftest.$ac_ext
22694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22695 echo "${ECHO_T}$ac_header_preproc" >&6; }
22697 # So? What about this header?
22698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22700 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22701 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22702 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
22703 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
22704 ac_header_preproc=yes
22707 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
22708 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
22709 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
22710 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
22711 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
22712 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
22713 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
22714 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22715 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
22716 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
22717 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
22718 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
22720 ## ------------------------------- ##
22721 ## Report this to www.asterisk.org ##
22722 ## ------------------------------- ##
22724 ) | sed "s/^/$as_me: WARNING: /" >&2
22727 { echo "$as_me:$LINENO: checking for curses.h" >&5
22728 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22729 if test "${ac_cv_header_curses_h+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22732 ac_cv_header_curses_h=$ac_header_preproc
22734 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22735 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22738 if test $ac_cv_header_curses_h = yes; then
22739 NCURSES_HEADER_FOUND=1
22741 NCURSES_HEADER_FOUND=0
22747 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
22748 if test -n "${NCURSES_MANDATORY}" ;
22750 { echo "$as_me:$LINENO: ***" >&5
22751 echo "$as_me: ***" >&6;}
22752 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
22753 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
22754 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
22755 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
22756 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22757 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22766 cat >>confdefs.h <<_ACEOF
22767 #define HAVE_NCURSES 1
22771 elif test -n "${NCURSES_MANDATORY}";
22773 { echo "$as_me:$LINENO: ***" >&5
22774 echo "$as_me: ***" >&6;}
22775 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
22776 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
22777 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22778 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22779 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22780 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22787 if test "${USE_NETSNMP}" != "no"; then
22788 if test "x${NETSNMP_DIR}" != "x"; then
22789 if test -n "$ac_tool_prefix"; then
22790 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22791 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22794 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22797 case $NETSNMP_CONFIG in
22799 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22803 for as_dir in ${NETSNMP_DIR}/bin
22806 test -z "$as_dir" && as_dir=.
22807 for ac_exec_ext in '' $ac_executable_extensions; do
22808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22809 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22820 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22821 if test -n "$NETSNMP_CONFIG"; then
22822 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22823 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22825 { echo "$as_me:$LINENO: result: no" >&5
22826 echo "${ECHO_T}no" >&6; }
22831 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22832 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22833 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22834 set dummy net-snmp-config; ac_word=$2
22835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22837 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22838 echo $ECHO_N "(cached) $ECHO_C" >&6
22840 case $ac_pt_NETSNMP_CONFIG in
22842 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22846 for as_dir in ${NETSNMP_DIR}/bin
22849 test -z "$as_dir" && as_dir=.
22850 for ac_exec_ext in '' $ac_executable_extensions; do
22851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22852 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22863 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22864 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22865 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22866 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22868 { echo "$as_me:$LINENO: result: no" >&5
22869 echo "${ECHO_T}no" >&6; }
22872 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22873 NETSNMP_CONFIG="No"
22875 case $cross_compiling:$ac_tool_warned in
22877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22878 whose name does not start with the host triplet. If you think this
22879 configuration is useful to you, please write to autoconf@gnu.org." >&5
22880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22881 whose name does not start with the host triplet. If you think this
22882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22883 ac_tool_warned=yes ;;
22885 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22888 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22891 if test x"${NETSNMP_CONFIG}" = xNo; then
22892 { echo "$as_me:$LINENO: ***" >&5
22893 echo "$as_me: ***" >&6;}
22894 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
22895 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
22896 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
22897 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
22898 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22899 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22900 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22901 echo "$as_me: *** including --without-netsnmp" >&6;}
22905 if test -n "$ac_tool_prefix"; then
22906 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22907 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22910 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22913 case $NETSNMP_CONFIG in
22915 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22919 for as_dir in $PATH
22922 test -z "$as_dir" && as_dir=.
22923 for ac_exec_ext in '' $ac_executable_extensions; do
22924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22925 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22936 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22937 if test -n "$NETSNMP_CONFIG"; then
22938 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22939 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22941 { echo "$as_me:$LINENO: result: no" >&5
22942 echo "${ECHO_T}no" >&6; }
22947 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22948 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22949 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22950 set dummy net-snmp-config; ac_word=$2
22951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22953 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22956 case $ac_pt_NETSNMP_CONFIG in
22958 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22962 for as_dir in $PATH
22965 test -z "$as_dir" && as_dir=.
22966 for ac_exec_ext in '' $ac_executable_extensions; do
22967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22968 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22979 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22980 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22981 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22982 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22984 { echo "$as_me:$LINENO: result: no" >&5
22985 echo "${ECHO_T}no" >&6; }
22988 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22989 NETSNMP_CONFIG="No"
22991 case $cross_compiling:$ac_tool_warned in
22993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22994 whose name does not start with the host triplet. If you think this
22995 configuration is useful to you, please write to autoconf@gnu.org." >&5
22996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22997 whose name does not start with the host triplet. If you think this
22998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22999 ac_tool_warned=yes ;;
23001 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
23004 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
23009 if test x"${NETSNMP_CONFIG}" != xNo; then
23010 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
23012 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
23013 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
23014 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23017 ac_check_lib_save_LIBS=$LIBS
23018 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
23019 cat >conftest.$ac_ext <<_ACEOF
23022 cat confdefs.h >>conftest.$ac_ext
23023 cat >>conftest.$ac_ext <<_ACEOF
23024 /* end confdefs.h. */
23026 /* Override any GCC internal prototype to avoid an error.
23027 Use char because int might match the return type of a GCC
23028 builtin and then its argument prototype would still apply. */
23032 char snmp_register_callback ();
23036 return snmp_register_callback ();
23041 rm -f conftest.$ac_objext conftest$ac_exeext
23042 if { (ac_try="$ac_link"
23043 case "(($ac_try" in
23044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23045 *) ac_try_echo
=$ac_try;;
23047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048 (eval "$ac_link") 2>conftest.er1
23050 grep -v '^ *+' conftest.er1
>conftest.err
23052 cat conftest.err
>&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } && {
23055 test -z "$ac_c_werror_flag" ||
23056 test ! -s conftest.err
23057 } && test -s conftest
$ac_exeext &&
23058 $as_test_x conftest
$ac_exeext; then
23059 ac_cv_lib_netsnmp_snmp_register_callback
=yes
23061 echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.
$ac_ext >&5
23064 ac_cv_lib_netsnmp_snmp_register_callback
=no
23067 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23068 conftest
$ac_exeext conftest.
$ac_ext
23069 LIBS
=$ac_check_lib_save_LIBS
23071 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
23072 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
23073 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
23075 cat >>confdefs.h
<<_ACEOF
23076 #define HAVE_NETSNMP 1
23082 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
23083 NETSNMP_LIB
="${NETSNMP_libs}"
23085 elif test -n "${NETSNMP_MANDATORY}";
23087 { echo "$as_me:$LINENO: ***" >&5
23088 echo "$as_me: ***" >&6;}
23089 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
23090 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
23091 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23092 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23093 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
23094 echo "$as_me: *** including --without-netsnmp" >&6;}
23097 elif test -n "${NETSNMP_MANDATORY}";
23099 { echo "$as_me:$LINENO: ***" >&5
23100 echo "$as_me: ***" >&6;}
23101 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
23102 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
23103 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23104 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23105 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
23106 echo "$as_me: *** including --without-netsnmp" >&6;}
23111 if test "${USE_NEWT}" != "no"; then
23113 if test "x${NEWT_DIR}" != "x"; then
23114 if test -d ${NEWT_DIR}/lib
; then
23115 pbxlibdir
="-L${NEWT_DIR}/lib"
23117 pbxlibdir
="-L${NEWT_DIR}"
23120 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
23121 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
23122 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23125 ac_check_lib_save_LIBS
=$LIBS
23126 LIBS
="-lnewt ${pbxlibdir} $LIBS"
23127 cat >conftest.
$ac_ext <<_ACEOF
23130 cat confdefs.h
>>conftest.
$ac_ext
23131 cat >>conftest.
$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23134 /* Override any GCC internal prototype to avoid an error.
23135 Use char because int might match the return type of a GCC
23136 builtin and then its argument prototype would still apply. */
23144 return newtBell ();
23149 rm -f conftest.
$ac_objext conftest
$ac_exeext
23150 if { (ac_try
="$ac_link"
23151 case "(($ac_try" in
23152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23153 *) ac_try_echo=$ac_try;;
23155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23156 (eval "$ac_link") 2>conftest.er1
23158 grep -v '^ *+' conftest.er1 >conftest.err
23160 cat conftest.err >&5
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); } && {
23163 test -z "$ac_c_werror_flag" ||
23164 test ! -s conftest.err
23165 } && test -s conftest$ac_exeext &&
23166 $as_test_x conftest$ac_exeext; then
23167 ac_cv_lib_newt_newtBell=yes
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23172 ac_cv_lib_newt_newtBell=no
23175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23176 conftest$ac_exeext conftest.$ac_ext
23177 LIBS=$ac_check_lib_save_LIBS
23179 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
23180 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
23181 if test $ac_cv_lib_newt_newtBell = yes; then
23188 if test "${AST_NEWT_FOUND}" = "yes"; then
23190 NEWT_HEADER_FOUND="1"
23191 if test "x${NEWT_DIR}" != "x"; then
23192 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
23193 NEWT_INCLUDE="-I${NEWT_DIR}/include"
23194 saved_cppflags="${CPPFLAGS}"
23195 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
23196 if test "xnewt.h" != "x" ; then
23197 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" |
$as_tr_sh`
23198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23199 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23200 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
23204 ac_res=`eval echo '${'$as_ac_Header'}'`
23205 { echo "$as_me:$LINENO: result: $ac_res" >&5
23206 echo "${ECHO_T}$ac_res" >&6; }
23208 # Is the header compilable?
23209 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
23210 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
23211 cat >conftest.$ac_ext <<_ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23217 $ac_includes_default
23218 #include <${NEWT_DIR}/include/newt.h>
23220 rm -f conftest.$ac_objext
23221 if { (ac_try="$ac_compile"
23222 case "(($ac_try" in
23223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23224 *) ac_try_echo
=$ac_try;;
23226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23227 (eval "$ac_compile") 2>conftest.er1
23229 grep -v '^ *+' conftest.er1
>conftest.err
23231 cat conftest.err
>&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); } && {
23234 test -z "$ac_c_werror_flag" ||
23235 test ! -s conftest.err
23236 } && test -s conftest.
$ac_objext; then
23237 ac_header_compiler
=yes
23239 echo "$as_me: failed program was:" >&5
23240 sed 's/^/| /' conftest.
$ac_ext >&5
23242 ac_header_compiler
=no
23245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23247 echo "${ECHO_T}$ac_header_compiler" >&6; }
23249 # Is the header present?
23250 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
23251 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
23252 cat >conftest.
$ac_ext <<_ACEOF
23255 cat confdefs.h
>>conftest.
$ac_ext
23256 cat >>conftest.
$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23258 #include <${NEWT_DIR}/include/newt.h>
23260 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23261 case "(($ac_try" in
23262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } >/dev/null && {
23273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23274 test ! -s conftest.err
23276 ac_header_preproc=yes
23278 echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23281 ac_header_preproc=no
23284 rm -f conftest.err conftest.$ac_ext
23285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23286 echo "${ECHO_T}$ac_header_preproc" >&6; }
23288 # So? What about this header?
23289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23291 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23292 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23293 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
23294 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
23295 ac_header_preproc=yes
23298 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
23299 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
23300 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
23301 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
23302 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
23303 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
23304 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
23305 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23306 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
23307 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
23308 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
23309 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
23311 ## ------------------------------- ##
23312 ## Report this to www.asterisk.org ##
23313 ## ------------------------------- ##
23315 ) | sed "s/^/$as_me: WARNING: /" >&2
23318 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23319 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23321 echo $ECHO_N "(cached) $ECHO_C" >&6
23323 eval "$as_ac_Header=\$ac_header_preproc"
23325 ac_res=`eval echo '${'$as_ac_Header'}'`
23326 { echo "$as_me:$LINENO: result: $ac_res" >&5
23327 echo "${ECHO_T}$ac_res" >&6; }
23330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23331 NEWT_HEADER_FOUND=1
23333 NEWT_HEADER_FOUND=0
23338 CPPFLAGS="${saved_cppflags}"
23340 if test "xnewt.h" != "x" ; then
23341 if test "${ac_cv_header_newt_h+set}" = set; then
23342 { echo "$as_me:$LINENO: checking for newt.h" >&5
23343 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23344 if test "${ac_cv_header_newt_h+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23347 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23348 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23350 # Is the header compilable?
23351 { echo "$as_me:$LINENO: checking newt.h usability" >&5
23352 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
23353 cat >conftest.$ac_ext <<_ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23359 $ac_includes_default
23362 rm -f conftest.$ac_objext
23363 if { (ac_try="$ac_compile"
23364 case "(($ac_try" in
23365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23366 *) ac_try_echo
=$ac_try;;
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_compile") 2>conftest.er1
23371 grep -v '^ *+' conftest.er1
>conftest.err
23373 cat conftest.err
>&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && {
23376 test -z "$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 } && test -s conftest.
$ac_objext; then
23379 ac_header_compiler
=yes
23381 echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.
$ac_ext >&5
23384 ac_header_compiler
=no
23387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23389 echo "${ECHO_T}$ac_header_compiler" >&6; }
23391 # Is the header present?
23392 { echo "$as_me:$LINENO: checking newt.h presence" >&5
23393 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
23394 cat >conftest.
$ac_ext <<_ACEOF
23397 cat confdefs.h
>>conftest.
$ac_ext
23398 cat >>conftest.
$ac_ext <<_ACEOF
23399 /* end confdefs.h. */
23402 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23403 case "(($ac_try" in
23404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } >/dev/null && {
23415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23418 ac_header_preproc=yes
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23423 ac_header_preproc=no
23426 rm -f conftest.err conftest.$ac_ext
23427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23428 echo "${ECHO_T}$ac_header_preproc" >&6; }
23430 # So? What about this header?
23431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23433 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23434 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23435 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
23436 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
23437 ac_header_preproc=yes
23440 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
23441 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
23442 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
23443 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
23444 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
23445 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
23446 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
23447 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23448 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
23449 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
23450 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
23451 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
23453 ## ------------------------------- ##
23454 ## Report this to www.asterisk.org ##
23455 ## ------------------------------- ##
23457 ) | sed "s/^/$as_me: WARNING: /" >&2
23460 { echo "$as_me:$LINENO: checking for newt.h" >&5
23461 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23462 if test "${ac_cv_header_newt_h+set}" = set; then
23463 echo $ECHO_N "(cached) $ECHO_C" >&6
23465 ac_cv_header_newt_h=$ac_header_preproc
23467 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23468 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23471 if test $ac_cv_header_newt_h = yes; then
23472 NEWT_HEADER_FOUND=1
23474 NEWT_HEADER_FOUND=0
23480 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
23481 if test -n "${NEWT_MANDATORY}" ;
23483 { echo "$as_me:$LINENO: ***" >&5
23484 echo "$as_me: ***" >&6;}
23485 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
23486 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
23487 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
23488 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
23489 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23490 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23499 cat >>confdefs.h <<_ACEOF
23500 #define HAVE_NEWT 1
23504 elif test -n "${NEWT_MANDATORY}";
23506 { echo "$as_me:$LINENO: ***" >&5
23507 echo "$as_me: ***" >&6;}
23508 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
23509 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
23510 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23511 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23512 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23513 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23520 if test "${USE_UNIXODBC}" != "no"; then
23522 if test "x${UNIXODBC_DIR}" != "x"; then
23523 if test -d ${UNIXODBC_DIR}/lib; then
23524 pbxlibdir="-L${UNIXODBC_DIR}/lib"
23526 pbxlibdir="-L${UNIXODBC_DIR}"
23529 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
23530 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
23531 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23534 ac_check_lib_save_LIBS=$LIBS
23535 LIBS="-lodbc ${pbxlibdir} $LIBS"
23536 cat >conftest.$ac_ext <<_ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23543 /* Override any GCC internal prototype to avoid an error.
23544 Use char because int might match the return type of a GCC
23545 builtin and then its argument prototype would still apply. */
23549 char SQLConnect ();
23553 return SQLConnect ();
23558 rm -f conftest.$ac_objext conftest$ac_exeext
23559 if { (ac_try="$ac_link"
23560 case "(($ac_try" in
23561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23562 *) ac_try_echo
=$ac_try;;
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565 (eval "$ac_link") 2>conftest.er1
23567 grep -v '^ *+' conftest.er1
>conftest.err
23569 cat conftest.err
>&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); } && {
23572 test -z "$ac_c_werror_flag" ||
23573 test ! -s conftest.err
23574 } && test -s conftest
$ac_exeext &&
23575 $as_test_x conftest
$ac_exeext; then
23576 ac_cv_lib_odbc_SQLConnect
=yes
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.
$ac_ext >&5
23581 ac_cv_lib_odbc_SQLConnect
=no
23584 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23585 conftest
$ac_exeext conftest.
$ac_ext
23586 LIBS
=$ac_check_lib_save_LIBS
23588 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
23589 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
23590 if test $ac_cv_lib_odbc_SQLConnect = yes; then
23591 AST_UNIXODBC_FOUND
=yes
23593 AST_UNIXODBC_FOUND
=no
23597 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
23598 UNIXODBC_LIB
="-lodbc "
23599 UNIXODBC_HEADER_FOUND
="1"
23600 if test "x${UNIXODBC_DIR}" != "x"; then
23601 UNIXODBC_LIB
="${pbxlibdir} ${UNIXODBC_LIB}"
23602 UNIXODBC_INCLUDE
="-I${UNIXODBC_DIR}/include"
23603 saved_cppflags
="${CPPFLAGS}"
23604 CPPFLAGS
="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
23605 if test "xsql.h" != "x" ; then
23606 as_ac_Header
=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
23607 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23608 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23609 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23610 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23613 ac_res
=`eval echo '${'$as_ac_Header'}'`
23614 { echo "$as_me:$LINENO: result: $ac_res" >&5
23615 echo "${ECHO_T}$ac_res" >&6; }
23617 # Is the header compilable?
23618 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
23619 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
23620 cat >conftest.
$ac_ext <<_ACEOF
23623 cat confdefs.h
>>conftest.
$ac_ext
23624 cat >>conftest.
$ac_ext <<_ACEOF
23625 /* end confdefs.h. */
23626 $ac_includes_default
23627 #include <${UNIXODBC_DIR}/include/sql.h>
23629 rm -f conftest.
$ac_objext
23630 if { (ac_try
="$ac_compile"
23631 case "(($ac_try" in
23632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23633 *) ac_try_echo=$ac_try;;
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636 (eval "$ac_compile") 2>conftest.er1
23638 grep -v '^ *+' conftest.er1 >conftest.err
23640 cat conftest.err >&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } && {
23643 test -z "$ac_c_werror_flag" ||
23644 test ! -s conftest.err
23645 } && test -s conftest.$ac_objext; then
23646 ac_header_compiler=yes
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23651 ac_header_compiler=no
23654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23656 echo "${ECHO_T}$ac_header_compiler" >&6; }
23658 # Is the header present?
23659 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
23660 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
23661 cat >conftest.$ac_ext <<_ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h. */
23667 #include <${UNIXODBC_DIR}/include/sql.h>
23669 if { (ac_try="$ac_cpp conftest.$ac_ext"
23670 case "(($ac_try" in
23671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23672 *) ac_try_echo
=$ac_try;;
23674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23677 grep -v '^ *+' conftest.er1
>conftest.err
23679 cat conftest.err
>&5
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); } >/dev
/null
&& {
23682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23683 test ! -s conftest.err
23685 ac_header_preproc
=yes
23687 echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.
$ac_ext >&5
23690 ac_header_preproc
=no
23693 rm -f conftest.err conftest.
$ac_ext
23694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23695 echo "${ECHO_T}$ac_header_preproc" >&6; }
23697 # So? What about this header?
23698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23700 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23701 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23702 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
23703 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
23704 ac_header_preproc
=yes
23707 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
23708 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
23709 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
23710 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
23711 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
23712 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
23713 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
23714 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23715 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
23716 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
23717 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
23718 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
23720 ## ------------------------------- ##
23721 ## Report this to www.asterisk.org ##
23722 ## ------------------------------- ##
23724 ) |
sed "s/^/$as_me: WARNING: /" >&2
23727 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23728 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23729 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23732 eval "$as_ac_Header=\$ac_header_preproc"
23734 ac_res
=`eval echo '${'$as_ac_Header'}'`
23735 { echo "$as_me:$LINENO: result: $ac_res" >&5
23736 echo "${ECHO_T}$ac_res" >&6; }
23739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23740 UNIXODBC_HEADER_FOUND
=1
23742 UNIXODBC_HEADER_FOUND
=0
23747 CPPFLAGS
="${saved_cppflags}"
23749 if test "xsql.h" != "x" ; then
23750 if test "${ac_cv_header_sql_h+set}" = set; then
23751 { echo "$as_me:$LINENO: checking for sql.h" >&5
23752 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23753 if test "${ac_cv_header_sql_h+set}" = set; then
23754 echo $ECHO_N "(cached) $ECHO_C" >&6
23756 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23757 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23759 # Is the header compilable?
23760 { echo "$as_me:$LINENO: checking sql.h usability" >&5
23761 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
23762 cat >conftest.
$ac_ext <<_ACEOF
23765 cat confdefs.h
>>conftest.
$ac_ext
23766 cat >>conftest.
$ac_ext <<_ACEOF
23767 /* end confdefs.h. */
23768 $ac_includes_default
23771 rm -f conftest.
$ac_objext
23772 if { (ac_try
="$ac_compile"
23773 case "(($ac_try" in
23774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_compile") 2>conftest.er1
23780 grep -v '^ *+' conftest.er1 >conftest.err
23782 cat conftest.err >&5
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); } && {
23785 test -z "$ac_c_werror_flag" ||
23786 test ! -s conftest.err
23787 } && test -s conftest.$ac_objext; then
23788 ac_header_compiler=yes
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23793 ac_header_compiler=no
23796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23798 echo "${ECHO_T}$ac_header_compiler" >&6; }
23800 # Is the header present?
23801 { echo "$as_me:$LINENO: checking sql.h presence" >&5
23802 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
23803 cat >conftest.$ac_ext <<_ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h. */
23811 if { (ac_try="$ac_cpp conftest.$ac_ext"
23812 case "(($ac_try" in
23813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23814 *) ac_try_echo
=$ac_try;;
23816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23819 grep -v '^ *+' conftest.er1
>conftest.err
23821 cat conftest.err
>&5
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } >/dev
/null
&& {
23824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23825 test ! -s conftest.err
23827 ac_header_preproc
=yes
23829 echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.
$ac_ext >&5
23832 ac_header_preproc
=no
23835 rm -f conftest.err conftest.
$ac_ext
23836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23837 echo "${ECHO_T}$ac_header_preproc" >&6; }
23839 # So? What about this header?
23840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23842 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23843 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23844 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
23845 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
23846 ac_header_preproc
=yes
23849 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
23850 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
23851 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
23852 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
23853 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
23854 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
23855 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
23856 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23857 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
23858 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
23859 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
23860 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
23862 ## ------------------------------- ##
23863 ## Report this to www.asterisk.org ##
23864 ## ------------------------------- ##
23866 ) |
sed "s/^/$as_me: WARNING: /" >&2
23869 { echo "$as_me:$LINENO: checking for sql.h" >&5
23870 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23871 if test "${ac_cv_header_sql_h+set}" = set; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23874 ac_cv_header_sql_h
=$ac_header_preproc
23876 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23877 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23880 if test $ac_cv_header_sql_h = yes; then
23881 UNIXODBC_HEADER_FOUND
=1
23883 UNIXODBC_HEADER_FOUND
=0
23889 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
23890 if test -n "${UNIXODBC_MANDATORY}" ;
23892 { echo "$as_me:$LINENO: ***" >&5
23893 echo "$as_me: ***" >&6;}
23894 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
23895 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
23896 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
23897 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
23898 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23899 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23903 UNIXODBC_INCLUDE
=""
23908 cat >>confdefs.h
<<_ACEOF
23909 #define HAVE_UNIXODBC 1
23913 elif test -n "${UNIXODBC_MANDATORY}";
23915 { echo "$as_me:$LINENO: ***" >&5
23916 echo "$as_me: ***" >&6;}
23917 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
23918 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
23919 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23920 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23921 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23922 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23929 if test "${USE_OGG}" != "no"; then
23931 if test "x${OGG_DIR}" != "x"; then
23932 if test -d ${OGG_DIR}/lib
; then
23933 pbxlibdir
="-L${OGG_DIR}/lib"
23935 pbxlibdir
="-L${OGG_DIR}"
23938 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
23939 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
23940 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
23941 echo $ECHO_N "(cached) $ECHO_C" >&6
23943 ac_check_lib_save_LIBS
=$LIBS
23944 LIBS
="-logg ${pbxlibdir} $LIBS"
23945 cat >conftest.
$ac_ext <<_ACEOF
23948 cat confdefs.h
>>conftest.
$ac_ext
23949 cat >>conftest.
$ac_ext <<_ACEOF
23950 /* end confdefs.h. */
23952 /* Override any GCC internal prototype to avoid an error.
23953 Use char because int might match the return type of a GCC
23954 builtin and then its argument prototype would still apply. */
23958 char ogg_sync_init ();
23962 return ogg_sync_init ();
23967 rm -f conftest.
$ac_objext conftest
$ac_exeext
23968 if { (ac_try
="$ac_link"
23969 case "(($ac_try" in
23970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974 (eval "$ac_link") 2>conftest.er1
23976 grep -v '^ *+' conftest.er1 >conftest.err
23978 cat conftest.err >&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } && {
23981 test -z "$ac_c_werror_flag" ||
23982 test ! -s conftest.err
23983 } && test -s conftest$ac_exeext &&
23984 $as_test_x conftest$ac_exeext; then
23985 ac_cv_lib_ogg_ogg_sync_init=yes
23987 echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23990 ac_cv_lib_ogg_ogg_sync_init=no
23993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23994 conftest$ac_exeext conftest.$ac_ext
23995 LIBS=$ac_check_lib_save_LIBS
23997 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
23998 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
23999 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
24006 if test "${AST_OGG_FOUND}" = "yes"; then
24008 OGG_HEADER_FOUND="1"
24009 if test "x${OGG_DIR}" != "x"; then
24010 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
24011 OGG_INCLUDE="-I${OGG_DIR}/include"
24012 saved_cppflags="${CPPFLAGS}"
24013 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
24014 if test "x" != "x" ; then
24015 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" |
$as_tr_sh`
24016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24017 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
24018 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
24019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24020 echo $ECHO_N "(cached) $ECHO_C" >&6
24022 ac_res=`eval echo '${'$as_ac_Header'}'`
24023 { echo "$as_me:$LINENO: result: $ac_res" >&5
24024 echo "${ECHO_T}$ac_res" >&6; }
24026 # Is the header compilable?
24027 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
24028 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
24029 cat >conftest.$ac_ext <<_ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h. */
24035 $ac_includes_default
24036 #include <${OGG_DIR}/include/>
24038 rm -f conftest.$ac_objext
24039 if { (ac_try="$ac_compile"
24040 case "(($ac_try" in
24041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24042 *) ac_try_echo
=$ac_try;;
24044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24045 (eval "$ac_compile") 2>conftest.er1
24047 grep -v '^ *+' conftest.er1
>conftest.err
24049 cat conftest.err
>&5
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); } && {
24052 test -z "$ac_c_werror_flag" ||
24053 test ! -s conftest.err
24054 } && test -s conftest.
$ac_objext; then
24055 ac_header_compiler
=yes
24057 echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.
$ac_ext >&5
24060 ac_header_compiler
=no
24063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24065 echo "${ECHO_T}$ac_header_compiler" >&6; }
24067 # Is the header present?
24068 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
24069 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
24070 cat >conftest.
$ac_ext <<_ACEOF
24073 cat confdefs.h
>>conftest.
$ac_ext
24074 cat >>conftest.
$ac_ext <<_ACEOF
24075 /* end confdefs.h. */
24076 #include <${OGG_DIR}/include/>
24078 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24079 case "(($ac_try" in
24080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24081 *) ac_try_echo=$ac_try;;
24083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24086 grep -v '^ *+' conftest.er1 >conftest.err
24088 cat conftest.err >&5
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); } >/dev/null && {
24091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24092 test ! -s conftest.err
24094 ac_header_preproc=yes
24096 echo "$as_me: failed program was:" >&5
24097 sed 's/^/| /' conftest.$ac_ext >&5
24099 ac_header_preproc=no
24102 rm -f conftest.err conftest.$ac_ext
24103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24104 echo "${ECHO_T}$ac_header_preproc" >&6; }
24106 # So? What about this header?
24107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24109 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
24110 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
24111 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
24112 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
24113 ac_header_preproc=yes
24116 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
24117 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
24118 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
24119 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
24120 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
24121 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
24122 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
24123 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
24124 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
24125 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
24126 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
24127 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
24129 ## ------------------------------- ##
24130 ## Report this to www.asterisk.org ##
24131 ## ------------------------------- ##
24133 ) | sed "s/^/$as_me: WARNING: /" >&2
24136 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
24137 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
24138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24139 echo $ECHO_N "(cached) $ECHO_C" >&6
24141 eval "$as_ac_Header=\$ac_header_preproc"
24143 ac_res=`eval echo '${'$as_ac_Header'}'`
24144 { echo "$as_me:$LINENO: result: $ac_res" >&5
24145 echo "${ECHO_T}$ac_res" >&6; }
24148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24156 CPPFLAGS="${saved_cppflags}"
24158 if test "x" != "x" ; then
24159 if test "${ac_cv_header_+set}" = set; then
24160 { echo "$as_me:$LINENO: checking for " >&5
24161 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24162 if test "${ac_cv_header_+set}" = set; then
24163 echo $ECHO_N "(cached) $ECHO_C" >&6
24165 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24166 echo "${ECHO_T}$ac_cv_header_" >&6; }
24168 # Is the header compilable?
24169 { echo "$as_me:$LINENO: checking usability" >&5
24170 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24171 cat >conftest.$ac_ext <<_ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h. */
24177 $ac_includes_default
24180 rm -f conftest.$ac_objext
24181 if { (ac_try="$ac_compile"
24182 case "(($ac_try" in
24183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24184 *) ac_try_echo
=$ac_try;;
24186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24187 (eval "$ac_compile") 2>conftest.er1
24189 grep -v '^ *+' conftest.er1
>conftest.err
24191 cat conftest.err
>&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } && {
24194 test -z "$ac_c_werror_flag" ||
24195 test ! -s conftest.err
24196 } && test -s conftest.
$ac_objext; then
24197 ac_header_compiler
=yes
24199 echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.
$ac_ext >&5
24202 ac_header_compiler
=no
24205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24207 echo "${ECHO_T}$ac_header_compiler" >&6; }
24209 # Is the header present?
24210 { echo "$as_me:$LINENO: checking presence" >&5
24211 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24212 cat >conftest.
$ac_ext <<_ACEOF
24215 cat confdefs.h
>>conftest.
$ac_ext
24216 cat >>conftest.
$ac_ext <<_ACEOF
24217 /* end confdefs.h. */
24220 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24221 case "(($ac_try" in
24222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24223 *) ac_try_echo=$ac_try;;
24225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24228 grep -v '^ *+' conftest.er1 >conftest.err
24230 cat conftest.err >&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); } >/dev/null && {
24233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24234 test ! -s conftest.err
24236 ac_header_preproc=yes
24238 echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24241 ac_header_preproc=no
24244 rm -f conftest.err conftest.$ac_ext
24245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24246 echo "${ECHO_T}$ac_header_preproc" >&6; }
24248 # So? What about this header?
24249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24251 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24252 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24253 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24254 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24255 ac_header_preproc=yes
24258 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24259 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24260 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24261 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24262 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24263 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24264 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24265 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24266 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24267 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24268 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24269 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24271 ## ------------------------------- ##
24272 ## Report this to www.asterisk.org ##
24273 ## ------------------------------- ##
24275 ) | sed "s/^/$as_me: WARNING: /" >&2
24278 { echo "$as_me:$LINENO: checking for " >&5
24279 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24280 if test "${ac_cv_header_+set}" = set; then
24281 echo $ECHO_N "(cached) $ECHO_C" >&6
24283 ac_cv_header_=$ac_header_preproc
24285 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24286 echo "${ECHO_T}$ac_cv_header_" >&6; }
24289 if test $ac_cv_header_ = yes; then
24298 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
24299 if test -n "${OGG_MANDATORY}" ;
24301 { echo "$as_me:$LINENO: ***" >&5
24302 echo "$as_me: ***" >&6;}
24303 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
24304 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
24305 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
24306 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
24307 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24308 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24317 cat >>confdefs.h <<_ACEOF
24322 elif test -n "${OGG_MANDATORY}";
24324 { echo "$as_me:$LINENO: ***" >&5
24325 echo "$as_me: ***" >&6;}
24326 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
24327 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
24328 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24329 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24330 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24331 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24337 if test "${USE_OSS}" != "no"; then
24339 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24340 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24341 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24342 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24343 echo $ECHO_N "(cached) $ECHO_C" >&6
24345 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24346 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24348 # Is the header compilable?
24349 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
24350 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
24351 cat >conftest.$ac_ext <<_ACEOF
24354 cat confdefs.h >>conftest.$ac_ext
24355 cat >>conftest.$ac_ext <<_ACEOF
24356 /* end confdefs.h. */
24357 $ac_includes_default
24358 #include <linux/soundcard.h>
24360 rm -f conftest.$ac_objext
24361 if { (ac_try="$ac_compile"
24362 case "(($ac_try" in
24363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24364 *) ac_try_echo
=$ac_try;;
24366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24367 (eval "$ac_compile") 2>conftest.er1
24369 grep -v '^ *+' conftest.er1
>conftest.err
24371 cat conftest.err
>&5
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); } && {
24374 test -z "$ac_c_werror_flag" ||
24375 test ! -s conftest.err
24376 } && test -s conftest.
$ac_objext; then
24377 ac_header_compiler
=yes
24379 echo "$as_me: failed program was:" >&5
24380 sed 's/^/| /' conftest.
$ac_ext >&5
24382 ac_header_compiler
=no
24385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24387 echo "${ECHO_T}$ac_header_compiler" >&6; }
24389 # Is the header present?
24390 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
24391 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
24392 cat >conftest.
$ac_ext <<_ACEOF
24395 cat confdefs.h
>>conftest.
$ac_ext
24396 cat >>conftest.
$ac_ext <<_ACEOF
24397 /* end confdefs.h. */
24398 #include <linux/soundcard.h>
24400 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24401 case "(($ac_try" in
24402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24403 *) ac_try_echo=$ac_try;;
24405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24408 grep -v '^ *+' conftest.er1 >conftest.err
24410 cat conftest.err >&5
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); } >/dev/null && {
24413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24414 test ! -s conftest.err
24416 ac_header_preproc=yes
24418 echo "$as_me: failed program was:" >&5
24419 sed 's/^/| /' conftest.$ac_ext >&5
24421 ac_header_preproc=no
24424 rm -f conftest.err conftest.$ac_ext
24425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24426 echo "${ECHO_T}$ac_header_preproc" >&6; }
24428 # So? What about this header?
24429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24431 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24432 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24433 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
24434 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
24435 ac_header_preproc=yes
24438 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
24439 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
24440 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
24441 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
24442 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
24443 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
24444 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24445 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24446 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
24447 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
24448 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
24449 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
24451 ## ------------------------------- ##
24452 ## Report this to www.asterisk.org ##
24453 ## ------------------------------- ##
24455 ) | sed "s/^/$as_me: WARNING: /" >&2
24458 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24459 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24460 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24461 echo $ECHO_N "(cached) $ECHO_C" >&6
24463 ac_cv_header_linux_soundcard_h=$ac_header_preproc
24465 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24466 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24469 if test $ac_cv_header_linux_soundcard_h = yes; then
24473 cat >>confdefs.h <<_ACEOF
24481 if test "$PBX_OSS" = "0"; then
24482 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24483 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24484 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24485 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24486 echo $ECHO_N "(cached) $ECHO_C" >&6
24488 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24489 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24491 # Is the header compilable?
24492 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
24493 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 $ac_includes_default
24501 #include <sys/soundcard.h>
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24507 *) ac_try_echo
=$ac_try;;
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_compile") 2>conftest.er1
24512 grep -v '^ *+' conftest.er1
>conftest.err
24514 cat conftest.err
>&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } && {
24517 test -z "$ac_c_werror_flag" ||
24518 test ! -s conftest.err
24519 } && test -s conftest.
$ac_objext; then
24520 ac_header_compiler
=yes
24522 echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.
$ac_ext >&5
24525 ac_header_compiler
=no
24528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24530 echo "${ECHO_T}$ac_header_compiler" >&6; }
24532 # Is the header present?
24533 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
24534 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
24535 cat >conftest.
$ac_ext <<_ACEOF
24538 cat confdefs.h
>>conftest.
$ac_ext
24539 cat >>conftest.
$ac_ext <<_ACEOF
24540 /* end confdefs.h. */
24541 #include <sys/soundcard.h>
24543 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24544 case "(($ac_try" in
24545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24551 grep -v '^ *+' conftest.er1 >conftest.err
24553 cat conftest.err >&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } >/dev/null && {
24556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24557 test ! -s conftest.err
24559 ac_header_preproc=yes
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24564 ac_header_preproc=no
24567 rm -f conftest.err conftest.$ac_ext
24568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24569 echo "${ECHO_T}$ac_header_preproc" >&6; }
24571 # So? What about this header?
24572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24574 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24575 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24576 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
24577 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
24578 ac_header_preproc=yes
24581 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
24582 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
24583 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
24584 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
24585 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
24586 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
24587 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24588 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24589 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
24590 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
24591 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
24592 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
24594 ## ------------------------------- ##
24595 ## Report this to www.asterisk.org ##
24596 ## ------------------------------- ##
24598 ) | sed "s/^/$as_me: WARNING: /" >&2
24601 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24602 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24603 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24604 echo $ECHO_N "(cached) $ECHO_C" >&6
24606 ac_cv_header_sys_soundcard_h=$ac_header_preproc
24608 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24609 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24612 if test $ac_cv_header_sys_soundcard_h = yes; then
24616 cat >>confdefs.h <<_ACEOF
24625 if test "$PBX_OSS" = "0"; then
24627 if test "${USE_OSS}" != "no"; then
24629 if test "x${OSS_DIR}" != "x"; then
24630 if test -d ${OSS_DIR}/lib; then
24631 pbxlibdir="-L${OSS_DIR}/lib"
24633 pbxlibdir="-L${OSS_DIR}"
24636 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
24637 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
24638 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
24639 echo $ECHO_N "(cached) $ECHO_C" >&6
24641 ac_check_lib_save_LIBS=$LIBS
24642 LIBS="-lossaudio ${pbxlibdir} $LIBS"
24643 cat >conftest.$ac_ext <<_ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24650 /* Override any GCC internal prototype to avoid an error.
24651 Use char because int might match the return type of a GCC
24652 builtin and then its argument prototype would still apply. */
24656 char oss_ioctl_mixer ();
24660 return oss_ioctl_mixer ();
24665 rm -f conftest.$ac_objext conftest$ac_exeext
24666 if { (ac_try="$ac_link"
24667 case "(($ac_try" in
24668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24669 *) ac_try_echo
=$ac_try;;
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_link") 2>conftest.er1
24674 grep -v '^ *+' conftest.er1
>conftest.err
24676 cat conftest.err
>&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); } && {
24679 test -z "$ac_c_werror_flag" ||
24680 test ! -s conftest.err
24681 } && test -s conftest
$ac_exeext &&
24682 $as_test_x conftest
$ac_exeext; then
24683 ac_cv_lib_ossaudio_oss_ioctl_mixer
=yes
24685 echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.
$ac_ext >&5
24688 ac_cv_lib_ossaudio_oss_ioctl_mixer
=no
24691 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24692 conftest
$ac_exeext conftest.
$ac_ext
24693 LIBS
=$ac_check_lib_save_LIBS
24695 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
24696 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
24697 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
24704 if test "${AST_OSS_FOUND}" = "yes"; then
24705 OSS_LIB
="-lossaudio "
24706 OSS_HEADER_FOUND
="1"
24707 if test "x${OSS_DIR}" != "x"; then
24708 OSS_LIB
="${pbxlibdir} ${OSS_LIB}"
24709 OSS_INCLUDE
="-I${OSS_DIR}/include"
24710 saved_cppflags
="${CPPFLAGS}"
24711 CPPFLAGS
="${CPPFLAGS} -I${OSS_DIR}/include"
24712 if test "xsoundcard.h" != "x" ; then
24713 as_ac_Header
=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
24714 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24715 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24716 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.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
24720 ac_res
=`eval echo '${'$as_ac_Header'}'`
24721 { echo "$as_me:$LINENO: result: $ac_res" >&5
24722 echo "${ECHO_T}$ac_res" >&6; }
24724 # Is the header compilable?
24725 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
24726 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
24727 cat >conftest.
$ac_ext <<_ACEOF
24730 cat confdefs.h
>>conftest.
$ac_ext
24731 cat >>conftest.
$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24733 $ac_includes_default
24734 #include <${OSS_DIR}/include/soundcard.h>
24736 rm -f conftest.
$ac_objext
24737 if { (ac_try
="$ac_compile"
24738 case "(($ac_try" in
24739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24740 *) ac_try_echo=$ac_try;;
24742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743 (eval "$ac_compile") 2>conftest.er1
24745 grep -v '^ *+' conftest.er1 >conftest.err
24747 cat conftest.err >&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } && {
24750 test -z "$ac_c_werror_flag" ||
24751 test ! -s conftest.err
24752 } && test -s conftest.$ac_objext; then
24753 ac_header_compiler=yes
24755 echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24758 ac_header_compiler=no
24761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24763 echo "${ECHO_T}$ac_header_compiler" >&6; }
24765 # Is the header present?
24766 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
24767 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
24768 cat >conftest.$ac_ext <<_ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24774 #include <${OSS_DIR}/include/soundcard.h>
24776 if { (ac_try="$ac_cpp conftest.$ac_ext"
24777 case "(($ac_try" in
24778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24779 *) ac_try_echo
=$ac_try;;
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24784 grep -v '^ *+' conftest.er1
>conftest.err
24786 cat conftest.err
>&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } >/dev
/null
&& {
24789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24790 test ! -s conftest.err
24792 ac_header_preproc
=yes
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.
$ac_ext >&5
24797 ac_header_preproc
=no
24800 rm -f conftest.err conftest.
$ac_ext
24801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24802 echo "${ECHO_T}$ac_header_preproc" >&6; }
24804 # So? What about this header?
24805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24807 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24808 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24809 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
24810 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
24811 ac_header_preproc
=yes
24814 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
24815 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
24816 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
24817 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
24818 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
24819 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
24820 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24821 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24822 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
24823 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
24824 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
24825 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
24827 ## ------------------------------- ##
24828 ## Report this to www.asterisk.org ##
24829 ## ------------------------------- ##
24831 ) |
sed "s/^/$as_me: WARNING: /" >&2
24834 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24835 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24836 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24839 eval "$as_ac_Header=\$ac_header_preproc"
24841 ac_res
=`eval echo '${'$as_ac_Header'}'`
24842 { echo "$as_me:$LINENO: result: $ac_res" >&5
24843 echo "${ECHO_T}$ac_res" >&6; }
24846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24854 CPPFLAGS
="${saved_cppflags}"
24856 if test "xsoundcard.h" != "x" ; then
24857 if test "${ac_cv_header_soundcard_h+set}" = set; then
24858 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24859 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24860 if test "${ac_cv_header_soundcard_h+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24863 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24864 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24866 # Is the header compilable?
24867 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
24868 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
24869 cat >conftest.
$ac_ext <<_ACEOF
24872 cat confdefs.h
>>conftest.
$ac_ext
24873 cat >>conftest.
$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24875 $ac_includes_default
24876 #include <soundcard.h>
24878 rm -f conftest.
$ac_objext
24879 if { (ac_try
="$ac_compile"
24880 case "(($ac_try" in
24881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24882 *) ac_try_echo=$ac_try;;
24884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24885 (eval "$ac_compile") 2>conftest.er1
24887 grep -v '^ *+' conftest.er1 >conftest.err
24889 cat conftest.err >&5
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); } && {
24892 test -z "$ac_c_werror_flag" ||
24893 test ! -s conftest.err
24894 } && test -s conftest.$ac_objext; then
24895 ac_header_compiler=yes
24897 echo "$as_me: failed program was:" >&5
24898 sed 's/^/| /' conftest.$ac_ext >&5
24900 ac_header_compiler=no
24903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24905 echo "${ECHO_T}$ac_header_compiler" >&6; }
24907 # Is the header present?
24908 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
24909 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
24910 cat >conftest.$ac_ext <<_ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h. */
24916 #include <soundcard.h>
24918 if { (ac_try="$ac_cpp conftest.$ac_ext"
24919 case "(($ac_try" in
24920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24921 *) ac_try_echo
=$ac_try;;
24923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24926 grep -v '^ *+' conftest.er1
>conftest.err
24928 cat conftest.err
>&5
24929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); } >/dev
/null
&& {
24931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24932 test ! -s conftest.err
24934 ac_header_preproc
=yes
24936 echo "$as_me: failed program was:" >&5
24937 sed 's/^/| /' conftest.
$ac_ext >&5
24939 ac_header_preproc
=no
24942 rm -f conftest.err conftest.
$ac_ext
24943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24944 echo "${ECHO_T}$ac_header_preproc" >&6; }
24946 # So? What about this header?
24947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24949 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24950 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24951 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
24952 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
24953 ac_header_preproc
=yes
24956 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
24957 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
24958 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
24959 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
24960 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
24961 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
24962 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24963 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24964 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
24965 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
24966 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
24967 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
24969 ## ------------------------------- ##
24970 ## Report this to www.asterisk.org ##
24971 ## ------------------------------- ##
24973 ) |
sed "s/^/$as_me: WARNING: /" >&2
24976 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24977 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24978 if test "${ac_cv_header_soundcard_h+set}" = set; then
24979 echo $ECHO_N "(cached) $ECHO_C" >&6
24981 ac_cv_header_soundcard_h
=$ac_header_preproc
24983 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24984 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24987 if test $ac_cv_header_soundcard_h = yes; then
24996 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
24997 if test -n "${OSS_MANDATORY}" ;
24999 { echo "$as_me:$LINENO: ***" >&5
25000 echo "$as_me: ***" >&6;}
25001 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
25002 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
25003 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
25004 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
25005 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
25006 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
25015 cat >>confdefs.h
<<_ACEOF
25020 elif test -n "${OSS_MANDATORY}";
25022 { echo "$as_me:$LINENO: ***" >&5
25023 echo "$as_me: ***" >&6;}
25024 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
25025 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
25026 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25027 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25028 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
25029 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
25038 if test "${USE_PGSQL}" != "no"; then
25039 if test "x${PGSQL_DIR}" != "x"; then
25040 if test -n "$ac_tool_prefix"; then
25041 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
25042 set dummy
${ac_tool_prefix}pg_config
; ac_word
=$2
25043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25045 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
25046 echo $ECHO_N "(cached) $ECHO_C" >&6
25050 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
25053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25054 for as_dir
in ${PGSQL_DIR}/bin
25057 test -z "$as_dir" && as_dir
=.
25058 for ac_exec_ext
in '' $ac_executable_extensions; do
25059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25060 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25071 PG_CONFIG
=$ac_cv_path_PG_CONFIG
25072 if test -n "$PG_CONFIG"; then
25073 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
25074 echo "${ECHO_T}$PG_CONFIG" >&6; }
25076 { echo "$as_me:$LINENO: result: no" >&5
25077 echo "${ECHO_T}no" >&6; }
25082 if test -z "$ac_cv_path_PG_CONFIG"; then
25083 ac_pt_PG_CONFIG
=$PG_CONFIG
25084 # Extract the first word of "pg_config", so it can be a program name with args.
25085 set dummy pg_config
; ac_word
=$2
25086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25088 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
25089 echo $ECHO_N "(cached) $ECHO_C" >&6
25091 case $ac_pt_PG_CONFIG in
25093 ac_cv_path_ac_pt_PG_CONFIG
="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
25096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25097 for as_dir
in ${PGSQL_DIR}/bin
25100 test -z "$as_dir" && as_dir
=.
25101 for ac_exec_ext
in '' $ac_executable_extensions; do
25102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25103 ac_cv_path_ac_pt_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25114 ac_pt_PG_CONFIG
=$ac_cv_path_ac_pt_PG_CONFIG
25115 if test -n "$ac_pt_PG_CONFIG"; then
25116 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
25117 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
25119 { echo "$as_me:$LINENO: result: no" >&5
25120 echo "${ECHO_T}no" >&6; }
25123 if test "x$ac_pt_PG_CONFIG" = x
; then
25126 case $cross_compiling:$ac_tool_warned in
25128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25129 whose name does not start with the host triplet. If you think this
25130 configuration is useful to you, please write to autoconf@gnu.org." >&5
25131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25132 whose name does not start with the host triplet. If you think this
25133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25134 ac_tool_warned
=yes ;;
25136 PG_CONFIG
=$ac_pt_PG_CONFIG
25139 PG_CONFIG
="$ac_cv_path_PG_CONFIG"
25142 if test x
"${PG_CONFIG}" = xNo
; then
25143 { echo "$as_me:$LINENO: ***" >&5
25144 echo "$as_me: ***" >&6;}
25145 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
25146 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
25147 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
25148 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
25149 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25150 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25151 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25152 echo "$as_me: *** including --without-postgres" >&6;}
25156 if test -n "$ac_tool_prefix"; then
25157 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
25158 set dummy
${ac_tool_prefix}pg_config
; ac_word
=$2
25159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25161 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
25162 echo $ECHO_N "(cached) $ECHO_C" >&6
25166 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
25169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25170 for as_dir
in $PATH
25173 test -z "$as_dir" && as_dir
=.
25174 for ac_exec_ext
in '' $ac_executable_extensions; do
25175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25176 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25187 PG_CONFIG
=$ac_cv_path_PG_CONFIG
25188 if test -n "$PG_CONFIG"; then
25189 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
25190 echo "${ECHO_T}$PG_CONFIG" >&6; }
25192 { echo "$as_me:$LINENO: result: no" >&5
25193 echo "${ECHO_T}no" >&6; }
25198 if test -z "$ac_cv_path_PG_CONFIG"; then
25199 ac_pt_PG_CONFIG
=$PG_CONFIG
25200 # Extract the first word of "pg_config", so it can be a program name with args.
25201 set dummy pg_config
; ac_word
=$2
25202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25204 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
25205 echo $ECHO_N "(cached) $ECHO_C" >&6
25207 case $ac_pt_PG_CONFIG in
25209 ac_cv_path_ac_pt_PG_CONFIG
="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
25212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25213 for as_dir
in $PATH
25216 test -z "$as_dir" && as_dir
=.
25217 for ac_exec_ext
in '' $ac_executable_extensions; do
25218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25219 ac_cv_path_ac_pt_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25230 ac_pt_PG_CONFIG
=$ac_cv_path_ac_pt_PG_CONFIG
25231 if test -n "$ac_pt_PG_CONFIG"; then
25232 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
25233 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
25235 { echo "$as_me:$LINENO: result: no" >&5
25236 echo "${ECHO_T}no" >&6; }
25239 if test "x$ac_pt_PG_CONFIG" = x
; then
25242 case $cross_compiling:$ac_tool_warned in
25244 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25245 whose name does not start with the host triplet. If you think this
25246 configuration is useful to you, please write to autoconf@gnu.org." >&5
25247 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25248 whose name does not start with the host triplet. If you think this
25249 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25250 ac_tool_warned
=yes ;;
25252 PG_CONFIG
=$ac_pt_PG_CONFIG
25255 PG_CONFIG
="$ac_cv_path_PG_CONFIG"
25260 if test "${PG_CONFIG}" != No
; then
25261 PGSQL_libdir
=`${PG_CONFIG} --libdir`
25262 PGSQL_includedir
=`${PG_CONFIG} --includedir`
25264 if test "x$?" != "x0" ; then
25265 if test -n "${PGSQL_MANDATORY}" ; then
25266 { echo "$as_me:$LINENO: ***" >&5
25267 echo "$as_me: ***" >&6;}
25268 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25269 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25270 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25271 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25272 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25273 echo "$as_me: *** including --without-postgres" >&6;}
25277 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
25278 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
25279 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
25280 echo $ECHO_N "(cached) $ECHO_C" >&6
25282 ac_check_lib_save_LIBS
=$LIBS
25283 LIBS
="-lpq -L${PGSQL_libdir} -lz $LIBS"
25284 cat >conftest.
$ac_ext <<_ACEOF
25287 cat confdefs.h
>>conftest.
$ac_ext
25288 cat >>conftest.
$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25291 /* Override any GCC internal prototype to avoid an error.
25292 Use char because int might match the return type of a GCC
25293 builtin and then its argument prototype would still apply. */
25297 char PQescapeStringConn ();
25301 return PQescapeStringConn ();
25306 rm -f conftest.
$ac_objext conftest
$ac_exeext
25307 if { (ac_try
="$ac_link"
25308 case "(($ac_try" in
25309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25310 *) ac_try_echo=$ac_try;;
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313 (eval "$ac_link") 2>conftest.er1
25315 grep -v '^ *+' conftest.er1 >conftest.err
25317 cat conftest.err >&5
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); } && {
25320 test -z "$ac_c_werror_flag" ||
25321 test ! -s conftest.err
25322 } && test -s conftest$ac_exeext &&
25323 $as_test_x conftest$ac_exeext; then
25324 ac_cv_lib_pq_PQescapeStringConn=yes
25326 echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25329 ac_cv_lib_pq_PQescapeStringConn=no
25332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25333 conftest$ac_exeext conftest.$ac_ext
25334 LIBS=$ac_check_lib_save_LIBS
25336 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
25337 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
25338 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
25340 cat >>confdefs.h <<_ACEOF
25341 #define HAVE_PGSQL 1
25347 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
25348 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
25349 PGSQL_INCLUDE="-I${PGSQL_includedir}"
25351 elif test -n "${PGSQL_MANDATORY}";
25353 { echo "$as_me:$LINENO: ***" >&5
25354 echo "$as_me: ***" >&6;}
25355 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25356 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25357 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25358 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25359 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25360 echo "$as_me: *** including --without-postgres" >&6;}
25364 elif test -n "${PGSQL_MANDATORY}";
25366 { echo "$as_me:$LINENO: ***" >&5
25367 echo "$as_me: ***" >&6;}
25368 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25369 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25370 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25371 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25372 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25373 echo "$as_me: *** including --without-postgres" >&6;}
25378 if test "${USE_POPT}" != "no"; then
25380 if test "x${POPT_DIR}" != "x"; then
25381 if test -d ${POPT_DIR}/lib; then
25382 pbxlibdir="-L${POPT_DIR}/lib"
25384 pbxlibdir="-L${POPT_DIR}"
25387 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
25388 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
25389 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
25390 echo $ECHO_N "(cached) $ECHO_C" >&6
25392 ac_check_lib_save_LIBS=$LIBS
25393 LIBS="-lpopt ${pbxlibdir} $LIBS"
25394 cat >conftest.$ac_ext <<_ACEOF
25397 cat confdefs.h >>conftest.$ac_ext
25398 cat >>conftest.$ac_ext <<_ACEOF
25399 /* end confdefs.h. */
25401 /* Override any GCC internal prototype to avoid an error.
25402 Use char because int might match the return type of a GCC
25403 builtin and then its argument prototype would still apply. */
25407 char poptStrerror ();
25411 return poptStrerror ();
25416 rm -f conftest.$ac_objext conftest$ac_exeext
25417 if { (ac_try="$ac_link"
25418 case "(($ac_try" in
25419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25420 *) ac_try_echo
=$ac_try;;
25422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25423 (eval "$ac_link") 2>conftest.er1
25425 grep -v '^ *+' conftest.er1
>conftest.err
25427 cat conftest.err
>&5
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); } && {
25430 test -z "$ac_c_werror_flag" ||
25431 test ! -s conftest.err
25432 } && test -s conftest
$ac_exeext &&
25433 $as_test_x conftest
$ac_exeext; then
25434 ac_cv_lib_popt_poptStrerror
=yes
25436 echo "$as_me: failed program was:" >&5
25437 sed 's/^/| /' conftest.
$ac_ext >&5
25439 ac_cv_lib_popt_poptStrerror
=no
25442 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25443 conftest
$ac_exeext conftest.
$ac_ext
25444 LIBS
=$ac_check_lib_save_LIBS
25446 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
25447 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
25448 if test $ac_cv_lib_popt_poptStrerror = yes; then
25455 if test "${AST_POPT_FOUND}" = "yes"; then
25457 POPT_HEADER_FOUND
="1"
25458 if test "x${POPT_DIR}" != "x"; then
25459 POPT_LIB
="${pbxlibdir} ${POPT_LIB}"
25460 POPT_INCLUDE
="-I${POPT_DIR}/include"
25461 saved_cppflags
="${CPPFLAGS}"
25462 CPPFLAGS
="${CPPFLAGS} -I${POPT_DIR}/include"
25463 if test "xpopt.h" != "x" ; then
25464 as_ac_Header
=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
25465 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25466 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25467 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25468 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25469 echo $ECHO_N "(cached) $ECHO_C" >&6
25471 ac_res
=`eval echo '${'$as_ac_Header'}'`
25472 { echo "$as_me:$LINENO: result: $ac_res" >&5
25473 echo "${ECHO_T}$ac_res" >&6; }
25475 # Is the header compilable?
25476 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
25477 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
25478 cat >conftest.
$ac_ext <<_ACEOF
25481 cat confdefs.h
>>conftest.
$ac_ext
25482 cat >>conftest.
$ac_ext <<_ACEOF
25483 /* end confdefs.h. */
25484 $ac_includes_default
25485 #include <${POPT_DIR}/include/popt.h>
25487 rm -f conftest.
$ac_objext
25488 if { (ac_try
="$ac_compile"
25489 case "(($ac_try" in
25490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25491 *) ac_try_echo=$ac_try;;
25493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25494 (eval "$ac_compile") 2>conftest.er1
25496 grep -v '^ *+' conftest.er1 >conftest.err
25498 cat conftest.err >&5
25499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500 (exit $ac_status); } && {
25501 test -z "$ac_c_werror_flag" ||
25502 test ! -s conftest.err
25503 } && test -s conftest.$ac_objext; then
25504 ac_header_compiler=yes
25506 echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25509 ac_header_compiler=no
25512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25514 echo "${ECHO_T}$ac_header_compiler" >&6; }
25516 # Is the header present?
25517 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
25518 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
25519 cat >conftest.$ac_ext <<_ACEOF
25522 cat confdefs.h >>conftest.$ac_ext
25523 cat >>conftest.$ac_ext <<_ACEOF
25524 /* end confdefs.h. */
25525 #include <${POPT_DIR}/include/popt.h>
25527 if { (ac_try="$ac_cpp conftest.$ac_ext"
25528 case "(($ac_try" in
25529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25530 *) ac_try_echo
=$ac_try;;
25532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25535 grep -v '^ *+' conftest.er1
>conftest.err
25537 cat conftest.err
>&5
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); } >/dev
/null
&& {
25540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25541 test ! -s conftest.err
25543 ac_header_preproc
=yes
25545 echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.
$ac_ext >&5
25548 ac_header_preproc
=no
25551 rm -f conftest.err conftest.
$ac_ext
25552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25553 echo "${ECHO_T}$ac_header_preproc" >&6; }
25555 # So? What about this header?
25556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25558 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25559 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25560 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
25561 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
25562 ac_header_preproc
=yes
25565 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
25566 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
25567 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
25568 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
25569 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
25570 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
25571 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
25572 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25573 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
25574 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
25575 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
25576 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
25578 ## ------------------------------- ##
25579 ## Report this to www.asterisk.org ##
25580 ## ------------------------------- ##
25582 ) |
sed "s/^/$as_me: WARNING: /" >&2
25585 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25586 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25587 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25588 echo $ECHO_N "(cached) $ECHO_C" >&6
25590 eval "$as_ac_Header=\$ac_header_preproc"
25592 ac_res
=`eval echo '${'$as_ac_Header'}'`
25593 { echo "$as_me:$LINENO: result: $ac_res" >&5
25594 echo "${ECHO_T}$ac_res" >&6; }
25597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25598 POPT_HEADER_FOUND
=1
25600 POPT_HEADER_FOUND
=0
25605 CPPFLAGS
="${saved_cppflags}"
25607 if test "xpopt.h" != "x" ; then
25608 if test "${ac_cv_header_popt_h+set}" = set; then
25609 { echo "$as_me:$LINENO: checking for popt.h" >&5
25610 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25611 if test "${ac_cv_header_popt_h+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25614 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25615 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25617 # Is the header compilable?
25618 { echo "$as_me:$LINENO: checking popt.h usability" >&5
25619 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
25620 cat >conftest.
$ac_ext <<_ACEOF
25623 cat confdefs.h
>>conftest.
$ac_ext
25624 cat >>conftest.
$ac_ext <<_ACEOF
25625 /* end confdefs.h. */
25626 $ac_includes_default
25629 rm -f conftest.
$ac_objext
25630 if { (ac_try
="$ac_compile"
25631 case "(($ac_try" in
25632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25633 *) ac_try_echo=$ac_try;;
25635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25636 (eval "$ac_compile") 2>conftest.er1
25638 grep -v '^ *+' conftest.er1 >conftest.err
25640 cat conftest.err >&5
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } && {
25643 test -z "$ac_c_werror_flag" ||
25644 test ! -s conftest.err
25645 } && test -s conftest.$ac_objext; then
25646 ac_header_compiler=yes
25648 echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25651 ac_header_compiler=no
25654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25656 echo "${ECHO_T}$ac_header_compiler" >&6; }
25658 # Is the header present?
25659 { echo "$as_me:$LINENO: checking popt.h presence" >&5
25660 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
25661 cat >conftest.$ac_ext <<_ACEOF
25664 cat confdefs.h >>conftest.$ac_ext
25665 cat >>conftest.$ac_ext <<_ACEOF
25666 /* end confdefs.h. */
25669 if { (ac_try="$ac_cpp conftest.$ac_ext"
25670 case "(($ac_try" in
25671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25672 *) ac_try_echo
=$ac_try;;
25674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25677 grep -v '^ *+' conftest.er1
>conftest.err
25679 cat conftest.err
>&5
25680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681 (exit $ac_status); } >/dev
/null
&& {
25682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25683 test ! -s conftest.err
25685 ac_header_preproc
=yes
25687 echo "$as_me: failed program was:" >&5
25688 sed 's/^/| /' conftest.
$ac_ext >&5
25690 ac_header_preproc
=no
25693 rm -f conftest.err conftest.
$ac_ext
25694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25695 echo "${ECHO_T}$ac_header_preproc" >&6; }
25697 # So? What about this header?
25698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25700 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25701 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25702 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
25703 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
25704 ac_header_preproc
=yes
25707 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
25708 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
25709 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
25710 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
25711 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
25712 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
25713 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
25714 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25715 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
25716 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
25717 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
25718 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
25720 ## ------------------------------- ##
25721 ## Report this to www.asterisk.org ##
25722 ## ------------------------------- ##
25724 ) |
sed "s/^/$as_me: WARNING: /" >&2
25727 { echo "$as_me:$LINENO: checking for popt.h" >&5
25728 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25729 if test "${ac_cv_header_popt_h+set}" = set; then
25730 echo $ECHO_N "(cached) $ECHO_C" >&6
25732 ac_cv_header_popt_h
=$ac_header_preproc
25734 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25735 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25738 if test $ac_cv_header_popt_h = yes; then
25739 POPT_HEADER_FOUND
=1
25741 POPT_HEADER_FOUND
=0
25747 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
25748 if test -n "${POPT_MANDATORY}" ;
25750 { echo "$as_me:$LINENO: ***" >&5
25751 echo "$as_me: ***" >&6;}
25752 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
25753 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
25754 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
25755 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
25756 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25757 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25766 cat >>confdefs.h
<<_ACEOF
25767 #define HAVE_POPT 1
25771 elif test -n "${POPT_MANDATORY}";
25773 { echo "$as_me:$LINENO: ***" >&5
25774 echo "$as_me: ***" >&6;}
25775 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
25776 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
25777 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25778 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25779 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25780 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25787 if test "${USE_PRI}" != "no"; then
25789 if test "x${PRI_DIR}" != "x"; then
25790 if test -d ${PRI_DIR}/lib
; then
25791 pbxlibdir
="-L${PRI_DIR}/lib"
25793 pbxlibdir
="-L${PRI_DIR}"
25796 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
25797 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
25798 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
25799 echo $ECHO_N "(cached) $ECHO_C" >&6
25801 ac_check_lib_save_LIBS
=$LIBS
25802 LIBS
="-lpri ${pbxlibdir} $LIBS"
25803 cat >conftest.
$ac_ext <<_ACEOF
25806 cat confdefs.h
>>conftest.
$ac_ext
25807 cat >>conftest.
$ac_ext <<_ACEOF
25808 /* end confdefs.h. */
25810 /* Override any GCC internal prototype to avoid an error.
25811 Use char because int might match the return type of a GCC
25812 builtin and then its argument prototype would still apply. */
25816 char pri_keypad_facility ();
25820 return pri_keypad_facility ();
25825 rm -f conftest.
$ac_objext conftest
$ac_exeext
25826 if { (ac_try
="$ac_link"
25827 case "(($ac_try" in
25828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25829 *) ac_try_echo=$ac_try;;
25831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25832 (eval "$ac_link") 2>conftest.er1
25834 grep -v '^ *+' conftest.er1 >conftest.err
25836 cat conftest.err >&5
25837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838 (exit $ac_status); } && {
25839 test -z "$ac_c_werror_flag" ||
25840 test ! -s conftest.err
25841 } && test -s conftest$ac_exeext &&
25842 $as_test_x conftest$ac_exeext; then
25843 ac_cv_lib_pri_pri_keypad_facility=yes
25845 echo "$as_me: failed program was:" >&5
25846 sed 's/^/| /' conftest.$ac_ext >&5
25848 ac_cv_lib_pri_pri_keypad_facility=no
25851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25852 conftest$ac_exeext conftest.$ac_ext
25853 LIBS=$ac_check_lib_save_LIBS
25855 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
25856 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
25857 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
25864 if test "${AST_PRI_FOUND}" = "yes"; then
25866 PRI_HEADER_FOUND="1"
25867 if test "x${PRI_DIR}" != "x"; then
25868 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
25869 PRI_INCLUDE="-I${PRI_DIR}/include"
25870 saved_cppflags="${CPPFLAGS}"
25871 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
25872 if test "xlibpri.h" != "x" ; then
25873 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" |
$as_tr_sh`
25874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25875 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25876 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25878 echo $ECHO_N "(cached) $ECHO_C" >&6
25880 ac_res=`eval echo '${'$as_ac_Header'}'`
25881 { echo "$as_me:$LINENO: result: $ac_res" >&5
25882 echo "${ECHO_T}$ac_res" >&6; }
25884 # Is the header compilable?
25885 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
25886 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
25887 cat >conftest.$ac_ext <<_ACEOF
25890 cat confdefs.h >>conftest.$ac_ext
25891 cat >>conftest.$ac_ext <<_ACEOF
25892 /* end confdefs.h. */
25893 $ac_includes_default
25894 #include <${PRI_DIR}/include/libpri.h>
25896 rm -f conftest.$ac_objext
25897 if { (ac_try="$ac_compile"
25898 case "(($ac_try" in
25899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25900 *) ac_try_echo
=$ac_try;;
25902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25903 (eval "$ac_compile") 2>conftest.er1
25905 grep -v '^ *+' conftest.er1
>conftest.err
25907 cat conftest.err
>&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); } && {
25910 test -z "$ac_c_werror_flag" ||
25911 test ! -s conftest.err
25912 } && test -s conftest.
$ac_objext; then
25913 ac_header_compiler
=yes
25915 echo "$as_me: failed program was:" >&5
25916 sed 's/^/| /' conftest.
$ac_ext >&5
25918 ac_header_compiler
=no
25921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25923 echo "${ECHO_T}$ac_header_compiler" >&6; }
25925 # Is the header present?
25926 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
25927 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
25928 cat >conftest.
$ac_ext <<_ACEOF
25931 cat confdefs.h
>>conftest.
$ac_ext
25932 cat >>conftest.
$ac_ext <<_ACEOF
25933 /* end confdefs.h. */
25934 #include <${PRI_DIR}/include/libpri.h>
25936 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25937 case "(($ac_try" in
25938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25939 *) ac_try_echo=$ac_try;;
25941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25944 grep -v '^ *+' conftest.er1 >conftest.err
25946 cat conftest.err >&5
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); } >/dev/null && {
25949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25950 test ! -s conftest.err
25952 ac_header_preproc=yes
25954 echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25957 ac_header_preproc=no
25960 rm -f conftest.err conftest.$ac_ext
25961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25962 echo "${ECHO_T}$ac_header_preproc" >&6; }
25964 # So? What about this header?
25965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25967 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25968 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25969 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
25970 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
25971 ac_header_preproc=yes
25974 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
25975 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
25976 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
25977 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
25978 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
25979 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
25980 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25981 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25982 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
25983 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
25984 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
25985 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
25987 ## ------------------------------- ##
25988 ## Report this to www.asterisk.org ##
25989 ## ------------------------------- ##
25991 ) | sed "s/^/$as_me: WARNING: /" >&2
25994 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25995 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25997 echo $ECHO_N "(cached) $ECHO_C" >&6
25999 eval "$as_ac_Header=\$ac_header_preproc"
26001 ac_res=`eval echo '${'$as_ac_Header'}'`
26002 { echo "$as_me:$LINENO: result: $ac_res" >&5
26003 echo "${ECHO_T}$ac_res" >&6; }
26006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26014 CPPFLAGS="${saved_cppflags}"
26016 if test "xlibpri.h" != "x" ; then
26017 if test "${ac_cv_header_libpri_h+set}" = set; then
26018 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26019 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26020 if test "${ac_cv_header_libpri_h+set}" = set; then
26021 echo $ECHO_N "(cached) $ECHO_C" >&6
26023 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26024 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26026 # Is the header compilable?
26027 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
26028 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
26029 cat >conftest.$ac_ext <<_ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h. */
26035 $ac_includes_default
26036 #include <libpri.h>
26038 rm -f conftest.$ac_objext
26039 if { (ac_try="$ac_compile"
26040 case "(($ac_try" in
26041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26042 *) ac_try_echo
=$ac_try;;
26044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26045 (eval "$ac_compile") 2>conftest.er1
26047 grep -v '^ *+' conftest.er1
>conftest.err
26049 cat conftest.err
>&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); } && {
26052 test -z "$ac_c_werror_flag" ||
26053 test ! -s conftest.err
26054 } && test -s conftest.
$ac_objext; then
26055 ac_header_compiler
=yes
26057 echo "$as_me: failed program was:" >&5
26058 sed 's/^/| /' conftest.
$ac_ext >&5
26060 ac_header_compiler
=no
26063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26065 echo "${ECHO_T}$ac_header_compiler" >&6; }
26067 # Is the header present?
26068 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
26069 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
26070 cat >conftest.
$ac_ext <<_ACEOF
26073 cat confdefs.h
>>conftest.
$ac_ext
26074 cat >>conftest.
$ac_ext <<_ACEOF
26075 /* end confdefs.h. */
26076 #include <libpri.h>
26078 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26079 case "(($ac_try" in
26080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26081 *) ac_try_echo=$ac_try;;
26083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26086 grep -v '^ *+' conftest.er1 >conftest.err
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } >/dev/null && {
26091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26092 test ! -s conftest.err
26094 ac_header_preproc=yes
26096 echo "$as_me: failed program was:" >&5
26097 sed 's/^/| /' conftest.$ac_ext >&5
26099 ac_header_preproc=no
26102 rm -f conftest.err conftest.$ac_ext
26103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26104 echo "${ECHO_T}$ac_header_preproc" >&6; }
26106 # So? What about this header?
26107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26109 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26110 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26111 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
26112 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
26113 ac_header_preproc=yes
26116 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
26117 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
26118 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
26119 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
26120 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
26121 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
26122 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26123 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26124 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
26125 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
26126 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
26127 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
26129 ## ------------------------------- ##
26130 ## Report this to www.asterisk.org ##
26131 ## ------------------------------- ##
26133 ) | sed "s/^/$as_me: WARNING: /" >&2
26136 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26137 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26138 if test "${ac_cv_header_libpri_h+set}" = set; then
26139 echo $ECHO_N "(cached) $ECHO_C" >&6
26141 ac_cv_header_libpri_h=$ac_header_preproc
26143 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26144 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26147 if test $ac_cv_header_libpri_h = yes; then
26156 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
26157 if test -n "${PRI_MANDATORY}" ;
26159 { echo "$as_me:$LINENO: ***" >&5
26160 echo "$as_me: ***" >&6;}
26161 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
26162 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
26163 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
26164 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
26165 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
26166 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
26175 cat >>confdefs.h <<_ACEOF
26180 elif test -n "${PRI_MANDATORY}";
26182 { echo "$as_me:$LINENO: ***" >&5
26183 echo "$as_me: ***" >&6;}
26184 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
26185 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
26186 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26187 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26188 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
26189 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
26196 if test "${USE_PRI_VERSION}" != "no"; then
26198 if test "x${PRI_VERSION_DIR}" != "x"; then
26199 if test -d ${PRI_VERSION_DIR}/lib; then
26200 pbxlibdir="-L${PRI_VERSION_DIR}/lib"
26202 pbxlibdir="-L${PRI_VERSION_DIR}"
26205 { echo "$as_me:$LINENO: checking for pri_get_version in -lpri" >&5
26206 echo $ECHO_N "checking for pri_get_version in -lpri... $ECHO_C" >&6; }
26207 if test "${ac_cv_lib_pri_pri_get_version+set}" = set; then
26208 echo $ECHO_N "(cached) $ECHO_C" >&6
26210 ac_check_lib_save_LIBS=$LIBS
26211 LIBS="-lpri ${pbxlibdir} $LIBS"
26212 cat >conftest.$ac_ext <<_ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h. */
26219 /* Override any GCC internal prototype to avoid an error.
26220 Use char because int might match the return type of a GCC
26221 builtin and then its argument prototype would still apply. */
26225 char pri_get_version ();
26229 return pri_get_version ();
26234 rm -f conftest.$ac_objext conftest$ac_exeext
26235 if { (ac_try="$ac_link"
26236 case "(($ac_try" in
26237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26238 *) ac_try_echo
=$ac_try;;
26240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26241 (eval "$ac_link") 2>conftest.er1
26243 grep -v '^ *+' conftest.er1
>conftest.err
26245 cat conftest.err
>&5
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } && {
26248 test -z "$ac_c_werror_flag" ||
26249 test ! -s conftest.err
26250 } && test -s conftest
$ac_exeext &&
26251 $as_test_x conftest
$ac_exeext; then
26252 ac_cv_lib_pri_pri_get_version
=yes
26254 echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.
$ac_ext >&5
26257 ac_cv_lib_pri_pri_get_version
=no
26260 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26261 conftest
$ac_exeext conftest.
$ac_ext
26262 LIBS
=$ac_check_lib_save_LIBS
26264 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_get_version" >&5
26265 echo "${ECHO_T}$ac_cv_lib_pri_pri_get_version" >&6; }
26266 if test $ac_cv_lib_pri_pri_get_version = yes; then
26267 AST_PRI_VERSION_FOUND
=yes
26269 AST_PRI_VERSION_FOUND
=no
26273 if test "${AST_PRI_VERSION_FOUND}" = "yes"; then
26274 PRI_VERSION_LIB
="-lpri "
26275 PRI_VERSION_HEADER_FOUND
="1"
26276 if test "x${PRI_VERSION_DIR}" != "x"; then
26277 PRI_VERSION_LIB
="${pbxlibdir} ${PRI_VERSION_LIB}"
26278 PRI_VERSION_INCLUDE
="-I${PRI_VERSION_DIR}/include"
26279 saved_cppflags
="${CPPFLAGS}"
26280 CPPFLAGS
="${CPPFLAGS} -I${PRI_VERSION_DIR}/include"
26281 if test "xlibpri.h" != "x" ; then
26282 as_ac_Header
=`echo "ac_cv_header_${PRI_VERSION_DIR}/include/libpri.h" | $as_tr_sh`
26283 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26284 { echo "$as_me:$LINENO: checking for ${PRI_VERSION_DIR}/include/libpri.h" >&5
26285 echo $ECHO_N "checking for ${PRI_VERSION_DIR}/include/libpri.h... $ECHO_C" >&6; }
26286 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26287 echo $ECHO_N "(cached) $ECHO_C" >&6
26289 ac_res
=`eval echo '${'$as_ac_Header'}'`
26290 { echo "$as_me:$LINENO: result: $ac_res" >&5
26291 echo "${ECHO_T}$ac_res" >&6; }
26293 # Is the header compilable?
26294 { echo "$as_me:$LINENO: checking ${PRI_VERSION_DIR}/include/libpri.h usability" >&5
26295 echo $ECHO_N "checking ${PRI_VERSION_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
26296 cat >conftest.
$ac_ext <<_ACEOF
26299 cat confdefs.h
>>conftest.
$ac_ext
26300 cat >>conftest.
$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26302 $ac_includes_default
26303 #include <${PRI_VERSION_DIR}/include/libpri.h>
26305 rm -f conftest.
$ac_objext
26306 if { (ac_try
="$ac_compile"
26307 case "(($ac_try" in
26308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26309 *) ac_try_echo=$ac_try;;
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312 (eval "$ac_compile") 2>conftest.er1
26314 grep -v '^ *+' conftest.er1 >conftest.err
26316 cat conftest.err >&5
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); } && {
26319 test -z "$ac_c_werror_flag" ||
26320 test ! -s conftest.err
26321 } && test -s conftest.$ac_objext; then
26322 ac_header_compiler=yes
26324 echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26327 ac_header_compiler=no
26330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26332 echo "${ECHO_T}$ac_header_compiler" >&6; }
26334 # Is the header present?
26335 { echo "$as_me:$LINENO: checking ${PRI_VERSION_DIR}/include/libpri.h presence" >&5
26336 echo $ECHO_N "checking ${PRI_VERSION_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
26337 cat >conftest.$ac_ext <<_ACEOF
26340 cat confdefs.h >>conftest.$ac_ext
26341 cat >>conftest.$ac_ext <<_ACEOF
26342 /* end confdefs.h. */
26343 #include <${PRI_VERSION_DIR}/include/libpri.h>
26345 if { (ac_try="$ac_cpp conftest.$ac_ext"
26346 case "(($ac_try" in
26347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26348 *) ac_try_echo
=$ac_try;;
26350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26353 grep -v '^ *+' conftest.er1
>conftest.err
26355 cat conftest.err
>&5
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); } >/dev
/null
&& {
26358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26359 test ! -s conftest.err
26361 ac_header_preproc
=yes
26363 echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.
$ac_ext >&5
26366 ac_header_preproc
=no
26369 rm -f conftest.err conftest.
$ac_ext
26370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26371 echo "${ECHO_T}$ac_header_preproc" >&6; }
26373 # So? What about this header?
26374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26376 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26377 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26378 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
26379 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
26380 ac_header_preproc
=yes
26383 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: present but cannot be compiled" >&5
26384 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
26385 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
26386 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
26387 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: see the Autoconf documentation" >&5
26388 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
26389 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26390 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26391 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
26392 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
26393 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
26394 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
26396 ## ------------------------------- ##
26397 ## Report this to www.asterisk.org ##
26398 ## ------------------------------- ##
26400 ) |
sed "s/^/$as_me: WARNING: /" >&2
26403 { echo "$as_me:$LINENO: checking for ${PRI_VERSION_DIR}/include/libpri.h" >&5
26404 echo $ECHO_N "checking for ${PRI_VERSION_DIR}/include/libpri.h... $ECHO_C" >&6; }
26405 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26406 echo $ECHO_N "(cached) $ECHO_C" >&6
26408 eval "$as_ac_Header=\$ac_header_preproc"
26410 ac_res
=`eval echo '${'$as_ac_Header'}'`
26411 { echo "$as_me:$LINENO: result: $ac_res" >&5
26412 echo "${ECHO_T}$ac_res" >&6; }
26415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26416 PRI_VERSION_HEADER_FOUND
=1
26418 PRI_VERSION_HEADER_FOUND
=0
26423 CPPFLAGS
="${saved_cppflags}"
26425 if test "xlibpri.h" != "x" ; then
26426 if test "${ac_cv_header_libpri_h+set}" = set; then
26427 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26428 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26429 if test "${ac_cv_header_libpri_h+set}" = set; then
26430 echo $ECHO_N "(cached) $ECHO_C" >&6
26432 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26433 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26435 # Is the header compilable?
26436 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
26437 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
26438 cat >conftest.
$ac_ext <<_ACEOF
26441 cat confdefs.h
>>conftest.
$ac_ext
26442 cat >>conftest.
$ac_ext <<_ACEOF
26443 /* end confdefs.h. */
26444 $ac_includes_default
26445 #include <libpri.h>
26447 rm -f conftest.
$ac_objext
26448 if { (ac_try
="$ac_compile"
26449 case "(($ac_try" in
26450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26451 *) ac_try_echo=$ac_try;;
26453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26454 (eval "$ac_compile") 2>conftest.er1
26456 grep -v '^ *+' conftest.er1 >conftest.err
26458 cat conftest.err >&5
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); } && {
26461 test -z "$ac_c_werror_flag" ||
26462 test ! -s conftest.err
26463 } && test -s conftest.$ac_objext; then
26464 ac_header_compiler=yes
26466 echo "$as_me: failed program was:" >&5
26467 sed 's/^/| /' conftest.$ac_ext >&5
26469 ac_header_compiler=no
26472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26474 echo "${ECHO_T}$ac_header_compiler" >&6; }
26476 # Is the header present?
26477 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
26478 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
26479 cat >conftest.$ac_ext <<_ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h. */
26485 #include <libpri.h>
26487 if { (ac_try="$ac_cpp conftest.$ac_ext"
26488 case "(($ac_try" in
26489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26490 *) ac_try_echo
=$ac_try;;
26492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26495 grep -v '^ *+' conftest.er1
>conftest.err
26497 cat conftest.err
>&5
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); } >/dev
/null
&& {
26500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26501 test ! -s conftest.err
26503 ac_header_preproc
=yes
26505 echo "$as_me: failed program was:" >&5
26506 sed 's/^/| /' conftest.
$ac_ext >&5
26508 ac_header_preproc
=no
26511 rm -f conftest.err conftest.
$ac_ext
26512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26513 echo "${ECHO_T}$ac_header_preproc" >&6; }
26515 # So? What about this header?
26516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26518 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26519 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26520 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
26521 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
26522 ac_header_preproc
=yes
26525 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
26526 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
26528 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
26529 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
26530 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
26531 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26532 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26533 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
26534 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
26535 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
26536 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
26538 ## ------------------------------- ##
26539 ## Report this to www.asterisk.org ##
26540 ## ------------------------------- ##
26542 ) |
sed "s/^/$as_me: WARNING: /" >&2
26545 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26546 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26547 if test "${ac_cv_header_libpri_h+set}" = set; then
26548 echo $ECHO_N "(cached) $ECHO_C" >&6
26550 ac_cv_header_libpri_h
=$ac_header_preproc
26552 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26553 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26556 if test $ac_cv_header_libpri_h = yes; then
26557 PRI_VERSION_HEADER_FOUND
=1
26559 PRI_VERSION_HEADER_FOUND
=0
26565 if test "x${PRI_VERSION_HEADER_FOUND}" = "x0" ; then
26566 if test -n "${PRI_VERSION_MANDATORY}" ;
26568 { echo "$as_me:$LINENO: ***" >&5
26569 echo "$as_me: ***" >&6;}
26570 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
26571 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
26572 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&5
26573 echo "$as_me: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&6;}
26574 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
26575 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
26579 PRI_VERSION_INCLUDE
=""
26584 cat >>confdefs.h
<<_ACEOF
26585 #define HAVE_PRI_VERSION 1
26589 elif test -n "${PRI_VERSION_MANDATORY}";
26591 { echo "$as_me:$LINENO: ***" >&5
26592 echo "$as_me: ***" >&6;}
26593 { echo "$as_me:$LINENO: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&5
26594 echo "$as_me: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&6;}
26595 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26596 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26597 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
26598 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
26604 if test "${USE_PWLIB}" != "no"; then
26605 if test -n "${PWLIB_DIR}"; then
26606 PWLIBDIR
="${PWLIB_DIR}"
26613 ac_cpp
='$CXXCPP $CPPFLAGS'
26614 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26615 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26616 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
26618 if test "${PWLIBDIR:-unset}" != "unset" ; then
26619 as_ac_Header
=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
26620 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26621 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26622 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26623 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26626 ac_res
=`eval echo '${'$as_ac_Header'}'`
26627 { echo "$as_me:$LINENO: result: $ac_res" >&5
26628 echo "${ECHO_T}$ac_res" >&6; }
26630 # Is the header compilable?
26631 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
26632 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
26633 cat >conftest.
$ac_ext <<_ACEOF
26636 cat confdefs.h
>>conftest.
$ac_ext
26637 cat >>conftest.
$ac_ext <<_ACEOF
26638 /* end confdefs.h. */
26639 $ac_includes_default
26640 #include <${PWLIBDIR}/version.h>
26642 rm -f conftest.
$ac_objext
26643 if { (ac_try
="$ac_compile"
26644 case "(($ac_try" in
26645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26646 *) ac_try_echo=$ac_try;;
26648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26649 (eval "$ac_compile") 2>conftest.er1
26651 grep -v '^ *+' conftest.er1 >conftest.err
26653 cat conftest.err >&5
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); } && {
26656 test -z "$ac_cxx_werror_flag" ||
26657 test ! -s conftest.err
26658 } && test -s conftest.$ac_objext; then
26659 ac_header_compiler=yes
26661 echo "$as_me: failed program was:" >&5
26662 sed 's/^/| /' conftest.$ac_ext >&5
26664 ac_header_compiler=no
26667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26669 echo "${ECHO_T}$ac_header_compiler" >&6; }
26671 # Is the header present?
26672 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
26673 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
26674 cat >conftest.$ac_ext <<_ACEOF
26677 cat confdefs.h >>conftest.$ac_ext
26678 cat >>conftest.$ac_ext <<_ACEOF
26679 /* end confdefs.h. */
26680 #include <${PWLIBDIR}/version.h>
26682 if { (ac_try="$ac_cpp conftest.$ac_ext"
26683 case "(($ac_try" in
26684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26685 *) ac_try_echo
=$ac_try;;
26687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26690 grep -v '^ *+' conftest.er1
>conftest.err
26692 cat conftest.err
>&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); } >/dev
/null
&& {
26695 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26696 test ! -s conftest.err
26698 ac_header_preproc
=yes
26700 echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.
$ac_ext >&5
26703 ac_header_preproc
=no
26706 rm -f conftest.err conftest.
$ac_ext
26707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26708 echo "${ECHO_T}$ac_header_preproc" >&6; }
26710 # So? What about this header?
26711 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26713 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26714 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26715 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
26716 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
26717 ac_header_preproc
=yes
26720 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
26721 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
26722 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
26723 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
26724 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
26725 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
26726 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26727 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26728 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
26729 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
26730 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
26731 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
26733 ## ------------------------------- ##
26734 ## Report this to www.asterisk.org ##
26735 ## ------------------------------- ##
26737 ) |
sed "s/^/$as_me: WARNING: /" >&2
26740 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26741 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26742 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26745 eval "$as_ac_Header=\$ac_header_preproc"
26747 ac_res
=`eval echo '${'$as_ac_Header'}'`
26748 { echo "$as_me:$LINENO: result: $ac_res" >&5
26749 echo "${ECHO_T}$ac_res" >&6; }
26752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26758 if test "${HAS_PWLIB:-unset}" = "unset" ; then
26759 if test "${OPENH323DIR:-unset}" != "unset"; then
26760 as_ac_Header
=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
26761 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26762 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26763 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26764 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26765 echo $ECHO_N "(cached) $ECHO_C" >&6
26767 ac_res
=`eval echo '${'$as_ac_Header'}'`
26768 { echo "$as_me:$LINENO: result: $ac_res" >&5
26769 echo "${ECHO_T}$ac_res" >&6; }
26771 # Is the header compilable?
26772 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
26773 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
26774 cat >conftest.
$ac_ext <<_ACEOF
26777 cat confdefs.h
>>conftest.
$ac_ext
26778 cat >>conftest.
$ac_ext <<_ACEOF
26779 /* end confdefs.h. */
26780 $ac_includes_default
26781 #include <${OPENH323DIR}/../pwlib/version.h>
26783 rm -f conftest.
$ac_objext
26784 if { (ac_try
="$ac_compile"
26785 case "(($ac_try" in
26786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26787 *) ac_try_echo=$ac_try;;
26789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790 (eval "$ac_compile") 2>conftest.er1
26792 grep -v '^ *+' conftest.er1 >conftest.err
26794 cat conftest.err >&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } && {
26797 test -z "$ac_cxx_werror_flag" ||
26798 test ! -s conftest.err
26799 } && test -s conftest.$ac_objext; then
26800 ac_header_compiler=yes
26802 echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26805 ac_header_compiler=no
26808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26810 echo "${ECHO_T}$ac_header_compiler" >&6; }
26812 # Is the header present?
26813 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
26814 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
26815 cat >conftest.$ac_ext <<_ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h. */
26821 #include <${OPENH323DIR}/../pwlib/version.h>
26823 if { (ac_try="$ac_cpp conftest.$ac_ext"
26824 case "(($ac_try" in
26825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26826 *) ac_try_echo
=$ac_try;;
26828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26831 grep -v '^ *+' conftest.er1
>conftest.err
26833 cat conftest.err
>&5
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); } >/dev
/null
&& {
26836 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26837 test ! -s conftest.err
26839 ac_header_preproc
=yes
26841 echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.
$ac_ext >&5
26844 ac_header_preproc
=no
26847 rm -f conftest.err conftest.
$ac_ext
26848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26849 echo "${ECHO_T}$ac_header_preproc" >&6; }
26851 # So? What about this header?
26852 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26854 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26855 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26856 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
26857 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
26858 ac_header_preproc
=yes
26861 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
26862 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
26863 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
26864 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
26866 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
26867 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
26868 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26869 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
26870 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
26872 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
26874 ## ------------------------------- ##
26875 ## Report this to www.asterisk.org ##
26876 ## ------------------------------- ##
26878 ) |
sed "s/^/$as_me: WARNING: /" >&2
26881 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26882 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26883 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26886 eval "$as_ac_Header=\$ac_header_preproc"
26888 ac_res
=`eval echo '${'$as_ac_Header'}'`
26889 { echo "$as_me:$LINENO: result: $ac_res" >&5
26890 echo "${ECHO_T}$ac_res" >&6; }
26893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26899 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26900 PWLIBDIR
="${OPENH323DIR}/../pwlib"
26902 as_ac_Header
=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
26903 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26904 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26905 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26906 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26907 echo $ECHO_N "(cached) $ECHO_C" >&6
26909 ac_res
=`eval echo '${'$as_ac_Header'}'`
26910 { echo "$as_me:$LINENO: result: $ac_res" >&5
26911 echo "${ECHO_T}$ac_res" >&6; }
26913 # Is the header compilable?
26914 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
26915 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
26916 cat >conftest.
$ac_ext <<_ACEOF
26919 cat confdefs.h
>>conftest.
$ac_ext
26920 cat >>conftest.
$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26922 $ac_includes_default
26923 #include <${HOME}/pwlib/include/ptlib.h>
26925 rm -f conftest.
$ac_objext
26926 if { (ac_try
="$ac_compile"
26927 case "(($ac_try" in
26928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26929 *) ac_try_echo=$ac_try;;
26931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26932 (eval "$ac_compile") 2>conftest.er1
26934 grep -v '^ *+' conftest.er1 >conftest.err
26936 cat conftest.err >&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); } && {
26939 test -z "$ac_cxx_werror_flag" ||
26940 test ! -s conftest.err
26941 } && test -s conftest.$ac_objext; then
26942 ac_header_compiler=yes
26944 echo "$as_me: failed program was:" >&5
26945 sed 's/^/| /' conftest.$ac_ext >&5
26947 ac_header_compiler=no
26950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26952 echo "${ECHO_T}$ac_header_compiler" >&6; }
26954 # Is the header present?
26955 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
26956 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
26957 cat >conftest.$ac_ext <<_ACEOF
26960 cat confdefs.h >>conftest.$ac_ext
26961 cat >>conftest.$ac_ext <<_ACEOF
26962 /* end confdefs.h. */
26963 #include <${HOME}/pwlib/include/ptlib.h>
26965 if { (ac_try="$ac_cpp conftest.$ac_ext"
26966 case "(($ac_try" in
26967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26968 *) ac_try_echo
=$ac_try;;
26970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26973 grep -v '^ *+' conftest.er1
>conftest.err
26975 cat conftest.err
>&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } >/dev
/null
&& {
26978 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26979 test ! -s conftest.err
26981 ac_header_preproc
=yes
26983 echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.
$ac_ext >&5
26986 ac_header_preproc
=no
26989 rm -f conftest.err conftest.
$ac_ext
26990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26991 echo "${ECHO_T}$ac_header_preproc" >&6; }
26993 # So? What about this header?
26994 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26996 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26997 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26998 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
26999 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
27000 ac_header_preproc
=yes
27003 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
27004 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
27005 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
27006 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
27007 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
27008 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
27009 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
27010 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27011 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
27012 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
27013 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
27014 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
27016 ## ------------------------------- ##
27017 ## Report this to www.asterisk.org ##
27018 ## ------------------------------- ##
27020 ) |
sed "s/^/$as_me: WARNING: /" >&2
27023 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
27024 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
27025 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27026 echo $ECHO_N "(cached) $ECHO_C" >&6
27028 eval "$as_ac_Header=\$ac_header_preproc"
27030 ac_res
=`eval echo '${'$as_ac_Header'}'`
27031 { echo "$as_me:$LINENO: result: $ac_res" >&5
27032 echo "${ECHO_T}$ac_res" >&6; }
27035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27040 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27041 PWLIBDIR
="${HOME}/pwlib"
27043 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
27044 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
27045 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
27046 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
27047 echo $ECHO_N "(cached) $ECHO_C" >&6
27049 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
27050 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
27052 # Is the header compilable?
27053 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
27054 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
27055 cat >conftest.
$ac_ext <<_ACEOF
27058 cat confdefs.h
>>conftest.
$ac_ext
27059 cat >>conftest.
$ac_ext <<_ACEOF
27060 /* end confdefs.h. */
27061 $ac_includes_default
27062 #include </usr/local/include/ptlib.h>
27064 rm -f conftest.
$ac_objext
27065 if { (ac_try
="$ac_compile"
27066 case "(($ac_try" in
27067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27068 *) ac_try_echo=$ac_try;;
27070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27071 (eval "$ac_compile") 2>conftest.er1
27073 grep -v '^ *+' conftest.er1 >conftest.err
27075 cat conftest.err >&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } && {
27078 test -z "$ac_cxx_werror_flag" ||
27079 test ! -s conftest.err
27080 } && test -s conftest.$ac_objext; then
27081 ac_header_compiler=yes
27083 echo "$as_me: failed program was:" >&5
27084 sed 's/^/| /' conftest.$ac_ext >&5
27086 ac_header_compiler=no
27089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27091 echo "${ECHO_T}$ac_header_compiler" >&6; }
27093 # Is the header present?
27094 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
27095 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
27096 cat >conftest.$ac_ext <<_ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h. */
27102 #include </usr/local/include/ptlib.h>
27104 if { (ac_try="$ac_cpp conftest.$ac_ext"
27105 case "(($ac_try" in
27106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27107 *) ac_try_echo
=$ac_try;;
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27112 grep -v '^ *+' conftest.er1
>conftest.err
27114 cat conftest.err
>&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } >/dev
/null
&& {
27117 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27118 test ! -s conftest.err
27120 ac_header_preproc
=yes
27122 echo "$as_me: failed program was:" >&5
27123 sed 's/^/| /' conftest.
$ac_ext >&5
27125 ac_header_preproc
=no
27128 rm -f conftest.err conftest.
$ac_ext
27129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27130 echo "${ECHO_T}$ac_header_preproc" >&6; }
27132 # So? What about this header?
27133 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27135 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27136 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27137 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
27138 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
27139 ac_header_preproc
=yes
27142 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
27143 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
27144 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
27145 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
27146 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
27147 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
27148 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
27149 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27150 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
27151 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
27152 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
27153 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
27155 ## ------------------------------- ##
27156 ## Report this to www.asterisk.org ##
27157 ## ------------------------------- ##
27159 ) |
sed "s/^/$as_me: WARNING: /" >&2
27162 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
27163 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
27164 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
27165 echo $ECHO_N "(cached) $ECHO_C" >&6
27167 ac_cv_header__usr_local_include_ptlib_h
=$ac_header_preproc
27169 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
27170 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
27173 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
27178 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27179 # Extract the first word of "ptlib-config", so it can be a program name with args.
27180 set dummy ptlib-config
; ac_word
=$2
27181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27183 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27184 echo $ECHO_N "(cached) $ECHO_C" >&6
27186 case $PTLIB_CONFIG in
27188 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
27191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27192 for as_dir
in /usr
/local
/bin
27195 test -z "$as_dir" && as_dir
=.
27196 for ac_exec_ext
in '' $ac_executable_extensions; do
27197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27198 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
27199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27209 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
27210 if test -n "$PTLIB_CONFIG"; then
27211 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27212 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27214 { echo "$as_me:$LINENO: result: no" >&5
27215 echo "${ECHO_T}no" >&6; }
27219 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
27220 # Extract the first word of "ptlib-config", so it can be a program name with args.
27221 set dummy ptlib-config
; ac_word
=$2
27222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27224 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27225 echo $ECHO_N "(cached) $ECHO_C" >&6
27227 case $PTLIB_CONFIG in
27229 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
27232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27233 for as_dir
in /usr
/local
/share
/pwlib
/make
27236 test -z "$as_dir" && as_dir
=.
27237 for ac_exec_ext
in '' $ac_executable_extensions; do
27238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27239 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
27240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27250 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
27251 if test -n "$PTLIB_CONFIG"; then
27252 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27253 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27255 { echo "$as_me:$LINENO: result: no" >&5
27256 echo "${ECHO_T}no" >&6; }
27261 PWLIB_INCDIR
="/usr/local/include"
27262 PWLIB_LIBDIR
=`${PTLIB_CONFIG} --pwlibdir`
27263 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27264 if test "x$LIB64" != "x"; then
27265 PWLIB_LIBDIR
="/usr/local/lib64"
27267 PWLIB_LIBDIR
="/usr/local/lib"
27270 PWLIB_LIB
=`${PTLIB_CONFIG} --ldflags --libs`
27271 PWLIB_LIB
="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
27273 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27274 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
27275 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
27276 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27277 echo $ECHO_N "(cached) $ECHO_C" >&6
27279 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
27280 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
27282 # Is the header compilable?
27283 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
27284 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
27285 cat >conftest.
$ac_ext <<_ACEOF
27288 cat confdefs.h
>>conftest.
$ac_ext
27289 cat >>conftest.
$ac_ext <<_ACEOF
27290 /* end confdefs.h. */
27291 $ac_includes_default
27292 #include </usr/include/ptlib.h>
27294 rm -f conftest.
$ac_objext
27295 if { (ac_try
="$ac_compile"
27296 case "(($ac_try" in
27297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27298 *) ac_try_echo=$ac_try;;
27300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27301 (eval "$ac_compile") 2>conftest.er1
27303 grep -v '^ *+' conftest.er1 >conftest.err
27305 cat conftest.err >&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } && {
27308 test -z "$ac_cxx_werror_flag" ||
27309 test ! -s conftest.err
27310 } && test -s conftest.$ac_objext; then
27311 ac_header_compiler=yes
27313 echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27316 ac_header_compiler=no
27319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27321 echo "${ECHO_T}$ac_header_compiler" >&6; }
27323 # Is the header present?
27324 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
27325 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
27326 cat >conftest.$ac_ext <<_ACEOF
27329 cat confdefs.h >>conftest.$ac_ext
27330 cat >>conftest.$ac_ext <<_ACEOF
27331 /* end confdefs.h. */
27332 #include </usr/include/ptlib.h>
27334 if { (ac_try="$ac_cpp conftest.$ac_ext"
27335 case "(($ac_try" in
27336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27337 *) ac_try_echo
=$ac_try;;
27339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27342 grep -v '^ *+' conftest.er1
>conftest.err
27344 cat conftest.err
>&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); } >/dev
/null
&& {
27347 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27348 test ! -s conftest.err
27350 ac_header_preproc
=yes
27352 echo "$as_me: failed program was:" >&5
27353 sed 's/^/| /' conftest.
$ac_ext >&5
27355 ac_header_preproc
=no
27358 rm -f conftest.err conftest.
$ac_ext
27359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27360 echo "${ECHO_T}$ac_header_preproc" >&6; }
27362 # So? What about this header?
27363 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27365 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27366 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27367 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
27368 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
27369 ac_header_preproc
=yes
27372 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
27373 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
27374 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
27375 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
27376 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
27377 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
27378 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
27379 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27380 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
27381 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
27382 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
27383 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
27385 ## ------------------------------- ##
27386 ## Report this to www.asterisk.org ##
27387 ## ------------------------------- ##
27389 ) |
sed "s/^/$as_me: WARNING: /" >&2
27392 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
27393 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
27394 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27395 echo $ECHO_N "(cached) $ECHO_C" >&6
27397 ac_cv_header__usr_include_ptlib_h
=$ac_header_preproc
27399 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
27400 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
27403 if test $ac_cv_header__usr_include_ptlib_h = yes; then
27408 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27409 # Extract the first word of "ptlib-config", so it can be a program name with args.
27410 set dummy ptlib-config
; ac_word
=$2
27411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27413 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27414 echo $ECHO_N "(cached) $ECHO_C" >&6
27416 case $PTLIB_CONFIG in
27418 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
27421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27422 for as_dir
in /usr
/share
/pwlib
/make
27425 test -z "$as_dir" && as_dir
=.
27426 for ac_exec_ext
in '' $ac_executable_extensions; do
27427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27428 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
27429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27439 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
27440 if test -n "$PTLIB_CONFIG"; then
27441 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27442 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27444 { echo "$as_me:$LINENO: result: no" >&5
27445 echo "${ECHO_T}no" >&6; }
27449 PWLIB_INCDIR
="/usr/include"
27450 PWLIB_LIBDIR
=`${PTLIB_CONFIG} --pwlibdir`
27451 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27452 if test "x$LIB64" != "x"; then
27453 PWLIB_LIBDIR
="/usr/lib64"
27455 PWLIB_LIBDIR
="/usr/lib"
27458 PWLIB_LIB
=`${PTLIB_CONFIG} --ldflags --libs`
27459 PWLIB_LIB
="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
27466 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
27467 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
27471 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27472 if test "${PWLIBDIR:-unset}" = "unset" ; then
27473 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
27474 PWLIBDIR
=`$PTLIB_CONFIG --prefix`
27476 echo "Cannot find ptlib-config - please install and try again"
27481 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
27482 PWLIBDIR
="/usr/share/pwlib"
27483 PWLIB_INCDIR
="/usr/include"
27484 if test "x$LIB64" != "x"; then
27485 PWLIB_LIBDIR
="/usr/lib64"
27487 PWLIB_LIBDIR
="/usr/lib"
27490 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
27491 PWLIBDIR
="/usr/local/share/pwlib"
27492 PWLIB_INCDIR
="/usr/local/include"
27493 if test "x$LIB64" != "x"; then
27494 PWLIB_LIBDIR
="/usr/local/lib64"
27496 PWLIB_LIBDIR
="/usr/local/lib"
27500 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
27501 PWLIB_INCDIR
="${PWLIBDIR}/include"
27503 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27504 PWLIB_LIBDIR
="${PWLIBDIR}/lib"
27512 ac_cpp
='$CPP $CPPFLAGS'
27513 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27514 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27515 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27519 if test "${HAS_PWLIB:-unset}" != "unset"; then
27520 PWLIB_VERSION
=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
27521 PWLIB_MAJOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f1 -d.`
27522 PWLIB_MINOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f2 -d.`
27523 PWLIB_BUILD_NUMBER
=`echo ${PWLIB_VERSION} | cut -f3 -d.`
27524 let PWLIB_VER
=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
27525 let PWLIB_REQ
=1*10000+9*100+2
27527 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
27528 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
27529 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
27530 { echo "$as_me:$LINENO: result: no" >&5
27531 echo "${ECHO_T}no" >&6; }
27534 { echo "$as_me:$LINENO: result: yes" >&5
27535 echo "${ECHO_T}yes" >&6; }
27540 if test "${HAS_PWLIB:-unset}" != "unset"; then
27544 linux
*) PWLIB_OSTYPE
=linux
;
27546 freebsd
* ) PWLIB_OSTYPE
=FreeBSD
;
27548 openbsd
* ) PWLIB_OSTYPE
=OpenBSD
;
27549 ENDLDLIBS
="-lossaudio" ;
27551 netbsd
* ) PWLIB_OSTYPE
=NetBSD
;
27552 ENDLDLIBS
="-lossaudio" ;
27554 solaris
* | sunos
* ) PWLIB_OSTYPE
=solaris
;
27556 darwin
* ) PWLIB_OSTYPE
=Darwin
;
27558 beos
*) PWLIB_OSTYPE
=beos
;
27559 STDCCFLAGS
="$STDCCFLAGS -D__BEOS__"
27561 cygwin
*) PWLIB_OSTYPE
=cygwin
;
27563 mingw
*) PWLIB_OSTYPE
=mingw
;
27564 STDCCFLAGS
="$STDCCFLAGS -mms-bitfields" ;
27565 ENDLDLIBS
="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
27567 * ) PWLIB_OSTYPE
="$host_os" ;
27568 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
27569 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
27574 case "$host_cpu" in
27575 x86 | i686 | i586 | i486 | i386
) PWLIB_MACHTYPE
=x86
27578 x86_64
) PWLIB_MACHTYPE
=x86_64
;
27583 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7
) PWLIB_MACHTYPE
=alpha
;
27587 sparc
) PWLIB_MACHTYPE
=sparc
;
27590 powerpc
) PWLIB_MACHTYPE
=ppc
;
27593 ppc
) PWLIB_MACHTYPE
=ppc
;
27596 powerpc64
) PWLIB_MACHTYPE
=ppc64
;
27601 ppc64
) PWLIB_MACHTYPE
=ppc64
;
27606 ia64
) PWLIB_MACHTYPE
=ia64
;
27610 s390x
) PWLIB_MACHTYPE
=s390x
;
27615 s390
) PWLIB_MACHTYPE
=s390
;
27618 * ) PWLIB_MACHTYPE
="$host_cpu";
27619 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
27620 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
27623 PWLIB_PLATFORM
="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
27628 PLATFORM_PWLIB
="pt_${PWLIB_PLATFORM}_r"
27631 if test "${HAS_PWLIB:-unset}" != "unset"; then
27632 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
27633 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
27635 saved_cppflags
="${CPPFLAGS}"
27636 saved_libs
="${LIBS}"
27637 if test "${PWLIB_LIB:-unset}" != "unset"; then
27638 LIBS
="${LIBS} ${PWLIB_LIB} "
27640 LIBS
="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
27642 CPPFLAGS
="${CPPFLAGS} -I${PWLIB_INCDIR} "
27645 ac_cpp
='$CXXCPP $CPPFLAGS'
27646 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27647 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27648 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
27651 cat >conftest.
$ac_ext <<_ACEOF
27654 cat confdefs.h
>>conftest.
$ac_ext
27655 cat >>conftest.
$ac_ext <<_ACEOF
27656 /* end confdefs.h. */
27661 BOOL q = PTime::IsDaylightSavings();
27666 rm -f conftest.
$ac_objext conftest
$ac_exeext
27667 if { (ac_try
="$ac_link"
27668 case "(($ac_try" in
27669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27670 *) ac_try_echo=$ac_try;;
27672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27673 (eval "$ac_link") 2>conftest.er1
27675 grep -v '^ *+' conftest.er1 >conftest.err
27677 cat conftest.err >&5
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); } && {
27680 test -z "$ac_cxx_werror_flag" ||
27681 test ! -s conftest.err
27682 } && test -s conftest$ac_exeext &&
27683 $as_test_x conftest$ac_exeext; then
27684 { echo "$as_me:$LINENO: result: yes" >&5
27685 echo "${ECHO_T}yes" >&6; }
27686 ac_cv_lib_PWLIB="yes"
27689 echo "$as_me: failed program was:" >&5
27690 sed 's/^/| /' conftest.$ac_ext >&5
27692 { echo "$as_me:$LINENO: result: no" >&5
27693 echo "${ECHO_T}no" >&6; }
27694 ac_cv_lib_PWLIB="no"
27699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27700 conftest$ac_exeext conftest.$ac_ext
27703 ac_cpp='$CPP $CPPFLAGS'
27704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27709 LIBS="${saved_libs}"
27710 CPPFLAGS="${saved_cppflags}"
27712 if test "${ac_cv_lib_PWLIB}" = "yes"; then
27713 if test "${PWLIB_LIB:-undef}" = "undef"; then
27714 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
27715 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
27717 PWLIB_LIB="-l${PLATFORM_PWLIB}"
27720 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
27721 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
27725 cat >>confdefs.h <<\_ACEOF
27726 #define HAVE_PWLIB 1
27735 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
27736 { echo "$as_me:$LINENO: ***" >&5
27737 echo "$as_me: ***" >&6;}
27738 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
27739 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
27740 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27741 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27742 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
27743 echo "$as_me: *** including --without-pwlib" >&6;}
27747 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
27748 if test -n "${OPENH323_DIR}"; then
27749 OPENH323DIR="${OPENH323_DIR}"
27755 ac_cpp='$CXXCPP $CPPFLAGS'
27756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27760 if test "${OPENH323DIR:-unset}" != "unset" ; then
27761 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" |
$as_tr_sh`
27762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27763 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27764 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27766 echo $ECHO_N "(cached) $ECHO_C" >&6
27768 ac_res=`eval echo '${'$as_ac_Header'}'`
27769 { echo "$as_me:$LINENO: result: $ac_res" >&5
27770 echo "${ECHO_T}$ac_res" >&6; }
27772 # Is the header compilable?
27773 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
27774 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
27775 cat >conftest.$ac_ext <<_ACEOF
27778 cat confdefs.h >>conftest.$ac_ext
27779 cat >>conftest.$ac_ext <<_ACEOF
27780 /* end confdefs.h. */
27781 $ac_includes_default
27782 #include <${OPENH323DIR}/version.h>
27784 rm -f conftest.$ac_objext
27785 if { (ac_try="$ac_compile"
27786 case "(($ac_try" in
27787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27788 *) ac_try_echo
=$ac_try;;
27790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27791 (eval "$ac_compile") 2>conftest.er1
27793 grep -v '^ *+' conftest.er1
>conftest.err
27795 cat conftest.err
>&5
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); } && {
27798 test -z "$ac_cxx_werror_flag" ||
27799 test ! -s conftest.err
27800 } && test -s conftest.
$ac_objext; then
27801 ac_header_compiler
=yes
27803 echo "$as_me: failed program was:" >&5
27804 sed 's/^/| /' conftest.
$ac_ext >&5
27806 ac_header_compiler
=no
27809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27811 echo "${ECHO_T}$ac_header_compiler" >&6; }
27813 # Is the header present?
27814 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
27815 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
27816 cat >conftest.
$ac_ext <<_ACEOF
27819 cat confdefs.h
>>conftest.
$ac_ext
27820 cat >>conftest.
$ac_ext <<_ACEOF
27821 /* end confdefs.h. */
27822 #include <${OPENH323DIR}/version.h>
27824 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27825 case "(($ac_try" in
27826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27827 *) ac_try_echo=$ac_try;;
27829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27832 grep -v '^ *+' conftest.er1 >conftest.err
27834 cat conftest.err >&5
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); } >/dev/null && {
27837 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27838 test ! -s conftest.err
27840 ac_header_preproc=yes
27842 echo "$as_me: failed program was:" >&5
27843 sed 's/^/| /' conftest.$ac_ext >&5
27845 ac_header_preproc=no
27848 rm -f conftest.err conftest.$ac_ext
27849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27850 echo "${ECHO_T}$ac_header_preproc" >&6; }
27852 # So? What about this header?
27853 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27855 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27856 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27857 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
27858 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
27859 ac_header_preproc=yes
27862 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
27863 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
27864 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
27865 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
27866 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
27867 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
27868 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
27869 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27870 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
27871 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
27872 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
27873 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
27875 ## ------------------------------- ##
27876 ## Report this to www.asterisk.org ##
27877 ## ------------------------------- ##
27879 ) | sed "s/^/$as_me: WARNING: /" >&2
27882 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27883 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27885 echo $ECHO_N "(cached) $ECHO_C" >&6
27887 eval "$as_ac_Header=\$ac_header_preproc"
27889 ac_res=`eval echo '${'$as_ac_Header'}'`
27890 { echo "$as_me:$LINENO: result: $ac_res" >&5
27891 echo "${ECHO_T}$ac_res" >&6; }
27894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27900 if test "${HAS_OPENH323:-unset}" = "unset" ; then
27901 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" |
$as_tr_sh`
27902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27903 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27904 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27906 echo $ECHO_N "(cached) $ECHO_C" >&6
27908 ac_res=`eval echo '${'$as_ac_Header'}'`
27909 { echo "$as_me:$LINENO: result: $ac_res" >&5
27910 echo "${ECHO_T}$ac_res" >&6; }
27912 # Is the header compilable?
27913 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
27914 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
27915 cat >conftest.$ac_ext <<_ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h. */
27921 $ac_includes_default
27922 #include <${PWLIBDIR}/../openh323/version.h>
27924 rm -f conftest.$ac_objext
27925 if { (ac_try="$ac_compile"
27926 case "(($ac_try" in
27927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27928 *) ac_try_echo
=$ac_try;;
27930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27931 (eval "$ac_compile") 2>conftest.er1
27933 grep -v '^ *+' conftest.er1
>conftest.err
27935 cat conftest.err
>&5
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); } && {
27938 test -z "$ac_cxx_werror_flag" ||
27939 test ! -s conftest.err
27940 } && test -s conftest.
$ac_objext; then
27941 ac_header_compiler
=yes
27943 echo "$as_me: failed program was:" >&5
27944 sed 's/^/| /' conftest.
$ac_ext >&5
27946 ac_header_compiler
=no
27949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27951 echo "${ECHO_T}$ac_header_compiler" >&6; }
27953 # Is the header present?
27954 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
27955 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
27956 cat >conftest.
$ac_ext <<_ACEOF
27959 cat confdefs.h
>>conftest.
$ac_ext
27960 cat >>conftest.
$ac_ext <<_ACEOF
27961 /* end confdefs.h. */
27962 #include <${PWLIBDIR}/../openh323/version.h>
27964 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27965 case "(($ac_try" in
27966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27967 *) ac_try_echo=$ac_try;;
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27972 grep -v '^ *+' conftest.er1 >conftest.err
27974 cat conftest.err >&5
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); } >/dev/null && {
27977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27978 test ! -s conftest.err
27980 ac_header_preproc=yes
27982 echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27985 ac_header_preproc=no
27988 rm -f conftest.err conftest.$ac_ext
27989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27990 echo "${ECHO_T}$ac_header_preproc" >&6; }
27992 # So? What about this header?
27993 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27995 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27996 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27997 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
27998 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
27999 ac_header_preproc=yes
28002 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
28003 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
28004 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
28005 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
28006 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
28007 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
28008 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
28009 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
28010 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
28011 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
28012 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
28013 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
28015 ## ------------------------------- ##
28016 ## Report this to www.asterisk.org ##
28017 ## ------------------------------- ##
28019 ) | sed "s/^/$as_me: WARNING: /" >&2
28022 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
28023 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
28024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28025 echo $ECHO_N "(cached) $ECHO_C" >&6
28027 eval "$as_ac_Header=\$ac_header_preproc"
28029 ac_res=`eval echo '${'$as_ac_Header'}'`
28030 { echo "$as_me:$LINENO: result: $ac_res" >&5
28031 echo "${ECHO_T}$ac_res" >&6; }
28034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28035 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
28039 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28040 OPENH323DIR="${PWLIBDIR}/../openh323"
28041 saved_cppflags="${CPPFLAGS}"
28042 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
28043 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" |
$as_tr_sh`
28044 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
28045 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
28046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28047 echo $ECHO_N "(cached) $ECHO_C" >&6
28049 cat >conftest.$ac_ext <<_ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h. */
28057 #include <${OPENH323DIR}/include/h323.h>
28059 rm -f conftest.$ac_objext
28060 if { (ac_try="$ac_compile"
28061 case "(($ac_try" in
28062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28063 *) ac_try_echo
=$ac_try;;
28065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28066 (eval "$ac_compile") 2>conftest.er1
28068 grep -v '^ *+' conftest.er1
>conftest.err
28070 cat conftest.err
>&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); } && {
28073 test -z "$ac_cxx_werror_flag" ||
28074 test ! -s conftest.err
28075 } && test -s conftest.
$ac_objext; then
28076 eval "$as_ac_Header=yes"
28078 echo "$as_me: failed program was:" >&5
28079 sed 's/^/| /' conftest.
$ac_ext >&5
28081 eval "$as_ac_Header=no"
28084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28086 ac_res
=`eval echo '${'$as_ac_Header'}'`
28087 { echo "$as_me:$LINENO: result: $ac_res" >&5
28088 echo "${ECHO_T}$ac_res" >&6; }
28089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28092 OPENH323_INCDIR
="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR
="${PWLIB_LIBDIR}"
28096 CPPFLAGS
="${saved_cppflags}"
28098 saved_cppflags
="${CPPFLAGS}"
28099 CPPFLAGS
="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
28100 as_ac_Header
=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
28101 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28102 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
28103 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
28104 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28105 echo $ECHO_N "(cached) $ECHO_C" >&6
28107 ac_res
=`eval echo '${'$as_ac_Header'}'`
28108 { echo "$as_me:$LINENO: result: $ac_res" >&5
28109 echo "${ECHO_T}$ac_res" >&6; }
28111 # Is the header compilable?
28112 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
28113 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
28114 cat >conftest.
$ac_ext <<_ACEOF
28117 cat confdefs.h
>>conftest.
$ac_ext
28118 cat >>conftest.
$ac_ext <<_ACEOF
28119 /* end confdefs.h. */
28120 $ac_includes_default
28121 #include <${HOME}/openh323/include/h323.h>
28123 rm -f conftest.
$ac_objext
28124 if { (ac_try
="$ac_compile"
28125 case "(($ac_try" in
28126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28127 *) ac_try_echo=$ac_try;;
28129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28130 (eval "$ac_compile") 2>conftest.er1
28132 grep -v '^ *+' conftest.er1 >conftest.err
28134 cat conftest.err >&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } && {
28137 test -z "$ac_cxx_werror_flag" ||
28138 test ! -s conftest.err
28139 } && test -s conftest.$ac_objext; then
28140 ac_header_compiler=yes
28142 echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28145 ac_header_compiler=no
28148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28150 echo "${ECHO_T}$ac_header_compiler" >&6; }
28152 # Is the header present?
28153 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
28154 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
28155 cat >conftest.$ac_ext <<_ACEOF
28158 cat confdefs.h >>conftest.$ac_ext
28159 cat >>conftest.$ac_ext <<_ACEOF
28160 /* end confdefs.h. */
28161 #include <${HOME}/openh323/include/h323.h>
28163 if { (ac_try="$ac_cpp conftest.$ac_ext"
28164 case "(($ac_try" in
28165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28166 *) ac_try_echo
=$ac_try;;
28168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28171 grep -v '^ *+' conftest.er1
>conftest.err
28173 cat conftest.err
>&5
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); } >/dev
/null
&& {
28176 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
28177 test ! -s conftest.err
28179 ac_header_preproc
=yes
28181 echo "$as_me: failed program was:" >&5
28182 sed 's/^/| /' conftest.
$ac_ext >&5
28184 ac_header_preproc
=no
28187 rm -f conftest.err conftest.
$ac_ext
28188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28189 echo "${ECHO_T}$ac_header_preproc" >&6; }
28191 # So? What about this header?
28192 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28194 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28195 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28196 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
28197 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
28198 ac_header_preproc
=yes
28201 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
28202 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
28203 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
28204 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
28205 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
28206 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
28207 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
28208 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28209 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
28210 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
28211 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
28212 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
28214 ## ------------------------------- ##
28215 ## Report this to www.asterisk.org ##
28216 ## ------------------------------- ##
28218 ) |
sed "s/^/$as_me: WARNING: /" >&2
28221 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
28222 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
28223 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28224 echo $ECHO_N "(cached) $ECHO_C" >&6
28226 eval "$as_ac_Header=\$ac_header_preproc"
28228 ac_res
=`eval echo '${'$as_ac_Header'}'`
28229 { echo "$as_me:$LINENO: result: $ac_res" >&5
28230 echo "${ECHO_T}$ac_res" >&6; }
28233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28238 CPPFLAGS
="${saved_cppflags}"
28239 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28240 OPENH323DIR
="${HOME}/openh323"
28242 saved_cppflags
="${CPPFLAGS}"
28243 CPPFLAGS
="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
28244 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28245 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
28246 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
28247 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28248 echo $ECHO_N "(cached) $ECHO_C" >&6
28250 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
28251 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
28253 # Is the header compilable?
28254 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
28255 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
28256 cat >conftest.
$ac_ext <<_ACEOF
28259 cat confdefs.h
>>conftest.
$ac_ext
28260 cat >>conftest.
$ac_ext <<_ACEOF
28261 /* end confdefs.h. */
28262 $ac_includes_default
28263 #include </usr/local/include/openh323/h323.h>
28265 rm -f conftest.
$ac_objext
28266 if { (ac_try
="$ac_compile"
28267 case "(($ac_try" in
28268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28269 *) ac_try_echo=$ac_try;;
28271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272 (eval "$ac_compile") 2>conftest.er1
28274 grep -v '^ *+' conftest.er1 >conftest.err
28276 cat conftest.err >&5
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); } && {
28279 test -z "$ac_cxx_werror_flag" ||
28280 test ! -s conftest.err
28281 } && test -s conftest.$ac_objext; then
28282 ac_header_compiler=yes
28284 echo "$as_me: failed program was:" >&5
28285 sed 's/^/| /' conftest.$ac_ext >&5
28287 ac_header_compiler=no
28290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28292 echo "${ECHO_T}$ac_header_compiler" >&6; }
28294 # Is the header present?
28295 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
28296 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
28297 cat >conftest.$ac_ext <<_ACEOF
28300 cat confdefs.h >>conftest.$ac_ext
28301 cat >>conftest.$ac_ext <<_ACEOF
28302 /* end confdefs.h. */
28303 #include </usr/local/include/openh323/h323.h>
28305 if { (ac_try="$ac_cpp conftest.$ac_ext"
28306 case "(($ac_try" in
28307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28308 *) ac_try_echo
=$ac_try;;
28310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28313 grep -v '^ *+' conftest.er1
>conftest.err
28315 cat conftest.err
>&5
28316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); } >/dev
/null
&& {
28318 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
28319 test ! -s conftest.err
28321 ac_header_preproc
=yes
28323 echo "$as_me: failed program was:" >&5
28324 sed 's/^/| /' conftest.
$ac_ext >&5
28326 ac_header_preproc
=no
28329 rm -f conftest.err conftest.
$ac_ext
28330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28331 echo "${ECHO_T}$ac_header_preproc" >&6; }
28333 # So? What about this header?
28334 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28336 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28337 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28338 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
28339 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
28340 ac_header_preproc
=yes
28343 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
28344 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
28345 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
28346 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
28347 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
28348 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
28349 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
28350 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28351 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
28352 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
28353 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
28354 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
28356 ## ------------------------------- ##
28357 ## Report this to www.asterisk.org ##
28358 ## ------------------------------- ##
28360 ) |
sed "s/^/$as_me: WARNING: /" >&2
28363 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
28364 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
28365 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28366 echo $ECHO_N "(cached) $ECHO_C" >&6
28368 ac_cv_header__usr_local_include_openh323_h323_h
=$ac_header_preproc
28370 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
28371 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
28374 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
28379 CPPFLAGS
="${saved_cppflags}"
28380 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28381 OPENH323DIR
="/usr/local/share/openh323"
28382 OPENH323_INCDIR
="/usr/local/include/openh323"
28383 if test "x$LIB64" != "x"; then
28384 OPENH323_LIBDIR
="/usr/local/lib64"
28386 OPENH323_LIBDIR
="/usr/local/lib"
28389 saved_cppflags
="${CPPFLAGS}"
28390 CPPFLAGS
="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
28391 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
28392 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
28393 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
28394 echo $ECHO_N "(cached) $ECHO_C" >&6
28396 cat >conftest.
$ac_ext <<_ACEOF
28399 cat confdefs.h
>>conftest.
$ac_ext
28400 cat >>conftest.
$ac_ext <<_ACEOF
28401 /* end confdefs.h. */
28404 #include </usr/include/openh323/h323.h>
28406 rm -f conftest.
$ac_objext
28407 if { (ac_try
="$ac_compile"
28408 case "(($ac_try" in
28409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28410 *) ac_try_echo=$ac_try;;
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413 (eval "$ac_compile") 2>conftest.er1
28415 grep -v '^ *+' conftest.er1 >conftest.err
28417 cat conftest.err >&5
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } && {
28420 test -z "$ac_cxx_werror_flag" ||
28421 test ! -s conftest.err
28422 } && test -s conftest.$ac_objext; then
28423 ac_cv_header__usr_include_openh323_h323_h=yes
28425 echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28428 ac_cv_header__usr_include_openh323_h323_h=no
28431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28433 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
28434 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
28435 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
28440 CPPFLAGS="${saved_cppflags}"
28441 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28442 OPENH323DIR="/usr/share/openh323"
28443 OPENH323_INCDIR="/usr/include/openh323"
28444 if test "x$LIB64" != "x"; then
28445 OPENH323_LIBDIR="/usr/lib64"
28447 OPENH323_LIBDIR="/usr/lib"
28455 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28456 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
28457 OPENH323_INCDIR="${OPENH323DIR}/include"
28459 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
28460 OPENH323_LIBDIR="${OPENH323DIR}/lib"
28463 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
28464 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
28465 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
28472 ac_cpp='$CPP $CPPFLAGS'
28473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28479 if test "${HAS_OPENH323:-unset}" != "unset"; then
28480 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut
-f2 -d ' ' |
sed -e 's/"//g'`
28481 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f1 -d.
`
28482 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f2 -d.
`
28483 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut
-f3 -d.
`
28484 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
28485 let OPENH323_REQ=1*10000+17*100+3
28487 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
28488 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
28489 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
28490 { echo "$as_me:$LINENO: result: no" >&5
28491 echo "${ECHO_T}no" >&6; }
28494 { echo "$as_me:$LINENO: result: yes" >&5
28495 echo "${ECHO_T}yes" >&6; }
28500 if test "${HAS_OPENH323:-unset}" != "unset"; then
28501 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
28502 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
28504 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
28505 for pfx in $prefixes; do
28506 files=`ls -l ${OPENH323_LIBDIR}/lib
${pfx}*.so
* 2>/dev
/null
`
28508 if test -n "$files"; then
28509 for f in $files; do
28510 if test -f $f -a ! -L $f; then
28511 libfile=`basename $f`
28516 if test -n "$libfile"; then
28517 OPENH323_PREFIX=$pfx
28521 if test "${libfile:-unset}" != "unset"; then
28522 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
28524 case "${OPENH323_SUFFIX}" in
28526 OPENH323_BUILD="notrace";;
28528 OPENH323_BUILD="opt";;
28530 OPENH323_BUILD="debug";;
28532 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
28533 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
28534 if test "x$notrace" = "x"; then
28537 if test "$notrace" -ne 0; then
28538 OPENH323_BUILD="notrace"
28540 OPENH323_BUILD="opt"
28542 OPENH323_LIB="-l${OPENH323_PREFIX}"
28544 OPENH323_BUILD="notrace"
28548 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
28549 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
28555 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
28557 if test "${HAS_OPENH323:-unset}" != "unset"; then
28558 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
28559 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
28561 saved_cppflags="${CPPFLAGS}"
28562 saved_libs="${LIBS}"
28563 if test "${OPENH323_LIB:-unset}" != "unset"; then
28564 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
28566 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
28568 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
28571 ac_cpp='$CXXCPP $CPPFLAGS'
28572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28577 cat >conftest.$ac_ext <<_ACEOF
28580 cat confdefs.h >>conftest.$ac_ext
28581 cat >>conftest.$ac_ext <<_ACEOF
28582 /* end confdefs.h. */
28585 #include "h323ep.h"
28589 H323EndPoint ep = H323EndPoint();
28594 rm -f conftest.$ac_objext conftest$ac_exeext
28595 if { (ac_try="$ac_link"
28596 case "(($ac_try" in
28597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28598 *) ac_try_echo
=$ac_try;;
28600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601 (eval "$ac_link") 2>conftest.er1
28603 grep -v '^ *+' conftest.er1
>conftest.err
28605 cat conftest.err
>&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } && {
28608 test -z "$ac_cxx_werror_flag" ||
28609 test ! -s conftest.err
28610 } && test -s conftest
$ac_exeext &&
28611 $as_test_x conftest
$ac_exeext; then
28612 { echo "$as_me:$LINENO: result: yes" >&5
28613 echo "${ECHO_T}yes" >&6; }
28614 ac_cv_lib_OPENH323
="yes"
28617 echo "$as_me: failed program was:" >&5
28618 sed 's/^/| /' conftest.
$ac_ext >&5
28620 { echo "$as_me:$LINENO: result: no" >&5
28621 echo "${ECHO_T}no" >&6; }
28622 ac_cv_lib_OPENH323
="no"
28627 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28628 conftest
$ac_exeext conftest.
$ac_ext
28631 ac_cpp
='$CPP $CPPFLAGS'
28632 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28633 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28634 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
28637 LIBS
="${saved_libs}"
28638 CPPFLAGS
="${saved_cppflags}"
28640 if test "${ac_cv_lib_OPENH323}" = "yes"; then
28641 if test "${OPENH323_LIB:-undef}" = "undef"; then
28642 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
28643 OPENH323_LIB
="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
28645 OPENH323_LIB
="-l${PLATFORM_OPENH323}"
28648 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
28649 OPENH323_INCLUDE
="-I${OPENH323_INCDIR}"
28653 cat >>confdefs.h
<<\_ACEOF
28654 #define HAVE_OPENH323 1
28661 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
28662 { echo "$as_me:$LINENO: ***" >&5
28663 echo "$as_me: ***" >&6;}
28664 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
28665 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
28666 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28667 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28668 { echo "$as_me:$LINENO: *** including --without-h323" >&5
28669 echo "$as_me: *** including --without-h323" >&6;}
28674 if test "${USE_RADIUS}" != "no"; then
28676 if test "x${RADIUS_DIR}" != "x"; then
28677 if test -d ${RADIUS_DIR}/lib
; then
28678 pbxlibdir
="-L${RADIUS_DIR}/lib"
28680 pbxlibdir
="-L${RADIUS_DIR}"
28683 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
28684 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
28685 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
28686 echo $ECHO_N "(cached) $ECHO_C" >&6
28688 ac_check_lib_save_LIBS
=$LIBS
28689 LIBS
="-lradiusclient-ng ${pbxlibdir} $LIBS"
28690 cat >conftest.
$ac_ext <<_ACEOF
28693 cat confdefs.h
>>conftest.
$ac_ext
28694 cat >>conftest.
$ac_ext <<_ACEOF
28695 /* end confdefs.h. */
28697 /* Override any GCC internal prototype to avoid an error.
28698 Use char because int might match the return type of a GCC
28699 builtin and then its argument prototype would still apply. */
28703 char rc_read_config ();
28707 return rc_read_config ();
28712 rm -f conftest.
$ac_objext conftest
$ac_exeext
28713 if { (ac_try
="$ac_link"
28714 case "(($ac_try" in
28715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28716 *) ac_try_echo=$ac_try;;
28718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28719 (eval "$ac_link") 2>conftest.er1
28721 grep -v '^ *+' conftest.er1 >conftest.err
28723 cat conftest.err >&5
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); } && {
28726 test -z "$ac_c_werror_flag" ||
28727 test ! -s conftest.err
28728 } && test -s conftest$ac_exeext &&
28729 $as_test_x conftest$ac_exeext; then
28730 ac_cv_lib_radiusclient_ng_rc_read_config=yes
28732 echo "$as_me: failed program was:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28735 ac_cv_lib_radiusclient_ng_rc_read_config=no
28738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28739 conftest$ac_exeext conftest.$ac_ext
28740 LIBS=$ac_check_lib_save_LIBS
28742 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
28743 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
28744 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
28745 AST_RADIUS_FOUND=yes
28747 AST_RADIUS_FOUND=no
28751 if test "${AST_RADIUS_FOUND}" = "yes"; then
28752 RADIUS_LIB="-lradiusclient-ng "
28753 RADIUS_HEADER_FOUND="1"
28754 if test "x${RADIUS_DIR}" != "x"; then
28755 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
28756 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
28757 saved_cppflags="${CPPFLAGS}"
28758 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
28759 if test "xradiusclient-ng.h" != "x" ; then
28760 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" |
$as_tr_sh`
28761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28762 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28763 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28765 echo $ECHO_N "(cached) $ECHO_C" >&6
28767 ac_res=`eval echo '${'$as_ac_Header'}'`
28768 { echo "$as_me:$LINENO: result: $ac_res" >&5
28769 echo "${ECHO_T}$ac_res" >&6; }
28771 # Is the header compilable?
28772 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
28773 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
28774 cat >conftest.$ac_ext <<_ACEOF
28777 cat confdefs.h >>conftest.$ac_ext
28778 cat >>conftest.$ac_ext <<_ACEOF
28779 /* end confdefs.h. */
28780 $ac_includes_default
28781 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28783 rm -f conftest.$ac_objext
28784 if { (ac_try="$ac_compile"
28785 case "(($ac_try" in
28786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28787 *) ac_try_echo
=$ac_try;;
28789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790 (eval "$ac_compile") 2>conftest.er1
28792 grep -v '^ *+' conftest.er1
>conftest.err
28794 cat conftest.err
>&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); } && {
28797 test -z "$ac_c_werror_flag" ||
28798 test ! -s conftest.err
28799 } && test -s conftest.
$ac_objext; then
28800 ac_header_compiler
=yes
28802 echo "$as_me: failed program was:" >&5
28803 sed 's/^/| /' conftest.
$ac_ext >&5
28805 ac_header_compiler
=no
28808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28810 echo "${ECHO_T}$ac_header_compiler" >&6; }
28812 # Is the header present?
28813 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
28814 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
28815 cat >conftest.
$ac_ext <<_ACEOF
28818 cat confdefs.h
>>conftest.
$ac_ext
28819 cat >>conftest.
$ac_ext <<_ACEOF
28820 /* end confdefs.h. */
28821 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28823 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28824 case "(($ac_try" in
28825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28826 *) ac_try_echo=$ac_try;;
28828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28831 grep -v '^ *+' conftest.er1 >conftest.err
28833 cat conftest.err >&5
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); } >/dev/null && {
28836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28837 test ! -s conftest.err
28839 ac_header_preproc=yes
28841 echo "$as_me: failed program was:" >&5
28842 sed 's/^/| /' conftest.$ac_ext >&5
28844 ac_header_preproc=no
28847 rm -f conftest.err conftest.$ac_ext
28848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28849 echo "${ECHO_T}$ac_header_preproc" >&6; }
28851 # So? What about this header?
28852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28854 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28855 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28856 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
28857 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28858 ac_header_preproc=yes
28861 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
28862 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
28863 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
28864 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28865 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
28866 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
28867 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28868 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28869 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28870 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28872 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28874 ## ------------------------------- ##
28875 ## Report this to www.asterisk.org ##
28876 ## ------------------------------- ##
28878 ) | sed "s/^/$as_me: WARNING: /" >&2
28881 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28882 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28884 echo $ECHO_N "(cached) $ECHO_C" >&6
28886 eval "$as_ac_Header=\$ac_header_preproc"
28888 ac_res=`eval echo '${'$as_ac_Header'}'`
28889 { echo "$as_me:$LINENO: result: $ac_res" >&5
28890 echo "${ECHO_T}$ac_res" >&6; }
28893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28894 RADIUS_HEADER_FOUND=1
28896 RADIUS_HEADER_FOUND=0
28901 CPPFLAGS="${saved_cppflags}"
28903 if test "xradiusclient-ng.h" != "x" ; then
28904 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28905 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28906 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28907 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28908 echo $ECHO_N "(cached) $ECHO_C" >&6
28910 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28911 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28913 # Is the header compilable?
28914 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
28915 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
28916 cat >conftest.$ac_ext <<_ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h. */
28922 $ac_includes_default
28923 #include <radiusclient-ng.h>
28925 rm -f conftest.$ac_objext
28926 if { (ac_try="$ac_compile"
28927 case "(($ac_try" in
28928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28929 *) ac_try_echo
=$ac_try;;
28931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28932 (eval "$ac_compile") 2>conftest.er1
28934 grep -v '^ *+' conftest.er1
>conftest.err
28936 cat conftest.err
>&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); } && {
28939 test -z "$ac_c_werror_flag" ||
28940 test ! -s conftest.err
28941 } && test -s conftest.
$ac_objext; then
28942 ac_header_compiler
=yes
28944 echo "$as_me: failed program was:" >&5
28945 sed 's/^/| /' conftest.
$ac_ext >&5
28947 ac_header_compiler
=no
28950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28952 echo "${ECHO_T}$ac_header_compiler" >&6; }
28954 # Is the header present?
28955 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
28956 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
28957 cat >conftest.
$ac_ext <<_ACEOF
28960 cat confdefs.h
>>conftest.
$ac_ext
28961 cat >>conftest.
$ac_ext <<_ACEOF
28962 /* end confdefs.h. */
28963 #include <radiusclient-ng.h>
28965 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28966 case "(($ac_try" in
28967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28968 *) ac_try_echo=$ac_try;;
28970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28973 grep -v '^ *+' conftest.er1 >conftest.err
28975 cat conftest.err >&5
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); } >/dev/null && {
28978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28979 test ! -s conftest.err
28981 ac_header_preproc=yes
28983 echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28986 ac_header_preproc=no
28989 rm -f conftest.err conftest.$ac_ext
28990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28991 echo "${ECHO_T}$ac_header_preproc" >&6; }
28993 # So? What about this header?
28994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28996 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28997 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28998 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
28999 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
29000 ac_header_preproc=yes
29003 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
29004 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
29005 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
29006 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
29008 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
29010 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
29012 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
29014 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
29016 ## ------------------------------- ##
29017 ## Report this to www.asterisk.org ##
29018 ## ------------------------------- ##
29020 ) | sed "s/^/$as_me: WARNING: /" >&2
29023 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
29024 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
29025 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29028 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
29030 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
29031 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
29034 if test $ac_cv_header_radiusclient_ng_h = yes; then
29035 RADIUS_HEADER_FOUND=1
29037 RADIUS_HEADER_FOUND=0
29043 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
29044 if test -n "${RADIUS_MANDATORY}" ;
29046 { echo "$as_me:$LINENO: ***" >&5
29047 echo "$as_me: ***" >&6;}
29048 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
29049 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
29050 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
29051 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
29052 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
29053 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
29062 cat >>confdefs.h <<_ACEOF
29063 #define HAVE_RADIUS 1
29067 elif test -n "${RADIUS_MANDATORY}";
29069 { echo "$as_me:$LINENO: ***" >&5
29070 echo "$as_me: ***" >&6;}
29071 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
29072 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
29073 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29074 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29075 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
29076 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
29083 if test "${USE_SPEEX}" != "no"; then
29085 if test "x${SPEEX_DIR}" != "x"; then
29086 if test -d ${SPEEX_DIR}/lib; then
29087 pbxlibdir="-L${SPEEX_DIR}/lib"
29089 pbxlibdir="-L${SPEEX_DIR}"
29092 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
29093 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
29094 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29097 ac_check_lib_save_LIBS=$LIBS
29098 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
29099 cat >conftest.$ac_ext <<_ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h. */
29106 /* Override any GCC internal prototype to avoid an error.
29107 Use char because int might match the return type of a GCC
29108 builtin and then its argument prototype would still apply. */
29112 char speex_encode ();
29116 return speex_encode ();
29121 rm -f conftest.$ac_objext conftest$ac_exeext
29122 if { (ac_try="$ac_link"
29123 case "(($ac_try" in
29124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29125 *) ac_try_echo
=$ac_try;;
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_link") 2>conftest.er1
29130 grep -v '^ *+' conftest.er1
>conftest.err
29132 cat conftest.err
>&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } && {
29135 test -z "$ac_c_werror_flag" ||
29136 test ! -s conftest.err
29137 } && test -s conftest
$ac_exeext &&
29138 $as_test_x conftest
$ac_exeext; then
29139 ac_cv_lib_speex_speex_encode
=yes
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.
$ac_ext >&5
29144 ac_cv_lib_speex_speex_encode
=no
29147 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29148 conftest
$ac_exeext conftest.
$ac_ext
29149 LIBS
=$ac_check_lib_save_LIBS
29151 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
29152 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
29153 if test $ac_cv_lib_speex_speex_encode = yes; then
29154 AST_SPEEX_FOUND
=yes
29160 if test "${AST_SPEEX_FOUND}" = "yes"; then
29161 SPEEX_LIB
="-lspeex -lm"
29162 SPEEX_HEADER_FOUND
="1"
29163 if test "x${SPEEX_DIR}" != "x"; then
29164 SPEEX_LIB
="${pbxlibdir} ${SPEEX_LIB}"
29165 SPEEX_INCLUDE
="-I${SPEEX_DIR}/include"
29166 saved_cppflags
="${CPPFLAGS}"
29167 CPPFLAGS
="${CPPFLAGS} -I${SPEEX_DIR}/include"
29168 if test "xspeex/speex.h" != "x" ; then
29169 as_ac_Header
=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
29170 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29171 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
29172 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29173 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29174 echo $ECHO_N "(cached) $ECHO_C" >&6
29176 ac_res
=`eval echo '${'$as_ac_Header'}'`
29177 { echo "$as_me:$LINENO: result: $ac_res" >&5
29178 echo "${ECHO_T}$ac_res" >&6; }
29180 # Is the header compilable?
29181 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
29182 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
29183 cat >conftest.
$ac_ext <<_ACEOF
29186 cat confdefs.h
>>conftest.
$ac_ext
29187 cat >>conftest.
$ac_ext <<_ACEOF
29188 /* end confdefs.h. */
29189 $ac_includes_default
29190 #include <${SPEEX_DIR}/include/speex/speex.h>
29192 rm -f conftest.
$ac_objext
29193 if { (ac_try
="$ac_compile"
29194 case "(($ac_try" in
29195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29196 *) ac_try_echo=$ac_try;;
29198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29199 (eval "$ac_compile") 2>conftest.er1
29201 grep -v '^ *+' conftest.er1 >conftest.err
29203 cat conftest.err >&5
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); } && {
29206 test -z "$ac_c_werror_flag" ||
29207 test ! -s conftest.err
29208 } && test -s conftest.$ac_objext; then
29209 ac_header_compiler=yes
29211 echo "$as_me: failed program was:" >&5
29212 sed 's/^/| /' conftest.$ac_ext >&5
29214 ac_header_compiler=no
29217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29219 echo "${ECHO_T}$ac_header_compiler" >&6; }
29221 # Is the header present?
29222 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
29223 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29224 cat >conftest.$ac_ext <<_ACEOF
29227 cat confdefs.h >>conftest.$ac_ext
29228 cat >>conftest.$ac_ext <<_ACEOF
29229 /* end confdefs.h. */
29230 #include <${SPEEX_DIR}/include/speex/speex.h>
29232 if { (ac_try="$ac_cpp conftest.$ac_ext"
29233 case "(($ac_try" in
29234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29235 *) ac_try_echo
=$ac_try;;
29237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29240 grep -v '^ *+' conftest.er1
>conftest.err
29242 cat conftest.err
>&5
29243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244 (exit $ac_status); } >/dev
/null
&& {
29245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29246 test ! -s conftest.err
29248 ac_header_preproc
=yes
29250 echo "$as_me: failed program was:" >&5
29251 sed 's/^/| /' conftest.
$ac_ext >&5
29253 ac_header_preproc
=no
29256 rm -f conftest.err conftest.
$ac_ext
29257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29258 echo "${ECHO_T}$ac_header_preproc" >&6; }
29260 # So? What about this header?
29261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29263 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29264 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29265 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29266 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29267 ac_header_preproc
=yes
29270 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29271 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29272 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29273 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29274 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29275 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29276 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29277 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29278 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29279 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29280 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29281 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29283 ## ------------------------------- ##
29284 ## Report this to www.asterisk.org ##
29285 ## ------------------------------- ##
29287 ) |
sed "s/^/$as_me: WARNING: /" >&2
29290 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
29291 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29292 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29293 echo $ECHO_N "(cached) $ECHO_C" >&6
29295 eval "$as_ac_Header=\$ac_header_preproc"
29297 ac_res
=`eval echo '${'$as_ac_Header'}'`
29298 { echo "$as_me:$LINENO: result: $ac_res" >&5
29299 echo "${ECHO_T}$ac_res" >&6; }
29302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29303 SPEEX_HEADER_FOUND
=1
29305 SPEEX_HEADER_FOUND
=0
29310 CPPFLAGS
="${saved_cppflags}"
29312 if test "xspeex/speex.h" != "x" ; then
29313 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29314 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29315 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29316 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29317 echo $ECHO_N "(cached) $ECHO_C" >&6
29319 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29320 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29322 # Is the header compilable?
29323 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29324 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29325 cat >conftest.
$ac_ext <<_ACEOF
29328 cat confdefs.h
>>conftest.
$ac_ext
29329 cat >>conftest.
$ac_ext <<_ACEOF
29330 /* end confdefs.h. */
29331 $ac_includes_default
29332 #include <speex/speex.h>
29334 rm -f conftest.
$ac_objext
29335 if { (ac_try
="$ac_compile"
29336 case "(($ac_try" in
29337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29338 *) ac_try_echo=$ac_try;;
29340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29341 (eval "$ac_compile") 2>conftest.er1
29343 grep -v '^ *+' conftest.er1 >conftest.err
29345 cat conftest.err >&5
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); } && {
29348 test -z "$ac_c_werror_flag" ||
29349 test ! -s conftest.err
29350 } && test -s conftest.$ac_objext; then
29351 ac_header_compiler=yes
29353 echo "$as_me: failed program was:" >&5
29354 sed 's/^/| /' conftest.$ac_ext >&5
29356 ac_header_compiler=no
29359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29361 echo "${ECHO_T}$ac_header_compiler" >&6; }
29363 # Is the header present?
29364 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29365 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29366 cat >conftest.$ac_ext <<_ACEOF
29369 cat confdefs.h >>conftest.$ac_ext
29370 cat >>conftest.$ac_ext <<_ACEOF
29371 /* end confdefs.h. */
29372 #include <speex/speex.h>
29374 if { (ac_try="$ac_cpp conftest.$ac_ext"
29375 case "(($ac_try" in
29376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29377 *) ac_try_echo
=$ac_try;;
29379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29382 grep -v '^ *+' conftest.er1
>conftest.err
29384 cat conftest.err
>&5
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); } >/dev
/null
&& {
29387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29388 test ! -s conftest.err
29390 ac_header_preproc
=yes
29392 echo "$as_me: failed program was:" >&5
29393 sed 's/^/| /' conftest.
$ac_ext >&5
29395 ac_header_preproc
=no
29398 rm -f conftest.err conftest.
$ac_ext
29399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29400 echo "${ECHO_T}$ac_header_preproc" >&6; }
29402 # So? What about this header?
29403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29405 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29406 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29407 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29408 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29409 ac_header_preproc
=yes
29412 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29413 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29414 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29415 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29416 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29417 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29418 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29419 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29420 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29421 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29422 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29423 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29425 ## ------------------------------- ##
29426 ## Report this to www.asterisk.org ##
29427 ## ------------------------------- ##
29429 ) |
sed "s/^/$as_me: WARNING: /" >&2
29432 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29433 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29434 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29435 echo $ECHO_N "(cached) $ECHO_C" >&6
29437 ac_cv_header_speex_speex_h
=$ac_header_preproc
29439 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29440 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29443 if test $ac_cv_header_speex_speex_h = yes; then
29444 SPEEX_HEADER_FOUND
=1
29446 SPEEX_HEADER_FOUND
=0
29452 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
29453 if test -n "${SPEEX_MANDATORY}" ;
29455 { echo "$as_me:$LINENO: ***" >&5
29456 echo "$as_me: ***" >&6;}
29457 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
29458 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
29459 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
29460 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
29461 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
29462 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
29471 cat >>confdefs.h
<<_ACEOF
29472 #define HAVE_SPEEX 1
29476 elif test -n "${SPEEX_MANDATORY}";
29478 { echo "$as_me:$LINENO: ***" >&5
29479 echo "$as_me: ***" >&6;}
29480 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
29481 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
29482 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29483 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29484 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
29485 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
29491 # See if the main speex library contains the preprocess functions
29493 if test "${USE_SPEEX_PREPROCESS}" != "no"; then
29495 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
29496 if test -d ${SPEEX_PREPROCESS_DIR}/lib
; then
29497 pbxlibdir
="-L${SPEEX_PREPROCESS_DIR}/lib"
29499 pbxlibdir
="-L${SPEEX_PREPROCESS_DIR}"
29502 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeex" >&5
29503 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeex... $ECHO_C" >&6; }
29504 if test "${ac_cv_lib_speex_speex_preprocess_ctl+set}" = set; then
29505 echo $ECHO_N "(cached) $ECHO_C" >&6
29507 ac_check_lib_save_LIBS
=$LIBS
29508 LIBS
="-lspeex ${pbxlibdir} -lm $LIBS"
29509 cat >conftest.
$ac_ext <<_ACEOF
29512 cat confdefs.h
>>conftest.
$ac_ext
29513 cat >>conftest.
$ac_ext <<_ACEOF
29514 /* end confdefs.h. */
29516 /* Override any GCC internal prototype to avoid an error.
29517 Use char because int might match the return type of a GCC
29518 builtin and then its argument prototype would still apply. */
29522 char speex_preprocess_ctl ();
29526 return speex_preprocess_ctl ();
29531 rm -f conftest.
$ac_objext conftest
$ac_exeext
29532 if { (ac_try
="$ac_link"
29533 case "(($ac_try" in
29534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29535 *) ac_try_echo=$ac_try;;
29537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29538 (eval "$ac_link") 2>conftest.er1
29540 grep -v '^ *+' conftest.er1 >conftest.err
29542 cat conftest.err >&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); } && {
29545 test -z "$ac_c_werror_flag" ||
29546 test ! -s conftest.err
29547 } && test -s conftest$ac_exeext &&
29548 $as_test_x conftest$ac_exeext; then
29549 ac_cv_lib_speex_speex_preprocess_ctl=yes
29551 echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29554 ac_cv_lib_speex_speex_preprocess_ctl=no
29557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29558 conftest$ac_exeext conftest.$ac_ext
29559 LIBS=$ac_check_lib_save_LIBS
29561 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_preprocess_ctl" >&5
29562 echo "${ECHO_T}$ac_cv_lib_speex_speex_preprocess_ctl" >&6; }
29563 if test $ac_cv_lib_speex_speex_preprocess_ctl = yes; then
29564 AST_SPEEX_PREPROCESS_FOUND=yes
29566 AST_SPEEX_PREPROCESS_FOUND=no
29570 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
29571 SPEEX_PREPROCESS_LIB="-lspeex -lm"
29572 SPEEX_PREPROCESS_HEADER_FOUND="1"
29573 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
29574 SPEEX_PREPROCESS_LIB="${pbxlibdir} ${SPEEX_PREPROCESS_LIB}"
29575 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
29576 saved_cppflags="${CPPFLAGS}"
29577 CPPFLAGS="${CPPFLAGS} -I${SPEEX_PREPROCESS_DIR}/include"
29578 if test "xspeex/speex.h" != "x" ; then
29579 as_ac_Header=`echo "ac_cv_header_${SPEEX_PREPROCESS_DIR}/include/speex/speex.h" |
$as_tr_sh`
29580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29581 { echo "$as_me:$LINENO: checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h" >&5
29582 echo $ECHO_N "checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29584 echo $ECHO_N "(cached) $ECHO_C" >&6
29586 ac_res=`eval echo '${'$as_ac_Header'}'`
29587 { echo "$as_me:$LINENO: result: $ac_res" >&5
29588 echo "${ECHO_T}$ac_res" >&6; }
29590 # Is the header compilable?
29591 { echo "$as_me:$LINENO: checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h usability" >&5
29592 echo $ECHO_N "checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
29593 cat >conftest.$ac_ext <<_ACEOF
29596 cat confdefs.h >>conftest.$ac_ext
29597 cat >>conftest.$ac_ext <<_ACEOF
29598 /* end confdefs.h. */
29599 $ac_includes_default
29600 #include <${SPEEX_PREPROCESS_DIR}/include/speex/speex.h>
29602 rm -f conftest.$ac_objext
29603 if { (ac_try="$ac_compile"
29604 case "(($ac_try" in
29605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29606 *) ac_try_echo
=$ac_try;;
29608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29609 (eval "$ac_compile") 2>conftest.er1
29611 grep -v '^ *+' conftest.er1
>conftest.err
29613 cat conftest.err
>&5
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); } && {
29616 test -z "$ac_c_werror_flag" ||
29617 test ! -s conftest.err
29618 } && test -s conftest.
$ac_objext; then
29619 ac_header_compiler
=yes
29621 echo "$as_me: failed program was:" >&5
29622 sed 's/^/| /' conftest.
$ac_ext >&5
29624 ac_header_compiler
=no
29627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29629 echo "${ECHO_T}$ac_header_compiler" >&6; }
29631 # Is the header present?
29632 { echo "$as_me:$LINENO: checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h presence" >&5
29633 echo $ECHO_N "checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29634 cat >conftest.
$ac_ext <<_ACEOF
29637 cat confdefs.h
>>conftest.
$ac_ext
29638 cat >>conftest.
$ac_ext <<_ACEOF
29639 /* end confdefs.h. */
29640 #include <${SPEEX_PREPROCESS_DIR}/include/speex/speex.h>
29642 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29643 case "(($ac_try" in
29644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29645 *) ac_try_echo=$ac_try;;
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29650 grep -v '^ *+' conftest.er1 >conftest.err
29652 cat conftest.err >&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); } >/dev/null && {
29655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29656 test ! -s conftest.err
29658 ac_header_preproc=yes
29660 echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29663 ac_header_preproc=no
29666 rm -f conftest.err conftest.$ac_ext
29667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29668 echo "${ECHO_T}$ac_header_preproc" >&6; }
29670 # So? What about this header?
29671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29673 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29674 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29675 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29676 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29677 ac_header_preproc=yes
29680 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29681 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29682 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29683 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29684 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29685 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29686 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29687 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29688 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29689 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29690 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29691 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29693 ## ------------------------------- ##
29694 ## Report this to www.asterisk.org ##
29695 ## ------------------------------- ##
29697 ) | sed "s/^/$as_me: WARNING: /" >&2
29700 { echo "$as_me:$LINENO: checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h" >&5
29701 echo $ECHO_N "checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29705 eval "$as_ac_Header=\$ac_header_preproc"
29707 ac_res=`eval echo '${'$as_ac_Header'}'`
29708 { echo "$as_me:$LINENO: result: $ac_res" >&5
29709 echo "${ECHO_T}$ac_res" >&6; }
29712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29713 SPEEX_PREPROCESS_HEADER_FOUND=1
29715 SPEEX_PREPROCESS_HEADER_FOUND=0
29720 CPPFLAGS="${saved_cppflags}"
29722 if test "xspeex/speex.h" != "x" ; then
29723 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29724 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29725 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29726 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29729 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29730 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29732 # Is the header compilable?
29733 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29734 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29735 cat >conftest.$ac_ext <<_ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h. */
29741 $ac_includes_default
29742 #include <speex/speex.h>
29744 rm -f conftest.$ac_objext
29745 if { (ac_try="$ac_compile"
29746 case "(($ac_try" in
29747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29748 *) ac_try_echo
=$ac_try;;
29750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29751 (eval "$ac_compile") 2>conftest.er1
29753 grep -v '^ *+' conftest.er1
>conftest.err
29755 cat conftest.err
>&5
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); } && {
29758 test -z "$ac_c_werror_flag" ||
29759 test ! -s conftest.err
29760 } && test -s conftest.
$ac_objext; then
29761 ac_header_compiler
=yes
29763 echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.
$ac_ext >&5
29766 ac_header_compiler
=no
29769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29771 echo "${ECHO_T}$ac_header_compiler" >&6; }
29773 # Is the header present?
29774 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29775 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29776 cat >conftest.
$ac_ext <<_ACEOF
29779 cat confdefs.h
>>conftest.
$ac_ext
29780 cat >>conftest.
$ac_ext <<_ACEOF
29781 /* end confdefs.h. */
29782 #include <speex/speex.h>
29784 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29785 case "(($ac_try" in
29786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29787 *) ac_try_echo=$ac_try;;
29789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29792 grep -v '^ *+' conftest.er1 >conftest.err
29794 cat conftest.err >&5
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); } >/dev/null && {
29797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29798 test ! -s conftest.err
29800 ac_header_preproc=yes
29802 echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29805 ac_header_preproc=no
29808 rm -f conftest.err conftest.$ac_ext
29809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29810 echo "${ECHO_T}$ac_header_preproc" >&6; }
29812 # So? What about this header?
29813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29815 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29816 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29817 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29818 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29819 ac_header_preproc=yes
29822 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29823 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29824 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29825 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29826 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29827 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29828 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29829 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29830 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29831 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29832 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29833 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29835 ## ------------------------------- ##
29836 ## Report this to www.asterisk.org ##
29837 ## ------------------------------- ##
29839 ) | sed "s/^/$as_me: WARNING: /" >&2
29842 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29843 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29844 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29845 echo $ECHO_N "(cached) $ECHO_C" >&6
29847 ac_cv_header_speex_speex_h=$ac_header_preproc
29849 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29850 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29853 if test $ac_cv_header_speex_speex_h = yes; then
29854 SPEEX_PREPROCESS_HEADER_FOUND=1
29856 SPEEX_PREPROCESS_HEADER_FOUND=0
29862 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
29863 if test -n "${SPEEX_PREPROCESS_MANDATORY}" ;
29865 { echo "$as_me:$LINENO: ***" >&5
29866 echo "$as_me: ***" >&6;}
29867 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
29868 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
29869 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&5
29870 echo "$as_me: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&6;}
29871 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
29872 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
29875 SPEEX_PREPROCESS_LIB=""
29876 SPEEX_PREPROCESS_INCLUDE=""
29877 PBX_SPEEX_PREPROCESS=0
29879 PBX_SPEEX_PREPROCESS=1
29881 cat >>confdefs.h <<_ACEOF
29882 #define HAVE_SPEEX_PREPROCESS 1
29886 elif test -n "${SPEEX_PREPROCESS_MANDATORY}";
29888 { echo "$as_me:$LINENO: ***" >&5
29889 echo "$as_me: ***" >&6;}
29890 { echo "$as_me:$LINENO: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&5
29891 echo "$as_me: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&6;}
29892 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29893 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29894 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
29895 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
29900 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
29901 PBX_SPEEX_PREPROCESS=1
29905 if test "${USE_SPEEXDSP}" != "no"; then
29907 if test "x${SPEEXDSP_DIR}" != "x"; then
29908 if test -d ${SPEEXDSP_DIR}/lib; then
29909 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
29911 pbxlibdir="-L${SPEEXDSP_DIR}"
29914 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
29915 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
29916 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
29917 echo $ECHO_N "(cached) $ECHO_C" >&6
29919 ac_check_lib_save_LIBS=$LIBS
29920 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
29921 cat >conftest.$ac_ext <<_ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h. */
29928 /* Override any GCC internal prototype to avoid an error.
29929 Use char because int might match the return type of a GCC
29930 builtin and then its argument prototype would still apply. */
29934 char speex_preprocess_ctl ();
29938 return speex_preprocess_ctl ();
29943 rm -f conftest.$ac_objext conftest$ac_exeext
29944 if { (ac_try="$ac_link"
29945 case "(($ac_try" in
29946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29947 *) ac_try_echo
=$ac_try;;
29949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950 (eval "$ac_link") 2>conftest.er1
29952 grep -v '^ *+' conftest.er1
>conftest.err
29954 cat conftest.err
>&5
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); } && {
29957 test -z "$ac_c_werror_flag" ||
29958 test ! -s conftest.err
29959 } && test -s conftest
$ac_exeext &&
29960 $as_test_x conftest
$ac_exeext; then
29961 ac_cv_lib_speexdsp_speex_preprocess_ctl
=yes
29963 echo "$as_me: failed program was:" >&5
29964 sed 's/^/| /' conftest.
$ac_ext >&5
29966 ac_cv_lib_speexdsp_speex_preprocess_ctl
=no
29969 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29970 conftest
$ac_exeext conftest.
$ac_ext
29971 LIBS
=$ac_check_lib_save_LIBS
29973 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
29974 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
29975 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
29976 AST_SPEEXDSP_FOUND
=yes
29978 AST_SPEEXDSP_FOUND
=no
29982 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
29983 SPEEXDSP_LIB
="-lspeexdsp -lm"
29984 SPEEXDSP_HEADER_FOUND
="1"
29985 if test "x${SPEEXDSP_DIR}" != "x"; then
29986 SPEEXDSP_LIB
="${pbxlibdir} ${SPEEXDSP_LIB}"
29987 SPEEXDSP_INCLUDE
="-I${SPEEXDSP_DIR}/include"
29988 saved_cppflags
="${CPPFLAGS}"
29989 CPPFLAGS
="${CPPFLAGS} -I${SPEEXDSP_DIR}/include"
29990 if test "xspeex/speex.h" != "x" ; then
29991 as_ac_Header
=`echo "ac_cv_header_${SPEEXDSP_DIR}/include/speex/speex.h" | $as_tr_sh`
29992 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29993 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
29994 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29995 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29996 echo $ECHO_N "(cached) $ECHO_C" >&6
29998 ac_res
=`eval echo '${'$as_ac_Header'}'`
29999 { echo "$as_me:$LINENO: result: $ac_res" >&5
30000 echo "${ECHO_T}$ac_res" >&6; }
30002 # Is the header compilable?
30003 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h usability" >&5
30004 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
30005 cat >conftest.
$ac_ext <<_ACEOF
30008 cat confdefs.h
>>conftest.
$ac_ext
30009 cat >>conftest.
$ac_ext <<_ACEOF
30010 /* end confdefs.h. */
30011 $ac_includes_default
30012 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
30014 rm -f conftest.
$ac_objext
30015 if { (ac_try
="$ac_compile"
30016 case "(($ac_try" in
30017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30018 *) ac_try_echo=$ac_try;;
30020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30021 (eval "$ac_compile") 2>conftest.er1
30023 grep -v '^ *+' conftest.er1 >conftest.err
30025 cat conftest.err >&5
30026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); } && {
30028 test -z "$ac_c_werror_flag" ||
30029 test ! -s conftest.err
30030 } && test -s conftest.$ac_objext; then
30031 ac_header_compiler=yes
30033 echo "$as_me: failed program was:" >&5
30034 sed 's/^/| /' conftest.$ac_ext >&5
30036 ac_header_compiler=no
30039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30041 echo "${ECHO_T}$ac_header_compiler" >&6; }
30043 # Is the header present?
30044 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h presence" >&5
30045 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
30046 cat >conftest.$ac_ext <<_ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h. */
30052 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
30054 if { (ac_try="$ac_cpp conftest.$ac_ext"
30055 case "(($ac_try" in
30056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30057 *) ac_try_echo
=$ac_try;;
30059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30062 grep -v '^ *+' conftest.er1
>conftest.err
30064 cat conftest.err
>&5
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); } >/dev
/null
&& {
30067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30068 test ! -s conftest.err
30070 ac_header_preproc
=yes
30072 echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.
$ac_ext >&5
30075 ac_header_preproc
=no
30078 rm -f conftest.err conftest.
$ac_ext
30079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30080 echo "${ECHO_T}$ac_header_preproc" >&6; }
30082 # So? What about this header?
30083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30085 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
30086 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30087 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
30088 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
30089 ac_header_preproc
=yes
30092 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
30093 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
30094 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
30095 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
30096 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
30097 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
30098 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
30099 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
30100 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
30101 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
30102 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
30103 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
30105 ## ------------------------------- ##
30106 ## Report this to www.asterisk.org ##
30107 ## ------------------------------- ##
30109 ) |
sed "s/^/$as_me: WARNING: /" >&2
30112 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
30113 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
30114 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30115 echo $ECHO_N "(cached) $ECHO_C" >&6
30117 eval "$as_ac_Header=\$ac_header_preproc"
30119 ac_res
=`eval echo '${'$as_ac_Header'}'`
30120 { echo "$as_me:$LINENO: result: $ac_res" >&5
30121 echo "${ECHO_T}$ac_res" >&6; }
30124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30125 SPEEXDSP_HEADER_FOUND
=1
30127 SPEEXDSP_HEADER_FOUND
=0
30132 CPPFLAGS
="${saved_cppflags}"
30134 if test "xspeex/speex.h" != "x" ; then
30135 if test "${ac_cv_header_speex_speex_h+set}" = set; then
30136 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
30137 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
30138 if test "${ac_cv_header_speex_speex_h+set}" = set; then
30139 echo $ECHO_N "(cached) $ECHO_C" >&6
30141 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
30142 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
30144 # Is the header compilable?
30145 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
30146 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
30147 cat >conftest.
$ac_ext <<_ACEOF
30150 cat confdefs.h
>>conftest.
$ac_ext
30151 cat >>conftest.
$ac_ext <<_ACEOF
30152 /* end confdefs.h. */
30153 $ac_includes_default
30154 #include <speex/speex.h>
30156 rm -f conftest.
$ac_objext
30157 if { (ac_try
="$ac_compile"
30158 case "(($ac_try" in
30159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30160 *) ac_try_echo=$ac_try;;
30162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30163 (eval "$ac_compile") 2>conftest.er1
30165 grep -v '^ *+' conftest.er1 >conftest.err
30167 cat conftest.err >&5
30168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169 (exit $ac_status); } && {
30170 test -z "$ac_c_werror_flag" ||
30171 test ! -s conftest.err
30172 } && test -s conftest.$ac_objext; then
30173 ac_header_compiler=yes
30175 echo "$as_me: failed program was:" >&5
30176 sed 's/^/| /' conftest.$ac_ext >&5
30178 ac_header_compiler=no
30181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30183 echo "${ECHO_T}$ac_header_compiler" >&6; }
30185 # Is the header present?
30186 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
30187 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
30188 cat >conftest.$ac_ext <<_ACEOF
30191 cat confdefs.h >>conftest.$ac_ext
30192 cat >>conftest.$ac_ext <<_ACEOF
30193 /* end confdefs.h. */
30194 #include <speex/speex.h>
30196 if { (ac_try="$ac_cpp conftest.$ac_ext"
30197 case "(($ac_try" in
30198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30199 *) ac_try_echo
=$ac_try;;
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30204 grep -v '^ *+' conftest.er1
>conftest.err
30206 cat conftest.err
>&5
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); } >/dev
/null
&& {
30209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30210 test ! -s conftest.err
30212 ac_header_preproc
=yes
30214 echo "$as_me: failed program was:" >&5
30215 sed 's/^/| /' conftest.
$ac_ext >&5
30217 ac_header_preproc
=no
30220 rm -f conftest.err conftest.
$ac_ext
30221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30222 echo "${ECHO_T}$ac_header_preproc" >&6; }
30224 # So? What about this header?
30225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30227 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
30228 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30229 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
30230 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
30231 ac_header_preproc
=yes
30234 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
30235 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
30236 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
30237 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
30238 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
30239 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
30240 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
30241 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
30242 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
30243 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
30244 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
30245 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
30247 ## ------------------------------- ##
30248 ## Report this to www.asterisk.org ##
30249 ## ------------------------------- ##
30251 ) |
sed "s/^/$as_me: WARNING: /" >&2
30254 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
30255 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
30256 if test "${ac_cv_header_speex_speex_h+set}" = set; then
30257 echo $ECHO_N "(cached) $ECHO_C" >&6
30259 ac_cv_header_speex_speex_h
=$ac_header_preproc
30261 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
30262 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
30265 if test $ac_cv_header_speex_speex_h = yes; then
30266 SPEEXDSP_HEADER_FOUND
=1
30268 SPEEXDSP_HEADER_FOUND
=0
30274 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
30275 if test -n "${SPEEXDSP_MANDATORY}" ;
30277 { echo "$as_me:$LINENO: ***" >&5
30278 echo "$as_me: ***" >&6;}
30279 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
30280 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
30281 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
30282 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
30283 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
30284 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
30288 SPEEXDSP_INCLUDE
=""
30293 cat >>confdefs.h
<<_ACEOF
30294 #define HAVE_SPEEXDSP 1
30298 elif test -n "${SPEEXDSP_MANDATORY}";
30300 { echo "$as_me:$LINENO: ***" >&5
30301 echo "$as_me: ***" >&6;}
30302 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
30303 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
30304 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30305 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30306 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
30307 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
30312 if test "${PBX_SPEEXDSP}" = 1; then
30313 PBX_SPEEX_PREPROCESS
=1
30319 if test "${USE_SQLITE}" != "no"; then
30321 if test "x${SQLITE_DIR}" != "x"; then
30322 if test -d ${SQLITE_DIR}/lib
; then
30323 pbxlibdir
="-L${SQLITE_DIR}/lib"
30325 pbxlibdir
="-L${SQLITE_DIR}"
30328 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
30329 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
30330 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
30331 echo $ECHO_N "(cached) $ECHO_C" >&6
30333 ac_check_lib_save_LIBS
=$LIBS
30334 LIBS
="-lsqlite ${pbxlibdir} $LIBS"
30335 cat >conftest.
$ac_ext <<_ACEOF
30338 cat confdefs.h
>>conftest.
$ac_ext
30339 cat >>conftest.
$ac_ext <<_ACEOF
30340 /* end confdefs.h. */
30342 /* Override any GCC internal prototype to avoid an error.
30343 Use char because int might match the return type of a GCC
30344 builtin and then its argument prototype would still apply. */
30348 char sqlite_exec ();
30352 return sqlite_exec ();
30357 rm -f conftest.
$ac_objext conftest
$ac_exeext
30358 if { (ac_try
="$ac_link"
30359 case "(($ac_try" in
30360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_link") 2>conftest.er1
30366 grep -v '^ *+' conftest.er1 >conftest.err
30368 cat conftest.err >&5
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } && {
30371 test -z "$ac_c_werror_flag" ||
30372 test ! -s conftest.err
30373 } && test -s conftest$ac_exeext &&
30374 $as_test_x conftest$ac_exeext; then
30375 ac_cv_lib_sqlite_sqlite_exec=yes
30377 echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30380 ac_cv_lib_sqlite_sqlite_exec=no
30383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30384 conftest$ac_exeext conftest.$ac_ext
30385 LIBS=$ac_check_lib_save_LIBS
30387 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
30388 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
30389 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
30390 AST_SQLITE_FOUND=yes
30392 AST_SQLITE_FOUND=no
30396 if test "${AST_SQLITE_FOUND}" = "yes"; then
30397 SQLITE_LIB="-lsqlite "
30398 SQLITE_HEADER_FOUND="1"
30399 if test "x${SQLITE_DIR}" != "x"; then
30400 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
30401 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
30402 saved_cppflags="${CPPFLAGS}"
30403 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
30404 if test "xsqlite.h" != "x" ; then
30405 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" |
$as_tr_sh`
30406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30407 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
30408 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
30409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30410 echo $ECHO_N "(cached) $ECHO_C" >&6
30412 ac_res=`eval echo '${'$as_ac_Header'}'`
30413 { echo "$as_me:$LINENO: result: $ac_res" >&5
30414 echo "${ECHO_T}$ac_res" >&6; }
30416 # Is the header compilable?
30417 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
30418 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
30419 cat >conftest.$ac_ext <<_ACEOF
30422 cat confdefs.h >>conftest.$ac_ext
30423 cat >>conftest.$ac_ext <<_ACEOF
30424 /* end confdefs.h. */
30425 $ac_includes_default
30426 #include <${SQLITE_DIR}/include/sqlite.h>
30428 rm -f conftest.$ac_objext
30429 if { (ac_try="$ac_compile"
30430 case "(($ac_try" in
30431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30432 *) ac_try_echo
=$ac_try;;
30434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30435 (eval "$ac_compile") 2>conftest.er1
30437 grep -v '^ *+' conftest.er1
>conftest.err
30439 cat conftest.err
>&5
30440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441 (exit $ac_status); } && {
30442 test -z "$ac_c_werror_flag" ||
30443 test ! -s conftest.err
30444 } && test -s conftest.
$ac_objext; then
30445 ac_header_compiler
=yes
30447 echo "$as_me: failed program was:" >&5
30448 sed 's/^/| /' conftest.
$ac_ext >&5
30450 ac_header_compiler
=no
30453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30455 echo "${ECHO_T}$ac_header_compiler" >&6; }
30457 # Is the header present?
30458 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
30459 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
30460 cat >conftest.
$ac_ext <<_ACEOF
30463 cat confdefs.h
>>conftest.
$ac_ext
30464 cat >>conftest.
$ac_ext <<_ACEOF
30465 /* end confdefs.h. */
30466 #include <${SQLITE_DIR}/include/sqlite.h>
30468 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30469 case "(($ac_try" in
30470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30471 *) ac_try_echo=$ac_try;;
30473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30476 grep -v '^ *+' conftest.er1 >conftest.err
30478 cat conftest.err >&5
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); } >/dev/null && {
30481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30482 test ! -s conftest.err
30484 ac_header_preproc=yes
30486 echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30489 ac_header_preproc=no
30492 rm -f conftest.err conftest.$ac_ext
30493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30494 echo "${ECHO_T}$ac_header_preproc" >&6; }
30496 # So? What about this header?
30497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30499 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
30500 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30501 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
30502 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
30503 ac_header_preproc=yes
30506 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
30507 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
30508 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
30509 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
30510 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
30511 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
30512 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
30513 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
30514 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
30515 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
30516 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
30517 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
30519 ## ------------------------------- ##
30520 ## Report this to www.asterisk.org ##
30521 ## ------------------------------- ##
30523 ) | sed "s/^/$as_me: WARNING: /" >&2
30526 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
30527 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
30528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30529 echo $ECHO_N "(cached) $ECHO_C" >&6
30531 eval "$as_ac_Header=\$ac_header_preproc"
30533 ac_res=`eval echo '${'$as_ac_Header'}'`
30534 { echo "$as_me:$LINENO: result: $ac_res" >&5
30535 echo "${ECHO_T}$ac_res" >&6; }
30538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30539 SQLITE_HEADER_FOUND=1
30541 SQLITE_HEADER_FOUND=0
30546 CPPFLAGS="${saved_cppflags}"
30548 if test "xsqlite.h" != "x" ; then
30549 if test "${ac_cv_header_sqlite_h+set}" = set; then
30550 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
30551 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
30552 if test "${ac_cv_header_sqlite_h+set}" = set; then
30553 echo $ECHO_N "(cached) $ECHO_C" >&6
30555 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
30556 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
30558 # Is the header compilable?
30559 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
30560 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
30561 cat >conftest.$ac_ext <<_ACEOF
30564 cat confdefs.h >>conftest.$ac_ext
30565 cat >>conftest.$ac_ext <<_ACEOF
30566 /* end confdefs.h. */
30567 $ac_includes_default
30568 #include <sqlite.h>
30570 rm -f conftest.$ac_objext
30571 if { (ac_try="$ac_compile"
30572 case "(($ac_try" in
30573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30574 *) ac_try_echo
=$ac_try;;
30576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577 (eval "$ac_compile") 2>conftest.er1
30579 grep -v '^ *+' conftest.er1
>conftest.err
30581 cat conftest.err
>&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); } && {
30584 test -z "$ac_c_werror_flag" ||
30585 test ! -s conftest.err
30586 } && test -s conftest.
$ac_objext; then
30587 ac_header_compiler
=yes
30589 echo "$as_me: failed program was:" >&5
30590 sed 's/^/| /' conftest.
$ac_ext >&5
30592 ac_header_compiler
=no
30595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30597 echo "${ECHO_T}$ac_header_compiler" >&6; }
30599 # Is the header present?
30600 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
30601 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
30602 cat >conftest.
$ac_ext <<_ACEOF
30605 cat confdefs.h
>>conftest.
$ac_ext
30606 cat >>conftest.
$ac_ext <<_ACEOF
30607 /* end confdefs.h. */
30608 #include <sqlite.h>
30610 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30611 case "(($ac_try" in
30612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30613 *) ac_try_echo=$ac_try;;
30615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30618 grep -v '^ *+' conftest.er1 >conftest.err
30620 cat conftest.err >&5
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); } >/dev/null && {
30623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30624 test ! -s conftest.err
30626 ac_header_preproc=yes
30628 echo "$as_me: failed program was:" >&5
30629 sed 's/^/| /' conftest.$ac_ext >&5
30631 ac_header_preproc=no
30634 rm -f conftest.err conftest.$ac_ext
30635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30636 echo "${ECHO_T}$ac_header_preproc" >&6; }
30638 # So? What about this header?
30639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30641 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
30642 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30643 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
30644 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
30645 ac_header_preproc=yes
30648 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
30649 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
30650 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
30651 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
30652 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
30653 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
30654 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
30655 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
30656 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
30657 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
30658 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
30659 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
30661 ## ------------------------------- ##
30662 ## Report this to www.asterisk.org ##
30663 ## ------------------------------- ##
30665 ) | sed "s/^/$as_me: WARNING: /" >&2
30668 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
30669 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
30670 if test "${ac_cv_header_sqlite_h+set}" = set; then
30671 echo $ECHO_N "(cached) $ECHO_C" >&6
30673 ac_cv_header_sqlite_h=$ac_header_preproc
30675 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
30676 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
30679 if test $ac_cv_header_sqlite_h = yes; then
30680 SQLITE_HEADER_FOUND=1
30682 SQLITE_HEADER_FOUND=0
30688 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
30689 if test -n "${SQLITE_MANDATORY}" ;
30691 { echo "$as_me:$LINENO: ***" >&5
30692 echo "$as_me: ***" >&6;}
30693 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
30694 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
30695 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
30696 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
30697 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
30698 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
30707 cat >>confdefs.h <<_ACEOF
30708 #define HAVE_SQLITE 1
30712 elif test -n "${SQLITE_MANDATORY}";
30714 { echo "$as_me:$LINENO: ***" >&5
30715 echo "$as_me: ***" >&6;}
30716 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
30717 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
30718 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30719 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30720 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
30721 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
30728 if test "${USE_OPENSSL}" != "no"; then
30730 if test "x${OPENSSL_DIR}" != "x"; then
30731 if test -d ${OPENSSL_DIR}/lib; then
30732 pbxlibdir="-L${OPENSSL_DIR}/lib"
30734 pbxlibdir="-L${OPENSSL_DIR}"
30737 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
30738 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
30739 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
30740 echo $ECHO_N "(cached) $ECHO_C" >&6
30742 ac_check_lib_save_LIBS=$LIBS
30743 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
30744 cat >conftest.$ac_ext <<_ACEOF
30747 cat confdefs.h >>conftest.$ac_ext
30748 cat >>conftest.$ac_ext <<_ACEOF
30749 /* end confdefs.h. */
30751 /* Override any GCC internal prototype to avoid an error.
30752 Use char because int might match the return type of a GCC
30753 builtin and then its argument prototype would still apply. */
30757 char ssl2_connect ();
30761 return ssl2_connect ();
30766 rm -f conftest.$ac_objext conftest$ac_exeext
30767 if { (ac_try="$ac_link"
30768 case "(($ac_try" in
30769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30770 *) ac_try_echo
=$ac_try;;
30772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30773 (eval "$ac_link") 2>conftest.er1
30775 grep -v '^ *+' conftest.er1
>conftest.err
30777 cat conftest.err
>&5
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); } && {
30780 test -z "$ac_c_werror_flag" ||
30781 test ! -s conftest.err
30782 } && test -s conftest
$ac_exeext &&
30783 $as_test_x conftest
$ac_exeext; then
30784 ac_cv_lib_ssl_ssl2_connect
=yes
30786 echo "$as_me: failed program was:" >&5
30787 sed 's/^/| /' conftest.
$ac_ext >&5
30789 ac_cv_lib_ssl_ssl2_connect
=no
30792 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30793 conftest
$ac_exeext conftest.
$ac_ext
30794 LIBS
=$ac_check_lib_save_LIBS
30796 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
30797 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
30798 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
30799 AST_OPENSSL_FOUND
=yes
30801 AST_OPENSSL_FOUND
=no
30805 if test "${AST_OPENSSL_FOUND}" = "yes"; then
30806 OPENSSL_LIB
="-lssl -lcrypto"
30807 OPENSSL_HEADER_FOUND
="1"
30808 if test "x${OPENSSL_DIR}" != "x"; then
30809 OPENSSL_LIB
="${pbxlibdir} ${OPENSSL_LIB}"
30810 OPENSSL_INCLUDE
="-I${OPENSSL_DIR}/include"
30811 saved_cppflags
="${CPPFLAGS}"
30812 CPPFLAGS
="${CPPFLAGS} -I${OPENSSL_DIR}/include"
30813 if test "xopenssl/ssl.h" != "x" ; then
30814 as_ac_Header
=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
30815 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30816 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
30817 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
30818 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30819 echo $ECHO_N "(cached) $ECHO_C" >&6
30821 ac_res
=`eval echo '${'$as_ac_Header'}'`
30822 { echo "$as_me:$LINENO: result: $ac_res" >&5
30823 echo "${ECHO_T}$ac_res" >&6; }
30825 # Is the header compilable?
30826 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
30827 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
30828 cat >conftest.
$ac_ext <<_ACEOF
30831 cat confdefs.h
>>conftest.
$ac_ext
30832 cat >>conftest.
$ac_ext <<_ACEOF
30833 /* end confdefs.h. */
30834 $ac_includes_default
30835 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
30837 rm -f conftest.
$ac_objext
30838 if { (ac_try
="$ac_compile"
30839 case "(($ac_try" in
30840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30841 *) ac_try_echo=$ac_try;;
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844 (eval "$ac_compile") 2>conftest.er1
30846 grep -v '^ *+' conftest.er1 >conftest.err
30848 cat conftest.err >&5
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); } && {
30851 test -z "$ac_c_werror_flag" ||
30852 test ! -s conftest.err
30853 } && test -s conftest.$ac_objext; then
30854 ac_header_compiler=yes
30856 echo "$as_me: failed program was:" >&5
30857 sed 's/^/| /' conftest.$ac_ext >&5
30859 ac_header_compiler=no
30862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30864 echo "${ECHO_T}$ac_header_compiler" >&6; }
30866 # Is the header present?
30867 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
30868 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
30869 cat >conftest.$ac_ext <<_ACEOF
30872 cat confdefs.h >>conftest.$ac_ext
30873 cat >>conftest.$ac_ext <<_ACEOF
30874 /* end confdefs.h. */
30875 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
30877 if { (ac_try="$ac_cpp conftest.$ac_ext"
30878 case "(($ac_try" in
30879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30880 *) ac_try_echo
=$ac_try;;
30882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30885 grep -v '^ *+' conftest.er1
>conftest.err
30887 cat conftest.err
>&5
30888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889 (exit $ac_status); } >/dev
/null
&& {
30890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30891 test ! -s conftest.err
30893 ac_header_preproc
=yes
30895 echo "$as_me: failed program was:" >&5
30896 sed 's/^/| /' conftest.
$ac_ext >&5
30898 ac_header_preproc
=no
30901 rm -f conftest.err conftest.
$ac_ext
30902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30903 echo "${ECHO_T}$ac_header_preproc" >&6; }
30905 # So? What about this header?
30906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30908 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30909 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30910 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
30911 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
30912 ac_header_preproc
=yes
30915 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
30916 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
30917 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
30918 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
30919 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
30920 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
30921 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
30922 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30923 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
30924 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
30925 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
30926 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
30928 ## ------------------------------- ##
30929 ## Report this to www.asterisk.org ##
30930 ## ------------------------------- ##
30932 ) |
sed "s/^/$as_me: WARNING: /" >&2
30935 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
30936 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
30937 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30938 echo $ECHO_N "(cached) $ECHO_C" >&6
30940 eval "$as_ac_Header=\$ac_header_preproc"
30942 ac_res
=`eval echo '${'$as_ac_Header'}'`
30943 { echo "$as_me:$LINENO: result: $ac_res" >&5
30944 echo "${ECHO_T}$ac_res" >&6; }
30947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30948 OPENSSL_HEADER_FOUND
=1
30950 OPENSSL_HEADER_FOUND
=0
30955 CPPFLAGS
="${saved_cppflags}"
30957 if test "xopenssl/ssl.h" != "x" ; then
30958 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30959 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
30960 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
30961 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30962 echo $ECHO_N "(cached) $ECHO_C" >&6
30964 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
30965 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30967 # Is the header compilable?
30968 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
30969 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
30970 cat >conftest.
$ac_ext <<_ACEOF
30973 cat confdefs.h
>>conftest.
$ac_ext
30974 cat >>conftest.
$ac_ext <<_ACEOF
30975 /* end confdefs.h. */
30976 $ac_includes_default
30977 #include <openssl/ssl.h>
30979 rm -f conftest.
$ac_objext
30980 if { (ac_try
="$ac_compile"
30981 case "(($ac_try" in
30982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30983 *) ac_try_echo=$ac_try;;
30985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30986 (eval "$ac_compile") 2>conftest.er1
30988 grep -v '^ *+' conftest.er1 >conftest.err
30990 cat conftest.err >&5
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); } && {
30993 test -z "$ac_c_werror_flag" ||
30994 test ! -s conftest.err
30995 } && test -s conftest.$ac_objext; then
30996 ac_header_compiler=yes
30998 echo "$as_me: failed program was:" >&5
30999 sed 's/^/| /' conftest.$ac_ext >&5
31001 ac_header_compiler=no
31004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31006 echo "${ECHO_T}$ac_header_compiler" >&6; }
31008 # Is the header present?
31009 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
31010 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
31011 cat >conftest.$ac_ext <<_ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31017 #include <openssl/ssl.h>
31019 if { (ac_try="$ac_cpp conftest.$ac_ext"
31020 case "(($ac_try" in
31021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31022 *) ac_try_echo
=$ac_try;;
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31027 grep -v '^ *+' conftest.er1
>conftest.err
31029 cat conftest.err
>&5
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); } >/dev
/null
&& {
31032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31033 test ! -s conftest.err
31035 ac_header_preproc
=yes
31037 echo "$as_me: failed program was:" >&5
31038 sed 's/^/| /' conftest.
$ac_ext >&5
31040 ac_header_preproc
=no
31043 rm -f conftest.err conftest.
$ac_ext
31044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31045 echo "${ECHO_T}$ac_header_preproc" >&6; }
31047 # So? What about this header?
31048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31050 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31051 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31052 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
31053 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
31054 ac_header_preproc
=yes
31057 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
31058 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
31059 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
31060 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
31061 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
31062 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
31063 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
31064 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
31065 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
31066 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
31067 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
31068 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
31070 ## ------------------------------- ##
31071 ## Report this to www.asterisk.org ##
31072 ## ------------------------------- ##
31074 ) |
sed "s/^/$as_me: WARNING: /" >&2
31077 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
31078 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
31079 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
31080 echo $ECHO_N "(cached) $ECHO_C" >&6
31082 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
31084 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
31085 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
31088 if test $ac_cv_header_openssl_ssl_h = yes; then
31089 OPENSSL_HEADER_FOUND
=1
31091 OPENSSL_HEADER_FOUND
=0
31097 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
31098 if test -n "${OPENSSL_MANDATORY}" ;
31100 { echo "$as_me:$LINENO: ***" >&5
31101 echo "$as_me: ***" >&6;}
31102 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
31103 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
31104 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
31105 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
31106 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
31107 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
31116 cat >>confdefs.h
<<_ACEOF
31117 #define HAVE_OPENSSL 1
31121 elif test -n "${OPENSSL_MANDATORY}";
31123 { echo "$as_me:$LINENO: ***" >&5
31124 echo "$as_me: ***" >&6;}
31125 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
31126 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
31127 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31128 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31129 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
31130 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
31135 if test "$PBX_OPENSSL" = "1";
31138 if test "${USE_OSPTK}" != "no"; then
31140 if test "x${OSPTK_DIR}" != "x"; then
31141 if test -d ${OSPTK_DIR}/lib
; then
31142 pbxlibdir
="-L${OSPTK_DIR}/lib"
31144 pbxlibdir
="-L${OSPTK_DIR}"
31147 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
31148 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
31149 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
31150 echo $ECHO_N "(cached) $ECHO_C" >&6
31152 ac_check_lib_save_LIBS
=$LIBS
31153 LIBS
="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
31154 cat >conftest.
$ac_ext <<_ACEOF
31157 cat confdefs.h
>>conftest.
$ac_ext
31158 cat >>conftest.
$ac_ext <<_ACEOF
31159 /* end confdefs.h. */
31161 /* Override any GCC internal prototype to avoid an error.
31162 Use char because int might match the return type of a GCC
31163 builtin and then its argument prototype would still apply. */
31167 char OSPPCryptoDecrypt ();
31171 return OSPPCryptoDecrypt ();
31176 rm -f conftest.
$ac_objext conftest
$ac_exeext
31177 if { (ac_try
="$ac_link"
31178 case "(($ac_try" in
31179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31180 *) ac_try_echo=$ac_try;;
31182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183 (eval "$ac_link") 2>conftest.er1
31185 grep -v '^ *+' conftest.er1 >conftest.err
31187 cat conftest.err >&5
31188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189 (exit $ac_status); } && {
31190 test -z "$ac_c_werror_flag" ||
31191 test ! -s conftest.err
31192 } && test -s conftest$ac_exeext &&
31193 $as_test_x conftest$ac_exeext; then
31194 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
31196 echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31199 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
31202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31203 conftest$ac_exeext conftest.$ac_ext
31204 LIBS=$ac_check_lib_save_LIBS
31206 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
31207 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
31208 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
31209 AST_OSPTK_FOUND=yes
31215 if test "${AST_OSPTK_FOUND}" = "yes"; then
31216 OSPTK_LIB="-losptk -lcrypto -lssl"
31217 OSPTK_HEADER_FOUND="1"
31218 if test "x${OSPTK_DIR}" != "x"; then
31219 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
31220 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
31221 saved_cppflags="${CPPFLAGS}"
31222 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
31223 if test "xosp/osp.h" != "x" ; then
31224 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" |
$as_tr_sh`
31225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31226 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
31227 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
31228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31229 echo $ECHO_N "(cached) $ECHO_C" >&6
31231 ac_res=`eval echo '${'$as_ac_Header'}'`
31232 { echo "$as_me:$LINENO: result: $ac_res" >&5
31233 echo "${ECHO_T}$ac_res" >&6; }
31235 # Is the header compilable?
31236 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
31237 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
31238 cat >conftest.$ac_ext <<_ACEOF
31241 cat confdefs.h >>conftest.$ac_ext
31242 cat >>conftest.$ac_ext <<_ACEOF
31243 /* end confdefs.h. */
31244 $ac_includes_default
31245 #include <${OSPTK_DIR}/include/osp/osp.h>
31247 rm -f conftest.$ac_objext
31248 if { (ac_try="$ac_compile"
31249 case "(($ac_try" in
31250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31251 *) ac_try_echo
=$ac_try;;
31253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254 (eval "$ac_compile") 2>conftest.er1
31256 grep -v '^ *+' conftest.er1
>conftest.err
31258 cat conftest.err
>&5
31259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260 (exit $ac_status); } && {
31261 test -z "$ac_c_werror_flag" ||
31262 test ! -s conftest.err
31263 } && test -s conftest.
$ac_objext; then
31264 ac_header_compiler
=yes
31266 echo "$as_me: failed program was:" >&5
31267 sed 's/^/| /' conftest.
$ac_ext >&5
31269 ac_header_compiler
=no
31272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31274 echo "${ECHO_T}$ac_header_compiler" >&6; }
31276 # Is the header present?
31277 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
31278 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
31279 cat >conftest.
$ac_ext <<_ACEOF
31282 cat confdefs.h
>>conftest.
$ac_ext
31283 cat >>conftest.
$ac_ext <<_ACEOF
31284 /* end confdefs.h. */
31285 #include <${OSPTK_DIR}/include/osp/osp.h>
31287 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31288 case "(($ac_try" in
31289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31290 *) ac_try_echo=$ac_try;;
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31295 grep -v '^ *+' conftest.er1 >conftest.err
31297 cat conftest.err >&5
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); } >/dev/null && {
31300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31301 test ! -s conftest.err
31303 ac_header_preproc=yes
31305 echo "$as_me: failed program was:" >&5
31306 sed 's/^/| /' conftest.$ac_ext >&5
31308 ac_header_preproc=no
31311 rm -f conftest.err conftest.$ac_ext
31312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31313 echo "${ECHO_T}$ac_header_preproc" >&6; }
31315 # So? What about this header?
31316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31318 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31319 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31320 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
31321 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
31322 ac_header_preproc=yes
31325 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
31326 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
31327 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
31328 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
31329 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
31330 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
31331 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
31332 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31333 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
31334 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
31335 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
31336 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
31338 ## ------------------------------- ##
31339 ## Report this to www.asterisk.org ##
31340 ## ------------------------------- ##
31342 ) | sed "s/^/$as_me: WARNING: /" >&2
31345 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
31346 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
31347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31348 echo $ECHO_N "(cached) $ECHO_C" >&6
31350 eval "$as_ac_Header=\$ac_header_preproc"
31352 ac_res=`eval echo '${'$as_ac_Header'}'`
31353 { echo "$as_me:$LINENO: result: $ac_res" >&5
31354 echo "${ECHO_T}$ac_res" >&6; }
31357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31358 OSPTK_HEADER_FOUND=1
31360 OSPTK_HEADER_FOUND=0
31365 CPPFLAGS="${saved_cppflags}"
31367 if test "xosp/osp.h" != "x" ; then
31368 if test "${ac_cv_header_osp_osp_h+set}" = set; then
31369 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
31370 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
31371 if test "${ac_cv_header_osp_osp_h+set}" = set; then
31372 echo $ECHO_N "(cached) $ECHO_C" >&6
31374 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
31375 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
31377 # Is the header compilable?
31378 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
31379 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
31380 cat >conftest.$ac_ext <<_ACEOF
31383 cat confdefs.h >>conftest.$ac_ext
31384 cat >>conftest.$ac_ext <<_ACEOF
31385 /* end confdefs.h. */
31386 $ac_includes_default
31387 #include <osp/osp.h>
31389 rm -f conftest.$ac_objext
31390 if { (ac_try="$ac_compile"
31391 case "(($ac_try" in
31392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31393 *) ac_try_echo
=$ac_try;;
31395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396 (eval "$ac_compile") 2>conftest.er1
31398 grep -v '^ *+' conftest.er1
>conftest.err
31400 cat conftest.err
>&5
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); } && {
31403 test -z "$ac_c_werror_flag" ||
31404 test ! -s conftest.err
31405 } && test -s conftest.
$ac_objext; then
31406 ac_header_compiler
=yes
31408 echo "$as_me: failed program was:" >&5
31409 sed 's/^/| /' conftest.
$ac_ext >&5
31411 ac_header_compiler
=no
31414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31416 echo "${ECHO_T}$ac_header_compiler" >&6; }
31418 # Is the header present?
31419 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
31420 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
31421 cat >conftest.
$ac_ext <<_ACEOF
31424 cat confdefs.h
>>conftest.
$ac_ext
31425 cat >>conftest.
$ac_ext <<_ACEOF
31426 /* end confdefs.h. */
31427 #include <osp/osp.h>
31429 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31430 case "(($ac_try" in
31431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31432 *) ac_try_echo=$ac_try;;
31434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31437 grep -v '^ *+' conftest.er1 >conftest.err
31439 cat conftest.err >&5
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); } >/dev/null && {
31442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31443 test ! -s conftest.err
31445 ac_header_preproc=yes
31447 echo "$as_me: failed program was:" >&5
31448 sed 's/^/| /' conftest.$ac_ext >&5
31450 ac_header_preproc=no
31453 rm -f conftest.err conftest.$ac_ext
31454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31455 echo "${ECHO_T}$ac_header_preproc" >&6; }
31457 # So? What about this header?
31458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31460 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31461 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31462 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
31463 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
31464 ac_header_preproc=yes
31467 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
31468 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
31469 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
31470 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
31471 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
31472 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
31473 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
31474 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31475 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
31476 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
31477 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
31478 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
31480 ## ------------------------------- ##
31481 ## Report this to www.asterisk.org ##
31482 ## ------------------------------- ##
31484 ) | sed "s/^/$as_me: WARNING: /" >&2
31487 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
31488 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
31489 if test "${ac_cv_header_osp_osp_h+set}" = set; then
31490 echo $ECHO_N "(cached) $ECHO_C" >&6
31492 ac_cv_header_osp_osp_h=$ac_header_preproc
31494 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
31495 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
31498 if test $ac_cv_header_osp_osp_h = yes; then
31499 OSPTK_HEADER_FOUND=1
31501 OSPTK_HEADER_FOUND=0
31507 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
31508 if test -n "${OSPTK_MANDATORY}" ;
31510 { echo "$as_me:$LINENO: ***" >&5
31511 echo "$as_me: ***" >&6;}
31512 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
31513 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
31514 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
31515 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
31516 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
31517 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
31526 cat >>confdefs.h <<_ACEOF
31527 #define HAVE_OSPTK 1
31531 elif test -n "${OSPTK_MANDATORY}";
31533 { echo "$as_me:$LINENO: ***" >&5
31534 echo "$as_me: ***" >&6;}
31535 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
31536 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
31537 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31538 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31539 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
31540 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
31548 if test "${USE_FREETDS}" != "no"; then
31550 if test "x${FREETDS_DIR}" != "x"; then
31551 if test -d ${FREETDS_DIR}/lib; then
31552 pbxlibdir="-L${FREETDS_DIR}/lib"
31554 pbxlibdir="-L${FREETDS_DIR}"
31557 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
31558 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
31559 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
31560 echo $ECHO_N "(cached) $ECHO_C" >&6
31562 ac_check_lib_save_LIBS=$LIBS
31563 LIBS="-ltds ${pbxlibdir} $LIBS"
31564 cat >conftest.$ac_ext <<_ACEOF
31567 cat confdefs.h >>conftest.$ac_ext
31568 cat >>conftest.$ac_ext <<_ACEOF
31569 /* end confdefs.h. */
31571 /* Override any GCC internal prototype to avoid an error.
31572 Use char because int might match the return type of a GCC
31573 builtin and then its argument prototype would still apply. */
31577 char tds_version ();
31581 return tds_version ();
31586 rm -f conftest.$ac_objext conftest$ac_exeext
31587 if { (ac_try="$ac_link"
31588 case "(($ac_try" in
31589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31590 *) ac_try_echo
=$ac_try;;
31592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31593 (eval "$ac_link") 2>conftest.er1
31595 grep -v '^ *+' conftest.er1
>conftest.err
31597 cat conftest.err
>&5
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); } && {
31600 test -z "$ac_c_werror_flag" ||
31601 test ! -s conftest.err
31602 } && test -s conftest
$ac_exeext &&
31603 $as_test_x conftest
$ac_exeext; then
31604 ac_cv_lib_tds_tds_version
=yes
31606 echo "$as_me: failed program was:" >&5
31607 sed 's/^/| /' conftest.
$ac_ext >&5
31609 ac_cv_lib_tds_tds_version
=no
31612 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31613 conftest
$ac_exeext conftest.
$ac_ext
31614 LIBS
=$ac_check_lib_save_LIBS
31616 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
31617 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
31618 if test $ac_cv_lib_tds_tds_version = yes; then
31619 AST_FREETDS_FOUND
=yes
31621 AST_FREETDS_FOUND
=no
31625 if test "${AST_FREETDS_FOUND}" = "yes"; then
31626 FREETDS_LIB
="-ltds "
31627 FREETDS_HEADER_FOUND
="1"
31628 if test "x${FREETDS_DIR}" != "x"; then
31629 FREETDS_LIB
="${pbxlibdir} ${FREETDS_LIB}"
31630 FREETDS_INCLUDE
="-I${FREETDS_DIR}/include"
31631 saved_cppflags
="${CPPFLAGS}"
31632 CPPFLAGS
="${CPPFLAGS} -I${FREETDS_DIR}/include"
31633 if test "xtds.h" != "x" ; then
31634 as_ac_Header
=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
31635 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31636 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
31637 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
31638 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31639 echo $ECHO_N "(cached) $ECHO_C" >&6
31641 ac_res
=`eval echo '${'$as_ac_Header'}'`
31642 { echo "$as_me:$LINENO: result: $ac_res" >&5
31643 echo "${ECHO_T}$ac_res" >&6; }
31645 # Is the header compilable?
31646 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
31647 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
31648 cat >conftest.
$ac_ext <<_ACEOF
31651 cat confdefs.h
>>conftest.
$ac_ext
31652 cat >>conftest.
$ac_ext <<_ACEOF
31653 /* end confdefs.h. */
31654 $ac_includes_default
31655 #include <${FREETDS_DIR}/include/tds.h>
31657 rm -f conftest.
$ac_objext
31658 if { (ac_try
="$ac_compile"
31659 case "(($ac_try" in
31660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31661 *) ac_try_echo=$ac_try;;
31663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31664 (eval "$ac_compile") 2>conftest.er1
31666 grep -v '^ *+' conftest.er1 >conftest.err
31668 cat conftest.err >&5
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); } && {
31671 test -z "$ac_c_werror_flag" ||
31672 test ! -s conftest.err
31673 } && test -s conftest.$ac_objext; then
31674 ac_header_compiler=yes
31676 echo "$as_me: failed program was:" >&5
31677 sed 's/^/| /' conftest.$ac_ext >&5
31679 ac_header_compiler=no
31682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31684 echo "${ECHO_T}$ac_header_compiler" >&6; }
31686 # Is the header present?
31687 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
31688 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
31689 cat >conftest.$ac_ext <<_ACEOF
31692 cat confdefs.h >>conftest.$ac_ext
31693 cat >>conftest.$ac_ext <<_ACEOF
31694 /* end confdefs.h. */
31695 #include <${FREETDS_DIR}/include/tds.h>
31697 if { (ac_try="$ac_cpp conftest.$ac_ext"
31698 case "(($ac_try" in
31699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31700 *) ac_try_echo
=$ac_try;;
31702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31705 grep -v '^ *+' conftest.er1
>conftest.err
31707 cat conftest.err
>&5
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); } >/dev
/null
&& {
31710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31711 test ! -s conftest.err
31713 ac_header_preproc
=yes
31715 echo "$as_me: failed program was:" >&5
31716 sed 's/^/| /' conftest.
$ac_ext >&5
31718 ac_header_preproc
=no
31721 rm -f conftest.err conftest.
$ac_ext
31722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31723 echo "${ECHO_T}$ac_header_preproc" >&6; }
31725 # So? What about this header?
31726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31728 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
31729 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31730 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
31731 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
31732 ac_header_preproc
=yes
31735 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
31736 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
31737 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
31738 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
31739 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
31740 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
31741 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
31742 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
31743 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
31744 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
31745 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
31746 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
31748 ## ------------------------------- ##
31749 ## Report this to www.asterisk.org ##
31750 ## ------------------------------- ##
31752 ) |
sed "s/^/$as_me: WARNING: /" >&2
31755 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
31756 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
31757 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31758 echo $ECHO_N "(cached) $ECHO_C" >&6
31760 eval "$as_ac_Header=\$ac_header_preproc"
31762 ac_res
=`eval echo '${'$as_ac_Header'}'`
31763 { echo "$as_me:$LINENO: result: $ac_res" >&5
31764 echo "${ECHO_T}$ac_res" >&6; }
31767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31768 FREETDS_HEADER_FOUND
=1
31770 FREETDS_HEADER_FOUND
=0
31775 CPPFLAGS
="${saved_cppflags}"
31777 if test "xtds.h" != "x" ; then
31778 if test "${ac_cv_header_tds_h+set}" = set; then
31779 { echo "$as_me:$LINENO: checking for tds.h" >&5
31780 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
31781 if test "${ac_cv_header_tds_h+set}" = set; then
31782 echo $ECHO_N "(cached) $ECHO_C" >&6
31784 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
31785 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
31787 # Is the header compilable?
31788 { echo "$as_me:$LINENO: checking tds.h usability" >&5
31789 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
31790 cat >conftest.
$ac_ext <<_ACEOF
31793 cat confdefs.h
>>conftest.
$ac_ext
31794 cat >>conftest.
$ac_ext <<_ACEOF
31795 /* end confdefs.h. */
31796 $ac_includes_default
31799 rm -f conftest.
$ac_objext
31800 if { (ac_try
="$ac_compile"
31801 case "(($ac_try" in
31802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31803 *) ac_try_echo=$ac_try;;
31805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806 (eval "$ac_compile") 2>conftest.er1
31808 grep -v '^ *+' conftest.er1 >conftest.err
31810 cat conftest.err >&5
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); } && {
31813 test -z "$ac_c_werror_flag" ||
31814 test ! -s conftest.err
31815 } && test -s conftest.$ac_objext; then
31816 ac_header_compiler=yes
31818 echo "$as_me: failed program was:" >&5
31819 sed 's/^/| /' conftest.$ac_ext >&5
31821 ac_header_compiler=no
31824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31826 echo "${ECHO_T}$ac_header_compiler" >&6; }
31828 # Is the header present?
31829 { echo "$as_me:$LINENO: checking tds.h presence" >&5
31830 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
31831 cat >conftest.$ac_ext <<_ACEOF
31834 cat confdefs.h >>conftest.$ac_ext
31835 cat >>conftest.$ac_ext <<_ACEOF
31836 /* end confdefs.h. */
31839 if { (ac_try="$ac_cpp conftest.$ac_ext"
31840 case "(($ac_try" in
31841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31842 *) ac_try_echo
=$ac_try;;
31844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31847 grep -v '^ *+' conftest.er1
>conftest.err
31849 cat conftest.err
>&5
31850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 (exit $ac_status); } >/dev
/null
&& {
31852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31853 test ! -s conftest.err
31855 ac_header_preproc
=yes
31857 echo "$as_me: failed program was:" >&5
31858 sed 's/^/| /' conftest.
$ac_ext >&5
31860 ac_header_preproc
=no
31863 rm -f conftest.err conftest.
$ac_ext
31864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31865 echo "${ECHO_T}$ac_header_preproc" >&6; }
31867 # So? What about this header?
31868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31870 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
31871 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31872 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
31873 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
31874 ac_header_preproc
=yes
31877 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
31878 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
31879 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
31880 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
31881 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
31882 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
31883 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
31884 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
31885 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
31886 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
31887 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
31888 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
31890 ## ------------------------------- ##
31891 ## Report this to www.asterisk.org ##
31892 ## ------------------------------- ##
31894 ) |
sed "s/^/$as_me: WARNING: /" >&2
31897 { echo "$as_me:$LINENO: checking for tds.h" >&5
31898 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
31899 if test "${ac_cv_header_tds_h+set}" = set; then
31900 echo $ECHO_N "(cached) $ECHO_C" >&6
31902 ac_cv_header_tds_h
=$ac_header_preproc
31904 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
31905 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
31908 if test $ac_cv_header_tds_h = yes; then
31909 FREETDS_HEADER_FOUND
=1
31911 FREETDS_HEADER_FOUND
=0
31917 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
31918 if test -n "${FREETDS_MANDATORY}" ;
31920 { echo "$as_me:$LINENO: ***" >&5
31921 echo "$as_me: ***" >&6;}
31922 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
31923 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
31924 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
31925 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
31926 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
31927 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
31936 cat >>confdefs.h
<<_ACEOF
31937 #define HAVE_FREETDS 1
31941 elif test -n "${FREETDS_MANDATORY}";
31943 { echo "$as_me:$LINENO: ***" >&5
31944 echo "$as_me: ***" >&6;}
31945 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
31946 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
31947 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31948 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31949 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
31950 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
31955 if test "${PBX_FREETDS}" != "0";
31957 if test "${FREETDS_DIR}x" = "x";
31959 for tds_dir
in /usr
/usr
/local;
31961 if test -f "${tds_dir}/include/tdsver.h";
31963 FREETDS_DIR
="${tds_dir}"
31967 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
31969 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_64"
31972 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_63"
31975 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_62"
31978 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
31984 if test "${USE_TERMCAP}" != "no"; then
31986 if test "x${TERMCAP_DIR}" != "x"; then
31987 if test -d ${TERMCAP_DIR}/lib
; then
31988 pbxlibdir
="-L${TERMCAP_DIR}/lib"
31990 pbxlibdir
="-L${TERMCAP_DIR}"
31993 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
31994 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
31995 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
31996 echo $ECHO_N "(cached) $ECHO_C" >&6
31998 ac_check_lib_save_LIBS
=$LIBS
31999 LIBS
="-ltermcap ${pbxlibdir} $LIBS"
32000 cat >conftest.
$ac_ext <<_ACEOF
32003 cat confdefs.h
>>conftest.
$ac_ext
32004 cat >>conftest.
$ac_ext <<_ACEOF
32005 /* end confdefs.h. */
32007 /* Override any GCC internal prototype to avoid an error.
32008 Use char because int might match the return type of a GCC
32009 builtin and then its argument prototype would still apply. */
32022 rm -f conftest.
$ac_objext conftest
$ac_exeext
32023 if { (ac_try
="$ac_link"
32024 case "(($ac_try" in
32025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_link") 2>conftest.er1
32031 grep -v '^ *+' conftest.er1 >conftest.err
32033 cat conftest.err >&5
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); } && {
32036 test -z "$ac_c_werror_flag" ||
32037 test ! -s conftest.err
32038 } && test -s conftest$ac_exeext &&
32039 $as_test_x conftest$ac_exeext; then
32040 ac_cv_lib_termcap_tgetent=yes
32042 echo "$as_me: failed program was:" >&5
32043 sed 's/^/| /' conftest.$ac_ext >&5
32045 ac_cv_lib_termcap_tgetent=no
32048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32049 conftest$ac_exeext conftest.$ac_ext
32050 LIBS=$ac_check_lib_save_LIBS
32052 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
32053 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
32054 if test $ac_cv_lib_termcap_tgetent = yes; then
32055 AST_TERMCAP_FOUND=yes
32057 AST_TERMCAP_FOUND=no
32061 if test "${AST_TERMCAP_FOUND}" = "yes"; then
32062 TERMCAP_LIB="-ltermcap "
32063 TERMCAP_HEADER_FOUND="1"
32064 if test "x${TERMCAP_DIR}" != "x"; then
32065 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
32066 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
32067 saved_cppflags="${CPPFLAGS}"
32068 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
32069 if test "x" != "x" ; then
32070 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" |
$as_tr_sh`
32071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32072 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
32073 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
32074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32075 echo $ECHO_N "(cached) $ECHO_C" >&6
32077 ac_res=`eval echo '${'$as_ac_Header'}'`
32078 { echo "$as_me:$LINENO: result: $ac_res" >&5
32079 echo "${ECHO_T}$ac_res" >&6; }
32081 # Is the header compilable?
32082 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
32083 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
32084 cat >conftest.$ac_ext <<_ACEOF
32087 cat confdefs.h >>conftest.$ac_ext
32088 cat >>conftest.$ac_ext <<_ACEOF
32089 /* end confdefs.h. */
32090 $ac_includes_default
32091 #include <${TERMCAP_DIR}/include/>
32093 rm -f conftest.$ac_objext
32094 if { (ac_try="$ac_compile"
32095 case "(($ac_try" in
32096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32097 *) ac_try_echo
=$ac_try;;
32099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32100 (eval "$ac_compile") 2>conftest.er1
32102 grep -v '^ *+' conftest.er1
>conftest.err
32104 cat conftest.err
>&5
32105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106 (exit $ac_status); } && {
32107 test -z "$ac_c_werror_flag" ||
32108 test ! -s conftest.err
32109 } && test -s conftest.
$ac_objext; then
32110 ac_header_compiler
=yes
32112 echo "$as_me: failed program was:" >&5
32113 sed 's/^/| /' conftest.
$ac_ext >&5
32115 ac_header_compiler
=no
32118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32120 echo "${ECHO_T}$ac_header_compiler" >&6; }
32122 # Is the header present?
32123 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
32124 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
32125 cat >conftest.
$ac_ext <<_ACEOF
32128 cat confdefs.h
>>conftest.
$ac_ext
32129 cat >>conftest.
$ac_ext <<_ACEOF
32130 /* end confdefs.h. */
32131 #include <${TERMCAP_DIR}/include/>
32133 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32134 case "(($ac_try" in
32135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32136 *) ac_try_echo=$ac_try;;
32138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32141 grep -v '^ *+' conftest.er1 >conftest.err
32143 cat conftest.err >&5
32144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); } >/dev/null && {
32146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32147 test ! -s conftest.err
32149 ac_header_preproc=yes
32151 echo "$as_me: failed program was:" >&5
32152 sed 's/^/| /' conftest.$ac_ext >&5
32154 ac_header_preproc=no
32157 rm -f conftest.err conftest.$ac_ext
32158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32159 echo "${ECHO_T}$ac_header_preproc" >&6; }
32161 # So? What about this header?
32162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32164 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
32165 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
32166 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
32167 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
32168 ac_header_preproc=yes
32171 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
32172 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
32173 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
32174 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
32175 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
32176 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
32177 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
32178 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
32179 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
32180 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
32181 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
32182 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
32184 ## ------------------------------- ##
32185 ## Report this to www.asterisk.org ##
32186 ## ------------------------------- ##
32188 ) | sed "s/^/$as_me: WARNING: /" >&2
32191 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
32192 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
32193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32194 echo $ECHO_N "(cached) $ECHO_C" >&6
32196 eval "$as_ac_Header=\$ac_header_preproc"
32198 ac_res=`eval echo '${'$as_ac_Header'}'`
32199 { echo "$as_me:$LINENO: result: $ac_res" >&5
32200 echo "${ECHO_T}$ac_res" >&6; }
32203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32204 TERMCAP_HEADER_FOUND=1
32206 TERMCAP_HEADER_FOUND=0
32211 CPPFLAGS="${saved_cppflags}"
32213 if test "x" != "x" ; then
32214 if test "${ac_cv_header_+set}" = set; then
32215 { echo "$as_me:$LINENO: checking for " >&5
32216 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32217 if test "${ac_cv_header_+set}" = set; then
32218 echo $ECHO_N "(cached) $ECHO_C" >&6
32220 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32221 echo "${ECHO_T}$ac_cv_header_" >&6; }
32223 # Is the header compilable?
32224 { echo "$as_me:$LINENO: checking usability" >&5
32225 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
32226 cat >conftest.$ac_ext <<_ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h. */
32232 $ac_includes_default
32235 rm -f conftest.$ac_objext
32236 if { (ac_try="$ac_compile"
32237 case "(($ac_try" in
32238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32239 *) ac_try_echo
=$ac_try;;
32241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32242 (eval "$ac_compile") 2>conftest.er1
32244 grep -v '^ *+' conftest.er1
>conftest.err
32246 cat conftest.err
>&5
32247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32248 (exit $ac_status); } && {
32249 test -z "$ac_c_werror_flag" ||
32250 test ! -s conftest.err
32251 } && test -s conftest.
$ac_objext; then
32252 ac_header_compiler
=yes
32254 echo "$as_me: failed program was:" >&5
32255 sed 's/^/| /' conftest.
$ac_ext >&5
32257 ac_header_compiler
=no
32260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32262 echo "${ECHO_T}$ac_header_compiler" >&6; }
32264 # Is the header present?
32265 { echo "$as_me:$LINENO: checking presence" >&5
32266 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
32267 cat >conftest.
$ac_ext <<_ACEOF
32270 cat confdefs.h
>>conftest.
$ac_ext
32271 cat >>conftest.
$ac_ext <<_ACEOF
32272 /* end confdefs.h. */
32275 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32276 case "(($ac_try" in
32277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32278 *) ac_try_echo=$ac_try;;
32280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32283 grep -v '^ *+' conftest.er1 >conftest.err
32285 cat conftest.err >&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); } >/dev/null && {
32288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32289 test ! -s conftest.err
32291 ac_header_preproc=yes
32293 echo "$as_me: failed program was:" >&5
32294 sed 's/^/| /' conftest.$ac_ext >&5
32296 ac_header_preproc=no
32299 rm -f conftest.err conftest.$ac_ext
32300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32301 echo "${ECHO_T}$ac_header_preproc" >&6; }
32303 # So? What about this header?
32304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32306 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
32307 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
32308 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
32309 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
32310 ac_header_preproc=yes
32313 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
32314 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
32315 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
32316 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
32317 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
32318 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
32319 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
32320 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
32321 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
32322 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
32323 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
32324 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
32326 ## ------------------------------- ##
32327 ## Report this to www.asterisk.org ##
32328 ## ------------------------------- ##
32330 ) | sed "s/^/$as_me: WARNING: /" >&2
32333 { echo "$as_me:$LINENO: checking for " >&5
32334 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32335 if test "${ac_cv_header_+set}" = set; then
32336 echo $ECHO_N "(cached) $ECHO_C" >&6
32338 ac_cv_header_=$ac_header_preproc
32340 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32341 echo "${ECHO_T}$ac_cv_header_" >&6; }
32344 if test $ac_cv_header_ = yes; then
32345 TERMCAP_HEADER_FOUND=1
32347 TERMCAP_HEADER_FOUND=0
32353 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
32354 if test -n "${TERMCAP_MANDATORY}" ;
32356 { echo "$as_me:$LINENO: ***" >&5
32357 echo "$as_me: ***" >&6;}
32358 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
32359 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
32360 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
32361 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
32362 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
32363 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
32372 cat >>confdefs.h <<_ACEOF
32373 #define HAVE_TERMCAP 1
32377 elif test -n "${TERMCAP_MANDATORY}";
32379 { echo "$as_me:$LINENO: ***" >&5
32380 echo "$as_me: ***" >&6;}
32381 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
32382 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
32383 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32384 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32385 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
32386 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
32393 if test "${USE_TINFO}" != "no"; then
32395 if test "x${TINFO_DIR}" != "x"; then
32396 if test -d ${TINFO_DIR}/lib; then
32397 pbxlibdir="-L${TINFO_DIR}/lib"
32399 pbxlibdir="-L${TINFO_DIR}"
32402 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
32403 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
32404 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
32405 echo $ECHO_N "(cached) $ECHO_C" >&6
32407 ac_check_lib_save_LIBS=$LIBS
32408 LIBS="-ltinfo ${pbxlibdir} $LIBS"
32409 cat >conftest.$ac_ext <<_ACEOF
32412 cat confdefs.h >>conftest.$ac_ext
32413 cat >>conftest.$ac_ext <<_ACEOF
32414 /* end confdefs.h. */
32416 /* Override any GCC internal prototype to avoid an error.
32417 Use char because int might match the return type of a GCC
32418 builtin and then its argument prototype would still apply. */
32431 rm -f conftest.$ac_objext conftest$ac_exeext
32432 if { (ac_try="$ac_link"
32433 case "(($ac_try" in
32434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32435 *) ac_try_echo
=$ac_try;;
32437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32438 (eval "$ac_link") 2>conftest.er1
32440 grep -v '^ *+' conftest.er1
>conftest.err
32442 cat conftest.err
>&5
32443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444 (exit $ac_status); } && {
32445 test -z "$ac_c_werror_flag" ||
32446 test ! -s conftest.err
32447 } && test -s conftest
$ac_exeext &&
32448 $as_test_x conftest
$ac_exeext; then
32449 ac_cv_lib_tinfo_tgetent
=yes
32451 echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.
$ac_ext >&5
32454 ac_cv_lib_tinfo_tgetent
=no
32457 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
32458 conftest
$ac_exeext conftest.
$ac_ext
32459 LIBS
=$ac_check_lib_save_LIBS
32461 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
32462 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
32463 if test $ac_cv_lib_tinfo_tgetent = yes; then
32464 AST_TINFO_FOUND
=yes
32470 if test "${AST_TINFO_FOUND}" = "yes"; then
32471 TINFO_LIB
="-ltinfo "
32472 TINFO_HEADER_FOUND
="1"
32473 if test "x${TINFO_DIR}" != "x"; then
32474 TINFO_LIB
="${pbxlibdir} ${TINFO_LIB}"
32475 TINFO_INCLUDE
="-I${TINFO_DIR}/include"
32476 saved_cppflags
="${CPPFLAGS}"
32477 CPPFLAGS
="${CPPFLAGS} -I${TINFO_DIR}/include"
32478 if test "x" != "x" ; then
32479 as_ac_Header
=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
32480 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32481 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
32482 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
32483 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32484 echo $ECHO_N "(cached) $ECHO_C" >&6
32486 ac_res
=`eval echo '${'$as_ac_Header'}'`
32487 { echo "$as_me:$LINENO: result: $ac_res" >&5
32488 echo "${ECHO_T}$ac_res" >&6; }
32490 # Is the header compilable?
32491 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
32492 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
32493 cat >conftest.
$ac_ext <<_ACEOF
32496 cat confdefs.h
>>conftest.
$ac_ext
32497 cat >>conftest.
$ac_ext <<_ACEOF
32498 /* end confdefs.h. */
32499 $ac_includes_default
32500 #include <${TINFO_DIR}/include/>
32502 rm -f conftest.
$ac_objext
32503 if { (ac_try
="$ac_compile"
32504 case "(($ac_try" in
32505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32506 *) ac_try_echo=$ac_try;;
32508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509 (eval "$ac_compile") 2>conftest.er1
32511 grep -v '^ *+' conftest.er1 >conftest.err
32513 cat conftest.err >&5
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); } && {
32516 test -z "$ac_c_werror_flag" ||
32517 test ! -s conftest.err
32518 } && test -s conftest.$ac_objext; then
32519 ac_header_compiler=yes
32521 echo "$as_me: failed program was:" >&5
32522 sed 's/^/| /' conftest.$ac_ext >&5
32524 ac_header_compiler=no
32527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32529 echo "${ECHO_T}$ac_header_compiler" >&6; }
32531 # Is the header present?
32532 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
32533 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
32534 cat >conftest.$ac_ext <<_ACEOF
32537 cat confdefs.h >>conftest.$ac_ext
32538 cat >>conftest.$ac_ext <<_ACEOF
32539 /* end confdefs.h. */
32540 #include <${TINFO_DIR}/include/>
32542 if { (ac_try="$ac_cpp conftest.$ac_ext"
32543 case "(($ac_try" in
32544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32545 *) ac_try_echo
=$ac_try;;
32547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32550 grep -v '^ *+' conftest.er1
>conftest.err
32552 cat conftest.err
>&5
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); } >/dev
/null
&& {
32555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32556 test ! -s conftest.err
32558 ac_header_preproc
=yes
32560 echo "$as_me: failed program was:" >&5
32561 sed 's/^/| /' conftest.
$ac_ext >&5
32563 ac_header_preproc
=no
32566 rm -f conftest.err conftest.
$ac_ext
32567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32568 echo "${ECHO_T}$ac_header_preproc" >&6; }
32570 # So? What about this header?
32571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32573 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
32574 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
32575 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
32576 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
32577 ac_header_preproc
=yes
32580 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
32581 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
32582 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
32583 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
32584 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
32585 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
32586 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
32587 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
32588 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
32589 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
32590 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
32591 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
32593 ## ------------------------------- ##
32594 ## Report this to www.asterisk.org ##
32595 ## ------------------------------- ##
32597 ) |
sed "s/^/$as_me: WARNING: /" >&2
32600 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
32601 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
32602 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32603 echo $ECHO_N "(cached) $ECHO_C" >&6
32605 eval "$as_ac_Header=\$ac_header_preproc"
32607 ac_res
=`eval echo '${'$as_ac_Header'}'`
32608 { echo "$as_me:$LINENO: result: $ac_res" >&5
32609 echo "${ECHO_T}$ac_res" >&6; }
32612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32613 TINFO_HEADER_FOUND
=1
32615 TINFO_HEADER_FOUND
=0
32620 CPPFLAGS
="${saved_cppflags}"
32622 if test "x" != "x" ; then
32623 if test "${ac_cv_header_+set}" = set; then
32624 { echo "$as_me:$LINENO: checking for " >&5
32625 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32626 if test "${ac_cv_header_+set}" = set; then
32627 echo $ECHO_N "(cached) $ECHO_C" >&6
32629 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32630 echo "${ECHO_T}$ac_cv_header_" >&6; }
32632 # Is the header compilable?
32633 { echo "$as_me:$LINENO: checking usability" >&5
32634 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
32635 cat >conftest.
$ac_ext <<_ACEOF
32638 cat confdefs.h
>>conftest.
$ac_ext
32639 cat >>conftest.
$ac_ext <<_ACEOF
32640 /* end confdefs.h. */
32641 $ac_includes_default
32644 rm -f conftest.
$ac_objext
32645 if { (ac_try
="$ac_compile"
32646 case "(($ac_try" in
32647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651 (eval "$ac_compile") 2>conftest.er1
32653 grep -v '^ *+' conftest.er1 >conftest.err
32655 cat conftest.err >&5
32656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); } && {
32658 test -z "$ac_c_werror_flag" ||
32659 test ! -s conftest.err
32660 } && test -s conftest.$ac_objext; then
32661 ac_header_compiler=yes
32663 echo "$as_me: failed program was:" >&5
32664 sed 's/^/| /' conftest.$ac_ext >&5
32666 ac_header_compiler=no
32669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32671 echo "${ECHO_T}$ac_header_compiler" >&6; }
32673 # Is the header present?
32674 { echo "$as_me:$LINENO: checking presence" >&5
32675 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
32676 cat >conftest.$ac_ext <<_ACEOF
32679 cat confdefs.h >>conftest.$ac_ext
32680 cat >>conftest.$ac_ext <<_ACEOF
32681 /* end confdefs.h. */
32684 if { (ac_try="$ac_cpp conftest.$ac_ext"
32685 case "(($ac_try" in
32686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32687 *) ac_try_echo
=$ac_try;;
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32692 grep -v '^ *+' conftest.er1
>conftest.err
32694 cat conftest.err
>&5
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } >/dev
/null
&& {
32697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32698 test ! -s conftest.err
32700 ac_header_preproc
=yes
32702 echo "$as_me: failed program was:" >&5
32703 sed 's/^/| /' conftest.
$ac_ext >&5
32705 ac_header_preproc
=no
32708 rm -f conftest.err conftest.
$ac_ext
32709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32710 echo "${ECHO_T}$ac_header_preproc" >&6; }
32712 # So? What about this header?
32713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32715 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
32716 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
32717 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
32718 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
32719 ac_header_preproc
=yes
32722 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
32723 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
32724 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
32725 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
32726 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
32727 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
32728 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
32729 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
32730 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
32731 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
32732 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
32733 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
32735 ## ------------------------------- ##
32736 ## Report this to www.asterisk.org ##
32737 ## ------------------------------- ##
32739 ) |
sed "s/^/$as_me: WARNING: /" >&2
32742 { echo "$as_me:$LINENO: checking for " >&5
32743 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32744 if test "${ac_cv_header_+set}" = set; then
32745 echo $ECHO_N "(cached) $ECHO_C" >&6
32747 ac_cv_header_
=$ac_header_preproc
32749 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32750 echo "${ECHO_T}$ac_cv_header_" >&6; }
32753 if test $ac_cv_header_ = yes; then
32754 TINFO_HEADER_FOUND
=1
32756 TINFO_HEADER_FOUND
=0
32762 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
32763 if test -n "${TINFO_MANDATORY}" ;
32765 { echo "$as_me:$LINENO: ***" >&5
32766 echo "$as_me: ***" >&6;}
32767 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
32768 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
32769 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
32770 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
32771 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
32772 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
32781 cat >>confdefs.h
<<_ACEOF
32782 #define HAVE_TINFO 1
32786 elif test -n "${TINFO_MANDATORY}";
32788 { echo "$as_me:$LINENO: ***" >&5
32789 echo "$as_me: ***" >&6;}
32790 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
32791 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
32792 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32793 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32794 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
32795 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
32801 if test "${host_os}" != "linux-gnu" ; then
32802 tonezone_extra
="-lm"
32806 if test "${USE_TONEZONE}" != "no"; then
32808 if test "x${TONEZONE_DIR}" != "x"; then
32809 if test -d ${TONEZONE_DIR}/lib
; then
32810 pbxlibdir
="-L${TONEZONE_DIR}/lib"
32812 pbxlibdir
="-L${TONEZONE_DIR}"
32815 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
32816 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
32817 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
32818 echo $ECHO_N "(cached) $ECHO_C" >&6
32820 ac_check_lib_save_LIBS
=$LIBS
32821 LIBS
="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
32822 cat >conftest.
$ac_ext <<_ACEOF
32825 cat confdefs.h
>>conftest.
$ac_ext
32826 cat >>conftest.
$ac_ext <<_ACEOF
32827 /* end confdefs.h. */
32829 /* Override any GCC internal prototype to avoid an error.
32830 Use char because int might match the return type of a GCC
32831 builtin and then its argument prototype would still apply. */
32835 char tone_zone_find ();
32839 return tone_zone_find ();
32844 rm -f conftest.
$ac_objext conftest
$ac_exeext
32845 if { (ac_try
="$ac_link"
32846 case "(($ac_try" in
32847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32848 *) ac_try_echo=$ac_try;;
32850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32851 (eval "$ac_link") 2>conftest.er1
32853 grep -v '^ *+' conftest.er1 >conftest.err
32855 cat conftest.err >&5
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); } && {
32858 test -z "$ac_c_werror_flag" ||
32859 test ! -s conftest.err
32860 } && test -s conftest$ac_exeext &&
32861 $as_test_x conftest$ac_exeext; then
32862 ac_cv_lib_tonezone_tone_zone_find=yes
32864 echo "$as_me: failed program was:" >&5
32865 sed 's/^/| /' conftest.$ac_ext >&5
32867 ac_cv_lib_tonezone_tone_zone_find=no
32870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32871 conftest$ac_exeext conftest.$ac_ext
32872 LIBS=$ac_check_lib_save_LIBS
32874 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
32875 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
32876 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
32877 AST_TONEZONE_FOUND=yes
32879 AST_TONEZONE_FOUND=no
32883 if test "${AST_TONEZONE_FOUND}" = "yes"; then
32884 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
32885 TONEZONE_HEADER_FOUND="1"
32886 if test "x${TONEZONE_DIR}" != "x"; then
32887 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
32888 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
32889 saved_cppflags="${CPPFLAGS}"
32890 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
32891 if test "xzaptel/tonezone.h" != "x" ; then
32892 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" |
$as_tr_sh`
32893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32894 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
32895 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
32896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32897 echo $ECHO_N "(cached) $ECHO_C" >&6
32899 ac_res=`eval echo '${'$as_ac_Header'}'`
32900 { echo "$as_me:$LINENO: result: $ac_res" >&5
32901 echo "${ECHO_T}$ac_res" >&6; }
32903 # Is the header compilable?
32904 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
32905 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
32906 cat >conftest.$ac_ext <<_ACEOF
32909 cat confdefs.h >>conftest.$ac_ext
32910 cat >>conftest.$ac_ext <<_ACEOF
32911 /* end confdefs.h. */
32912 $ac_includes_default
32913 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
32915 rm -f conftest.$ac_objext
32916 if { (ac_try="$ac_compile"
32917 case "(($ac_try" in
32918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32919 *) ac_try_echo
=$ac_try;;
32921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32922 (eval "$ac_compile") 2>conftest.er1
32924 grep -v '^ *+' conftest.er1
>conftest.err
32926 cat conftest.err
>&5
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); } && {
32929 test -z "$ac_c_werror_flag" ||
32930 test ! -s conftest.err
32931 } && test -s conftest.
$ac_objext; then
32932 ac_header_compiler
=yes
32934 echo "$as_me: failed program was:" >&5
32935 sed 's/^/| /' conftest.
$ac_ext >&5
32937 ac_header_compiler
=no
32940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32942 echo "${ECHO_T}$ac_header_compiler" >&6; }
32944 # Is the header present?
32945 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
32946 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
32947 cat >conftest.
$ac_ext <<_ACEOF
32950 cat confdefs.h
>>conftest.
$ac_ext
32951 cat >>conftest.
$ac_ext <<_ACEOF
32952 /* end confdefs.h. */
32953 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
32955 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32956 case "(($ac_try" in
32957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32958 *) ac_try_echo=$ac_try;;
32960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32963 grep -v '^ *+' conftest.er1 >conftest.err
32965 cat conftest.err >&5
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); } >/dev/null && {
32968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32969 test ! -s conftest.err
32971 ac_header_preproc=yes
32973 echo "$as_me: failed program was:" >&5
32974 sed 's/^/| /' conftest.$ac_ext >&5
32976 ac_header_preproc=no
32979 rm -f conftest.err conftest.$ac_ext
32980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32981 echo "${ECHO_T}$ac_header_preproc" >&6; }
32983 # So? What about this header?
32984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32986 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
32987 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32988 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
32989 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
32990 ac_header_preproc=yes
32993 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
32994 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
32995 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
32996 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
32997 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
32998 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
32999 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
33000 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
33001 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
33002 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
33003 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
33004 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
33006 ## ------------------------------- ##
33007 ## Report this to www.asterisk.org ##
33008 ## ------------------------------- ##
33010 ) | sed "s/^/$as_me: WARNING: /" >&2
33013 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
33014 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
33015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33016 echo $ECHO_N "(cached) $ECHO_C" >&6
33018 eval "$as_ac_Header=\$ac_header_preproc"
33020 ac_res=`eval echo '${'$as_ac_Header'}'`
33021 { echo "$as_me:$LINENO: result: $ac_res" >&5
33022 echo "${ECHO_T}$ac_res" >&6; }
33025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33026 TONEZONE_HEADER_FOUND=1
33028 TONEZONE_HEADER_FOUND=0
33033 CPPFLAGS="${saved_cppflags}"
33035 if test "xzaptel/tonezone.h" != "x" ; then
33036 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
33037 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
33038 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
33039 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
33040 echo $ECHO_N "(cached) $ECHO_C" >&6
33042 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
33043 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
33045 # Is the header compilable?
33046 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
33047 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
33048 cat >conftest.$ac_ext <<_ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h. */
33054 $ac_includes_default
33055 #include <zaptel/tonezone.h>
33057 rm -f conftest.$ac_objext
33058 if { (ac_try="$ac_compile"
33059 case "(($ac_try" in
33060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33061 *) ac_try_echo
=$ac_try;;
33063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33064 (eval "$ac_compile") 2>conftest.er1
33066 grep -v '^ *+' conftest.er1
>conftest.err
33068 cat conftest.err
>&5
33069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33070 (exit $ac_status); } && {
33071 test -z "$ac_c_werror_flag" ||
33072 test ! -s conftest.err
33073 } && test -s conftest.
$ac_objext; then
33074 ac_header_compiler
=yes
33076 echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.
$ac_ext >&5
33079 ac_header_compiler
=no
33082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33084 echo "${ECHO_T}$ac_header_compiler" >&6; }
33086 # Is the header present?
33087 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
33088 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
33089 cat >conftest.
$ac_ext <<_ACEOF
33092 cat confdefs.h
>>conftest.
$ac_ext
33093 cat >>conftest.
$ac_ext <<_ACEOF
33094 /* end confdefs.h. */
33095 #include <zaptel/tonezone.h>
33097 if { (ac_try
="$ac_cpp conftest.$ac_ext"
33098 case "(($ac_try" in
33099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33105 grep -v '^ *+' conftest.er1 >conftest.err
33107 cat conftest.err >&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } >/dev/null && {
33110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33111 test ! -s conftest.err
33113 ac_header_preproc=yes
33115 echo "$as_me: failed program was:" >&5
33116 sed 's/^/| /' conftest.$ac_ext >&5
33118 ac_header_preproc=no
33121 rm -f conftest.err conftest.$ac_ext
33122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33123 echo "${ECHO_T}$ac_header_preproc" >&6; }
33125 # So? What about this header?
33126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33128 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
33129 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33130 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
33131 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
33132 ac_header_preproc=yes
33135 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
33136 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
33137 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
33138 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
33139 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
33140 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
33141 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
33142 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
33143 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
33144 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
33145 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
33146 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
33148 ## ------------------------------- ##
33149 ## Report this to www.asterisk.org ##
33150 ## ------------------------------- ##
33152 ) | sed "s/^/$as_me: WARNING: /" >&2
33155 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
33156 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
33157 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
33158 echo $ECHO_N "(cached) $ECHO_C" >&6
33160 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
33162 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
33163 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
33166 if test $ac_cv_header_zaptel_tonezone_h = yes; then
33167 TONEZONE_HEADER_FOUND=1
33169 TONEZONE_HEADER_FOUND=0
33175 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
33176 if test -n "${TONEZONE_MANDATORY}" ;
33178 { echo "$as_me:$LINENO: ***" >&5
33179 echo "$as_me: ***" >&6;}
33180 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
33181 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
33182 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
33183 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
33184 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
33185 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
33189 TONEZONE_INCLUDE=""
33194 cat >>confdefs.h <<_ACEOF
33195 #define HAVE_TONEZONE 1
33199 elif test -n "${TONEZONE_MANDATORY}";
33201 { echo "$as_me:$LINENO: ***" >&5
33202 echo "$as_me: ***" >&6;}
33203 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
33204 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
33205 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33206 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33207 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
33208 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
33215 if test "${USE_USB}" != "no"; then
33217 if test "x${USB_DIR}" != "x"; then
33218 if test -d ${USB_DIR}/lib; then
33219 pbxlibdir="-L${USB_DIR}/lib"
33221 pbxlibdir="-L${USB_DIR}"
33224 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
33225 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
33226 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
33227 echo $ECHO_N "(cached) $ECHO_C" >&6
33229 ac_check_lib_save_LIBS=$LIBS
33230 LIBS="-lusb ${pbxlibdir} $LIBS"
33231 cat >conftest.$ac_ext <<_ACEOF
33234 cat confdefs.h >>conftest.$ac_ext
33235 cat >>conftest.$ac_ext <<_ACEOF
33236 /* end confdefs.h. */
33238 /* Override any GCC internal prototype to avoid an error.
33239 Use char because int might match the return type of a GCC
33240 builtin and then its argument prototype would still apply. */
33248 return usb_init ();
33253 rm -f conftest.$ac_objext conftest$ac_exeext
33254 if { (ac_try="$ac_link"
33255 case "(($ac_try" in
33256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33257 *) ac_try_echo
=$ac_try;;
33259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33260 (eval "$ac_link") 2>conftest.er1
33262 grep -v '^ *+' conftest.er1
>conftest.err
33264 cat conftest.err
>&5
33265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); } && {
33267 test -z "$ac_c_werror_flag" ||
33268 test ! -s conftest.err
33269 } && test -s conftest
$ac_exeext &&
33270 $as_test_x conftest
$ac_exeext; then
33271 ac_cv_lib_usb_usb_init
=yes
33273 echo "$as_me: failed program was:" >&5
33274 sed 's/^/| /' conftest.
$ac_ext >&5
33276 ac_cv_lib_usb_usb_init
=no
33279 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
33280 conftest
$ac_exeext conftest.
$ac_ext
33281 LIBS
=$ac_check_lib_save_LIBS
33283 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
33284 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
33285 if test $ac_cv_lib_usb_usb_init = yes; then
33292 if test "${AST_USB_FOUND}" = "yes"; then
33294 USB_HEADER_FOUND
="1"
33295 if test "x${USB_DIR}" != "x"; then
33296 USB_LIB
="${pbxlibdir} ${USB_LIB}"
33297 USB_INCLUDE
="-I${USB_DIR}/include"
33298 saved_cppflags
="${CPPFLAGS}"
33299 CPPFLAGS
="${CPPFLAGS} -I${USB_DIR}/include"
33300 if test "xusb.h" != "x" ; then
33301 as_ac_Header
=`echo "ac_cv_header_${USB_DIR}/include/usb.h" | $as_tr_sh`
33302 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33303 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
33304 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
33305 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33306 echo $ECHO_N "(cached) $ECHO_C" >&6
33308 ac_res
=`eval echo '${'$as_ac_Header'}'`
33309 { echo "$as_me:$LINENO: result: $ac_res" >&5
33310 echo "${ECHO_T}$ac_res" >&6; }
33312 # Is the header compilable?
33313 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
33314 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
33315 cat >conftest.
$ac_ext <<_ACEOF
33318 cat confdefs.h
>>conftest.
$ac_ext
33319 cat >>conftest.
$ac_ext <<_ACEOF
33320 /* end confdefs.h. */
33321 $ac_includes_default
33322 #include <${USB_DIR}/include/usb.h>
33324 rm -f conftest.
$ac_objext
33325 if { (ac_try
="$ac_compile"
33326 case "(($ac_try" in
33327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33328 *) ac_try_echo=$ac_try;;
33330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331 (eval "$ac_compile") 2>conftest.er1
33333 grep -v '^ *+' conftest.er1 >conftest.err
33335 cat conftest.err >&5
33336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337 (exit $ac_status); } && {
33338 test -z "$ac_c_werror_flag" ||
33339 test ! -s conftest.err
33340 } && test -s conftest.$ac_objext; then
33341 ac_header_compiler=yes
33343 echo "$as_me: failed program was:" >&5
33344 sed 's/^/| /' conftest.$ac_ext >&5
33346 ac_header_compiler=no
33349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33351 echo "${ECHO_T}$ac_header_compiler" >&6; }
33353 # Is the header present?
33354 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
33355 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
33356 cat >conftest.$ac_ext <<_ACEOF
33359 cat confdefs.h >>conftest.$ac_ext
33360 cat >>conftest.$ac_ext <<_ACEOF
33361 /* end confdefs.h. */
33362 #include <${USB_DIR}/include/usb.h>
33364 if { (ac_try="$ac_cpp conftest.$ac_ext"
33365 case "(($ac_try" in
33366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33367 *) ac_try_echo
=$ac_try;;
33369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33372 grep -v '^ *+' conftest.er1
>conftest.err
33374 cat conftest.err
>&5
33375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 (exit $ac_status); } >/dev
/null
&& {
33377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33378 test ! -s conftest.err
33380 ac_header_preproc
=yes
33382 echo "$as_me: failed program was:" >&5
33383 sed 's/^/| /' conftest.
$ac_ext >&5
33385 ac_header_preproc
=no
33388 rm -f conftest.err conftest.
$ac_ext
33389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33390 echo "${ECHO_T}$ac_header_preproc" >&6; }
33392 # So? What about this header?
33393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33395 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
33396 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33397 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
33398 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
33399 ac_header_preproc
=yes
33402 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
33403 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
33404 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
33405 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
33406 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
33407 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
33408 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
33409 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
33410 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
33411 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
33412 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
33413 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
33415 ## ------------------------------- ##
33416 ## Report this to www.asterisk.org ##
33417 ## ------------------------------- ##
33419 ) |
sed "s/^/$as_me: WARNING: /" >&2
33422 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
33423 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
33424 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33425 echo $ECHO_N "(cached) $ECHO_C" >&6
33427 eval "$as_ac_Header=\$ac_header_preproc"
33429 ac_res
=`eval echo '${'$as_ac_Header'}'`
33430 { echo "$as_me:$LINENO: result: $ac_res" >&5
33431 echo "${ECHO_T}$ac_res" >&6; }
33434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33442 CPPFLAGS
="${saved_cppflags}"
33444 if test "xusb.h" != "x" ; then
33445 if test "${ac_cv_header_usb_h+set}" = set; then
33446 { echo "$as_me:$LINENO: checking for usb.h" >&5
33447 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
33448 if test "${ac_cv_header_usb_h+set}" = set; then
33449 echo $ECHO_N "(cached) $ECHO_C" >&6
33451 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
33452 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
33454 # Is the header compilable?
33455 { echo "$as_me:$LINENO: checking usb.h usability" >&5
33456 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
33457 cat >conftest.
$ac_ext <<_ACEOF
33460 cat confdefs.h
>>conftest.
$ac_ext
33461 cat >>conftest.
$ac_ext <<_ACEOF
33462 /* end confdefs.h. */
33463 $ac_includes_default
33466 rm -f conftest.
$ac_objext
33467 if { (ac_try
="$ac_compile"
33468 case "(($ac_try" in
33469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33470 *) ac_try_echo=$ac_try;;
33472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473 (eval "$ac_compile") 2>conftest.er1
33475 grep -v '^ *+' conftest.er1 >conftest.err
33477 cat conftest.err >&5
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); } && {
33480 test -z "$ac_c_werror_flag" ||
33481 test ! -s conftest.err
33482 } && test -s conftest.$ac_objext; then
33483 ac_header_compiler=yes
33485 echo "$as_me: failed program was:" >&5
33486 sed 's/^/| /' conftest.$ac_ext >&5
33488 ac_header_compiler=no
33491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33493 echo "${ECHO_T}$ac_header_compiler" >&6; }
33495 # Is the header present?
33496 { echo "$as_me:$LINENO: checking usb.h presence" >&5
33497 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
33498 cat >conftest.$ac_ext <<_ACEOF
33501 cat confdefs.h >>conftest.$ac_ext
33502 cat >>conftest.$ac_ext <<_ACEOF
33503 /* end confdefs.h. */
33506 if { (ac_try="$ac_cpp conftest.$ac_ext"
33507 case "(($ac_try" in
33508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33509 *) ac_try_echo
=$ac_try;;
33511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33514 grep -v '^ *+' conftest.er1
>conftest.err
33516 cat conftest.err
>&5
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); } >/dev
/null
&& {
33519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33520 test ! -s conftest.err
33522 ac_header_preproc
=yes
33524 echo "$as_me: failed program was:" >&5
33525 sed 's/^/| /' conftest.
$ac_ext >&5
33527 ac_header_preproc
=no
33530 rm -f conftest.err conftest.
$ac_ext
33531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33532 echo "${ECHO_T}$ac_header_preproc" >&6; }
33534 # So? What about this header?
33535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33537 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
33538 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33539 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
33540 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
33541 ac_header_preproc
=yes
33544 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
33545 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
33546 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
33547 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
33548 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
33549 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
33550 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
33551 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
33552 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
33553 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
33554 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
33555 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
33557 ## ------------------------------- ##
33558 ## Report this to www.asterisk.org ##
33559 ## ------------------------------- ##
33561 ) |
sed "s/^/$as_me: WARNING: /" >&2
33564 { echo "$as_me:$LINENO: checking for usb.h" >&5
33565 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
33566 if test "${ac_cv_header_usb_h+set}" = set; then
33567 echo $ECHO_N "(cached) $ECHO_C" >&6
33569 ac_cv_header_usb_h
=$ac_header_preproc
33571 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
33572 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
33575 if test $ac_cv_header_usb_h = yes; then
33584 if test "x${USB_HEADER_FOUND}" = "x0" ; then
33585 if test -n "${USB_MANDATORY}" ;
33587 { echo "$as_me:$LINENO: ***" >&5
33588 echo "$as_me: ***" >&6;}
33589 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
33590 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
33591 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
33592 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
33593 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
33594 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
33603 cat >>confdefs.h
<<_ACEOF
33608 elif test -n "${USB_MANDATORY}";
33610 { echo "$as_me:$LINENO: ***" >&5
33611 echo "$as_me: ***" >&6;}
33612 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
33613 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
33614 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33615 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33616 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
33617 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
33624 if test "${USE_VORBIS}" != "no"; then
33626 if test "x${VORBIS_DIR}" != "x"; then
33627 if test -d ${VORBIS_DIR}/lib
; then
33628 pbxlibdir
="-L${VORBIS_DIR}/lib"
33630 pbxlibdir
="-L${VORBIS_DIR}"
33633 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
33634 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
33635 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
33636 echo $ECHO_N "(cached) $ECHO_C" >&6
33638 ac_check_lib_save_LIBS
=$LIBS
33639 LIBS
="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
33640 cat >conftest.
$ac_ext <<_ACEOF
33643 cat confdefs.h
>>conftest.
$ac_ext
33644 cat >>conftest.
$ac_ext <<_ACEOF
33645 /* end confdefs.h. */
33647 /* Override any GCC internal prototype to avoid an error.
33648 Use char because int might match the return type of a GCC
33649 builtin and then its argument prototype would still apply. */
33653 char vorbis_info_init ();
33657 return vorbis_info_init ();
33662 rm -f conftest.
$ac_objext conftest
$ac_exeext
33663 if { (ac_try
="$ac_link"
33664 case "(($ac_try" in
33665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33666 *) ac_try_echo=$ac_try;;
33668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33669 (eval "$ac_link") 2>conftest.er1
33671 grep -v '^ *+' conftest.er1 >conftest.err
33673 cat conftest.err >&5
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); } && {
33676 test -z "$ac_c_werror_flag" ||
33677 test ! -s conftest.err
33678 } && test -s conftest$ac_exeext &&
33679 $as_test_x conftest$ac_exeext; then
33680 ac_cv_lib_vorbis_vorbis_info_init=yes
33682 echo "$as_me: failed program was:" >&5
33683 sed 's/^/| /' conftest.$ac_ext >&5
33685 ac_cv_lib_vorbis_vorbis_info_init=no
33688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33689 conftest$ac_exeext conftest.$ac_ext
33690 LIBS=$ac_check_lib_save_LIBS
33692 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
33693 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
33694 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
33695 AST_VORBIS_FOUND=yes
33697 AST_VORBIS_FOUND=no
33701 if test "${AST_VORBIS_FOUND}" = "yes"; then
33702 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
33703 VORBIS_HEADER_FOUND="1"
33704 if test "x${VORBIS_DIR}" != "x"; then
33705 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
33706 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
33707 saved_cppflags="${CPPFLAGS}"
33708 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
33709 if test "xvorbis/codec.h" != "x" ; then
33710 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" |
$as_tr_sh`
33711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33712 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
33713 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
33714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33715 echo $ECHO_N "(cached) $ECHO_C" >&6
33717 ac_res=`eval echo '${'$as_ac_Header'}'`
33718 { echo "$as_me:$LINENO: result: $ac_res" >&5
33719 echo "${ECHO_T}$ac_res" >&6; }
33721 # Is the header compilable?
33722 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
33723 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
33724 cat >conftest.$ac_ext <<_ACEOF
33727 cat confdefs.h >>conftest.$ac_ext
33728 cat >>conftest.$ac_ext <<_ACEOF
33729 /* end confdefs.h. */
33730 $ac_includes_default
33731 #include <${VORBIS_DIR}/include/vorbis/codec.h>
33733 rm -f conftest.$ac_objext
33734 if { (ac_try="$ac_compile"
33735 case "(($ac_try" in
33736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33737 *) ac_try_echo
=$ac_try;;
33739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33740 (eval "$ac_compile") 2>conftest.er1
33742 grep -v '^ *+' conftest.er1
>conftest.err
33744 cat conftest.err
>&5
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); } && {
33747 test -z "$ac_c_werror_flag" ||
33748 test ! -s conftest.err
33749 } && test -s conftest.
$ac_objext; then
33750 ac_header_compiler
=yes
33752 echo "$as_me: failed program was:" >&5
33753 sed 's/^/| /' conftest.
$ac_ext >&5
33755 ac_header_compiler
=no
33758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33760 echo "${ECHO_T}$ac_header_compiler" >&6; }
33762 # Is the header present?
33763 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
33764 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
33765 cat >conftest.
$ac_ext <<_ACEOF
33768 cat confdefs.h
>>conftest.
$ac_ext
33769 cat >>conftest.
$ac_ext <<_ACEOF
33770 /* end confdefs.h. */
33771 #include <${VORBIS_DIR}/include/vorbis/codec.h>
33773 if { (ac_try
="$ac_cpp conftest.$ac_ext"
33774 case "(($ac_try" in
33775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33776 *) ac_try_echo=$ac_try;;
33778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33781 grep -v '^ *+' conftest.er1 >conftest.err
33783 cat conftest.err >&5
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); } >/dev/null && {
33786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33787 test ! -s conftest.err
33789 ac_header_preproc=yes
33791 echo "$as_me: failed program was:" >&5
33792 sed 's/^/| /' conftest.$ac_ext >&5
33794 ac_header_preproc=no
33797 rm -f conftest.err conftest.$ac_ext
33798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33799 echo "${ECHO_T}$ac_header_preproc" >&6; }
33801 # So? What about this header?
33802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33804 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
33805 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33806 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
33807 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
33808 ac_header_preproc=yes
33811 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
33812 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
33813 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
33814 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
33815 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
33816 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
33817 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
33818 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
33819 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
33820 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
33821 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
33822 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
33824 ## ------------------------------- ##
33825 ## Report this to www.asterisk.org ##
33826 ## ------------------------------- ##
33828 ) | sed "s/^/$as_me: WARNING: /" >&2
33831 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
33832 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
33833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33834 echo $ECHO_N "(cached) $ECHO_C" >&6
33836 eval "$as_ac_Header=\$ac_header_preproc"
33838 ac_res=`eval echo '${'$as_ac_Header'}'`
33839 { echo "$as_me:$LINENO: result: $ac_res" >&5
33840 echo "${ECHO_T}$ac_res" >&6; }
33843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33844 VORBIS_HEADER_FOUND=1
33846 VORBIS_HEADER_FOUND=0
33851 CPPFLAGS="${saved_cppflags}"
33853 if test "xvorbis/codec.h" != "x" ; then
33854 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33855 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
33856 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
33857 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33858 echo $ECHO_N "(cached) $ECHO_C" >&6
33860 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
33861 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
33863 # Is the header compilable?
33864 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
33865 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
33866 cat >conftest.$ac_ext <<_ACEOF
33869 cat confdefs.h >>conftest.$ac_ext
33870 cat >>conftest.$ac_ext <<_ACEOF
33871 /* end confdefs.h. */
33872 $ac_includes_default
33873 #include <vorbis/codec.h>
33875 rm -f conftest.$ac_objext
33876 if { (ac_try="$ac_compile"
33877 case "(($ac_try" in
33878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33879 *) ac_try_echo
=$ac_try;;
33881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33882 (eval "$ac_compile") 2>conftest.er1
33884 grep -v '^ *+' conftest.er1
>conftest.err
33886 cat conftest.err
>&5
33887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888 (exit $ac_status); } && {
33889 test -z "$ac_c_werror_flag" ||
33890 test ! -s conftest.err
33891 } && test -s conftest.
$ac_objext; then
33892 ac_header_compiler
=yes
33894 echo "$as_me: failed program was:" >&5
33895 sed 's/^/| /' conftest.
$ac_ext >&5
33897 ac_header_compiler
=no
33900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33902 echo "${ECHO_T}$ac_header_compiler" >&6; }
33904 # Is the header present?
33905 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
33906 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
33907 cat >conftest.
$ac_ext <<_ACEOF
33910 cat confdefs.h
>>conftest.
$ac_ext
33911 cat >>conftest.
$ac_ext <<_ACEOF
33912 /* end confdefs.h. */
33913 #include <vorbis/codec.h>
33915 if { (ac_try
="$ac_cpp conftest.$ac_ext"
33916 case "(($ac_try" in
33917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33918 *) ac_try_echo=$ac_try;;
33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33923 grep -v '^ *+' conftest.er1 >conftest.err
33925 cat conftest.err >&5
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } >/dev/null && {
33928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33929 test ! -s conftest.err
33931 ac_header_preproc=yes
33933 echo "$as_me: failed program was:" >&5
33934 sed 's/^/| /' conftest.$ac_ext >&5
33936 ac_header_preproc=no
33939 rm -f conftest.err conftest.$ac_ext
33940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33941 echo "${ECHO_T}$ac_header_preproc" >&6; }
33943 # So? What about this header?
33944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33946 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
33947 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33948 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
33949 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
33950 ac_header_preproc=yes
33953 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
33954 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
33955 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
33956 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
33957 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
33958 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
33959 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
33960 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
33961 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
33962 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
33963 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
33964 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
33966 ## ------------------------------- ##
33967 ## Report this to www.asterisk.org ##
33968 ## ------------------------------- ##
33970 ) | sed "s/^/$as_me: WARNING: /" >&2
33973 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
33974 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
33975 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33976 echo $ECHO_N "(cached) $ECHO_C" >&6
33978 ac_cv_header_vorbis_codec_h=$ac_header_preproc
33980 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
33981 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
33984 if test $ac_cv_header_vorbis_codec_h = yes; then
33985 VORBIS_HEADER_FOUND=1
33987 VORBIS_HEADER_FOUND=0
33993 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
33994 if test -n "${VORBIS_MANDATORY}" ;
33996 { echo "$as_me:$LINENO: ***" >&5
33997 echo "$as_me: ***" >&6;}
33998 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
33999 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
34000 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
34001 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
34002 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
34003 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
34012 cat >>confdefs.h <<_ACEOF
34013 #define HAVE_VORBIS 1
34017 elif test -n "${VORBIS_MANDATORY}";
34019 { echo "$as_me:$LINENO: ***" >&5
34020 echo "$as_me: ***" >&6;}
34021 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
34022 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
34023 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34024 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34025 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
34026 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
34033 ac_cpp='$CXXCPP $CPPFLAGS'
34034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34039 if test "${USE_VPB}" != "no"; then
34040 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
34041 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
34042 saved_libs="${LIBS}"
34043 saved_cppflags="${CPPFLAGS}"
34044 if test "x${VPB_DIR}" != "x"; then
34045 if test -d ${VPB_DIR}/lib; then
34046 vpblibdir=${VPB_DIR}/lib
34048 vpblibdir=${VPB_DIR}
34050 LIBS="${LIBS} -L${vpblibdir}"
34051 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
34053 LIBS="${LIBS} -lvpb -lpthread"
34054 cat >conftest.$ac_ext <<_ACEOF
34058 cat confdefs.h >>conftest.$ac_ext
34059 cat >>conftest.$ac_ext <<_ACEOF
34060 /* end confdefs.h. */
34061 #include <vpbapi.h>
34065 int q = vpb_open(0,0);
34071 rm -f conftest.$ac_objext conftest$ac_exeext
34072 if { (ac_try="$ac_link"
34073 case "(($ac_try" in
34074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34075 *) ac_try_echo
=$ac_try;;
34077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34078 (eval "$ac_link") 2>conftest.er1
34080 grep -v '^ *+' conftest.er1
>conftest.err
34082 cat conftest.err
>&5
34083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34084 (exit $ac_status); } && {
34085 test -z "$ac_cxx_werror_flag" ||
34086 test ! -s conftest.err
34087 } && test -s conftest
$ac_exeext &&
34088 $as_test_x conftest
$ac_exeext; then
34089 { echo "$as_me:$LINENO: result: yes" >&5
34090 echo "${ECHO_T}yes" >&6; }
34091 ac_cv_lib_vpb_vpb_open
="yes"
34094 echo "$as_me: failed program was:" >&5
34095 sed 's/^/| /' conftest.
$ac_ext >&5
34097 { echo "$as_me:$LINENO: result: no" >&5
34098 echo "${ECHO_T}no" >&6; }
34099 ac_cv_lib_vpb_vpb_open
="no"
34104 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
34105 conftest
$ac_exeext conftest.
$ac_ext
34106 LIBS
="${saved_libs}"
34107 CPPFLAGS
="${saved_cppflags}"
34108 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
34110 if test "${VPB_DIR}" != ""; then
34111 VPB_LIB
="-L${vpblibdir} ${VPB_LIB}"
34112 VPB_INCLUDE
="-I${VPB_DIR}/include"
34116 cat >>confdefs.h
<<\_ACEOF
34120 elif test -n "${VPB_MANDATORY}"; then
34121 { echo "$as_me:$LINENO: ***" >&5
34122 echo "$as_me: ***" >&6;}
34123 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
34124 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
34125 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34126 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34127 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
34128 echo "$as_me: *** including --without-vpb." >&6;}
34134 ac_cpp
='$CPP $CPPFLAGS'
34135 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34136 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34137 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34141 if test "${USE_ZLIB}" != "no"; then
34143 if test "x${ZLIB_DIR}" != "x"; then
34144 if test -d ${ZLIB_DIR}/lib
; then
34145 pbxlibdir
="-L${ZLIB_DIR}/lib"
34147 pbxlibdir
="-L${ZLIB_DIR}"
34150 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
34151 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
34152 if test "${ac_cv_lib_z_compress+set}" = set; then
34153 echo $ECHO_N "(cached) $ECHO_C" >&6
34155 ac_check_lib_save_LIBS
=$LIBS
34156 LIBS
="-lz ${pbxlibdir} $LIBS"
34157 cat >conftest.
$ac_ext <<_ACEOF
34160 cat confdefs.h
>>conftest.
$ac_ext
34161 cat >>conftest.
$ac_ext <<_ACEOF
34162 /* end confdefs.h. */
34164 /* Override any GCC internal prototype to avoid an error.
34165 Use char because int might match the return type of a GCC
34166 builtin and then its argument prototype would still apply. */
34174 return compress ();
34179 rm -f conftest.
$ac_objext conftest
$ac_exeext
34180 if { (ac_try
="$ac_link"
34181 case "(($ac_try" in
34182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34183 *) ac_try_echo=$ac_try;;
34185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34186 (eval "$ac_link") 2>conftest.er1
34188 grep -v '^ *+' conftest.er1 >conftest.err
34190 cat conftest.err >&5
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); } && {
34193 test -z "$ac_c_werror_flag" ||
34194 test ! -s conftest.err
34195 } && test -s conftest$ac_exeext &&
34196 $as_test_x conftest$ac_exeext; then
34197 ac_cv_lib_z_compress=yes
34199 echo "$as_me: failed program was:" >&5
34200 sed 's/^/| /' conftest.$ac_ext >&5
34202 ac_cv_lib_z_compress=no
34205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34206 conftest$ac_exeext conftest.$ac_ext
34207 LIBS=$ac_check_lib_save_LIBS
34209 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
34210 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
34211 if test $ac_cv_lib_z_compress = yes; then
34218 if test "${AST_ZLIB_FOUND}" = "yes"; then
34220 ZLIB_HEADER_FOUND="1"
34221 if test "x${ZLIB_DIR}" != "x"; then
34222 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
34223 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
34224 saved_cppflags="${CPPFLAGS}"
34225 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
34226 if test "xzlib.h" != "x" ; then
34227 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" |
$as_tr_sh`
34228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34229 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
34230 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
34231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34232 echo $ECHO_N "(cached) $ECHO_C" >&6
34234 ac_res=`eval echo '${'$as_ac_Header'}'`
34235 { echo "$as_me:$LINENO: result: $ac_res" >&5
34236 echo "${ECHO_T}$ac_res" >&6; }
34238 # Is the header compilable?
34239 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
34240 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
34241 cat >conftest.$ac_ext <<_ACEOF
34244 cat confdefs.h >>conftest.$ac_ext
34245 cat >>conftest.$ac_ext <<_ACEOF
34246 /* end confdefs.h. */
34247 $ac_includes_default
34248 #include <${ZLIB_DIR}/include/zlib.h>
34250 rm -f conftest.$ac_objext
34251 if { (ac_try="$ac_compile"
34252 case "(($ac_try" in
34253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34254 *) ac_try_echo
=$ac_try;;
34256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34257 (eval "$ac_compile") 2>conftest.er1
34259 grep -v '^ *+' conftest.er1
>conftest.err
34261 cat conftest.err
>&5
34262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263 (exit $ac_status); } && {
34264 test -z "$ac_c_werror_flag" ||
34265 test ! -s conftest.err
34266 } && test -s conftest.
$ac_objext; then
34267 ac_header_compiler
=yes
34269 echo "$as_me: failed program was:" >&5
34270 sed 's/^/| /' conftest.
$ac_ext >&5
34272 ac_header_compiler
=no
34275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34277 echo "${ECHO_T}$ac_header_compiler" >&6; }
34279 # Is the header present?
34280 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
34281 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
34282 cat >conftest.
$ac_ext <<_ACEOF
34285 cat confdefs.h
>>conftest.
$ac_ext
34286 cat >>conftest.
$ac_ext <<_ACEOF
34287 /* end confdefs.h. */
34288 #include <${ZLIB_DIR}/include/zlib.h>
34290 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34291 case "(($ac_try" in
34292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34293 *) ac_try_echo=$ac_try;;
34295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34298 grep -v '^ *+' conftest.er1 >conftest.err
34300 cat conftest.err >&5
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); } >/dev/null && {
34303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34304 test ! -s conftest.err
34306 ac_header_preproc=yes
34308 echo "$as_me: failed program was:" >&5
34309 sed 's/^/| /' conftest.$ac_ext >&5
34311 ac_header_preproc=no
34314 rm -f conftest.err conftest.$ac_ext
34315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34316 echo "${ECHO_T}$ac_header_preproc" >&6; }
34318 # So? What about this header?
34319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34321 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34322 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34323 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
34324 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
34325 ac_header_preproc=yes
34328 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
34329 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
34330 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
34331 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
34332 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
34333 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
34334 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
34335 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34336 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
34337 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
34338 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
34339 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
34341 ## ------------------------------- ##
34342 ## Report this to www.asterisk.org ##
34343 ## ------------------------------- ##
34345 ) | sed "s/^/$as_me: WARNING: /" >&2
34348 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
34349 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
34350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34351 echo $ECHO_N "(cached) $ECHO_C" >&6
34353 eval "$as_ac_Header=\$ac_header_preproc"
34355 ac_res=`eval echo '${'$as_ac_Header'}'`
34356 { echo "$as_me:$LINENO: result: $ac_res" >&5
34357 echo "${ECHO_T}$ac_res" >&6; }
34360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34361 ZLIB_HEADER_FOUND=1
34363 ZLIB_HEADER_FOUND=0
34368 CPPFLAGS="${saved_cppflags}"
34370 if test "xzlib.h" != "x" ; then
34371 if test "${ac_cv_header_zlib_h+set}" = set; then
34372 { echo "$as_me:$LINENO: checking for zlib.h" >&5
34373 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
34374 if test "${ac_cv_header_zlib_h+set}" = set; then
34375 echo $ECHO_N "(cached) $ECHO_C" >&6
34377 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
34378 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
34380 # Is the header compilable?
34381 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
34382 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
34383 cat >conftest.$ac_ext <<_ACEOF
34386 cat confdefs.h >>conftest.$ac_ext
34387 cat >>conftest.$ac_ext <<_ACEOF
34388 /* end confdefs.h. */
34389 $ac_includes_default
34392 rm -f conftest.$ac_objext
34393 if { (ac_try="$ac_compile"
34394 case "(($ac_try" in
34395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34396 *) ac_try_echo
=$ac_try;;
34398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34399 (eval "$ac_compile") 2>conftest.er1
34401 grep -v '^ *+' conftest.er1
>conftest.err
34403 cat conftest.err
>&5
34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); } && {
34406 test -z "$ac_c_werror_flag" ||
34407 test ! -s conftest.err
34408 } && test -s conftest.
$ac_objext; then
34409 ac_header_compiler
=yes
34411 echo "$as_me: failed program was:" >&5
34412 sed 's/^/| /' conftest.
$ac_ext >&5
34414 ac_header_compiler
=no
34417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34419 echo "${ECHO_T}$ac_header_compiler" >&6; }
34421 # Is the header present?
34422 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
34423 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
34424 cat >conftest.
$ac_ext <<_ACEOF
34427 cat confdefs.h
>>conftest.
$ac_ext
34428 cat >>conftest.
$ac_ext <<_ACEOF
34429 /* end confdefs.h. */
34432 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34433 case "(($ac_try" in
34434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34435 *) ac_try_echo=$ac_try;;
34437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34440 grep -v '^ *+' conftest.er1 >conftest.err
34442 cat conftest.err >&5
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); } >/dev/null && {
34445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34446 test ! -s conftest.err
34448 ac_header_preproc=yes
34450 echo "$as_me: failed program was:" >&5
34451 sed 's/^/| /' conftest.$ac_ext >&5
34453 ac_header_preproc=no
34456 rm -f conftest.err conftest.$ac_ext
34457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34458 echo "${ECHO_T}$ac_header_preproc" >&6; }
34460 # So? What about this header?
34461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34463 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34464 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34465 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
34466 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
34467 ac_header_preproc=yes
34470 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
34471 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
34472 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
34473 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
34474 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
34475 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
34476 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
34477 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34478 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
34479 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
34480 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
34481 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
34483 ## ------------------------------- ##
34484 ## Report this to www.asterisk.org ##
34485 ## ------------------------------- ##
34487 ) | sed "s/^/$as_me: WARNING: /" >&2
34490 { echo "$as_me:$LINENO: checking for zlib.h" >&5
34491 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
34492 if test "${ac_cv_header_zlib_h+set}" = set; then
34493 echo $ECHO_N "(cached) $ECHO_C" >&6
34495 ac_cv_header_zlib_h=$ac_header_preproc
34497 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
34498 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
34501 if test $ac_cv_header_zlib_h = yes; then
34502 ZLIB_HEADER_FOUND=1
34504 ZLIB_HEADER_FOUND=0
34510 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
34511 if test -n "${ZLIB_MANDATORY}" ;
34513 { echo "$as_me:$LINENO: ***" >&5
34514 echo "$as_me: ***" >&6;}
34515 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
34516 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
34517 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
34518 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
34519 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
34520 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
34529 cat >>confdefs.h <<_ACEOF
34530 #define HAVE_ZLIB 1
34534 elif test -n "${ZLIB_MANDATORY}";
34536 { echo "$as_me:$LINENO: ***" >&5
34537 echo "$as_me: ***" >&6;}
34538 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
34539 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
34540 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34541 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34542 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
34543 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
34549 if test "${USE_ZAPTEL}" != "no"; then
34550 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
34551 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
34552 saved_cppflags="${CPPFLAGS}"
34553 if test "x${ZAPTEL_DIR}" != "x"; then
34554 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34556 cat >conftest.$ac_ext <<_ACEOF
34560 cat confdefs.h >>conftest.$ac_ext
34561 cat >>conftest.$ac_ext <<_ACEOF
34562 /* end confdefs.h. */
34563 #include <zaptel/zaptel.h>
34567 int foo = ZT_DIAL_OP_CANCEL;
34573 rm -f conftest.$ac_objext
34574 if { (ac_try="$ac_compile"
34575 case "(($ac_try" in
34576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34577 *) ac_try_echo
=$ac_try;;
34579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34580 (eval "$ac_compile") 2>conftest.er1
34582 grep -v '^ *+' conftest.er1
>conftest.err
34584 cat conftest.err
>&5
34585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34586 (exit $ac_status); } && {
34587 test -z "$ac_c_werror_flag" ||
34588 test ! -s conftest.err
34589 } && test -s conftest.
$ac_objext; then
34590 { echo "$as_me:$LINENO: result: yes" >&5
34591 echo "${ECHO_T}yes" >&6; }
34592 ac_cv_zaptel_h
="yes"
34595 echo "$as_me: failed program was:" >&5
34596 sed 's/^/| /' conftest.
$ac_ext >&5
34598 { echo "$as_me:$LINENO: result: no" >&5
34599 echo "${ECHO_T}no" >&6; }
34600 ac_cv_zaptel_h
="no"
34605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34606 CPPFLAGS
="${saved_cppflags}"
34607 if test "${ac_cv_zaptel_h}" = "yes"; then
34608 if test "${ZAPTEL_DIR}" != ""; then
34609 ZAPTEL_INCLUDE
="-I${ZAPTEL_DIR}/include"
34613 cat >>confdefs.h
<<\_ACEOF
34614 #define HAVE_ZAPTEL 1
34617 elif test -n "${ZAPTEL_MANDATORY}";
34619 { echo "$as_me:$LINENO: ***" >&5
34620 echo "$as_me: ***" >&6;}
34621 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
34622 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
34623 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34624 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34625 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
34626 echo "$as_me: *** including --without-zaptel." >&6;}
34631 if test "${PBX_ZAPTEL}" = 1; then
34632 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
34633 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
34634 saved_cppflags
="${CPPFLAGS}"
34635 if test "x${ZAPTEL_DIR}" != "x"; then
34636 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34638 cat >conftest.
$ac_ext <<_ACEOF
34642 cat confdefs.h
>>conftest.
$ac_ext
34643 cat >>conftest.
$ac_ext <<_ACEOF
34644 /* end confdefs.h. */
34645 #include <zaptel/zaptel.h>
34649 int foo = ZT_EVENT_REMOVED;
34655 rm -f conftest.
$ac_objext
34656 if { (ac_try
="$ac_compile"
34657 case "(($ac_try" in
34658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34659 *) ac_try_echo=$ac_try;;
34661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34662 (eval "$ac_compile") 2>conftest.er1
34664 grep -v '^ *+' conftest.er1 >conftest.err
34666 cat conftest.err >&5
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); } && {
34669 test -z "$ac_c_werror_flag" ||
34670 test ! -s conftest.err
34671 } && test -s conftest.$ac_objext; then
34672 { echo "$as_me:$LINENO: result: yes" >&5
34673 echo "${ECHO_T}yes" >&6; }
34674 ac_cv_zaptel_vldtmf="yes"
34677 echo "$as_me: failed program was:" >&5
34678 sed 's/^/| /' conftest.$ac_ext >&5
34680 { echo "$as_me:$LINENO: result: no" >&5
34681 echo "${ECHO_T}no" >&6; }
34682 ac_cv_zaptel_vldtmf="no"
34687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34688 CPPFLAGS="${saved_cppflags}"
34689 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
34690 PBX_ZAPTEL_VLDTMF=1
34692 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
34693 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
34694 saved_cppflags="${CPPFLAGS}"
34695 if test "x${ZAPTEL_DIR}" != "x"; then
34696 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34698 cat >conftest.$ac_ext <<_ACEOF
34702 cat confdefs.h >>conftest.$ac_ext
34703 cat >>conftest.$ac_ext <<_ACEOF
34704 /* end confdefs.h. */
34705 #include <zaptel/zaptel.h>
34709 int foo = ZT_TCOP_ALLOCATE;
34715 rm -f conftest.$ac_objext
34716 if { (ac_try="$ac_compile"
34717 case "(($ac_try" in
34718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34719 *) ac_try_echo
=$ac_try;;
34721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34722 (eval "$ac_compile") 2>conftest.er1
34724 grep -v '^ *+' conftest.er1
>conftest.err
34726 cat conftest.err
>&5
34727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728 (exit $ac_status); } && {
34729 test -z "$ac_c_werror_flag" ||
34730 test ! -s conftest.err
34731 } && test -s conftest.
$ac_objext; then
34732 { echo "$as_me:$LINENO: result: yes" >&5
34733 echo "${ECHO_T}yes" >&6; }
34734 ac_cv_zaptel_transcode
="yes"
34737 echo "$as_me: failed program was:" >&5
34738 sed 's/^/| /' conftest.
$ac_ext >&5
34740 { echo "$as_me:$LINENO: result: no" >&5
34741 echo "${ECHO_T}no" >&6; }
34742 ac_cv_zaptel_transcode
="no"
34747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34748 CPPFLAGS
="${saved_cppflags}"
34749 if test "${ac_cv_zaptel_transcode}" = "yes"; then
34750 PBX_ZAPTEL_TRANSCODE
=1
34757 if test "x$TERMCAP_LIB" != "x" ; then
34758 EDITLINE_LIB
="$TERMCAP_LIB"
34759 elif test "x$TINFO_LIB" != "x" ; then
34760 EDITLINE_LIB
="$TINFO_LIB"
34761 elif test "x$CURSES_LIB" != "x" ; then
34762 EDITLINE_LIB
="$CURSES_LIB"
34763 elif test "x$NCURSES_LIB" != "x" ; then
34764 EDITLINE_LIB
="$NCURSES_LIB"
34766 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
34767 echo "$as_me: error: *** termcap support not found" >&2;}
34768 { (exit 1); exit 1; }; }
34772 if test "${ac_cv_header_h323_h+set}" = set; then
34773 { echo "$as_me:$LINENO: checking for h323.h" >&5
34774 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
34775 if test "${ac_cv_header_h323_h+set}" = set; then
34776 echo $ECHO_N "(cached) $ECHO_C" >&6
34778 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
34779 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
34781 # Is the header compilable?
34782 { echo "$as_me:$LINENO: checking h323.h usability" >&5
34783 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
34784 cat >conftest.
$ac_ext <<_ACEOF
34787 cat confdefs.h
>>conftest.
$ac_ext
34788 cat >>conftest.
$ac_ext <<_ACEOF
34789 /* end confdefs.h. */
34790 $ac_includes_default
34793 rm -f conftest.
$ac_objext
34794 if { (ac_try
="$ac_compile"
34795 case "(($ac_try" in
34796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34797 *) ac_try_echo=$ac_try;;
34799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34800 (eval "$ac_compile") 2>conftest.er1
34802 grep -v '^ *+' conftest.er1 >conftest.err
34804 cat conftest.err >&5
34805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806 (exit $ac_status); } && {
34807 test -z "$ac_c_werror_flag" ||
34808 test ! -s conftest.err
34809 } && test -s conftest.$ac_objext; then
34810 ac_header_compiler=yes
34812 echo "$as_me: failed program was:" >&5
34813 sed 's/^/| /' conftest.$ac_ext >&5
34815 ac_header_compiler=no
34818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34820 echo "${ECHO_T}$ac_header_compiler" >&6; }
34822 # Is the header present?
34823 { echo "$as_me:$LINENO: checking h323.h presence" >&5
34824 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
34825 cat >conftest.$ac_ext <<_ACEOF
34828 cat confdefs.h >>conftest.$ac_ext
34829 cat >>conftest.$ac_ext <<_ACEOF
34830 /* end confdefs.h. */
34833 if { (ac_try="$ac_cpp conftest.$ac_ext"
34834 case "(($ac_try" in
34835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34836 *) ac_try_echo
=$ac_try;;
34838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34841 grep -v '^ *+' conftest.er1
>conftest.err
34843 cat conftest.err
>&5
34844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845 (exit $ac_status); } >/dev
/null
&& {
34846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34847 test ! -s conftest.err
34849 ac_header_preproc
=yes
34851 echo "$as_me: failed program was:" >&5
34852 sed 's/^/| /' conftest.
$ac_ext >&5
34854 ac_header_preproc
=no
34857 rm -f conftest.err conftest.
$ac_ext
34858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34859 echo "${ECHO_T}$ac_header_preproc" >&6; }
34861 # So? What about this header?
34862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34864 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
34865 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34866 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
34867 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
34868 ac_header_preproc
=yes
34871 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
34872 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
34873 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
34874 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
34875 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
34876 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
34877 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
34878 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
34879 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
34880 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
34881 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
34882 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
34884 ## ------------------------------- ##
34885 ## Report this to www.asterisk.org ##
34886 ## ------------------------------- ##
34888 ) |
sed "s/^/$as_me: WARNING: /" >&2
34891 { echo "$as_me:$LINENO: checking for h323.h" >&5
34892 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
34893 if test "${ac_cv_header_h323_h+set}" = set; then
34894 echo $ECHO_N "(cached) $ECHO_C" >&6
34896 ac_cv_header_h323_h
=$ac_header_preproc
34898 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
34899 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
34902 if test $ac_cv_header_h323_h = yes; then
34911 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34912 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
34913 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
34914 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34915 echo $ECHO_N "(cached) $ECHO_C" >&6
34917 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
34918 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
34920 # Is the header compilable?
34921 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
34922 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
34923 cat >conftest.
$ac_ext <<_ACEOF
34926 cat confdefs.h
>>conftest.
$ac_ext
34927 cat >>conftest.
$ac_ext <<_ACEOF
34928 /* end confdefs.h. */
34929 $ac_includes_default
34930 #include <linux/compiler.h>
34932 rm -f conftest.
$ac_objext
34933 if { (ac_try
="$ac_compile"
34934 case "(($ac_try" in
34935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34936 *) ac_try_echo=$ac_try;;
34938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34939 (eval "$ac_compile") 2>conftest.er1
34941 grep -v '^ *+' conftest.er1 >conftest.err
34943 cat conftest.err >&5
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); } && {
34946 test -z "$ac_c_werror_flag" ||
34947 test ! -s conftest.err
34948 } && test -s conftest.$ac_objext; then
34949 ac_header_compiler=yes
34951 echo "$as_me: failed program was:" >&5
34952 sed 's/^/| /' conftest.$ac_ext >&5
34954 ac_header_compiler=no
34957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34959 echo "${ECHO_T}$ac_header_compiler" >&6; }
34961 # Is the header present?
34962 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
34963 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
34964 cat >conftest.$ac_ext <<_ACEOF
34967 cat confdefs.h >>conftest.$ac_ext
34968 cat >>conftest.$ac_ext <<_ACEOF
34969 /* end confdefs.h. */
34970 #include <linux/compiler.h>
34972 if { (ac_try="$ac_cpp conftest.$ac_ext"
34973 case "(($ac_try" in
34974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34975 *) ac_try_echo
=$ac_try;;
34977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34980 grep -v '^ *+' conftest.er1
>conftest.err
34982 cat conftest.err
>&5
34983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984 (exit $ac_status); } >/dev
/null
&& {
34985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34986 test ! -s conftest.err
34988 ac_header_preproc
=yes
34990 echo "$as_me: failed program was:" >&5
34991 sed 's/^/| /' conftest.
$ac_ext >&5
34993 ac_header_preproc
=no
34996 rm -f conftest.err conftest.
$ac_ext
34997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34998 echo "${ECHO_T}$ac_header_preproc" >&6; }
35000 # So? What about this header?
35001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35003 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
35004 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35005 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
35006 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
35007 ac_header_preproc
=yes
35010 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
35011 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
35012 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
35013 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
35014 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
35015 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
35016 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
35017 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
35018 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
35019 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
35020 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
35021 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
35023 ## ------------------------------- ##
35024 ## Report this to www.asterisk.org ##
35025 ## ------------------------------- ##
35027 ) |
sed "s/^/$as_me: WARNING: /" >&2
35030 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
35031 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
35032 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
35033 echo $ECHO_N "(cached) $ECHO_C" >&6
35035 ac_cv_header_linux_compiler_h
=$ac_header_preproc
35037 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
35038 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
35041 if test $ac_cv_header_linux_compiler_h = yes; then
35043 cat >>confdefs.h
<<_ACEOF
35044 #define HAVE_LINUX_COMPILER_H 1
35051 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
35052 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
35053 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
35054 echo $ECHO_N "(cached) $ECHO_C" >&6
35056 cat >conftest.
$ac_ext <<_ACEOF
35059 cat confdefs.h
>>conftest.
$ac_ext
35060 cat >>conftest.
$ac_ext <<_ACEOF
35061 /* end confdefs.h. */
35063 #include <linux/version.h>
35064 #ifdef HAVE_LINUX_COMPILER_H
35065 #include <linux/compiler.h>
35069 #include <linux/ixjuser.h>
35071 rm -f conftest.
$ac_objext
35072 if { (ac_try
="$ac_compile"
35073 case "(($ac_try" in
35074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35075 *) ac_try_echo=$ac_try;;
35077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35078 (eval "$ac_compile") 2>conftest.er1
35080 grep -v '^ *+' conftest.er1 >conftest.err
35082 cat conftest.err >&5
35083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084 (exit $ac_status); } && {
35085 test -z "$ac_c_werror_flag" ||
35086 test ! -s conftest.err
35087 } && test -s conftest.$ac_objext; then
35088 ac_cv_header_linux_ixjuser_h=yes
35090 echo "$as_me: failed program was:" >&5
35091 sed 's/^/| /' conftest.$ac_ext >&5
35093 ac_cv_header_linux_ixjuser_h=no
35096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35098 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
35099 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
35100 if test $ac_cv_header_linux_ixjuser_h = yes; then
35109 if test "${cross_compiling}" = "no";
35111 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
35112 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
35113 if test "${ac_cv_file__sbin_launchd+set}" = set; then
35114 echo $ECHO_N "(cached) $ECHO_C" >&6
35116 test "$cross_compiling" = yes &&
35117 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
35118 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
35119 { (exit 1); exit 1; }; }
35120 if test -r "/sbin/launchd"; then
35121 ac_cv_file__sbin_launchd=yes
35123 ac_cv_file__sbin_launchd=no
35126 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
35127 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
35128 if test $ac_cv_file__sbin_launchd = yes; then
35130 cat >>confdefs.h <<\_ACEOF
35131 #define HAVE_SBIN_LAUNCHD 1
35139 if test -n "$ac_tool_prefix"; then
35140 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
35141 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
35142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35144 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
35145 echo $ECHO_N "(cached) $ECHO_C" >&6
35147 if test -n "$GTKCONFIG"; then
35148 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
35150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35151 for as_dir in $PATH
35154 test -z "$as_dir" && as_dir=.
35155 for ac_exec_ext in '' $ac_executable_extensions; do
35156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35157 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
35158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35167 GTKCONFIG=$ac_cv_prog_GTKCONFIG
35168 if test -n "$GTKCONFIG"; then
35169 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
35170 echo "${ECHO_T}$GTKCONFIG" >&6; }
35172 { echo "$as_me:$LINENO: result: no" >&5
35173 echo "${ECHO_T}no" >&6; }
35178 if test -z "$ac_cv_prog_GTKCONFIG"; then
35179 ac_ct_GTKCONFIG=$GTKCONFIG
35180 # Extract the first word of "gtk-config", so it can be a program name with args.
35181 set dummy gtk-config; ac_word=$2
35182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35184 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
35185 echo $ECHO_N "(cached) $ECHO_C" >&6
35187 if test -n "$ac_ct_GTKCONFIG"; then
35188 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
35190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35191 for as_dir in $PATH
35194 test -z "$as_dir" && as_dir=.
35195 for ac_exec_ext in '' $ac_executable_extensions; do
35196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35197 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
35198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35207 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
35208 if test -n "$ac_ct_GTKCONFIG"; then
35209 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
35210 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
35212 { echo "$as_me:$LINENO: result: no" >&5
35213 echo "${ECHO_T}no" >&6; }
35216 if test "x$ac_ct_GTKCONFIG" = x; then
35219 case $cross_compiling:$ac_tool_warned in
35221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35222 whose name does not start with the host triplet. If you think this
35223 configuration is useful to you, please write to autoconf@gnu.org." >&5
35224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35225 whose name does not start with the host triplet. If you think this
35226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35227 ac_tool_warned=yes ;;
35229 GTKCONFIG=$ac_ct_GTKCONFIG
35232 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
35235 if test ! "x${GTKCONFIG}" = xNo; then
35236 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
35237 GTK_LIB=$(${GTKCONFIG} --libs gthread)
35240 cat >>confdefs.h <<\_ACEOF
35250 if test -n "$ac_tool_prefix"; then
35251 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35252 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35255 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
35256 echo $ECHO_N "(cached) $ECHO_C" >&6
35258 if test -n "$PKGCONFIG"; then
35259 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
35261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35262 for as_dir in $PATH
35265 test -z "$as_dir" && as_dir=.
35266 for ac_exec_ext in '' $ac_executable_extensions; do
35267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35268 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
35269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35278 PKGCONFIG=$ac_cv_prog_PKGCONFIG
35279 if test -n "$PKGCONFIG"; then
35280 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
35281 echo "${ECHO_T}$PKGCONFIG" >&6; }
35283 { echo "$as_me:$LINENO: result: no" >&5
35284 echo "${ECHO_T}no" >&6; }
35289 if test -z "$ac_cv_prog_PKGCONFIG"; then
35290 ac_ct_PKGCONFIG=$PKGCONFIG
35291 # Extract the first word of "pkg-config", so it can be a program name with args.
35292 set dummy pkg-config; ac_word=$2
35293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35295 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
35296 echo $ECHO_N "(cached) $ECHO_C" >&6
35298 if test -n "$ac_ct_PKGCONFIG"; then
35299 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
35301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35302 for as_dir in $PATH
35305 test -z "$as_dir" && as_dir=.
35306 for ac_exec_ext in '' $ac_executable_extensions; do
35307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35308 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
35309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35318 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
35319 if test -n "$ac_ct_PKGCONFIG"; then
35320 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
35321 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
35323 { echo "$as_me:$LINENO: result: no" >&5
35324 echo "${ECHO_T}no" >&6; }
35327 if test "x$ac_ct_PKGCONFIG" = x; then
35330 case $cross_compiling:$ac_tool_warned in
35332 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35333 whose name does not start with the host triplet. If you think this
35334 configuration is useful to you, please write to autoconf@gnu.org." >&5
35335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35336 whose name does not start with the host triplet. If you think this
35337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35338 ac_tool_warned=yes ;;
35340 PKGCONFIG=$ac_ct_PKGCONFIG
35343 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
35346 if test ! "x${PKGCONFIG}" = xNo; then
35347 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
35348 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
35351 cat >>confdefs.h <<\_ACEOF
35352 #define HAVE_GTK2 1
35360 if test "${USE_CURL}" != "no"; then
35361 if test -n "$ac_tool_prefix"; then
35362 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
35363 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
35364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35366 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
35367 echo $ECHO_N "(cached) $ECHO_C" >&6
35369 case $CURL_CONFIG in
35371 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
35374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35375 for as_dir in $PATH
35378 test -z "$as_dir" && as_dir=.
35379 for ac_exec_ext in '' $ac_executable_extensions; do
35380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35381 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35392 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
35393 if test -n "$CURL_CONFIG"; then
35394 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
35395 echo "${ECHO_T}$CURL_CONFIG" >&6; }
35397 { echo "$as_me:$LINENO: result: no" >&5
35398 echo "${ECHO_T}no" >&6; }
35403 if test -z "$ac_cv_path_CURL_CONFIG"; then
35404 ac_pt_CURL_CONFIG=$CURL_CONFIG
35405 # Extract the first word of "curl-config", so it can be a program name with args.
35406 set dummy curl-config; ac_word=$2
35407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35409 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
35410 echo $ECHO_N "(cached) $ECHO_C" >&6
35412 case $ac_pt_CURL_CONFIG in
35414 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
35417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35418 for as_dir in $PATH
35421 test -z "$as_dir" && as_dir=.
35422 for ac_exec_ext in '' $ac_executable_extensions; do
35423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35424 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35435 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
35436 if test -n "$ac_pt_CURL_CONFIG"; then
35437 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
35438 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
35440 { echo "$as_me:$LINENO: result: no" >&5
35441 echo "${ECHO_T}no" >&6; }
35444 if test "x$ac_pt_CURL_CONFIG" = x; then
35447 case $cross_compiling:$ac_tool_warned in
35449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35450 whose name does not start with the host triplet. If you think this
35451 configuration is useful to you, please write to autoconf@gnu.org." >&5
35452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35453 whose name does not start with the host triplet. If you think this
35454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35455 ac_tool_warned=yes ;;
35457 CURL_CONFIG=$ac_pt_CURL_CONFIG
35460 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
35463 if test ! x"${CURL_CONFIG}" = xNo; then
35464 # check for version
35465 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
35466 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
35467 CURL_LIB=$(${CURL_CONFIG} --libs)
35469 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
35470 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
35471 saved_cppflags="${CPPFLAGS}"
35472 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
35473 cat >conftest.$ac_ext <<_ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h. */
35479 #include <curl/curl.h>
35489 rm -f conftest.$ac_objext
35490 if { (ac_try="$ac_compile"
35491 case "(($ac_try" in
35492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35493 *) ac_try_echo
=$ac_try;;
35495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35496 (eval "$ac_compile") 2>conftest.er1
35498 grep -v '^ *+' conftest.er1
>conftest.err
35500 cat conftest.err
>&5
35501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502 (exit $ac_status); } && {
35503 test -z "$ac_c_werror_flag" ||
35504 test ! -s conftest.err
35505 } && test -s conftest.
$ac_objext; then
35507 { echo "$as_me:$LINENO: result: yes" >&5
35508 echo "${ECHO_T}yes" >&6; }
35512 echo "$as_me: failed program was:" >&5
35513 sed 's/^/| /' conftest.
$ac_ext >&5
35516 { echo "$as_me:$LINENO: result: no" >&5
35517 echo "${ECHO_T}no" >&6; }
35523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35524 CPPFLAGS
="${saved_cppflags}"
35525 if test "${ac_cv_curl_h}" = "yes"; then
35528 cat >>confdefs.h
<<\_ACEOF
35529 #define HAVE_CURL 1
35537 ac_config_files
="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
35539 cat >confcache
<<\_ACEOF
35540 # This file is a shell script that caches the results of configure
35541 # tests run on this system so they can be shared between configure
35542 # scripts and configure runs, see configure's option --config-cache.
35543 # It is not useful on other systems. If it contains results you don't
35544 # want to keep, you may remove or edit it.
35546 # config.status only pays attention to the cache file if you give it
35547 # the --recheck option to rerun configure.
35549 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35550 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35551 # following values.
35555 # The following way of writing the cache mishandles newlines in values,
35556 # but we know of no workaround that is simple, portable, and efficient.
35557 # So, we kill variables containing newlines.
35558 # Ultrix sh set writes to stderr and can't be redirected directly,
35559 # and sets the high bit in the cache file unless we assign to the vars.
35561 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35562 eval ac_val
=\$
$ac_var
35566 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35567 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35570 _ | IFS | as_nl
) ;; #(
35571 *) $as_unset $ac_var ;;
35577 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35578 *${as_nl}ac_space
=\
*)
35579 # `set' does not quote correctly, so add quotes (double-quote
35580 # substitution turns \\\\ into \\, and sed turns \\ into \).
35583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35586 # `set' quotes correctly as required by POSIX, so do not add quotes.
35587 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35596 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35598 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35600 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
35601 if test -w "$cache_file"; then
35602 test "x$cache_file" != "x/dev/null" &&
35603 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35604 echo "$as_me: updating cache $cache_file" >&6;}
35605 cat confcache
>$cache_file
35607 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35608 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35613 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
35614 # Let make expand exec_prefix.
35615 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
35617 DEFS
=-DHAVE_CONFIG_H
35621 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
35622 # 1. Remove the extension, and $U if already installed.
35623 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
35624 ac_i
=`echo "$ac_i" | sed "$ac_script"`
35625 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35626 # will be set to the directory where LIBOBJS objects are built.
35627 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35628 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35630 LIBOBJS
=$ac_libobjs
35632 LTLIBOBJS
=$ac_ltlibobjs
35636 : ${CONFIG_STATUS=./config.status}
35637 ac_clean_files_save
=$ac_clean_files
35638 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
35639 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35640 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35641 cat >$CONFIG_STATUS <<_ACEOF
35643 # Generated by $as_me.
35644 # Run this file to recreate the current configuration.
35645 # Compiler output produced by configure, useful for debugging
35646 # configure, is in config.log if it exists.
35649 ac_cs_recheck=false
35651 SHELL=\${CONFIG_SHELL-$SHELL}
35654 cat >>$CONFIG_STATUS <<\_ACEOF
35655 ## --------------------- ##
35656 ## M4sh Initialization. ##
35657 ## --------------------- ##
35659 # Be more Bourne compatible
35660 DUALCASE
=1; export DUALCASE
# for MKS sh
35661 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
35664 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35665 # is contrary to our usage. Disable this feature.
35666 alias -g '${1+"$@"}'='"$@"'
35667 setopt NO_GLOB_SUBST
35669 case `(set -o) 2>/dev/null` in
35670 *posix
*) set -o posix
;;
35679 # Avoid depending upon Character Ranges.
35680 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35681 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35682 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35683 as_cr_digits
='0123456789'
35684 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35686 # The user is always right.
35687 if test "${PATH_SEPARATOR+set}" != set; then
35688 echo "#! /bin/sh" >conf$$.sh
35689 echo "exit 0" >>conf$$.sh
35691 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
35699 # Support unset when possible.
35700 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35708 # We need space, tab and new line, in precisely that order. Quoting is
35709 # there to prevent editors from complaining about space-tab.
35710 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35711 # splitting by setting IFS to empty value.)
35716 # Find who we are. Look in the path if we contain no directory separator.
35718 *[\\/]* ) as_myself
=$0 ;;
35719 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
35720 for as_dir
in $PATH
35723 test -z "$as_dir" && as_dir
=.
35724 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
35730 # We did not find ourselves, most probably we were run as `sh COMMAND'
35731 # in which case we are not to be found in the path.
35732 if test "x$as_myself" = x
; then
35735 if test ! -f "$as_myself"; then
35736 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35737 { (exit 1); exit 1; }
35740 # Work around bugs in pre-3.0 UWIN ksh.
35741 for as_var
in ENV MAIL MAILPATH
35742 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35750 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35751 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35752 LC_TELEPHONE LC_TIME
35754 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35755 eval $as_var=C
; export $as_var
35757 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35761 # Required to use basename.
35762 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35763 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35769 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35770 as_basename
=basename
35776 # Name of the executable.
35777 as_me
=`$as_basename -- "$0" ||
35778 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35779 X"$0" : 'X\(//\)$' \| \
35780 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35782 sed '/^.*\/\([^/][^/]*\)\/*$/{
35801 as_lineno_1
=$LINENO
35802 as_lineno_2
=$LINENO
35803 test "x$as_lineno_1" != "x$as_lineno_2" &&
35804 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
35806 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35807 # uniformly replaced by the line number. The first 'sed' inserts a
35808 # line-number line after each line using $LINENO; the second 'sed'
35809 # does the real work. The second script uses 'N' to pair each
35810 # line-number line with the line containing $LINENO, and appends
35811 # trailing '-' during substitution so that $LINENO is not a special
35812 # case at line end.
35813 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35814 # scripts with optimization help from Paolo Bonzini. Blame Lee
35815 # E. McMahon (1931-1989) for sed's syntax. :-)
35827 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35830 ' >$as_me.lineno
&&
35831 chmod +x
"$as_me.lineno" ||
35832 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35833 { (exit 1); exit 1; }; }
35835 # Don't try to exec as it changes $[0], causing all sort of problems
35836 # (the dirname of $[0] is not the place where we might find the
35837 # original and so on. Autoconf is especially sensitive to this).
35838 .
"./$as_me.lineno"
35839 # Exit status is that of the last command.
35844 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35850 ECHO_C
= ECHO_N
= ECHO_T
=
35851 case `echo -n x` in
35853 case `echo 'x\c'` in
35854 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35861 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35862 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35868 rm -f conf$$ conf$$.exe conf$$.
file
35869 if test -d conf$$.dir
; then
35870 rm -f conf$$.dir
/conf$$.
file
35876 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35878 # ... but there are two gotchas:
35879 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35880 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35881 # In both cases, we have to default to `cp -p'.
35882 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35884 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35889 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35890 rmdir conf$$.dir
2>/dev
/null
35892 if mkdir
-p .
2>/dev
/null
; then
35895 test -d .
/-p && rmdir .
/-p
35899 if test -x / >/dev
/null
2>&1; then
35900 as_test_x
='test -x'
35902 if ls -dL / >/dev
/null
2>&1; then
35909 if test -d "$1"; then
35915 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35916 ???[sx]*):;;*)false;;esac;fi
35920 as_executable_p
=$as_test_x
35922 # Sed expression to map a string onto a valid CPP name.
35923 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35925 # Sed expression to map a string onto a valid variable name.
35926 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35931 # Save the log message, to keep $[0] and so on meaningful, and to
35932 # report actual input values of CONFIG_FILES etc. instead of their
35933 # values after options handling.
35935 This file was extended by asterisk $as_me 1.4, which was
35936 generated by GNU Autoconf 2.61. Invocation command line was
35938 CONFIG_FILES = $CONFIG_FILES
35939 CONFIG_HEADERS = $CONFIG_HEADERS
35940 CONFIG_LINKS = $CONFIG_LINKS
35941 CONFIG_COMMANDS = $CONFIG_COMMANDS
35944 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35949 cat >>$CONFIG_STATUS <<_ACEOF
35950 # Files that config.status was made for.
35951 config_files="$ac_config_files"
35952 config_headers="$ac_config_headers"
35956 cat >>$CONFIG_STATUS <<\_ACEOF
35958 \`$as_me' instantiates files from templates according to the
35959 current configuration.
35961 Usage: $0 [OPTIONS] [FILE]...
35963 -h, --help print this help, then exit
35964 -V, --version print version number and configuration settings, then exit
35965 -q, --quiet do not print progress messages
35966 -d, --debug don't remove temporary files
35967 --recheck update $as_me by reconfiguring in the same conditions
35968 --file=FILE[:TEMPLATE]
35969 instantiate the configuration file FILE
35970 --header=FILE[:TEMPLATE]
35971 instantiate the configuration header FILE
35973 Configuration files:
35976 Configuration headers:
35979 Report bugs to <bug-autoconf@gnu.org>."
35982 cat >>$CONFIG_STATUS <<_ACEOF
35984 asterisk config.status 1.4
35985 configured by $0, generated by GNU Autoconf 2.61,
35986 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35988 Copyright (C) 2006 Free Software Foundation, Inc.
35989 This config.status script is free software; the Free Software Foundation
35990 gives unlimited permission to copy, distribute and modify it."
35997 cat >>$CONFIG_STATUS <<\_ACEOF
35998 # If no file are specified by the user, then we need to provide default
35999 # value. By we need to know if files were specified by the user.
36005 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
36006 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
36017 # Handling of the options.
36018 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
36020 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
36021 echo "$ac_cs_version"; exit ;;
36022 --debug |
--debu |
--deb |
--de |
--d |
-d )
36024 --file |
--fil |
--fi |
--f )
36026 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
36027 ac_need_defaults
=false
;;
36028 --header |
--heade |
--head |
--hea )
36030 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
36031 ac_need_defaults
=false
;;
36033 # Conflict between --help and --header
36034 { echo "$as_me: error: ambiguous option: $1
36035 Try \`$0 --help' for more information." >&2
36036 { (exit 1); exit 1; }; };;
36037 --help |
--hel |
-h )
36038 echo "$ac_cs_usage"; exit ;;
36039 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
36040 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
36043 # This is an error.
36044 -*) { echo "$as_me: error: unrecognized option: $1
36045 Try \`$0 --help' for more information." >&2
36046 { (exit 1); exit 1; }; } ;;
36048 *) ac_config_targets
="$ac_config_targets $1"
36049 ac_need_defaults
=false
;;
36055 ac_configure_extra_args
=
36057 if $ac_cs_silent; then
36059 ac_configure_extra_args
="$ac_configure_extra_args --silent"
36063 cat >>$CONFIG_STATUS <<_ACEOF
36064 if \$ac_cs_recheck; then
36065 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36066 CONFIG_SHELL=$SHELL
36067 export CONFIG_SHELL
36068 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36072 cat >>$CONFIG_STATUS <<\_ACEOF
36076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36077 ## Running $as_me. ##
36083 cat >>$CONFIG_STATUS <<_ACEOF
36086 cat >>$CONFIG_STATUS <<\_ACEOF
36088 # Handling of arguments.
36089 for ac_config_target
in $ac_config_targets
36091 case $ac_config_target in
36092 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
36093 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
36094 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
36095 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
36097 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36098 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36099 { (exit 1); exit 1; }; };;
36104 # If the user did not use the arguments to specify the items to instantiate,
36105 # then the envvar interface is used. Set only those that are not.
36106 # We use the long form for the default assignment because of an extremely
36107 # bizarre bug on SunOS 4.1.3.
36108 if $ac_need_defaults; then
36109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
36110 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
36113 # Have a temporary directory for convenience. Make it in the build tree
36114 # simply because there is no reason against having it here, and in addition,
36115 # creating and moving files from /tmp can sometimes cause problems.
36116 # Hook for its removal unless debugging.
36117 # Note that there is a small window in which the directory will not be cleaned:
36118 # after its creation but before its name has been assigned to `$tmp'.
36122 trap 'exit_status=$?
36123 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36125 trap '{ (exit 1); exit 1; }' 1 2 13 15
36127 # Create a (secure) tmp directory for tmp files.
36130 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36131 test -n "$tmp" && test -d "$tmp"
36134 tmp
=.
/conf$$
-$RANDOM
36135 (umask 077 && mkdir
"$tmp")
36138 echo "$me: cannot create a temporary directory in ." >&2
36139 { (exit 1); exit 1; }
36143 # Set up the sed scripts for CONFIG_FILES section.
36146 # No need to generate the scripts if there are no CONFIG_FILES.
36147 # This happens for instance when ./config.status config.h
36148 if test -n "$CONFIG_FILES"; then
36155 for ac_last_try
in false false false false false
:; do
36156 cat >conf$
$subs.
sed <<_ACEOF
36157 SHELL!$SHELL$ac_delim
36158 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36159 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36160 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36161 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36162 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36163 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36164 exec_prefix!$exec_prefix$ac_delim
36165 prefix!$prefix$ac_delim
36166 program_transform_name!$program_transform_name$ac_delim
36167 bindir!$bindir$ac_delim
36168 sbindir!$sbindir$ac_delim
36169 libexecdir!$libexecdir$ac_delim
36170 datarootdir!$datarootdir$ac_delim
36171 datadir!$datadir$ac_delim
36172 sysconfdir!$sysconfdir$ac_delim
36173 sharedstatedir!$sharedstatedir$ac_delim
36174 localstatedir!$localstatedir$ac_delim
36175 includedir!$includedir$ac_delim
36176 oldincludedir!$oldincludedir$ac_delim
36177 docdir!$docdir$ac_delim
36178 infodir!$infodir$ac_delim
36179 htmldir!$htmldir$ac_delim
36180 dvidir!$dvidir$ac_delim
36181 pdfdir!$pdfdir$ac_delim
36182 psdir!$psdir$ac_delim
36183 libdir!$libdir$ac_delim
36184 localedir!$localedir$ac_delim
36185 mandir!$mandir$ac_delim
36186 DEFS!$DEFS$ac_delim
36187 ECHO_C!$ECHO_C$ac_delim
36188 ECHO_N!$ECHO_N$ac_delim
36189 ECHO_T!$ECHO_T$ac_delim
36190 LIBS!$LIBS$ac_delim
36191 build_alias!$build_alias$ac_delim
36192 host_alias!$host_alias$ac_delim
36193 target_alias!$target_alias$ac_delim
36194 build!$build$ac_delim
36195 build_cpu!$build_cpu$ac_delim
36196 build_vendor!$build_vendor$ac_delim
36197 build_os!$build_os$ac_delim
36198 host!$host$ac_delim
36199 host_cpu!$host_cpu$ac_delim
36200 host_vendor!$host_vendor$ac_delim
36201 host_os!$host_os$ac_delim
36203 CFLAGS!$CFLAGS$ac_delim
36204 LDFLAGS!$LDFLAGS$ac_delim
36205 CPPFLAGS!$CPPFLAGS$ac_delim
36206 ac_ct_CC!$ac_ct_CC$ac_delim
36207 EXEEXT!$EXEEXT$ac_delim
36208 OBJEXT!$OBJEXT$ac_delim
36210 GREP!$GREP$ac_delim
36211 EGREP!$EGREP$ac_delim
36212 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
36213 BUILD_CPU!$BUILD_CPU$ac_delim
36214 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
36215 BUILD_OS!$BUILD_OS$ac_delim
36216 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
36217 HOST_CPU!$HOST_CPU$ac_delim
36218 HOST_VENDOR!$HOST_VENDOR$ac_delim
36219 HOST_OS!$HOST_OS$ac_delim
36220 OSARCH!$OSARCH$ac_delim
36221 UNAME!$UNAME$ac_delim
36222 PBX_OSREV!$PBX_OSREV$ac_delim
36225 RANLIB!$RANLIB$ac_delim
36226 CXXFLAGS!$CXXFLAGS$ac_delim
36227 ac_ct_CXX!$ac_ct_CXX$ac_delim
36228 CXXCPP!$CXXCPP$ac_delim
36231 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36232 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36233 INSTALL_DATA!$INSTALL_DATA$ac_delim
36234 LN_S!$LN_S$ac_delim
36235 GNU_MAKE!$GNU_MAKE$ac_delim
36236 STRIP!$STRIP$ac_delim
36238 GNU_LD!$GNU_LD$ac_delim
36239 FIND!$FIND$ac_delim
36240 COMPRESS!$COMPRESS$ac_delim
36241 BASENAME!$BASENAME$ac_delim
36243 DIRNAME!$DIRNAME$ac_delim
36246 WGET!$WGET$ac_delim
36247 FETCH!$FETCH$ac_delim
36248 DOWNLOAD!$DOWNLOAD$ac_delim
36249 SOXMIX!$SOXMIX$ac_delim
36250 acx_pthread_config!$acx_pthread_config$ac_delim
36251 PTHREAD_CC!$PTHREAD_CC$ac_delim
36252 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
36253 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
36256 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36258 elif $ac_last_try; then
36259 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36260 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36261 { (exit 1); exit 1; }; }
36263 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36267 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36268 if test -n "$ac_eof"; then
36269 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36270 ac_eof
=`expr $ac_eof + 1`
36273 cat >>$CONFIG_STATUS <<_ACEOF
36274 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36278 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36279 s/^/s,@/; s/!/@,|#_!!_#|/
36282 s/'"$ac_delim"'$/,g/; t
36284 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36285 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36286 rm -f conf$
$subs.
sed
36287 cat >>$CONFIG_STATUS <<_ACEOF
36293 for ac_last_try
in false false false false false
:; do
36294 cat >conf$
$subs.
sed <<_ACEOF
36295 AST_DEVMODE!$AST_DEVMODE$ac_delim
36296 ALSA_LIB!$ALSA_LIB$ac_delim
36297 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
36298 ALSA_DIR!$ALSA_DIR$ac_delim
36299 PBX_ALSA!$PBX_ALSA$ac_delim
36300 CURL_LIB!$CURL_LIB$ac_delim
36301 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
36302 CURL_DIR!$CURL_DIR$ac_delim
36303 PBX_CURL!$PBX_CURL$ac_delim
36304 CAP_LIB!$CAP_LIB$ac_delim
36305 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
36306 CAP_DIR!$CAP_DIR$ac_delim
36307 PBX_CAP!$PBX_CAP$ac_delim
36308 CURSES_LIB!$CURSES_LIB$ac_delim
36309 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
36310 CURSES_DIR!$CURSES_DIR$ac_delim
36311 PBX_CURSES!$PBX_CURSES$ac_delim
36312 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
36313 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
36314 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
36315 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
36316 GSM_LIB!$GSM_LIB$ac_delim
36317 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
36318 GSM_DIR!$GSM_DIR$ac_delim
36319 PBX_GSM!$PBX_GSM$ac_delim
36320 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
36321 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
36322 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
36323 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
36324 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
36325 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
36326 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
36327 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
36328 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
36329 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
36330 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
36331 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
36332 KDE_LIB!$KDE_LIB$ac_delim
36333 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
36334 KDE_DIR!$KDE_DIR$ac_delim
36335 PBX_KDE!$PBX_KDE$ac_delim
36336 LTDL_LIB!$LTDL_LIB$ac_delim
36337 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
36338 LTDL_DIR!$LTDL_DIR$ac_delim
36339 PBX_LTDL!$PBX_LTDL$ac_delim
36340 MISDN_LIB!$MISDN_LIB$ac_delim
36341 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
36342 MISDN_DIR!$MISDN_DIR$ac_delim
36343 PBX_MISDN!$PBX_MISDN$ac_delim
36344 NBS_LIB!$NBS_LIB$ac_delim
36345 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
36346 NBS_DIR!$NBS_DIR$ac_delim
36347 PBX_NBS!$PBX_NBS$ac_delim
36348 NCURSES_LIB!$NCURSES_LIB$ac_delim
36349 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
36350 NCURSES_DIR!$NCURSES_DIR$ac_delim
36351 PBX_NCURSES!$PBX_NCURSES$ac_delim
36352 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
36353 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
36354 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
36355 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
36356 NEWT_LIB!$NEWT_LIB$ac_delim
36357 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
36358 NEWT_DIR!$NEWT_DIR$ac_delim
36359 PBX_NEWT!$PBX_NEWT$ac_delim
36360 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
36361 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
36362 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
36363 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
36364 OGG_LIB!$OGG_LIB$ac_delim
36365 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
36366 OGG_DIR!$OGG_DIR$ac_delim
36367 PBX_OGG!$PBX_OGG$ac_delim
36368 OSPTK_LIB!$OSPTK_LIB$ac_delim
36369 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
36370 OSPTK_DIR!$OSPTK_DIR$ac_delim
36371 PBX_OSPTK!$PBX_OSPTK$ac_delim
36372 OSS_LIB!$OSS_LIB$ac_delim
36373 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
36374 OSS_DIR!$OSS_DIR$ac_delim
36375 PBX_OSS!$PBX_OSS$ac_delim
36376 POPT_LIB!$POPT_LIB$ac_delim
36377 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
36378 POPT_DIR!$POPT_DIR$ac_delim
36379 PBX_POPT!$PBX_POPT$ac_delim
36380 PGSQL_LIB!$PGSQL_LIB$ac_delim
36381 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
36382 PGSQL_DIR!$PGSQL_DIR$ac_delim
36383 PBX_PGSQL!$PBX_PGSQL$ac_delim
36384 PRI_LIB!$PRI_LIB$ac_delim
36385 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
36386 PRI_DIR!$PRI_DIR$ac_delim
36387 PBX_PRI!$PBX_PRI$ac_delim
36388 PWLIB_LIB!$PWLIB_LIB$ac_delim
36389 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
36390 PWLIB_DIR!$PWLIB_DIR$ac_delim
36391 PBX_PWLIB!$PBX_PWLIB$ac_delim
36394 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36396 elif $ac_last_try; then
36397 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36398 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36399 { (exit 1); exit 1; }; }
36401 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36405 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36406 if test -n "$ac_eof"; then
36407 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36408 ac_eof
=`expr $ac_eof + 1`
36411 cat >>$CONFIG_STATUS <<_ACEOF
36412 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36416 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36417 s/^/s,@/; s/!/@,|#_!!_#|/
36420 s/'"$ac_delim"'$/,g/; t
36422 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36423 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36424 rm -f conf$
$subs.
sed
36425 cat >>$CONFIG_STATUS <<_ACEOF
36431 for ac_last_try
in false false false false false
:; do
36432 cat >conf$
$subs.
sed <<_ACEOF
36433 OPENH323_LIB!$OPENH323_LIB$ac_delim
36434 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
36435 OPENH323_DIR!$OPENH323_DIR$ac_delim
36436 PBX_OPENH323!$PBX_OPENH323$ac_delim
36437 RADIUS_LIB!$RADIUS_LIB$ac_delim
36438 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
36439 RADIUS_DIR!$RADIUS_DIR$ac_delim
36440 PBX_RADIUS!$PBX_RADIUS$ac_delim
36441 SPEEX_LIB!$SPEEX_LIB$ac_delim
36442 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
36443 SPEEX_DIR!$SPEEX_DIR$ac_delim
36444 PBX_SPEEX!$PBX_SPEEX$ac_delim
36445 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
36446 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
36447 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
36448 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
36449 SQLITE_LIB!$SQLITE_LIB$ac_delim
36450 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
36451 SQLITE_DIR!$SQLITE_DIR$ac_delim
36452 PBX_SQLITE!$PBX_SQLITE$ac_delim
36453 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
36454 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
36455 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
36456 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
36457 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
36458 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
36459 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
36460 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
36461 FREETDS_LIB!$FREETDS_LIB$ac_delim
36462 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
36463 FREETDS_DIR!$FREETDS_DIR$ac_delim
36464 PBX_FREETDS!$PBX_FREETDS$ac_delim
36465 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
36466 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
36467 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
36468 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
36469 TINFO_LIB!$TINFO_LIB$ac_delim
36470 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
36471 TINFO_DIR!$TINFO_DIR$ac_delim
36472 PBX_TINFO!$PBX_TINFO$ac_delim
36473 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
36474 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
36475 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
36476 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
36477 USB_LIB!$USB_LIB$ac_delim
36478 USB_INCLUDE!$USB_INCLUDE$ac_delim
36479 USB_DIR!$USB_DIR$ac_delim
36480 PBX_USB!$PBX_USB$ac_delim
36481 VORBIS_LIB!$VORBIS_LIB$ac_delim
36482 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
36483 VORBIS_DIR!$VORBIS_DIR$ac_delim
36484 PBX_VORBIS!$PBX_VORBIS$ac_delim
36485 VPB_LIB!$VPB_LIB$ac_delim
36486 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
36487 VPB_DIR!$VPB_DIR$ac_delim
36488 PBX_VPB!$PBX_VPB$ac_delim
36489 ZLIB_LIB!$ZLIB_LIB$ac_delim
36490 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
36491 ZLIB_DIR!$ZLIB_DIR$ac_delim
36492 PBX_ZLIB!$PBX_ZLIB$ac_delim
36493 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
36494 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
36495 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
36496 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
36497 ALLOCA!$ALLOCA$ac_delim
36498 LIBOBJS!$LIBOBJS$ac_delim
36499 POW_LIB!$POW_LIB$ac_delim
36500 GC_CFLAGS!$GC_CFLAGS$ac_delim
36501 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
36502 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
36503 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
36504 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
36505 KDEINIT!$KDEINIT$ac_delim
36506 KDEDIR!$KDEDIR$ac_delim
36507 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
36508 PG_CONFIG!$PG_CONFIG$ac_delim
36509 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
36510 PWLIBDIR!$PWLIBDIR$ac_delim
36511 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
36512 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
36513 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
36514 OPENH323DIR!$OPENH323DIR$ac_delim
36515 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
36516 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
36517 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
36518 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
36519 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
36520 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
36521 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
36522 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
36523 PBX_H323!$PBX_H323$ac_delim
36524 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
36525 GTKCONFIG!$GTKCONFIG$ac_delim
36526 PBX_GTK!$PBX_GTK$ac_delim
36527 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
36528 GTK_LIB!$GTK_LIB$ac_delim
36529 PKGCONFIG!$PKGCONFIG$ac_delim
36532 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36534 elif $ac_last_try; then
36535 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36536 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36537 { (exit 1); exit 1; }; }
36539 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36543 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36544 if test -n "$ac_eof"; then
36545 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36546 ac_eof
=`expr $ac_eof + 1`
36549 cat >>$CONFIG_STATUS <<_ACEOF
36550 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
36551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36554 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36555 s/^/s,@/; s/!/@,|#_!!_#|/
36558 s/'"$ac_delim"'$/,g/; t
36560 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36561 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36562 rm -f conf$
$subs.
sed
36563 cat >>$CONFIG_STATUS <<_ACEOF
36569 for ac_last_try
in false false false false false
:; do
36570 cat >conf$
$subs.
sed <<_ACEOF
36571 PBX_GTK2!$PBX_GTK2$ac_delim
36572 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
36573 GTK2_LIB!$GTK2_LIB$ac_delim
36574 CURL_CONFIG!$CURL_CONFIG$ac_delim
36575 LTLIBOBJS!$LTLIBOBJS$ac_delim
36578 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
36580 elif $ac_last_try; then
36581 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36582 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36583 { (exit 1); exit 1; }; }
36585 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36589 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36590 if test -n "$ac_eof"; then
36591 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36592 ac_eof
=`expr $ac_eof + 1`
36595 cat >>$CONFIG_STATUS <<_ACEOF
36596 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
36597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36600 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36601 s/^/s,@/; s/!/@,|#_!!_#|/
36604 s/'"$ac_delim"'$/,g/; t
36606 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36607 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36608 rm -f conf$
$subs.
sed
36609 cat >>$CONFIG_STATUS <<_ACEOF
36616 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36617 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36618 # trailing colons and then remove the whole line if VPATH becomes empty
36619 # (actually we leave an empty line to preserve line numbers).
36620 if test "x$srcdir" = x.
; then
36621 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
36622 s/:*\$(srcdir):*/:/
36623 s/:*\${srcdir}:*/:/
36625 s/^\([^=]*=[ ]*\):*/\1/
36631 cat >>$CONFIG_STATUS <<\_ACEOF
36632 fi # test -n "$CONFIG_FILES"
36635 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
36638 :[FHLC
]) ac_mode
=$ac_tag; continue;;
36640 case $ac_mode$ac_tag in
36642 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36643 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36644 { (exit 1); exit 1; }; };;
36645 :[FH
]-) ac_tag
=-:-;;
36646 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
36663 -) ac_f
="$tmp/stdin";;
36664 *) # Look for the file first in the build tree, then in the source tree
36665 # (if the path is not absolute). The absolute path cannot be DOS-style,
36666 # because $ac_f cannot contain `:'.
36670 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
36672 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36673 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36674 { (exit 1); exit 1; }; };;
36676 ac_file_inputs
="$ac_file_inputs $ac_f"
36679 # Let's still pretend it is `configure' which instantiates (i.e., don't
36680 # use $as_me), people would be surprised to read:
36681 # /* config.h. Generated by config.status. */
36682 configure_input
="Generated from "`IFS=:
36683 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36684 if test x
"$ac_file" != x-
; then
36685 configure_input
="$ac_file. $configure_input"
36686 { echo "$as_me:$LINENO: creating $ac_file" >&5
36687 echo "$as_me: creating $ac_file" >&6;}
36691 *:-:* |
*:-) cat >"$tmp/stdin";;
36696 ac_dir
=`$as_dirname -- "$ac_file" ||
36697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36698 X"$ac_file" : 'X\(//\)[^/]' \| \
36699 X"$ac_file" : 'X\(//\)$' \| \
36700 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36706 /^X\(\/\/\)[^/].*/{
36721 -*) as_dir
=.
/$as_dir;;
36723 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36727 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36728 *) as_qdir
=$as_dir;;
36730 as_dirs
="'$as_qdir' $as_dirs"
36731 as_dir
=`$as_dirname -- "$as_dir" ||
36732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36733 X"$as_dir" : 'X\(//\)[^/]' \| \
36734 X"$as_dir" : 'X\(//\)$' \| \
36735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36741 /^X\(\/\/\)[^/].*/{
36754 test -d "$as_dir" && break
36756 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36757 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36758 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36759 { (exit 1); exit 1; }; }; }
36763 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36765 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36766 # A ".." for each directory in $ac_dir_suffix.
36767 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36768 case $ac_top_builddir_sub in
36769 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36770 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36773 ac_abs_top_builddir
=$ac_pwd
36774 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36775 # for backward compatibility:
36776 ac_top_builddir
=$ac_top_build_prefix
36779 .
) # We are building in place.
36781 ac_top_srcdir
=$ac_top_builddir_sub
36782 ac_abs_top_srcdir
=$ac_pwd ;;
36783 [\\/]* | ?
:[\\/]* ) # Absolute name.
36784 ac_srcdir
=$srcdir$ac_dir_suffix;
36785 ac_top_srcdir
=$srcdir
36786 ac_abs_top_srcdir
=$srcdir ;;
36787 *) # Relative name.
36788 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36789 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36790 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36792 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36802 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36803 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36807 cat >>$CONFIG_STATUS <<\_ACEOF
36808 # If the template does not know about datarootdir, expand it.
36809 # FIXME: This hack should be removed a few years after 2.60.
36810 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36812 case `sed -n '/datarootdir/ {
36821 ' $ac_file_inputs` in
36822 *datarootdir
*) ac_datarootdir_seen
=yes;;
36823 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36824 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36825 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36827 cat >>$CONFIG_STATUS <<_ACEOF
36828 ac_datarootdir_hack='
36829 s&@datadir@&$datadir&g
36830 s&@docdir@&$docdir&g
36831 s&@infodir@&$infodir&g
36832 s&@localedir@&$localedir&g
36833 s&@mandir@&$mandir&g
36834 s&\\\${datarootdir}&$datarootdir&g' ;;
36838 # Neutralize VPATH when `$srcdir' = `.'.
36839 # Shell code in configure.ac might set extrasub.
36840 # FIXME: do we really want to maintain this feature?
36841 cat >>$CONFIG_STATUS <<_ACEOF
36845 cat >>$CONFIG_STATUS <<\_ACEOF
36847 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36848 s
&@configure_input@
&$configure_input&;t t
36849 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36850 s
&@srcdir@
&$ac_srcdir&;t t
36851 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36852 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36853 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36854 s
&@builddir@
&$ac_builddir&;t t
36855 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36856 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36857 s
&@INSTALL@
&$ac_INSTALL&;t t
36858 $ac_datarootdir_hack
36859 " $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
36861 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36862 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
36863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
36864 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36865 which seems to be undefined. Please make sure it is defined." >&5
36866 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36867 which seems to be undefined. Please make sure it is defined." >&2;}
36871 -) cat "$tmp/out"; rm -f "$tmp/out";;
36872 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36881 # Transform confdefs.h into a sed script `conftest.defines', that
36882 # substitutes the proper values into config.h.in to produce config.h.
36883 rm -f conftest.defines conftest.
tail
36884 # First, append a space to every undef/define line, to ease matching.
36885 echo 's/$/ /' >conftest.defines
36886 # Then, protect against being on the right side of a sed subst, or in
36887 # an unquoted here document, in config.status. If some macros were
36888 # called several times there might be several #defines for the same
36889 # symbol, which is useless. But do not sort them, since the last
36890 # AC_DEFINE must be honored.
36891 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
36892 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36893 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36894 # PARAMS is the parameter list in the macro definition--in most cases, it's
36895 # just an empty string.
36896 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36897 ac_dB
='\\)[ (].*,\\1define\\2'
36905 s/^[ ]*#[ ]*define[ ][ ]*//
36910 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36911 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36912 ' >>conftest.defines
36914 # Remove the space that was appended to ease matching.
36915 # Then replace #undef with comments. This is necessary, for
36916 # example, in the case of _POSIX_SOURCE, which is predefined and required
36917 # on some systems where configure will not decide to define it.
36918 # (The regexp can be short, since the line contains either #define or #undef.)
36920 s,^[ #]*u.*,/* & */,' >>conftest.defines
36922 # Break up conftest.defines:
36923 ac_max_sed_lines
=50
36925 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36926 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36927 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36929 ac_in
='$ac_file_inputs'
36930 ac_out
='"$tmp/out1"'
36931 ac_nxt
='"$tmp/out2"'
36935 # Write a here document:
36936 cat >>$CONFIG_STATUS <<_ACEOF
36937 # First, check the format of the line:
36938 cat >"\$tmp/defines.sed" <<\\CEOF
36939 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36940 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36944 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
36946 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36947 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
36948 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
36949 grep . conftest.
tail >/dev
/null ||
break
36950 rm -f conftest.defines
36951 mv conftest.
tail conftest.defines
36953 rm -f conftest.defines conftest.
tail
36955 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36956 cat >>$CONFIG_STATUS <<\_ACEOF
36957 if test x
"$ac_file" != x-
; then
36958 echo "/* $configure_input */" >"$tmp/config.h"
36959 cat "$ac_result" >>"$tmp/config.h"
36960 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
36961 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36962 echo "$as_me: $ac_file is unchanged" >&6;}
36965 mv "$tmp/config.h" $ac_file
36968 echo "/* $configure_input */"
36980 { (exit 0); exit 0; }
36982 chmod +x
$CONFIG_STATUS
36983 ac_clean_files
=$ac_clean_files_save
36986 # configure is writing to config.log, and then calls config.status.
36987 # config.status does its own redirection, appending to config.log.
36988 # Unfortunately, on DOS this fails, as config.log is still kept open
36989 # by configure, so config.status won't be able to write to it; its
36990 # output is simply discarded. So we exec the FD to /dev/null,
36991 # effectively closing config.log, so it can be properly (re)opened and
36992 # appended to by config.status. When coming back to configure, we
36993 # need to make the FD available again.
36994 if test "$no_create" != yes; then
36996 ac_config_status_args
=
36997 test "$silent" = yes &&
36998 ac_config_status_args
="$ac_config_status_args --quiet"
37000 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
37002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37003 # would make configure fail if this is the last instruction.
37004 $ac_cs_success ||
{ (exit 1); exit 1; }
37008 if test "x${silent}" != "xyes" ; then
37010 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
37011 echo " .\$7\$7.. .7\$\$7:. "
37012 echo " .\$\$:. ,\$7.7 "
37013 echo " .\$7. 7\$\$\$\$ .\$\$77 "
37014 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
37015 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
37016 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
37017 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
37018 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
37019 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
37020 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
37021 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
37022 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
37023 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
37024 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
37025 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
37026 echo " \$\$\$\$\$ \$\$\$ "
37027 echo " \$\$\$\$7. \$\$ (TM) "
37028 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
37029 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
37030 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
37034 { echo "$as_me:$LINENO: Package configured for: " >&5
37035 echo "$as_me: Package configured for: " >&6;}
37036 { echo "$as_me:$LINENO: OS type : $host_os" >&5
37037 echo "$as_me: OS type : $host_os" >&6;}
37038 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
37039 echo "$as_me: Host CPU : $host_cpu" >&6;}
37040 if test "${cross_compiling}" = "yes"; then
37041 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
37042 echo "$as_me: Cross Compilation = YES" >&6;}