2 # From configure.ac Revision: 107408 .
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
918 ac_precious_vars
='build_alias
933 # Initialize some variables set by options.
935 ac_init_version
=false
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
945 program_transform_name
=s
,x
,x
,
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir
='${exec_prefix}/bin'
960 sbindir
='${exec_prefix}/sbin'
961 libexecdir
='${exec_prefix}/libexec'
962 datarootdir
='${prefix}/share'
963 datadir
='${datarootdir}'
964 sysconfdir
='${prefix}/etc'
965 sharedstatedir
='${prefix}/com'
966 localstatedir
='${prefix}/var'
967 includedir
='${prefix}/include'
968 oldincludedir
='/usr/include'
969 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir
='${datarootdir}/info'
975 libdir
='${exec_prefix}/lib'
976 localedir
='${datarootdir}/locale'
977 mandir
='${datarootdir}/man'
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\
$ac_option
991 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 # Accept the important Cygnus configure options, so we can diagnose typos.
997 case $ac_dashdash$ac_option in
1001 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1003 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1004 bindir
=$ac_optarg ;;
1006 -build |
--build |
--buil |
--bui |
--bu)
1007 ac_prev
=build_alias
;;
1008 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1009 build_alias
=$ac_optarg ;;
1011 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1012 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1013 ac_prev
=cache_file
;;
1014 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1015 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1016 cache_file
=$ac_optarg ;;
1018 --config-cache |
-C)
1019 cache_file
=config.cache
;;
1021 -datadir |
--datadir |
--datadi |
--datad)
1023 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1024 datadir
=$ac_optarg ;;
1026 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1027 |
--dataroo |
--dataro |
--datar)
1028 ac_prev
=datarootdir
;;
1029 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1030 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1031 datarootdir
=$ac_optarg ;;
1033 -disable-* |
--disable-*)
1034 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_
$ac_feature=no
;;
1042 -docdir |
--docdir |
--docdi |
--doc |
--do)
1044 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1045 docdir
=$ac_optarg ;;
1047 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1049 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1050 dvidir
=$ac_optarg ;;
1052 -enable-* |
--enable-*)
1053 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1059 eval enable_
$ac_feature=\
$ac_optarg ;;
1061 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1062 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1063 |
--exec |
--exe |
--ex)
1064 ac_prev
=exec_prefix
;;
1065 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1066 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1067 |
--exec=* |
--exe=* |
--ex=*)
1068 exec_prefix
=$ac_optarg ;;
1070 -gas |
--gas |
--ga |
--g)
1071 # Obsolete; use --with-gas.
1074 -help |
--help |
--hel |
--he |
-h)
1075 ac_init_help
=long
;;
1076 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1077 ac_init_help
=recursive
;;
1078 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1079 ac_init_help
=short
;;
1081 -host |
--host |
--hos |
--ho)
1082 ac_prev
=host_alias
;;
1083 -host=* |
--host=* |
--hos=* |
--ho=*)
1084 host_alias
=$ac_optarg ;;
1086 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1088 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1090 htmldir
=$ac_optarg ;;
1092 -includedir |
--includedir |
--includedi |
--included |
--include \
1093 |
--includ |
--inclu |
--incl |
--inc)
1094 ac_prev
=includedir
;;
1095 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1096 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1097 includedir
=$ac_optarg ;;
1099 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1101 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1102 infodir
=$ac_optarg ;;
1104 -libdir |
--libdir |
--libdi |
--libd)
1106 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1107 libdir
=$ac_optarg ;;
1109 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1110 |
--libexe |
--libex |
--libe)
1111 ac_prev
=libexecdir
;;
1112 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1113 |
--libexe=* |
--libex=* |
--libe=*)
1114 libexecdir
=$ac_optarg ;;
1116 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1117 ac_prev
=localedir
;;
1118 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1119 localedir
=$ac_optarg ;;
1121 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1122 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1123 ac_prev
=localstatedir
;;
1124 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1125 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1126 localstatedir
=$ac_optarg ;;
1128 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1130 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1131 mandir
=$ac_optarg ;;
1133 -nfp |
--nfp |
--nf)
1134 # Obsolete; use --without-fp.
1137 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1138 |
--no-cr |
--no-c |
-n)
1141 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1142 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1145 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1146 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1147 |
--oldin |
--oldi |
--old |
--ol |
--o)
1148 ac_prev
=oldincludedir
;;
1149 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1150 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1151 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1152 oldincludedir
=$ac_optarg ;;
1154 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1156 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1157 prefix
=$ac_optarg ;;
1159 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1160 |
--program-pre |
--program-pr |
--program-p)
1161 ac_prev
=program_prefix
;;
1162 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1163 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1164 program_prefix
=$ac_optarg ;;
1166 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1167 |
--program-suf |
--program-su |
--program-s)
1168 ac_prev
=program_suffix
;;
1169 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1170 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1171 program_suffix
=$ac_optarg ;;
1173 -program-transform-name |
--program-transform-name \
1174 |
--program-transform-nam |
--program-transform-na \
1175 |
--program-transform-n |
--program-transform- \
1176 |
--program-transform |
--program-transfor \
1177 |
--program-transfo |
--program-transf \
1178 |
--program-trans |
--program-tran \
1179 |
--progr-tra |
--program-tr |
--program-t)
1180 ac_prev
=program_transform_name
;;
1181 -program-transform-name=* |
--program-transform-name=* \
1182 |
--program-transform-nam=* |
--program-transform-na=* \
1183 |
--program-transform-n=* |
--program-transform-=* \
1184 |
--program-transform=* |
--program-transfor=* \
1185 |
--program-transfo=* |
--program-transf=* \
1186 |
--program-trans=* |
--program-tran=* \
1187 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1188 program_transform_name
=$ac_optarg ;;
1190 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1192 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1193 pdfdir
=$ac_optarg ;;
1195 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1197 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1200 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1201 |
-silent |
--silent |
--silen |
--sile |
--sil)
1204 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1206 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1208 sbindir
=$ac_optarg ;;
1210 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1211 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1212 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1214 ac_prev
=sharedstatedir
;;
1215 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1216 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1217 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1219 sharedstatedir
=$ac_optarg ;;
1221 -site |
--site |
--sit)
1223 -site=* |
--site=* |
--sit=*)
1226 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1228 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1229 srcdir
=$ac_optarg ;;
1231 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1232 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1233 ac_prev
=sysconfdir
;;
1234 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1235 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1236 sysconfdir
=$ac_optarg ;;
1238 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1239 ac_prev
=target_alias
;;
1240 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1241 target_alias
=$ac_optarg ;;
1243 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1246 -version |
--version |
--versio |
--versi |
--vers |
-V)
1247 ac_init_version
=: ;;
1250 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_
$ac_package=\
$ac_optarg ;;
1258 -without-* |
--without-*)
1259 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1262 { echo "$as_me: error: invalid package name: $ac_package" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1265 eval with_
$ac_package=no
;;
1268 # Obsolete; use --with-x.
1271 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1272 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1273 ac_prev
=x_includes
;;
1274 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1275 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1276 x_includes
=$ac_optarg ;;
1278 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1279 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1280 ac_prev
=x_libraries
;;
1281 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1282 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1283 x_libraries
=$ac_optarg ;;
1285 -*) { echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287 { (exit 1); exit 1; }; }
1291 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1294 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295 { (exit 1); exit 1; }; }
1296 eval $ac_envvar=\
$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1303 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1310 if test -n "$ac_prev"; then
1311 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1312 { echo "$as_me: error: missing argument to $ac_option" >&2
1313 { (exit 1); exit 1; }; }
1316 # Be sure to have absolute directory names.
1317 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val
=\$
$ac_var
1324 [\\/$
]* | ?
:[\\/]* ) continue;;
1325 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1327 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1328 { (exit 1); exit 1; }; }
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1336 target
=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x
; then
1340 if test "x$build_alias" = x
; then
1341 cross_compiling
=maybe
1342 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343 If a cross compiler is detected then cross compile mode will be used." >&2
1344 elif test "x$build_alias" != "x$host_alias"; then
1350 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1352 test "$silent" = yes && exec 6>/dev
/null
1355 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di
=`ls -di .` &&
1357 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1358 { echo "$as_me: error: Working directory cannot be determined" >&2
1359 { (exit 1); exit 1; }; }
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 { echo "$as_me: error: pwd does not report name of working directory" >&2
1362 { (exit 1); exit 1; }; }
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted
=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir
=`$as_dirname -- "$0" ||
1370 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$0" : 'X\(//\)[^/]' \| \
1372 X"$0" : 'X\(//\)$' \| \
1373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1397 ac_srcdir_defaulted
=no
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1401 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1402 { (exit 1); exit 1; }; }
1404 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1407 { (exit 1); exit 1; }; }
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1417 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 for ac_var
in $ac_precious_vars; do
1420 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1422 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1427 # Report the --help message.
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1433 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1440 Defaults for the options are specified in brackets.
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1464 For better control, use the options below.
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1491 --build=BUILD configure
for building on BUILD
[guessed
]
1492 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1496 if test -n "$ac_init_help"; then
1497 case $ac_init_help in
1498 short | recursive
) echo "Configuration of asterisk 1.4:";;
1503 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1504 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1505 --enable-dev-mode Turn on developer mode
1506 --disable-largefile omit support
for large files
1509 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1510 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1511 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1512 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1513 --with-curl=PATH use cURL files
in PATH
1514 --with-cap=PATH use POSIX
1.e capabilities files
in PATH
1515 --with-curses=PATH use curses files
in PATH
1516 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1518 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1519 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1520 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1521 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1522 --with-kde=PATH use KDE files
in PATH
1523 --with-ltdl=PATH use libtool files
in PATH
1524 --with-misdn=PATH use mISDN User Library files
in PATH
1525 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1526 --with-ncurses=PATH use ncurses files
in PATH
1527 --with-netsnmp=PATH use Net-SNMP files
in PATH
1528 --with-newt=PATH use newt files
in PATH
1529 --with-odbc=PATH use unixODBC files
in PATH
1530 --with-ogg=PATH use OGG files
in PATH
1531 --with-osptk=PATH use OSP Toolkit files
in PATH
1532 --with-oss=PATH use Open Sound System files
in PATH
1533 --with-popt=PATH use popt files
in PATH
1534 --with-postgres=PATH use PostgreSQL files
in PATH
1535 --with-pri=PATH use ISDN PRI files
in PATH
1536 --with-pwlib=PATH use PWlib files
in PATH
1537 --with-h323=PATH use OpenH323 files
in PATH
1538 --with-radius=PATH use Radius Client files
in PATH
1539 --with-speex=PATH use Speex files
in PATH
1540 --with-speexdsp=PATH use Speexdsp files
in PATH
1541 --with-sqlite=PATH use SQLite files
in PATH
1542 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1543 --with-ssl=PATH use OpenSSL files
in PATH
1544 --with-tds=PATH use FreeTDS files
in PATH
1545 --with-termcap=PATH use Termcap files
in PATH
1546 --with-tinfo=PATH use Term Info files
in PATH
1547 --with-tonezone=PATH use tonezone files
in PATH
1548 --with-usb=PATH use usb files
in PATH
1549 --with-vorbis=PATH use Vorbis files
in PATH
1550 --with-vpb=PATH use Voicetronix API files
in PATH
1551 --with-z=PATH use zlib files
in PATH
1552 --with-zaptel=PATH use Zaptel files
in PATH
1554 Some influential environment variables
:
1555 CC C compiler
command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1558 nonstandard directory
<lib dir
>
1559 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1560 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1561 you have headers
in a nonstandard directory
<include dir
>
1563 CXX C
++ compiler
command
1564 CXXFLAGS C
++ compiler flags
1565 CXXCPP C
++ preprocessor
1567 Use these variables to override the choices made by
`configure' or to help
1568 it to find libraries and programs with nonstandard names/locations.
1570 Report bugs to <www.asterisk.org>.
1575 if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" || continue
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1631 asterisk configure 1.4
1632 generated by GNU Autoconf 2.61
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1643 cat >config.log <<_ACEOF
1644 This file contains any messages produced by compilers while
1645 running configure, to aid debugging if configure makes a mistake.
1647 It was created by asterisk $as_me 1.4, which was
1648 generated by GNU Autoconf 2.61. Invocation command line was
1660 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1661 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1662 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1663 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1664 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1666 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1667 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1669 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1670 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1671 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1672 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1673 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1674 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1675 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 test -z "$as_dir" && as_dir=.
1684 echo "PATH: $as_dir"
1700 # Keep a trace of the command line.
1701 # Strip out --no-create and --no-recursion so they do not pile up.
1702 # Strip out --silent because we don't want to record it for future runs.
1703 # Also quote any args containing shell meta-characters.
1704 # Make two passes to allow for proper duplicate-argument suppression.
1708 ac_must_keep_next=false
1714 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1716 | -silent | --silent | --silen | --sile | --sil)
1719 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1722 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1724 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1725 if test $ac_must_keep_next = true; then
1726 ac_must_keep_next=false # Got value, back to normal.
1729 *=* | --config-cache | -C | -disable-* | --disable-* \
1730 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1731 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1732 | -with-* | --with-* | -without-* | --without-* | --x)
1733 case "$ac_configure_args0 " in
1734 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1737 -* ) ac_must_keep_next=true ;;
1740 ac_configure_args="$ac_configure_args '$ac_arg'"
1745 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1746 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1748 # When interrupted or exit'd, cleanup temporary files, and complete
1749 # config.log. We remove comments because anyway the quotes in there
1750 # would cause problems or look ugly.
1751 # WARNING: Use '\'' to represent an apostrophe within the trap.
1752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1753 trap 'exit_status=$?
1754 # Save into config.log some information that might help in debugging.
1759 ## ---------------- ##
1760 ## Cache variables. ##
1761 ## ---------------- ##
1764 # The following way of writing the cache mishandles newlines in values,
1766 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1767 eval ac_val=\$$ac_var
1771 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1772 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1775 _ | IFS | as_nl) ;; #(
1776 *) $as_unset $ac_var ;;
1781 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1782 *${as_nl}ac_space=\ *)
1784 "s/'\''/'\''\\\\'\'''\''/g;
1785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1801 for ac_var in $ac_subst_vars
1803 eval ac_val=\$$ac_var
1805 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 echo "$ac_var='\''$ac_val'\''"
1811 if test -n "$ac_subst_files"; then
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1818 for ac_var in $ac_subst_files
1820 eval ac_val=\$$ac_var
1822 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 echo "$ac_var='\''$ac_val'\''"
1829 if test -s confdefs.h; then
1839 test "$ac_signal" != 0 &&
1840 echo "$as_me: caught signal $ac_signal"
1841 echo "$as_me: exit $exit_status"
1843 rm -f core *.core core.conftest.* &&
1844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1847 for ac_signal in 1 2 13 15; do
1848 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1855 # Predefined preprocessor variables.
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer explicitly selected file to automatically selected ones.
1884 if test -n "$CONFIG_SITE"; then
1885 set x "$CONFIG_SITE"
1886 elif test "x$prefix" != xNONE; then
1887 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1889 set x "$ac_default_prefix/share/config.site" \
1890 "$ac_default_prefix/etc/config.site"
1895 if test -r "$ac_site_file"; then
1896 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 echo "$as_me: loading site script $ac_site_file" >&6;}
1898 sed 's/^/| /' "$ac_site_file" >&5
1903 if test -r "$cache_file"; then
1904 # Some versions of bash will fail to source /dev/null (special
1905 # files actually), so we avoid doing that.
1906 if test -f "$cache_file"; then
1907 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 echo "$as_me: loading cache $cache_file" >&6;}
1910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911 *) . "./$cache_file";;
1915 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 echo "$as_me: creating cache $cache_file" >&6;}
1920 ac_header_list="$ac_header_list utime.h"
1921 # Check that the precious variables saved in the cache have kept the same
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
1927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
1929 case $ac_old_set,$ac_new_set in
1931 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1932 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1936 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
1941 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1943 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1944 echo "$as_me: former value
: $ac_old_val" >&2;}
1945 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1946 echo "$as_me: current value
: $ac_new_val" >&2;}
1947 ac_cache_corrupted=:
1950 # Pass precious variables to config.status.
1951 if test "$ac_new_set" = set; then
1953 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1954 *) ac_arg=$ac_var=$ac_new_val ;;
1956 case " $ac_configure_args " in
1957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1958 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1962 if $ac_cache_corrupted; then
1963 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1964 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1965 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 # cross-compile macros
2004 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2005 if test -f "$ac_dir/install-sh"; then
2007 ac_install_sh="$ac_aux_dir/install-sh -c"
2009 elif test -f "$ac_dir/install.sh"; then
2011 ac_install_sh="$ac_aux_dir/install.sh -c"
2013 elif test -f "$ac_dir/shtool"; then
2015 ac_install_sh="$ac_aux_dir/shtool install -c"
2019 if test -z "$ac_aux_dir"; then
2020 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2021 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2022 { (exit 1); exit 1; }; }
2025 # These three variables are undocumented and unsupported,
2026 # and are intended to be withdrawn in a future Autoconf release.
2027 # They can cause serious problems if a builder's source tree is in a directory
2028 # whose full name contains unusual characters.
2029 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2030 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2031 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2034 # Make sure we can run config.sub.
2035 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2036 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2037 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2038 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: checking build system type" >&5
2041 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2042 if test "${ac_cv_build+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 ac_build_alias=$build_alias
2046 test "x$ac_build_alias" = x &&
2047 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2048 test "x$ac_build_alias" = x &&
2049 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2051 { (exit 1); exit 1; }; }
2052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2053 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2055 { (exit 1); exit 1; }; }
2058 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2059 echo "${ECHO_T}$ac_cv_build" >&6; }
2060 case $ac_cv_build in
2062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2063 echo "$as_me: error: invalid value of canonical build" >&2;}
2064 { (exit 1); exit 1; }; };;
2067 ac_save_IFS=$IFS; IFS='-'
2073 # Remember, the first character of IFS is used to create $*,
2074 # except with old shells:
2077 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2080 { echo "$as_me:$LINENO: checking host system type" >&5
2081 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2082 if test "${ac_cv_host+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 if test "x$host_alias" = x; then
2086 ac_cv_host=$ac_cv_build
2088 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2089 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2090 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2091 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2096 echo "${ECHO_T}$ac_cv_host" >&6; }
2099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2100 echo "$as_me: error: invalid value of canonical host" >&2;}
2101 { (exit 1); exit 1; }; };;
2104 ac_save_IFS=$IFS; IFS='-'
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2114 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2118 # check existence of the package
2121 # specify output header file
2122 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2129 cat >>confdefs.h <<\_ACEOF
2130 #define _GNU_SOURCE 1
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 if test -n "$CC"; then
2169 { echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6; }
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2178 if test -z "$ac_cv_prog_CC"; then
2180 # Extract the first word of "gcc", so it can be a program name with args.
2181 set dummy gcc; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$ac_ct_CC"; then
2188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_ac_ct_CC="gcc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208 if test -n "$ac_ct_CC"; then
2209 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2210 echo "${ECHO_T}$ac_ct_CC" >&6; }
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2216 if test "x$ac_ct_CC" = x; then
2219 case $cross_compiling:$ac_tool_warned in
2221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet. If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&5
2224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet. If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2227 ac_tool_warned=yes ;;
2235 if test -z "$CC"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}cc; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254 ac_cv_prog_CC="${ac_tool_prefix}cc"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 if test -n "$CC"; then
2266 { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2276 if test -z "$CC"; then
2277 # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296 ac_prog_rejected=yes
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 if test $ac_prog_rejected = yes; then
2308 # We found a bogon in the path, so make sure we never use it.
2309 set dummy $ac_cv_prog_CC
2311 if test $# != 0; then
2312 # We chose a different compiler from the bogus one.
2313 # However, it has the same basename, so the bogon will be chosen
2314 # first if we set CC to just the basename; use the full file name.
2316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2322 if test -n "$CC"; then
2323 { echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6; }
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 for ac_prog in cl.exe
2336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 if test -n "$CC"; then
2365 { echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6; }
2368 { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2373 test -n "$CC" && break
2376 if test -z "$CC"; then
2378 for ac_prog in cl.exe
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 if test -n "$ac_ct_CC"; then
2388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_ac_ct_CC="$ac_prog"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 if test -n "$ac_ct_CC"; then
2409 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2410 echo "${ECHO_T}$ac_ct_CC" >&6; }
2412 { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2417 test -n "$ac_ct_CC" && break
2420 if test "x$ac_ct_CC" = x; then
2423 case $cross_compiling:$ac_tool_warned in
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2440 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2441 See \`config.log
' for more details." >&5
2442 echo "$as_me: error: no acceptable C compiler found in \$PATH
2443 See \`config.log' for more details.
" >&2;}
2444 { (exit 1); exit 1; }; }
2446 # Provide some information about the compiler.
2447 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2448 ac_compiler=`set X $ac_compile; echo $2`
2449 { (ac_try="$ac_compiler --version >&5"
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compiler --version >&5") 2>&5
2457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2458 (exit $ac_status); }
2459 { (ac_try="$ac_compiler -v >&5"
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compiler -v >&5") 2>&5
2467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2468 (exit $ac_status); }
2469 { (ac_try="$ac_compiler -V >&5"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_compiler -V >&5") 2>&5
2477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2478 (exit $ac_status); }
2480 cat >conftest.$ac_ext <<_ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2495 ac_clean_files_save=$ac_clean_files
2496 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2497 # Try to create an executable without -o first, disregard a.out.
2498 # It will help us diagnose broken compilers, and finding out an intuition
2500 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2501 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2502 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504 # List of possible output files, starting from the most likely.
2505 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2506 # only as a last resort. b.out is created by i960 compilers.
2507 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2509 # The IRIX 6 linker writes into existing files which may not be
2510 # executable, retaining their permissions. Remove them first so a
2511 # subsequent execution test works.
2513 for ac_file in $ac_files
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2522 if { (ac_try="$ac_link_default"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_link_default") 2>&5
2530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2534 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2535 # so that the user can short-circuit this test for compilers unknown to
2537 for ac_file in $ac_files ''
2539 test -f "$ac_file" || continue
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2544 # We found the default executable, but exeext='' is most
2548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 # We set ac_cv_exeext here because the later test for it is not
2553 # safe: cross compilers may not add the suffix if given an `-o'
2554 # argument, so we may need to know it at that point already.
2555 # Even if this section looks crufty: it has the advantage of
2562 test "$ac_cv_exeext" = no && ac_cv_exeext=
2568 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2569 echo "${ECHO_T}$ac_file" >&6; }
2570 if test -z "$ac_file"; then
2571 echo "$as_me: failed program was
:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2575 See \
`config.log' for more details." >&5
2576 echo "$as_me: error: C compiler cannot create executables
2577 See \`config.log
' for more details." >&2;}
2578 { (exit 77); exit 77; }; }
2581 ac_exeext=$ac_cv_exeext
2583 # Check that the compiler produces executables we can run. If not, either
2584 # the compiler is broken, or we cross compile.
2585 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590 if { ac_try='.
/$ac_file'
2591 { (case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_try") 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 if test "$cross_compiling" = maybe; then
2605 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \
`config.log' for more details." >&5
2608 echo "$as_me: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details.
" >&2;}
2611 { (exit 1); exit 1; }; }
2615 { echo "$as_me:$LINENO: result
: yes" >&5
2616 echo "${ECHO_T}yes" >&6; }
2618 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2619 ac_clean_files=$ac_clean_files_save
2620 # Check that the compiler produces executables we can run. If not, either
2621 # the compiler is broken, or we cross compile.
2622 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2623 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2624 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2625 echo "${ECHO_T}$cross_compiling" >&6; }
2627 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2628 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2629 if { (ac_try="$ac_link"
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_link") 2>&5
2637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2638 (exit $ac_status); }; then
2639 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2641 # work properly (i.e., refer to `conftest.exe'), while it won't with
2643 for ac_file in conftest.exe conftest conftest.*; do
2644 test -f "$ac_file" || continue
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2647 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2653 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2654 See \
`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log
' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2660 rm -f conftest$ac_cv_exeext
2661 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2667 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2669 if test "${ac_cv_objext+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2687 rm -f conftest.o conftest.obj
2688 if { (ac_try="$ac_compile"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compile") 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; then
2698 for ac_file in conftest.o conftest.obj conftest.*; do
2699 test -f "$ac_file" || continue;
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2702 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2707 echo "$as_me: failed program was:" >&5
2708 sed 's
/^
/|
/' conftest.$ac_ext >&5
2710 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details.
" >&5
2712 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2713 See \
`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }
2717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2719 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2720 echo "${ECHO_T}$ac_cv_objext" >&6; }
2721 OBJEXT=$ac_cv_objext
2723 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2724 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2725 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 cat >conftest.$ac_ext <<_ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2746 rm -f conftest.$ac_objext
2747 if { (ac_try="$ac_compile"
2749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2750 *) ac_try_echo
=$ac_try;;
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compile") 2>conftest.er1
2755 grep -v '^ *+' conftest.er1
>conftest.err
2757 cat conftest.err
>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } && {
2760 test -z "$ac_c_werror_flag" ||
2761 test ! -s conftest.err
2762 } && test -s conftest.
$ac_objext; then
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.
$ac_ext >&5
2771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2772 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2775 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2777 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2778 ac_test_CFLAGS
=${CFLAGS+set}
2779 ac_save_CFLAGS
=$CFLAGS
2780 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 ac_save_c_werror_flag
=$ac_c_werror_flag
2786 ac_c_werror_flag
=yes
2789 cat >conftest.
$ac_ext <<_ACEOF
2792 cat confdefs.h
>>conftest.
$ac_ext
2793 cat >>conftest.
$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2804 rm -f conftest.
$ac_objext
2805 if { (ac_try
="$ac_compile"
2807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_compile") 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } && {
2818 test -z "$ac_c_werror_flag" ||
2819 test ! -s conftest.err
2820 } && test -s conftest.$ac_objext; then
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2827 cat >conftest.$ac_ext <<_ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2846 *) ac_try_echo
=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2851 grep -v '^ *+' conftest.er1
>conftest.err
2853 cat conftest.err
>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.
$ac_objext; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.
$ac_ext >&5
2864 ac_c_werror_flag
=$ac_save_c_werror_flag
2866 cat >conftest.
$ac_ext <<_ACEOF
2869 cat confdefs.h
>>conftest.
$ac_ext
2870 cat >>conftest.
$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2881 rm -f conftest.
$ac_objext
2882 if { (ac_try
="$ac_compile"
2884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_c_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 ac_c_werror_flag=$ac_save_c_werror_flag
2915 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2916 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2917 if test "$ac_test_CFLAGS" = set; then
2918 CFLAGS=$ac_save_CFLAGS
2919 elif test $ac_cv_prog_cc_g = yes; then
2920 if test "$GCC" = yes; then
2926 if test "$GCC" = yes; then
2932 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2933 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2934 if test "${ac_cv_prog_cc_c89+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 ac_cv_prog_cc_c89=no
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2947 #include <sys/types.h>
2948 #include <sys/stat.h>
2949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2950 struct buf { int x; };
2951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2952 static char *e (p, i)
2958 static char *f (char * (*g) (char **, int), char **p, ...)
2963 s = g (p, va_arg (v,int));
2968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2969 function prototypes and stuff, but not '\xHH' hex character constants.
2970 These don't provoke an error unfortunately, instead are silently treated
2971 as 'x'. The following induces an error, until -std is added to get
2972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2973 array size at least. It's necessary to write '\x00'==0 to get something
2974 that's true only with -std. */
2975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2978 inside strings and character constants. */
2980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2982 int test (int i, double x);
2983 struct s1 {int (*f) (int a);};
2984 struct s2 {int (*f) (double a);};
2985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2997 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2999 CC="$ac_save_CC $ac_arg"
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3004 *) ac_try_echo
=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1
>conftest.err
3011 cat conftest.err
>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.
$ac_objext; then
3017 ac_cv_prog_cc_c89
=$ac_arg
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.
$ac_ext >&5
3025 rm -f core conftest.err conftest.
$ac_objext
3026 test "x$ac_cv_prog_cc_c89" != "xno" && break
3028 rm -f conftest.
$ac_ext
3033 case "x$ac_cv_prog_cc_c89" in
3035 { echo "$as_me:$LINENO: result: none needed" >&5
3036 echo "${ECHO_T}none needed" >&6; } ;;
3038 { echo "$as_me:$LINENO: result: unsupported" >&5
3039 echo "${ECHO_T}unsupported" >&6; } ;;
3041 CC
="$CC $ac_cv_prog_cc_c89"
3042 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3043 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3048 ac_cpp
='$CPP $CPPFLAGS'
3049 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3055 ac_cpp
='$CPP $CPPFLAGS'
3056 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3059 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3060 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3061 # On Suns, sometimes $CPP names a directory.
3062 if test -n "$CPP" && test -d "$CPP"; then
3065 if test -z "$CPP"; then
3066 if test "${ac_cv_prog_CPP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 # Double quotes because CPP needs to be expanded
3070 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3073 for ac_c_preproc_warn_flag
in '' yes
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 # <limits.h> exists even on freestanding compilers.
3079 # On the NeXT, cc -E runs the code through the compiler's parser,
3080 # not just through cpp. "Syntax error" is here to catch this case.
3081 cat >conftest.
$ac_ext <<_ACEOF
3084 cat confdefs.h
>>conftest.
$ac_ext
3085 cat >>conftest.
$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3088 # include <limits.h>
3090 # include <assert.h>
3094 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null && {
3107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 # Broken: fails on valid input.
3119 rm -f conftest.err conftest.$ac_ext
3121 # OK, works on sane cases. Now check whether nonexistent headers
3122 # can be detected and how.
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #include <ac_nonexistent.h>
3131 if { (ac_try="$ac_cpp conftest.$ac_ext"
3133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3134 *) ac_try_echo
=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1
>conftest.err
3141 cat conftest.err
>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev
/null
&& {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3147 # Broken: success on invalid input.
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.
$ac_ext >&5
3153 # Passes both tests.
3158 rm -f conftest.err conftest.
$ac_ext
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.
$ac_ext
3163 if $ac_preproc_ok; then
3175 { echo "$as_me:$LINENO: result: $CPP" >&5
3176 echo "${ECHO_T}$CPP" >&6; }
3178 for ac_c_preproc_warn_flag
in '' yes
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat >conftest.
$ac_ext <<_ACEOF
3189 cat confdefs.h
>>conftest.
$ac_ext
3190 cat >>conftest.
$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3193 # include <limits.h>
3195 # include <assert.h>
3199 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3207 grep -v '^ *+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } >/dev/null && {
3212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 # Broken: fails on valid input.
3224 rm -f conftest.err conftest.$ac_ext
3226 # OK, works on sane cases. Now check whether nonexistent headers
3227 # can be detected and how.
3228 cat >conftest.$ac_ext <<_ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #include <ac_nonexistent.h>
3236 if { (ac_try="$ac_cpp conftest.$ac_ext"
3238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3239 *) ac_try_echo
=$ac_try;;
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3244 grep -v '^ *+' conftest.er1
>conftest.err
3246 cat conftest.err
>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev
/null
&& {
3249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3250 test ! -s conftest.err
3252 # Broken: success on invalid input.
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.
$ac_ext >&5
3258 # Passes both tests.
3263 rm -f conftest.err conftest.
$ac_ext
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.
$ac_ext
3268 if $ac_preproc_ok; then
3271 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3274 See \`config.log' for more details." >&2;}
3275 { (exit 1); exit 1; }; }
3279 ac_cpp
='$CPP $CPPFLAGS'
3280 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3285 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3286 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3287 if test "${ac_cv_path_GREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 # Extract the first word of "grep ggrep" to use in msg output
3291 if test -z "$GREP"; then
3292 set dummy
grep ggrep
; ac_prog_name
=$2
3293 if test "${ac_cv_path_GREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 ac_path_GREP_found
=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3299 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3302 test -z "$as_dir" && as_dir
=.
3303 for ac_prog
in grep ggrep
; do
3304 for ac_exec_ext
in '' $ac_executable_extensions; do
3305 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3306 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3307 # Check for GNU ac_path_GREP and select it if it is found.
3308 # Check for GNU $ac_path_GREP
3309 case `"$ac_path_GREP" --version 2>&1` in
3311 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 echo 'GREP' >> "conftest.nl"
3321 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3322 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3323 ac_count
=`expr $ac_count + 1`
3324 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_GREP
="$ac_path_GREP"
3327 ac_path_GREP_max
=$ac_count
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3332 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3336 $ac_path_GREP_found && break 3
3346 GREP
="$ac_cv_path_GREP"
3347 if test -z "$GREP"; then
3348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 { (exit 1); exit 1; }; }
3354 ac_cv_path_GREP
=$GREP
3359 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3360 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3361 GREP
="$ac_cv_path_GREP"
3364 { echo "$as_me:$LINENO: checking for egrep" >&5
3365 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3366 if test "${ac_cv_path_EGREP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3370 then ac_cv_path_EGREP
="$GREP -E"
3372 # Extract the first word of "egrep" to use in msg output
3373 if test -z "$EGREP"; then
3374 set dummy
egrep; ac_prog_name
=$2
3375 if test "${ac_cv_path_EGREP+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 ac_path_EGREP_found
=false
3379 # Loop through the user's path and test for each of PROGNAME-LIST
3380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3381 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3384 test -z "$as_dir" && as_dir
=.
3385 for ac_prog
in egrep; do
3386 for ac_exec_ext
in '' $ac_executable_extensions; do
3387 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3389 # Check for GNU ac_path_EGREP and select it if it is found.
3390 # Check for GNU $ac_path_EGREP
3391 case `"$ac_path_EGREP" --version 2>&1` in
3393 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3396 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3399 cat "conftest.in" "conftest.in" >"conftest.tmp"
3400 mv "conftest.tmp" "conftest.in"
3401 cp "conftest.in" "conftest.nl"
3402 echo 'EGREP' >> "conftest.nl"
3403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3404 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3405 ac_count
=`expr $ac_count + 1`
3406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3407 # Best one so far, save it but keep looking for a better one
3408 ac_cv_path_EGREP
="$ac_path_EGREP"
3409 ac_path_EGREP_max
=$ac_count
3411 # 10*(2^10) chars as input seems more than enough
3412 test $ac_count -gt 10 && break
3414 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3418 $ac_path_EGREP_found && break 3
3428 EGREP
="$ac_cv_path_EGREP"
3429 if test -z "$EGREP"; then
3430 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3431 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3432 { (exit 1); exit 1; }; }
3436 ac_cv_path_EGREP
=$EGREP
3442 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3443 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3444 EGREP
="$ac_cv_path_EGREP"
3448 { echo "$as_me:$LINENO: checking for AIX" >&5
3449 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3450 cat >conftest.
$ac_ext <<_ACEOF
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462 $EGREP "yes" >/dev
/null
2>&1; then
3463 { echo "$as_me:$LINENO: result: yes" >&5
3464 echo "${ECHO_T}yes" >&6; }
3465 cat >>confdefs.h
<<\_ACEOF
3466 #define _ALL_SOURCE 1
3470 { echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6; }
3476 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3477 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3478 if test "${ac_cv_header_stdc+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 cat >conftest.
$ac_ext <<_ACEOF
3484 cat confdefs.h
>>conftest.
$ac_ext
3485 cat >>conftest.
$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3500 rm -f conftest.
$ac_objext
3501 if { (ac_try
="$ac_compile"
3503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_compile") 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } && {
3514 test -z "$ac_c_werror_flag" ||
3515 test ! -s conftest.err
3516 } && test -s conftest.$ac_objext; then
3517 ac_cv_header_stdc=yes
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 ac_cv_header_stdc=no
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 if test $ac_cv_header_stdc = yes; then
3528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3539 $EGREP "memchr" >/dev/null 2>&1; then
3542 ac_cv_header_stdc=no
3548 if test $ac_cv_header_stdc = yes; then
3549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 $EGREP "free" >/dev/null 2>&1; then
3563 ac_cv_header_stdc=no
3569 if test $ac_cv_header_stdc = yes; then
3570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3571 if test "$cross_compiling" = yes; then
3574 cat >conftest.$ac_ext <<_ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3582 #if ((' ' & 0x0FF) == 0x020)
3583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3586 # define ISLOWER(c) \
3587 (('a' <= (c) && (c) <= 'i') \
3588 || ('j' <= (c) && (c) <= 'r') \
3589 || ('s' <= (c) && (c) <= 'z'))
3590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3598 for (i = 0; i < 256; i++)
3599 if (XOR (islower (i), ISLOWER (i))
3600 || toupper (i) != TOUPPER (i))
3605 rm -f conftest$ac_exeext
3606 if { (ac_try="$ac_link"
3608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3609 *) ac_try_echo
=$ac_try;;
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_link") 2>&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3616 { (case "(($ac_try" in
3617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_try") 2>&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3627 echo "$as_me: program exited with status $ac_status" >&5
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3632 ac_cv_header_stdc=no
3634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3640 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3641 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3642 if test $ac_cv_header_stdc = yes; then
3644 cat >>confdefs.h <<\_ACEOF
3645 #define STDC_HEADERS 1
3650 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3660 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3661 inttypes.h stdint.h unistd.h
3663 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675 $ac_includes_default
3677 #include <$ac_header>
3679 rm -f conftest.$ac_objext
3680 if { (ac_try="$ac_compile"
3682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3683 *) ac_try_echo
=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_compile") 2>conftest.er1
3688 grep -v '^ *+' conftest.er1
>conftest.err
3690 cat conftest.err
>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } && {
3693 test -z "$ac_c_werror_flag" ||
3694 test ! -s conftest.err
3695 } && test -s conftest.
$ac_objext; then
3696 eval "$as_ac_Header=yes"
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.
$ac_ext >&5
3701 eval "$as_ac_Header=no"
3704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3706 ac_res
=`eval echo '${'$as_ac_Header'}'`
3707 { echo "$as_me:$LINENO: result: $ac_res" >&5
3708 echo "${ECHO_T}$ac_res" >&6; }
3709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3710 cat >>confdefs.h
<<_ACEOF
3711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3719 if test "${ac_cv_header_minix_config_h+set}" = set; then
3720 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3721 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3722 if test "${ac_cv_header_minix_config_h+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3726 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3728 # Is the header compilable?
3729 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3730 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3731 cat >conftest.
$ac_ext <<_ACEOF
3734 cat confdefs.h
>>conftest.
$ac_ext
3735 cat >>conftest.
$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 $ac_includes_default
3738 #include <minix/config.h>
3740 rm -f conftest.
$ac_objext
3741 if { (ac_try
="$ac_compile"
3743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compile") 2>conftest.er1
3749 grep -v '^ *+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && {
3754 test -z "$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 } && test -s conftest.$ac_objext; then
3757 ac_header_compiler=yes
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 ac_header_compiler=no
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3767 echo "${ECHO_T}$ac_header_compiler" >&6; }
3769 # Is the header present?
3770 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3771 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 #include <minix/config.h>
3780 if { (ac_try="$ac_cpp conftest.$ac_ext"
3782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3783 *) ac_try_echo
=$ac_try;;
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3788 grep -v '^ *+' conftest.er1
>conftest.err
3790 cat conftest.err
>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } >/dev
/null
&& {
3793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3796 ac_header_preproc
=yes
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.
$ac_ext >&5
3801 ac_header_preproc
=no
3804 rm -f conftest.err conftest.
$ac_ext
3805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3806 echo "${ECHO_T}$ac_header_preproc" >&6; }
3808 # So? What about this header?
3809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3811 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3812 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3813 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3814 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3815 ac_header_preproc
=yes
3818 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3819 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3820 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3821 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3823 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3824 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3825 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3827 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3829 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3831 ## ------------------------------- ##
3832 ## Report this to www.asterisk.org ##
3833 ## ------------------------------- ##
3835 ) |
sed "s/^/$as_me: WARNING: /" >&2
3838 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3839 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3840 if test "${ac_cv_header_minix_config_h+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 ac_cv_header_minix_config_h
=$ac_header_preproc
3845 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3846 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3849 if test $ac_cv_header_minix_config_h = yes; then
3856 if test "$MINIX" = yes; then
3858 cat >>confdefs.h
<<\_ACEOF
3859 #define _POSIX_SOURCE 1
3863 cat >>confdefs.h
<<\_ACEOF
3864 #define _POSIX_1_SOURCE 2
3868 cat >>confdefs.h
<<\_ACEOF
3884 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3885 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3886 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 cat >conftest.
$ac_ext <<_ACEOF
3892 cat confdefs.h
>>conftest.
$ac_ext
3893 cat >>conftest.
$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3896 # define __EXTENSIONS__ 1
3897 $ac_includes_default
3906 rm -f conftest.
$ac_objext
3907 if { (ac_try
="$ac_compile"
3909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_compile") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest.$ac_objext; then
3923 ac_cv_safe_to_define___extensions__=yes
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 ac_cv_safe_to_define___extensions__=no
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3934 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3935 test $ac_cv_safe_to_define___extensions__ = yes &&
3936 cat >>confdefs.h <<\_ACEOF
3937 #define __EXTENSIONS__ 1
3940 cat >>confdefs.h <<\_ACEOF
3941 #define _POSIX_PTHREAD_SEMANTICS 1
3944 cat >>confdefs.h <<\_ACEOF
3945 #define _TANDEM_SOURCE 1
3948 # note- does not work on FreeBSD
3950 case "${host_os}" in
3952 ac_default_prefix=/usr/local
3953 CPPFLAGS=-I/usr/local/include
3954 LDFLAGS=-L/usr/local/lib
3957 ac_default_prefix=/usr
3958 if test ${sysconfdir} = '${prefix}/etc'; then
3961 if test ${mandir} = '${prefix}/man'; then
3962 mandir=/usr/share/man
3967 if test ${localstatedir} = '${prefix}/var'; then
3971 BUILD_PLATFORM=${build}
3972 BUILD_CPU=${build_cpu}
3973 BUILD_VENDOR=${build_vendor}
3974 BUILD_OS=${build_os}
3981 HOST_PLATFORM=${host}
3982 HOST_CPU=${host_cpu}
3983 HOST_VENDOR=${host_vendor}
3991 case "${host_os}" in
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}uname; ac_word=$2
4015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4017 if test "${ac_cv_path_UNAME+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 UNAME=$ac_cv_path_UNAME
4044 if test -n "$UNAME"; then
4045 { echo "$as_me:$LINENO: result: $UNAME" >&5
4046 echo "${ECHO_T}$UNAME" >&6; }
4048 { echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6; }
4054 if test -z "$ac_cv_path_UNAME"; then
4056 # Extract the first word of "uname", so it can be a program name with args.
4057 set dummy uname; ac_word=$2
4058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4060 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 case $ac_pt_UNAME in
4065 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4087 if test -n "$ac_pt_UNAME"; then
4088 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4089 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4091 { echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6; }
4095 if test "x$ac_pt_UNAME" = x; then
4098 case $cross_compiling:$ac_tool_warned in
4100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4101 whose name does not start with the host triplet. If you think this
4102 configuration is useful to you, please write to autoconf@gnu.org." >&5
4103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4104 whose name does not start with the host triplet. If you think this
4105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4106 ac_tool_warned=yes ;;
4111 UNAME="$ac_cv_path_UNAME"
4114 if test ! x"${UNAME}" = xNo; then
4115 PBX_OSREV=$(${UNAME} -r)
4125 # cross-compile checks
4126 if test "${cross_compiling}" = "yes";
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4133 if test "${ac_cv_prog_CC+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 if test -n "$CC"; then
4158 { echo "$as_me:$LINENO: result: $CC" >&5
4159 echo "${ECHO_T}$CC" >&6; }
4161 { echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6; }
4167 if test -z "$ac_cv_prog_CC"; then
4169 # Extract the first word of "gcc", so it can be a program name with args.
4170 set dummy gcc; ac_word=$2
4171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 if test -n "$ac_ct_CC"; then
4177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_ac_ct_CC="gcc"
4187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4197 if test -n "$ac_ct_CC"; then
4198 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4199 echo "${ECHO_T}$ac_ct_CC" >&6; }
4201 { echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6; }
4205 if test "x$ac_ct_CC" = x; then
4208 case $cross_compiling:$ac_tool_warned in
4210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4211 whose name does not start with the host triplet. If you think this
4212 configuration is useful to you, please write to autoconf@gnu.org." >&5
4213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4214 whose name does not start with the host triplet. If you think this
4215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4216 ac_tool_warned=yes ;;
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4226 set dummy ${ac_tool_prefix}g++; ac_word=$2
4227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4229 if test "${ac_cv_prog_CXX+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 if test -n "$CXX"; then
4233 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 if test -n "$CXX"; then
4254 { echo "$as_me:$LINENO: result: $CXX" >&5
4255 echo "${ECHO_T}$CXX" >&6; }
4257 { echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6; }
4263 if test -z "$ac_cv_prog_CXX"; then
4265 # Extract the first word of "g++", so it can be a program name with args.
4266 set dummy g++; ac_word=$2
4267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4269 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 if test -n "$ac_ct_CXX"; then
4273 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_ac_ct_CXX="g++"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4293 if test -n "$ac_ct_CXX"; then
4294 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4295 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4297 { echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6; }
4301 if test "x$ac_ct_CXX" = x; then
4304 case $cross_compiling:$ac_tool_warned in
4306 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4307 whose name does not start with the host triplet. If you think this
4308 configuration is useful to you, please write to autoconf@gnu.org." >&5
4309 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4310 whose name does not start with the host triplet. If you think this
4311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4312 ac_tool_warned=yes ;;
4317 CXX="$ac_cv_prog_CXX"
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}ld; ac_word=$2
4323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4325 if test "${ac_cv_prog_LD+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 if test -n "$LD"; then
4329 ac_cv_prog_LD="$LD" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_LD="${ac_tool_prefix}ld"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 if test -n "$LD"; then
4350 { echo "$as_me:$LINENO: result: $LD" >&5
4351 echo "${ECHO_T}$LD" >&6; }
4353 { echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6; }
4359 if test -z "$ac_cv_prog_LD"; then
4361 # Extract the first word of "ld", so it can be a program name with args.
4362 set dummy ld; ac_word=$2
4363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 if test -n "$ac_ct_LD"; then
4369 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_ac_ct_LD="ld"
4379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4389 if test -n "$ac_ct_LD"; then
4390 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4391 echo "${ECHO_T}$ac_ct_LD" >&6; }
4393 { echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6; }
4397 if test "x$ac_ct_LD" = x; then
4400 case $cross_compiling:$ac_tool_warned in
4402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4403 whose name does not start with the host triplet. If you think this
4404 configuration is useful to you, please write to autoconf@gnu.org." >&5
4405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4406 whose name does not start with the host triplet. If you think this
4407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4408 ac_tool_warned=yes ;;
4416 if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4418 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421 if test "${ac_cv_prog_RANLIB+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 if test -n "$RANLIB"; then
4425 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 RANLIB=$ac_cv_prog_RANLIB
4445 if test -n "$RANLIB"; then
4446 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4447 echo "${ECHO_T}$RANLIB" >&6; }
4449 { echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6; }
4455 if test -z "$ac_cv_prog_RANLIB"; then
4456 ac_ct_RANLIB=$RANLIB
4457 # Extract the first word of "ranlib", so it can be a program name with args.
4458 set dummy ranlib; ac_word=$2
4459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4461 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 if test -n "$ac_ct_RANLIB"; then
4465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_ac_ct_RANLIB="ranlib"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4485 if test -n "$ac_ct_RANLIB"; then
4486 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4487 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4489 { echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6; }
4493 if test "x$ac_ct_RANLIB" = x; then
4496 case $cross_compiling:$ac_tool_warned in
4498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4499 whose name does not start with the host triplet. If you think this
4500 configuration is useful to you, please write to autoconf@gnu.org." >&5
4501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4502 whose name does not start with the host triplet. If you think this
4503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4504 ac_tool_warned=yes ;;
4506 RANLIB=$ac_ct_RANLIB
4509 RANLIB="$ac_cv_prog_RANLIB"
4514 # Checks for programs.
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520 if test -n "$ac_tool_prefix"; then
4521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4522 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_prog_CC+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 if test -n "$CC"; then
4529 ac_cv_prog_CC="$CC" # Let the user override the test.
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 if test -n "$CC"; then
4550 { echo "$as_me:$LINENO: result: $CC" >&5
4551 echo "${ECHO_T}$CC" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4559 if test -z "$ac_cv_prog_CC"; then
4561 # Extract the first word of "gcc", so it can be a program name with args.
4562 set dummy gcc; ac_word=$2
4563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4565 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 if test -n "$ac_ct_CC"; then
4569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_ac_ct_CC="gcc"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4589 if test -n "$ac_ct_CC"; then
4590 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4591 echo "${ECHO_T}$ac_ct_CC" >&6; }
4593 { echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6; }
4597 if test "x$ac_ct_CC" = x; then
4600 case $cross_compiling:$ac_tool_warned in
4602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4603 whose name does not start with the host triplet. If you think this
4604 configuration is useful to you, please write to autoconf@gnu.org." >&5
4605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4606 whose name does not start with the host triplet. If you think this
4607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4608 ac_tool_warned=yes ;;
4616 if test -z "$CC"; then
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}cc; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="${ac_tool_prefix}cc"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$CC"; then
4647 { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4657 if test -z "$CC"; then
4658 # Extract the first word of "cc", so it can be a program name with args.
4659 set dummy cc; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_CC+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 if test -n "$CC"; then
4666 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4677 ac_prog_rejected=yes
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 if test $ac_prog_rejected = yes; then
4689 # We found a bogon in the path, so make sure we never use it.
4690 set dummy $ac_cv_prog_CC
4692 if test $# != 0; then
4693 # We chose a different compiler from the bogus one.
4694 # However, it has the same basename, so the bogon will be chosen
4695 # first if we set CC to just the basename; use the full file name.
4697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4703 if test -n "$CC"; then
4704 { echo "$as_me:$LINENO: result: $CC" >&5
4705 echo "${ECHO_T}$CC" >&6; }
4707 { echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6; }
4713 if test -z "$CC"; then
4714 if test -n "$ac_tool_prefix"; then
4715 for ac_prog in cl.exe
4717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_prog_CC+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 if test -n "$CC"; then
4725 ac_cv_prog_CC="$CC" # Let the user override the test.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 if test -n "$CC"; then
4746 { echo "$as_me:$LINENO: result: $CC" >&5
4747 echo "${ECHO_T}$CC" >&6; }
4749 { echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6; }
4754 test -n "$CC" && break
4757 if test -z "$CC"; then
4759 for ac_prog in cl.exe
4761 # Extract the first word of "$ac_prog", so it can be a program name with args.
4762 set dummy $ac_prog; ac_word=$2
4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 if test -n "$ac_ct_CC"; then
4769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_ac_ct_CC="$ac_prog"
4779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4789 if test -n "$ac_ct_CC"; then
4790 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4791 echo "${ECHO_T}$ac_ct_CC" >&6; }
4793 { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4798 test -n "$ac_ct_CC" && break
4801 if test "x$ac_ct_CC" = x; then
4804 case $cross_compiling:$ac_tool_warned in
4806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4807 whose name does not start with the host triplet. If you think this
4808 configuration is useful to you, please write to autoconf@gnu.org." >&5
4809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4810 whose name does not start with the host triplet. If you think this
4811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4812 ac_tool_warned=yes ;;
4821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4822 See \`config.log
' for more details." >&5
4823 echo "$as_me: error: no acceptable C compiler found in \$PATH
4824 See \`config.log' for more details.
" >&2;}
4825 { (exit 1); exit 1; }; }
4827 # Provide some information about the compiler.
4828 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4829 ac_compiler=`set X $ac_compile; echo $2`
4830 { (ac_try="$ac_compiler --version >&5"
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_compiler --version >&5") 2>&5
4838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4839 (exit $ac_status); }
4840 { (ac_try="$ac_compiler -v >&5"
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_compiler -v >&5") 2>&5
4848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4849 (exit $ac_status); }
4850 { (ac_try="$ac_compiler -V >&5"
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_compiler -V >&5") 2>&5
4858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4859 (exit $ac_status); }
4861 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4862 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4863 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4864 echo $ECHO_N "(cached
) $ECHO_C" >&6
4866 cat >conftest.$ac_ext <<_ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4884 rm -f conftest.$ac_objext
4885 if { (ac_try="$ac_compile"
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_compile") 2>conftest.er1
4893 grep -v '^ *+' conftest.er1 >conftest.err
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4897 (exit $ac_status); } && {
4898 test -z "$ac_c_werror_flag" ||
4899 test ! -s conftest.err
4900 } && test -s conftest.$ac_objext; then
4903 echo "$as_me: failed program was
:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4913 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4914 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4915 GCC=`test $ac_compiler_gnu = yes && echo yes`
4916 ac_test_CFLAGS=${CFLAGS+set}
4917 ac_save_CFLAGS=$CFLAGS
4918 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4919 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4920 if test "${ac_cv_prog_cc_g+set}" = set; then
4921 echo $ECHO_N "(cached
) $ECHO_C" >&6
4923 ac_save_c_werror_flag=$ac_c_werror_flag
4924 ac_c_werror_flag=yes
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4942 rm -f conftest.$ac_objext
4943 if { (ac_try="$ac_compile"
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_compile") 2>conftest.er1
4951 grep -v '^ *+' conftest.er1 >conftest.err
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4955 (exit $ac_status); } && {
4956 test -z "$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 } && test -s conftest.$ac_objext; then
4961 echo "$as_me: failed program was
:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4965 cat >conftest.$ac_ext <<_ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4980 rm -f conftest.$ac_objext
4981 if { (ac_try="$ac_compile"
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_compile") 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4993 (exit $ac_status); } && {
4994 test -z "$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest.$ac_objext; then
4999 echo "$as_me: failed program was
:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 ac_c_werror_flag=$ac_save_c_werror_flag
5004 cat >conftest.$ac_ext <<_ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5025 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_compile") 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest.$ac_objext; then
5038 echo "$as_me: failed program was
:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 ac_c_werror_flag=$ac_save_c_werror_flag
5053 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5055 if test "$ac_test_CFLAGS" = set; then
5056 CFLAGS=$ac_save_CFLAGS
5057 elif test $ac_cv_prog_cc_g = yes; then
5058 if test "$GCC" = yes; then
5064 if test "$GCC" = yes; then
5070 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5071 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5072 if test "${ac_cv_prog_cc_c89+set}" = set; then
5073 echo $ECHO_N "(cached
) $ECHO_C" >&6
5075 ac_cv_prog_cc_c89=no
5077 cat >conftest.$ac_ext <<_ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5085 #include <sys/types.h>
5086 #include <sys/stat.h>
5087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5088 struct buf { int x; };
5089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5090 static char *e (p, i)
5096 static char *f (char * (*g) (char **, int), char **p, ...)
5101 s = g (p, va_arg (v,int));
5106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5107 function prototypes and stuff, but not '\xHH' hex character constants.
5108 These don't provoke an error unfortunately, instead are silently treated
5109 as 'x'. The following induces an error, until -std is added to get
5110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5111 array size at least. It's necessary to write '\x00'==0 to get something
5112 that's true only with -std. */
5113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5116 inside strings and character constants. */
5118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5120 int test (int i, double x);
5121 struct s1 {int (*f) (int a);};
5122 struct s2 {int (*f) (double a);};
5123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5137 CC="$ac_save_CC $ac_arg"
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
5155 ac_cv_prog_cc_c89=$ac_arg
5157 echo "$as_me: failed program was
:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5163 rm -f core conftest.err conftest.$ac_objext
5164 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5166 rm -f conftest.$ac_ext
5171 case "x
$ac_cv_prog_cc_c89" in
5173 { echo "$as_me:$LINENO: result
: none needed
" >&5
5174 echo "${ECHO_T}none needed
" >&6; } ;;
5176 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5177 echo "${ECHO_T}unsupported
" >&6; } ;;
5179 CC="$CC $ac_cv_prog_cc_c89"
5180 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5181 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5186 ac_cpp='$CPP $CPPFLAGS'
5187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196 if test -z "$CXX"; then
5197 if test -n "$CCC"; then
5200 if test -n "$ac_tool_prefix"; then
5201 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5205 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5206 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5207 if test "${ac_cv_prog_CXX+set}" = set; then
5208 echo $ECHO_N "(cached
) $ECHO_C" >&6
5210 if test -n "$CXX"; then
5211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5221 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5231 if test -n "$CXX"; then
5232 { echo "$as_me:$LINENO: result
: $CXX" >&5
5233 echo "${ECHO_T}$CXX" >&6; }
5235 { echo "$as_me:$LINENO: result
: no
" >&5
5236 echo "${ECHO_T}no
" >&6; }
5240 test -n "$CXX" && break
5243 if test -z "$CXX"; then
5245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5250 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5252 echo $ECHO_N "(cached
) $ECHO_C" >&6
5254 if test -n "$ac_ct_CXX"; then
5255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_prog_ac_ct_CXX="$ac_prog"
5265 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5274 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5275 if test -n "$ac_ct_CXX"; then
5276 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5277 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5279 { echo "$as_me:$LINENO: result
: no
" >&5
5280 echo "${ECHO_T}no
" >&6; }
5284 test -n "$ac_ct_CXX" && break
5287 if test "x
$ac_ct_CXX" = x; then
5290 case $cross_compiling:$ac_tool_warned in
5292 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5293 whose name does not start with the
host triplet. If you think this
5294 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5295 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5296 whose name does not start with the
host triplet. If you think this
5297 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5298 ac_tool_warned=yes ;;
5306 # Provide some information about the compiler.
5307 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5308 ac_compiler=`set X $ac_compile; echo $2`
5309 { (ac_try="$ac_compiler --version >&5"
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_compiler --version >&5") 2>&5
5317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5318 (exit $ac_status); }
5319 { (ac_try="$ac_compiler -v >&5"
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compiler -v >&5") 2>&5
5327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5328 (exit $ac_status); }
5329 { (ac_try="$ac_compiler -V >&5"
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compiler -V >&5") 2>&5
5337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5338 (exit $ac_status); }
5340 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5341 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5342 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5343 echo $ECHO_N "(cached
) $ECHO_C" >&6
5345 cat >conftest.$ac_ext <<_ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5363 rm -f conftest.$ac_objext
5364 if { (ac_try="$ac_compile"
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_compile") 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5376 (exit $ac_status); } && {
5377 test -z "$ac_cxx_werror_flag" ||
5378 test ! -s conftest.err
5379 } && test -s conftest.$ac_objext; then
5382 echo "$as_me: failed program was
:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5392 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5393 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5394 GXX=`test $ac_compiler_gnu = yes && echo yes`
5395 ac_test_CXXFLAGS=${CXXFLAGS+set}
5396 ac_save_CXXFLAGS=$CXXFLAGS
5397 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5398 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5399 if test "${ac_cv_prog_cxx_g+set}" = set; then
5400 echo $ECHO_N "(cached
) $ECHO_C" >&6
5402 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5403 ac_cxx_werror_flag=yes
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5421 rm -f conftest.$ac_objext
5422 if { (ac_try="$ac_compile"
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5427 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_compile") 2>conftest.er1
5430 grep -v '^ *+' conftest.er1 >conftest.err
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5434 (exit $ac_status); } && {
5435 test -z "$ac_cxx_werror_flag" ||
5436 test ! -s conftest.err
5437 } && test -s conftest.$ac_objext; then
5438 ac_cv_prog_cxx_g=yes
5440 echo "$as_me: failed program was
:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5444 cat >conftest.$ac_ext <<_ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5459 rm -f conftest.$ac_objext
5460 if { (ac_try="$ac_compile"
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compile") 2>conftest.er1
5468 grep -v '^ *+' conftest.er1 >conftest.err
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5472 (exit $ac_status); } && {
5473 test -z "$ac_cxx_werror_flag" ||
5474 test ! -s conftest.err
5475 } && test -s conftest.$ac_objext; then
5478 echo "$as_me: failed program was
:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5498 rm -f conftest.$ac_objext
5499 if { (ac_try="$ac_compile"
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5507 grep -v '^ *+' conftest.er1 >conftest.err
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_cxx_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
5515 ac_cv_prog_cxx_g=yes
5517 echo "$as_me: failed program was
:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5532 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5533 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5534 if test "$ac_test_CXXFLAGS" = set; then
5535 CXXFLAGS=$ac_save_CXXFLAGS
5536 elif test $ac_cv_prog_cxx_g = yes; then
5537 if test "$GXX" = yes; then
5543 if test "$GXX" = yes; then
5550 ac_cpp='$CPP $CPPFLAGS'
5551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5561 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5562 # On Suns, sometimes $CPP names a directory.
5563 if test -n "$CPP" && test -d "$CPP"; then
5566 if test -z "$CPP"; then
5567 if test "${ac_cv_prog_CPP+set}" = set; then
5568 echo $ECHO_N "(cached
) $ECHO_C" >&6
5570 # Double quotes because CPP needs to be expanded
5571 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5574 for ac_c_preproc_warn_flag in '' yes
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error
" is here to catch this case.
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5589 # include <limits.h>
5591 # include <assert.h>
5595 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5603 grep -v '^ *+' conftest.er1 >conftest.err
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5607 (exit $ac_status); } >/dev/null && {
5608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5609 test ! -s conftest.err
5613 echo "$as_me: failed program was
:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 # Broken: fails on valid input.
5620 rm -f conftest.err conftest.$ac_ext
5622 # OK, works on sane cases. Now check whether nonexistent headers
5623 # can be detected and how.
5624 cat >conftest.$ac_ext <<_ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <ac_nonexistent.h>
5632 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5640 grep -v '^ *+' conftest.er1 >conftest.err
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5644 (exit $ac_status); } >/dev/null && {
5645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5648 # Broken: success on invalid input.
5651 echo "$as_me: failed program was
:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 # Passes both tests.
5659 rm -f conftest.err conftest.$ac_ext
5662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5663 rm -f conftest.err conftest.$ac_ext
5664 if $ac_preproc_ok; then
5676 { echo "$as_me:$LINENO: result
: $CPP" >&5
5677 echo "${ECHO_T}$CPP" >&6; }
5679 for ac_c_preproc_warn_flag in '' yes
5681 # Use a header file that comes with gcc, so configuring glibc
5682 # with a fresh cross-compiler works.
5683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684 # <limits.h> exists even on freestanding compilers.
5685 # On the NeXT, cc -E runs the code through the compiler's parser,
5686 # not just through cpp. "Syntax error
" is here to catch this case.
5687 cat >conftest.$ac_ext <<_ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5694 # include <limits.h>
5696 # include <assert.h>
5700 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5712 (exit $ac_status); } >/dev/null && {
5713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5714 test ! -s conftest.err
5718 echo "$as_me: failed program was
:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 # Broken: fails on valid input.
5725 rm -f conftest.err conftest.$ac_ext
5727 # OK, works on sane cases. Now check whether nonexistent headers
5728 # can be detected and how.
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <ac_nonexistent.h>
5737 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5745 grep -v '^ *+' conftest.er1 >conftest.err
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5749 (exit $ac_status); } >/dev/null && {
5750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5753 # Broken: success on invalid input.
5756 echo "$as_me: failed program was
:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5759 # Passes both tests.
5764 rm -f conftest.err conftest.$ac_ext
5767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5768 rm -f conftest.err conftest.$ac_ext
5769 if $ac_preproc_ok; then
5772 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5773 See \
`config.log' for more details." >&5
5774 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5775 See \`config.log
' for more details." >&2;}
5776 { (exit 1); exit 1; }; }
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5782 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786 ac_cpp='$CXXCPP $CPPFLAGS'
5787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5788 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5790 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5791 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5792 if test -z "$CXXCPP"; then
5793 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 # Double quotes because CXXCPP needs to be expanded
5797 for CXXCPP in "$CXX -E" "/lib/cpp"
5800 for ac_cxx_preproc_warn_flag in '' yes
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser
,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat >conftest.
$ac_ext <<_ACEOF
5811 cat confdefs.h
>>conftest.
$ac_ext
5812 cat >>conftest.
$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5815 # include <limits.h>
5817 # include <assert.h>
5821 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null && {
5834 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5835 test ! -s conftest.err
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 # Broken: fails on valid input.
5846 rm -f conftest.err conftest.$ac_ext
5848 # OK, works on sane cases. Now check whether nonexistent headers
5849 # can be detected and how.
5850 cat >conftest.$ac_ext <<_ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 #include <ac_nonexistent.h>
5858 if { (ac_try="$ac_cpp conftest.$ac_ext"
5860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5861 *) ac_try_echo
=$ac_try;;
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5866 grep -v '^ *+' conftest.er1
>conftest.err
5868 cat conftest.err
>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } >/dev
/null
&& {
5871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5872 test ! -s conftest.err
5874 # Broken: success on invalid input.
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.
$ac_ext >&5
5880 # Passes both tests.
5885 rm -f conftest.err conftest.
$ac_ext
5888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5889 rm -f conftest.err conftest.
$ac_ext
5890 if $ac_preproc_ok; then
5895 ac_cv_prog_CXXCPP
=$CXXCPP
5898 CXXCPP
=$ac_cv_prog_CXXCPP
5900 ac_cv_prog_CXXCPP
=$CXXCPP
5902 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5903 echo "${ECHO_T}$CXXCPP" >&6; }
5905 for ac_cxx_preproc_warn_flag
in '' yes
5907 # Use a header file that comes with gcc, so configuring glibc
5908 # with a fresh cross-compiler works.
5909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5910 # <limits.h> exists even on freestanding compilers.
5911 # On the NeXT, cc -E runs the code through the compiler's parser,
5912 # not just through cpp. "Syntax error" is here to catch this case.
5913 cat >conftest.
$ac_ext <<_ACEOF
5916 cat confdefs.h
>>conftest.
$ac_ext
5917 cat >>conftest.
$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5920 # include <limits.h>
5922 # include <assert.h>
5926 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934 grep -v '^ *+' conftest.er1 >conftest.err
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } >/dev/null && {
5939 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5940 test ! -s conftest.err
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 # Broken: fails on valid input.
5951 rm -f conftest.err conftest.$ac_ext
5953 # OK, works on sane cases. Now check whether nonexistent headers
5954 # can be detected and how.
5955 cat >conftest.$ac_ext <<_ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #include <ac_nonexistent.h>
5963 if { (ac_try="$ac_cpp conftest.$ac_ext"
5965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5966 *) ac_try_echo
=$ac_try;;
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5971 grep -v '^ *+' conftest.er1
>conftest.err
5973 cat conftest.err
>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } >/dev
/null
&& {
5976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5977 test ! -s conftest.err
5979 # Broken: success on invalid input.
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.
$ac_ext >&5
5985 # Passes both tests.
5990 rm -f conftest.err conftest.
$ac_ext
5993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5994 rm -f conftest.err conftest.
$ac_ext
5995 if $ac_preproc_ok; then
5998 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5999 See \`config.log' for more details." >&5
6000 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6001 See \`config.log' for more details." >&2;}
6002 { (exit 1); exit 1; }; }
6006 ac_cpp
='$CPP $CPPFLAGS'
6007 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6011 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6012 # the developers regenerating the configure script don't have to install libtool.
6013 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6014 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6015 if test "${ac_cv_path_SED+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6019 for ac_i
in 1 2 3 4 5 6 7; do
6020 ac_script
="$ac_script$as_nl$ac_script"
6022 echo "$ac_script" |
sed 99q
>conftest.
sed
6023 $as_unset ac_script || ac_script
=
6024 # Extract the first word of "sed gsed" to use in msg output
6025 if test -z "$SED"; then
6026 set dummy
sed gsed
; ac_prog_name
=$2
6027 if test "${ac_cv_path_SED+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 ac_path_SED_found
=false
6031 # Loop through the user's path and test for each of PROGNAME-LIST
6032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6036 test -z "$as_dir" && as_dir
=.
6037 for ac_prog
in sed gsed
; do
6038 for ac_exec_ext
in '' $ac_executable_extensions; do
6039 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6040 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6041 # Check for GNU ac_path_SED and select it if it is found.
6042 # Check for GNU $ac_path_SED
6043 case `"$ac_path_SED" --version 2>&1` in
6045 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6048 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6051 cat "conftest.in" "conftest.in" >"conftest.tmp"
6052 mv "conftest.tmp" "conftest.in"
6053 cp "conftest.in" "conftest.nl"
6054 echo '' >> "conftest.nl"
6055 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6056 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6057 ac_count
=`expr $ac_count + 1`
6058 if test $ac_count -gt ${ac_path_SED_max-0}; then
6059 # Best one so far, save it but keep looking for a better one
6060 ac_cv_path_SED
="$ac_path_SED"
6061 ac_path_SED_max
=$ac_count
6063 # 10*(2^10) chars as input seems more than enough
6064 test $ac_count -gt 10 && break
6066 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6070 $ac_path_SED_found && break 3
6080 SED
="$ac_cv_path_SED"
6081 if test -z "$SED"; then
6082 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6083 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6084 { (exit 1); exit 1; }; }
6092 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6093 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6094 SED
="$ac_cv_path_SED"
6097 { echo "$as_me:$LINENO: checking for egrep" >&5
6098 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6099 if test "${ac_cv_prog_egrep+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6103 then ac_cv_prog_egrep
='grep -E'
6104 else ac_cv_prog_egrep
='egrep'
6107 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6108 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6109 EGREP
=$ac_cv_prog_egrep
6113 # Check whether --with-gnu-ld was given.
6114 if test "${with_gnu_ld+set}" = set; then
6115 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6121 if test "$GCC" = yes; then
6122 # Check if gcc -print-prog-name=ld gives a path.
6123 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6124 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6127 # gcc leaves a trailing carriage return which upsets mingw
6128 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6130 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6133 # Accept absolute paths.
6135 re_direlt
='/[^/][^/]*/\.\./'
6136 # Canonicalize the pathname of ld
6137 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6138 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6139 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6141 test -z "$LD" && LD
="$ac_prog"
6144 # If it fails, then pretend we aren't using GCC.
6148 # If it is relative, then search for the first ld in PATH.
6152 elif test "$with_gnu_ld" = yes; then
6153 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6154 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6156 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6157 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6159 if test "${lt_cv_path_LD+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 if test -z "$LD"; then
6163 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6164 for ac_dir
in $PATH; do
6166 test -z "$ac_dir" && ac_dir
=.
6167 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6168 lt_cv_path_LD
="$ac_dir/$ac_prog"
6169 # Check to see if the program is GNU ld. I'd rather use --version,
6170 # but apparently some variants of GNU ld only accept -v.
6171 # Break only if it was the GNU/non-GNU ld that we prefer.
6172 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6173 *GNU
* |
*'with BFD'*)
6174 test "$with_gnu_ld" != no
&& break
6177 test "$with_gnu_ld" != yes && break
6184 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6189 if test -n "$LD"; then
6190 { echo "$as_me:$LINENO: result: $LD" >&5
6191 echo "${ECHO_T}$LD" >&6; }
6193 { echo "$as_me:$LINENO: result: no" >&5
6194 echo "${ECHO_T}no" >&6; }
6196 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6197 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6198 { (exit 1); exit 1; }; }
6199 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6200 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6201 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6205 case `$LD -v 2>&1 </dev/null` in
6206 *GNU
* |
*'with BFD'*)
6207 lt_cv_prog_gnu_ld
=yes
6210 lt_cv_prog_gnu_ld
=no
6214 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6215 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6216 with_gnu_ld
=$lt_cv_prog_gnu_ld
6218 # note - does not work on freebsd
6219 for ac_prog
in gawk mawk nawk
awk
6221 # Extract the first word of "$ac_prog", so it can be a program name with args.
6222 set dummy
$ac_prog; ac_word
=$2
6223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_AWK+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 if test -n "$AWK"; then
6229 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir
=.
6236 for ac_exec_ext
in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_AWK
="$ac_prog"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 if test -n "$AWK"; then
6250 { echo "$as_me:$LINENO: result: $AWK" >&5
6251 echo "${ECHO_T}$AWK" >&6; }
6253 { echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6; }
6258 test -n "$AWK" && break
6261 # Find a good install program. We prefer a C program (faster),
6262 # so one script is as good as another. But avoid the broken or
6263 # incompatible versions:
6264 # SysV /etc/install, /usr/sbin/install
6265 # SunOS /usr/etc/install
6266 # IRIX /sbin/install
6268 # AmigaOS /C/install, which installs bootblocks on floppy discs
6269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6272 # OS/2's system install, which has a completely different semantic
6273 # ./install, which can be erroneously created by make from ./install.sh.
6274 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6276 if test -z "$INSTALL"; then
6277 if test "${ac_cv_path_install+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir
=.
6285 # Account for people who put trailing slashes in PATH elements.
6287 .
/ | .
// |
/cC
/* | \
6288 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6289 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6292 # OSF1 and SCO ODT 3.0 have their own names for install.
6293 # Don't use installbsd from OSF since it installs stuff as root
6295 for ac_prog
in ginstall scoinst
install; do
6296 for ac_exec_ext
in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6298 if test $ac_prog = install &&
6299 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6300 # AIX install. It has an incompatible calling convention.
6302 elif test $ac_prog = install &&
6303 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6304 # program-specific install script used by HP pwplus--don't use.
6307 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6320 if test "${ac_cv_path_install+set}" = set; then
6321 INSTALL
=$ac_cv_path_install
6323 # As a last resort, use the slow shell script. Don't cache a
6324 # value for INSTALL within a source directory, because that will
6325 # break other packages using the cache if that directory is
6326 # removed, or if the value is a relative name.
6327 INSTALL
=$ac_install_sh
6330 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6331 echo "${ECHO_T}$INSTALL" >&6; }
6333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6334 # It thinks the first close brace ends the variable substitution.
6335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6339 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6341 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6342 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6344 if test "$LN_S" = "ln -s"; then
6345 { echo "$as_me:$LINENO: result: yes" >&5
6346 echo "${ECHO_T}yes" >&6; }
6348 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6349 echo "${ECHO_T}no, using $LN_S" >&6; }
6352 if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6354 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_prog_RANLIB+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 if test -n "$RANLIB"; then
6361 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir
=.
6368 for ac_exec_ext
in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 RANLIB
=$ac_cv_prog_RANLIB
6381 if test -n "$RANLIB"; then
6382 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6383 echo "${ECHO_T}$RANLIB" >&6; }
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6391 if test -z "$ac_cv_prog_RANLIB"; then
6392 ac_ct_RANLIB
=$RANLIB
6393 # Extract the first word of "ranlib", so it can be a program name with args.
6394 set dummy ranlib
; ac_word
=$2
6395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 if test -n "$ac_ct_RANLIB"; then
6401 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir
=.
6408 for ac_exec_ext
in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6421 if test -n "$ac_ct_RANLIB"; then
6422 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6423 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6429 if test "x$ac_ct_RANLIB" = x
; then
6432 case $cross_compiling:$ac_tool_warned in
6434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6435 whose name does not start with the host triplet. If you think this
6436 configuration is useful to you, please write to autoconf@gnu.org." >&5
6437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6438 whose name does not start with the host triplet. If you think this
6439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6440 ac_tool_warned
=yes ;;
6442 RANLIB
=$ac_ct_RANLIB
6445 RANLIB
="$ac_cv_prog_RANLIB"
6448 { echo "$as_me:$LINENO: checking for GNU make" >&5
6449 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6450 if test "${GNU_MAKE+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 GNU_MAKE
='Not Found' ;
6454 GNU_MAKE_VERSION_MAJOR
=0 ;
6455 GNU_MAKE_VERSION_MINOR
=0 ;
6456 for a
in make gmake gnumake
; do
6457 if test -z "$a" ; then continue ; fi ;
6458 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6460 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6461 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6467 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6468 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6469 if test "x$GNU_MAKE" = "xNot Found" ; then
6470 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6471 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6472 { (exit 1); exit 1; }; }
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6480 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_path_STRIP+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir
=.
6496 for ac_exec_ext
in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 STRIP
=$ac_cv_path_STRIP
6510 if test -n "$STRIP"; then
6511 { echo "$as_me:$LINENO: result: $STRIP" >&5
6512 echo "${ECHO_T}$STRIP" >&6; }
6514 { echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6; }
6520 if test -z "$ac_cv_path_STRIP"; then
6522 # Extract the first word of "strip", so it can be a program name with args.
6523 set dummy strip
; ac_word
=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 case $ac_pt_STRIP in
6531 ac_cv_path_ac_pt_STRIP
="$ac_pt_STRIP" # Let the user override the test with a path.
6534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir
=.
6539 for ac_exec_ext
in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_ac_pt_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 ac_pt_STRIP
=$ac_cv_path_ac_pt_STRIP
6553 if test -n "$ac_pt_STRIP"; then
6554 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6555 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6557 { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6561 if test "x$ac_pt_STRIP" = x
; then
6564 case $cross_compiling:$ac_tool_warned in
6566 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6567 whose name does not start with the host triplet. If you think this
6568 configuration is useful to you, please write to autoconf@gnu.org." >&5
6569 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6570 whose name does not start with the host triplet. If you think this
6571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6572 ac_tool_warned
=yes ;;
6577 STRIP
="$ac_cv_path_STRIP"
6580 if test -n "$ac_tool_prefix"; then
6581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6582 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_AR+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir
=.
6598 for ac_exec_ext
in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 if test -n "$AR"; then
6613 { echo "$as_me:$LINENO: result: $AR" >&5
6614 echo "${ECHO_T}$AR" >&6; }
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6622 if test -z "$ac_cv_path_AR"; then
6624 # Extract the first word of "ar", so it can be a program name with args.
6625 set dummy
ar; ac_word
=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_cv_path_ac_pt_AR
="$ac_pt_AR" # Let the user override the test with a path.
6636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir
=.
6641 for ac_exec_ext
in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_ac_pt_AR
="$as_dir/$ac_word$ac_exec_ext"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 ac_pt_AR
=$ac_cv_path_ac_pt_AR
6655 if test -n "$ac_pt_AR"; then
6656 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6657 echo "${ECHO_T}$ac_pt_AR" >&6; }
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6663 if test "x$ac_pt_AR" = x
; then
6666 case $cross_compiling:$ac_tool_warned in
6668 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6669 whose name does not start with the host triplet. If you think this
6670 configuration is useful to you, please write to autoconf@gnu.org." >&5
6671 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6672 whose name does not start with the host triplet. If you think this
6673 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6674 ac_tool_warned
=yes ;;
6684 if test "x$with_gnu_ld" = "xyes" ; then
6689 # Extract the first word of "awk", so it can be a program name with args.
6690 set dummy
awk; ac_word
=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_path_AWK+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
6701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir
=.
6706 for ac_exec_ext
in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_path_AWK
="$as_dir/$ac_word$ac_exec_ext"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK
=":"
6721 if test -n "$AWK"; then
6722 { echo "$as_me:$LINENO: result: $AWK" >&5
6723 echo "${ECHO_T}$AWK" >&6; }
6725 { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6730 # Extract the first word of "grep", so it can be a program name with args.
6731 set dummy
grep; ac_word
=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_GREP+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir
=.
6747 for ac_exec_ext
in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
6761 GREP
=$ac_cv_path_GREP
6762 if test -n "$GREP"; then
6763 { echo "$as_me:$LINENO: result: $GREP" >&5
6764 echo "${ECHO_T}$GREP" >&6; }
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6771 # Extract the first word of "find", so it can be a program name with args.
6772 set dummy
find; ac_word
=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_FIND+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir
=.
6788 for ac_exec_ext
in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
6802 FIND
=$ac_cv_path_FIND
6803 if test -n "$FIND"; then
6804 { echo "$as_me:$LINENO: result: $FIND" >&5
6805 echo "${ECHO_T}$FIND" >&6; }
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6812 # Extract the first word of "compress", so it can be a program name with args.
6813 set dummy
compress; ac_word
=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_COMPRESS+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
6824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir
=.
6829 for ac_exec_ext
in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
6843 COMPRESS
=$ac_cv_path_COMPRESS
6844 if test -n "$COMPRESS"; then
6845 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6846 echo "${ECHO_T}$COMPRESS" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 # Extract the first word of "basename", so it can be a program name with args.
6854 set dummy
basename; ac_word
=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_path_BASENAME+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
6865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir
=.
6870 for ac_exec_ext
in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
6884 BASENAME
=$ac_cv_path_BASENAME
6885 if test -n "$BASENAME"; then
6886 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6887 echo "${ECHO_T}$BASENAME" >&6; }
6889 { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6894 # Extract the first word of "id", so it can be a program name with args.
6895 set dummy id
; ac_word
=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_path_ID+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
6906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir
=.
6911 for ac_exec_ext
in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
6926 if test -n "$ID"; then
6927 { echo "$as_me:$LINENO: result: $ID" >&5
6928 echo "${ECHO_T}$ID" >&6; }
6930 { echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6; }
6935 # Extract the first word of "dirname", so it can be a program name with args.
6936 set dummy
dirname; ac_word
=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_path_DIRNAME+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
6947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6951 test -z "$as_dir" && as_dir
=.
6952 for ac_exec_ext
in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
6966 DIRNAME
=$ac_cv_path_DIRNAME
6967 if test -n "$DIRNAME"; then
6968 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6969 echo "${ECHO_T}$DIRNAME" >&6; }
6971 { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6976 # Extract the first word of "sh", so it can be a program name with args.
6977 set dummy sh
; ac_word
=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_SHELL+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
6988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir
=.
6993 for ac_exec_ext
in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
7007 SHELL
=$ac_cv_path_SHELL
7008 if test -n "$SHELL"; then
7009 { echo "$as_me:$LINENO: result: $SHELL" >&5
7010 echo "${ECHO_T}$SHELL" >&6; }
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7017 # Extract the first word of "ln", so it can be a program name with args.
7018 set dummy
ln; ac_word
=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_LN+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
7029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir
=.
7034 for ac_exec_ext
in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
7049 if test -n "$LN"; then
7050 { echo "$as_me:$LINENO: result: $LN" >&5
7051 echo "${ECHO_T}$LN" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 # Extract the first word of "dot", so it can be a program name with args.
7059 set dummy dot
; ac_word
=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_DOT+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir
=.
7075 for ac_exec_ext
in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
7090 if test -n "$DOT"; then
7091 { echo "$as_me:$LINENO: result: $DOT" >&5
7092 echo "${ECHO_T}$DOT" >&6; }
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 # Extract the first word of "wget", so it can be a program name with args.
7100 set dummy wget
; ac_word
=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_WGET+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
7111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir
=.
7116 for ac_exec_ext
in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
7130 WGET
=$ac_cv_path_WGET
7131 if test -n "$WGET"; then
7132 { echo "$as_me:$LINENO: result: $WGET" >&5
7133 echo "${ECHO_T}$WGET" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7140 if test "${WGET}" != ":" ; then
7143 # Extract the first word of "fetch", so it can be a program name with args.
7144 set dummy fetch
; ac_word
=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_path_FETCH+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir
=.
7160 for ac_exec_ext
in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7174 FETCH
=$ac_cv_path_FETCH
7175 if test -n "$FETCH"; then
7176 { echo "$as_me:$LINENO: result: $FETCH" >&5
7177 echo "${ECHO_T}$FETCH" >&6; }
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7190 set dummy
${ac_tool_prefix}soxmix
; ac_word
=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 if test -n "$SOXMIX"; then
7197 ac_cv_prog_SOXMIX
="$SOXMIX" # Let the user override the test.
7199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7203 test -z "$as_dir" && as_dir
=.
7204 for ac_exec_ext
in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_prog_SOXMIX
="${ac_tool_prefix}soxmix"
7207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 SOXMIX
=$ac_cv_prog_SOXMIX
7217 if test -n "$SOXMIX"; then
7218 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7219 echo "${ECHO_T}$SOXMIX" >&6; }
7221 { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7227 if test -z "$ac_cv_prog_SOXMIX"; then
7228 ac_ct_SOXMIX
=$SOXMIX
7229 # Extract the first word of "soxmix", so it can be a program name with args.
7230 set dummy soxmix
; ac_word
=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 if test -n "$ac_ct_SOXMIX"; then
7237 ac_cv_prog_ac_ct_SOXMIX
="$ac_ct_SOXMIX" # Let the user override the test.
7239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7243 test -z "$as_dir" && as_dir
=.
7244 for ac_exec_ext
in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246 ac_cv_prog_ac_ct_SOXMIX
="soxmix"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 ac_ct_SOXMIX
=$ac_cv_prog_ac_ct_SOXMIX
7257 if test -n "$ac_ct_SOXMIX"; then
7258 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7259 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7261 { echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6; }
7265 if test "x$ac_ct_SOXMIX" = x
; then
7268 case $cross_compiling:$ac_tool_warned in
7270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7271 whose name does not start with the host triplet. If you think this
7272 configuration is useful to you, please write to autoconf@gnu.org." >&5
7273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7274 whose name does not start with the host triplet. If you think this
7275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7276 ac_tool_warned
=yes ;;
7278 SOXMIX
=$ac_ct_SOXMIX
7281 SOXMIX
="$ac_cv_prog_SOXMIX"
7284 if test "${SOXMIX}" != ":" ; then
7286 cat >>confdefs.h
<<\_ACEOF
7287 #define HAVE_SOXMIX 1
7296 ac_cpp
='$CPP $CPPFLAGS'
7297 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7303 # We used to check for pthread.h first, but this fails if pthread.h
7304 # requires special compiler flags (e.g. on True64 or Sequent).
7305 # It gets checked for in the link test anyway.
7307 # First of all, check if the user has set any of the PTHREAD_LIBS,
7308 # etcetera environment variables, and if threads linking works using
7310 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
7311 save_CFLAGS
="$CFLAGS"
7312 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7314 LIBS
="$PTHREAD_LIBS $LIBS"
7315 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7316 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7317 cat >conftest.
$ac_ext <<_ACEOF
7320 cat confdefs.h
>>conftest.
$ac_ext
7321 cat >>conftest.
$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7324 /* Override any GCC internal prototype to avoid an error.
7325 Use char because int might match the return type of a GCC
7326 builtin and then its argument prototype would still apply. */
7330 char pthread_join ();
7334 return pthread_join ();
7339 rm -f conftest.
$ac_objext conftest
$ac_exeext
7340 if { (ac_try
="$ac_link"
7342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest$ac_exeext &&
7356 $as_test_x conftest$ac_exeext; then
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7366 conftest$ac_exeext conftest.$ac_ext
7367 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7368 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7369 if test x"$acx_pthread_ok" = xno; then
7374 CFLAGS="$save_CFLAGS"
7377 # We must check for the threads library under a number of different
7378 # names; the ordering is very important because some systems
7379 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7380 # libraries is broken (non-POSIX).
7382 # Create a list of thread flags to try. Items starting with a "-" are
7383 # C compiler flags, and other items are library names, except for "none"
7384 # which indicates that we try without any flags at all, and "pthread-config"
7385 # which is a program returning the flags for the Pth emulation library.
7387 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7389 # The ordering *is* (sometimes) important. Some notes on the
7390 # individual items follow:
7392 # pthreads: AIX (must check this before -lpthread)
7393 # none: in case threads are in libc; should be tried before -Kthread and
7394 # other compiler flags to prevent continual compiler warnings
7395 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7396 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7397 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7398 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7399 # -pthreads: Solaris/gcc
7400 # -mthreads: Mingw32/gcc, Lynx/gcc
7401 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7402 # doesn't hurt to check since this sometimes defines pthreads too;
7403 # also defines -D_REENTRANT)
7404 # ... -mt is also the pthreads flag for HP/aCC
7405 # pthread: Linux, etcetera
7406 # --thread-safe: KAI C++
7407 # pthread-config: use pthread-config program (for GNU Pth library)
7409 case "${host_cpu}-${host_os}" in
7412 # On Solaris (at least, for some versions), libc contains stubbed
7413 # (non-functional) versions of the pthreads routines, so link-based
7414 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7415 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7416 # a function called by this macro, so we could check for that, but
7417 # who knows whether they'll stub that too in a future libc.) So,
7418 # we'll just look for -pthreads and -lpthread first:
7420 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7424 if test x"$acx_pthread_ok" = xno; then
7425 for flag in $acx_pthread_flags; do
7429 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7430 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7434 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7435 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7436 PTHREAD_CFLAGS="$flag"
7440 # Extract the first word of "pthread-config", so it can be a program name with args.
7441 set dummy pthread-config; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 if test -n "$acx_pthread_config"; then
7448 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_acx_pthread_config="yes"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7468 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7469 if test -n "$acx_pthread_config"; then
7470 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7471 echo "${ECHO_T}$acx_pthread_config" >&6; }
7473 { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7478 if test x"$acx_pthread_config" = xno; then continue; fi
7479 PTHREAD_CFLAGS="`pthread-config
--cflags`"
7480 PTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
7484 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7485 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7486 PTHREAD_LIBS="-l$flag"
7491 save_CFLAGS="$CFLAGS"
7492 LIBS="$PTHREAD_LIBS $LIBS"
7493 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7495 # Check for various functions. We must include pthread.h,
7496 # since some functions may be macros. (On the Sequent, we
7497 # need a special flag -Kthread to make this header compile.)
7498 # We check for pthread_join because it is in -lpthread on IRIX
7499 # while pthread_create is in libc. We check for pthread_attr_init
7500 # due to DEC craziness with -lpthreads. We check for
7501 # pthread_cleanup_push because it is one of the few pthread
7502 # functions on Solaris that doesn't have a non-functional libc stub.
7503 # We try pthread_create on general principles.
7504 cat >conftest.$ac_ext <<_ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 #include <pthread.h>
7514 pthread_t th; pthread_join(th, 0);
7515 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7516 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7521 rm -f conftest.$ac_objext conftest$ac_exeext
7522 if { (ac_try="$ac_link"
7524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7525 *) ac_try_echo
=$ac_try;;
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_link") 2>conftest.er1
7530 grep -v '^ *+' conftest.er1
>conftest.err
7532 cat conftest.err
>&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest
$ac_exeext &&
7538 $as_test_x conftest
$ac_exeext; then
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.
$ac_ext >&5
7547 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7548 conftest
$ac_exeext conftest.
$ac_ext
7551 CFLAGS
="$save_CFLAGS"
7553 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7554 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7555 if test "x$acx_pthread_ok" = xyes
; then
7564 # Various other checks:
7565 if test "x$acx_pthread_ok" = xyes
; then
7567 LIBS
="$PTHREAD_LIBS $LIBS"
7568 save_CFLAGS
="$CFLAGS"
7569 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7571 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7572 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7573 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7575 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7576 cat >conftest.
$ac_ext <<_ACEOF
7579 cat confdefs.h
>>conftest.
$ac_ext
7580 cat >>conftest.
$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 #include <pthread.h>
7586 int attr=$attr; return attr;
7591 rm -f conftest.
$ac_objext conftest
$ac_exeext
7592 if { (ac_try
="$ac_link"
7594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_link") 2>conftest.er1
7600 grep -v '^ *+' conftest.er1 >conftest.err
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest$ac_exeext &&
7608 $as_test_x conftest$ac_exeext; then
7609 attr_name=$attr; break
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7618 conftest$ac_exeext conftest.$ac_ext
7620 { echo "$as_me:$LINENO: result: $attr_name" >&5
7621 echo "${ECHO_T}$attr_name" >&6; }
7622 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7624 cat >>confdefs.h <<_ACEOF
7625 #define PTHREAD_CREATE_JOINABLE $attr_name
7630 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7631 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7633 case "${host_cpu}-${host_os}" in
7634 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7635 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7637 { echo "$as_me:$LINENO: result: ${flag}" >&5
7638 echo "${ECHO_T}${flag}" >&6; }
7639 if test "x$flag" != xno; then
7640 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7644 CFLAGS="$save_CFLAGS"
7646 # More AIX lossage: must compile with xlc_r or cc_r
7647 if test x"$GCC" != xyes; then
7648 for ac_prog in xlc_r cc_r
7650 # Extract the first word of "$ac_prog", so it can be a program name with args.
7651 set dummy $ac_prog; ac_word=$2
7652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7654 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 if test -n "$PTHREAD_CC"; then
7658 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_prog_PTHREAD_CC="$ac_prog"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7678 if test -n "$PTHREAD_CC"; then
7679 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7680 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7682 { echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6; }
7687 test -n "$PTHREAD_CC" && break
7689 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7702 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7703 if test x"$acx_pthread_ok" = xyes; then
7705 cat >>confdefs.h <<\_ACEOF
7706 #define HAVE_PTHREAD 1
7715 ac_cpp='$CPP $CPPFLAGS'
7716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7723 ac_cpp='$CPP $CPPFLAGS'
7724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729 # Check whether --enable-dev-mode was given.
7730 if test "${enable_dev_mode+set}" = set; then
7731 enableval=$enable_dev_mode; case "${enableval}" in
7732 y|ye|yes) AST_DEVMODE=yes ;;
7733 n|no) AST_DEVMODE=no ;;
7734 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7735 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7736 { (exit 1); exit 1; }; } ;;
7742 # package option names should be in alphabetical order
7743 # by the --with option name, to make things easier for the users :-)
7746 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7747 ALSA_OPTION="asound"
7749 # Check whether --with-asound was given.
7750 if test "${with_asound+set}" = set; then
7751 withval=$with_asound;
7757 ALSA_MANDATORY="yes"
7760 ALSA_DIR="${withval}"
7761 ALSA_MANDATORY="yes"
7777 # Check whether --with-curl was given.
7778 if test "${with_curl+set}" = set; then
7785 CURL_MANDATORY="yes"
7788 CURL_DIR="${withval}"
7789 CURL_MANDATORY="yes"
7802 CAP_DESCRIP="POSIX 1.e capabilities"
7805 # Check whether --with-cap was given.
7806 if test "${with_cap+set}" = set; then
7816 CAP_DIR="${withval}"
7830 CURSES_DESCRIP="curses"
7831 CURSES_OPTION="curses"
7833 # Check whether --with-curses was given.
7834 if test "${with_curses+set}" = set; then
7835 withval=$with_curses;
7841 CURSES_MANDATORY="yes"
7844 CURSES_DIR="${withval}"
7845 CURSES_MANDATORY="yes"
7858 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7859 GNUTLS_OPTION="gnutls"
7861 # Check whether --with-gnutls was given.
7862 if test "${with_gnutls+set}" = set; then
7863 withval=$with_gnutls;
7869 GNUTLS_MANDATORY="yes"
7872 GNUTLS_DIR="${withval}"
7873 GNUTLS_MANDATORY="yes"
7889 # Check whether --with-gsm was given.
7890 if test "${with_gsm+set}" = set; then
7900 GSM_DIR="${withval}"
7914 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7915 IKSEMEL_OPTION="iksemel"
7917 # Check whether --with-iksemel was given.
7918 if test "${with_iksemel+set}" = set; then
7919 withval=$with_iksemel;
7925 IKSEMEL_MANDATORY="yes"
7928 IKSEMEL_DIR="${withval}"
7929 IKSEMEL_MANDATORY="yes"
7942 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7943 IMAP_TK_OPTION="imap"
7945 # Check whether --with-imap was given.
7946 if test "${with_imap+set}" = set; then
7953 IMAP_TK_MANDATORY="yes"
7956 IMAP_TK_DIR="${withval}"
7957 IMAP_TK_MANDATORY="yes"
7970 ISDNNET_DESCRIP="ISDN4Linux Library"
7971 ISDNNET_OPTION="isdnnet"
7973 # Check whether --with-isdnnet was given.
7974 if test "${with_isdnnet+set}" = set; then
7975 withval=$with_isdnnet;
7981 ISDNNET_MANDATORY="yes"
7984 ISDNNET_DIR="${withval}"
7985 ISDNNET_MANDATORY="yes"
8001 # Check whether --with-kde was given.
8002 if test "${with_kde+set}" = set; then
8012 KDE_DIR="${withval}"
8026 LTDL_DESCRIP="libtool"
8029 # Check whether --with-ltdl was given.
8030 if test "${with_ltdl+set}" = set; then
8037 LTDL_MANDATORY="yes"
8040 LTDL_DIR="${withval}"
8041 LTDL_MANDATORY="yes"
8054 MISDN_DESCRIP="mISDN User Library"
8055 MISDN_OPTION="misdn"
8057 # Check whether --with-misdn was given.
8058 if test "${with_misdn+set}" = set; then
8059 withval=$with_misdn;
8065 MISDN_MANDATORY="yes"
8068 MISDN_DIR="${withval}"
8069 MISDN_MANDATORY="yes"
8082 NBS_DESCRIP="Network Broadcast Sound"
8085 # Check whether --with-nbs was given.
8086 if test "${with_nbs+set}" = set; then
8096 NBS_DIR="${withval}"
8110 NCURSES_DESCRIP="ncurses"
8111 NCURSES_OPTION="ncurses"
8113 # Check whether --with-ncurses was given.
8114 if test "${with_ncurses+set}" = set; then
8115 withval=$with_ncurses;
8121 NCURSES_MANDATORY="yes"
8124 NCURSES_DIR="${withval}"
8125 NCURSES_MANDATORY="yes"
8138 NETSNMP_DESCRIP="Net-SNMP"
8139 NETSNMP_OPTION="netsnmp"
8141 # Check whether --with-netsnmp was given.
8142 if test "${with_netsnmp+set}" = set; then
8143 withval=$with_netsnmp;
8149 NETSNMP_MANDATORY="yes"
8152 NETSNMP_DIR="${withval}"
8153 NETSNMP_MANDATORY="yes"
8169 # Check whether --with-newt was given.
8170 if test "${with_newt+set}" = set; then
8177 NEWT_MANDATORY="yes"
8180 NEWT_DIR="${withval}"
8181 NEWT_MANDATORY="yes"
8194 UNIXODBC_DESCRIP="unixODBC"
8195 UNIXODBC_OPTION="odbc"
8197 # Check whether --with-odbc was given.
8198 if test "${with_odbc+set}" = set; then
8205 UNIXODBC_MANDATORY="yes"
8208 UNIXODBC_DIR="${withval}"
8209 UNIXODBC_MANDATORY="yes"
8225 # Check whether --with-ogg was given.
8226 if test "${with_ogg+set}" = set; then
8236 OGG_DIR="${withval}"
8250 OSPTK_DESCRIP="OSP Toolkit"
8251 OSPTK_OPTION="osptk"
8253 # Check whether --with-osptk was given.
8254 if test "${with_osptk+set}" = set; then
8255 withval=$with_osptk;
8261 OSPTK_MANDATORY="yes"
8264 OSPTK_DIR="${withval}"
8265 OSPTK_MANDATORY="yes"
8278 OSS_DESCRIP="Open Sound System"
8281 # Check whether --with-oss was given.
8282 if test "${with_oss+set}" = set; then
8292 OSS_DIR="${withval}"
8309 # Check whether --with-popt was given.
8310 if test "${with_popt+set}" = set; then
8317 POPT_MANDATORY="yes"
8320 POPT_DIR="${withval}"
8321 POPT_MANDATORY="yes"
8334 PGSQL_DESCRIP="PostgreSQL"
8335 PGSQL_OPTION="postgres"
8337 # Check whether --with-postgres was given.
8338 if test "${with_postgres+set}" = set; then
8339 withval=$with_postgres;
8345 PGSQL_MANDATORY="yes"
8348 PGSQL_DIR="${withval}"
8349 PGSQL_MANDATORY="yes"
8362 PRI_DESCRIP="ISDN PRI"
8365 # Check whether --with-pri was given.
8366 if test "${with_pri+set}" = set; then
8376 PRI_DIR="${withval}"
8390 PWLIB_DESCRIP="PWlib"
8391 PWLIB_OPTION="pwlib"
8393 # Check whether --with-pwlib was given.
8394 if test "${with_pwlib+set}" = set; then
8395 withval=$with_pwlib;
8401 PWLIB_MANDATORY="yes"
8404 PWLIB_DIR="${withval}"
8405 PWLIB_MANDATORY="yes"
8418 OPENH323_DESCRIP="OpenH323"
8419 OPENH323_OPTION="h323"
8421 # Check whether --with-h323 was given.
8422 if test "${with_h323+set}" = set; then
8429 OPENH323_MANDATORY="yes"
8432 OPENH323_DIR="${withval}"
8433 OPENH323_MANDATORY="yes"
8446 RADIUS_DESCRIP="Radius Client"
8447 RADIUS_OPTION="radius"
8449 # Check whether --with-radius was given.
8450 if test "${with_radius+set}" = set; then
8451 withval=$with_radius;
8457 RADIUS_MANDATORY="yes"
8460 RADIUS_DIR="${withval}"
8461 RADIUS_MANDATORY="yes"
8474 SPEEX_DESCRIP="Speex"
8475 SPEEX_OPTION="speex"
8477 # Check whether --with-speex was given.
8478 if test "${with_speex+set}" = set; then
8479 withval=$with_speex;
8485 SPEEX_MANDATORY="yes"
8488 SPEEX_DIR="${withval}"
8489 SPEEX_MANDATORY="yes"
8502 SPEEXDSP_DESCRIP="Speexdsp"
8503 SPEEXDSP_OPTION="speexdsp"
8505 # Check whether --with-speexdsp was given.
8506 if test "${with_speexdsp+set}" = set; then
8507 withval=$with_speexdsp;
8513 SPEEXDSP_MANDATORY="yes"
8516 SPEEXDSP_DIR="${withval}"
8517 SPEEXDSP_MANDATORY="yes"
8530 SQLITE_DESCRIP="SQLite"
8531 SQLITE_OPTION="sqlite"
8533 # Check whether --with-sqlite was given.
8534 if test "${with_sqlite+set}" = set; then
8535 withval=$with_sqlite;
8541 SQLITE_MANDATORY="yes"
8544 SQLITE_DIR="${withval}"
8545 SQLITE_MANDATORY="yes"
8558 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8559 SUPPSERV_OPTION="suppserv"
8561 # Check whether --with-suppserv was given.
8562 if test "${with_suppserv+set}" = set; then
8563 withval=$with_suppserv;
8569 SUPPSERV_MANDATORY="yes"
8572 SUPPSERV_DIR="${withval}"
8573 SUPPSERV_MANDATORY="yes"
8586 OPENSSL_DESCRIP="OpenSSL"
8587 OPENSSL_OPTION="ssl"
8589 # Check whether --with-ssl was given.
8590 if test "${with_ssl+set}" = set; then
8597 OPENSSL_MANDATORY="yes"
8600 OPENSSL_DIR="${withval}"
8601 OPENSSL_MANDATORY="yes"
8614 FREETDS_DESCRIP="FreeTDS"
8615 FREETDS_OPTION="tds"
8617 # Check whether --with-tds was given.
8618 if test "${with_tds+set}" = set; then
8625 FREETDS_MANDATORY="yes"
8628 FREETDS_DIR="${withval}"
8629 FREETDS_MANDATORY="yes"
8642 TERMCAP_DESCRIP="Termcap"
8643 TERMCAP_OPTION="termcap"
8645 # Check whether --with-termcap was given.
8646 if test "${with_termcap+set}" = set; then
8647 withval=$with_termcap;
8653 TERMCAP_MANDATORY="yes"
8656 TERMCAP_DIR="${withval}"
8657 TERMCAP_MANDATORY="yes"
8670 TINFO_DESCRIP="Term Info"
8671 TINFO_OPTION="tinfo"
8673 # Check whether --with-tinfo was given.
8674 if test "${with_tinfo+set}" = set; then
8675 withval=$with_tinfo;
8681 TINFO_MANDATORY="yes"
8684 TINFO_DIR="${withval}"
8685 TINFO_MANDATORY="yes"
8698 TONEZONE_DESCRIP="tonezone"
8699 TONEZONE_OPTION="tonezone"
8701 # Check whether --with-tonezone was given.
8702 if test "${with_tonezone+set}" = set; then
8703 withval=$with_tonezone;
8709 TONEZONE_MANDATORY="yes"
8712 TONEZONE_DIR="${withval}"
8713 TONEZONE_MANDATORY="yes"
8729 # Check whether --with-usb was given.
8730 if test "${with_usb+set}" = set; then
8740 USB_DIR="${withval}"
8754 VORBIS_DESCRIP="Vorbis"
8755 VORBIS_OPTION="vorbis"
8757 # Check whether --with-vorbis was given.
8758 if test "${with_vorbis+set}" = set; then
8759 withval=$with_vorbis;
8765 VORBIS_MANDATORY="yes"
8768 VORBIS_DIR="${withval}"
8769 VORBIS_MANDATORY="yes"
8782 VPB_DESCRIP="Voicetronix API"
8785 # Check whether --with-vpb was given.
8786 if test "${with_vpb+set}" = set; then
8796 VPB_DIR="${withval}"
8813 # Check whether --with-z was given.
8814 if test "${with_z+set}" = set; then
8821 ZLIB_MANDATORY="yes"
8824 ZLIB_DIR="${withval}"
8825 ZLIB_MANDATORY="yes"
8838 ZAPTEL_DESCRIP="Zaptel"
8839 ZAPTEL_OPTION="zaptel"
8841 # Check whether --with-zaptel was given.
8842 if test "${with_zaptel+set}" = set; then
8843 withval=$with_zaptel;
8849 ZAPTEL_MANDATORY="yes"
8852 ZAPTEL_DIR="${withval}"
8853 ZAPTEL_MANDATORY="yes"
8866 # check for basic system features and functionality before
8867 # checking for package libraries
8869 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8870 # for constant arguments. Useless!
8871 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8872 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8873 if test "${ac_cv_working_alloca_h+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 cat >conftest.$ac_ext <<_ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8886 char *p = (char *) alloca (2 * sizeof (int));
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (ac_try="$ac_link"
8895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8896 *) ac_try_echo
=$ac_try;;
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899 (eval "$ac_link") 2>conftest.er1
8901 grep -v '^ *+' conftest.er1
>conftest.err
8903 cat conftest.err
>&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest
$ac_exeext &&
8909 $as_test_x conftest
$ac_exeext; then
8910 ac_cv_working_alloca_h
=yes
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.
$ac_ext >&5
8915 ac_cv_working_alloca_h
=no
8918 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8919 conftest
$ac_exeext conftest.
$ac_ext
8921 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8922 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8923 if test $ac_cv_working_alloca_h = yes; then
8925 cat >>confdefs.h
<<\_ACEOF
8926 #define HAVE_ALLOCA_H 1
8931 { echo "$as_me:$LINENO: checking for alloca" >&5
8932 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8933 if test "${ac_cv_func_alloca_works+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 cat >conftest.
$ac_ext <<_ACEOF
8939 cat confdefs.h
>>conftest.
$ac_ext
8940 cat >>conftest.
$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8943 # define alloca __builtin_alloca
8946 # include <malloc.h>
8947 # define alloca _alloca
8949 # ifdef HAVE_ALLOCA_H
8950 # include <alloca.h>
8955 # ifndef alloca /* predefined by HP cc +Olibcalls */
8966 char *p = (char *) alloca (1);
8972 rm -f conftest.
$ac_objext conftest
$ac_exeext
8973 if { (ac_try
="$ac_link"
8975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_link") 2>conftest.er1
8981 grep -v '^ *+' conftest.er1 >conftest.err
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest$ac_exeext &&
8989 $as_test_x conftest$ac_exeext; then
8990 ac_cv_func_alloca_works=yes
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ac_cv_func_alloca_works=no
8998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8999 conftest$ac_exeext conftest.$ac_ext
9001 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9002 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9004 if test $ac_cv_func_alloca_works = yes; then
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_ALLOCA 1
9011 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9012 # that cause trouble. Some versions do not even contain alloca or
9013 # contain a buggy version. If you still want to use their alloca,
9014 # use ar to extract alloca.o from them instead of compiling alloca.c.
9016 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9018 cat >>confdefs.h <<\_ACEOF
9023 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
9024 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
9025 if test "${ac_cv_os_cray+set}" = set; then
9026 echo $ECHO_N "(cached
) $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034 #if defined CRAY && ! defined CRAY2
9041 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9042 $EGREP "webecray
" >/dev/null 2>&1; then
9050 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
9051 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9052 if test $ac_cv_os_cray = yes; then
9053 for ac_func in _getb67 GETB67 getb67; do
9054 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
9055 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
9056 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
9057 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
9058 echo $ECHO_N "(cached
) $ECHO_C" >&6
9060 cat >conftest.$ac_ext <<_ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9068 #define $ac_func innocuous_$ac_func
9070 /* System header to define __stub macros and hopefully few prototypes,
9071 which can conflict with char $ac_func (); below.
9072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9073 <limits.h> exists even on freestanding compilers. */
9076 # include <limits.h>
9078 # include <assert.h>
9083 /* Override any GCC internal prototype to avoid an error.
9084 Use char because int might match the return type of a GCC
9085 builtin and then its argument prototype would still apply. */
9090 /* The GNU C library defines this for functions which it implements
9091 to always fail with ENOSYS. Some functions are actually named
9092 something starting with __ and the normal name is an alias. */
9093 #if defined __stub_$ac_func || defined __stub___$ac_func
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (ac_try="$ac_link"
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_link") 2>conftest.er1
9114 grep -v '^ *+' conftest.er1 >conftest.err
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9118 (exit $ac_status); } && {
9119 test -z "$ac_c_werror_flag" ||
9120 test ! -s conftest.err
9121 } && test -s conftest$ac_exeext &&
9122 $as_test_x conftest$ac_exeext; then
9123 eval "$as_ac_var=yes"
9125 echo "$as_me: failed program was
:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 eval "$as_ac_var=no
"
9131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9132 conftest$ac_exeext conftest.$ac_ext
9134 ac_res=`eval echo '${'$as_ac_var'}'`
9135 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9136 echo "${ECHO_T}$ac_res" >&6; }
9137 if test `eval echo '${'$as_ac_var'}'` = yes; then
9139 cat >>confdefs.h <<_ACEOF
9140 #define CRAY_STACKSEG_END $ac_func
9149 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
9150 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
9151 if test "${ac_cv_c_stack_direction+set}" = set; then
9152 echo $ECHO_N "(cached
) $ECHO_C" >&6
9154 if test "$cross_compiling" = yes; then
9155 ac_cv_c_stack_direction=0
9157 cat >conftest.$ac_ext <<_ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 $ac_includes_default
9165 find_stack_direction ()
9167 static char *addr = 0;
9172 return find_stack_direction ();
9175 return (&dummy > addr) ? 1 : -1;
9181 return find_stack_direction () < 0;
9184 rm -f conftest$ac_exeext
9185 if { (ac_try="$ac_link"
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_link") 2>&5
9193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9195 { (case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_try") 2>&5
9202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_c_stack_direction=1
9206 echo "$as_me: program exited with status
$ac_status" >&5
9207 echo "$as_me: failed program was
:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9211 ac_cv_c_stack_direction=-1
9213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9218 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
9219 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9221 cat >>confdefs.h <<_ACEOF
9222 #define STACK_DIRECTION $ac_cv_c_stack_direction
9234 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9235 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
9236 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
9237 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
9238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9239 echo $ECHO_N "(cached
) $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 #include <sys/types.h>
9259 rm -f conftest.$ac_objext
9260 if { (ac_try="$ac_compile"
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_compile") 2>conftest.er1
9268 grep -v '^ *+' conftest.er1 >conftest.err
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9272 (exit $ac_status); } && {
9273 test -z "$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 } && test -s conftest.$ac_objext; then
9276 eval "$as_ac_Header=yes"
9278 echo "$as_me: failed program was
:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9281 eval "$as_ac_Header=no
"
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286 ac_res=`eval echo '${'$as_ac_Header'}'`
9287 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9288 echo "${ECHO_T}$ac_res" >&6; }
9289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9290 cat >>confdefs.h <<_ACEOF
9291 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
9294 ac_header_dirent=$ac_hdr; break
9298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9299 if test $ac_header_dirent = dirent.h; then
9300 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9301 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9302 if test "${ac_cv_search_opendir+set}" = set; then
9303 echo $ECHO_N "(cached
) $ECHO_C" >&6
9305 ac_func_search_save_LIBS=$LIBS
9306 cat >conftest.$ac_ext <<_ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9313 /* Override any GCC internal prototype to avoid an error.
9314 Use char because int might match the return type of a GCC
9315 builtin and then its argument prototype would still apply. */
9328 for ac_lib in '' dir; do
9329 if test -z "$ac_lib"; then
9330 ac_res="none required
"
9333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (ac_try="$ac_link"
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_link") 2>conftest.er1
9344 grep -v '^ *+' conftest.er1 >conftest.err
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9348 (exit $ac_status); } && {
9349 test -z "$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9351 } && test -s conftest$ac_exeext &&
9352 $as_test_x conftest$ac_exeext; then
9353 ac_cv_search_opendir=$ac_res
9355 echo "$as_me: failed program was
:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9363 if test "${ac_cv_search_opendir+set}" = set; then
9367 if test "${ac_cv_search_opendir+set}" = set; then
9370 ac_cv_search_opendir=no
9373 LIBS=$ac_func_search_save_LIBS
9375 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9376 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9377 ac_res=$ac_cv_search_opendir
9378 if test "$ac_res" != no; then
9379 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9384 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9385 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9386 if test "${ac_cv_search_opendir+set}" = set; then
9387 echo $ECHO_N "(cached
) $ECHO_C" >&6
9389 ac_func_search_save_LIBS=$LIBS
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9412 for ac_lib in '' x; do
9413 if test -z "$ac_lib"; then
9414 ac_res="none required
"
9417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (ac_try="$ac_link"
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_link") 2>conftest.er1
9428 grep -v '^ *+' conftest.er1 >conftest.err
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9432 (exit $ac_status); } && {
9433 test -z "$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 } && test -s conftest$ac_exeext &&
9436 $as_test_x conftest$ac_exeext; then
9437 ac_cv_search_opendir=$ac_res
9439 echo "$as_me: failed program was
:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9447 if test "${ac_cv_search_opendir+set}" = set; then
9451 if test "${ac_cv_search_opendir+set}" = set; then
9454 ac_cv_search_opendir=no
9457 LIBS=$ac_func_search_save_LIBS
9459 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9460 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9461 ac_res=$ac_cv_search_opendir
9462 if test "$ac_res" != no; then
9463 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9469 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
9470 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
9471 if test "${ac_cv_header_stdc+set}" = set; then
9472 echo $ECHO_N "(cached
) $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9493 rm -f conftest.$ac_objext
9494 if { (ac_try="$ac_compile"
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_compile") 2>conftest.er1
9502 grep -v '^ *+' conftest.er1 >conftest.err
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9506 (exit $ac_status); } && {
9507 test -z "$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9509 } && test -s conftest.$ac_objext; then
9510 ac_cv_header_stdc=yes
9512 echo "$as_me: failed program was
:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_cv_header_stdc=no
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520 if test $ac_cv_header_stdc = yes; then
9521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9531 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9532 $EGREP "memchr
" >/dev/null 2>&1; then
9535 ac_cv_header_stdc=no
9541 if test $ac_cv_header_stdc = yes; then
9542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9543 cat >conftest.$ac_ext <<_ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9552 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9553 $EGREP "free
" >/dev/null 2>&1; then
9556 ac_cv_header_stdc=no
9562 if test $ac_cv_header_stdc = yes; then
9563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9564 if test "$cross_compiling" = yes; then
9567 cat >conftest.$ac_ext <<_ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9575 #if ((' ' & 0x0FF) == 0x020)
9576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9579 # define ISLOWER(c) \
9580 (('a' <= (c) && (c) <= 'i') \
9581 || ('j' <= (c) && (c) <= 'r') \
9582 || ('s' <= (c) && (c) <= 'z'))
9583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9591 for (i = 0; i < 256; i++)
9592 if (XOR (islower (i), ISLOWER (i))
9593 || toupper (i) != TOUPPER (i))
9598 rm -f conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_link") 2>&5
9607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9609 { (case "(($ac_try" in
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_try") 2>&5
9616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9617 (exit $ac_status); }; }; then
9620 echo "$as_me: program exited with status
$ac_status" >&5
9621 echo "$as_me: failed program was
:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9625 ac_cv_header_stdc=no
9627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9633 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
9634 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9635 if test $ac_cv_header_stdc = yes; then
9637 cat >>confdefs.h <<\_ACEOF
9638 #define STDC_HEADERS 1
9643 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
9644 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
9645 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9646 echo $ECHO_N "(cached
) $ECHO_C" >&6
9648 cat >conftest.$ac_ext <<_ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 #include <sys/types.h>
9655 #include <sys/wait.h>
9657 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9660 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9668 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9673 rm -f conftest.$ac_objext
9674 if { (ac_try="$ac_compile"
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_compile") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest.$ac_objext; then
9690 ac_cv_header_sys_wait_h=yes
9692 echo "$as_me: failed program was
:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_cv_header_sys_wait_h=no
9698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
9701 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9702 if test $ac_cv_header_sys_wait_h = yes; then
9704 cat >>confdefs.h <<\_ACEOF
9705 #define HAVE_SYS_WAIT_H 1
9733 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
9735 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9736 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9737 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9738 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9739 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9740 echo $ECHO_N "(cached
) $ECHO_C" >&6
9742 ac_res=`eval echo '${'$as_ac_Header'}'`
9743 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9744 echo "${ECHO_T}$ac_res" >&6; }
9746 # Is the header compilable?
9747 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9748 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 $ac_includes_default
9756 #include <$ac_header>
9758 rm -f conftest.$ac_objext
9759 if { (ac_try="$ac_compile"
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_compile") 2>conftest.er1
9767 grep -v '^ *+' conftest.er1 >conftest.err
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9771 (exit $ac_status); } && {
9772 test -z "$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9774 } && test -s conftest.$ac_objext; then
9775 ac_header_compiler=yes
9777 echo "$as_me: failed program was
:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_header_compiler=no
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9785 echo "${ECHO_T}$ac_header_compiler" >&6; }
9787 # Is the header present?
9788 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9789 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9790 cat >conftest.$ac_ext <<_ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9796 #include <$ac_header>
9798 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9806 grep -v '^ *+' conftest.er1 >conftest.err
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9810 (exit $ac_status); } >/dev/null && {
9811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9814 ac_header_preproc=yes
9816 echo "$as_me: failed program was
:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_header_preproc=no
9822 rm -f conftest.err conftest.$ac_ext
9823 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9824 echo "${ECHO_T}$ac_header_preproc" >&6; }
9826 # So? What about this header?
9827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9829 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9830 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9831 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9833 ac_header_preproc=yes
9836 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9837 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9838 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9839 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9840 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9841 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9842 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9843 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9844 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9846 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9847 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9849 ## ------------------------------- ##
9850 ## Report this to www.asterisk.org ##
9851 ## ------------------------------- ##
9853 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9856 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9857 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9858 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9859 echo $ECHO_N "(cached
) $ECHO_C" >&6
9861 eval "$as_ac_Header=\
$ac_header_preproc"
9863 ac_res=`eval echo '${'$as_ac_Header'}'`
9864 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9865 echo "${ECHO_T}$ac_res" >&6; }
9868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9869 cat >>confdefs.h <<_ACEOF
9870 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9878 # Check whether --enable-largefile was given.
9879 if test "${enable_largefile+set}" = set; then
9880 enableval=$enable_largefile;
9883 if test "$enable_largefile" != no; then
9885 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
9886 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
9887 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9888 echo $ECHO_N "(cached
) $ECHO_C" >&6
9890 ac_cv_sys_largefile_CC=no
9891 if test "$GCC" != yes; then
9894 # IRIX 6.2 and later do not support large files by default,
9895 # so use the C compiler's -n32 option if that helps.
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 #include <sys/types.h>
9903 /* Check that off_t can represent 2**63 - 1 correctly.
9904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9905 since some C++ compilers masquerading as C compilers
9906 incorrectly reject 9223372036854775807. */
9907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9909 && LARGE_OFF_T % 2147483647 == 1)
9919 rm -f conftest.$ac_objext
9920 if { (ac_try="$ac_compile"
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_compile") 2>conftest.er1
9928 grep -v '^ *+' conftest.er1 >conftest.err
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest.$ac_objext; then
9938 echo "$as_me: failed program was
:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9944 rm -f core conftest.err conftest.$ac_objext
9946 rm -f conftest.$ac_objext
9947 if { (ac_try="$ac_compile"
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_compile") 2>conftest.er1
9955 grep -v '^ *+' conftest.er1 >conftest.err
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest.$ac_objext; then
9963 ac_cv_sys_largefile_CC=' -n32'; break
9965 echo "$as_me: failed program was
:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9971 rm -f core conftest.err conftest.$ac_objext
9975 rm -f conftest.$ac_ext
9978 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
9979 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9980 if test "$ac_cv_sys_largefile_CC" != no; then
9981 CC=$CC$ac_cv_sys_largefile_CC
9984 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
9985 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
9986 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9987 echo $ECHO_N "(cached
) $ECHO_C" >&6
9990 cat >conftest.$ac_ext <<_ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996 #include <sys/types.h>
9997 /* Check that off_t can represent 2**63 - 1 correctly.
9998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9999 since some C++ compilers masquerading as C compilers
10000 incorrectly reject 9223372036854775807. */
10001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10003 && LARGE_OFF_T % 2147483647 == 1)
10013 rm -f conftest.$ac_objext
10014 if { (ac_try="$ac_compile"
10015 case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_compile") 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10026 (exit $ac_status); } && {
10027 test -z "$ac_c_werror_flag" ||
10028 test ! -s conftest.err
10029 } && test -s conftest.$ac_objext; then
10030 ac_cv_sys_file_offset_bits=no; break
10032 echo "$as_me: failed program was
:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 #define _FILE_OFFSET_BITS 64
10046 #include <sys/types.h>
10047 /* Check that off_t can represent 2**63 - 1 correctly.
10048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10049 since some C++ compilers masquerading as C compilers
10050 incorrectly reject 9223372036854775807. */
10051 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10053 && LARGE_OFF_T % 2147483647 == 1)
10063 rm -f conftest.$ac_objext
10064 if { (ac_try="$ac_compile"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_compile") 2>conftest.er1
10072 grep -v '^ *+' conftest.er1 >conftest.err
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest.$ac_objext; then
10080 ac_cv_sys_file_offset_bits=64; break
10082 echo "$as_me: failed program was
:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 ac_cv_sys_file_offset_bits=unknown
10093 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
10094 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10095 case $ac_cv_sys_file_offset_bits in #(
10098 cat >>confdefs.h <<_ACEOF
10099 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10104 if test $ac_cv_sys_file_offset_bits = unknown; then
10105 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
10106 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
10107 if test "${ac_cv_sys_large_files+set}" = set; then
10108 echo $ECHO_N "(cached
) $ECHO_C" >&6
10111 cat >conftest.$ac_ext <<_ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 #include <sys/types.h>
10118 /* Check that off_t can represent 2**63 - 1 correctly.
10119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10120 since some C++ compilers masquerading as C compilers
10121 incorrectly reject 9223372036854775807. */
10122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10124 && LARGE_OFF_T % 2147483647 == 1)
10134 rm -f conftest.$ac_objext
10135 if { (ac_try="$ac_compile"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_compile") 2>conftest.er1
10143 grep -v '^ *+' conftest.er1 >conftest.err
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10147 (exit $ac_status); } && {
10148 test -z "$ac_c_werror_flag" ||
10149 test ! -s conftest.err
10150 } && test -s conftest.$ac_objext; then
10151 ac_cv_sys_large_files=no; break
10153 echo "$as_me: failed program was
:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 cat >conftest.$ac_ext <<_ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 #define _LARGE_FILES 1
10167 #include <sys/types.h>
10168 /* Check that off_t can represent 2**63 - 1 correctly.
10169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10170 since some C++ compilers masquerading as C compilers
10171 incorrectly reject 9223372036854775807. */
10172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10174 && LARGE_OFF_T % 2147483647 == 1)
10184 rm -f conftest.$ac_objext
10185 if { (ac_try="$ac_compile"
10186 case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_compile") 2>conftest.er1
10193 grep -v '^ *+' conftest.er1 >conftest.err
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10197 (exit $ac_status); } && {
10198 test -z "$ac_c_werror_flag" ||
10199 test ! -s conftest.err
10200 } && test -s conftest.$ac_objext; then
10201 ac_cv_sys_large_files=1; break
10203 echo "$as_me: failed program was
:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 ac_cv_sys_large_files=unknown
10214 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
10215 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10216 case $ac_cv_sys_large_files in #(
10219 cat >>confdefs.h <<_ACEOF
10220 #define _LARGE_FILES $ac_cv_sys_large_files
10229 # Checks for typedefs, structures, and compiler characteristics.
10230 { echo "$as_me:$LINENO: checking
for stdbool.h that conforms to C99
" >&5
10231 echo $ECHO_N "checking
for stdbool.h that conforms to C99...
$ECHO_C" >&6; }
10232 if test "${ac_cv_header_stdbool_h+set}" = set; then
10233 echo $ECHO_N "(cached
) $ECHO_C" >&6
10235 cat >conftest.$ac_ext <<_ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10242 #include <stdbool.h>
10244 "error
: bool is not defined
"
10247 "error
: false is not defined
"
10250 "error
: false is not
0"
10253 "error
: true is not defined
"
10256 "error
: true is not
1"
10258 #ifndef __bool_true_false_are_defined
10259 "error
: __bool_true_false_are_defined is not defined
"
10262 struct s { _Bool s: 1; _Bool t; } s;
10264 char a[true == 1 ? 1 : -1];
10265 char b[false == 0 ? 1 : -1];
10266 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10267 char d[(bool) 0.5 == true ? 1 : -1];
10269 char f[(_Bool) 0.0 == false ? 1 : -1];
10271 char h[sizeof (_Bool)];
10272 char i[sizeof s.t];
10273 enum { j = false, k = true, l = false * true, m = true * 256 };
10275 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10276 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10277 # if defined __xlc__ || defined __GNUC__
10278 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10279 reported by James Lemley on 2005-10-05; see
10280 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10281 This test is not quite right, since xlc is allowed to
10282 reject this program, as the initializer for xlcbug is
10283 not one of the forms that C requires support for.
10284 However, doing the test right would require a runtime
10285 test, and that would make cross-compilation harder.
10286 Let us hope that IBM fixes the xlc bug, and also adds
10287 support for this kind of constant expression. In the
10288 meantime, this test will reject xlc, which is OK, since
10289 our stdbool.h substitute should suffice. We also test
10290 this with GCC, where it should work, to detect more
10291 quickly whether someone messes up the test in the
10293 char digs[] = "0123456789";
10294 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10296 /* Catch a bug in an HP-UX C compiler. See
10297 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10298 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10309 /* Refer to every declared value, to avoid compiler optimizations. */
10310 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10311 + !m + !n + !o + !p + !q + !pq);
10317 rm -f conftest.$ac_objext
10318 if { (ac_try="$ac_compile"
10319 case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_compile") 2>conftest.er1
10326 grep -v '^ *+' conftest.er1 >conftest.err
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10330 (exit $ac_status); } && {
10331 test -z "$ac_c_werror_flag" ||
10332 test ! -s conftest.err
10333 } && test -s conftest.$ac_objext; then
10334 ac_cv_header_stdbool_h=yes
10336 echo "$as_me: failed program was
:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ac_cv_header_stdbool_h=no
10342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10344 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdbool_h" >&5
10345 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10346 { echo "$as_me:$LINENO: checking
for _Bool
" >&5
10347 echo $ECHO_N "checking
for _Bool...
$ECHO_C" >&6; }
10348 if test "${ac_cv_type__Bool+set}" = set; then
10349 echo $ECHO_N "(cached
) $ECHO_C" >&6
10351 cat >conftest.$ac_ext <<_ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 typedef _Bool ac__type_new_;
10362 if ((ac__type_new_ *) 0)
10364 if (sizeof (ac__type_new_))
10370 rm -f conftest.$ac_objext
10371 if { (ac_try="$ac_compile"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10379 grep -v '^ *+' conftest.er1 >conftest.err
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_cv_type__Bool=yes
10389 echo "$as_me: failed program was
:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_cv_type__Bool=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 { echo "$as_me:$LINENO: result
: $ac_cv_type__Bool" >&5
10398 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10399 if test $ac_cv_type__Bool = yes; then
10401 cat >>confdefs.h <<_ACEOF
10402 #define HAVE__BOOL 1
10408 if test $ac_cv_header_stdbool_h = yes; then
10410 cat >>confdefs.h <<\_ACEOF
10411 #define HAVE_STDBOOL_H 1
10416 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
10417 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
10418 if test "${ac_cv_c_const+set}" = set; then
10419 echo $ECHO_N "(cached
) $ECHO_C" >&6
10421 cat >conftest.$ac_ext <<_ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10431 /* FIXME: Include the comments suggested by Paul. */
10432 #ifndef __cplusplus
10433 /* Ultrix mips cc rejects this. */
10434 typedef int charset[2];
10436 /* SunOS 4.1.1 cc rejects this. */
10437 char const *const *pcpcc;
10439 /* NEC SVR4.0.2 mips cc rejects this. */
10440 struct point {int x, y;};
10441 static struct point const zero = {0,0};
10442 /* AIX XL C 1.02.0.0 rejects this.
10443 It does not let you subtract one const X* pointer from another in
10444 an arm of an if-expression whose if-part is not a constant
10446 const char *g = "string
";
10447 pcpcc = &g + (g ? g-g : 0);
10448 /* HPUX 7.0 cc rejects these. */
10450 ppc = (char**) pcpcc;
10451 pcpcc = (char const *const *) ppc;
10452 { /* SCO 3.2v4 cc rejects this. */
10454 char const *s = 0 ? (char *) 0 : (char const *) 0;
10459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10460 int x[] = {25, 17};
10461 const int *foo = &x[0];
10464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10465 typedef const int *iptr;
10469 { /* AIX XL C 1.02.0.0 rejects this saying
10470 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10471 struct s { int j; const int *ap[3]; };
10472 struct s *b; b->j = 5;
10474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10475 const int foo = 10;
10476 if (!foo) return 0;
10478 return !cs[0] && !zero.x;
10485 rm -f conftest.$ac_objext
10486 if { (ac_try="$ac_compile"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_compile") 2>conftest.er1
10494 grep -v '^ *+' conftest.er1 >conftest.err
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest.$ac_objext; then
10504 echo "$as_me: failed program was
:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10512 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
10513 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10514 if test $ac_cv_c_const = no; then
10516 cat >>confdefs.h <<\_ACEOF
10522 { echo "$as_me:$LINENO: checking
for uid_t
in sys
/types.h
" >&5
10523 echo $ECHO_N "checking
for uid_t
in sys
/types.h...
$ECHO_C" >&6; }
10524 if test "${ac_cv_type_uid_t+set}" = set; then
10525 echo $ECHO_N "(cached
) $ECHO_C" >&6
10527 cat >conftest.$ac_ext <<_ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 #include <sys/types.h>
10536 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10537 $EGREP "uid_t
" >/dev/null 2>&1; then
10538 ac_cv_type_uid_t=yes
10540 ac_cv_type_uid_t=no
10545 { echo "$as_me:$LINENO: result
: $ac_cv_type_uid_t" >&5
10546 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10547 if test $ac_cv_type_uid_t = no; then
10549 cat >>confdefs.h <<\_ACEOF
10554 cat >>confdefs.h <<\_ACEOF
10560 { echo "$as_me:$LINENO: checking
for inline
" >&5
10561 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
10562 if test "${ac_cv_c_inline+set}" = set; then
10563 echo $ECHO_N "(cached
) $ECHO_C" >&6
10566 for ac_kw in inline __inline__ __inline; do
10567 cat >conftest.$ac_ext <<_ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573 #ifndef __cplusplus
10575 static $ac_kw foo_t static_foo () {return 0; }
10576 $ac_kw foo_t foo () {return 0; }
10580 rm -f conftest.$ac_objext
10581 if { (ac_try="$ac_compile"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_compile") 2>conftest.er1
10589 grep -v '^ *+' conftest.er1 >conftest.err
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10593 (exit $ac_status); } && {
10594 test -z "$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10596 } && test -s conftest.$ac_objext; then
10597 ac_cv_c_inline=$ac_kw
10599 echo "$as_me: failed program was
:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 test "$ac_cv_c_inline" != no && break
10610 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
10611 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10614 case $ac_cv_c_inline in
10617 case $ac_cv_c_inline in
10619 *) ac_val=$ac_cv_c_inline;;
10621 cat >>confdefs.h <<_ACEOF
10622 #ifndef __cplusplus
10623 #define inline $ac_val
10629 { echo "$as_me:$LINENO: checking
for mode_t
" >&5
10630 echo $ECHO_N "checking
for mode_t...
$ECHO_C" >&6; }
10631 if test "${ac_cv_type_mode_t+set}" = set; then
10632 echo $ECHO_N "(cached
) $ECHO_C" >&6
10634 cat >conftest.$ac_ext <<_ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 $ac_includes_default
10641 typedef mode_t ac__type_new_;
10645 if ((ac__type_new_ *) 0)
10647 if (sizeof (ac__type_new_))
10653 rm -f conftest.$ac_objext
10654 if { (ac_try="$ac_compile"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_compile") 2>conftest.er1
10662 grep -v '^ *+' conftest.er1 >conftest.err
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10666 (exit $ac_status); } && {
10667 test -z "$ac_c_werror_flag" ||
10668 test ! -s conftest.err
10669 } && test -s conftest.$ac_objext; then
10670 ac_cv_type_mode_t=yes
10672 echo "$as_me: failed program was
:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_cv_type_mode_t=no
10678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10680 { echo "$as_me:$LINENO: result
: $ac_cv_type_mode_t" >&5
10681 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10682 if test $ac_cv_type_mode_t = yes; then
10686 cat >>confdefs.h <<_ACEOF
10692 { echo "$as_me:$LINENO: checking
for off_t
" >&5
10693 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
10694 if test "${ac_cv_type_off_t+set}" = set; then
10695 echo $ECHO_N "(cached
) $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 $ac_includes_default
10704 typedef off_t ac__type_new_;
10708 if ((ac__type_new_ *) 0)
10710 if (sizeof (ac__type_new_))
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_compile") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10729 (exit $ac_status); } && {
10730 test -z "$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 } && test -s conftest.$ac_objext; then
10733 ac_cv_type_off_t=yes
10735 echo "$as_me: failed program was
:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_cv_type_off_t=no
10741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
10744 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10745 if test $ac_cv_type_off_t = yes; then
10749 cat >>confdefs.h <<_ACEOF
10750 #define off_t long int
10755 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
10756 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
10757 if test "${ac_cv_type_pid_t+set}" = set; then
10758 echo $ECHO_N "(cached
) $ECHO_C" >&6
10760 cat >conftest.$ac_ext <<_ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 $ac_includes_default
10767 typedef pid_t ac__type_new_;
10771 if ((ac__type_new_ *) 0)
10773 if (sizeof (ac__type_new_))
10779 rm -f conftest.$ac_objext
10780 if { (ac_try="$ac_compile"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_compile") 2>conftest.er1
10788 grep -v '^ *+' conftest.er1 >conftest.err
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10792 (exit $ac_status); } && {
10793 test -z "$ac_c_werror_flag" ||
10794 test ! -s conftest.err
10795 } && test -s conftest.$ac_objext; then
10796 ac_cv_type_pid_t=yes
10798 echo "$as_me: failed program was
:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_cv_type_pid_t=no
10804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
10807 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10808 if test $ac_cv_type_pid_t = yes; then
10812 cat >>confdefs.h <<_ACEOF
10818 { echo "$as_me:$LINENO: checking
for size_t
" >&5
10819 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
10820 if test "${ac_cv_type_size_t+set}" = set; then
10821 echo $ECHO_N "(cached
) $ECHO_C" >&6
10823 cat >conftest.$ac_ext <<_ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 $ac_includes_default
10830 typedef size_t ac__type_new_;
10834 if ((ac__type_new_ *) 0)
10836 if (sizeof (ac__type_new_))
10842 rm -f conftest.$ac_objext
10843 if { (ac_try="$ac_compile"
10844 case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_compile") 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest.$ac_objext; then
10859 ac_cv_type_size_t=yes
10861 echo "$as_me: failed program was
:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_cv_type_size_t=no
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
10870 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10871 if test $ac_cv_type_size_t = yes; then
10875 cat >>confdefs.h <<_ACEOF
10876 #define size_t unsigned int
10881 { echo "$as_me:$LINENO: checking
for struct stat.st_blksize
" >&5
10882 echo $ECHO_N "checking
for struct stat.st_blksize...
$ECHO_C" >&6; }
10883 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10884 echo $ECHO_N "(cached
) $ECHO_C" >&6
10886 cat >conftest.$ac_ext <<_ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 $ac_includes_default
10896 static struct stat ac_aggr;
10897 if (ac_aggr.st_blksize)
10903 rm -f conftest.$ac_objext
10904 if { (ac_try="$ac_compile"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_compile") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest.$ac_objext; then
10920 ac_cv_member_struct_stat_st_blksize=yes
10922 echo "$as_me: failed program was
:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10925 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 $ac_includes_default
10935 static struct stat ac_aggr;
10936 if (sizeof ac_aggr.st_blksize)
10942 rm -f conftest.$ac_objext
10943 if { (ac_try="$ac_compile"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_compile") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest.$ac_objext; then
10959 ac_cv_member_struct_stat_st_blksize=yes
10961 echo "$as_me: failed program was
:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_cv_member_struct_stat_st_blksize=no
10967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_stat_st_blksize" >&5
10973 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10974 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10983 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
10984 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
10985 if test "${ac_cv_header_time+set}" = set; then
10986 echo $ECHO_N "(cached
) $ECHO_C" >&6
10988 cat >conftest.$ac_ext <<_ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 #include <sys/types.h>
10995 #include <sys/time.h>
11001 if ((struct tm *) 0)
11007 rm -f conftest.$ac_objext
11008 if { (ac_try="$ac_compile"
11009 case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_compile") 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11020 (exit $ac_status); } && {
11021 test -z "$ac_c_werror_flag" ||
11022 test ! -s conftest.err
11023 } && test -s conftest.$ac_objext; then
11024 ac_cv_header_time=yes
11026 echo "$as_me: failed program was
:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11029 ac_cv_header_time=no
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
11035 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11036 if test $ac_cv_header_time = yes; then
11038 cat >>confdefs.h <<\_ACEOF
11039 #define TIME_WITH_SYS_TIME 1
11044 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
11045 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
11046 if test "${ac_cv_struct_tm+set}" = set; then
11047 echo $ECHO_N "(cached
) $ECHO_C" >&6
11049 cat >conftest.$ac_ext <<_ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 #include <sys/types.h>
11062 int *p = &tm.tm_sec;
11068 rm -f conftest.$ac_objext
11069 if { (ac_try="$ac_compile"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_compile") 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest.$ac_objext; then
11085 ac_cv_struct_tm=time.h
11087 echo "$as_me: failed program was
:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_cv_struct_tm=sys/time.h
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
11096 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11097 if test $ac_cv_struct_tm = sys/time.h; then
11099 cat >>confdefs.h <<\_ACEOF
11100 #define TM_IN_SYS_TIME 1
11105 { echo "$as_me:$LINENO: checking
for working volatile
" >&5
11106 echo $ECHO_N "checking
for working volatile...
$ECHO_C" >&6; }
11107 if test "${ac_cv_c_volatile+set}" = set; then
11108 echo $ECHO_N "(cached
) $ECHO_C" >&6
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11122 int * volatile y = (int *) 0;
11128 rm -f conftest.$ac_objext
11129 if { (ac_try="$ac_compile"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_compile") 2>conftest.er1
11137 grep -v '^ *+' conftest.er1 >conftest.err
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest.$ac_objext; then
11145 ac_cv_c_volatile=yes
11147 echo "$as_me: failed program was
:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_cv_c_volatile=no
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 { echo "$as_me:$LINENO: result
: $ac_cv_c_volatile" >&5
11156 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11157 if test $ac_cv_c_volatile = no; then
11159 cat >>confdefs.h <<\_ACEOF
11165 { echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
11166 echo $ECHO_N "checking
for ptrdiff_t...
$ECHO_C" >&6; }
11167 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11168 echo $ECHO_N "(cached
) $ECHO_C" >&6
11170 cat >conftest.$ac_ext <<_ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 $ac_includes_default
11177 typedef ptrdiff_t ac__type_new_;
11181 if ((ac__type_new_ *) 0)
11183 if (sizeof (ac__type_new_))
11189 rm -f conftest.$ac_objext
11190 if { (ac_try="$ac_compile"
11191 case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_compile") 2>conftest.er1
11198 grep -v '^ *+' conftest.er1 >conftest.err
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11202 (exit $ac_status); } && {
11203 test -z "$ac_c_werror_flag" ||
11204 test ! -s conftest.err
11205 } && test -s conftest.$ac_objext; then
11206 ac_cv_type_ptrdiff_t=yes
11208 echo "$as_me: failed program was
:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ac_cv_type_ptrdiff_t=no
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
11217 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11218 if test $ac_cv_type_ptrdiff_t = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define HAVE_PTRDIFF_T 1
11228 # Checks for library functions.
11230 for ac_header in unistd.h
11232 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11235 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached
) $ECHO_C" >&6
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11243 # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11245 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 $ac_includes_default
11253 #include <$ac_header>
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest.$ac_objext; then
11272 ac_header_compiler=yes
11274 echo "$as_me: failed program was
:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ac_header_compiler=no
11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11282 echo "${ECHO_T}$ac_header_compiler" >&6; }
11284 # Is the header present?
11285 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11286 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11287 cat >conftest.$ac_ext <<_ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <$ac_header>
11295 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11296 case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11303 grep -v '^ *+' conftest.er1 >conftest.err
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11307 (exit $ac_status); } >/dev/null && {
11308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11311 ac_header_preproc=yes
11313 echo "$as_me: failed program was
:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_header_preproc=no
11319 rm -f conftest.err conftest.$ac_ext
11320 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11321 echo "${ECHO_T}$ac_header_preproc" >&6; }
11323 # So? What about this header?
11324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11326 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11327 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11328 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11330 ac_header_preproc=yes
11333 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11334 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11335 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11336 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11337 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11338 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11339 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11340 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11341 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11343 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11344 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11346 ## ------------------------------- ##
11347 ## Report this to www.asterisk.org ##
11348 ## ------------------------------- ##
11350 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11353 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11354 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11355 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11356 echo $ECHO_N "(cached
) $ECHO_C" >&6
11358 eval "$as_ac_Header=\
$ac_header_preproc"
11360 ac_res=`eval echo '${'$as_ac_Header'}'`
11361 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11366 cat >>confdefs.h <<_ACEOF
11367 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11374 { echo "$as_me:$LINENO: checking
for working chown
" >&5
11375 echo $ECHO_N "checking
for working chown...
$ECHO_C" >&6; }
11376 if test "${ac_cv_func_chown_works+set}" = set; then
11377 echo $ECHO_N "(cached
) $ECHO_C" >&6
11379 if test "$cross_compiling" = yes; then
11380 ac_cv_func_chown_works=no
11382 cat >conftest.$ac_ext <<_ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 $ac_includes_default
11394 char *f = "conftest.chown
";
11395 struct stat before, after;
11397 if (creat (f, 0600) < 0)
11399 if (stat (f, &before) < 0)
11401 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11403 if (stat (f, &after) < 0)
11405 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11411 rm -f conftest$ac_exeext
11412 if { (ac_try="$ac_link"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_link") 2>&5
11420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11422 { (case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_try") 2>&5
11429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 ac_cv_func_chown_works=yes
11433 echo "$as_me: program exited with status
$ac_status" >&5
11434 echo "$as_me: failed program was
:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 ( exit $ac_status )
11438 ac_cv_func_chown_works=no
11440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11444 rm -f conftest.chown
11447 { echo "$as_me:$LINENO: result
: $ac_cv_func_chown_works" >&5
11448 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11449 if test $ac_cv_func_chown_works = yes; then
11451 cat >>confdefs.h <<\_ACEOF
11452 #define HAVE_CHOWN 1
11457 { echo "$as_me:$LINENO: checking whether closedir returns void
" >&5
11458 echo $ECHO_N "checking whether closedir returns void...
$ECHO_C" >&6; }
11459 if test "${ac_cv_func_closedir_void+set}" = set; then
11460 echo $ECHO_N "(cached
) $ECHO_C" >&6
11462 if test "$cross_compiling" = yes; then
11463 ac_cv_func_closedir_void=yes
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 #include <$ac_header_dirent>
11473 #ifndef __cplusplus
11480 return closedir (opendir (".
")) != 0;
11485 rm -f conftest$ac_exeext
11486 if { (ac_try="$ac_link"
11487 case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_link") 2>&5
11494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_try") 2>&5
11503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 ac_cv_func_closedir_void=no
11507 echo "$as_me: program exited with status
$ac_status" >&5
11508 echo "$as_me: failed program was
:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 ( exit $ac_status )
11512 ac_cv_func_closedir_void=yes
11514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11519 { echo "$as_me:$LINENO: result
: $ac_cv_func_closedir_void" >&5
11520 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11521 if test $ac_cv_func_closedir_void = yes; then
11523 cat >>confdefs.h <<\_ACEOF
11524 #define CLOSEDIR_VOID 1
11529 { echo "$as_me:$LINENO: checking
for error_at_line
" >&5
11530 echo $ECHO_N "checking
for error_at_line...
$ECHO_C" >&6; }
11531 if test "${ac_cv_lib_error_at_line+set}" = set; then
11532 echo $ECHO_N "(cached
) $ECHO_C" >&6
11534 cat >conftest.$ac_ext <<_ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11544 error_at_line (0, 0, "", 0, "an error occurred
");
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext &&
11566 $as_test_x conftest$ac_exeext; then
11567 ac_cv_lib_error_at_line=yes
11569 echo "$as_me: failed program was
:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_cv_lib_error_at_line=no
11575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
11578 { echo "$as_me:$LINENO: result
: $ac_cv_lib_error_at_line" >&5
11579 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11580 if test $ac_cv_lib_error_at_line = no; then
11581 case " $LIBOBJS " in
11582 *" error.
$ac_objext "* ) ;;
11583 *) LIBOBJS="$LIBOBJS error.
$ac_objext"
11590 for ac_header in vfork.h
11592 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11593 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11594 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11595 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11596 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached
) $ECHO_C" >&6
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11603 # Is the header compilable?
11604 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11605 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 $ac_includes_default
11613 #include <$ac_header>
11615 rm -f conftest.$ac_objext
11616 if { (ac_try="$ac_compile"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_compile") 2>conftest.er1
11624 grep -v '^ *+' conftest.er1 >conftest.err
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest.$ac_objext; then
11632 ac_header_compiler=yes
11634 echo "$as_me: failed program was
:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_compiler=no
11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11642 echo "${ECHO_T}$ac_header_compiler" >&6; }
11644 # Is the header present?
11645 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11646 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11647 cat >conftest.$ac_ext <<_ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <$ac_header>
11655 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11663 grep -v '^ *+' conftest.er1 >conftest.err
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11667 (exit $ac_status); } >/dev/null && {
11668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11671 ac_header_preproc=yes
11673 echo "$as_me: failed program was
:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_preproc=no
11679 rm -f conftest.err conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683 # So? What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11687 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11690 ac_header_preproc=yes
11693 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11694 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11695 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11696 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11697 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11698 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11699 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11700 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11703 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11704 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11706 ## ------------------------------- ##
11707 ## Report this to www.asterisk.org ##
11708 ## ------------------------------- ##
11710 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11713 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11714 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11715 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11716 echo $ECHO_N "(cached
) $ECHO_C" >&6
11718 eval "$as_ac_Header=\
$ac_header_preproc"
11720 ac_res=`eval echo '${'$as_ac_Header'}'`
11721 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11722 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11736 for ac_func in fork vfork
11738 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11739 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11740 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11741 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11742 echo $ECHO_N "(cached
) $ECHO_C" >&6
11744 cat >conftest.$ac_ext <<_ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11752 #define $ac_func innocuous_$ac_func
11754 /* System header to define __stub macros and hopefully few prototypes,
11755 which can conflict with char $ac_func (); below.
11756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757 <limits.h> exists even on freestanding compilers. */
11760 # include <limits.h>
11762 # include <assert.h>
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11774 /* The GNU C library defines this for functions which it implements
11775 to always fail with ENOSYS. Some functions are actually named
11776 something starting with __ and the normal name is an alias. */
11777 #if defined __stub_$ac_func || defined __stub___$ac_func
11784 return $ac_func ();
11789 rm -f conftest.$ac_objext conftest$ac_exeext
11790 if { (ac_try="$ac_link"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_link") 2>conftest.er1
11798 grep -v '^ *+' conftest.er1 >conftest.err
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11802 (exit $ac_status); } && {
11803 test -z "$ac_c_werror_flag" ||
11804 test ! -s conftest.err
11805 } && test -s conftest$ac_exeext &&
11806 $as_test_x conftest$ac_exeext; then
11807 eval "$as_ac_var=yes"
11809 echo "$as_me: failed program was
:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 eval "$as_ac_var=no
"
11815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11816 conftest$ac_exeext conftest.$ac_ext
11818 ac_res=`eval echo '${'$as_ac_var'}'`
11819 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11820 echo "${ECHO_T}$ac_res" >&6; }
11821 if test `eval echo '${'$as_ac_var'}'` = yes; then
11822 cat >>confdefs.h <<_ACEOF
11823 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11829 if test "x
$ac_cv_func_fork" = xyes; then
11830 { echo "$as_me:$LINENO: checking
for working fork
" >&5
11831 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
11832 if test "${ac_cv_func_fork_works+set}" = set; then
11833 echo $ECHO_N "(cached
) $ECHO_C" >&6
11835 if test "$cross_compiling" = yes; then
11836 ac_cv_func_fork_works=cross
11838 cat >conftest.$ac_ext <<_ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 $ac_includes_default
11849 /* By Ruediger Kuhlmann. */
11850 return fork () < 0;
11856 rm -f conftest$ac_exeext
11857 if { (ac_try="$ac_link"
11858 case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_link") 2>&5
11865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11867 { (case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_try") 2>&5
11874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_func_fork_works=yes
11878 echo "$as_me: program exited with status
$ac_status" >&5
11879 echo "$as_me: failed program was
:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 ( exit $ac_status )
11883 ac_cv_func_fork_works=no
11885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
11891 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11894 ac_cv_func_fork_works=$ac_cv_func_fork
11896 if test "x
$ac_cv_func_fork_works" = xcross; then
11898 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11899 # Override, as these systems have only a dummy fork() stub
11900 ac_cv_func_fork_works=no
11903 ac_cv_func_fork_works=yes
11906 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
11907 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
11909 ac_cv_func_vfork_works=$ac_cv_func_vfork
11910 if test "x
$ac_cv_func_vfork" = xyes; then
11911 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
11912 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
11913 if test "${ac_cv_func_vfork_works+set}" = set; then
11914 echo $ECHO_N "(cached
) $ECHO_C" >&6
11916 if test "$cross_compiling" = yes; then
11917 ac_cv_func_vfork_works=cross
11919 cat >conftest.$ac_ext <<_ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 /* Thanks to Paul Eggert for this test. */
11926 $ac_includes_default
11927 #include <sys/wait.h>
11928 #ifdef HAVE_VFORK_H
11929 # include <vfork.h>
11931 /* On some sparc systems, changes by the child to local and incoming
11932 argument registers are propagated back to the parent. The compiler
11933 is told about this with #include <vfork.h>, but some compilers
11934 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11935 static variable whose address is put into a register that is
11936 clobbered by the vfork. */
11939 sparc_address_test (int arg)
11941 sparc_address_test (arg) int arg;
11944 static pid_t child;
11962 pid_t parent = getpid ();
11965 sparc_address_test (0);
11970 /* Here is another test for sparc vfork register problems. This
11971 test uses lots of local variables, at least as many local
11972 variables as main has allocated so far including compiler
11973 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11974 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11975 reuse the register of parent for one of the local variables,
11976 since it will think that parent can't possibly be used any more
11977 in this routine. Assigning to the local variable will thus
11978 munge parent in the parent process. */
11980 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11981 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11982 /* Convince the compiler that p..p7 are live; otherwise, it might
11983 use the same hardware register for all 8 local variables. */
11984 if (p != p1 || p != p2 || p != p3 || p != p4
11985 || p != p5 || p != p6 || p != p7)
11988 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11989 from child file descriptors. If the child closes a descriptor
11990 before it execs or exits, this munges the parent's descriptor
11991 as well. Test for this by closing stdout in the child. */
11992 _exit(close(fileno(stdout)) != 0);
11997 while (wait(&status) != child)
12000 /* Was there some problem with vforking? */
12003 /* Did the child fail? (This shouldn't happen.) */
12006 /* Did the vfork/compiler bug occur? */
12007 || parent != getpid()
12009 /* Did the file descriptor bug occur? */
12010 || fstat(fileno(stdout), &st) != 0
12015 rm -f conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>&5
12024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ac_cv_func_vfork_works=yes
12037 echo "$as_me: program exited with status
$ac_status" >&5
12038 echo "$as_me: failed program was
:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ( exit $ac_status )
12042 ac_cv_func_vfork_works=no
12044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12049 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
12050 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12053 if test "x
$ac_cv_func_fork_works" = xcross; then
12054 ac_cv_func_vfork_works=$ac_cv_func_vfork
12055 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
12056 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
12059 if test "x
$ac_cv_func_vfork_works" = xyes; then
12061 cat >>confdefs.h <<\_ACEOF
12062 #define HAVE_WORKING_VFORK 1
12067 cat >>confdefs.h <<\_ACEOF
12072 if test "x
$ac_cv_func_fork_works" = xyes; then
12074 cat >>confdefs.h <<\_ACEOF
12075 #define HAVE_WORKING_FORK 1
12080 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
12081 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
12082 if test "${ac_cv_sys_largefile_source+set}" = set; then
12083 echo $ECHO_N "(cached
) $ECHO_C" >&6
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 #include <sys/types.h> /* for off_t */
12097 int (*fp) (FILE *, off_t, int) = fseeko;
12098 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (ac_try="$ac_link"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_link") 2>conftest.er1
12112 grep -v '^ *+' conftest.er1 >conftest.err
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12116 (exit $ac_status); } && {
12117 test -z "$ac_c_werror_flag" ||
12118 test ! -s conftest.err
12119 } && test -s conftest$ac_exeext &&
12120 $as_test_x conftest$ac_exeext; then
12121 ac_cv_sys_largefile_source=no; break
12123 echo "$as_me: failed program was
:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12130 conftest$ac_exeext conftest.$ac_ext
12131 cat >conftest.$ac_ext <<_ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12137 #define _LARGEFILE_SOURCE 1
12138 #include <sys/types.h> /* for off_t */
12143 int (*fp) (FILE *, off_t, int) = fseeko;
12144 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (ac_try="$ac_link"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_link") 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest$ac_exeext &&
12166 $as_test_x conftest$ac_exeext; then
12167 ac_cv_sys_largefile_source=1; break
12169 echo "$as_me: failed program was
:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12176 conftest$ac_exeext conftest.$ac_ext
12177 ac_cv_sys_largefile_source=unknown
12181 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
12182 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12183 case $ac_cv_sys_largefile_source in #(
12186 cat >>confdefs.h <<_ACEOF
12187 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12193 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12194 # in glibc 2.1.3, but that breaks too many other things.
12195 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12196 if test $ac_cv_sys_largefile_source != unknown; then
12198 cat >>confdefs.h <<\_ACEOF
12199 #define HAVE_FSEEKO 1
12204 if test $ac_cv_c_compiler_gnu = yes; then
12205 { echo "$as_me:$LINENO: checking whether
$CC needs
-traditional" >&5
12206 echo $ECHO_N "checking whether
$CC needs
-traditional...
$ECHO_C" >&6; }
12207 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12208 echo $ECHO_N "(cached
) $ECHO_C" >&6
12210 ac_pattern="Autoconf.
*'x'"
12211 cat >conftest.$ac_ext <<_ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12220 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12221 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12222 ac_cv_prog_gcc_traditional=yes
12224 ac_cv_prog_gcc_traditional=no
12229 if test $ac_cv_prog_gcc_traditional = no; then
12230 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 #include <termio.h>
12239 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12240 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12241 ac_cv_prog_gcc_traditional=yes
12247 { echo "$as_me:$LINENO: result
: $ac_cv_prog_gcc_traditional" >&5
12248 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12249 if test $ac_cv_prog_gcc_traditional = yes; then
12250 CC="$CC -traditional"
12254 # XXX: these are commented out until we determine whether it matters if our malloc()
12255 # acts exactly like glibc's or not
12258 { echo "$as_me:$LINENO: checking
for working memcmp
" >&5
12259 echo $ECHO_N "checking
for working memcmp...
$ECHO_C" >&6; }
12260 if test "${ac_cv_func_memcmp_working+set}" = set; then
12261 echo $ECHO_N "(cached
) $ECHO_C" >&6
12263 if test "$cross_compiling" = yes; then
12264 ac_cv_func_memcmp_working=no
12266 cat >conftest.$ac_ext <<_ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 $ac_includes_default
12277 /* Some versions of memcmp are not 8-bit clean. */
12278 char c0 = '\100', c1 = '\200', c2 = '\201';
12279 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12282 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12283 or more and with at least one buffer not starting on a 4-byte boundary.
12284 William Lewis provided this test program. */
12289 for (i = 0; i < 4; i++)
12293 strcpy (a, "--------01111111");
12294 strcpy (b, "--------10000000");
12295 if (memcmp (a, b, 16) >= 0)
12305 rm -f conftest$ac_exeext
12306 if { (ac_try="$ac_link"
12307 case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_link") 2>&5
12314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12316 { (case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_try") 2>&5
12323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_cv_func_memcmp_working=yes
12327 echo "$as_me: program exited with status
$ac_status" >&5
12328 echo "$as_me: failed program was
:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12331 ( exit $ac_status )
12332 ac_cv_func_memcmp_working=no
12334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12339 { echo "$as_me:$LINENO: result
: $ac_cv_func_memcmp_working" >&5
12340 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12341 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12342 *" memcmp.
$ac_objext "* ) ;;
12343 *) LIBOBJS="$LIBOBJS memcmp.
$ac_objext"
12350 for ac_header in stdlib.h unistd.h
12352 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12353 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12354 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12355 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12356 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12357 echo $ECHO_N "(cached
) $ECHO_C" >&6
12359 ac_res=`eval echo '${'$as_ac_Header'}'`
12360 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12361 echo "${ECHO_T}$ac_res" >&6; }
12363 # Is the header compilable?
12364 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12365 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12366 cat >conftest.$ac_ext <<_ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 $ac_includes_default
12373 #include <$ac_header>
12375 rm -f conftest.$ac_objext
12376 if { (ac_try="$ac_compile"
12377 case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_compile") 2>conftest.er1
12384 grep -v '^ *+' conftest.er1 >conftest.err
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12388 (exit $ac_status); } && {
12389 test -z "$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12391 } && test -s conftest.$ac_objext; then
12392 ac_header_compiler=yes
12394 echo "$as_me: failed program was
:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 ac_header_compiler=no
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12402 echo "${ECHO_T}$ac_header_compiler" >&6; }
12404 # Is the header present?
12405 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12406 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include <$ac_header>
12415 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12416 case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12427 (exit $ac_status); } >/dev/null && {
12428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12429 test ! -s conftest.err
12431 ac_header_preproc=yes
12433 echo "$as_me: failed program was
:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_header_preproc=no
12439 rm -f conftest.err conftest.$ac_ext
12440 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12441 echo "${ECHO_T}$ac_header_preproc" >&6; }
12443 # So? What about this header?
12444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12447 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12448 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12450 ac_header_preproc=yes
12453 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12454 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12455 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12456 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12457 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12458 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12459 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12460 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12461 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12463 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12464 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12466 ## ------------------------------- ##
12467 ## Report this to www.asterisk.org ##
12468 ## ------------------------------- ##
12470 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12473 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12474 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12475 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12476 echo $ECHO_N "(cached
) $ECHO_C" >&6
12478 eval "$as_ac_Header=\
$ac_header_preproc"
12480 ac_res=`eval echo '${'$as_ac_Header'}'`
12481 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12482 echo "${ECHO_T}$ac_res" >&6; }
12485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12486 cat >>confdefs.h <<_ACEOF
12487 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12495 for ac_func in getpagesize
12497 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12498 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12499 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12500 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12501 echo $ECHO_N "(cached
) $ECHO_C" >&6
12503 cat >conftest.$ac_ext <<_ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12511 #define $ac_func innocuous_$ac_func
12513 /* System header to define __stub macros and hopefully few prototypes,
12514 which can conflict with char $ac_func (); below.
12515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12516 <limits.h> exists even on freestanding compilers. */
12519 # include <limits.h>
12521 # include <assert.h>
12526 /* Override any GCC internal prototype to avoid an error.
12527 Use char because int might match the return type of a GCC
12528 builtin and then its argument prototype would still apply. */
12533 /* The GNU C library defines this for functions which it implements
12534 to always fail with ENOSYS. Some functions are actually named
12535 something starting with __ and the normal name is an alias. */
12536 #if defined __stub_$ac_func || defined __stub___$ac_func
12543 return $ac_func ();
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (ac_try="$ac_link"
12550 case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_link") 2>conftest.er1
12557 grep -v '^ *+' conftest.er1 >conftest.err
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest$ac_exeext &&
12565 $as_test_x conftest$ac_exeext; then
12566 eval "$as_ac_var=yes"
12568 echo "$as_me: failed program was
:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 eval "$as_ac_var=no
"
12574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12575 conftest$ac_exeext conftest.$ac_ext
12577 ac_res=`eval echo '${'$as_ac_var'}'`
12578 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12579 echo "${ECHO_T}$ac_res" >&6; }
12580 if test `eval echo '${'$as_ac_var'}'` = yes; then
12581 cat >>confdefs.h <<_ACEOF
12582 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12588 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
12589 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
12590 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12591 echo $ECHO_N "(cached
) $ECHO_C" >&6
12593 if test "$cross_compiling" = yes; then
12594 ac_cv_func_mmap_fixed_mapped=no
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 $ac_includes_default
12603 /* malloc might have been renamed as rpl_malloc. */
12606 /* Thanks to Mike Haertel and Jim Avera for this test.
12607 Here is a matrix of mmap possibilities:
12608 mmap private not fixed
12609 mmap private fixed at somewhere currently unmapped
12610 mmap private fixed at somewhere already mapped
12611 mmap shared not fixed
12612 mmap shared fixed at somewhere currently unmapped
12613 mmap shared fixed at somewhere already mapped
12614 For private mappings, we should verify that changes cannot be read()
12615 back from the file, nor mmap's back from the file at a different
12616 address. (There have been systems where private was not correctly
12617 implemented like the infamous i386 svr4.0, and systems where the
12618 VM page cache was not coherent with the file system buffer cache
12619 like early versions of FreeBSD and possibly contemporary NetBSD.)
12620 For shared mappings, we should conversely verify that changes get
12621 propagated back to all the places they're supposed to be.
12623 Grep wants private fixed already mapped.
12624 The main things grep needs to know about mmap are:
12625 * does it exist and is it safe to write into the mmap'd area
12626 * how to use it (BSD variants) */
12629 #include <sys/mman.h>
12631 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12635 /* This mess was copied from the GNU getpagesize.h. */
12636 #ifndef HAVE_GETPAGESIZE
12637 /* Assume that all systems that can run configure have sys/param.h. */
12638 # ifndef HAVE_SYS_PARAM_H
12639 # define HAVE_SYS_PARAM_H 1
12642 # ifdef _SC_PAGESIZE
12643 # define getpagesize() sysconf(_SC_PAGESIZE)
12644 # else /* no _SC_PAGESIZE */
12645 # ifdef HAVE_SYS_PARAM_H
12646 # include <sys/param.h>
12647 # ifdef EXEC_PAGESIZE
12648 # define getpagesize() EXEC_PAGESIZE
12649 # else /* no EXEC_PAGESIZE */
12651 # define getpagesize() NBPG * CLSIZE
12654 # endif /* no CLSIZE */
12655 # else /* no NBPG */
12657 # define getpagesize() NBPC
12658 # else /* no NBPC */
12660 # define getpagesize() PAGESIZE
12661 # endif /* PAGESIZE */
12662 # endif /* no NBPC */
12663 # endif /* no NBPG */
12664 # endif /* no EXEC_PAGESIZE */
12665 # else /* no HAVE_SYS_PARAM_H */
12666 # define getpagesize() 8192 /* punt totally */
12667 # endif /* no HAVE_SYS_PARAM_H */
12668 # endif /* no _SC_PAGESIZE */
12670 #endif /* no HAVE_GETPAGESIZE */
12675 char *data, *data2, *data3;
12679 pagesize = getpagesize ();
12681 /* First, make a file with some known garbage in it. */
12682 data = (char *) malloc (pagesize);
12685 for (i = 0; i < pagesize; ++i)
12686 *(data + i) = rand ();
12688 fd = creat ("conftest.mmap
", 0600);
12691 if (write (fd, data, pagesize) != pagesize)
12695 /* Next, try to mmap the file at a fixed address which already has
12696 something else allocated at it. If we can, also make sure that
12697 we see the same garbage. */
12698 fd = open ("conftest.mmap
", O_RDWR);
12701 data2 = (char *) malloc (2 * pagesize);
12704 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12705 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12706 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12708 for (i = 0; i < pagesize; ++i)
12709 if (*(data + i) != *(data2 + i))
12712 /* Finally, make sure that changes to the mapped area do not
12713 percolate back to the file as seen by read(). (This is a bug on
12714 some variants of i386 svr4.0.) */
12715 for (i = 0; i < pagesize; ++i)
12716 *(data2 + i) = *(data2 + i) + 1;
12717 data3 = (char *) malloc (pagesize);
12720 if (read (fd, data3, pagesize) != pagesize)
12722 for (i = 0; i < pagesize; ++i)
12723 if (*(data + i) != *(data3 + i))
12729 rm -f conftest$ac_exeext
12730 if { (ac_try="$ac_link"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_link") 2>&5
12738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_func_mmap_fixed_mapped=yes
12751 echo "$as_me: program exited with status
$ac_status" >&5
12752 echo "$as_me: failed program was
:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 ( exit $ac_status )
12756 ac_cv_func_mmap_fixed_mapped=no
12758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12763 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
12764 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12765 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12767 cat >>confdefs.h <<\_ACEOF
12768 #define HAVE_MMAP 1
12772 rm -f conftest.mmap
12776 for ac_header in sys/select.h sys/socket.h
12778 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12779 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12780 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12781 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12782 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12783 echo $ECHO_N "(cached
) $ECHO_C" >&6
12785 ac_res=`eval echo '${'$as_ac_Header'}'`
12786 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12787 echo "${ECHO_T}$ac_res" >&6; }
12789 # Is the header compilable?
12790 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12791 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12792 cat >conftest.$ac_ext <<_ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 $ac_includes_default
12799 #include <$ac_header>
12801 rm -f conftest.$ac_objext
12802 if { (ac_try="$ac_compile"
12803 case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_compile") 2>conftest.er1
12810 grep -v '^ *+' conftest.er1 >conftest.err
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
12818 ac_header_compiler=yes
12820 echo "$as_me: failed program was
:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_header_compiler=no
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12828 echo "${ECHO_T}$ac_header_compiler" >&6; }
12830 # Is the header present?
12831 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12832 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12833 cat >conftest.$ac_ext <<_ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 #include <$ac_header>
12841 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12842 case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12849 grep -v '^ *+' conftest.er1 >conftest.err
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12853 (exit $ac_status); } >/dev/null && {
12854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12855 test ! -s conftest.err
12857 ac_header_preproc=yes
12859 echo "$as_me: failed program was
:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_header_preproc=no
12865 rm -f conftest.err conftest.$ac_ext
12866 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12867 echo "${ECHO_T}$ac_header_preproc" >&6; }
12869 # So? What about this header?
12870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12872 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12873 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12874 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12876 ac_header_preproc=yes
12879 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12880 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12881 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12882 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12883 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12884 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12885 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12886 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12887 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12889 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12890 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12892 ## ------------------------------- ##
12893 ## Report this to www.asterisk.org ##
12894 ## ------------------------------- ##
12896 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12899 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12900 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12901 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12902 echo $ECHO_N "(cached
) $ECHO_C" >&6
12904 eval "$as_ac_Header=\
$ac_header_preproc"
12906 ac_res=`eval echo '${'$as_ac_Header'}'`
12907 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12908 echo "${ECHO_T}$ac_res" >&6; }
12911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12912 cat >>confdefs.h <<_ACEOF
12913 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12920 { echo "$as_me:$LINENO: checking types of arguments
for select" >&5
12921 echo $ECHO_N "checking types of arguments
for select...
$ECHO_C" >&6; }
12922 if test "${ac_cv_func_select_args+set}" = set; then
12923 echo $ECHO_N "(cached
) $ECHO_C" >&6
12925 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12926 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12927 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12928 cat >conftest.$ac_ext <<_ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12934 $ac_includes_default
12935 #ifdef HAVE_SYS_SELECT_H
12936 # include <sys/select.h>
12938 #ifdef HAVE_SYS_SOCKET_H
12939 # include <sys/socket.h>
12945 extern int select ($ac_arg1,
12946 $ac_arg234, $ac_arg234, $ac_arg234,
12952 rm -f conftest.$ac_objext
12953 if { (ac_try="$ac_compile"
12954 case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_compile") 2>conftest.er1
12961 grep -v '^ *+' conftest.er1 >conftest.err
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12965 (exit $ac_status); } && {
12966 test -z "$ac_c_werror_flag" ||
12967 test ! -s conftest.err
12968 } && test -s conftest.$ac_objext; then
12969 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12971 echo "$as_me: failed program was
:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981 # Provide a safe default value.
12982 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12985 { echo "$as_me:$LINENO: result
: $ac_cv_func_select_args" >&5
12986 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12987 ac_save_IFS=$IFS; IFS=','
12988 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12992 cat >>confdefs.h <<_ACEOF
12993 #define SELECT_TYPE_ARG1 $1
12997 cat >>confdefs.h <<_ACEOF
12998 #define SELECT_TYPE_ARG234 ($2)
13002 cat >>confdefs.h <<_ACEOF
13003 #define SELECT_TYPE_ARG5 ($3)
13008 { echo "$as_me:$LINENO: checking
for function prototypes
" >&5
13009 echo $ECHO_N "checking
for function prototypes...
$ECHO_C" >&6; }
13010 if test "$ac_cv_prog_cc_c89" != no; then
13011 { echo "$as_me:$LINENO: result
: yes" >&5
13012 echo "${ECHO_T}yes" >&6; }
13014 cat >>confdefs.h <<\_ACEOF
13015 #define PROTOTYPES 1
13019 cat >>confdefs.h <<\_ACEOF
13020 #define __PROTOTYPES 1
13024 { echo "$as_me:$LINENO: result
: no
" >&5
13025 echo "${ECHO_T}no
" >&6; }
13028 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed
" >&5
13029 echo $ECHO_N "checking whether setvbuf arguments are reversed...
$ECHO_C" >&6; }
13030 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13031 echo $ECHO_N "(cached
) $ECHO_C" >&6
13033 ac_cv_func_setvbuf_reversed=no
13034 cat >conftest.$ac_ext <<_ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13042 int (setvbuf) (FILE *, int, char *, size_t);
13047 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (ac_try="$ac_link"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_link") 2>conftest.er1
13061 grep -v '^ *+' conftest.er1 >conftest.err
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest$ac_exeext &&
13069 $as_test_x conftest$ac_exeext; then
13070 cat >conftest.$ac_ext <<_ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13078 int (setvbuf) (FILE *, int, char *, size_t);
13083 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (ac_try="$ac_link"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_link") 2>conftest.er1
13097 grep -v '^ *+' conftest.er1 >conftest.err
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13101 (exit $ac_status); } && {
13102 test -z "$ac_c_werror_flag" ||
13103 test ! -s conftest.err
13104 } && test -s conftest$ac_exeext &&
13105 $as_test_x conftest$ac_exeext; then
13106 # It compiles and links either way, so it must not be declared
13107 # with a prototype and most likely this is a K&R C compiler.
13109 if test "$cross_compiling" = yes; then
13110 : # Assume setvbuf is not reversed when cross-compiling.
13112 cat >conftest.$ac_ext <<_ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 $ac_includes_default
13122 /* This call has the arguments reversed.
13123 A reversed system may check and see that the address of buf
13124 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13126 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13129 return 0; /* Non-reversed systems SEGV here. */
13134 rm -f conftest$ac_exeext
13135 if { (ac_try="$ac_link"
13136 case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_link") 2>&5
13143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13145 { (case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_try") 2>&5
13152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_func_setvbuf_reversed=yes
13156 echo "$as_me: program exited with status
$ac_status" >&5
13157 echo "$as_me: failed program was
:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13165 ac_cv_func_setvbuf_reversed=yes
13167 echo "$as_me: failed program was
:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13174 conftest$ac_exeext conftest.$ac_ext
13176 echo "$as_me: failed program was
:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13183 conftest$ac_exeext conftest.$ac_ext
13185 { echo "$as_me:$LINENO: result
: $ac_cv_func_setvbuf_reversed" >&5
13186 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13187 if test $ac_cv_func_setvbuf_reversed = yes; then
13189 cat >>confdefs.h <<\_ACEOF
13190 #define SETVBUF_REVERSED 1
13195 { echo "$as_me:$LINENO: checking
return type of signal handlers
" >&5
13196 echo $ECHO_N "checking
return type of signal handlers...
$ECHO_C" >&6; }
13197 if test "${ac_cv_type_signal+set}" = set; then
13198 echo $ECHO_N "(cached
) $ECHO_C" >&6
13200 cat >conftest.$ac_ext <<_ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13206 #include <sys/types.h>
13207 #include <signal.h>
13212 return *(signal (0, 0)) (0) == 1;
13217 rm -f conftest.$ac_objext
13218 if { (ac_try="$ac_compile"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_compile") 2>conftest.er1
13226 grep -v '^ *+' conftest.er1 >conftest.err
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13230 (exit $ac_status); } && {
13231 test -z "$ac_c_werror_flag" ||
13232 test ! -s conftest.err
13233 } && test -s conftest.$ac_objext; then
13234 ac_cv_type_signal=int
13236 echo "$as_me: failed program was
:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13239 ac_cv_type_signal=void
13242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244 { echo "$as_me:$LINENO: result
: $ac_cv_type_signal" >&5
13245 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13247 cat >>confdefs.h <<_ACEOF
13248 #define RETSIGTYPE $ac_cv_type_signal
13252 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash
" >&5
13253 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash...
$ECHO_C" >&6; }
13254 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13255 echo $ECHO_N "(cached
) $ECHO_C" >&6
13257 rm -f conftest.sym conftest.file
13258 echo >conftest.file
13259 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13260 if test "$cross_compiling" = yes; then
13261 ac_cv_func_lstat_dereferences_slashed_symlink=no
13263 cat >conftest.$ac_ext <<_ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 $ac_includes_default
13274 /* Linux will dereference the symlink and fail.
13275 That is better in the sense that it means we will not
13276 have to compile and use the lstat wrapper. */
13277 return lstat ("conftest.sym
/", &sbuf) == 0;
13282 rm -f conftest$ac_exeext
13283 if { (ac_try="$ac_link"
13284 case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_link") 2>&5
13291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13304 echo "$as_me: program exited with status
$ac_status" >&5
13305 echo "$as_me: failed program was
:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 ( exit $ac_status )
13309 ac_cv_func_lstat_dereferences_slashed_symlink=no
13311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13316 # If the `ln -s' command failed, then we probably don't even
13317 # have an lstat function.
13318 ac_cv_func_lstat_dereferences_slashed_symlink=no
13320 rm -f conftest.sym conftest.file
13323 { echo "$as_me:$LINENO: result
: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13324 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13326 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13328 cat >>confdefs.h <<_ACEOF
13329 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13333 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13334 case " $LIBOBJS " in
13335 *" lstat.
$ac_objext "* ) ;;
13336 *) LIBOBJS="$LIBOBJS lstat.
$ac_objext"
13342 { echo "$as_me:$LINENO: checking whether stat accepts an empty string
" >&5
13343 echo $ECHO_N "checking whether stat accepts an empty string...
$ECHO_C" >&6; }
13344 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13345 echo $ECHO_N "(cached
) $ECHO_C" >&6
13347 if test "$cross_compiling" = yes; then
13348 ac_cv_func_stat_empty_string_bug=yes
13350 cat >conftest.$ac_ext <<_ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 $ac_includes_default
13361 return stat ("", &sbuf) == 0;
13366 rm -f conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_link") 2>&5
13375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13377 { (case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_try") 2>&5
13384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_func_stat_empty_string_bug=no
13388 echo "$as_me: program exited with status
$ac_status" >&5
13389 echo "$as_me: failed program was
:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ( exit $ac_status )
13393 ac_cv_func_stat_empty_string_bug=yes
13395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13400 { echo "$as_me:$LINENO: result
: $ac_cv_func_stat_empty_string_bug" >&5
13401 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13402 if test $ac_cv_func_stat_empty_string_bug = yes; then
13403 case " $LIBOBJS " in
13404 *" stat.
$ac_objext "* ) ;;
13405 *) LIBOBJS="$LIBOBJS stat.
$ac_objext"
13410 cat >>confdefs.h <<_ACEOF
13411 #define HAVE_STAT_EMPTY_STRING_BUG 1
13416 { echo "$as_me:$LINENO: checking
for working strcoll
" >&5
13417 echo $ECHO_N "checking
for working strcoll...
$ECHO_C" >&6; }
13418 if test "${ac_cv_func_strcoll_works+set}" = set; then
13419 echo $ECHO_N "(cached
) $ECHO_C" >&6
13421 if test "$cross_compiling" = yes; then
13422 ac_cv_func_strcoll_works=no
13424 cat >conftest.$ac_ext <<_ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 $ac_includes_default
13434 return (strcoll ("abc
", "def
") >= 0 ||
13435 strcoll ("ABC
", "DEF
") >= 0 ||
13436 strcoll ("123", "456") >= 0)
13441 rm -f conftest$ac_exeext
13442 if { (ac_try="$ac_link"
13443 case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_link") 2>&5
13450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13460 (exit $ac_status); }; }; then
13461 ac_cv_func_strcoll_works=yes
13463 echo "$as_me: program exited with status
$ac_status" >&5
13464 echo "$as_me: failed program was
:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 ( exit $ac_status )
13468 ac_cv_func_strcoll_works=no
13470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13475 { echo "$as_me:$LINENO: result
: $ac_cv_func_strcoll_works" >&5
13476 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13477 if test $ac_cv_func_strcoll_works = yes; then
13479 cat >>confdefs.h <<\_ACEOF
13480 #define HAVE_STRCOLL 1
13486 for ac_func in strftime
13488 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
13489 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
13490 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
13491 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
13492 echo $ECHO_N "(cached
) $ECHO_C" >&6
13494 cat >conftest.$ac_ext <<_ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13502 #define $ac_func innocuous_$ac_func
13504 /* System header to define __stub macros and hopefully few prototypes,
13505 which can conflict with char $ac_func (); below.
13506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13507 <limits.h> exists even on freestanding compilers. */
13510 # include <limits.h>
13512 # include <assert.h>
13517 /* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
13524 /* The GNU C library defines this for functions which it implements
13525 to always fail with ENOSYS. Some functions are actually named
13526 something starting with __ and the normal name is an alias. */
13527 #if defined __stub_$ac_func || defined __stub___$ac_func
13534 return $ac_func ();
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (ac_try="$ac_link"
13541 case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_link") 2>conftest.er1
13548 grep -v '^ *+' conftest.er1 >conftest.err
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13552 (exit $ac_status); } && {
13553 test -z "$ac_c_werror_flag" ||
13554 test ! -s conftest.err
13555 } && test -s conftest$ac_exeext &&
13556 $as_test_x conftest$ac_exeext; then
13557 eval "$as_ac_var=yes"
13559 echo "$as_me: failed program was
:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 eval "$as_ac_var=no
"
13565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13566 conftest$ac_exeext conftest.$ac_ext
13568 ac_res=`eval echo '${'$as_ac_var'}'`
13569 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13570 echo "${ECHO_T}$ac_res" >&6; }
13571 if test `eval echo '${'$as_ac_var'}'` = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
13577 # strftime is in -lintl on SCO UNIX.
13578 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
13579 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
13580 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13581 echo $ECHO_N "(cached
) $ECHO_C" >&6
13583 ac_check_lib_save_LIBS=$LIBS
13584 LIBS="-lintl $LIBS"
13585 cat >conftest.$ac_ext <<_ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13592 /* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13602 return strftime ();
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (ac_try="$ac_link"
13609 case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_link") 2>conftest.er1
13616 grep -v '^ *+' conftest.er1 >conftest.err
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13620 (exit $ac_status); } && {
13621 test -z "$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest$ac_exeext &&
13624 $as_test_x conftest$ac_exeext; then
13625 ac_cv_lib_intl_strftime=yes
13627 echo "$as_me: failed program was
:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_cv_lib_intl_strftime=no
13633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13637 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
13638 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13639 if test $ac_cv_lib_intl_strftime = yes; then
13640 cat >>confdefs.h <<\_ACEOF
13641 #define HAVE_STRFTIME 1
13644 LIBS="-lintl $LIBS"
13650 { echo "$as_me:$LINENO: checking
for working strnlen
" >&5
13651 echo $ECHO_N "checking
for working strnlen...
$ECHO_C" >&6; }
13652 if test "${ac_cv_func_strnlen_working+set}" = set; then
13653 echo $ECHO_N "(cached
) $ECHO_C" >&6
13655 if test "$cross_compiling" = yes; then
13656 ac_cv_func_strnlen_working=no
13658 cat >conftest.$ac_ext <<_ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 $ac_includes_default
13670 #define S_LEN (sizeof S - 1)
13672 /* At least one implementation is buggy: that of AIX 4.3 would
13673 give strnlen (S, 1) == 3. */
13676 for (i = 0; i < S_LEN + 1; ++i)
13678 int expected = i <= S_LEN ? i : S_LEN;
13679 if (strnlen (S, i) != expected)
13688 rm -f conftest$ac_exeext
13689 if { (ac_try="$ac_link"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_link") 2>&5
13697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_try") 2>&5
13706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13707 (exit $ac_status); }; }; then
13708 ac_cv_func_strnlen_working=yes
13710 echo "$as_me: program exited with status
$ac_status" >&5
13711 echo "$as_me: failed program was
:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ( exit $ac_status )
13715 ac_cv_func_strnlen_working=no
13717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13722 { echo "$as_me:$LINENO: result
: $ac_cv_func_strnlen_working" >&5
13723 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13724 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13725 *" strnlen.
$ac_objext "* ) ;;
13726 *) LIBOBJS="$LIBOBJS strnlen.
$ac_objext"
13731 { echo "$as_me:$LINENO: checking
for working strtod
" >&5
13732 echo $ECHO_N "checking
for working strtod...
$ECHO_C" >&6; }
13733 if test "${ac_cv_func_strtod+set}" = set; then
13734 echo $ECHO_N "(cached
) $ECHO_C" >&6
13736 if test "$cross_compiling" = yes; then
13737 ac_cv_func_strtod=no
13739 cat >conftest.$ac_ext <<_ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13746 $ac_includes_default
13754 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13755 char *string = " +69";
13758 value = strtod (string, &term);
13759 if (value != 69 || term != (string + 4))
13764 /* Under Solaris 2.4, strtod returns the wrong value for the
13765 terminating character under some conditions. */
13766 char *string = "NaN
";
13768 strtod (string, &term);
13769 if (term != string && *(term - 1) == 0)
13776 rm -f conftest$ac_exeext
13777 if { (ac_try="$ac_link"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_link") 2>&5
13785 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13787 { (case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_try") 2>&5
13794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_cv_func_strtod=yes
13798 echo "$as_me: program exited with status
$ac_status" >&5
13799 echo "$as_me: failed program was
:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ( exit $ac_status )
13803 ac_cv_func_strtod=no
13805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13810 { echo "$as_me:$LINENO: result
: $ac_cv_func_strtod" >&5
13811 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13812 if test $ac_cv_func_strtod = no; then
13813 case " $LIBOBJS " in
13814 *" strtod.
$ac_objext "* ) ;;
13815 *) LIBOBJS="$LIBOBJS strtod.
$ac_objext"
13819 { echo "$as_me:$LINENO: checking
for pow
" >&5
13820 echo $ECHO_N "checking
for pow...
$ECHO_C" >&6; }
13821 if test "${ac_cv_func_pow+set}" = set; then
13822 echo $ECHO_N "(cached
) $ECHO_C" >&6
13824 cat >conftest.$ac_ext <<_ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13832 #define pow innocuous_pow
13834 /* System header to define __stub macros and hopefully few prototypes,
13835 which can conflict with char pow (); below.
13836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13837 <limits.h> exists even on freestanding compilers. */
13840 # include <limits.h>
13842 # include <assert.h>
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13854 /* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857 #if defined __stub_pow || defined __stub___pow
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13875 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_link") 2>conftest.er1
13878 grep -v '^ *+' conftest.er1 >conftest.err
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13882 (exit $ac_status); } && {
13883 test -z "$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13885 } && test -s conftest$ac_exeext &&
13886 $as_test_x conftest$ac_exeext; then
13889 echo "$as_me: failed program was
:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13896 conftest$ac_exeext conftest.$ac_ext
13898 { echo "$as_me:$LINENO: result
: $ac_cv_func_pow" >&5
13899 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13901 if test $ac_cv_func_pow = no; then
13902 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
13903 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
13904 if test "${ac_cv_lib_m_pow+set}" = set; then
13905 echo $ECHO_N "(cached
) $ECHO_C" >&6
13907 ac_check_lib_save_LIBS=$LIBS
13909 cat >conftest.$ac_ext <<_ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13916 /* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13931 rm -f conftest.$ac_objext conftest$ac_exeext
13932 if { (ac_try="$ac_link"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_link") 2>conftest.er1
13940 grep -v '^ *+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13944 (exit $ac_status); } && {
13945 test -z "$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 } && test -s conftest$ac_exeext &&
13948 $as_test_x conftest$ac_exeext; then
13949 ac_cv_lib_m_pow=yes
13951 echo "$as_me: failed program was
:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13958 conftest$ac_exeext conftest.$ac_ext
13959 LIBS=$ac_check_lib_save_LIBS
13961 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
13962 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13963 if test $ac_cv_lib_m_pow = yes; then
13966 { echo "$as_me:$LINENO: WARNING
: cannot
find library containing definition of pow
" >&5
13967 echo "$as_me: WARNING
: cannot
find library containing definition of pow
" >&2;}
13978 for ac_header in $ac_header_list
13980 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13981 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13982 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13983 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13984 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13985 echo $ECHO_N "(cached
) $ECHO_C" >&6
13987 ac_res=`eval echo '${'$as_ac_Header'}'`
13988 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13989 echo "${ECHO_T}$ac_res" >&6; }
13991 # Is the header compilable?
13992 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13993 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13994 cat >conftest.$ac_ext <<_ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 $ac_includes_default
14001 #include <$ac_header>
14003 rm -f conftest.$ac_objext
14004 if { (ac_try="$ac_compile"
14005 case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_compile") 2>conftest.er1
14012 grep -v '^ *+' conftest.er1 >conftest.err
14014 cat conftest.err >&5
14015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14016 (exit $ac_status); } && {
14017 test -z "$ac_c_werror_flag" ||
14018 test ! -s conftest.err
14019 } && test -s conftest.$ac_objext; then
14020 ac_header_compiler=yes
14022 echo "$as_me: failed program was
:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14025 ac_header_compiler=no
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14030 echo "${ECHO_T}$ac_header_compiler" >&6; }
14032 # Is the header present?
14033 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14034 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14035 cat >conftest.$ac_ext <<_ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041 #include <$ac_header>
14043 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14055 (exit $ac_status); } >/dev/null && {
14056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14057 test ! -s conftest.err
14059 ac_header_preproc=yes
14061 echo "$as_me: failed program was
:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_header_preproc=no
14067 rm -f conftest.err conftest.$ac_ext
14068 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14069 echo "${ECHO_T}$ac_header_preproc" >&6; }
14071 # So? What about this header?
14072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14074 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14075 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14076 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14078 ac_header_preproc=yes
14081 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14082 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14083 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14084 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14085 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14086 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14087 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14088 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14089 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14091 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14092 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14094 ## ------------------------------- ##
14095 ## Report this to www.asterisk.org ##
14096 ## ------------------------------- ##
14098 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
14101 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14102 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14104 echo $ECHO_N "(cached
) $ECHO_C" >&6
14106 eval "$as_ac_Header=\
$ac_header_preproc"
14108 ac_res=`eval echo '${'$as_ac_Header'}'`
14109 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14110 echo "${ECHO_T}$ac_res" >&6; }
14113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14114 cat >>confdefs.h <<_ACEOF
14115 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14130 { echo "$as_me:$LINENO: checking whether utime accepts a null argument
" >&5
14131 echo $ECHO_N "checking whether utime accepts a null argument...
$ECHO_C" >&6; }
14132 if test "${ac_cv_func_utime_null+set}" = set; then
14133 echo $ECHO_N "(cached
) $ECHO_C" >&6
14135 rm -f conftest.data; >conftest.data
14136 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14137 if test "$cross_compiling" = yes; then
14138 ac_cv_func_utime_null=no
14140 cat >conftest.$ac_ext <<_ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 $ac_includes_default
14147 #ifdef HAVE_UTIME_H
14148 # include <utime.h>
14154 return ! (stat ("conftest.data
", &s) == 0
14155 && utime ("conftest.data
", 0) == 0
14156 && stat ("conftest.data
", &t) == 0
14157 && t.st_mtime >= s.st_mtime
14158 && t.st_mtime - s.st_mtime < 120);
14163 rm -f conftest$ac_exeext
14164 if { (ac_try="$ac_link"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_link") 2>&5
14172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14174 { (case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_try") 2>&5
14181 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_cv_func_utime_null=yes
14185 echo "$as_me: program exited with status
$ac_status" >&5
14186 echo "$as_me: failed program was
:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ( exit $ac_status )
14190 ac_cv_func_utime_null=no
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14197 { echo "$as_me:$LINENO: result
: $ac_cv_func_utime_null" >&5
14198 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14199 if test $ac_cv_func_utime_null = yes; then
14201 cat >>confdefs.h <<\_ACEOF
14202 #define HAVE_UTIME_NULL 1
14206 rm -f conftest.data
14209 for ac_func in vprintf
14211 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14212 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14213 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14214 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14215 echo $ECHO_N "(cached
) $ECHO_C" >&6
14217 cat >conftest.$ac_ext <<_ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14225 #define $ac_func innocuous_$ac_func
14227 /* System header to define __stub macros and hopefully few prototypes,
14228 which can conflict with char $ac_func (); below.
14229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14230 <limits.h> exists even on freestanding compilers. */
14233 # include <limits.h>
14235 # include <assert.h>
14240 /* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14247 /* The GNU C library defines this for functions which it implements
14248 to always fail with ENOSYS. Some functions are actually named
14249 something starting with __ and the normal name is an alias. */
14250 #if defined __stub_$ac_func || defined __stub___$ac_func
14257 return $ac_func ();
14262 rm -f conftest.$ac_objext conftest$ac_exeext
14263 if { (ac_try="$ac_link"
14264 case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_link") 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14275 (exit $ac_status); } && {
14276 test -z "$ac_c_werror_flag" ||
14277 test ! -s conftest.err
14278 } && test -s conftest$ac_exeext &&
14279 $as_test_x conftest$ac_exeext; then
14280 eval "$as_ac_var=yes"
14282 echo "$as_me: failed program was
:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 eval "$as_ac_var=no
"
14288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14289 conftest$ac_exeext conftest.$ac_ext
14291 ac_res=`eval echo '${'$as_ac_var'}'`
14292 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14293 echo "${ECHO_T}$ac_res" >&6; }
14294 if test `eval echo '${'$as_ac_var'}'` = yes; then
14295 cat >>confdefs.h <<_ACEOF
14296 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14299 { echo "$as_me:$LINENO: checking
for _doprnt
" >&5
14300 echo $ECHO_N "checking
for _doprnt...
$ECHO_C" >&6; }
14301 if test "${ac_cv_func__doprnt+set}" = set; then
14302 echo $ECHO_N "(cached
) $ECHO_C" >&6
14304 cat >conftest.$ac_ext <<_ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14310 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14312 #define _doprnt innocuous__doprnt
14314 /* System header to define __stub macros and hopefully few prototypes,
14315 which can conflict with char _doprnt (); below.
14316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14317 <limits.h> exists even on freestanding compilers. */
14320 # include <limits.h>
14322 # include <assert.h>
14327 /* Override any GCC internal prototype to avoid an error.
14328 Use char because int might match the return type of a GCC
14329 builtin and then its argument prototype would still apply. */
14334 /* The GNU C library defines this for functions which it implements
14335 to always fail with ENOSYS. Some functions are actually named
14336 something starting with __ and the normal name is an alias. */
14337 #if defined __stub__doprnt || defined __stub____doprnt
14349 rm -f conftest.$ac_objext conftest$ac_exeext
14350 if { (ac_try="$ac_link"
14351 case "(($ac_try" in
14352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14353 *) ac_try_echo=$ac_try;;
14355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14356 (eval "$ac_link") 2>conftest.er1
14358 grep -v '^ *+' conftest.er1 >conftest.err
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14362 (exit $ac_status); } && {
14363 test -z "$ac_c_werror_flag" ||
14364 test ! -s conftest.err
14365 } && test -s conftest$ac_exeext &&
14366 $as_test_x conftest$ac_exeext; then
14367 ac_cv_func__doprnt=yes
14369 echo "$as_me: failed program was
:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14372 ac_cv_func__doprnt=no
14375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14376 conftest$ac_exeext conftest.$ac_ext
14378 { echo "$as_me:$LINENO: result
: $ac_cv_func__doprnt" >&5
14379 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14380 if test $ac_cv_func__doprnt = yes; then
14382 cat >>confdefs.h <<\_ACEOF
14383 #define HAVE_DOPRNT 1
14441 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
14443 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14444 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14445 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14446 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14447 echo $ECHO_N "(cached
) $ECHO_C" >&6
14449 cat >conftest.$ac_ext <<_ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14457 #define $ac_func innocuous_$ac_func
14459 /* System header to define __stub macros and hopefully few prototypes,
14460 which can conflict with char $ac_func (); below.
14461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14462 <limits.h> exists even on freestanding compilers. */
14465 # include <limits.h>
14467 # include <assert.h>
14472 /* Override any GCC internal prototype to avoid an error.
14473 Use char because int might match the return type of a GCC
14474 builtin and then its argument prototype would still apply. */
14479 /* The GNU C library defines this for functions which it implements
14480 to always fail with ENOSYS. Some functions are actually named
14481 something starting with __ and the normal name is an alias. */
14482 #if defined __stub_$ac_func || defined __stub___$ac_func
14489 return $ac_func ();
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (ac_try="$ac_link"
14496 case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_link") 2>conftest.er1
14503 grep -v '^ *+' conftest.er1 >conftest.err
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14507 (exit $ac_status); } && {
14508 test -z "$ac_c_werror_flag" ||
14509 test ! -s conftest.err
14510 } && test -s conftest$ac_exeext &&
14511 $as_test_x conftest$ac_exeext; then
14512 eval "$as_ac_var=yes"
14514 echo "$as_me: failed program was
:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14517 eval "$as_ac_var=no
"
14520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14521 conftest$ac_exeext conftest.$ac_ext
14523 ac_res=`eval echo '${'$as_ac_var'}'`
14524 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14525 echo "${ECHO_T}$ac_res" >&6; }
14526 if test `eval echo '${'$as_ac_var'}'` = yes; then
14527 cat >>confdefs.h <<_ACEOF
14528 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14535 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14536 { echo "$as_me:$LINENO: checking
for library containing gethostbyname_r
" >&5
14537 echo $ECHO_N "checking
for library containing gethostbyname_r...
$ECHO_C" >&6; }
14538 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14539 echo $ECHO_N "(cached
) $ECHO_C" >&6
14541 ac_func_search_save_LIBS=$LIBS
14542 cat >conftest.$ac_ext <<_ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14549 /* Override any GCC internal prototype to avoid an error.
14550 Use char because int might match the return type of a GCC
14551 builtin and then its argument prototype would still apply. */
14555 char gethostbyname_r ();
14559 return gethostbyname_r ();
14564 for ac_lib in '' socket nsl; do
14565 if test -z "$ac_lib"; then
14566 ac_res="none required
"
14569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14571 rm -f conftest.$ac_objext conftest$ac_exeext
14572 if { (ac_try="$ac_link"
14573 case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_link") 2>conftest.er1
14580 grep -v '^ *+' conftest.er1 >conftest.err
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14584 (exit $ac_status); } && {
14585 test -z "$ac_c_werror_flag" ||
14586 test ! -s conftest.err
14587 } && test -s conftest$ac_exeext &&
14588 $as_test_x conftest$ac_exeext; then
14589 ac_cv_search_gethostbyname_r=$ac_res
14591 echo "$as_me: failed program was
:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14599 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14603 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14606 ac_cv_search_gethostbyname_r=no
14608 rm conftest.$ac_ext
14609 LIBS=$ac_func_search_save_LIBS
14611 { echo "$as_me:$LINENO: result
: $ac_cv_search_gethostbyname_r" >&5
14612 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14613 ac_res=$ac_cv_search_gethostbyname_r
14614 if test "$ac_res" != no; then
14615 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14620 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
6 arguments
" >&5
14621 echo $ECHO_N "checking
for gethostbyname_r with
6 arguments...
$ECHO_C" >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 #include <stdlib.h>
14633 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (ac_try="$ac_link"
14640 case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_link") 2>conftest.er1
14647 grep -v '^ *+' conftest.er1 >conftest.err
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14651 (exit $ac_status); } && {
14652 test -z "$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14654 } && test -s conftest$ac_exeext &&
14655 $as_test_x conftest$ac_exeext; then
14656 { echo "$as_me:$LINENO: result
: yes" >&5
14657 echo "${ECHO_T}yes" >&6; }
14659 cat >>confdefs.h <<\_ACEOF
14660 #define HAVE_GETHOSTBYNAME_R_6 1
14664 echo "$as_me: failed program was
:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 { echo "$as_me:$LINENO: result
: no
" >&5
14668 echo "${ECHO_T}no
" >&6; }
14672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14673 conftest$ac_exeext conftest.$ac_ext
14675 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
5 arguments
" >&5
14676 echo $ECHO_N "checking
for gethostbyname_r with
5 arguments...
$ECHO_C" >&6; }
14677 cat >conftest.$ac_ext <<_ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 #include <stdlib.h>
14688 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (ac_try="$ac_link"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_link") 2>conftest.er1
14702 grep -v '^ *+' conftest.er1 >conftest.err
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest$ac_exeext &&
14710 $as_test_x conftest$ac_exeext; then
14711 { echo "$as_me:$LINENO: result
: yes" >&5
14712 echo "${ECHO_T}yes" >&6; }
14714 cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_GETHOSTBYNAME_R_5 1
14719 echo "$as_me: failed program was
:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 { echo "$as_me:$LINENO: result
: no
" >&5
14723 echo "${ECHO_T}no
" >&6; }
14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14730 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_INITIALIZER
" >&5
14731 echo $ECHO_N "checking
for PTHREAD_RWLOCK_INITIALIZER...
$ECHO_C" >&6; }
14732 cat >conftest.$ac_ext <<_ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 #include <pthread.h>
14742 int foo = PTHREAD_RWLOCK_INITIALIZER;
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14754 (eval "$ac_link") 2>conftest.er1
14756 grep -v '^ *+' conftest.er1 >conftest.err
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14760 (exit $ac_status); } && {
14761 test -z "$ac_c_werror_flag" ||
14762 test ! -s conftest.err
14763 } && test -s conftest$ac_exeext &&
14764 $as_test_x conftest$ac_exeext; then
14765 { echo "$as_me:$LINENO: result
: yes" >&5
14766 echo "${ECHO_T}yes" >&6; }
14768 cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14773 echo "$as_me: failed program was
:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14776 { echo "$as_me:$LINENO: result
: no
" >&5
14777 echo "${ECHO_T}no
" >&6; }
14781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14782 conftest$ac_exeext conftest.$ac_ext
14784 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP
" >&5
14785 echo $ECHO_N "checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP...
$ECHO_C" >&6; }
14786 cat >conftest.$ac_ext <<_ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14792 #include <pthread.h>
14796 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (ac_try="$ac_link"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_link") 2>conftest.er1
14810 grep -v '^ *+' conftest.er1 >conftest.err
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest$ac_exeext &&
14818 $as_test_x conftest$ac_exeext; then
14819 { echo "$as_me:$LINENO: result
: yes" >&5
14820 echo "${ECHO_T}yes" >&6; }
14822 cat >>confdefs.h <<\_ACEOF
14823 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14827 echo "$as_me: failed program was
:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 { echo "$as_me:$LINENO: result
: no
" >&5
14831 echo "${ECHO_T}no
" >&6; }
14835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14836 conftest$ac_exeext conftest.$ac_ext
14838 { echo "$as_me:$LINENO: checking
for compiler atomic operations
" >&5
14839 echo $ECHO_N "checking
for compiler atomic operations...
$ECHO_C" >&6; }
14840 cat >conftest.$ac_ext <<_ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14850 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14855 rm -f conftest.$ac_objext conftest$ac_exeext
14856 if { (ac_try="$ac_link"
14857 case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_link") 2>conftest.er1
14864 grep -v '^ *+' conftest.er1 >conftest.err
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14868 (exit $ac_status); } && {
14869 test -z "$ac_c_werror_flag" ||
14870 test ! -s conftest.err
14871 } && test -s conftest$ac_exeext &&
14872 $as_test_x conftest$ac_exeext; then
14873 { echo "$as_me:$LINENO: result
: yes" >&5
14874 echo "${ECHO_T}yes" >&6; }
14876 cat >>confdefs.h <<\_ACEOF
14877 #define HAVE_GCC_ATOMICS 1
14881 echo "$as_me: failed program was
:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 { echo "$as_me:$LINENO: result
: no
" >&5
14885 echo "${ECHO_T}no
" >&6; }
14889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14890 conftest$ac_exeext conftest.$ac_ext
14893 { echo "$as_me:$LINENO: checking
for compiler
'attribute pure' support
" >&5
14894 echo $ECHO_N "checking
for compiler
'attribute pure' support...
$ECHO_C" >&6; }
14895 cat >conftest.$ac_ext <<_ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 static int __attribute__((pure)) test(void) {}
14910 rm -f conftest.$ac_objext
14911 if { (ac_try="$ac_compile"
14912 case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_compile") 2>conftest.er1
14919 grep -v '^ *+' conftest.er1 >conftest.err
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14923 (exit $ac_status); } && {
14924 test -z "$ac_c_werror_flag" ||
14925 test ! -s conftest.err
14926 } && test -s conftest.$ac_objext; then
14927 { echo "$as_me:$LINENO: result
: yes" >&5
14928 echo "${ECHO_T}yes" >&6; }
14930 cat >>confdefs.h <<_ACEOF
14931 #define HAVE_ATTRIBUTE_pure 1
14935 echo "$as_me: failed program was
:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14938 { echo "$as_me:$LINENO: result
: no
" >&5
14939 echo "${ECHO_T}no
" >&6; }
14942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945 { echo "$as_me:$LINENO: checking
for compiler
'attribute malloc' support
" >&5
14946 echo $ECHO_N "checking
for compiler
'attribute malloc' support...
$ECHO_C" >&6; }
14947 cat >conftest.$ac_ext <<_ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14953 static int __attribute__((malloc)) test(void) {}
14962 rm -f conftest.$ac_objext
14963 if { (ac_try="$ac_compile"
14964 case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_compile") 2>conftest.er1
14971 grep -v '^ *+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest.$ac_objext; then
14979 { echo "$as_me:$LINENO: result
: yes" >&5
14980 echo "${ECHO_T}yes" >&6; }
14982 cat >>confdefs.h <<_ACEOF
14983 #define HAVE_ATTRIBUTE_malloc 1
14987 echo "$as_me: failed program was
:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 { echo "$as_me:$LINENO: result
: no
" >&5
14991 echo "${ECHO_T}no
" >&6; }
14994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997 { echo "$as_me:$LINENO: checking
for compiler
'attribute const' support
" >&5
14998 echo $ECHO_N "checking
for compiler
'attribute const' support...
$ECHO_C" >&6; }
14999 cat >conftest.$ac_ext <<_ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15005 static int __attribute__((const)) test(void) {}
15014 rm -f conftest.$ac_objext
15015 if { (ac_try="$ac_compile"
15016 case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_compile") 2>conftest.er1
15023 grep -v '^ *+' conftest.er1 >conftest.err
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15027 (exit $ac_status); } && {
15028 test -z "$ac_c_werror_flag" ||
15029 test ! -s conftest.err
15030 } && test -s conftest.$ac_objext; then
15031 { echo "$as_me:$LINENO: result
: yes" >&5
15032 echo "${ECHO_T}yes" >&6; }
15034 cat >>confdefs.h <<_ACEOF
15035 #define HAVE_ATTRIBUTE_const 1
15039 echo "$as_me: failed program was
:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 { echo "$as_me:$LINENO: result
: no
" >&5
15043 echo "${ECHO_T}no
" >&6; }
15046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049 { echo "$as_me:$LINENO: checking
for compiler
'attribute unused' support
" >&5
15050 echo $ECHO_N "checking
for compiler
'attribute unused' support...
$ECHO_C" >&6; }
15051 cat >conftest.$ac_ext <<_ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 static int __attribute__((unused)) test(void) {}
15066 rm -f conftest.$ac_objext
15067 if { (ac_try="$ac_compile"
15068 case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_compile") 2>conftest.er1
15075 grep -v '^ *+' conftest.er1 >conftest.err
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15079 (exit $ac_status); } && {
15080 test -z "$ac_c_werror_flag" ||
15081 test ! -s conftest.err
15082 } && test -s conftest.$ac_objext; then
15083 { echo "$as_me:$LINENO: result
: yes" >&5
15084 echo "${ECHO_T}yes" >&6; }
15086 cat >>confdefs.h <<_ACEOF
15087 #define HAVE_ATTRIBUTE_unused 1
15091 echo "$as_me: failed program was
:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15094 { echo "$as_me:$LINENO: result
: no
" >&5
15095 echo "${ECHO_T}no
" >&6; }
15098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 { echo "$as_me:$LINENO: checking
for compiler
'attribute always_inline' support
" >&5
15102 echo $ECHO_N "checking
for compiler
'attribute always_inline' support...
$ECHO_C" >&6; }
15103 cat >conftest.$ac_ext <<_ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 static int __attribute__((always_inline)) test(void) {}
15118 rm -f conftest.$ac_objext
15119 if { (ac_try="$ac_compile"
15120 case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_compile") 2>conftest.er1
15127 grep -v '^ *+' conftest.er1 >conftest.err
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15131 (exit $ac_status); } && {
15132 test -z "$ac_c_werror_flag" ||
15133 test ! -s conftest.err
15134 } && test -s conftest.$ac_objext; then
15135 { echo "$as_me:$LINENO: result
: yes" >&5
15136 echo "${ECHO_T}yes" >&6; }
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_ATTRIBUTE_always_inline 1
15143 echo "$as_me: failed program was
:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15146 { echo "$as_me:$LINENO: result
: no
" >&5
15147 echo "${ECHO_T}no
" >&6; }
15150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15153 { echo "$as_me:$LINENO: checking
for compiler
'attribute deprecated' support
" >&5
15154 echo $ECHO_N "checking
for compiler
'attribute deprecated' support...
$ECHO_C" >&6; }
15155 cat >conftest.$ac_ext <<_ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 static int __attribute__((deprecated)) test(void) {}
15170 rm -f conftest.$ac_objext
15171 if { (ac_try="$ac_compile"
15172 case "(($ac_try" in
15173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174 *) ac_try_echo=$ac_try;;
15176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15177 (eval "$ac_compile") 2>conftest.er1
15179 grep -v '^ *+' conftest.er1 >conftest.err
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15183 (exit $ac_status); } && {
15184 test -z "$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15186 } && test -s conftest.$ac_objext; then
15187 { echo "$as_me:$LINENO: result
: yes" >&5
15188 echo "${ECHO_T}yes" >&6; }
15190 cat >>confdefs.h <<_ACEOF
15191 #define HAVE_ATTRIBUTE_deprecated 1
15195 echo "$as_me: failed program was
:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 { echo "$as_me:$LINENO: result
: no
" >&5
15199 echo "${ECHO_T}no
" >&6; }
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205 { echo "$as_me:$LINENO: checking
for -ffunction-sections support
" >&5
15206 echo $ECHO_N "checking
for -ffunction-sections support...
$ECHO_C" >&6; }
15207 saved_CFLAGS="${CFLAGS}"
15208 CFLAGS="${CFLAGS} -ffunction-sections"
15209 cat >conftest.$ac_ext <<_ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15224 rm -f conftest.$ac_objext
15225 if { (ac_try="$ac_compile"
15226 case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15230 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_compile") 2>conftest.er1
15233 grep -v '^ *+' conftest.er1 >conftest.err
15235 cat conftest.err >&5
15236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15237 (exit $ac_status); } && {
15238 test -z "$ac_c_werror_flag" ||
15239 test ! -s conftest.err
15240 } && test -s conftest.$ac_objext; then
15241 { echo "$as_me:$LINENO: result
: yes" >&5
15242 echo "${ECHO_T}yes" >&6; }
15243 saved_LDFLAGS="${LDFLAGS}"
15244 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15245 { echo "$as_me:$LINENO: checking
for --gc-sections support
" >&5
15246 echo $ECHO_N "checking
for --gc-sections support...
$ECHO_C" >&6; }
15247 cat >conftest.$ac_ext <<_ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15262 rm -f conftest.$ac_objext conftest$ac_exeext
15263 if { (ac_try="$ac_link"
15264 case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_link") 2>conftest.er1
15271 grep -v '^ *+' conftest.er1 >conftest.err
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15275 (exit $ac_status); } && {
15276 test -z "$ac_c_werror_flag" ||
15277 test ! -s conftest.err
15278 } && test -s conftest$ac_exeext &&
15279 $as_test_x conftest$ac_exeext; then
15280 { echo "$as_me:$LINENO: result
: yes" >&5
15281 echo "${ECHO_T}yes" >&6; }
15282 GC_CFLAGS="-ffunction-sections"
15283 GC_LDFLAGS="-Wl,--gc-sections"
15285 echo "$as_me: failed program was
:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 { echo "$as_me:$LINENO: result
: no
" >&5
15289 echo "${ECHO_T}no
" >&6; }
15293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15294 conftest$ac_exeext conftest.$ac_ext
15295 LDFLAGS="${saved_LDFLAGS}"
15297 echo "$as_me: failed program was
:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 { echo "$as_me:$LINENO: result
: no
" >&5
15301 echo "${ECHO_T}no
" >&6; }
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306 CFLAGS="${saved_CFLAGS}"
15310 { echo "$as_me:$LINENO: checking
for -Wdeclaration-after-statement support
" >&5
15311 echo $ECHO_N "checking
for -Wdeclaration-after-statement support...
$ECHO_C" >&6; }
15312 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15313 { echo "$as_me:$LINENO: result
: yes" >&5
15314 echo "${ECHO_T}yes" >&6; }
15315 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15317 { echo "$as_me:$LINENO: result
: no
" >&5
15318 echo "${ECHO_T}no
" >&6; }
15319 AST_DECLARATION_AFTER_STATEMENT=
15323 { echo "$as_me:$LINENO: checking
for -fno-strict-overflow" >&5
15324 echo $ECHO_N "checking
for -fno-strict-overflow...
$ECHO_C" >&6; }
15325 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15326 { echo "$as_me:$LINENO: result
: yes" >&5
15327 echo "${ECHO_T}yes" >&6; }
15328 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15330 { echo "$as_me:$LINENO: result
: no
" >&5
15331 echo "${ECHO_T}no
" >&6; }
15332 AST_NO_STRICT_OVERFLOW=
15336 { echo "$as_me:$LINENO: checking
for res_ninit
" >&5
15337 echo $ECHO_N "checking
for res_ninit...
$ECHO_C" >&6; }
15338 cat >conftest.$ac_ext <<_ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15344 #include <resolv.h>
15348 int foo = res_ninit(NULL);
15353 rm -f conftest.$ac_objext conftest$ac_exeext
15354 if { (ac_try="$ac_link"
15355 case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_link") 2>conftest.er1
15362 grep -v '^ *+' conftest.er1 >conftest.err
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15366 (exit $ac_status); } && {
15367 test -z "$ac_c_werror_flag" ||
15368 test ! -s conftest.err
15369 } && test -s conftest$ac_exeext &&
15370 $as_test_x conftest$ac_exeext; then
15371 { echo "$as_me:$LINENO: result
: yes" >&5
15372 echo "${ECHO_T}yes" >&6; }
15374 cat >>confdefs.h <<\_ACEOF
15375 #define HAVE_RES_NINIT 1
15378 { echo "$as_me:$LINENO: checking
for res_ndestroy
" >&5
15379 echo $ECHO_N "checking
for res_ndestroy...
$ECHO_C" >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 #include <resolv.h>
15390 int foo = res_ndestroy(NULL);
15395 rm -f conftest.$ac_objext conftest$ac_exeext
15396 if { (ac_try="$ac_link"
15397 case "(($ac_try" in
15398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15402 (eval "$ac_link") 2>conftest.er1
15404 grep -v '^ *+' conftest.er1 >conftest.err
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15408 (exit $ac_status); } && {
15409 test -z "$ac_c_werror_flag" ||
15410 test ! -s conftest.err
15411 } && test -s conftest$ac_exeext &&
15412 $as_test_x conftest$ac_exeext; then
15413 { echo "$as_me:$LINENO: result
: yes" >&5
15414 echo "${ECHO_T}yes" >&6; }
15416 cat >>confdefs.h <<\_ACEOF
15417 #define HAVE_RES_NDESTROY 1
15421 echo "$as_me: failed program was
:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 { echo "$as_me:$LINENO: result
: no
" >&5
15425 echo "${ECHO_T}no
" >&6; }
15429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15430 conftest$ac_exeext conftest.$ac_ext
15432 echo "$as_me: failed program was
:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 { echo "$as_me:$LINENO: result
: no
" >&5
15436 echo "${ECHO_T}no
" >&6; }
15440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15441 conftest$ac_exeext conftest.$ac_ext
15443 { echo "$as_me:$LINENO: checking
for RTLD_NOLOAD
" >&5
15444 echo $ECHO_N "checking
for RTLD_NOLOAD...
$ECHO_C" >&6; }
15445 cat >conftest.$ac_ext <<_ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15455 int foo = RTLD_NOLOAD;
15460 rm -f conftest.$ac_objext conftest$ac_exeext
15461 if { (ac_try="$ac_link"
15462 case "(($ac_try" in
15463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464 *) ac_try_echo=$ac_try;;
15466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15467 (eval "$ac_link") 2>conftest.er1
15469 grep -v '^ *+' conftest.er1 >conftest.err
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15473 (exit $ac_status); } && {
15474 test -z "$ac_c_werror_flag" ||
15475 test ! -s conftest.err
15476 } && test -s conftest$ac_exeext &&
15477 $as_test_x conftest$ac_exeext; then
15478 { echo "$as_me:$LINENO: result
: yes" >&5
15479 echo "${ECHO_T}yes" >&6; }
15481 cat >>confdefs.h <<\_ACEOF
15482 #define HAVE_RTLD_NOLOAD 1
15486 echo "$as_me: failed program was
:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15489 { echo "$as_me:$LINENO: result
: no
" >&5
15490 echo "${ECHO_T}no
" >&6; }
15494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15495 conftest$ac_exeext conftest.$ac_ext
15497 { echo "$as_me:$LINENO: checking
for IP_MTU_DISCOVER
" >&5
15498 echo $ECHO_N "checking
for IP_MTU_DISCOVER...
$ECHO_C" >&6; }
15499 cat >conftest.$ac_ext <<_ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15505 #include <netinet/in.h>
15509 int foo = IP_MTU_DISCOVER;
15514 rm -f conftest.$ac_objext conftest$ac_exeext
15515 if { (ac_try="$ac_link"
15516 case "(($ac_try" in
15517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518 *) ac_try_echo=$ac_try;;
15520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15521 (eval "$ac_link") 2>conftest.er1
15523 grep -v '^ *+' conftest.er1 >conftest.err
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15527 (exit $ac_status); } && {
15528 test -z "$ac_c_werror_flag" ||
15529 test ! -s conftest.err
15530 } && test -s conftest$ac_exeext &&
15531 $as_test_x conftest$ac_exeext; then
15532 { echo "$as_me:$LINENO: result
: yes" >&5
15533 echo "${ECHO_T}yes" >&6; }
15535 cat >>confdefs.h <<\_ACEOF
15536 #define HAVE_IP_MTU_DISCOVER 1
15540 echo "$as_me: failed program was
:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 { echo "$as_me:$LINENO: result
: no
" >&5
15544 echo "${ECHO_T}no
" >&6; }
15548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15549 conftest$ac_exeext conftest.$ac_ext
15551 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15552 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15553 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15554 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15555 echo $ECHO_N "(cached
) $ECHO_C" >&6
15557 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15558 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15560 # Is the header compilable?
15561 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h usability
" >&5
15562 echo $ECHO_N "checking libkern
/OSAtomic.h usability...
$ECHO_C" >&6; }
15563 cat >conftest.$ac_ext <<_ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 $ac_includes_default
15570 #include <libkern/OSAtomic.h>
15572 rm -f conftest.$ac_objext
15573 if { (ac_try="$ac_compile"
15574 case "(($ac_try" in
15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576 *) ac_try_echo=$ac_try;;
15578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15579 (eval "$ac_compile") 2>conftest.er1
15581 grep -v '^ *+' conftest.er1 >conftest.err
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15585 (exit $ac_status); } && {
15586 test -z "$ac_c_werror_flag" ||
15587 test ! -s conftest.err
15588 } && test -s conftest.$ac_objext; then
15589 ac_header_compiler=yes
15591 echo "$as_me: failed program was
:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15594 ac_header_compiler=no
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15599 echo "${ECHO_T}$ac_header_compiler" >&6; }
15601 # Is the header present?
15602 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h presence
" >&5
15603 echo $ECHO_N "checking libkern
/OSAtomic.h presence...
$ECHO_C" >&6; }
15604 cat >conftest.$ac_ext <<_ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h. */
15610 #include <libkern/OSAtomic.h>
15612 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15613 case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15620 grep -v '^ *+' conftest.er1 >conftest.err
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15624 (exit $ac_status); } >/dev/null && {
15625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15626 test ! -s conftest.err
15628 ac_header_preproc=yes
15630 echo "$as_me: failed program was
:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 ac_header_preproc=no
15636 rm -f conftest.err conftest.$ac_ext
15637 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15638 echo "${ECHO_T}$ac_header_preproc" >&6; }
15640 # So? What about this header?
15641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15643 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15644 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15645 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the compiler
's result" >&5
15646 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result
" >&2;}
15647 ac_header_preproc=yes
15650 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&5
15651 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&2;}
15652 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&5
15653 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&2;}
15654 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&5
15655 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&2;}
15656 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15657 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15658 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the preprocessor
's result" >&5
15659 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result
" >&2;}
15660 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&5
15661 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&2;}
15663 ## ------------------------------- ##
15664 ## Report this to www.asterisk.org ##
15665 ## ------------------------------- ##
15667 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15670 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15671 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15672 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15673 echo $ECHO_N "(cached
) $ECHO_C" >&6
15675 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15677 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15678 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15681 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15683 cat >>confdefs.h <<_ACEOF
15684 #define HAVE_OSX_ATOMICS 1
15691 { echo "$as_me:$LINENO: checking
for int
" >&5
15692 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
15693 if test "${ac_cv_type_int+set}" = set; then
15694 echo $ECHO_N "(cached
) $ECHO_C" >&6
15696 cat >conftest.$ac_ext <<_ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 $ac_includes_default
15703 typedef int ac__type_new_;
15707 if ((ac__type_new_ *) 0)
15709 if (sizeof (ac__type_new_))
15715 rm -f conftest.$ac_objext
15716 if { (ac_try="$ac_compile"
15717 case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_compile") 2>conftest.er1
15724 grep -v '^ *+' conftest.er1 >conftest.err
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15728 (exit $ac_status); } && {
15729 test -z "$ac_c_werror_flag" ||
15730 test ! -s conftest.err
15731 } && test -s conftest.$ac_objext; then
15734 echo "$as_me: failed program was
:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
15743 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15745 # The cast to long int works around a bug in the HP C Compiler
15746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15748 # This bug is HP SR number 8606223364.
15749 { echo "$as_me:$LINENO: checking size of int
" >&5
15750 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
15751 if test "${ac_cv_sizeof_int+set}" = set; then
15752 echo $ECHO_N "(cached
) $ECHO_C" >&6
15754 if test "$cross_compiling" = yes; then
15755 # Depending upon the size, compute the lo and hi bounds.
15756 cat >conftest.$ac_ext <<_ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 $ac_includes_default
15763 typedef int ac__type_sizeof_;
15767 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15774 rm -f conftest.$ac_objext
15775 if { (ac_try="$ac_compile"
15776 case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_compile") 2>conftest.er1
15783 grep -v '^ *+' conftest.er1 >conftest.err
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15787 (exit $ac_status); } && {
15788 test -z "$ac_c_werror_flag" ||
15789 test ! -s conftest.err
15790 } && test -s conftest.$ac_objext; then
15793 cat >conftest.$ac_ext <<_ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 $ac_includes_default
15800 typedef int ac__type_sizeof_;
15804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15811 rm -f conftest.$ac_objext
15812 if { (ac_try="$ac_compile"
15813 case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15818 (eval "$ac_compile") 2>conftest.er1
15820 grep -v '^ *+' conftest.er1 >conftest.err
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15824 (exit $ac_status); } && {
15825 test -z "$ac_c_werror_flag" ||
15826 test ! -s conftest.err
15827 } && test -s conftest.$ac_objext; then
15828 ac_hi=$ac_mid; break
15830 echo "$as_me: failed program was
:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 ac_lo=`expr $ac_mid + 1`
15834 if test $ac_lo -le $ac_mid; then
15838 ac_mid=`expr 2 '*' $ac_mid + 1`
15841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844 echo "$as_me: failed program was
:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 $ac_includes_default
15854 typedef int ac__type_sizeof_;
15858 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15865 rm -f conftest.$ac_objext
15866 if { (ac_try="$ac_compile"
15867 case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_compile") 2>conftest.er1
15874 grep -v '^ *+' conftest.er1 >conftest.err
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15878 (exit $ac_status); } && {
15879 test -z "$ac_c_werror_flag" ||
15880 test ! -s conftest.err
15881 } && test -s conftest.$ac_objext; then
15884 cat >conftest.$ac_ext <<_ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15890 $ac_includes_default
15891 typedef int ac__type_sizeof_;
15895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15902 rm -f conftest.$ac_objext
15903 if { (ac_try="$ac_compile"
15904 case "(($ac_try" in
15905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906 *) ac_try_echo=$ac_try;;
15908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15909 (eval "$ac_compile") 2>conftest.er1
15911 grep -v '^ *+' conftest.er1 >conftest.err
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15915 (exit $ac_status); } && {
15916 test -z "$ac_c_werror_flag" ||
15917 test ! -s conftest.err
15918 } && test -s conftest.$ac_objext; then
15919 ac_lo=$ac_mid; break
15921 echo "$as_me: failed program was
:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_hi=`expr '(' $ac_mid ')' - 1`
15925 if test $ac_mid -le $ac_hi; then
15929 ac_mid=`expr 2 '*' $ac_mid`
15932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935 echo "$as_me: failed program was
:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945 # Binary search between lo and hi bounds.
15946 while test "x
$ac_lo" != "x
$ac_hi"; do
15947 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15948 cat >conftest.$ac_ext <<_ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 $ac_includes_default
15955 typedef int ac__type_sizeof_;
15959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15966 rm -f conftest.$ac_objext
15967 if { (ac_try="$ac_compile"
15968 case "(($ac_try" in
15969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970 *) ac_try_echo=$ac_try;;
15972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15973 (eval "$ac_compile") 2>conftest.er1
15975 grep -v '^ *+' conftest.er1 >conftest.err
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15979 (exit $ac_status); } && {
15980 test -z "$ac_c_werror_flag" ||
15981 test ! -s conftest.err
15982 } && test -s conftest.$ac_objext; then
15985 echo "$as_me: failed program was
:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15988 ac_lo=`expr '(' $ac_mid ')' + 1`
15991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 ?*) ac_cv_sizeof_int=$ac_lo;;
15995 '') if test "$ac_cv_type_int" = yes; then
15996 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
15997 See \
`config.log' for more details." >&5
15998 echo "$as_me: error: cannot compute sizeof (int)
15999 See \`config.log
' for more details." >&2;}
16000 { (exit 77); exit 77; }; }
16006 cat >conftest.$ac_ext <<_ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 $ac_includes_default
16013 typedef int ac__type_sizeof_;
16014 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16015 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16017 #include <stdlib.h>
16022 FILE *f = fopen ("conftest.val", "w");
16025 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16027 long int i = longval ();
16028 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16030 fprintf (f, "%ld\n", i);
16034 unsigned long int i = ulongval ();
16035 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16037 fprintf (f, "%lu\n", i);
16039 return ferror (f) || fclose (f) != 0;
16045 rm -f conftest$ac_exeext
16046 if { (ac_try="$ac_link"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_link") 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16056 { (case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_try") 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_cv_sizeof_int=`cat conftest.val`
16067 echo "$as_me: program exited with status $ac_status" >&5
16068 echo "$as_me: failed program was:" >&5
16069 sed 's
/^
/|
/' conftest.$ac_ext >&5
16071 ( exit $ac_status )
16072 if test "$ac_cv_type_int" = yes; then
16073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16074 See \`config.log' for more details.
" >&5
16075 echo "$as_me: error
: cannot compute sizeof
(int
)
16076 See \
`config.log' for more details." >&2;}
16077 { (exit 77); exit 77; }; }
16082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16086 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16087 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16091 cat >>confdefs.h <<_ACEOF
16092 #define SIZEOF_INT $ac_cv_sizeof_int
16097 # do the package library checks now
16100 if test "${USE_ALSA}" != "no"; then
16102 if test "x${ALSA_DIR}" != "x"; then
16103 if test -d ${ALSA_DIR}/lib; then
16104 pbxlibdir="-L${ALSA_DIR}/lib"
16106 pbxlibdir="-L${ALSA_DIR}"
16109 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16110 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16111 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 ac_check_lib_save_LIBS=$LIBS
16115 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16116 cat >conftest.$ac_ext <<_ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h. */
16123 /* Override any GCC internal prototype to avoid an error.
16124 Use char because int might match the return type of a GCC
16125 builtin and then its argument prototype would still apply. */
16129 char snd_spcm_init ();
16133 return snd_spcm_init ();
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (ac_try="$ac_link"
16140 case "(($ac_try" in
16141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16142 *) ac_try_echo
=$ac_try;;
16144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16145 (eval "$ac_link") 2>conftest.er1
16147 grep -v '^ *+' conftest.er1
>conftest.err
16149 cat conftest.err
>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } && {
16152 test -z "$ac_c_werror_flag" ||
16153 test ! -s conftest.err
16154 } && test -s conftest
$ac_exeext &&
16155 $as_test_x conftest
$ac_exeext; then
16156 ac_cv_lib_asound_snd_spcm_init
=yes
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.
$ac_ext >&5
16161 ac_cv_lib_asound_snd_spcm_init
=no
16164 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16165 conftest
$ac_exeext conftest.
$ac_ext
16166 LIBS
=$ac_check_lib_save_LIBS
16168 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16169 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16170 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16177 if test "${AST_ALSA_FOUND}" = "yes"; then
16178 ALSA_LIB
="-lasound -lm -ldl"
16179 ALSA_HEADER_FOUND
="1"
16180 if test "x${ALSA_DIR}" != "x"; then
16181 ALSA_LIB
="${pbxlibdir} ${ALSA_LIB}"
16182 ALSA_INCLUDE
="-I${ALSA_DIR}/include"
16183 saved_cppflags
="${CPPFLAGS}"
16184 CPPFLAGS
="${CPPFLAGS} -I${ALSA_DIR}/include"
16185 if test "xalsa/asoundlib.h" != "x" ; then
16186 as_ac_Header
=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16187 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16188 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16189 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16190 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 ac_res
=`eval echo '${'$as_ac_Header'}'`
16194 { echo "$as_me:$LINENO: result: $ac_res" >&5
16195 echo "${ECHO_T}$ac_res" >&6; }
16197 # Is the header compilable?
16198 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16199 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16200 cat >conftest.
$ac_ext <<_ACEOF
16203 cat confdefs.h
>>conftest.
$ac_ext
16204 cat >>conftest.
$ac_ext <<_ACEOF
16205 /* end confdefs.h. */
16206 $ac_includes_default
16207 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16209 rm -f conftest.
$ac_objext
16210 if { (ac_try
="$ac_compile"
16211 case "(($ac_try" in
16212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_compile") 2>conftest.er1
16218 grep -v '^ *+' conftest.er1 >conftest.err
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest.$ac_objext; then
16226 ac_header_compiler=yes
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 ac_header_compiler=no
16234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16236 echo "${ECHO_T}$ac_header_compiler" >&6; }
16238 # Is the header present?
16239 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16240 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16241 cat >conftest.$ac_ext <<_ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16247 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16249 if { (ac_try="$ac_cpp conftest.$ac_ext"
16250 case "(($ac_try" in
16251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16252 *) ac_try_echo
=$ac_try;;
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16257 grep -v '^ *+' conftest.er1
>conftest.err
16259 cat conftest.err
>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } >/dev
/null
&& {
16262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16265 ac_header_preproc
=yes
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.
$ac_ext >&5
16270 ac_header_preproc
=no
16273 rm -f conftest.err conftest.
$ac_ext
16274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16275 echo "${ECHO_T}$ac_header_preproc" >&6; }
16277 # So? What about this header?
16278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16280 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16281 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16283 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16284 ac_header_preproc
=yes
16287 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16288 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16290 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16292 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16294 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16296 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16298 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16300 ## ------------------------------- ##
16301 ## Report this to www.asterisk.org ##
16302 ## ------------------------------- ##
16304 ) |
sed "s/^/$as_me: WARNING: /" >&2
16307 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16308 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16309 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16312 eval "$as_ac_Header=\$ac_header_preproc"
16314 ac_res
=`eval echo '${'$as_ac_Header'}'`
16315 { echo "$as_me:$LINENO: result: $ac_res" >&5
16316 echo "${ECHO_T}$ac_res" >&6; }
16319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16320 ALSA_HEADER_FOUND
=1
16322 ALSA_HEADER_FOUND
=0
16327 CPPFLAGS
="${saved_cppflags}"
16329 if test "xalsa/asoundlib.h" != "x" ; then
16330 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16331 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16332 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16333 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16337 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16339 # Is the header compilable?
16340 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16341 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16342 cat >conftest.
$ac_ext <<_ACEOF
16345 cat confdefs.h
>>conftest.
$ac_ext
16346 cat >>conftest.
$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16348 $ac_includes_default
16349 #include <alsa/asoundlib.h>
16351 rm -f conftest.
$ac_objext
16352 if { (ac_try
="$ac_compile"
16353 case "(($ac_try" in
16354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_compile") 2>conftest.er1
16360 grep -v '^ *+' conftest.er1 >conftest.err
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } && {
16365 test -z "$ac_c_werror_flag" ||
16366 test ! -s conftest.err
16367 } && test -s conftest.$ac_objext; then
16368 ac_header_compiler=yes
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16373 ac_header_compiler=no
16376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16378 echo "${ECHO_T}$ac_header_compiler" >&6; }
16380 # Is the header present?
16381 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16382 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16383 cat >conftest.$ac_ext <<_ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 #include <alsa/asoundlib.h>
16391 if { (ac_try="$ac_cpp conftest.$ac_ext"
16392 case "(($ac_try" in
16393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16394 *) ac_try_echo
=$ac_try;;
16396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16399 grep -v '^ *+' conftest.er1
>conftest.err
16401 cat conftest.err
>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } >/dev
/null
&& {
16404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16405 test ! -s conftest.err
16407 ac_header_preproc
=yes
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.
$ac_ext >&5
16412 ac_header_preproc
=no
16415 rm -f conftest.err conftest.
$ac_ext
16416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16417 echo "${ECHO_T}$ac_header_preproc" >&6; }
16419 # So? What about this header?
16420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16422 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16423 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16425 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16426 ac_header_preproc
=yes
16429 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16430 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16432 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16434 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16436 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16438 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16440 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16442 ## ------------------------------- ##
16443 ## Report this to www.asterisk.org ##
16444 ## ------------------------------- ##
16446 ) |
sed "s/^/$as_me: WARNING: /" >&2
16449 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16450 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16451 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 ac_cv_header_alsa_asoundlib_h
=$ac_header_preproc
16456 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16457 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16460 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16461 ALSA_HEADER_FOUND
=1
16463 ALSA_HEADER_FOUND
=0
16469 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16470 if test -n "${ALSA_MANDATORY}" ;
16472 { echo "$as_me:$LINENO: ***" >&5
16473 echo "$as_me: ***" >&6;}
16474 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16475 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16476 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16477 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16478 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16479 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16488 cat >>confdefs.h
<<_ACEOF
16489 #define HAVE_ALSA 1
16493 elif test -n "${ALSA_MANDATORY}";
16495 { echo "$as_me:$LINENO: ***" >&5
16496 echo "$as_me: ***" >&6;}
16497 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16498 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16499 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16500 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16501 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16502 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16509 if test "${USE_CURSES}" != "no"; then
16511 if test "x${CURSES_DIR}" != "x"; then
16512 if test -d ${CURSES_DIR}/lib
; then
16513 pbxlibdir
="-L${CURSES_DIR}/lib"
16515 pbxlibdir
="-L${CURSES_DIR}"
16518 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16519 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16520 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 ac_check_lib_save_LIBS
=$LIBS
16524 LIBS
="-lcurses ${pbxlibdir} $LIBS"
16525 cat >conftest.
$ac_ext <<_ACEOF
16528 cat confdefs.h
>>conftest.
$ac_ext
16529 cat >>conftest.
$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16532 /* Override any GCC internal prototype to avoid an error.
16533 Use char because int might match the return type of a GCC
16534 builtin and then its argument prototype would still apply. */
16547 rm -f conftest.
$ac_objext conftest
$ac_exeext
16548 if { (ac_try
="$ac_link"
16549 case "(($ac_try" in
16550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_link") 2>conftest.er1
16556 grep -v '^ *+' conftest.er1 >conftest.err
16558 cat conftest.err >&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } && {
16561 test -z "$ac_c_werror_flag" ||
16562 test ! -s conftest.err
16563 } && test -s conftest$ac_exeext &&
16564 $as_test_x conftest$ac_exeext; then
16565 ac_cv_lib_curses_initscr=yes
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 ac_cv_lib_curses_initscr=no
16573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16574 conftest$ac_exeext conftest.$ac_ext
16575 LIBS=$ac_check_lib_save_LIBS
16577 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16578 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16579 if test $ac_cv_lib_curses_initscr = yes; then
16580 AST_CURSES_FOUND=yes
16582 AST_CURSES_FOUND=no
16586 if test "${AST_CURSES_FOUND}" = "yes"; then
16587 CURSES_LIB="-lcurses "
16588 CURSES_HEADER_FOUND="1"
16589 if test "x${CURSES_DIR}" != "x"; then
16590 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16591 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16592 saved_cppflags="${CPPFLAGS}"
16593 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16594 if test "xcurses.h" != "x" ; then
16595 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" |
$as_tr_sh`
16596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16597 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16598 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 ac_res=`eval echo '${'$as_ac_Header'}'`
16603 { echo "$as_me:$LINENO: result: $ac_res" >&5
16604 echo "${ECHO_T}$ac_res" >&6; }
16606 # Is the header compilable?
16607 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16608 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16609 cat >conftest.$ac_ext <<_ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16615 $ac_includes_default
16616 #include <${CURSES_DIR}/include/curses.h>
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16622 *) ac_try_echo
=$ac_try;;
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_compile") 2>conftest.er1
16627 grep -v '^ *+' conftest.er1
>conftest.err
16629 cat conftest.err
>&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } && {
16632 test -z "$ac_c_werror_flag" ||
16633 test ! -s conftest.err
16634 } && test -s conftest.
$ac_objext; then
16635 ac_header_compiler
=yes
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.
$ac_ext >&5
16640 ac_header_compiler
=no
16643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16645 echo "${ECHO_T}$ac_header_compiler" >&6; }
16647 # Is the header present?
16648 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16649 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16650 cat >conftest.
$ac_ext <<_ACEOF
16653 cat confdefs.h
>>conftest.
$ac_ext
16654 cat >>conftest.
$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 #include <${CURSES_DIR}/include/curses.h>
16658 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16659 case "(($ac_try" in
16660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16666 grep -v '^ *+' conftest.er1 >conftest.err
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } >/dev/null && {
16671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16674 ac_header_preproc=yes
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 ac_header_preproc=no
16682 rm -f conftest.err conftest.$ac_ext
16683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16684 echo "${ECHO_T}$ac_header_preproc" >&6; }
16686 # So? What about this header?
16687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16689 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16690 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16692 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16693 ac_header_preproc=yes
16696 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16697 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16699 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16700 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16701 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16702 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16703 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16704 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16705 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16706 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16707 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16709 ## ------------------------------- ##
16710 ## Report this to www.asterisk.org ##
16711 ## ------------------------------- ##
16713 ) | sed "s/^/$as_me: WARNING: /" >&2
16716 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16717 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 eval "$as_ac_Header=\$ac_header_preproc"
16723 ac_res=`eval echo '${'$as_ac_Header'}'`
16724 { echo "$as_me:$LINENO: result: $ac_res" >&5
16725 echo "${ECHO_T}$ac_res" >&6; }
16728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16729 CURSES_HEADER_FOUND=1
16731 CURSES_HEADER_FOUND=0
16736 CPPFLAGS="${saved_cppflags}"
16738 if test "xcurses.h" != "x" ; then
16739 if test "${ac_cv_header_curses_h+set}" = set; then
16740 { echo "$as_me:$LINENO: checking for curses.h" >&5
16741 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16742 if test "${ac_cv_header_curses_h+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16746 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16748 # Is the header compilable?
16749 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16750 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16751 cat >conftest.$ac_ext <<_ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 $ac_includes_default
16758 #include <curses.h>
16760 rm -f conftest.$ac_objext
16761 if { (ac_try="$ac_compile"
16762 case "(($ac_try" in
16763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16764 *) ac_try_echo
=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_compile") 2>conftest.er1
16769 grep -v '^ *+' conftest.er1
>conftest.err
16771 cat conftest.err
>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && {
16774 test -z "$ac_c_werror_flag" ||
16775 test ! -s conftest.err
16776 } && test -s conftest.
$ac_objext; then
16777 ac_header_compiler
=yes
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.
$ac_ext >&5
16782 ac_header_compiler
=no
16785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16787 echo "${ECHO_T}$ac_header_compiler" >&6; }
16789 # Is the header present?
16790 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16791 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16792 cat >conftest.
$ac_ext <<_ACEOF
16795 cat confdefs.h
>>conftest.
$ac_ext
16796 cat >>conftest.
$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798 #include <curses.h>
16800 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16801 case "(($ac_try" in
16802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16803 *) ac_try_echo=$ac_try;;
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16808 grep -v '^ *+' conftest.er1 >conftest.err
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } >/dev/null && {
16813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16814 test ! -s conftest.err
16816 ac_header_preproc=yes
16818 echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16821 ac_header_preproc=no
16824 rm -f conftest.err conftest.$ac_ext
16825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16826 echo "${ECHO_T}$ac_header_preproc" >&6; }
16828 # So? What about this header?
16829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16831 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16832 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16833 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16834 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16835 ac_header_preproc=yes
16838 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16839 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16840 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16841 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16842 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16843 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16844 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16845 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16846 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16847 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16848 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16849 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16851 ## ------------------------------- ##
16852 ## Report this to www.asterisk.org ##
16853 ## ------------------------------- ##
16855 ) | sed "s/^/$as_me: WARNING: /" >&2
16858 { echo "$as_me:$LINENO: checking for curses.h" >&5
16859 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16860 if test "${ac_cv_header_curses_h+set}" = set; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 ac_cv_header_curses_h=$ac_header_preproc
16865 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16866 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16869 if test $ac_cv_header_curses_h = yes; then
16870 CURSES_HEADER_FOUND=1
16872 CURSES_HEADER_FOUND=0
16878 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16879 if test -n "${CURSES_MANDATORY}" ;
16881 { echo "$as_me:$LINENO: ***" >&5
16882 echo "$as_me: ***" >&6;}
16883 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16884 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16885 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16886 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16887 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16888 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_CURSES 1
16902 elif test -n "${CURSES_MANDATORY}";
16904 { echo "$as_me:$LINENO: ***" >&5
16905 echo "$as_me: ***" >&6;}
16906 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16907 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16908 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16909 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16910 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16911 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16917 if test "x${host_os}" = "xlinux-gnu" ; then
16919 if test "${USE_CAP}" != "no"; then
16921 if test "x${CAP_DIR}" != "x"; then
16922 if test -d ${CAP_DIR}/lib; then
16923 pbxlibdir="-L${CAP_DIR}/lib"
16925 pbxlibdir="-L${CAP_DIR}"
16928 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
16929 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
16930 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 ac_check_lib_save_LIBS=$LIBS
16934 LIBS="-lcap ${pbxlibdir} $LIBS"
16935 cat >conftest.$ac_ext <<_ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16942 /* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
16948 char cap_from_text ();
16952 return cap_from_text ();
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (ac_try="$ac_link"
16959 case "(($ac_try" in
16960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16961 *) ac_try_echo
=$ac_try;;
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>conftest.er1
16966 grep -v '^ *+' conftest.er1
>conftest.err
16968 cat conftest.err
>&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } && {
16971 test -z "$ac_c_werror_flag" ||
16972 test ! -s conftest.err
16973 } && test -s conftest
$ac_exeext &&
16974 $as_test_x conftest
$ac_exeext; then
16975 ac_cv_lib_cap_cap_from_text
=yes
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.
$ac_ext >&5
16980 ac_cv_lib_cap_cap_from_text
=no
16983 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16984 conftest
$ac_exeext conftest.
$ac_ext
16985 LIBS
=$ac_check_lib_save_LIBS
16987 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
16988 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
16989 if test $ac_cv_lib_cap_cap_from_text = yes; then
16996 if test "${AST_CAP_FOUND}" = "yes"; then
16998 CAP_HEADER_FOUND
="1"
16999 if test "x${CAP_DIR}" != "x"; then
17000 CAP_LIB
="${pbxlibdir} ${CAP_LIB}"
17001 CAP_INCLUDE
="-I${CAP_DIR}/include"
17002 saved_cppflags
="${CPPFLAGS}"
17003 CPPFLAGS
="${CPPFLAGS} -I${CAP_DIR}/include"
17004 if test "xsys/capability.h" != "x" ; then
17005 as_ac_Header
=`echo "ac_cv_header_${CAP_DIR}/include/sys/capability.h" | $as_tr_sh`
17006 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17007 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17008 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17009 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 ac_res
=`eval echo '${'$as_ac_Header'}'`
17013 { echo "$as_me:$LINENO: result: $ac_res" >&5
17014 echo "${ECHO_T}$ac_res" >&6; }
17016 # Is the header compilable?
17017 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h usability" >&5
17018 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h usability... $ECHO_C" >&6; }
17019 cat >conftest.
$ac_ext <<_ACEOF
17022 cat confdefs.h
>>conftest.
$ac_ext
17023 cat >>conftest.
$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 $ac_includes_default
17026 #include <${CAP_DIR}/include/sys/capability.h>
17028 rm -f conftest.
$ac_objext
17029 if { (ac_try
="$ac_compile"
17030 case "(($ac_try" in
17031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_compile") 2>conftest.er1
17037 grep -v '^ *+' conftest.er1 >conftest.err
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } && {
17042 test -z "$ac_c_werror_flag" ||
17043 test ! -s conftest.err
17044 } && test -s conftest.$ac_objext; then
17045 ac_header_compiler=yes
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17050 ac_header_compiler=no
17053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17055 echo "${ECHO_T}$ac_header_compiler" >&6; }
17057 # Is the header present?
17058 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h presence" >&5
17059 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h presence... $ECHO_C" >&6; }
17060 cat >conftest.$ac_ext <<_ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 #include <${CAP_DIR}/include/sys/capability.h>
17068 if { (ac_try="$ac_cpp conftest.$ac_ext"
17069 case "(($ac_try" in
17070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17071 *) ac_try_echo
=$ac_try;;
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17076 grep -v '^ *+' conftest.er1
>conftest.err
17078 cat conftest.err
>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } >/dev
/null
&& {
17081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17082 test ! -s conftest.err
17084 ac_header_preproc
=yes
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.
$ac_ext >&5
17089 ac_header_preproc
=no
17092 rm -f conftest.err conftest.
$ac_ext
17093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17094 echo "${ECHO_T}$ac_header_preproc" >&6; }
17096 # So? What about this header?
17097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17099 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17100 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17101 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&5
17102 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&2;}
17103 ac_header_preproc
=yes
17106 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&5
17107 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&5
17109 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&5
17111 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17113 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17114 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&5
17115 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&5
17117 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&2;}
17119 ## ------------------------------- ##
17120 ## Report this to www.asterisk.org ##
17121 ## ------------------------------- ##
17123 ) |
sed "s/^/$as_me: WARNING: /" >&2
17126 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17127 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17128 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 eval "$as_ac_Header=\$ac_header_preproc"
17133 ac_res
=`eval echo '${'$as_ac_Header'}'`
17134 { echo "$as_me:$LINENO: result: $ac_res" >&5
17135 echo "${ECHO_T}$ac_res" >&6; }
17138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17146 CPPFLAGS
="${saved_cppflags}"
17148 if test "xsys/capability.h" != "x" ; then
17149 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17150 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17151 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17152 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17156 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17158 # Is the header compilable?
17159 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
17160 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
17161 cat >conftest.
$ac_ext <<_ACEOF
17164 cat confdefs.h
>>conftest.
$ac_ext
17165 cat >>conftest.
$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 $ac_includes_default
17168 #include <sys/capability.h>
17170 rm -f conftest.
$ac_objext
17171 if { (ac_try
="$ac_compile"
17172 case "(($ac_try" in
17173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_compile") 2>conftest.er1
17179 grep -v '^ *+' conftest.er1 >conftest.err
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest.$ac_objext; then
17187 ac_header_compiler=yes
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17192 ac_header_compiler=no
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17197 echo "${ECHO_T}$ac_header_compiler" >&6; }
17199 # Is the header present?
17200 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17201 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #include <sys/capability.h>
17210 if { (ac_try="$ac_cpp conftest.$ac_ext"
17211 case "(($ac_try" in
17212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17213 *) ac_try_echo
=$ac_try;;
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17218 grep -v '^ *+' conftest.er1
>conftest.err
17220 cat conftest.err
>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } >/dev
/null
&& {
17223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17224 test ! -s conftest.err
17226 ac_header_preproc
=yes
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.
$ac_ext >&5
17231 ac_header_preproc
=no
17234 rm -f conftest.err conftest.
$ac_ext
17235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17236 echo "${ECHO_T}$ac_header_preproc" >&6; }
17238 # So? What about this header?
17239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17241 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17242 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17243 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17244 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17245 ac_header_preproc
=yes
17248 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17249 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17250 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17251 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17253 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17255 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17256 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17257 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17259 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17261 ## ------------------------------- ##
17262 ## Report this to www.asterisk.org ##
17263 ## ------------------------------- ##
17265 ) |
sed "s/^/$as_me: WARNING: /" >&2
17268 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17269 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17270 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 ac_cv_header_sys_capability_h
=$ac_header_preproc
17275 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17276 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17279 if test $ac_cv_header_sys_capability_h = yes; then
17288 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17289 if test -n "${CAP_MANDATORY}" ;
17291 { echo "$as_me:$LINENO: ***" >&5
17292 echo "$as_me: ***" >&6;}
17293 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17294 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17295 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17296 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17297 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17298 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17307 cat >>confdefs.h
<<_ACEOF
17312 elif test -n "${CAP_MANDATORY}";
17314 { echo "$as_me:$LINENO: ***" >&5
17315 echo "$as_me: ***" >&6;}
17316 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17317 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17318 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17319 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17320 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17321 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17329 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17330 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17331 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17332 saved_cppflags
="${CPPFLAGS}"
17333 if test "x${GETIFADDRS_DIR}" != "x"; then
17334 GETIFADDRS_INCLUDE
="-I${GETIFADDRS_DIR}/include"
17336 CPPFLAGS
="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17338 cat >conftest.
$ac_ext <<_ACEOF
17341 cat confdefs.h
>>conftest.
$ac_ext
17342 cat >>conftest.
$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 #include <ifaddrs.h>
17348 struct ifaddrs *p; getifaddrs(&p);
17354 rm -f conftest.
$ac_objext
17355 if { (ac_try
="$ac_compile"
17356 case "(($ac_try" in
17357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_compile") 2>conftest.er1
17363 grep -v '^ *+' conftest.er1 >conftest.err
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } && {
17368 test -z "$ac_c_werror_flag" ||
17369 test ! -s conftest.err
17370 } && test -s conftest.$ac_objext; then
17371 { echo "$as_me:$LINENO: result: yes" >&5
17372 echo "${ECHO_T}yes" >&6; }
17375 cat >>confdefs.h <<\_ACEOF
17376 #define HAVE_GETIFADDRS 1
17380 cat >>confdefs.h <<\_ACEOF
17381 #define HAVE_GETIFADDRS_VERSION
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17389 { echo "$as_me:$LINENO: result: no" >&5
17390 echo "${ECHO_T}no" >&6; }
17394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17395 CPPFLAGS="${saved_cppflags}"
17402 if test "${USE_GSM}" != "no"; then
17403 if test "${GSM_DIR}" = "internal"; then
17405 elif test "${GSM_DIR}" != ""; then
17408 if test "${GSM_SYSTEM}" = "yes"; then
17410 if test "x${GSM_DIR}" != "x"; then
17411 if test -d ${GSM_DIR}/lib; then
17412 gsmlibdir="-L${GSM_DIR}/lib"
17414 gsmlibdir="-L${GSM_DIR}"
17417 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17418 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17419 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17422 ac_check_lib_save_LIBS=$LIBS
17423 LIBS="-lgsm ${gsmlibdir} $LIBS"
17424 cat >conftest.$ac_ext <<_ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17431 /* Override any GCC internal prototype to avoid an error.
17432 Use char because int might match the return type of a GCC
17433 builtin and then its argument prototype would still apply. */
17437 char gsm_create ();
17441 return gsm_create ();
17446 rm -f conftest.$ac_objext conftest$ac_exeext
17447 if { (ac_try="$ac_link"
17448 case "(($ac_try" in
17449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17450 *) ac_try_echo
=$ac_try;;
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_link") 2>conftest.er1
17455 grep -v '^ *+' conftest.er1
>conftest.err
17457 cat conftest.err
>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } && {
17460 test -z "$ac_c_werror_flag" ||
17461 test ! -s conftest.err
17462 } && test -s conftest
$ac_exeext &&
17463 $as_test_x conftest
$ac_exeext; then
17464 ac_cv_lib_gsm_gsm_create
=yes
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.
$ac_ext >&5
17469 ac_cv_lib_gsm_gsm_create
=no
17472 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17473 conftest
$ac_exeext conftest.
$ac_ext
17474 LIBS
=$ac_check_lib_save_LIBS
17476 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17477 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17478 if test $ac_cv_lib_gsm_gsm_create = yes; then
17480 cat >>confdefs.h
<<_ACEOF
17486 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17487 if test "x${GSM_DIR}" != "x" ; then
17488 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17489 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17490 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17491 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17492 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 ac_res
=`eval echo '${'$as_ac_Header'}'`
17496 { echo "$as_me:$LINENO: result: $ac_res" >&5
17497 echo "${ECHO_T}$ac_res" >&6; }
17499 # Is the header compilable?
17500 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17501 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17502 cat >conftest.
$ac_ext <<_ACEOF
17505 cat confdefs.h
>>conftest.
$ac_ext
17506 cat >>conftest.
$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 $ac_includes_default
17509 #include <${GSM_DIR}/include/gsm.h>
17511 rm -f conftest.
$ac_objext
17512 if { (ac_try
="$ac_compile"
17513 case "(($ac_try" in
17514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_compile") 2>conftest.er1
17520 grep -v '^ *+' conftest.er1 >conftest.err
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest.$ac_objext; then
17528 ac_header_compiler=yes
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 ac_header_compiler=no
17536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17538 echo "${ECHO_T}$ac_header_compiler" >&6; }
17540 # Is the header present?
17541 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17542 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17543 cat >conftest.$ac_ext <<_ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549 #include <${GSM_DIR}/include/gsm.h>
17551 if { (ac_try="$ac_cpp conftest.$ac_ext"
17552 case "(($ac_try" in
17553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17554 *) ac_try_echo
=$ac_try;;
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17559 grep -v '^ *+' conftest.er1
>conftest.err
17561 cat conftest.err
>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } >/dev
/null
&& {
17564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17565 test ! -s conftest.err
17567 ac_header_preproc
=yes
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.
$ac_ext >&5
17572 ac_header_preproc
=no
17575 rm -f conftest.err conftest.
$ac_ext
17576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17577 echo "${ECHO_T}$ac_header_preproc" >&6; }
17579 # So? What about this header?
17580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17582 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17583 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17584 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17585 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17586 ac_header_preproc
=yes
17589 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17590 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17591 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17592 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17593 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17594 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17595 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17596 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17597 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17598 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17599 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17600 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17602 ## ------------------------------- ##
17603 ## Report this to www.asterisk.org ##
17604 ## ------------------------------- ##
17606 ) |
sed "s/^/$as_me: WARNING: /" >&2
17609 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17610 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17611 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 eval "$as_ac_Header=\$ac_header_preproc"
17616 ac_res
=`eval echo '${'$as_ac_Header'}'`
17617 { echo "$as_me:$LINENO: result: $ac_res" >&5
17618 echo "${ECHO_T}$ac_res" >&6; }
17621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17628 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17629 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17630 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17631 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17632 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17635 ac_res
=`eval echo '${'$as_ac_Header'}'`
17636 { echo "$as_me:$LINENO: result: $ac_res" >&5
17637 echo "${ECHO_T}$ac_res" >&6; }
17639 # Is the header compilable?
17640 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17641 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17642 cat >conftest.
$ac_ext <<_ACEOF
17645 cat confdefs.h
>>conftest.
$ac_ext
17646 cat >>conftest.
$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17648 $ac_includes_default
17649 #include <${GSM_DIR}/include/gsm/gsm.h>
17651 rm -f conftest.
$ac_objext
17652 if { (ac_try
="$ac_compile"
17653 case "(($ac_try" in
17654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17655 *) ac_try_echo=$ac_try;;
17657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658 (eval "$ac_compile") 2>conftest.er1
17660 grep -v '^ *+' conftest.er1 >conftest.err
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } && {
17665 test -z "$ac_c_werror_flag" ||
17666 test ! -s conftest.err
17667 } && test -s conftest.$ac_objext; then
17668 ac_header_compiler=yes
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17673 ac_header_compiler=no
17676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17678 echo "${ECHO_T}$ac_header_compiler" >&6; }
17680 # Is the header present?
17681 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17682 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 #include <${GSM_DIR}/include/gsm/gsm.h>
17691 if { (ac_try="$ac_cpp conftest.$ac_ext"
17692 case "(($ac_try" in
17693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17694 *) ac_try_echo
=$ac_try;;
17696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17699 grep -v '^ *+' conftest.er1
>conftest.err
17701 cat conftest.err
>&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } >/dev
/null
&& {
17704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17705 test ! -s conftest.err
17707 ac_header_preproc
=yes
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.
$ac_ext >&5
17712 ac_header_preproc
=no
17715 rm -f conftest.err conftest.
$ac_ext
17716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17717 echo "${ECHO_T}$ac_header_preproc" >&6; }
17719 # So? What about this header?
17720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17722 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17723 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17724 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17725 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17726 ac_header_preproc
=yes
17729 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17730 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17731 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17732 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17733 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17734 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17735 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17736 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17737 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17738 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17739 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17740 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17742 ## ------------------------------- ##
17743 ## Report this to www.asterisk.org ##
17744 ## ------------------------------- ##
17746 ) |
sed "s/^/$as_me: WARNING: /" >&2
17749 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17750 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17751 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 eval "$as_ac_Header=\$ac_header_preproc"
17756 ac_res
=`eval echo '${'$as_ac_Header'}'`
17757 { echo "$as_me:$LINENO: result: $ac_res" >&5
17758 echo "${ECHO_T}$ac_res" >&6; }
17761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17762 GSM_GSM_HEADER_FOUND
=1
17764 GSM_GSM_HEADER_FOUND
=0
17769 if test "${ac_cv_header_gsm_h+set}" = set; then
17770 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17771 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17772 if test "${ac_cv_header_gsm_h+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17776 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17778 # Is the header compilable?
17779 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17780 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17781 cat >conftest.
$ac_ext <<_ACEOF
17784 cat confdefs.h
>>conftest.
$ac_ext
17785 cat >>conftest.
$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17787 $ac_includes_default
17790 rm -f conftest.
$ac_objext
17791 if { (ac_try
="$ac_compile"
17792 case "(($ac_try" in
17793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_compile") 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } && {
17804 test -z "$ac_c_werror_flag" ||
17805 test ! -s conftest.err
17806 } && test -s conftest.$ac_objext; then
17807 ac_header_compiler=yes
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 ac_header_compiler=no
17815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17817 echo "${ECHO_T}$ac_header_compiler" >&6; }
17819 # Is the header present?
17820 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17821 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17822 cat >conftest.$ac_ext <<_ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17830 if { (ac_try="$ac_cpp conftest.$ac_ext"
17831 case "(($ac_try" in
17832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17833 *) ac_try_echo
=$ac_try;;
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17838 grep -v '^ *+' conftest.er1
>conftest.err
17840 cat conftest.err
>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } >/dev
/null
&& {
17843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17844 test ! -s conftest.err
17846 ac_header_preproc
=yes
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.
$ac_ext >&5
17851 ac_header_preproc
=no
17854 rm -f conftest.err conftest.
$ac_ext
17855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17856 echo "${ECHO_T}$ac_header_preproc" >&6; }
17858 # So? What about this header?
17859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17861 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17862 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17863 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17864 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17865 ac_header_preproc
=yes
17868 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17869 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17870 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17871 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17872 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17873 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17874 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17875 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17876 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17877 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17878 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17879 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17881 ## ------------------------------- ##
17882 ## Report this to www.asterisk.org ##
17883 ## ------------------------------- ##
17885 ) |
sed "s/^/$as_me: WARNING: /" >&2
17888 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17889 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17890 if test "${ac_cv_header_gsm_h+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 ac_cv_header_gsm_h
=$ac_header_preproc
17895 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17896 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17899 if test $ac_cv_header_gsm_h = yes; then
17906 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17907 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17908 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17909 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17913 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17915 # Is the header compilable?
17916 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17917 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17918 cat >conftest.
$ac_ext <<_ACEOF
17921 cat confdefs.h
>>conftest.
$ac_ext
17922 cat >>conftest.
$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924 $ac_includes_default
17925 #include <gsm/gsm.h>
17927 rm -f conftest.
$ac_objext
17928 if { (ac_try
="$ac_compile"
17929 case "(($ac_try" in
17930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_compile") 2>conftest.er1
17936 grep -v '^ *+' conftest.er1 >conftest.err
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } && {
17941 test -z "$ac_c_werror_flag" ||
17942 test ! -s conftest.err
17943 } && test -s conftest.$ac_objext; then
17944 ac_header_compiler=yes
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17949 ac_header_compiler=no
17952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17954 echo "${ECHO_T}$ac_header_compiler" >&6; }
17956 # Is the header present?
17957 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17958 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17959 cat >conftest.$ac_ext <<_ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965 #include <gsm/gsm.h>
17967 if { (ac_try="$ac_cpp conftest.$ac_ext"
17968 case "(($ac_try" in
17969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17970 *) ac_try_echo
=$ac_try;;
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17975 grep -v '^ *+' conftest.er1
>conftest.err
17977 cat conftest.err
>&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } >/dev
/null
&& {
17980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17981 test ! -s conftest.err
17983 ac_header_preproc
=yes
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.
$ac_ext >&5
17988 ac_header_preproc
=no
17991 rm -f conftest.err conftest.
$ac_ext
17992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17993 echo "${ECHO_T}$ac_header_preproc" >&6; }
17995 # So? What about this header?
17996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17998 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17999 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18000 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
18001 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
18002 ac_header_preproc
=yes
18005 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
18006 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
18007 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
18008 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
18009 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
18010 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
18011 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
18012 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18013 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
18014 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
18015 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
18016 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
18018 ## ------------------------------- ##
18019 ## Report this to www.asterisk.org ##
18020 ## ------------------------------- ##
18022 ) |
sed "s/^/$as_me: WARNING: /" >&2
18025 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
18026 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
18027 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 ac_cv_header_gsm_gsm_h
=$ac_header_preproc
18032 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
18033 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
18036 if test $ac_cv_header_gsm_gsm_h = yes; then
18037 GSM_GSM_HEADER_FOUND
=1
18039 GSM_GSM_HEADER_FOUND
=0
18044 if test "${GSM_HEADER_FOUND}" = "0" ; then
18045 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
18046 if test "x${GSM_MANDATORY}" = "xyes" ; then
18047 { echo "$as_me:$LINENO: ***" >&5
18048 echo "$as_me: ***" >&6;}
18049 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
18050 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
18051 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
18052 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
18053 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
18054 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
18060 if test "${GSM_HEADER_FOUND}" = "1" ; then
18062 cat >>confdefs.h
<<_ACEOF
18063 #define HAVE_GSM_HEADER 1
18068 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
18070 cat >>confdefs.h
<<_ACEOF
18071 #define HAVE_GSM_GSM_HEADER 1
18077 if test "${GSM_OK}" = "1" ; then
18079 if test "x${GSM_DIR}" != "x"; then
18080 GSM_LIB
="${gsmlibdir} ${GSM_LIB}"
18081 GSM_INCLUDE
="-I${GSM_DIR}/include"
18088 if test "${GSM_INTERNAL}" = "yes"; then
18091 cat >>confdefs.h
<<_ACEOF
18092 #define HAVE_GSM_HEADER 1
18099 if test "${USE_IKSEMEL}" != "no"; then
18101 if test "x${IKSEMEL_DIR}" != "x"; then
18102 if test -d ${IKSEMEL_DIR}/lib
; then
18103 pbxlibdir
="-L${IKSEMEL_DIR}/lib"
18105 pbxlibdir
="-L${IKSEMEL_DIR}"
18108 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18109 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18110 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18113 ac_check_lib_save_LIBS
=$LIBS
18114 LIBS
="-liksemel ${pbxlibdir} $LIBS"
18115 cat >conftest.
$ac_ext <<_ACEOF
18118 cat confdefs.h
>>conftest.
$ac_ext
18119 cat >>conftest.
$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18122 /* Override any GCC internal prototype to avoid an error.
18123 Use char because int might match the return type of a GCC
18124 builtin and then its argument prototype would still apply. */
18128 char iks_start_sasl ();
18132 return iks_start_sasl ();
18137 rm -f conftest.
$ac_objext conftest
$ac_exeext
18138 if { (ac_try
="$ac_link"
18139 case "(($ac_try" in
18140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18141 *) ac_try_echo=$ac_try;;
18143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18144 (eval "$ac_link") 2>conftest.er1
18146 grep -v '^ *+' conftest.er1 >conftest.err
18148 cat conftest.err >&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } && {
18151 test -z "$ac_c_werror_flag" ||
18152 test ! -s conftest.err
18153 } && test -s conftest$ac_exeext &&
18154 $as_test_x conftest$ac_exeext; then
18155 ac_cv_lib_iksemel_iks_start_sasl=yes
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 ac_cv_lib_iksemel_iks_start_sasl=no
18163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18164 conftest$ac_exeext conftest.$ac_ext
18165 LIBS=$ac_check_lib_save_LIBS
18167 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18168 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18169 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18170 AST_IKSEMEL_FOUND=yes
18172 AST_IKSEMEL_FOUND=no
18176 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18177 IKSEMEL_LIB="-liksemel "
18178 IKSEMEL_HEADER_FOUND="1"
18179 if test "x${IKSEMEL_DIR}" != "x"; then
18180 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
18181 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
18182 saved_cppflags="${CPPFLAGS}"
18183 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
18184 if test "xiksemel.h" != "x" ; then
18185 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" |
$as_tr_sh`
18186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18187 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18188 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 ac_res=`eval echo '${'$as_ac_Header'}'`
18193 { echo "$as_me:$LINENO: result: $ac_res" >&5
18194 echo "${ECHO_T}$ac_res" >&6; }
18196 # Is the header compilable?
18197 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
18198 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
18199 cat >conftest.$ac_ext <<_ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18205 $ac_includes_default
18206 #include <${IKSEMEL_DIR}/include/iksemel.h>
18208 rm -f conftest.$ac_objext
18209 if { (ac_try="$ac_compile"
18210 case "(($ac_try" in
18211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18212 *) ac_try_echo
=$ac_try;;
18214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215 (eval "$ac_compile") 2>conftest.er1
18217 grep -v '^ *+' conftest.er1
>conftest.err
18219 cat conftest.err
>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } && {
18222 test -z "$ac_c_werror_flag" ||
18223 test ! -s conftest.err
18224 } && test -s conftest.
$ac_objext; then
18225 ac_header_compiler
=yes
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.
$ac_ext >&5
18230 ac_header_compiler
=no
18233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18235 echo "${ECHO_T}$ac_header_compiler" >&6; }
18237 # Is the header present?
18238 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
18239 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
18240 cat >conftest.
$ac_ext <<_ACEOF
18243 cat confdefs.h
>>conftest.
$ac_ext
18244 cat >>conftest.
$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 #include <${IKSEMEL_DIR}/include/iksemel.h>
18248 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18249 case "(($ac_try" in
18250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18256 grep -v '^ *+' conftest.er1 >conftest.err
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } >/dev/null && {
18261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18262 test ! -s conftest.err
18264 ac_header_preproc=yes
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18269 ac_header_preproc=no
18272 rm -f conftest.err conftest.$ac_ext
18273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18274 echo "${ECHO_T}$ac_header_preproc" >&6; }
18276 # So? What about this header?
18277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18279 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18280 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18281 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
18282 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
18283 ac_header_preproc=yes
18286 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
18287 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
18288 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
18289 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
18290 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
18291 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
18292 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18293 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18294 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
18295 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
18296 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
18297 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
18299 ## ------------------------------- ##
18300 ## Report this to www.asterisk.org ##
18301 ## ------------------------------- ##
18303 ) | sed "s/^/$as_me: WARNING: /" >&2
18306 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18307 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 eval "$as_ac_Header=\$ac_header_preproc"
18313 ac_res=`eval echo '${'$as_ac_Header'}'`
18314 { echo "$as_me:$LINENO: result: $ac_res" >&5
18315 echo "${ECHO_T}$ac_res" >&6; }
18318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18319 IKSEMEL_HEADER_FOUND=1
18321 IKSEMEL_HEADER_FOUND=0
18326 CPPFLAGS="${saved_cppflags}"
18328 if test "xiksemel.h" != "x" ; then
18329 if test "${ac_cv_header_iksemel_h+set}" = set; then
18330 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18331 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18332 if test "${ac_cv_header_iksemel_h+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18336 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18338 # Is the header compilable?
18339 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18340 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18341 cat >conftest.$ac_ext <<_ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18347 $ac_includes_default
18348 #include <iksemel.h>
18350 rm -f conftest.$ac_objext
18351 if { (ac_try="$ac_compile"
18352 case "(($ac_try" in
18353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18354 *) ac_try_echo
=$ac_try;;
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_compile") 2>conftest.er1
18359 grep -v '^ *+' conftest.er1
>conftest.err
18361 cat conftest.err
>&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } && {
18364 test -z "$ac_c_werror_flag" ||
18365 test ! -s conftest.err
18366 } && test -s conftest.
$ac_objext; then
18367 ac_header_compiler
=yes
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.
$ac_ext >&5
18372 ac_header_compiler
=no
18375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18377 echo "${ECHO_T}$ac_header_compiler" >&6; }
18379 # Is the header present?
18380 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18381 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18382 cat >conftest.
$ac_ext <<_ACEOF
18385 cat confdefs.h
>>conftest.
$ac_ext
18386 cat >>conftest.
$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18388 #include <iksemel.h>
18390 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18391 case "(($ac_try" in
18392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18398 grep -v '^ *+' conftest.er1 >conftest.err
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } >/dev/null && {
18403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18404 test ! -s conftest.err
18406 ac_header_preproc=yes
18408 echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18411 ac_header_preproc=no
18414 rm -f conftest.err conftest.$ac_ext
18415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18416 echo "${ECHO_T}$ac_header_preproc" >&6; }
18418 # So? What about this header?
18419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18421 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18422 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18423 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18424 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18425 ac_header_preproc=yes
18428 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18429 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18431 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18433 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18435 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18436 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18437 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18438 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18439 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18441 ## ------------------------------- ##
18442 ## Report this to www.asterisk.org ##
18443 ## ------------------------------- ##
18445 ) | sed "s/^/$as_me: WARNING: /" >&2
18448 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18449 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18450 if test "${ac_cv_header_iksemel_h+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 ac_cv_header_iksemel_h=$ac_header_preproc
18455 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18456 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18459 if test $ac_cv_header_iksemel_h = yes; then
18460 IKSEMEL_HEADER_FOUND=1
18462 IKSEMEL_HEADER_FOUND=0
18468 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18469 if test -n "${IKSEMEL_MANDATORY}" ;
18471 { echo "$as_me:$LINENO: ***" >&5
18472 echo "$as_me: ***" >&6;}
18473 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18474 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18475 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18476 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18477 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18478 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18487 cat >>confdefs.h <<_ACEOF
18488 #define HAVE_IKSEMEL 1
18492 elif test -n "${IKSEMEL_MANDATORY}";
18494 { echo "$as_me:$LINENO: ***" >&5
18495 echo "$as_me: ***" >&6;}
18496 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18497 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18498 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18499 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18500 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18501 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18507 if test "${PBX_IKSEMEL}" = 1; then
18509 if test "${USE_GNUTLS}" != "no"; then
18511 if test "x${GNUTLS_DIR}" != "x"; then
18512 if test -d ${GNUTLS_DIR}/lib; then
18513 pbxlibdir="-L${GNUTLS_DIR}/lib"
18515 pbxlibdir="-L${GNUTLS_DIR}"
18518 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18519 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18520 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 ac_check_lib_save_LIBS=$LIBS
18524 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18525 cat >conftest.$ac_ext <<_ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18538 char gnutls_bye ();
18542 return gnutls_bye ();
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (ac_try="$ac_link"
18549 case "(($ac_try" in
18550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18551 *) ac_try_echo
=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_link") 2>conftest.er1
18556 grep -v '^ *+' conftest.er1
>conftest.err
18558 cat conftest.err
>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } && {
18561 test -z "$ac_c_werror_flag" ||
18562 test ! -s conftest.err
18563 } && test -s conftest
$ac_exeext &&
18564 $as_test_x conftest
$ac_exeext; then
18565 ac_cv_lib_gnutls_gnutls_bye
=yes
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.
$ac_ext >&5
18570 ac_cv_lib_gnutls_gnutls_bye
=no
18573 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18574 conftest
$ac_exeext conftest.
$ac_ext
18575 LIBS
=$ac_check_lib_save_LIBS
18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18578 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18579 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18580 AST_GNUTLS_FOUND
=yes
18582 AST_GNUTLS_FOUND
=no
18586 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18587 GNUTLS_LIB
="-lgnutls -lz -lgcrypt -lgpg-error"
18588 GNUTLS_HEADER_FOUND
="1"
18589 if test "x${GNUTLS_DIR}" != "x"; then
18590 GNUTLS_LIB
="${pbxlibdir} ${GNUTLS_LIB}"
18591 GNUTLS_INCLUDE
="-I${GNUTLS_DIR}/include"
18592 saved_cppflags
="${CPPFLAGS}"
18593 CPPFLAGS
="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18594 if test "xgnutls/gnutls.h" != "x" ; then
18595 as_ac_Header
=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18596 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18597 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18598 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18599 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18600 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 ac_res
=`eval echo '${'$as_ac_Header'}'`
18603 { echo "$as_me:$LINENO: result: $ac_res" >&5
18604 echo "${ECHO_T}$ac_res" >&6; }
18606 # Is the header compilable?
18607 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18608 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18609 cat >conftest.
$ac_ext <<_ACEOF
18612 cat confdefs.h
>>conftest.
$ac_ext
18613 cat >>conftest.
$ac_ext <<_ACEOF
18614 /* end confdefs.h. */
18615 $ac_includes_default
18616 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18618 rm -f conftest.
$ac_objext
18619 if { (ac_try
="$ac_compile"
18620 case "(($ac_try" in
18621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_compile") 2>conftest.er1
18627 grep -v '^ *+' conftest.er1 >conftest.err
18629 cat conftest.err >&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } && {
18632 test -z "$ac_c_werror_flag" ||
18633 test ! -s conftest.err
18634 } && test -s conftest.$ac_objext; then
18635 ac_header_compiler=yes
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18640 ac_header_compiler=no
18643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18645 echo "${ECHO_T}$ac_header_compiler" >&6; }
18647 # Is the header present?
18648 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18649 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18650 cat >conftest.$ac_ext <<_ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18656 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18658 if { (ac_try="$ac_cpp conftest.$ac_ext"
18659 case "(($ac_try" in
18660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18661 *) ac_try_echo
=$ac_try;;
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18666 grep -v '^ *+' conftest.er1
>conftest.err
18668 cat conftest.err
>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } >/dev
/null
&& {
18671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18672 test ! -s conftest.err
18674 ac_header_preproc
=yes
18676 echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.
$ac_ext >&5
18679 ac_header_preproc
=no
18682 rm -f conftest.err conftest.
$ac_ext
18683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18684 echo "${ECHO_T}$ac_header_preproc" >&6; }
18686 # So? What about this header?
18687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18689 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18690 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18691 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18692 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18693 ac_header_preproc
=yes
18696 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18697 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18698 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18699 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18700 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18701 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18702 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18703 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18704 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18705 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18706 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18707 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18709 ## ------------------------------- ##
18710 ## Report this to www.asterisk.org ##
18711 ## ------------------------------- ##
18713 ) |
sed "s/^/$as_me: WARNING: /" >&2
18716 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18717 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18718 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18721 eval "$as_ac_Header=\$ac_header_preproc"
18723 ac_res
=`eval echo '${'$as_ac_Header'}'`
18724 { echo "$as_me:$LINENO: result: $ac_res" >&5
18725 echo "${ECHO_T}$ac_res" >&6; }
18728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18729 GNUTLS_HEADER_FOUND
=1
18731 GNUTLS_HEADER_FOUND
=0
18736 CPPFLAGS
="${saved_cppflags}"
18738 if test "xgnutls/gnutls.h" != "x" ; then
18739 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18740 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18741 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18742 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18746 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18748 # Is the header compilable?
18749 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18750 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18751 cat >conftest.
$ac_ext <<_ACEOF
18754 cat confdefs.h
>>conftest.
$ac_ext
18755 cat >>conftest.
$ac_ext <<_ACEOF
18756 /* end confdefs.h. */
18757 $ac_includes_default
18758 #include <gnutls/gnutls.h>
18760 rm -f conftest.
$ac_objext
18761 if { (ac_try
="$ac_compile"
18762 case "(($ac_try" in
18763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_compile") 2>conftest.er1
18769 grep -v '^ *+' conftest.er1 >conftest.err
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } && {
18774 test -z "$ac_c_werror_flag" ||
18775 test ! -s conftest.err
18776 } && test -s conftest.$ac_objext; then
18777 ac_header_compiler=yes
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 ac_header_compiler=no
18785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18787 echo "${ECHO_T}$ac_header_compiler" >&6; }
18789 # Is the header present?
18790 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18791 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18792 cat >conftest.$ac_ext <<_ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 #include <gnutls/gnutls.h>
18800 if { (ac_try="$ac_cpp conftest.$ac_ext"
18801 case "(($ac_try" in
18802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18803 *) ac_try_echo
=$ac_try;;
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18808 grep -v '^ *+' conftest.er1
>conftest.err
18810 cat conftest.err
>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } >/dev
/null
&& {
18813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18814 test ! -s conftest.err
18816 ac_header_preproc
=yes
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.
$ac_ext >&5
18821 ac_header_preproc
=no
18824 rm -f conftest.err conftest.
$ac_ext
18825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18826 echo "${ECHO_T}$ac_header_preproc" >&6; }
18828 # So? What about this header?
18829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18831 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18832 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18833 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18834 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18835 ac_header_preproc
=yes
18838 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18839 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18840 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18841 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18842 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18843 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18844 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18845 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18846 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18847 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18848 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18849 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18851 ## ------------------------------- ##
18852 ## Report this to www.asterisk.org ##
18853 ## ------------------------------- ##
18855 ) |
sed "s/^/$as_me: WARNING: /" >&2
18858 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18859 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18860 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18863 ac_cv_header_gnutls_gnutls_h
=$ac_header_preproc
18865 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18866 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18869 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18870 GNUTLS_HEADER_FOUND
=1
18872 GNUTLS_HEADER_FOUND
=0
18878 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18879 if test -n "${GNUTLS_MANDATORY}" ;
18881 { echo "$as_me:$LINENO: ***" >&5
18882 echo "$as_me: ***" >&6;}
18883 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18884 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18885 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18886 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18887 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18888 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18897 cat >>confdefs.h
<<_ACEOF
18898 #define HAVE_GNUTLS 1
18902 elif test -n "${GNUTLS_MANDATORY}";
18904 { echo "$as_me:$LINENO: ***" >&5
18905 echo "$as_me: ***" >&6;}
18906 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18907 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18908 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18909 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18910 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18911 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18918 if test "${USE_IMAP_TK}" != "no"; then
18919 saved_cppflags
="${CPPFLAGS}"
18920 saved_libs
="${LIBS}"
18921 switch_to_system_on_failure
="no"
18922 if test "${IMAP_TK_DIR}" = ""; then
18923 IMAP_TK_DIR
=`pwd`"/../imap-2004g"
18924 switch_to_system_on_failure
="yes"
18926 if test "${IMAP_TK_DIR}" != "system"; then
18927 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18928 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18929 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
18930 imap_ldflags
=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18932 imap_libs
="${IMAP_TK_DIR}/c-client/c-client.a"
18933 imap_include
="-I${IMAP_TK_DIR}/c-client"
18934 CPPFLAGS
="${CPPFLAGS} ${imap_include}"
18935 LIBS
="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18936 cat >conftest.$ac_ext <<_ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18942 #include "c-client.h
"
18943 void mm_searched (MAILSTREAM *stream,unsigned long number)
18946 void mm_exists (MAILSTREAM *stream,unsigned long number)
18949 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18952 void mm_flags (MAILSTREAM *stream,unsigned long number)
18955 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18958 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18961 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18964 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18967 void mm_log (char *string,long errflg)
18970 void mm_dlog (char *string)
18973 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18976 void mm_critical (MAILSTREAM *stream)
18979 void mm_nocritical (MAILSTREAM *stream)
18982 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18985 void mm_fatal (char *string)
18992 MAILSTREAM *foo = mail_open(NULL, "", 0);
18999 rm -f conftest.$ac_objext conftest$ac_exeext
19000 if { (ac_try="$ac_link"
19001 case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_link") 2>conftest.er1
19008 grep -v '^ *+' conftest.er1 >conftest.err
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19012 (exit $ac_status); } && {
19013 test -z "$ac_c_werror_flag" ||
19014 test ! -s conftest.err
19015 } && test -s conftest$ac_exeext &&
19016 $as_test_x conftest$ac_exeext; then
19017 ac_cv_imap_tk="yes"
19019 echo "$as_me: failed program was
:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19027 conftest$ac_exeext conftest.$ac_ext
19028 if test "${ac_cv_imap_tk}" = "yes"; then
19029 cat >conftest.$ac_ext <<_ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h. */
19035 #include "c-client.h
"
19036 void mm_searched (MAILSTREAM *stream,unsigned long number)
19039 void mm_exists (MAILSTREAM *stream,unsigned long number)
19042 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19045 void mm_flags (MAILSTREAM *stream,unsigned long number)
19048 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19051 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19054 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19057 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19060 void mm_log (char *string,long errflg)
19063 void mm_dlog (char *string)
19066 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19069 void mm_critical (MAILSTREAM *stream)
19072 void mm_nocritical (MAILSTREAM *stream)
19075 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19078 void mm_fatal (char *string)
19085 long check = mail_expunge_full(NULL, "", 0);
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (ac_try="$ac_link"
19094 case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_link") 2>conftest.er1
19101 grep -v '^ *+' conftest.er1 >conftest.err
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19105 (exit $ac_status); } && {
19106 test -z "$ac_c_werror_flag" ||
19107 test ! -s conftest.err
19108 } && test -s conftest$ac_exeext &&
19109 $as_test_x conftest$ac_exeext; then
19110 ac_cv_imap_tk2006="yes"
19112 echo "$as_me: failed program was
:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19115 ac_cv_imap_tk2006="no
"
19119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19120 conftest$ac_exeext conftest.$ac_ext
19122 CPPFLAGS="${saved_cppflags}"
19123 LIBS="${saved_libs}"
19124 if test "${ac_cv_imap_tk}" = "no
"; then
19125 { echo "$as_me:$LINENO: result
: no
" >&5
19126 echo "${ECHO_T}no
" >&6; }
19127 if test "${switch_to_system_on_failure}" = "yes"; then
19128 IMAP_TK_DIR="system
"
19129 else #This means they specified a directory. Search for a package installation there too
19130 { echo "$as_me:$LINENO: checking
for system c-client library...
" >&5
19131 echo $ECHO_N "checking
for system c-client library......
$ECHO_C" >&6; }
19132 CPPFLAGS="${saved_cppflags}"
19133 LIBS="${saved_libs}"
19134 imap_include="-I${IMAP_TK_DIR}/include
"
19135 imap_ldflags="-L${IMAP_TK_DIR}/lib
"
19136 imap_libs="-lc-client"
19137 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19138 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
19139 cat >conftest.$ac_ext <<_ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145 #include "c-client.h
"
19146 void mm_searched (MAILSTREAM *stream,unsigned long number)
19149 void mm_exists (MAILSTREAM *stream,unsigned long number)
19152 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19155 void mm_flags (MAILSTREAM *stream,unsigned long number)
19158 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19161 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19164 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19167 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19170 void mm_log (char *string,long errflg)
19173 void mm_dlog (char *string)
19176 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19179 void mm_critical (MAILSTREAM *stream)
19182 void mm_nocritical (MAILSTREAM *stream)
19185 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19188 void mm_fatal (char *string)
19195 MAILSTREAM *foo = mail_open(NULL, "", 0);
19202 rm -f conftest.$ac_objext conftest$ac_exeext
19203 if { (ac_try="$ac_link"
19204 case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_link") 2>conftest.er1
19211 grep -v '^ *+' conftest.er1 >conftest.err
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19215 (exit $ac_status); } && {
19216 test -z "$ac_c_werror_flag" ||
19217 test ! -s conftest.err
19218 } && test -s conftest$ac_exeext &&
19219 $as_test_x conftest$ac_exeext; then
19220 ac_cv_imap_tk="yes"
19222 echo "$as_me: failed program was
:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19230 conftest$ac_exeext conftest.$ac_ext
19231 if test "${ac_cv_imap_tk}" = "yes"; then
19232 cat >conftest.$ac_ext <<_ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 #include "c-client.h
"
19239 void mm_searched (MAILSTREAM *stream,unsigned long number)
19242 void mm_exists (MAILSTREAM *stream,unsigned long number)
19245 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19248 void mm_flags (MAILSTREAM *stream,unsigned long number)
19251 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19254 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19257 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19260 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19263 void mm_log (char *string,long errflg)
19266 void mm_dlog (char *string)
19269 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19272 void mm_critical (MAILSTREAM *stream)
19275 void mm_nocritical (MAILSTREAM *stream)
19278 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19281 void mm_fatal (char *string)
19288 long check = mail_expunge_full(NULL, "", 0);
19295 rm -f conftest.$ac_objext conftest$ac_exeext
19296 if { (ac_try="$ac_link"
19297 case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_link") 2>conftest.er1
19304 grep -v '^ *+' conftest.er1 >conftest.err
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19308 (exit $ac_status); } && {
19309 test -z "$ac_c_werror_flag" ||
19310 test ! -s conftest.err
19311 } && test -s conftest$ac_exeext &&
19312 $as_test_x conftest$ac_exeext; then
19313 ac_cv_imap_tk2006="yes"
19315 echo "$as_me: failed program was
:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19318 ac_cv_imap_tk2006="no
"
19322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19323 conftest$ac_exeext conftest.$ac_ext
19328 if test "${IMAP_TK_DIR}" = "system
"; then
19329 #We will enter here if user specified "system
" or if any of above checks failed
19330 { echo "$as_me:$LINENO: checking
for system c-client library...
" >&5
19331 echo $ECHO_N "checking
for system c-client library......
$ECHO_C" >&6; }
19332 CPPFLAGS="${saved_cppflags}"
19333 LIBS="${saved_libs}"
19335 imap_libs="-lc-client"
19336 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
19337 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19338 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19339 cat >conftest.$ac_ext <<_ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19346 #include <imap/c-client.h>
19347 void mm_searched (MAILSTREAM *stream,unsigned long number)
19350 void mm_exists (MAILSTREAM *stream,unsigned long number)
19353 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19356 void mm_flags (MAILSTREAM *stream,unsigned long number)
19359 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19362 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19365 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19368 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19371 void mm_log (char *string,long errflg)
19374 void mm_dlog (char *string)
19377 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19380 void mm_critical (MAILSTREAM *stream)
19383 void mm_nocritical (MAILSTREAM *stream)
19386 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19389 void mm_fatal (char *string)
19396 MAILSTREAM *foo = mail_open(NULL, "", 0);
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (ac_try="$ac_link"
19405 case "(($ac_try" in
19406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19407 *) ac_try_echo
=$ac_try;;
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_link") 2>conftest.er1
19412 grep -v '^ *+' conftest.er1
>conftest.err
19414 cat conftest.err
>&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest
$ac_exeext &&
19420 $as_test_x conftest
$ac_exeext; then
19421 ac_cv_imap_tk
="yes"
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.
$ac_ext >&5
19430 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19431 conftest
$ac_exeext conftest.
$ac_ext
19432 if test "${ac_cv_imap_tk}" = "yes"; then
19433 cat >conftest.
$ac_ext <<_ACEOF
19436 cat confdefs.h
>>conftest.
$ac_ext
19437 cat >>conftest.
$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19440 #include <imap/c-client.h>
19441 void mm_searched (MAILSTREAM *stream,unsigned long number)
19444 void mm_exists (MAILSTREAM *stream,unsigned long number)
19447 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19450 void mm_flags (MAILSTREAM *stream,unsigned long number)
19453 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19456 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19459 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19462 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19465 void mm_log (char *string,long errflg)
19468 void mm_dlog (char *string)
19471 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19474 void mm_critical (MAILSTREAM *stream)
19477 void mm_nocritical (MAILSTREAM *stream)
19480 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19483 void mm_fatal (char *string)
19490 long check = mail_expunge_full(NULL, "", 0);
19497 rm -f conftest.
$ac_objext conftest
$ac_exeext
19498 if { (ac_try
="$ac_link"
19499 case "(($ac_try" in
19500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_link") 2>conftest.er1
19506 grep -v '^ *+' conftest.er1 >conftest.err
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } && {
19511 test -z "$ac_c_werror_flag" ||
19512 test ! -s conftest.err
19513 } && test -s conftest$ac_exeext &&
19514 $as_test_x conftest$ac_exeext; then
19515 ac_cv_imap_tk2006="yes"
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 ac_cv_imap_tk2006="no"
19524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19525 conftest$ac_exeext conftest.$ac_ext
19526 else #looking in imap directory didn't work, try c-client
19528 imap_libs="-lc-client"
19529 imap_include="-DUSE_SYSTEM_CCLIENT"
19530 CPPFLAGS="${saved_cppflags}"
19531 LIBS="${saved_libs}"
19532 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19533 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19534 cat >conftest.
$ac_ext <<_ACEOF
19537 cat confdefs.h
>>conftest.
$ac_ext
19538 cat >>conftest.
$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19541 #include <c-client/c-client.h>
19542 void mm_searched (MAILSTREAM *stream,unsigned long number)
19545 void mm_exists (MAILSTREAM *stream,unsigned long number)
19548 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19551 void mm_flags (MAILSTREAM *stream,unsigned long number)
19554 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19557 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19560 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19563 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19566 void mm_log (char *string,long errflg)
19569 void mm_dlog (char *string)
19572 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19575 void mm_critical (MAILSTREAM *stream)
19578 void mm_nocritical (MAILSTREAM *stream)
19581 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19584 void mm_fatal (char *string)
19591 MAILSTREAM *foo = mail_open(NULL, "", 0);
19598 rm -f conftest.
$ac_objext conftest
$ac_exeext
19599 if { (ac_try
="$ac_link"
19600 case "(($ac_try" in
19601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605 (eval "$ac_link") 2>conftest.er1
19607 grep -v '^ *+' conftest.er1 >conftest.err
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest$ac_exeext &&
19615 $as_test_x conftest$ac_exeext; then
19616 ac_cv_imap_tk="yes"
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19626 conftest$ac_exeext conftest.$ac_ext
19627 if test "${ac_cv_imap_tk}" = "yes"; then
19628 cat >conftest.$ac_ext <<_ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19635 #include <c-client/c-client.h>
19636 void mm_searched (MAILSTREAM *stream,unsigned long number)
19639 void mm_exists (MAILSTREAM *stream,unsigned long number)
19642 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19645 void mm_flags (MAILSTREAM *stream,unsigned long number)
19648 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19651 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19654 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19657 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19660 void mm_log (char *string,long errflg)
19663 void mm_dlog (char *string)
19666 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19669 void mm_critical (MAILSTREAM *stream)
19672 void mm_nocritical (MAILSTREAM *stream)
19675 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19678 void mm_fatal (char *string)
19685 long check = mail_expunge_full(NULL, "", 0);
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (ac_try="$ac_link"
19694 case "(($ac_try" in
19695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19696 *) ac_try_echo
=$ac_try;;
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_link") 2>conftest.er1
19701 grep -v '^ *+' conftest.er1
>conftest.err
19703 cat conftest.err
>&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } && {
19706 test -z "$ac_c_werror_flag" ||
19707 test ! -s conftest.err
19708 } && test -s conftest
$ac_exeext &&
19709 $as_test_x conftest
$ac_exeext; then
19710 ac_cv_imap_tk2006
="yes"
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.
$ac_ext >&5
19715 ac_cv_imap_tk2006
="no"
19719 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19720 conftest
$ac_exeext conftest.
$ac_ext
19724 if test "${ac_cv_imap_tk}" = "yes"; then
19725 { echo "$as_me:$LINENO: result: yes" >&5
19726 echo "${ECHO_T}yes" >&6; }
19727 IMAP_TK_LIB
="${imap_libs} "`echo ${imap_ldflags}`
19728 IMAP_TK_INCLUDE
="${imap_include}"
19731 cat >>confdefs.h
<<\_ACEOF
19732 #define HAVE_IMAP_TK 1
19735 if test "${ac_cv_imap_tk2006}" = "yes"; then
19737 cat >>confdefs.h
<<\_ACEOF
19738 #define HAVE_IMAP_TK2006 1
19742 elif test -n "${IMAP_TK_MANDATORY}"; then
19743 { echo "$as_me:$LINENO: result: no" >&5
19744 echo "${ECHO_T}no" >&6; }
19745 { echo "$as_me:$LINENO: ***" >&5
19746 echo "$as_me: ***" >&6;}
19747 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19748 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19749 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19750 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19751 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19752 echo "$as_me: *** including --without-imap." >&6;}
19755 { echo "$as_me:$LINENO: result: no" >&5
19756 echo "${ECHO_T}no" >&6; }
19758 CPPFLAGS
="${saved_cppflags}"
19759 LIBS
="${saved_libs}"
19762 # Needed by unixodbc
19764 if test "${USE_LTDL}" != "no"; then
19766 if test "x${LTDL_DIR}" != "x"; then
19767 if test -d ${LTDL_DIR}/lib
; then
19768 pbxlibdir
="-L${LTDL_DIR}/lib"
19770 pbxlibdir
="-L${LTDL_DIR}"
19773 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19774 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19775 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19778 ac_check_lib_save_LIBS
=$LIBS
19779 LIBS
="-lltdl ${pbxlibdir} $LIBS"
19780 cat >conftest.
$ac_ext <<_ACEOF
19783 cat confdefs.h
>>conftest.
$ac_ext
19784 cat >>conftest.
$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19787 /* Override any GCC internal prototype to avoid an error.
19788 Use char because int might match the return type of a GCC
19789 builtin and then its argument prototype would still apply. */
19797 return lt_dlinit ();
19802 rm -f conftest.
$ac_objext conftest
$ac_exeext
19803 if { (ac_try
="$ac_link"
19804 case "(($ac_try" in
19805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_link") 2>conftest.er1
19811 grep -v '^ *+' conftest.er1 >conftest.err
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest$ac_exeext &&
19819 $as_test_x conftest$ac_exeext; then
19820 ac_cv_lib_ltdl_lt_dlinit=yes
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_cv_lib_ltdl_lt_dlinit=no
19828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19829 conftest$ac_exeext conftest.$ac_ext
19830 LIBS=$ac_check_lib_save_LIBS
19832 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
19833 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
19834 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
19841 if test "${AST_LTDL_FOUND}" = "yes"; then
19843 LTDL_HEADER_FOUND="1"
19844 if test "x${LTDL_DIR}" != "x"; then
19845 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
19846 LTDL_INCLUDE="-I${LTDL_DIR}/include"
19847 saved_cppflags="${CPPFLAGS}"
19848 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
19849 if test "xltdl.h" != "x" ; then
19850 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" |
$as_tr_sh`
19851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19852 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19853 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 ac_res=`eval echo '${'$as_ac_Header'}'`
19858 { echo "$as_me:$LINENO: result: $ac_res" >&5
19859 echo "${ECHO_T}$ac_res" >&6; }
19861 # Is the header compilable?
19862 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
19863 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
19864 cat >conftest.$ac_ext <<_ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 $ac_includes_default
19871 #include <${LTDL_DIR}/include/ltdl.h>
19873 rm -f conftest.$ac_objext
19874 if { (ac_try="$ac_compile"
19875 case "(($ac_try" in
19876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19877 *) ac_try_echo
=$ac_try;;
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_compile") 2>conftest.er1
19882 grep -v '^ *+' conftest.er1
>conftest.err
19884 cat conftest.err
>&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } && {
19887 test -z "$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19889 } && test -s conftest.
$ac_objext; then
19890 ac_header_compiler
=yes
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.
$ac_ext >&5
19895 ac_header_compiler
=no
19898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19900 echo "${ECHO_T}$ac_header_compiler" >&6; }
19902 # Is the header present?
19903 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
19904 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
19905 cat >conftest.
$ac_ext <<_ACEOF
19908 cat confdefs.h
>>conftest.
$ac_ext
19909 cat >>conftest.
$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19911 #include <${LTDL_DIR}/include/ltdl.h>
19913 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19914 case "(($ac_try" in
19915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19921 grep -v '^ *+' conftest.er1 >conftest.err
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } >/dev/null && {
19926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19929 ac_header_preproc=yes
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 ac_header_preproc=no
19937 rm -f conftest.err conftest.$ac_ext
19938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19939 echo "${ECHO_T}$ac_header_preproc" >&6; }
19941 # So? What about this header?
19942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19944 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19945 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
19947 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
19948 ac_header_preproc=yes
19951 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
19952 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
19954 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
19956 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19958 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19959 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
19960 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
19961 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
19962 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
19964 ## ------------------------------- ##
19965 ## Report this to www.asterisk.org ##
19966 ## ------------------------------- ##
19968 ) | sed "s/^/$as_me: WARNING: /" >&2
19971 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19972 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19976 eval "$as_ac_Header=\$ac_header_preproc"
19978 ac_res=`eval echo '${'$as_ac_Header'}'`
19979 { echo "$as_me:$LINENO: result: $ac_res" >&5
19980 echo "${ECHO_T}$ac_res" >&6; }
19983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19984 LTDL_HEADER_FOUND=1
19986 LTDL_HEADER_FOUND=0
19991 CPPFLAGS="${saved_cppflags}"
19993 if test "xltdl.h" != "x" ; then
19994 if test "${ac_cv_header_ltdl_h+set}" = set; then
19995 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19996 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19997 if test "${ac_cv_header_ltdl_h+set}" = set; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
20000 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20001 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20003 # Is the header compilable?
20004 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
20005 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
20006 cat >conftest.$ac_ext <<_ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20012 $ac_includes_default
20015 rm -f conftest.$ac_objext
20016 if { (ac_try="$ac_compile"
20017 case "(($ac_try" in
20018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20019 *) ac_try_echo
=$ac_try;;
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_compile") 2>conftest.er1
20024 grep -v '^ *+' conftest.er1
>conftest.err
20026 cat conftest.err
>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } && {
20029 test -z "$ac_c_werror_flag" ||
20030 test ! -s conftest.err
20031 } && test -s conftest.
$ac_objext; then
20032 ac_header_compiler
=yes
20034 echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.
$ac_ext >&5
20037 ac_header_compiler
=no
20040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20042 echo "${ECHO_T}$ac_header_compiler" >&6; }
20044 # Is the header present?
20045 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
20046 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
20047 cat >conftest.
$ac_ext <<_ACEOF
20050 cat confdefs.h
>>conftest.
$ac_ext
20051 cat >>conftest.
$ac_ext <<_ACEOF
20052 /* end confdefs.h. */
20055 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20056 case "(($ac_try" in
20057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20063 grep -v '^ *+' conftest.er1 >conftest.err
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } >/dev/null && {
20068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20069 test ! -s conftest.err
20071 ac_header_preproc=yes
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20076 ac_header_preproc=no
20079 rm -f conftest.err conftest.$ac_ext
20080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20081 echo "${ECHO_T}$ac_header_preproc" >&6; }
20083 # So? What about this header?
20084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20086 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20087 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20088 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
20089 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
20090 ac_header_preproc=yes
20093 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
20094 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
20096 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
20098 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
20100 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
20102 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
20103 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
20104 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
20106 ## ------------------------------- ##
20107 ## Report this to www.asterisk.org ##
20108 ## ------------------------------- ##
20110 ) | sed "s/^/$as_me: WARNING: /" >&2
20113 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20114 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20115 if test "${ac_cv_header_ltdl_h+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 ac_cv_header_ltdl_h=$ac_header_preproc
20120 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20121 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20124 if test $ac_cv_header_ltdl_h = yes; then
20125 LTDL_HEADER_FOUND=1
20127 LTDL_HEADER_FOUND=0
20133 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
20134 if test -n "${LTDL_MANDATORY}" ;
20136 { echo "$as_me:$LINENO: ***" >&5
20137 echo "$as_me: ***" >&6;}
20138 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
20139 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
20140 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
20141 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
20142 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20143 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20152 cat >>confdefs.h <<_ACEOF
20153 #define HAVE_LTDL 1
20157 elif test -n "${LTDL_MANDATORY}";
20159 { echo "$as_me:$LINENO: ***" >&5
20160 echo "$as_me: ***" >&6;}
20161 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
20162 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
20163 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20164 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20165 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20166 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20173 ac_cpp='$CXXCPP $CPPFLAGS'
20174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20179 if test "${USE_KDE}" != "no"; then
20180 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
20181 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
20182 saved_libs="${LIBS}"
20183 saved_cppflags="${CPPFLAGS}"
20184 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
20185 if test -d ${KDE_DIR}/lib; then
20186 kdelibdir="${KDE_DIR}/lib"
20188 kdelibdir="${KDE_DIR}"
20190 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
20193 cat >conftest.$ac_ext <<_ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 #include "kcrash.h"
20203 KCrash::defaultCrashHandler(1);
20209 rm -f conftest.$ac_objext conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20213 *) ac_try_echo
=$ac_try;;
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_link") 2>conftest.er1
20218 grep -v '^ *+' conftest.er1
>conftest.err
20220 cat conftest.err
>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } && {
20223 test -z "$ac_cxx_werror_flag" ||
20224 test ! -s conftest.err
20225 } && test -s conftest
$ac_exeext &&
20226 $as_test_x conftest
$ac_exeext; then
20227 ac_cv_lib_kde_crash
="yes"
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.
$ac_ext >&5
20232 ac_cv_lib_kde_crash
="no"
20235 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20236 conftest
$ac_exeext conftest.
$ac_ext
20238 LIBS
="${saved_libs}"
20239 CPPFLAGS
="${saved_cppflags}"
20241 if test "${ac_cv_lib_kde_crash}" = "yes"; then
20242 { echo "$as_me:$LINENO: result: yes" >&5
20243 echo "${ECHO_T}yes" >&6; }
20244 KDE_LIB
="-lkdecore -lkdeui"
20245 if test "${KDE_DIR}" != ""; then
20246 KDE_LIB
="-L${kdelibdir} ${KDE_LIB}"
20247 KDE_INCLUDE
="-I${KDE_DIR}/include"
20251 cat >>confdefs.h
<<\_ACEOF
20252 #define HAVE_LIBKDE 1
20255 elif test -n "${KDE_MANDATORY}"; then
20256 { echo "$as_me:$LINENO: result: no" >&5
20257 echo "${ECHO_T}no" >&6; }
20258 { echo "$as_me:$LINENO: ***" >&5
20259 echo "$as_me: ***" >&6;}
20260 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
20261 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
20262 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20263 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20264 { echo "$as_me:$LINENO: *** including --without-kde." >&5
20265 echo "$as_me: *** including --without-kde." >&6;}
20268 { echo "$as_me:$LINENO: result: no" >&5
20269 echo "${ECHO_T}no" >&6; }
20272 if test "${PBX_KDE}" = 1; then
20273 if test -n "$ac_tool_prefix"; then
20274 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
20275 set dummy
${ac_tool_prefix}kdeinit
; ac_word
=$2
20276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20278 if test "${ac_cv_path_KDEINIT+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 ac_cv_path_KDEINIT
="$KDEINIT" # Let the user override the test with a path.
20286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20287 for as_dir
in $PATH
20290 test -z "$as_dir" && as_dir
=.
20291 for ac_exec_ext
in '' $ac_executable_extensions; do
20292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20293 ac_cv_path_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
20294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20304 KDEINIT
=$ac_cv_path_KDEINIT
20305 if test -n "$KDEINIT"; then
20306 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
20307 echo "${ECHO_T}$KDEINIT" >&6; }
20309 { echo "$as_me:$LINENO: result: no" >&5
20310 echo "${ECHO_T}no" >&6; }
20315 if test -z "$ac_cv_path_KDEINIT"; then
20316 ac_pt_KDEINIT
=$KDEINIT
20317 # Extract the first word of "kdeinit", so it can be a program name with args.
20318 set dummy kdeinit
; ac_word
=$2
20319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20321 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 case $ac_pt_KDEINIT in
20326 ac_cv_path_ac_pt_KDEINIT
="$ac_pt_KDEINIT" # Let the user override the test with a path.
20329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20330 for as_dir
in $PATH
20333 test -z "$as_dir" && as_dir
=.
20334 for ac_exec_ext
in '' $ac_executable_extensions; do
20335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20336 ac_cv_path_ac_pt_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
20337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20347 ac_pt_KDEINIT
=$ac_cv_path_ac_pt_KDEINIT
20348 if test -n "$ac_pt_KDEINIT"; then
20349 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
20350 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
20352 { echo "$as_me:$LINENO: result: no" >&5
20353 echo "${ECHO_T}no" >&6; }
20356 if test "x$ac_pt_KDEINIT" = x
; then
20359 case $cross_compiling:$ac_tool_warned in
20361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20362 whose name does not start with the host triplet. If you think this
20363 configuration is useful to you, please write to autoconf@gnu.org." >&5
20364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20365 whose name does not start with the host triplet. If you think this
20366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20367 ac_tool_warned
=yes ;;
20369 KDEINIT
=$ac_pt_KDEINIT
20372 KDEINIT
="$ac_cv_path_KDEINIT"
20375 if test ! x
"${KDEINIT}" = xNo
; then
20376 KDEDIR
=$
(${DIRNAME} ${KDEINIT})
20377 KDEDIR
=$
(${DIRNAME} ${KDEDIR})
20383 ac_cpp
='$CPP $CPPFLAGS'
20384 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20385 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20386 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20390 if test "${USE_MISDN}" != "no"; then
20392 if test "x${MISDN_DIR}" != "x"; then
20393 if test -d ${MISDN_DIR}/lib
; then
20394 pbxlibdir
="-L${MISDN_DIR}/lib"
20396 pbxlibdir
="-L${MISDN_DIR}"
20399 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
20400 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
20401 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20404 ac_check_lib_save_LIBS
=$LIBS
20405 LIBS
="-lmISDN ${pbxlibdir} $LIBS"
20406 cat >conftest.
$ac_ext <<_ACEOF
20409 cat confdefs.h
>>conftest.
$ac_ext
20410 cat >>conftest.
$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20413 /* Override any GCC internal prototype to avoid an error.
20414 Use char because int might match the return type of a GCC
20415 builtin and then its argument prototype would still apply. */
20419 char mISDN_open ();
20423 return mISDN_open ();
20428 rm -f conftest.
$ac_objext conftest
$ac_exeext
20429 if { (ac_try
="$ac_link"
20430 case "(($ac_try" in
20431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_link") 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest$ac_exeext &&
20445 $as_test_x conftest$ac_exeext; then
20446 ac_cv_lib_mISDN_mISDN_open=yes
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20451 ac_cv_lib_mISDN_mISDN_open=no
20454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20455 conftest$ac_exeext conftest.$ac_ext
20456 LIBS=$ac_check_lib_save_LIBS
20458 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
20459 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
20460 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
20461 AST_MISDN_FOUND=yes
20467 if test "${AST_MISDN_FOUND}" = "yes"; then
20468 MISDN_LIB="-lmISDN "
20469 MISDN_HEADER_FOUND="1"
20470 if test "x${MISDN_DIR}" != "x"; then
20471 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
20472 MISDN_INCLUDE="-I${MISDN_DIR}/include"
20473 saved_cppflags="${CPPFLAGS}"
20474 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
20475 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20476 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" |
$as_tr_sh`
20477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20478 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20479 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20483 ac_res=`eval echo '${'$as_ac_Header'}'`
20484 { echo "$as_me:$LINENO: result: $ac_res" >&5
20485 echo "${ECHO_T}$ac_res" >&6; }
20487 # Is the header compilable?
20488 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
20489 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20490 cat >conftest.$ac_ext <<_ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20496 $ac_includes_default
20497 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20499 rm -f conftest.$ac_objext
20500 if { (ac_try="$ac_compile"
20501 case "(($ac_try" in
20502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20503 *) ac_try_echo
=$ac_try;;
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_compile") 2>conftest.er1
20508 grep -v '^ *+' conftest.er1
>conftest.err
20510 cat conftest.err
>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest.
$ac_objext; then
20516 ac_header_compiler
=yes
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.
$ac_ext >&5
20521 ac_header_compiler
=no
20524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20526 echo "${ECHO_T}$ac_header_compiler" >&6; }
20528 # Is the header present?
20529 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
20530 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20531 cat >conftest.
$ac_ext <<_ACEOF
20534 cat confdefs.h
>>conftest.
$ac_ext
20535 cat >>conftest.
$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20539 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20540 case "(($ac_try" in
20541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20547 grep -v '^ *+' conftest.er1 >conftest.err
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } >/dev/null && {
20552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20553 test ! -s conftest.err
20555 ac_header_preproc=yes
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_header_preproc=no
20563 rm -f conftest.err conftest.$ac_ext
20564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20565 echo "${ECHO_T}$ac_header_preproc" >&6; }
20567 # So? What about this header?
20568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20570 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20571 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20572 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20573 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20574 ac_header_preproc=yes
20577 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20578 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20580 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20582 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20584 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20585 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20586 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20587 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20588 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20590 ## ------------------------------- ##
20591 ## Report this to www.asterisk.org ##
20592 ## ------------------------------- ##
20594 ) | sed "s/^/$as_me: WARNING: /" >&2
20597 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20598 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20602 eval "$as_ac_Header=\$ac_header_preproc"
20604 ac_res=`eval echo '${'$as_ac_Header'}'`
20605 { echo "$as_me:$LINENO: result: $ac_res" >&5
20606 echo "${ECHO_T}$ac_res" >&6; }
20609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20610 MISDN_HEADER_FOUND=1
20612 MISDN_HEADER_FOUND=0
20617 CPPFLAGS="${saved_cppflags}"
20619 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20620 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20621 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20622 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20623 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20627 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20629 # Is the header compilable?
20630 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
20631 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20632 cat >conftest.$ac_ext <<_ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h. */
20638 $ac_includes_default
20639 #include <mISDNuser/mISDNlib.h>
20641 rm -f conftest.$ac_objext
20642 if { (ac_try="$ac_compile"
20643 case "(($ac_try" in
20644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20645 *) ac_try_echo
=$ac_try;;
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_compile") 2>conftest.er1
20650 grep -v '^ *+' conftest.er1
>conftest.err
20652 cat conftest.err
>&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && {
20655 test -z "$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 } && test -s conftest.
$ac_objext; then
20658 ac_header_compiler
=yes
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.
$ac_ext >&5
20663 ac_header_compiler
=no
20666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20668 echo "${ECHO_T}$ac_header_compiler" >&6; }
20670 # Is the header present?
20671 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20672 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20673 cat >conftest.
$ac_ext <<_ACEOF
20676 cat confdefs.h
>>conftest.
$ac_ext
20677 cat >>conftest.
$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 #include <mISDNuser/mISDNlib.h>
20681 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20682 case "(($ac_try" in
20683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20689 grep -v '^ *+' conftest.er1 >conftest.err
20691 cat conftest.err >&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } >/dev/null && {
20694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20695 test ! -s conftest.err
20697 ac_header_preproc=yes
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20702 ac_header_preproc=no
20705 rm -f conftest.err conftest.$ac_ext
20706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20707 echo "${ECHO_T}$ac_header_preproc" >&6; }
20709 # So? What about this header?
20710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20712 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20713 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20715 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20716 ac_header_preproc=yes
20719 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20720 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20722 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20724 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20726 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20727 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20728 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20729 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20730 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20732 ## ------------------------------- ##
20733 ## Report this to www.asterisk.org ##
20734 ## ------------------------------- ##
20736 ) | sed "s/^/$as_me: WARNING: /" >&2
20739 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20740 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20741 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20742 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
20746 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20747 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20750 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20751 MISDN_HEADER_FOUND=1
20753 MISDN_HEADER_FOUND=0
20759 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20760 if test -n "${MISDN_MANDATORY}" ;
20762 { echo "$as_me:$LINENO: ***" >&5
20763 echo "$as_me: ***" >&6;}
20764 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20765 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20766 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20767 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20768 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20769 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20778 cat >>confdefs.h <<_ACEOF
20779 #define HAVE_MISDN 1
20783 elif test -n "${MISDN_MANDATORY}";
20785 { echo "$as_me:$LINENO: ***" >&5
20786 echo "$as_me: ***" >&6;}
20787 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
20788 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
20789 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20790 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20791 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20792 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20798 if test "${PBX_MISDN}" = 1; then
20800 if test "${USE_ISDNNET}" != "no"; then
20802 if test "x${ISDNNET_DIR}" != "x"; then
20803 if test -d ${ISDNNET_DIR}/lib; then
20804 pbxlibdir="-L${ISDNNET_DIR}/lib"
20806 pbxlibdir="-L${ISDNNET_DIR}"
20809 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
20810 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
20811 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20814 ac_check_lib_save_LIBS=$LIBS
20815 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
20816 cat >conftest.$ac_ext <<_ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20823 /* Override any GCC internal prototype to avoid an error.
20824 Use char because int might match the return type of a GCC
20825 builtin and then its argument prototype would still apply. */
20829 char init_manager ();
20833 return init_manager ();
20838 rm -f conftest.$ac_objext conftest$ac_exeext
20839 if { (ac_try="$ac_link"
20840 case "(($ac_try" in
20841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20842 *) ac_try_echo
=$ac_try;;
20844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20845 (eval "$ac_link") 2>conftest.er1
20847 grep -v '^ *+' conftest.er1
>conftest.err
20849 cat conftest.err
>&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } && {
20852 test -z "$ac_c_werror_flag" ||
20853 test ! -s conftest.err
20854 } && test -s conftest
$ac_exeext &&
20855 $as_test_x conftest
$ac_exeext; then
20856 ac_cv_lib_isdnnet_init_manager
=yes
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.
$ac_ext >&5
20861 ac_cv_lib_isdnnet_init_manager
=no
20864 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20865 conftest
$ac_exeext conftest.
$ac_ext
20866 LIBS
=$ac_check_lib_save_LIBS
20868 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
20869 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20870 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20871 AST_ISDNNET_FOUND
=yes
20873 AST_ISDNNET_FOUND
=no
20877 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20878 ISDNNET_LIB
="-lisdnnet -lmISDN -lpthread"
20879 ISDNNET_HEADER_FOUND
="1"
20880 if test "x${ISDNNET_DIR}" != "x"; then
20881 ISDNNET_LIB
="${pbxlibdir} ${ISDNNET_LIB}"
20882 ISDNNET_INCLUDE
="-I${ISDNNET_DIR}/include"
20883 saved_cppflags
="${CPPFLAGS}"
20884 CPPFLAGS
="${CPPFLAGS} -I${ISDNNET_DIR}/include"
20885 if test "xmISDNuser/isdn_net.h" != "x" ; then
20886 as_ac_Header
=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
20887 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20888 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
20889 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20890 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 ac_res
=`eval echo '${'$as_ac_Header'}'`
20894 { echo "$as_me:$LINENO: result: $ac_res" >&5
20895 echo "${ECHO_T}$ac_res" >&6; }
20897 # Is the header compilable?
20898 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
20899 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20900 cat >conftest.
$ac_ext <<_ACEOF
20903 cat confdefs.h
>>conftest.
$ac_ext
20904 cat >>conftest.
$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 $ac_includes_default
20907 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20909 rm -f conftest.
$ac_objext
20910 if { (ac_try
="$ac_compile"
20911 case "(($ac_try" in
20912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_compile") 2>conftest.er1
20918 grep -v '^ *+' conftest.er1 >conftest.err
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest.$ac_objext; then
20926 ac_header_compiler=yes
20928 echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20931 ac_header_compiler=no
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20936 echo "${ECHO_T}$ac_header_compiler" >&6; }
20938 # Is the header present?
20939 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
20940 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20941 cat >conftest.$ac_ext <<_ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20949 if { (ac_try="$ac_cpp conftest.$ac_ext"
20950 case "(($ac_try" in
20951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20952 *) ac_try_echo
=$ac_try;;
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20957 grep -v '^ *+' conftest.er1
>conftest.err
20959 cat conftest.err
>&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } >/dev
/null
&& {
20962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20963 test ! -s conftest.err
20965 ac_header_preproc
=yes
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.
$ac_ext >&5
20970 ac_header_preproc
=no
20973 rm -f conftest.err conftest.
$ac_ext
20974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20975 echo "${ECHO_T}$ac_header_preproc" >&6; }
20977 # So? What about this header?
20978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20980 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
20981 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20982 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
20983 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
20984 ac_header_preproc
=yes
20987 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
20988 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
20989 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
20990 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
20992 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
20993 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
20994 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
20996 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
20997 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
20998 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21000 ## ------------------------------- ##
21001 ## Report this to www.asterisk.org ##
21002 ## ------------------------------- ##
21004 ) |
sed "s/^/$as_me: WARNING: /" >&2
21007 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
21008 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21009 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21012 eval "$as_ac_Header=\$ac_header_preproc"
21014 ac_res
=`eval echo '${'$as_ac_Header'}'`
21015 { echo "$as_me:$LINENO: result: $ac_res" >&5
21016 echo "${ECHO_T}$ac_res" >&6; }
21019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21020 ISDNNET_HEADER_FOUND
=1
21022 ISDNNET_HEADER_FOUND
=0
21027 CPPFLAGS
="${saved_cppflags}"
21029 if test "xmISDNuser/isdn_net.h" != "x" ; then
21030 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21031 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21032 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21033 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21037 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21039 # Is the header compilable?
21040 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
21041 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
21042 cat >conftest.
$ac_ext <<_ACEOF
21045 cat confdefs.h
>>conftest.
$ac_ext
21046 cat >>conftest.
$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 $ac_includes_default
21049 #include <mISDNuser/isdn_net.h>
21051 rm -f conftest.
$ac_objext
21052 if { (ac_try
="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest.$ac_objext; then
21068 ac_header_compiler=yes
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_header_compiler=no
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21078 echo "${ECHO_T}$ac_header_compiler" >&6; }
21080 # Is the header present?
21081 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
21082 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 #include <mISDNuser/isdn_net.h>
21091 if { (ac_try="$ac_cpp conftest.$ac_ext"
21092 case "(($ac_try" in
21093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21094 *) ac_try_echo
=$ac_try;;
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21099 grep -v '^ *+' conftest.er1
>conftest.err
21101 cat conftest.err
>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } >/dev
/null
&& {
21104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21105 test ! -s conftest.err
21107 ac_header_preproc
=yes
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.
$ac_ext >&5
21112 ac_header_preproc
=no
21115 rm -f conftest.err conftest.
$ac_ext
21116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21117 echo "${ECHO_T}$ac_header_preproc" >&6; }
21119 # So? What about this header?
21120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21122 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21123 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21125 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21126 ac_header_preproc
=yes
21129 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21130 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21132 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21134 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21136 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21138 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21140 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21142 ## ------------------------------- ##
21143 ## Report this to www.asterisk.org ##
21144 ## ------------------------------- ##
21146 ) |
sed "s/^/$as_me: WARNING: /" >&2
21149 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21150 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21151 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21154 ac_cv_header_mISDNuser_isdn_net_h
=$ac_header_preproc
21156 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21157 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21160 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
21161 ISDNNET_HEADER_FOUND
=1
21163 ISDNNET_HEADER_FOUND
=0
21169 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
21170 if test -n "${ISDNNET_MANDATORY}" ;
21172 { echo "$as_me:$LINENO: ***" >&5
21173 echo "$as_me: ***" >&6;}
21174 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
21175 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
21176 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
21177 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
21178 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21179 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21188 cat >>confdefs.h
<<_ACEOF
21189 #define HAVE_ISDNNET 1
21193 elif test -n "${ISDNNET_MANDATORY}";
21195 { echo "$as_me:$LINENO: ***" >&5
21196 echo "$as_me: ***" >&6;}
21197 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
21198 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
21199 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21200 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21201 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21202 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21208 if test "${USE_SUPPSERV}" != "no"; then
21210 if test "x${SUPPSERV_DIR}" != "x"; then
21211 if test -d ${SUPPSERV_DIR}/lib
; then
21212 pbxlibdir
="-L${SUPPSERV_DIR}/lib"
21214 pbxlibdir
="-L${SUPPSERV_DIR}"
21217 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
21218 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
21219 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 ac_check_lib_save_LIBS
=$LIBS
21223 LIBS
="-lsuppserv ${pbxlibdir} $LIBS"
21224 cat >conftest.
$ac_ext <<_ACEOF
21227 cat confdefs.h
>>conftest.
$ac_ext
21228 cat >>conftest.
$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21231 /* Override any GCC internal prototype to avoid an error.
21232 Use char because int might match the return type of a GCC
21233 builtin and then its argument prototype would still apply. */
21241 return encodeFac ();
21246 rm -f conftest.
$ac_objext conftest
$ac_exeext
21247 if { (ac_try
="$ac_link"
21248 case "(($ac_try" in
21249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_link") 2>conftest.er1
21255 grep -v '^ *+' conftest.er1 >conftest.err
21257 cat conftest.err >&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } && {
21260 test -z "$ac_c_werror_flag" ||
21261 test ! -s conftest.err
21262 } && test -s conftest$ac_exeext &&
21263 $as_test_x conftest$ac_exeext; then
21264 ac_cv_lib_suppserv_encodeFac=yes
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21269 ac_cv_lib_suppserv_encodeFac=no
21272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21273 conftest$ac_exeext conftest.$ac_ext
21274 LIBS=$ac_check_lib_save_LIBS
21276 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
21277 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
21278 if test $ac_cv_lib_suppserv_encodeFac = yes; then
21279 AST_SUPPSERV_FOUND=yes
21281 AST_SUPPSERV_FOUND=no
21285 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
21286 SUPPSERV_LIB="-lsuppserv "
21287 SUPPSERV_HEADER_FOUND="1"
21288 if test "x${SUPPSERV_DIR}" != "x"; then
21289 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
21290 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
21291 saved_cppflags="${CPPFLAGS}"
21292 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
21293 if test "xmISDNuser/suppserv.h" != "x" ; then
21294 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" |
$as_tr_sh`
21295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21296 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21297 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21301 ac_res=`eval echo '${'$as_ac_Header'}'`
21302 { echo "$as_me:$LINENO: result: $ac_res" >&5
21303 echo "${ECHO_T}$ac_res" >&6; }
21305 # Is the header compilable?
21306 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
21307 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21308 cat >conftest.$ac_ext <<_ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 $ac_includes_default
21315 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21317 rm -f conftest.$ac_objext
21318 if { (ac_try="$ac_compile"
21319 case "(($ac_try" in
21320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21321 *) ac_try_echo
=$ac_try;;
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324 (eval "$ac_compile") 2>conftest.er1
21326 grep -v '^ *+' conftest.er1
>conftest.err
21328 cat conftest.err
>&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } && {
21331 test -z "$ac_c_werror_flag" ||
21332 test ! -s conftest.err
21333 } && test -s conftest.
$ac_objext; then
21334 ac_header_compiler
=yes
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.
$ac_ext >&5
21339 ac_header_compiler
=no
21342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21344 echo "${ECHO_T}$ac_header_compiler" >&6; }
21346 # Is the header present?
21347 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
21348 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21349 cat >conftest.
$ac_ext <<_ACEOF
21352 cat confdefs.h
>>conftest.
$ac_ext
21353 cat >>conftest.
$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21357 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21358 case "(($ac_try" in
21359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21365 grep -v '^ *+' conftest.er1 >conftest.err
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } >/dev/null && {
21370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21371 test ! -s conftest.err
21373 ac_header_preproc=yes
21375 echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.$ac_ext >&5
21378 ac_header_preproc=no
21381 rm -f conftest.err conftest.$ac_ext
21382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21383 echo "${ECHO_T}$ac_header_preproc" >&6; }
21385 # So? What about this header?
21386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21388 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21389 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21391 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21392 ac_header_preproc=yes
21395 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
21396 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21397 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21398 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21399 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21400 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21401 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21402 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21403 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21404 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21405 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21406 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21408 ## ------------------------------- ##
21409 ## Report this to www.asterisk.org ##
21410 ## ------------------------------- ##
21412 ) | sed "s/^/$as_me: WARNING: /" >&2
21415 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21416 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21420 eval "$as_ac_Header=\$ac_header_preproc"
21422 ac_res=`eval echo '${'$as_ac_Header'}'`
21423 { echo "$as_me:$LINENO: result: $ac_res" >&5
21424 echo "${ECHO_T}$ac_res" >&6; }
21427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21428 SUPPSERV_HEADER_FOUND=1
21430 SUPPSERV_HEADER_FOUND=0
21435 CPPFLAGS="${saved_cppflags}"
21437 if test "xmISDNuser/suppserv.h" != "x" ; then
21438 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21439 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21440 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21441 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21445 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21447 # Is the header compilable?
21448 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
21449 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21450 cat >conftest.$ac_ext <<_ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h. */
21456 $ac_includes_default
21457 #include <mISDNuser/suppserv.h>
21459 rm -f conftest.$ac_objext
21460 if { (ac_try="$ac_compile"
21461 case "(($ac_try" in
21462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21463 *) ac_try_echo
=$ac_try;;
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_compile") 2>conftest.er1
21468 grep -v '^ *+' conftest.er1
>conftest.err
21470 cat conftest.err
>&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } && {
21473 test -z "$ac_c_werror_flag" ||
21474 test ! -s conftest.err
21475 } && test -s conftest.
$ac_objext; then
21476 ac_header_compiler
=yes
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.
$ac_ext >&5
21481 ac_header_compiler
=no
21484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21486 echo "${ECHO_T}$ac_header_compiler" >&6; }
21488 # Is the header present?
21489 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
21490 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21491 cat >conftest.
$ac_ext <<_ACEOF
21494 cat confdefs.h
>>conftest.
$ac_ext
21495 cat >>conftest.
$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21497 #include <mISDNuser/suppserv.h>
21499 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21500 case "(($ac_try" in
21501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21507 grep -v '^ *+' conftest.er1 >conftest.err
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } >/dev/null && {
21512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21513 test ! -s conftest.err
21515 ac_header_preproc=yes
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ac_header_preproc=no
21523 rm -f conftest.err conftest.$ac_ext
21524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21525 echo "${ECHO_T}$ac_header_preproc" >&6; }
21527 # So? What about this header?
21528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21530 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21531 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21532 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21533 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21534 ac_header_preproc=yes
21537 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
21538 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21540 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21542 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21544 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21545 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21546 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21547 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21548 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21550 ## ------------------------------- ##
21551 ## Report this to www.asterisk.org ##
21552 ## ------------------------------- ##
21554 ) | sed "s/^/$as_me: WARNING: /" >&2
21557 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21558 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21559 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21562 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
21564 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21565 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21568 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
21569 SUPPSERV_HEADER_FOUND=1
21571 SUPPSERV_HEADER_FOUND=0
21577 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
21578 if test -n "${SUPPSERV_MANDATORY}" ;
21580 { echo "$as_me:$LINENO: ***" >&5
21581 echo "$as_me: ***" >&6;}
21582 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
21583 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
21584 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
21585 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
21586 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21587 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21591 SUPPSERV_INCLUDE=""
21596 cat >>confdefs.h <<_ACEOF
21597 #define HAVE_SUPPSERV 1
21601 elif test -n "${SUPPSERV_MANDATORY}";
21603 { echo "$as_me:$LINENO: ***" >&5
21604 echo "$as_me: ***" >&6;}
21605 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
21606 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
21607 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21608 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21609 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21610 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21615 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21616 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21617 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21618 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21621 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21622 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21624 # Is the header compilable?
21625 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
21626 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
21627 cat >conftest.$ac_ext <<_ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 $ac_includes_default
21634 #include <linux/mISDNdsp.h>
21636 rm -f conftest.$ac_objext
21637 if { (ac_try="$ac_compile"
21638 case "(($ac_try" in
21639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21640 *) ac_try_echo
=$ac_try;;
21642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643 (eval "$ac_compile") 2>conftest.er1
21645 grep -v '^ *+' conftest.er1
>conftest.err
21647 cat conftest.err
>&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } && {
21650 test -z "$ac_c_werror_flag" ||
21651 test ! -s conftest.err
21652 } && test -s conftest.
$ac_objext; then
21653 ac_header_compiler
=yes
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.
$ac_ext >&5
21658 ac_header_compiler
=no
21661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21663 echo "${ECHO_T}$ac_header_compiler" >&6; }
21665 # Is the header present?
21666 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
21667 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
21668 cat >conftest.
$ac_ext <<_ACEOF
21671 cat confdefs.h
>>conftest.
$ac_ext
21672 cat >>conftest.
$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 #include <linux/mISDNdsp.h>
21676 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21677 case "(($ac_try" in
21678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21684 grep -v '^ *+' conftest.er1 >conftest.err
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } >/dev/null && {
21689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21690 test ! -s conftest.err
21692 ac_header_preproc=yes
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21697 ac_header_preproc=no
21700 rm -f conftest.err conftest.$ac_ext
21701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21702 echo "${ECHO_T}$ac_header_preproc" >&6; }
21704 # So? What about this header?
21705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21707 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21708 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
21710 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
21711 ac_header_preproc=yes
21714 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
21715 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
21716 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
21717 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
21718 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
21719 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
21721 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
21723 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
21724 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
21725 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
21727 ## ------------------------------- ##
21728 ## Report this to www.asterisk.org ##
21729 ## ------------------------------- ##
21731 ) | sed "s/^/$as_me: WARNING: /" >&2
21734 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21735 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21736 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21739 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
21741 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21742 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21745 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
21747 cat >>confdefs.h <<_ACEOF
21748 #define MISDN_1_2 1
21757 if test "${USE_NBS}" != "no"; then
21759 if test "x${NBS_DIR}" != "x"; then
21760 if test -d ${NBS_DIR}/lib; then
21761 pbxlibdir="-L${NBS_DIR}/lib"
21763 pbxlibdir="-L${NBS_DIR}"
21766 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
21767 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
21768 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
21769 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 ac_check_lib_save_LIBS=$LIBS
21772 LIBS="-lnbs ${pbxlibdir} $LIBS"
21773 cat >conftest.$ac_ext <<_ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21780 /* Override any GCC internal prototype to avoid an error.
21781 Use char because int might match the return type of a GCC
21782 builtin and then its argument prototype would still apply. */
21786 char nbs_connect ();
21790 return nbs_connect ();
21795 rm -f conftest.$ac_objext conftest$ac_exeext
21796 if { (ac_try="$ac_link"
21797 case "(($ac_try" in
21798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21799 *) ac_try_echo
=$ac_try;;
21801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21802 (eval "$ac_link") 2>conftest.er1
21804 grep -v '^ *+' conftest.er1
>conftest.err
21806 cat conftest.err
>&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } && {
21809 test -z "$ac_c_werror_flag" ||
21810 test ! -s conftest.err
21811 } && test -s conftest
$ac_exeext &&
21812 $as_test_x conftest
$ac_exeext; then
21813 ac_cv_lib_nbs_nbs_connect
=yes
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.
$ac_ext >&5
21818 ac_cv_lib_nbs_nbs_connect
=no
21821 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21822 conftest
$ac_exeext conftest.
$ac_ext
21823 LIBS
=$ac_check_lib_save_LIBS
21825 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
21826 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
21827 if test $ac_cv_lib_nbs_nbs_connect = yes; then
21834 if test "${AST_NBS_FOUND}" = "yes"; then
21836 NBS_HEADER_FOUND
="1"
21837 if test "x${NBS_DIR}" != "x"; then
21838 NBS_LIB
="${pbxlibdir} ${NBS_LIB}"
21839 NBS_INCLUDE
="-I${NBS_DIR}/include"
21840 saved_cppflags
="${CPPFLAGS}"
21841 CPPFLAGS
="${CPPFLAGS} -I${NBS_DIR}/include"
21842 if test "xnbs.h" != "x" ; then
21843 as_ac_Header
=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
21844 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21845 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21846 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21847 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 ac_res
=`eval echo '${'$as_ac_Header'}'`
21851 { echo "$as_me:$LINENO: result: $ac_res" >&5
21852 echo "${ECHO_T}$ac_res" >&6; }
21854 # Is the header compilable?
21855 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
21856 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
21857 cat >conftest.
$ac_ext <<_ACEOF
21860 cat confdefs.h
>>conftest.
$ac_ext
21861 cat >>conftest.
$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 $ac_includes_default
21864 #include <${NBS_DIR}/include/nbs.h>
21866 rm -f conftest.
$ac_objext
21867 if { (ac_try
="$ac_compile"
21868 case "(($ac_try" in
21869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_compile") 2>conftest.er1
21875 grep -v '^ *+' conftest.er1 >conftest.err
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } && {
21880 test -z "$ac_c_werror_flag" ||
21881 test ! -s conftest.err
21882 } && test -s conftest.$ac_objext; then
21883 ac_header_compiler=yes
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ac_header_compiler=no
21891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21893 echo "${ECHO_T}$ac_header_compiler" >&6; }
21895 # Is the header present?
21896 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
21897 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
21898 cat >conftest.$ac_ext <<_ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 #include <${NBS_DIR}/include/nbs.h>
21906 if { (ac_try="$ac_cpp conftest.$ac_ext"
21907 case "(($ac_try" in
21908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21909 *) ac_try_echo
=$ac_try;;
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21914 grep -v '^ *+' conftest.er1
>conftest.err
21916 cat conftest.err
>&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } >/dev
/null
&& {
21919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21920 test ! -s conftest.err
21922 ac_header_preproc
=yes
21924 echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.
$ac_ext >&5
21927 ac_header_preproc
=no
21930 rm -f conftest.err conftest.
$ac_ext
21931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21932 echo "${ECHO_T}$ac_header_preproc" >&6; }
21934 # So? What about this header?
21935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21937 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21938 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21939 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
21940 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
21941 ac_header_preproc
=yes
21944 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
21945 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
21946 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
21947 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
21948 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
21949 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
21950 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21951 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21952 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
21953 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
21954 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
21955 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
21957 ## ------------------------------- ##
21958 ## Report this to www.asterisk.org ##
21959 ## ------------------------------- ##
21961 ) |
sed "s/^/$as_me: WARNING: /" >&2
21964 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21965 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21966 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21967 echo $ECHO_N "(cached) $ECHO_C" >&6
21969 eval "$as_ac_Header=\$ac_header_preproc"
21971 ac_res
=`eval echo '${'$as_ac_Header'}'`
21972 { echo "$as_me:$LINENO: result: $ac_res" >&5
21973 echo "${ECHO_T}$ac_res" >&6; }
21976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21984 CPPFLAGS
="${saved_cppflags}"
21986 if test "xnbs.h" != "x" ; then
21987 if test "${ac_cv_header_nbs_h+set}" = set; then
21988 { echo "$as_me:$LINENO: checking for nbs.h" >&5
21989 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
21990 if test "${ac_cv_header_nbs_h+set}" = set; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
21994 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
21996 # Is the header compilable?
21997 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
21998 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
21999 cat >conftest.
$ac_ext <<_ACEOF
22002 cat confdefs.h
>>conftest.
$ac_ext
22003 cat >>conftest.
$ac_ext <<_ACEOF
22004 /* end confdefs.h. */
22005 $ac_includes_default
22008 rm -f conftest.
$ac_objext
22009 if { (ac_try
="$ac_compile"
22010 case "(($ac_try" in
22011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_compile") 2>conftest.er1
22017 grep -v '^ *+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest.$ac_objext; then
22025 ac_header_compiler=yes
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 ac_header_compiler=no
22033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22035 echo "${ECHO_T}$ac_header_compiler" >&6; }
22037 # Is the header present?
22038 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
22039 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
22040 cat >conftest.$ac_ext <<_ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22048 if { (ac_try="$ac_cpp conftest.$ac_ext"
22049 case "(($ac_try" in
22050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22051 *) ac_try_echo
=$ac_try;;
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22056 grep -v '^ *+' conftest.er1
>conftest.err
22058 cat conftest.err
>&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); } >/dev
/null
&& {
22061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22062 test ! -s conftest.err
22064 ac_header_preproc
=yes
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.
$ac_ext >&5
22069 ac_header_preproc
=no
22072 rm -f conftest.err conftest.
$ac_ext
22073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22074 echo "${ECHO_T}$ac_header_preproc" >&6; }
22076 # So? What about this header?
22077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22079 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22080 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
22082 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
22083 ac_header_preproc
=yes
22086 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
22087 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
22089 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
22091 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
22093 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
22095 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
22096 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
22097 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
22099 ## ------------------------------- ##
22100 ## Report this to www.asterisk.org ##
22101 ## ------------------------------- ##
22103 ) |
sed "s/^/$as_me: WARNING: /" >&2
22106 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22107 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22108 if test "${ac_cv_header_nbs_h+set}" = set; then
22109 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 ac_cv_header_nbs_h
=$ac_header_preproc
22113 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22114 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22117 if test $ac_cv_header_nbs_h = yes; then
22126 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
22127 if test -n "${NBS_MANDATORY}" ;
22129 { echo "$as_me:$LINENO: ***" >&5
22130 echo "$as_me: ***" >&6;}
22131 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
22132 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
22133 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
22134 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
22135 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22136 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22145 cat >>confdefs.h
<<_ACEOF
22150 elif test -n "${NBS_MANDATORY}";
22152 { echo "$as_me:$LINENO: ***" >&5
22153 echo "$as_me: ***" >&6;}
22154 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
22155 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
22156 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22157 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22158 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22159 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22166 if test "${USE_NCURSES}" != "no"; then
22168 if test "x${NCURSES_DIR}" != "x"; then
22169 if test -d ${NCURSES_DIR}/lib
; then
22170 pbxlibdir
="-L${NCURSES_DIR}/lib"
22172 pbxlibdir
="-L${NCURSES_DIR}"
22175 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
22176 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
22177 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22180 ac_check_lib_save_LIBS
=$LIBS
22181 LIBS
="-lncurses ${pbxlibdir} $LIBS"
22182 cat >conftest.
$ac_ext <<_ACEOF
22185 cat confdefs.h
>>conftest.
$ac_ext
22186 cat >>conftest.
$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22189 /* Override any GCC internal prototype to avoid an error.
22190 Use char because int might match the return type of a GCC
22191 builtin and then its argument prototype would still apply. */
22204 rm -f conftest.
$ac_objext conftest
$ac_exeext
22205 if { (ac_try
="$ac_link"
22206 case "(($ac_try" in
22207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22208 *) ac_try_echo=$ac_try;;
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211 (eval "$ac_link") 2>conftest.er1
22213 grep -v '^ *+' conftest.er1 >conftest.err
22215 cat conftest.err >&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } && {
22218 test -z "$ac_c_werror_flag" ||
22219 test ! -s conftest.err
22220 } && test -s conftest$ac_exeext &&
22221 $as_test_x conftest$ac_exeext; then
22222 ac_cv_lib_ncurses_initscr=yes
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 ac_cv_lib_ncurses_initscr=no
22230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22231 conftest$ac_exeext conftest.$ac_ext
22232 LIBS=$ac_check_lib_save_LIBS
22234 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
22235 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
22236 if test $ac_cv_lib_ncurses_initscr = yes; then
22237 AST_NCURSES_FOUND=yes
22239 AST_NCURSES_FOUND=no
22243 if test "${AST_NCURSES_FOUND}" = "yes"; then
22244 NCURSES_LIB="-lncurses "
22245 NCURSES_HEADER_FOUND="1"
22246 if test "x${NCURSES_DIR}" != "x"; then
22247 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
22248 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
22249 saved_cppflags="${CPPFLAGS}"
22250 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
22251 if test "xcurses.h" != "x" ; then
22252 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" |
$as_tr_sh`
22253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22254 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22255 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22259 ac_res=`eval echo '${'$as_ac_Header'}'`
22260 { echo "$as_me:$LINENO: result: $ac_res" >&5
22261 echo "${ECHO_T}$ac_res" >&6; }
22263 # Is the header compilable?
22264 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
22265 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
22266 cat >conftest.$ac_ext <<_ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22272 $ac_includes_default
22273 #include <${NCURSES_DIR}/include/curses.h>
22275 rm -f conftest.$ac_objext
22276 if { (ac_try="$ac_compile"
22277 case "(($ac_try" in
22278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22279 *) ac_try_echo
=$ac_try;;
22281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22282 (eval "$ac_compile") 2>conftest.er1
22284 grep -v '^ *+' conftest.er1
>conftest.err
22286 cat conftest.err
>&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } && {
22289 test -z "$ac_c_werror_flag" ||
22290 test ! -s conftest.err
22291 } && test -s conftest.
$ac_objext; then
22292 ac_header_compiler
=yes
22294 echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.
$ac_ext >&5
22297 ac_header_compiler
=no
22300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22302 echo "${ECHO_T}$ac_header_compiler" >&6; }
22304 # Is the header present?
22305 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
22306 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
22307 cat >conftest.
$ac_ext <<_ACEOF
22310 cat confdefs.h
>>conftest.
$ac_ext
22311 cat >>conftest.
$ac_ext <<_ACEOF
22312 /* end confdefs.h. */
22313 #include <${NCURSES_DIR}/include/curses.h>
22315 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22316 case "(($ac_try" in
22317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22323 grep -v '^ *+' conftest.er1 >conftest.err
22325 cat conftest.err >&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } >/dev/null && {
22328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22329 test ! -s conftest.err
22331 ac_header_preproc=yes
22333 echo "$as_me: failed program was:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22336 ac_header_preproc=no
22339 rm -f conftest.err conftest.$ac_ext
22340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22341 echo "${ECHO_T}$ac_header_preproc" >&6; }
22343 # So? What about this header?
22344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22346 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22347 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22348 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
22349 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
22350 ac_header_preproc=yes
22353 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
22354 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
22355 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
22356 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
22357 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
22358 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
22359 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
22360 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22361 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
22362 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
22363 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
22364 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
22366 ## ------------------------------- ##
22367 ## Report this to www.asterisk.org ##
22368 ## ------------------------------- ##
22370 ) | sed "s/^/$as_me: WARNING: /" >&2
22373 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22374 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22376 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 eval "$as_ac_Header=\$ac_header_preproc"
22380 ac_res=`eval echo '${'$as_ac_Header'}'`
22381 { echo "$as_me:$LINENO: result: $ac_res" >&5
22382 echo "${ECHO_T}$ac_res" >&6; }
22385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22386 NCURSES_HEADER_FOUND=1
22388 NCURSES_HEADER_FOUND=0
22393 CPPFLAGS="${saved_cppflags}"
22395 if test "xcurses.h" != "x" ; then
22396 if test "${ac_cv_header_curses_h+set}" = set; then
22397 { echo "$as_me:$LINENO: checking for curses.h" >&5
22398 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22399 if test "${ac_cv_header_curses_h+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22402 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22403 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22405 # Is the header compilable?
22406 { echo "$as_me:$LINENO: checking curses.h usability" >&5
22407 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
22408 cat >conftest.$ac_ext <<_ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22414 $ac_includes_default
22415 #include <curses.h>
22417 rm -f conftest.$ac_objext
22418 if { (ac_try="$ac_compile"
22419 case "(($ac_try" in
22420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22421 *) ac_try_echo
=$ac_try;;
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_compile") 2>conftest.er1
22426 grep -v '^ *+' conftest.er1
>conftest.err
22428 cat conftest.err
>&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } && {
22431 test -z "$ac_c_werror_flag" ||
22432 test ! -s conftest.err
22433 } && test -s conftest.
$ac_objext; then
22434 ac_header_compiler
=yes
22436 echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.
$ac_ext >&5
22439 ac_header_compiler
=no
22442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22444 echo "${ECHO_T}$ac_header_compiler" >&6; }
22446 # Is the header present?
22447 { echo "$as_me:$LINENO: checking curses.h presence" >&5
22448 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
22449 cat >conftest.
$ac_ext <<_ACEOF
22452 cat confdefs.h
>>conftest.
$ac_ext
22453 cat >>conftest.
$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22455 #include <curses.h>
22457 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22458 case "(($ac_try" in
22459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22465 grep -v '^ *+' conftest.er1 >conftest.err
22467 cat conftest.err >&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } >/dev/null && {
22470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22471 test ! -s conftest.err
22473 ac_header_preproc=yes
22475 echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22478 ac_header_preproc=no
22481 rm -f conftest.err conftest.$ac_ext
22482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22483 echo "${ECHO_T}$ac_header_preproc" >&6; }
22485 # So? What about this header?
22486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22488 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22489 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22490 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
22491 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
22492 ac_header_preproc=yes
22495 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
22496 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
22497 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
22498 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
22499 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
22500 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
22501 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
22502 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22503 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
22504 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
22505 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
22506 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
22508 ## ------------------------------- ##
22509 ## Report this to www.asterisk.org ##
22510 ## ------------------------------- ##
22512 ) | sed "s/^/$as_me: WARNING: /" >&2
22515 { echo "$as_me:$LINENO: checking for curses.h" >&5
22516 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22517 if test "${ac_cv_header_curses_h+set}" = set; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22520 ac_cv_header_curses_h=$ac_header_preproc
22522 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22523 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22526 if test $ac_cv_header_curses_h = yes; then
22527 NCURSES_HEADER_FOUND=1
22529 NCURSES_HEADER_FOUND=0
22535 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
22536 if test -n "${NCURSES_MANDATORY}" ;
22538 { echo "$as_me:$LINENO: ***" >&5
22539 echo "$as_me: ***" >&6;}
22540 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
22541 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
22542 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
22543 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
22544 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22545 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22554 cat >>confdefs.h <<_ACEOF
22555 #define HAVE_NCURSES 1
22559 elif test -n "${NCURSES_MANDATORY}";
22561 { echo "$as_me:$LINENO: ***" >&5
22562 echo "$as_me: ***" >&6;}
22563 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
22564 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
22565 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22566 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22567 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22568 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22575 if test "${USE_NETSNMP}" != "no"; then
22576 if test "x${NETSNMP_DIR}" != "x"; then
22577 if test -n "$ac_tool_prefix"; then
22578 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22579 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22582 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22585 case $NETSNMP_CONFIG in
22587 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22591 for as_dir in ${NETSNMP_DIR}/bin
22594 test -z "$as_dir" && as_dir=.
22595 for ac_exec_ext in '' $ac_executable_extensions; do
22596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22597 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22608 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22609 if test -n "$NETSNMP_CONFIG"; then
22610 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22611 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22613 { echo "$as_me:$LINENO: result: no" >&5
22614 echo "${ECHO_T}no" >&6; }
22619 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22620 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22621 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22622 set dummy net-snmp-config; ac_word=$2
22623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22625 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22626 echo $ECHO_N "(cached) $ECHO_C" >&6
22628 case $ac_pt_NETSNMP_CONFIG in
22630 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22634 for as_dir in ${NETSNMP_DIR}/bin
22637 test -z "$as_dir" && as_dir=.
22638 for ac_exec_ext in '' $ac_executable_extensions; do
22639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22640 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22651 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22652 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22653 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22654 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22656 { echo "$as_me:$LINENO: result: no" >&5
22657 echo "${ECHO_T}no" >&6; }
22660 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22661 NETSNMP_CONFIG="No"
22663 case $cross_compiling:$ac_tool_warned in
22665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22666 whose name does not start with the host triplet. If you think this
22667 configuration is useful to you, please write to autoconf@gnu.org." >&5
22668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22669 whose name does not start with the host triplet. If you think this
22670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22671 ac_tool_warned=yes ;;
22673 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22676 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22679 if test x"${NETSNMP_CONFIG}" = xNo; then
22680 { echo "$as_me:$LINENO: ***" >&5
22681 echo "$as_me: ***" >&6;}
22682 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
22683 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
22684 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
22685 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
22686 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22687 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22688 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22689 echo "$as_me: *** including --without-netsnmp" >&6;}
22693 if test -n "$ac_tool_prefix"; then
22694 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22695 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22698 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22701 case $NETSNMP_CONFIG in
22703 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22707 for as_dir in $PATH
22710 test -z "$as_dir" && as_dir=.
22711 for ac_exec_ext in '' $ac_executable_extensions; do
22712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22713 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22724 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22725 if test -n "$NETSNMP_CONFIG"; then
22726 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22727 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22729 { echo "$as_me:$LINENO: result: no" >&5
22730 echo "${ECHO_T}no" >&6; }
22735 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22736 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22737 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22738 set dummy net-snmp-config; ac_word=$2
22739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22741 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22744 case $ac_pt_NETSNMP_CONFIG in
22746 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22750 for as_dir in $PATH
22753 test -z "$as_dir" && as_dir=.
22754 for ac_exec_ext in '' $ac_executable_extensions; do
22755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22756 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22767 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22768 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22769 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22770 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22772 { echo "$as_me:$LINENO: result: no" >&5
22773 echo "${ECHO_T}no" >&6; }
22776 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22777 NETSNMP_CONFIG="No"
22779 case $cross_compiling:$ac_tool_warned in
22781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22782 whose name does not start with the host triplet. If you think this
22783 configuration is useful to you, please write to autoconf@gnu.org." >&5
22784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22785 whose name does not start with the host triplet. If you think this
22786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22787 ac_tool_warned=yes ;;
22789 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22792 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22797 if test x"${NETSNMP_CONFIG}" != xNo; then
22798 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
22800 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
22801 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
22802 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
22803 echo $ECHO_N "(cached) $ECHO_C" >&6
22805 ac_check_lib_save_LIBS=$LIBS
22806 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
22807 cat >conftest.$ac_ext <<_ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h. */
22814 /* Override any GCC internal prototype to avoid an error.
22815 Use char because int might match the return type of a GCC
22816 builtin and then its argument prototype would still apply. */
22820 char snmp_register_callback ();
22824 return snmp_register_callback ();
22829 rm -f conftest.$ac_objext conftest$ac_exeext
22830 if { (ac_try="$ac_link"
22831 case "(($ac_try" in
22832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22833 *) ac_try_echo
=$ac_try;;
22835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22836 (eval "$ac_link") 2>conftest.er1
22838 grep -v '^ *+' conftest.er1
>conftest.err
22840 cat conftest.err
>&5
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } && {
22843 test -z "$ac_c_werror_flag" ||
22844 test ! -s conftest.err
22845 } && test -s conftest
$ac_exeext &&
22846 $as_test_x conftest
$ac_exeext; then
22847 ac_cv_lib_netsnmp_snmp_register_callback
=yes
22849 echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.
$ac_ext >&5
22852 ac_cv_lib_netsnmp_snmp_register_callback
=no
22855 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22856 conftest
$ac_exeext conftest.
$ac_ext
22857 LIBS
=$ac_check_lib_save_LIBS
22859 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
22860 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
22861 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
22863 cat >>confdefs.h
<<_ACEOF
22864 #define HAVE_NETSNMP 1
22870 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
22871 NETSNMP_LIB
="${NETSNMP_libs}"
22873 elif test -n "${NETSNMP_MANDATORY}";
22875 { echo "$as_me:$LINENO: ***" >&5
22876 echo "$as_me: ***" >&6;}
22877 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22878 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22879 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22880 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22881 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22882 echo "$as_me: *** including --without-netsnmp" >&6;}
22885 elif test -n "${NETSNMP_MANDATORY}";
22887 { echo "$as_me:$LINENO: ***" >&5
22888 echo "$as_me: ***" >&6;}
22889 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22890 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22891 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22892 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22893 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22894 echo "$as_me: *** including --without-netsnmp" >&6;}
22899 if test "${USE_NEWT}" != "no"; then
22901 if test "x${NEWT_DIR}" != "x"; then
22902 if test -d ${NEWT_DIR}/lib
; then
22903 pbxlibdir
="-L${NEWT_DIR}/lib"
22905 pbxlibdir
="-L${NEWT_DIR}"
22908 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
22909 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
22910 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22913 ac_check_lib_save_LIBS
=$LIBS
22914 LIBS
="-lnewt ${pbxlibdir} $LIBS"
22915 cat >conftest.
$ac_ext <<_ACEOF
22918 cat confdefs.h
>>conftest.
$ac_ext
22919 cat >>conftest.
$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22922 /* Override any GCC internal prototype to avoid an error.
22923 Use char because int might match the return type of a GCC
22924 builtin and then its argument prototype would still apply. */
22932 return newtBell ();
22937 rm -f conftest.
$ac_objext conftest
$ac_exeext
22938 if { (ac_try
="$ac_link"
22939 case "(($ac_try" in
22940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22944 (eval "$ac_link") 2>conftest.er1
22946 grep -v '^ *+' conftest.er1 >conftest.err
22948 cat conftest.err >&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); } && {
22951 test -z "$ac_c_werror_flag" ||
22952 test ! -s conftest.err
22953 } && test -s conftest$ac_exeext &&
22954 $as_test_x conftest$ac_exeext; then
22955 ac_cv_lib_newt_newtBell=yes
22957 echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22960 ac_cv_lib_newt_newtBell=no
22963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22964 conftest$ac_exeext conftest.$ac_ext
22965 LIBS=$ac_check_lib_save_LIBS
22967 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
22968 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
22969 if test $ac_cv_lib_newt_newtBell = yes; then
22976 if test "${AST_NEWT_FOUND}" = "yes"; then
22978 NEWT_HEADER_FOUND="1"
22979 if test "x${NEWT_DIR}" != "x"; then
22980 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
22981 NEWT_INCLUDE="-I${NEWT_DIR}/include"
22982 saved_cppflags="${CPPFLAGS}"
22983 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
22984 if test "xnewt.h" != "x" ; then
22985 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" |
$as_tr_sh`
22986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22987 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
22988 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
22989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22990 echo $ECHO_N "(cached) $ECHO_C" >&6
22992 ac_res=`eval echo '${'$as_ac_Header'}'`
22993 { echo "$as_me:$LINENO: result: $ac_res" >&5
22994 echo "${ECHO_T}$ac_res" >&6; }
22996 # Is the header compilable?
22997 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
22998 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
22999 cat >conftest.$ac_ext <<_ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h. */
23005 $ac_includes_default
23006 #include <${NEWT_DIR}/include/newt.h>
23008 rm -f conftest.$ac_objext
23009 if { (ac_try="$ac_compile"
23010 case "(($ac_try" in
23011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23012 *) ac_try_echo
=$ac_try;;
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_compile") 2>conftest.er1
23017 grep -v '^ *+' conftest.er1
>conftest.err
23019 cat conftest.err
>&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } && {
23022 test -z "$ac_c_werror_flag" ||
23023 test ! -s conftest.err
23024 } && test -s conftest.
$ac_objext; then
23025 ac_header_compiler
=yes
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.
$ac_ext >&5
23030 ac_header_compiler
=no
23033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23035 echo "${ECHO_T}$ac_header_compiler" >&6; }
23037 # Is the header present?
23038 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
23039 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
23040 cat >conftest.
$ac_ext <<_ACEOF
23043 cat confdefs.h
>>conftest.
$ac_ext
23044 cat >>conftest.
$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 #include <${NEWT_DIR}/include/newt.h>
23048 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23049 case "(($ac_try" in
23050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23056 grep -v '^ *+' conftest.er1 >conftest.err
23058 cat conftest.err >&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } >/dev/null && {
23061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23062 test ! -s conftest.err
23064 ac_header_preproc=yes
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_header_preproc=no
23072 rm -f conftest.err conftest.$ac_ext
23073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23074 echo "${ECHO_T}$ac_header_preproc" >&6; }
23076 # So? What about this header?
23077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23079 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23080 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23081 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
23082 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
23083 ac_header_preproc=yes
23086 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
23087 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
23088 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
23089 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
23090 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
23091 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
23092 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
23093 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23094 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
23095 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
23096 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
23097 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
23099 ## ------------------------------- ##
23100 ## Report this to www.asterisk.org ##
23101 ## ------------------------------- ##
23103 ) | sed "s/^/$as_me: WARNING: /" >&2
23106 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23107 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23111 eval "$as_ac_Header=\$ac_header_preproc"
23113 ac_res=`eval echo '${'$as_ac_Header'}'`
23114 { echo "$as_me:$LINENO: result: $ac_res" >&5
23115 echo "${ECHO_T}$ac_res" >&6; }
23118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23119 NEWT_HEADER_FOUND=1
23121 NEWT_HEADER_FOUND=0
23126 CPPFLAGS="${saved_cppflags}"
23128 if test "xnewt.h" != "x" ; then
23129 if test "${ac_cv_header_newt_h+set}" = set; then
23130 { echo "$as_me:$LINENO: checking for newt.h" >&5
23131 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23132 if test "${ac_cv_header_newt_h+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23135 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23136 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23138 # Is the header compilable?
23139 { echo "$as_me:$LINENO: checking newt.h usability" >&5
23140 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
23141 cat >conftest.$ac_ext <<_ACEOF
23144 cat confdefs.h >>conftest.$ac_ext
23145 cat >>conftest.$ac_ext <<_ACEOF
23146 /* end confdefs.h. */
23147 $ac_includes_default
23150 rm -f conftest.$ac_objext
23151 if { (ac_try="$ac_compile"
23152 case "(($ac_try" in
23153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23154 *) ac_try_echo
=$ac_try;;
23156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23157 (eval "$ac_compile") 2>conftest.er1
23159 grep -v '^ *+' conftest.er1
>conftest.err
23161 cat conftest.err
>&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); } && {
23164 test -z "$ac_c_werror_flag" ||
23165 test ! -s conftest.err
23166 } && test -s conftest.
$ac_objext; then
23167 ac_header_compiler
=yes
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.
$ac_ext >&5
23172 ac_header_compiler
=no
23175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23177 echo "${ECHO_T}$ac_header_compiler" >&6; }
23179 # Is the header present?
23180 { echo "$as_me:$LINENO: checking newt.h presence" >&5
23181 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
23182 cat >conftest.
$ac_ext <<_ACEOF
23185 cat confdefs.h
>>conftest.
$ac_ext
23186 cat >>conftest.
$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23190 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23191 case "(($ac_try" in
23192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23198 grep -v '^ *+' conftest.er1 >conftest.err
23200 cat conftest.err >&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); } >/dev/null && {
23203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23204 test ! -s conftest.err
23206 ac_header_preproc=yes
23208 echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23211 ac_header_preproc=no
23214 rm -f conftest.err conftest.$ac_ext
23215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23216 echo "${ECHO_T}$ac_header_preproc" >&6; }
23218 # So? What about this header?
23219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23221 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23222 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23223 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
23224 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
23225 ac_header_preproc=yes
23228 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
23229 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
23230 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
23231 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
23232 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
23233 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
23234 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
23235 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23236 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
23237 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
23238 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
23239 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
23241 ## ------------------------------- ##
23242 ## Report this to www.asterisk.org ##
23243 ## ------------------------------- ##
23245 ) | sed "s/^/$as_me: WARNING: /" >&2
23248 { echo "$as_me:$LINENO: checking for newt.h" >&5
23249 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23250 if test "${ac_cv_header_newt_h+set}" = set; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23253 ac_cv_header_newt_h=$ac_header_preproc
23255 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23256 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23259 if test $ac_cv_header_newt_h = yes; then
23260 NEWT_HEADER_FOUND=1
23262 NEWT_HEADER_FOUND=0
23268 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
23269 if test -n "${NEWT_MANDATORY}" ;
23271 { echo "$as_me:$LINENO: ***" >&5
23272 echo "$as_me: ***" >&6;}
23273 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
23274 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
23275 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
23276 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
23277 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23278 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23287 cat >>confdefs.h <<_ACEOF
23288 #define HAVE_NEWT 1
23292 elif test -n "${NEWT_MANDATORY}";
23294 { echo "$as_me:$LINENO: ***" >&5
23295 echo "$as_me: ***" >&6;}
23296 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
23297 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
23298 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23299 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23300 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23301 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23308 if test "${USE_UNIXODBC}" != "no"; then
23310 if test "x${UNIXODBC_DIR}" != "x"; then
23311 if test -d ${UNIXODBC_DIR}/lib; then
23312 pbxlibdir="-L${UNIXODBC_DIR}/lib"
23314 pbxlibdir="-L${UNIXODBC_DIR}"
23317 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
23318 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
23319 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23322 ac_check_lib_save_LIBS=$LIBS
23323 LIBS="-lodbc ${pbxlibdir} $LIBS"
23324 cat >conftest.$ac_ext <<_ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h. */
23331 /* Override any GCC internal prototype to avoid an error.
23332 Use char because int might match the return type of a GCC
23333 builtin and then its argument prototype would still apply. */
23337 char SQLConnect ();
23341 return SQLConnect ();
23346 rm -f conftest.$ac_objext conftest$ac_exeext
23347 if { (ac_try="$ac_link"
23348 case "(($ac_try" in
23349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23350 *) ac_try_echo
=$ac_try;;
23352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23353 (eval "$ac_link") 2>conftest.er1
23355 grep -v '^ *+' conftest.er1
>conftest.err
23357 cat conftest.err
>&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } && {
23360 test -z "$ac_c_werror_flag" ||
23361 test ! -s conftest.err
23362 } && test -s conftest
$ac_exeext &&
23363 $as_test_x conftest
$ac_exeext; then
23364 ac_cv_lib_odbc_SQLConnect
=yes
23366 echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.
$ac_ext >&5
23369 ac_cv_lib_odbc_SQLConnect
=no
23372 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23373 conftest
$ac_exeext conftest.
$ac_ext
23374 LIBS
=$ac_check_lib_save_LIBS
23376 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
23377 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
23378 if test $ac_cv_lib_odbc_SQLConnect = yes; then
23379 AST_UNIXODBC_FOUND
=yes
23381 AST_UNIXODBC_FOUND
=no
23385 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
23386 UNIXODBC_LIB
="-lodbc "
23387 UNIXODBC_HEADER_FOUND
="1"
23388 if test "x${UNIXODBC_DIR}" != "x"; then
23389 UNIXODBC_LIB
="${pbxlibdir} ${UNIXODBC_LIB}"
23390 UNIXODBC_INCLUDE
="-I${UNIXODBC_DIR}/include"
23391 saved_cppflags
="${CPPFLAGS}"
23392 CPPFLAGS
="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
23393 if test "xsql.h" != "x" ; then
23394 as_ac_Header
=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
23395 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23396 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23397 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23398 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23399 echo $ECHO_N "(cached) $ECHO_C" >&6
23401 ac_res
=`eval echo '${'$as_ac_Header'}'`
23402 { echo "$as_me:$LINENO: result: $ac_res" >&5
23403 echo "${ECHO_T}$ac_res" >&6; }
23405 # Is the header compilable?
23406 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
23407 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
23408 cat >conftest.
$ac_ext <<_ACEOF
23411 cat confdefs.h
>>conftest.
$ac_ext
23412 cat >>conftest.
$ac_ext <<_ACEOF
23413 /* end confdefs.h. */
23414 $ac_includes_default
23415 #include <${UNIXODBC_DIR}/include/sql.h>
23417 rm -f conftest.
$ac_objext
23418 if { (ac_try
="$ac_compile"
23419 case "(($ac_try" in
23420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23421 *) ac_try_echo=$ac_try;;
23423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23424 (eval "$ac_compile") 2>conftest.er1
23426 grep -v '^ *+' conftest.er1 >conftest.err
23428 cat conftest.err >&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); } && {
23431 test -z "$ac_c_werror_flag" ||
23432 test ! -s conftest.err
23433 } && test -s conftest.$ac_objext; then
23434 ac_header_compiler=yes
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23439 ac_header_compiler=no
23442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23444 echo "${ECHO_T}$ac_header_compiler" >&6; }
23446 # Is the header present?
23447 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
23448 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
23449 cat >conftest.$ac_ext <<_ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 #include <${UNIXODBC_DIR}/include/sql.h>
23457 if { (ac_try="$ac_cpp conftest.$ac_ext"
23458 case "(($ac_try" in
23459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23460 *) ac_try_echo
=$ac_try;;
23462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23465 grep -v '^ *+' conftest.er1
>conftest.err
23467 cat conftest.err
>&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } >/dev
/null
&& {
23470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23471 test ! -s conftest.err
23473 ac_header_preproc
=yes
23475 echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.
$ac_ext >&5
23478 ac_header_preproc
=no
23481 rm -f conftest.err conftest.
$ac_ext
23482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23483 echo "${ECHO_T}$ac_header_preproc" >&6; }
23485 # So? What about this header?
23486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23488 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23489 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23490 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
23491 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
23492 ac_header_preproc
=yes
23495 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
23496 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
23497 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
23498 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
23499 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
23500 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
23501 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
23502 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23503 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
23504 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
23505 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
23506 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
23508 ## ------------------------------- ##
23509 ## Report this to www.asterisk.org ##
23510 ## ------------------------------- ##
23512 ) |
sed "s/^/$as_me: WARNING: /" >&2
23515 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23516 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23517 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
23520 eval "$as_ac_Header=\$ac_header_preproc"
23522 ac_res
=`eval echo '${'$as_ac_Header'}'`
23523 { echo "$as_me:$LINENO: result: $ac_res" >&5
23524 echo "${ECHO_T}$ac_res" >&6; }
23527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23528 UNIXODBC_HEADER_FOUND
=1
23530 UNIXODBC_HEADER_FOUND
=0
23535 CPPFLAGS
="${saved_cppflags}"
23537 if test "xsql.h" != "x" ; then
23538 if test "${ac_cv_header_sql_h+set}" = set; then
23539 { echo "$as_me:$LINENO: checking for sql.h" >&5
23540 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23541 if test "${ac_cv_header_sql_h+set}" = set; then
23542 echo $ECHO_N "(cached) $ECHO_C" >&6
23544 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23545 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23547 # Is the header compilable?
23548 { echo "$as_me:$LINENO: checking sql.h usability" >&5
23549 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
23550 cat >conftest.
$ac_ext <<_ACEOF
23553 cat confdefs.h
>>conftest.
$ac_ext
23554 cat >>conftest.
$ac_ext <<_ACEOF
23555 /* end confdefs.h. */
23556 $ac_includes_default
23559 rm -f conftest.
$ac_objext
23560 if { (ac_try
="$ac_compile"
23561 case "(($ac_try" in
23562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23563 *) ac_try_echo=$ac_try;;
23565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23566 (eval "$ac_compile") 2>conftest.er1
23568 grep -v '^ *+' conftest.er1 >conftest.err
23570 cat conftest.err >&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } && {
23573 test -z "$ac_c_werror_flag" ||
23574 test ! -s conftest.err
23575 } && test -s conftest.$ac_objext; then
23576 ac_header_compiler=yes
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23581 ac_header_compiler=no
23584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23586 echo "${ECHO_T}$ac_header_compiler" >&6; }
23588 # Is the header present?
23589 { echo "$as_me:$LINENO: checking sql.h presence" >&5
23590 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
23591 cat >conftest.$ac_ext <<_ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23599 if { (ac_try="$ac_cpp conftest.$ac_ext"
23600 case "(($ac_try" in
23601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23602 *) ac_try_echo
=$ac_try;;
23604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23607 grep -v '^ *+' conftest.er1
>conftest.err
23609 cat conftest.err
>&5
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); } >/dev
/null
&& {
23612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23613 test ! -s conftest.err
23615 ac_header_preproc
=yes
23617 echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.
$ac_ext >&5
23620 ac_header_preproc
=no
23623 rm -f conftest.err conftest.
$ac_ext
23624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23625 echo "${ECHO_T}$ac_header_preproc" >&6; }
23627 # So? What about this header?
23628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23630 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23631 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23632 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
23633 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
23634 ac_header_preproc
=yes
23637 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
23638 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
23639 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
23640 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
23641 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
23642 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
23643 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
23644 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23645 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
23646 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
23647 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
23648 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
23650 ## ------------------------------- ##
23651 ## Report this to www.asterisk.org ##
23652 ## ------------------------------- ##
23654 ) |
sed "s/^/$as_me: WARNING: /" >&2
23657 { echo "$as_me:$LINENO: checking for sql.h" >&5
23658 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23659 if test "${ac_cv_header_sql_h+set}" = set; then
23660 echo $ECHO_N "(cached) $ECHO_C" >&6
23662 ac_cv_header_sql_h
=$ac_header_preproc
23664 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23665 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23668 if test $ac_cv_header_sql_h = yes; then
23669 UNIXODBC_HEADER_FOUND
=1
23671 UNIXODBC_HEADER_FOUND
=0
23677 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
23678 if test -n "${UNIXODBC_MANDATORY}" ;
23680 { echo "$as_me:$LINENO: ***" >&5
23681 echo "$as_me: ***" >&6;}
23682 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
23683 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
23684 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
23685 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
23686 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23687 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23691 UNIXODBC_INCLUDE
=""
23696 cat >>confdefs.h
<<_ACEOF
23697 #define HAVE_UNIXODBC 1
23701 elif test -n "${UNIXODBC_MANDATORY}";
23703 { echo "$as_me:$LINENO: ***" >&5
23704 echo "$as_me: ***" >&6;}
23705 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
23706 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
23707 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23708 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23709 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23710 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23717 if test "${USE_OGG}" != "no"; then
23719 if test "x${OGG_DIR}" != "x"; then
23720 if test -d ${OGG_DIR}/lib
; then
23721 pbxlibdir
="-L${OGG_DIR}/lib"
23723 pbxlibdir
="-L${OGG_DIR}"
23726 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
23727 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
23728 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
23729 echo $ECHO_N "(cached) $ECHO_C" >&6
23731 ac_check_lib_save_LIBS
=$LIBS
23732 LIBS
="-logg ${pbxlibdir} $LIBS"
23733 cat >conftest.
$ac_ext <<_ACEOF
23736 cat confdefs.h
>>conftest.
$ac_ext
23737 cat >>conftest.
$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23740 /* Override any GCC internal prototype to avoid an error.
23741 Use char because int might match the return type of a GCC
23742 builtin and then its argument prototype would still apply. */
23746 char ogg_sync_init ();
23750 return ogg_sync_init ();
23755 rm -f conftest.
$ac_objext conftest
$ac_exeext
23756 if { (ac_try
="$ac_link"
23757 case "(($ac_try" in
23758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23762 (eval "$ac_link") 2>conftest.er1
23764 grep -v '^ *+' conftest.er1 >conftest.err
23766 cat conftest.err >&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); } && {
23769 test -z "$ac_c_werror_flag" ||
23770 test ! -s conftest.err
23771 } && test -s conftest$ac_exeext &&
23772 $as_test_x conftest$ac_exeext; then
23773 ac_cv_lib_ogg_ogg_sync_init=yes
23775 echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23778 ac_cv_lib_ogg_ogg_sync_init=no
23781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23782 conftest$ac_exeext conftest.$ac_ext
23783 LIBS=$ac_check_lib_save_LIBS
23785 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
23786 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
23787 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
23794 if test "${AST_OGG_FOUND}" = "yes"; then
23796 OGG_HEADER_FOUND="1"
23797 if test "x${OGG_DIR}" != "x"; then
23798 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
23799 OGG_INCLUDE="-I${OGG_DIR}/include"
23800 saved_cppflags="${CPPFLAGS}"
23801 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
23802 if test "x" != "x" ; then
23803 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" |
$as_tr_sh`
23804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23805 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23806 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23808 echo $ECHO_N "(cached) $ECHO_C" >&6
23810 ac_res=`eval echo '${'$as_ac_Header'}'`
23811 { echo "$as_me:$LINENO: result: $ac_res" >&5
23812 echo "${ECHO_T}$ac_res" >&6; }
23814 # Is the header compilable?
23815 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
23816 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
23817 cat >conftest.$ac_ext <<_ACEOF
23820 cat confdefs.h >>conftest.$ac_ext
23821 cat >>conftest.$ac_ext <<_ACEOF
23822 /* end confdefs.h. */
23823 $ac_includes_default
23824 #include <${OGG_DIR}/include/>
23826 rm -f conftest.$ac_objext
23827 if { (ac_try="$ac_compile"
23828 case "(($ac_try" in
23829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23830 *) ac_try_echo
=$ac_try;;
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833 (eval "$ac_compile") 2>conftest.er1
23835 grep -v '^ *+' conftest.er1
>conftest.err
23837 cat conftest.err
>&5
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } && {
23840 test -z "$ac_c_werror_flag" ||
23841 test ! -s conftest.err
23842 } && test -s conftest.
$ac_objext; then
23843 ac_header_compiler
=yes
23845 echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.
$ac_ext >&5
23848 ac_header_compiler
=no
23851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23853 echo "${ECHO_T}$ac_header_compiler" >&6; }
23855 # Is the header present?
23856 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
23857 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
23858 cat >conftest.
$ac_ext <<_ACEOF
23861 cat confdefs.h
>>conftest.
$ac_ext
23862 cat >>conftest.
$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23864 #include <${OGG_DIR}/include/>
23866 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23867 case "(($ac_try" in
23868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23869 *) ac_try_echo=$ac_try;;
23871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23874 grep -v '^ *+' conftest.er1 >conftest.err
23876 cat conftest.err >&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } >/dev/null && {
23879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23880 test ! -s conftest.err
23882 ac_header_preproc=yes
23884 echo "$as_me: failed program was:" >&5
23885 sed 's/^/| /' conftest.$ac_ext >&5
23887 ac_header_preproc=no
23890 rm -f conftest.err conftest.$ac_ext
23891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23892 echo "${ECHO_T}$ac_header_preproc" >&6; }
23894 # So? What about this header?
23895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23897 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
23898 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
23899 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
23900 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
23901 ac_header_preproc=yes
23904 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
23905 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
23906 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
23907 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
23908 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
23909 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
23910 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
23911 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
23912 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
23913 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
23914 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
23915 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
23917 ## ------------------------------- ##
23918 ## Report this to www.asterisk.org ##
23919 ## ------------------------------- ##
23921 ) | sed "s/^/$as_me: WARNING: /" >&2
23924 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23925 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23927 echo $ECHO_N "(cached) $ECHO_C" >&6
23929 eval "$as_ac_Header=\$ac_header_preproc"
23931 ac_res=`eval echo '${'$as_ac_Header'}'`
23932 { echo "$as_me:$LINENO: result: $ac_res" >&5
23933 echo "${ECHO_T}$ac_res" >&6; }
23936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23944 CPPFLAGS="${saved_cppflags}"
23946 if test "x" != "x" ; then
23947 if test "${ac_cv_header_+set}" = set; then
23948 { echo "$as_me:$LINENO: checking for " >&5
23949 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23950 if test "${ac_cv_header_+set}" = set; then
23951 echo $ECHO_N "(cached) $ECHO_C" >&6
23953 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23954 echo "${ECHO_T}$ac_cv_header_" >&6; }
23956 # Is the header compilable?
23957 { echo "$as_me:$LINENO: checking usability" >&5
23958 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23959 cat >conftest.$ac_ext <<_ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23965 $ac_includes_default
23968 rm -f conftest.$ac_objext
23969 if { (ac_try="$ac_compile"
23970 case "(($ac_try" in
23971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23972 *) ac_try_echo
=$ac_try;;
23974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23975 (eval "$ac_compile") 2>conftest.er1
23977 grep -v '^ *+' conftest.er1
>conftest.err
23979 cat conftest.err
>&5
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); } && {
23982 test -z "$ac_c_werror_flag" ||
23983 test ! -s conftest.err
23984 } && test -s conftest.
$ac_objext; then
23985 ac_header_compiler
=yes
23987 echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.
$ac_ext >&5
23990 ac_header_compiler
=no
23993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23995 echo "${ECHO_T}$ac_header_compiler" >&6; }
23997 # Is the header present?
23998 { echo "$as_me:$LINENO: checking presence" >&5
23999 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24000 cat >conftest.
$ac_ext <<_ACEOF
24003 cat confdefs.h
>>conftest.
$ac_ext
24004 cat >>conftest.
$ac_ext <<_ACEOF
24005 /* end confdefs.h. */
24008 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24009 case "(($ac_try" in
24010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24011 *) ac_try_echo=$ac_try;;
24013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24016 grep -v '^ *+' conftest.er1 >conftest.err
24018 cat conftest.err >&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); } >/dev/null && {
24021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24022 test ! -s conftest.err
24024 ac_header_preproc=yes
24026 echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24029 ac_header_preproc=no
24032 rm -f conftest.err conftest.$ac_ext
24033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24034 echo "${ECHO_T}$ac_header_preproc" >&6; }
24036 # So? What about this header?
24037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24039 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24040 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24041 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24042 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24043 ac_header_preproc=yes
24046 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24047 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24048 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24049 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24050 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24051 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24052 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24053 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24054 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24055 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24056 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24057 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24059 ## ------------------------------- ##
24060 ## Report this to www.asterisk.org ##
24061 ## ------------------------------- ##
24063 ) | sed "s/^/$as_me: WARNING: /" >&2
24066 { echo "$as_me:$LINENO: checking for " >&5
24067 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24068 if test "${ac_cv_header_+set}" = set; then
24069 echo $ECHO_N "(cached) $ECHO_C" >&6
24071 ac_cv_header_=$ac_header_preproc
24073 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24074 echo "${ECHO_T}$ac_cv_header_" >&6; }
24077 if test $ac_cv_header_ = yes; then
24086 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
24087 if test -n "${OGG_MANDATORY}" ;
24089 { echo "$as_me:$LINENO: ***" >&5
24090 echo "$as_me: ***" >&6;}
24091 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
24092 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
24093 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
24094 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
24095 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24096 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24105 cat >>confdefs.h <<_ACEOF
24110 elif test -n "${OGG_MANDATORY}";
24112 { echo "$as_me:$LINENO: ***" >&5
24113 echo "$as_me: ***" >&6;}
24114 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
24115 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
24116 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24117 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24118 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24119 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24125 if test "${USE_OSS}" != "no"; then
24127 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24128 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24129 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24130 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24131 echo $ECHO_N "(cached) $ECHO_C" >&6
24133 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24134 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24136 # Is the header compilable?
24137 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
24138 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
24139 cat >conftest.$ac_ext <<_ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h. */
24145 $ac_includes_default
24146 #include <linux/soundcard.h>
24148 rm -f conftest.$ac_objext
24149 if { (ac_try="$ac_compile"
24150 case "(($ac_try" in
24151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24152 *) ac_try_echo
=$ac_try;;
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24157 grep -v '^ *+' conftest.er1
>conftest.err
24159 cat conftest.err
>&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.
$ac_objext; then
24165 ac_header_compiler
=yes
24167 echo "$as_me: failed program was:" >&5
24168 sed 's/^/| /' conftest.
$ac_ext >&5
24170 ac_header_compiler
=no
24173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24175 echo "${ECHO_T}$ac_header_compiler" >&6; }
24177 # Is the header present?
24178 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
24179 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
24180 cat >conftest.
$ac_ext <<_ACEOF
24183 cat confdefs.h
>>conftest.
$ac_ext
24184 cat >>conftest.
$ac_ext <<_ACEOF
24185 /* end confdefs.h. */
24186 #include <linux/soundcard.h>
24188 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24189 case "(($ac_try" in
24190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24196 grep -v '^ *+' conftest.er1 >conftest.err
24198 cat conftest.err >&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } >/dev/null && {
24201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24202 test ! -s conftest.err
24204 ac_header_preproc=yes
24206 echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24209 ac_header_preproc=no
24212 rm -f conftest.err conftest.$ac_ext
24213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24214 echo "${ECHO_T}$ac_header_preproc" >&6; }
24216 # So? What about this header?
24217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24219 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24220 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24221 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
24222 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
24223 ac_header_preproc=yes
24226 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
24227 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
24228 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
24229 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
24230 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
24231 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
24232 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24233 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24234 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
24235 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
24236 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
24237 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
24239 ## ------------------------------- ##
24240 ## Report this to www.asterisk.org ##
24241 ## ------------------------------- ##
24243 ) | sed "s/^/$as_me: WARNING: /" >&2
24246 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24247 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24248 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24249 echo $ECHO_N "(cached) $ECHO_C" >&6
24251 ac_cv_header_linux_soundcard_h=$ac_header_preproc
24253 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24254 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24257 if test $ac_cv_header_linux_soundcard_h = yes; then
24261 cat >>confdefs.h <<_ACEOF
24269 if test "$PBX_OSS" = "0"; then
24270 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24271 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24272 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24273 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24277 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24279 # Is the header compilable?
24280 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
24281 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
24282 cat >conftest.$ac_ext <<_ACEOF
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h. */
24288 $ac_includes_default
24289 #include <sys/soundcard.h>
24291 rm -f conftest.$ac_objext
24292 if { (ac_try="$ac_compile"
24293 case "(($ac_try" in
24294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24295 *) ac_try_echo
=$ac_try;;
24297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24298 (eval "$ac_compile") 2>conftest.er1
24300 grep -v '^ *+' conftest.er1
>conftest.err
24302 cat conftest.err
>&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } && {
24305 test -z "$ac_c_werror_flag" ||
24306 test ! -s conftest.err
24307 } && test -s conftest.
$ac_objext; then
24308 ac_header_compiler
=yes
24310 echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.
$ac_ext >&5
24313 ac_header_compiler
=no
24316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24318 echo "${ECHO_T}$ac_header_compiler" >&6; }
24320 # Is the header present?
24321 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
24322 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
24323 cat >conftest.
$ac_ext <<_ACEOF
24326 cat confdefs.h
>>conftest.
$ac_ext
24327 cat >>conftest.
$ac_ext <<_ACEOF
24328 /* end confdefs.h. */
24329 #include <sys/soundcard.h>
24331 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24332 case "(($ac_try" in
24333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24339 grep -v '^ *+' conftest.er1 >conftest.err
24341 cat conftest.err >&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); } >/dev/null && {
24344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24345 test ! -s conftest.err
24347 ac_header_preproc=yes
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24352 ac_header_preproc=no
24355 rm -f conftest.err conftest.$ac_ext
24356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24357 echo "${ECHO_T}$ac_header_preproc" >&6; }
24359 # So? What about this header?
24360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24362 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24363 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24364 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
24365 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
24366 ac_header_preproc=yes
24369 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
24370 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
24371 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
24372 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
24373 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
24374 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
24375 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24376 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24377 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
24378 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
24379 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
24380 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
24382 ## ------------------------------- ##
24383 ## Report this to www.asterisk.org ##
24384 ## ------------------------------- ##
24386 ) | sed "s/^/$as_me: WARNING: /" >&2
24389 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24390 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24391 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24392 echo $ECHO_N "(cached) $ECHO_C" >&6
24394 ac_cv_header_sys_soundcard_h=$ac_header_preproc
24396 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24397 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24400 if test $ac_cv_header_sys_soundcard_h = yes; then
24404 cat >>confdefs.h <<_ACEOF
24413 if test "$PBX_OSS" = "0"; then
24415 if test "${USE_OSS}" != "no"; then
24417 if test "x${OSS_DIR}" != "x"; then
24418 if test -d ${OSS_DIR}/lib; then
24419 pbxlibdir="-L${OSS_DIR}/lib"
24421 pbxlibdir="-L${OSS_DIR}"
24424 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
24425 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
24426 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
24427 echo $ECHO_N "(cached) $ECHO_C" >&6
24429 ac_check_lib_save_LIBS=$LIBS
24430 LIBS="-lossaudio ${pbxlibdir} $LIBS"
24431 cat >conftest.$ac_ext <<_ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h. */
24438 /* Override any GCC internal prototype to avoid an error.
24439 Use char because int might match the return type of a GCC
24440 builtin and then its argument prototype would still apply. */
24444 char oss_ioctl_mixer ();
24448 return oss_ioctl_mixer ();
24453 rm -f conftest.$ac_objext conftest$ac_exeext
24454 if { (ac_try="$ac_link"
24455 case "(($ac_try" in
24456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24457 *) ac_try_echo
=$ac_try;;
24459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460 (eval "$ac_link") 2>conftest.er1
24462 grep -v '^ *+' conftest.er1
>conftest.err
24464 cat conftest.err
>&5
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } && {
24467 test -z "$ac_c_werror_flag" ||
24468 test ! -s conftest.err
24469 } && test -s conftest
$ac_exeext &&
24470 $as_test_x conftest
$ac_exeext; then
24471 ac_cv_lib_ossaudio_oss_ioctl_mixer
=yes
24473 echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.
$ac_ext >&5
24476 ac_cv_lib_ossaudio_oss_ioctl_mixer
=no
24479 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24480 conftest
$ac_exeext conftest.
$ac_ext
24481 LIBS
=$ac_check_lib_save_LIBS
24483 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
24484 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
24485 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
24492 if test "${AST_OSS_FOUND}" = "yes"; then
24493 OSS_LIB
="-lossaudio "
24494 OSS_HEADER_FOUND
="1"
24495 if test "x${OSS_DIR}" != "x"; then
24496 OSS_LIB
="${pbxlibdir} ${OSS_LIB}"
24497 OSS_INCLUDE
="-I${OSS_DIR}/include"
24498 saved_cppflags
="${CPPFLAGS}"
24499 CPPFLAGS
="${CPPFLAGS} -I${OSS_DIR}/include"
24500 if test "xsoundcard.h" != "x" ; then
24501 as_ac_Header
=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
24502 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24503 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24504 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24505 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24506 echo $ECHO_N "(cached) $ECHO_C" >&6
24508 ac_res
=`eval echo '${'$as_ac_Header'}'`
24509 { echo "$as_me:$LINENO: result: $ac_res" >&5
24510 echo "${ECHO_T}$ac_res" >&6; }
24512 # Is the header compilable?
24513 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
24514 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
24515 cat >conftest.
$ac_ext <<_ACEOF
24518 cat confdefs.h
>>conftest.
$ac_ext
24519 cat >>conftest.
$ac_ext <<_ACEOF
24520 /* end confdefs.h. */
24521 $ac_includes_default
24522 #include <${OSS_DIR}/include/soundcard.h>
24524 rm -f conftest.
$ac_objext
24525 if { (ac_try
="$ac_compile"
24526 case "(($ac_try" in
24527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24531 (eval "$ac_compile") 2>conftest.er1
24533 grep -v '^ *+' conftest.er1 >conftest.err
24535 cat conftest.err >&5
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); } && {
24538 test -z "$ac_c_werror_flag" ||
24539 test ! -s conftest.err
24540 } && test -s conftest.$ac_objext; then
24541 ac_header_compiler=yes
24543 echo "$as_me: failed program was:" >&5
24544 sed 's/^/| /' conftest.$ac_ext >&5
24546 ac_header_compiler=no
24549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24551 echo "${ECHO_T}$ac_header_compiler" >&6; }
24553 # Is the header present?
24554 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
24555 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
24556 cat >conftest.$ac_ext <<_ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24562 #include <${OSS_DIR}/include/soundcard.h>
24564 if { (ac_try="$ac_cpp conftest.$ac_ext"
24565 case "(($ac_try" in
24566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24567 *) ac_try_echo
=$ac_try;;
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24572 grep -v '^ *+' conftest.er1
>conftest.err
24574 cat conftest.err
>&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); } >/dev
/null
&& {
24577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24578 test ! -s conftest.err
24580 ac_header_preproc
=yes
24582 echo "$as_me: failed program was:" >&5
24583 sed 's/^/| /' conftest.
$ac_ext >&5
24585 ac_header_preproc
=no
24588 rm -f conftest.err conftest.
$ac_ext
24589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24590 echo "${ECHO_T}$ac_header_preproc" >&6; }
24592 # So? What about this header?
24593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24595 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24596 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24597 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
24598 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
24599 ac_header_preproc
=yes
24602 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
24603 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
24604 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
24605 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
24606 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
24607 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
24608 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24609 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24610 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
24611 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
24612 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
24613 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
24615 ## ------------------------------- ##
24616 ## Report this to www.asterisk.org ##
24617 ## ------------------------------- ##
24619 ) |
sed "s/^/$as_me: WARNING: /" >&2
24622 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24623 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24624 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24625 echo $ECHO_N "(cached) $ECHO_C" >&6
24627 eval "$as_ac_Header=\$ac_header_preproc"
24629 ac_res
=`eval echo '${'$as_ac_Header'}'`
24630 { echo "$as_me:$LINENO: result: $ac_res" >&5
24631 echo "${ECHO_T}$ac_res" >&6; }
24634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24642 CPPFLAGS
="${saved_cppflags}"
24644 if test "xsoundcard.h" != "x" ; then
24645 if test "${ac_cv_header_soundcard_h+set}" = set; then
24646 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24647 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24648 if test "${ac_cv_header_soundcard_h+set}" = set; then
24649 echo $ECHO_N "(cached) $ECHO_C" >&6
24651 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24652 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24654 # Is the header compilable?
24655 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
24656 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
24657 cat >conftest.
$ac_ext <<_ACEOF
24660 cat confdefs.h
>>conftest.
$ac_ext
24661 cat >>conftest.
$ac_ext <<_ACEOF
24662 /* end confdefs.h. */
24663 $ac_includes_default
24664 #include <soundcard.h>
24666 rm -f conftest.
$ac_objext
24667 if { (ac_try
="$ac_compile"
24668 case "(($ac_try" in
24669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24670 *) ac_try_echo=$ac_try;;
24672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24673 (eval "$ac_compile") 2>conftest.er1
24675 grep -v '^ *+' conftest.er1 >conftest.err
24677 cat conftest.err >&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } && {
24680 test -z "$ac_c_werror_flag" ||
24681 test ! -s conftest.err
24682 } && test -s conftest.$ac_objext; then
24683 ac_header_compiler=yes
24685 echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24688 ac_header_compiler=no
24691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24693 echo "${ECHO_T}$ac_header_compiler" >&6; }
24695 # Is the header present?
24696 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
24697 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
24698 cat >conftest.$ac_ext <<_ACEOF
24701 cat confdefs.h >>conftest.$ac_ext
24702 cat >>conftest.$ac_ext <<_ACEOF
24703 /* end confdefs.h. */
24704 #include <soundcard.h>
24706 if { (ac_try="$ac_cpp conftest.$ac_ext"
24707 case "(($ac_try" in
24708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24709 *) ac_try_echo
=$ac_try;;
24711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24714 grep -v '^ *+' conftest.er1
>conftest.err
24716 cat conftest.err
>&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); } >/dev
/null
&& {
24719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24720 test ! -s conftest.err
24722 ac_header_preproc
=yes
24724 echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.
$ac_ext >&5
24727 ac_header_preproc
=no
24730 rm -f conftest.err conftest.
$ac_ext
24731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24732 echo "${ECHO_T}$ac_header_preproc" >&6; }
24734 # So? What about this header?
24735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24737 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24738 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24739 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
24740 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
24741 ac_header_preproc
=yes
24744 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
24745 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
24746 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
24747 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
24748 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
24749 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
24750 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24751 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24752 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
24753 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
24754 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
24755 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
24757 ## ------------------------------- ##
24758 ## Report this to www.asterisk.org ##
24759 ## ------------------------------- ##
24761 ) |
sed "s/^/$as_me: WARNING: /" >&2
24764 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24765 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24766 if test "${ac_cv_header_soundcard_h+set}" = set; then
24767 echo $ECHO_N "(cached) $ECHO_C" >&6
24769 ac_cv_header_soundcard_h
=$ac_header_preproc
24771 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24772 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24775 if test $ac_cv_header_soundcard_h = yes; then
24784 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
24785 if test -n "${OSS_MANDATORY}" ;
24787 { echo "$as_me:$LINENO: ***" >&5
24788 echo "$as_me: ***" >&6;}
24789 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
24790 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
24791 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
24792 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
24793 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24794 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24803 cat >>confdefs.h
<<_ACEOF
24808 elif test -n "${OSS_MANDATORY}";
24810 { echo "$as_me:$LINENO: ***" >&5
24811 echo "$as_me: ***" >&6;}
24812 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
24813 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
24814 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24815 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24816 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24817 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24826 if test "${USE_PGSQL}" != "no"; then
24827 if test "x${PGSQL_DIR}" != "x"; then
24828 if test -n "$ac_tool_prefix"; then
24829 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24830 set dummy
${ac_tool_prefix}pg_config
; ac_word
=$2
24831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24833 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24834 echo $ECHO_N "(cached) $ECHO_C" >&6
24838 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
24841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24842 for as_dir
in ${PGSQL_DIR}/bin
24845 test -z "$as_dir" && as_dir
=.
24846 for ac_exec_ext
in '' $ac_executable_extensions; do
24847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24848 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24859 PG_CONFIG
=$ac_cv_path_PG_CONFIG
24860 if test -n "$PG_CONFIG"; then
24861 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24862 echo "${ECHO_T}$PG_CONFIG" >&6; }
24864 { echo "$as_me:$LINENO: result: no" >&5
24865 echo "${ECHO_T}no" >&6; }
24870 if test -z "$ac_cv_path_PG_CONFIG"; then
24871 ac_pt_PG_CONFIG
=$PG_CONFIG
24872 # Extract the first word of "pg_config", so it can be a program name with args.
24873 set dummy pg_config
; ac_word
=$2
24874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24876 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24877 echo $ECHO_N "(cached) $ECHO_C" >&6
24879 case $ac_pt_PG_CONFIG in
24881 ac_cv_path_ac_pt_PG_CONFIG
="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24885 for as_dir
in ${PGSQL_DIR}/bin
24888 test -z "$as_dir" && as_dir
=.
24889 for ac_exec_ext
in '' $ac_executable_extensions; do
24890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24891 ac_cv_path_ac_pt_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24902 ac_pt_PG_CONFIG
=$ac_cv_path_ac_pt_PG_CONFIG
24903 if test -n "$ac_pt_PG_CONFIG"; then
24904 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
24905 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
24907 { echo "$as_me:$LINENO: result: no" >&5
24908 echo "${ECHO_T}no" >&6; }
24911 if test "x$ac_pt_PG_CONFIG" = x
; then
24914 case $cross_compiling:$ac_tool_warned in
24916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24917 whose name does not start with the host triplet. If you think this
24918 configuration is useful to you, please write to autoconf@gnu.org." >&5
24919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24920 whose name does not start with the host triplet. If you think this
24921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24922 ac_tool_warned
=yes ;;
24924 PG_CONFIG
=$ac_pt_PG_CONFIG
24927 PG_CONFIG
="$ac_cv_path_PG_CONFIG"
24930 if test x
"${PG_CONFIG}" = xNo
; then
24931 { echo "$as_me:$LINENO: ***" >&5
24932 echo "$as_me: ***" >&6;}
24933 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
24934 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
24935 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
24936 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
24937 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24938 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24939 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
24940 echo "$as_me: *** including --without-postgres" >&6;}
24944 if test -n "$ac_tool_prefix"; then
24945 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24946 set dummy
${ac_tool_prefix}pg_config
; ac_word
=$2
24947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24949 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24954 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
24957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24958 for as_dir
in $PATH
24961 test -z "$as_dir" && as_dir
=.
24962 for ac_exec_ext
in '' $ac_executable_extensions; do
24963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24964 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24975 PG_CONFIG
=$ac_cv_path_PG_CONFIG
24976 if test -n "$PG_CONFIG"; then
24977 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24978 echo "${ECHO_T}$PG_CONFIG" >&6; }
24980 { echo "$as_me:$LINENO: result: no" >&5
24981 echo "${ECHO_T}no" >&6; }
24986 if test -z "$ac_cv_path_PG_CONFIG"; then
24987 ac_pt_PG_CONFIG
=$PG_CONFIG
24988 # Extract the first word of "pg_config", so it can be a program name with args.
24989 set dummy pg_config
; ac_word
=$2
24990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24992 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24995 case $ac_pt_PG_CONFIG in
24997 ac_cv_path_ac_pt_PG_CONFIG
="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
25000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25001 for as_dir
in $PATH
25004 test -z "$as_dir" && as_dir
=.
25005 for ac_exec_ext
in '' $ac_executable_extensions; do
25006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25007 ac_cv_path_ac_pt_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25018 ac_pt_PG_CONFIG
=$ac_cv_path_ac_pt_PG_CONFIG
25019 if test -n "$ac_pt_PG_CONFIG"; then
25020 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
25021 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
25023 { echo "$as_me:$LINENO: result: no" >&5
25024 echo "${ECHO_T}no" >&6; }
25027 if test "x$ac_pt_PG_CONFIG" = x
; then
25030 case $cross_compiling:$ac_tool_warned in
25032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25033 whose name does not start with the host triplet. If you think this
25034 configuration is useful to you, please write to autoconf@gnu.org." >&5
25035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25036 whose name does not start with the host triplet. If you think this
25037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25038 ac_tool_warned
=yes ;;
25040 PG_CONFIG
=$ac_pt_PG_CONFIG
25043 PG_CONFIG
="$ac_cv_path_PG_CONFIG"
25048 if test "${PG_CONFIG}" != No
; then
25049 PGSQL_libdir
=`${PG_CONFIG} --libdir`
25050 PGSQL_includedir
=`${PG_CONFIG} --includedir`
25052 if test "x$?" != "x0" ; then
25053 if test -n "${PGSQL_MANDATORY}" ; then
25054 { echo "$as_me:$LINENO: ***" >&5
25055 echo "$as_me: ***" >&6;}
25056 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25057 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25058 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25059 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25060 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25061 echo "$as_me: *** including --without-postgres" >&6;}
25065 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
25066 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
25067 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
25068 echo $ECHO_N "(cached) $ECHO_C" >&6
25070 ac_check_lib_save_LIBS
=$LIBS
25071 LIBS
="-lpq -L${PGSQL_libdir} -lz $LIBS"
25072 cat >conftest.
$ac_ext <<_ACEOF
25075 cat confdefs.h
>>conftest.
$ac_ext
25076 cat >>conftest.
$ac_ext <<_ACEOF
25077 /* end confdefs.h. */
25079 /* Override any GCC internal prototype to avoid an error.
25080 Use char because int might match the return type of a GCC
25081 builtin and then its argument prototype would still apply. */
25085 char PQescapeStringConn ();
25089 return PQescapeStringConn ();
25094 rm -f conftest.
$ac_objext conftest
$ac_exeext
25095 if { (ac_try
="$ac_link"
25096 case "(($ac_try" in
25097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25098 *) ac_try_echo=$ac_try;;
25100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25101 (eval "$ac_link") 2>conftest.er1
25103 grep -v '^ *+' conftest.er1 >conftest.err
25105 cat conftest.err >&5
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); } && {
25108 test -z "$ac_c_werror_flag" ||
25109 test ! -s conftest.err
25110 } && test -s conftest$ac_exeext &&
25111 $as_test_x conftest$ac_exeext; then
25112 ac_cv_lib_pq_PQescapeStringConn=yes
25114 echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25117 ac_cv_lib_pq_PQescapeStringConn=no
25120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25121 conftest$ac_exeext conftest.$ac_ext
25122 LIBS=$ac_check_lib_save_LIBS
25124 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
25125 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
25126 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
25128 cat >>confdefs.h <<_ACEOF
25129 #define HAVE_PGSQL 1
25135 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
25136 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
25137 PGSQL_INCLUDE="-I${PGSQL_includedir}"
25139 elif test -n "${PGSQL_MANDATORY}";
25141 { echo "$as_me:$LINENO: ***" >&5
25142 echo "$as_me: ***" >&6;}
25143 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25144 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25145 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25146 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25147 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25148 echo "$as_me: *** including --without-postgres" >&6;}
25152 elif test -n "${PGSQL_MANDATORY}";
25154 { echo "$as_me:$LINENO: ***" >&5
25155 echo "$as_me: ***" >&6;}
25156 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25157 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25158 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25159 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25160 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25161 echo "$as_me: *** including --without-postgres" >&6;}
25166 if test "${USE_POPT}" != "no"; then
25168 if test "x${POPT_DIR}" != "x"; then
25169 if test -d ${POPT_DIR}/lib; then
25170 pbxlibdir="-L${POPT_DIR}/lib"
25172 pbxlibdir="-L${POPT_DIR}"
25175 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
25176 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
25177 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
25178 echo $ECHO_N "(cached) $ECHO_C" >&6
25180 ac_check_lib_save_LIBS=$LIBS
25181 LIBS="-lpopt ${pbxlibdir} $LIBS"
25182 cat >conftest.$ac_ext <<_ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h. */
25189 /* Override any GCC internal prototype to avoid an error.
25190 Use char because int might match the return type of a GCC
25191 builtin and then its argument prototype would still apply. */
25195 char poptStrerror ();
25199 return poptStrerror ();
25204 rm -f conftest.$ac_objext conftest$ac_exeext
25205 if { (ac_try="$ac_link"
25206 case "(($ac_try" in
25207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25208 *) ac_try_echo
=$ac_try;;
25210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25211 (eval "$ac_link") 2>conftest.er1
25213 grep -v '^ *+' conftest.er1
>conftest.err
25215 cat conftest.err
>&5
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } && {
25218 test -z "$ac_c_werror_flag" ||
25219 test ! -s conftest.err
25220 } && test -s conftest
$ac_exeext &&
25221 $as_test_x conftest
$ac_exeext; then
25222 ac_cv_lib_popt_poptStrerror
=yes
25224 echo "$as_me: failed program was:" >&5
25225 sed 's/^/| /' conftest.
$ac_ext >&5
25227 ac_cv_lib_popt_poptStrerror
=no
25230 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25231 conftest
$ac_exeext conftest.
$ac_ext
25232 LIBS
=$ac_check_lib_save_LIBS
25234 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
25235 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
25236 if test $ac_cv_lib_popt_poptStrerror = yes; then
25243 if test "${AST_POPT_FOUND}" = "yes"; then
25245 POPT_HEADER_FOUND
="1"
25246 if test "x${POPT_DIR}" != "x"; then
25247 POPT_LIB
="${pbxlibdir} ${POPT_LIB}"
25248 POPT_INCLUDE
="-I${POPT_DIR}/include"
25249 saved_cppflags
="${CPPFLAGS}"
25250 CPPFLAGS
="${CPPFLAGS} -I${POPT_DIR}/include"
25251 if test "xpopt.h" != "x" ; then
25252 as_ac_Header
=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
25253 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25254 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25255 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25256 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25257 echo $ECHO_N "(cached) $ECHO_C" >&6
25259 ac_res
=`eval echo '${'$as_ac_Header'}'`
25260 { echo "$as_me:$LINENO: result: $ac_res" >&5
25261 echo "${ECHO_T}$ac_res" >&6; }
25263 # Is the header compilable?
25264 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
25265 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
25266 cat >conftest.
$ac_ext <<_ACEOF
25269 cat confdefs.h
>>conftest.
$ac_ext
25270 cat >>conftest.
$ac_ext <<_ACEOF
25271 /* end confdefs.h. */
25272 $ac_includes_default
25273 #include <${POPT_DIR}/include/popt.h>
25275 rm -f conftest.
$ac_objext
25276 if { (ac_try
="$ac_compile"
25277 case "(($ac_try" in
25278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25279 *) ac_try_echo=$ac_try;;
25281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25282 (eval "$ac_compile") 2>conftest.er1
25284 grep -v '^ *+' conftest.er1 >conftest.err
25286 cat conftest.err >&5
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); } && {
25289 test -z "$ac_c_werror_flag" ||
25290 test ! -s conftest.err
25291 } && test -s conftest.$ac_objext; then
25292 ac_header_compiler=yes
25294 echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25297 ac_header_compiler=no
25300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25302 echo "${ECHO_T}$ac_header_compiler" >&6; }
25304 # Is the header present?
25305 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
25306 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
25307 cat >conftest.$ac_ext <<_ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h. */
25313 #include <${POPT_DIR}/include/popt.h>
25315 if { (ac_try="$ac_cpp conftest.$ac_ext"
25316 case "(($ac_try" in
25317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25318 *) ac_try_echo
=$ac_try;;
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25323 grep -v '^ *+' conftest.er1
>conftest.err
25325 cat conftest.err
>&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } >/dev
/null
&& {
25328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25329 test ! -s conftest.err
25331 ac_header_preproc
=yes
25333 echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.
$ac_ext >&5
25336 ac_header_preproc
=no
25339 rm -f conftest.err conftest.
$ac_ext
25340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25341 echo "${ECHO_T}$ac_header_preproc" >&6; }
25343 # So? What about this header?
25344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25346 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25347 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25348 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
25349 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
25350 ac_header_preproc
=yes
25353 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
25354 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
25355 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
25356 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
25357 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
25358 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
25359 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
25360 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25361 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
25362 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
25363 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
25364 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
25366 ## ------------------------------- ##
25367 ## Report this to www.asterisk.org ##
25368 ## ------------------------------- ##
25370 ) |
sed "s/^/$as_me: WARNING: /" >&2
25373 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25374 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25375 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25376 echo $ECHO_N "(cached) $ECHO_C" >&6
25378 eval "$as_ac_Header=\$ac_header_preproc"
25380 ac_res
=`eval echo '${'$as_ac_Header'}'`
25381 { echo "$as_me:$LINENO: result: $ac_res" >&5
25382 echo "${ECHO_T}$ac_res" >&6; }
25385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25386 POPT_HEADER_FOUND
=1
25388 POPT_HEADER_FOUND
=0
25393 CPPFLAGS
="${saved_cppflags}"
25395 if test "xpopt.h" != "x" ; then
25396 if test "${ac_cv_header_popt_h+set}" = set; then
25397 { echo "$as_me:$LINENO: checking for popt.h" >&5
25398 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25399 if test "${ac_cv_header_popt_h+set}" = set; then
25400 echo $ECHO_N "(cached) $ECHO_C" >&6
25402 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25403 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25405 # Is the header compilable?
25406 { echo "$as_me:$LINENO: checking popt.h usability" >&5
25407 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
25408 cat >conftest.
$ac_ext <<_ACEOF
25411 cat confdefs.h
>>conftest.
$ac_ext
25412 cat >>conftest.
$ac_ext <<_ACEOF
25413 /* end confdefs.h. */
25414 $ac_includes_default
25417 rm -f conftest.
$ac_objext
25418 if { (ac_try
="$ac_compile"
25419 case "(($ac_try" in
25420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25421 *) ac_try_echo=$ac_try;;
25423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25424 (eval "$ac_compile") 2>conftest.er1
25426 grep -v '^ *+' conftest.er1 >conftest.err
25428 cat conftest.err >&5
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); } && {
25431 test -z "$ac_c_werror_flag" ||
25432 test ! -s conftest.err
25433 } && test -s conftest.$ac_objext; then
25434 ac_header_compiler=yes
25436 echo "$as_me: failed program was:" >&5
25437 sed 's/^/| /' conftest.$ac_ext >&5
25439 ac_header_compiler=no
25442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25444 echo "${ECHO_T}$ac_header_compiler" >&6; }
25446 # Is the header present?
25447 { echo "$as_me:$LINENO: checking popt.h presence" >&5
25448 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
25449 cat >conftest.$ac_ext <<_ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h. */
25457 if { (ac_try="$ac_cpp conftest.$ac_ext"
25458 case "(($ac_try" in
25459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25460 *) ac_try_echo
=$ac_try;;
25462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25465 grep -v '^ *+' conftest.er1
>conftest.err
25467 cat conftest.err
>&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } >/dev
/null
&& {
25470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25471 test ! -s conftest.err
25473 ac_header_preproc
=yes
25475 echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.
$ac_ext >&5
25478 ac_header_preproc
=no
25481 rm -f conftest.err conftest.
$ac_ext
25482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25483 echo "${ECHO_T}$ac_header_preproc" >&6; }
25485 # So? What about this header?
25486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25488 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25489 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25490 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
25491 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
25492 ac_header_preproc
=yes
25495 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
25496 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
25497 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
25498 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
25499 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
25500 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
25501 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
25502 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25503 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
25504 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
25505 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
25506 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
25508 ## ------------------------------- ##
25509 ## Report this to www.asterisk.org ##
25510 ## ------------------------------- ##
25512 ) |
sed "s/^/$as_me: WARNING: /" >&2
25515 { echo "$as_me:$LINENO: checking for popt.h" >&5
25516 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25517 if test "${ac_cv_header_popt_h+set}" = set; then
25518 echo $ECHO_N "(cached) $ECHO_C" >&6
25520 ac_cv_header_popt_h
=$ac_header_preproc
25522 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25523 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25526 if test $ac_cv_header_popt_h = yes; then
25527 POPT_HEADER_FOUND
=1
25529 POPT_HEADER_FOUND
=0
25535 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
25536 if test -n "${POPT_MANDATORY}" ;
25538 { echo "$as_me:$LINENO: ***" >&5
25539 echo "$as_me: ***" >&6;}
25540 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
25541 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
25542 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
25543 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
25544 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25545 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25554 cat >>confdefs.h
<<_ACEOF
25555 #define HAVE_POPT 1
25559 elif test -n "${POPT_MANDATORY}";
25561 { echo "$as_me:$LINENO: ***" >&5
25562 echo "$as_me: ***" >&6;}
25563 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
25564 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
25565 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25566 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25567 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25568 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25575 if test "${USE_PRI}" != "no"; then
25577 if test "x${PRI_DIR}" != "x"; then
25578 if test -d ${PRI_DIR}/lib
; then
25579 pbxlibdir
="-L${PRI_DIR}/lib"
25581 pbxlibdir
="-L${PRI_DIR}"
25584 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
25585 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
25586 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
25587 echo $ECHO_N "(cached) $ECHO_C" >&6
25589 ac_check_lib_save_LIBS
=$LIBS
25590 LIBS
="-lpri ${pbxlibdir} $LIBS"
25591 cat >conftest.
$ac_ext <<_ACEOF
25594 cat confdefs.h
>>conftest.
$ac_ext
25595 cat >>conftest.
$ac_ext <<_ACEOF
25596 /* end confdefs.h. */
25598 /* Override any GCC internal prototype to avoid an error.
25599 Use char because int might match the return type of a GCC
25600 builtin and then its argument prototype would still apply. */
25604 char pri_keypad_facility ();
25608 return pri_keypad_facility ();
25613 rm -f conftest.
$ac_objext conftest
$ac_exeext
25614 if { (ac_try
="$ac_link"
25615 case "(($ac_try" in
25616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25617 *) ac_try_echo=$ac_try;;
25619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25620 (eval "$ac_link") 2>conftest.er1
25622 grep -v '^ *+' conftest.er1 >conftest.err
25624 cat conftest.err >&5
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } && {
25627 test -z "$ac_c_werror_flag" ||
25628 test ! -s conftest.err
25629 } && test -s conftest$ac_exeext &&
25630 $as_test_x conftest$ac_exeext; then
25631 ac_cv_lib_pri_pri_keypad_facility=yes
25633 echo "$as_me: failed program was:" >&5
25634 sed 's/^/| /' conftest.$ac_ext >&5
25636 ac_cv_lib_pri_pri_keypad_facility=no
25639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25640 conftest$ac_exeext conftest.$ac_ext
25641 LIBS=$ac_check_lib_save_LIBS
25643 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
25644 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
25645 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
25652 if test "${AST_PRI_FOUND}" = "yes"; then
25654 PRI_HEADER_FOUND="1"
25655 if test "x${PRI_DIR}" != "x"; then
25656 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
25657 PRI_INCLUDE="-I${PRI_DIR}/include"
25658 saved_cppflags="${CPPFLAGS}"
25659 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
25660 if test "xlibpri.h" != "x" ; then
25661 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" |
$as_tr_sh`
25662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25663 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25664 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25666 echo $ECHO_N "(cached) $ECHO_C" >&6
25668 ac_res=`eval echo '${'$as_ac_Header'}'`
25669 { echo "$as_me:$LINENO: result: $ac_res" >&5
25670 echo "${ECHO_T}$ac_res" >&6; }
25672 # Is the header compilable?
25673 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
25674 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
25675 cat >conftest.$ac_ext <<_ACEOF
25678 cat confdefs.h >>conftest.$ac_ext
25679 cat >>conftest.$ac_ext <<_ACEOF
25680 /* end confdefs.h. */
25681 $ac_includes_default
25682 #include <${PRI_DIR}/include/libpri.h>
25684 rm -f conftest.$ac_objext
25685 if { (ac_try="$ac_compile"
25686 case "(($ac_try" in
25687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25688 *) ac_try_echo
=$ac_try;;
25690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25691 (eval "$ac_compile") 2>conftest.er1
25693 grep -v '^ *+' conftest.er1
>conftest.err
25695 cat conftest.err
>&5
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); } && {
25698 test -z "$ac_c_werror_flag" ||
25699 test ! -s conftest.err
25700 } && test -s conftest.
$ac_objext; then
25701 ac_header_compiler
=yes
25703 echo "$as_me: failed program was:" >&5
25704 sed 's/^/| /' conftest.
$ac_ext >&5
25706 ac_header_compiler
=no
25709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25711 echo "${ECHO_T}$ac_header_compiler" >&6; }
25713 # Is the header present?
25714 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
25715 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
25716 cat >conftest.
$ac_ext <<_ACEOF
25719 cat confdefs.h
>>conftest.
$ac_ext
25720 cat >>conftest.
$ac_ext <<_ACEOF
25721 /* end confdefs.h. */
25722 #include <${PRI_DIR}/include/libpri.h>
25724 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25725 case "(($ac_try" in
25726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25727 *) ac_try_echo=$ac_try;;
25729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25732 grep -v '^ *+' conftest.er1 >conftest.err
25734 cat conftest.err >&5
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); } >/dev/null && {
25737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25738 test ! -s conftest.err
25740 ac_header_preproc=yes
25742 echo "$as_me: failed program was:" >&5
25743 sed 's/^/| /' conftest.$ac_ext >&5
25745 ac_header_preproc=no
25748 rm -f conftest.err conftest.$ac_ext
25749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25750 echo "${ECHO_T}$ac_header_preproc" >&6; }
25752 # So? What about this header?
25753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25755 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25756 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25757 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
25758 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
25759 ac_header_preproc=yes
25762 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
25763 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
25764 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
25765 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
25766 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
25767 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
25768 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25769 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25770 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
25771 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
25772 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
25773 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
25775 ## ------------------------------- ##
25776 ## Report this to www.asterisk.org ##
25777 ## ------------------------------- ##
25779 ) | sed "s/^/$as_me: WARNING: /" >&2
25782 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25783 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25785 echo $ECHO_N "(cached) $ECHO_C" >&6
25787 eval "$as_ac_Header=\$ac_header_preproc"
25789 ac_res=`eval echo '${'$as_ac_Header'}'`
25790 { echo "$as_me:$LINENO: result: $ac_res" >&5
25791 echo "${ECHO_T}$ac_res" >&6; }
25794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25802 CPPFLAGS="${saved_cppflags}"
25804 if test "xlibpri.h" != "x" ; then
25805 if test "${ac_cv_header_libpri_h+set}" = set; then
25806 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25807 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25808 if test "${ac_cv_header_libpri_h+set}" = set; then
25809 echo $ECHO_N "(cached) $ECHO_C" >&6
25811 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25812 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25814 # Is the header compilable?
25815 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
25816 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
25817 cat >conftest.$ac_ext <<_ACEOF
25820 cat confdefs.h >>conftest.$ac_ext
25821 cat >>conftest.$ac_ext <<_ACEOF
25822 /* end confdefs.h. */
25823 $ac_includes_default
25824 #include <libpri.h>
25826 rm -f conftest.$ac_objext
25827 if { (ac_try="$ac_compile"
25828 case "(($ac_try" in
25829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25830 *) ac_try_echo
=$ac_try;;
25832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25833 (eval "$ac_compile") 2>conftest.er1
25835 grep -v '^ *+' conftest.er1
>conftest.err
25837 cat conftest.err
>&5
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); } && {
25840 test -z "$ac_c_werror_flag" ||
25841 test ! -s conftest.err
25842 } && test -s conftest.
$ac_objext; then
25843 ac_header_compiler
=yes
25845 echo "$as_me: failed program was:" >&5
25846 sed 's/^/| /' conftest.
$ac_ext >&5
25848 ac_header_compiler
=no
25851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25853 echo "${ECHO_T}$ac_header_compiler" >&6; }
25855 # Is the header present?
25856 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
25857 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
25858 cat >conftest.
$ac_ext <<_ACEOF
25861 cat confdefs.h
>>conftest.
$ac_ext
25862 cat >>conftest.
$ac_ext <<_ACEOF
25863 /* end confdefs.h. */
25864 #include <libpri.h>
25866 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25867 case "(($ac_try" in
25868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25869 *) ac_try_echo=$ac_try;;
25871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25874 grep -v '^ *+' conftest.er1 >conftest.err
25876 cat conftest.err >&5
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); } >/dev/null && {
25879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25880 test ! -s conftest.err
25882 ac_header_preproc=yes
25884 echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25887 ac_header_preproc=no
25890 rm -f conftest.err conftest.$ac_ext
25891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25892 echo "${ECHO_T}$ac_header_preproc" >&6; }
25894 # So? What about this header?
25895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25897 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25898 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25899 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
25900 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
25901 ac_header_preproc=yes
25904 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
25905 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
25906 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
25907 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
25908 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
25909 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
25910 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25911 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25912 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
25913 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
25914 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
25915 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
25917 ## ------------------------------- ##
25918 ## Report this to www.asterisk.org ##
25919 ## ------------------------------- ##
25921 ) | sed "s/^/$as_me: WARNING: /" >&2
25924 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25925 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25926 if test "${ac_cv_header_libpri_h+set}" = set; then
25927 echo $ECHO_N "(cached) $ECHO_C" >&6
25929 ac_cv_header_libpri_h=$ac_header_preproc
25931 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25932 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25935 if test $ac_cv_header_libpri_h = yes; then
25944 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
25945 if test -n "${PRI_MANDATORY}" ;
25947 { echo "$as_me:$LINENO: ***" >&5
25948 echo "$as_me: ***" >&6;}
25949 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
25950 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
25951 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
25952 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
25953 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25954 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25963 cat >>confdefs.h <<_ACEOF
25968 elif test -n "${PRI_MANDATORY}";
25970 { echo "$as_me:$LINENO: ***" >&5
25971 echo "$as_me: ***" >&6;}
25972 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
25973 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
25974 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25975 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25976 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25977 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25983 if test "${USE_PWLIB}" != "no"; then
25984 if test -n "${PWLIB_DIR}"; then
25985 PWLIBDIR="${PWLIB_DIR}"
25992 ac_cpp='$CXXCPP $CPPFLAGS'
25993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25997 if test "${PWLIBDIR:-unset}" != "unset" ; then
25998 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" |
$as_tr_sh`
25999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26000 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26001 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26003 echo $ECHO_N "(cached) $ECHO_C" >&6
26005 ac_res=`eval echo '${'$as_ac_Header'}'`
26006 { echo "$as_me:$LINENO: result: $ac_res" >&5
26007 echo "${ECHO_T}$ac_res" >&6; }
26009 # Is the header compilable?
26010 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
26011 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
26012 cat >conftest.$ac_ext <<_ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h. */
26018 $ac_includes_default
26019 #include <${PWLIBDIR}/version.h>
26021 rm -f conftest.$ac_objext
26022 if { (ac_try="$ac_compile"
26023 case "(($ac_try" in
26024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26025 *) ac_try_echo
=$ac_try;;
26027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26028 (eval "$ac_compile") 2>conftest.er1
26030 grep -v '^ *+' conftest.er1
>conftest.err
26032 cat conftest.err
>&5
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } && {
26035 test -z "$ac_cxx_werror_flag" ||
26036 test ! -s conftest.err
26037 } && test -s conftest.
$ac_objext; then
26038 ac_header_compiler
=yes
26040 echo "$as_me: failed program was:" >&5
26041 sed 's/^/| /' conftest.
$ac_ext >&5
26043 ac_header_compiler
=no
26046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26048 echo "${ECHO_T}$ac_header_compiler" >&6; }
26050 # Is the header present?
26051 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
26052 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
26053 cat >conftest.
$ac_ext <<_ACEOF
26056 cat confdefs.h
>>conftest.
$ac_ext
26057 cat >>conftest.
$ac_ext <<_ACEOF
26058 /* end confdefs.h. */
26059 #include <${PWLIBDIR}/version.h>
26061 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26062 case "(($ac_try" in
26063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26064 *) ac_try_echo=$ac_try;;
26066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26069 grep -v '^ *+' conftest.er1 >conftest.err
26071 cat conftest.err >&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } >/dev/null && {
26074 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26075 test ! -s conftest.err
26077 ac_header_preproc=yes
26079 echo "$as_me: failed program was:" >&5
26080 sed 's/^/| /' conftest.$ac_ext >&5
26082 ac_header_preproc=no
26085 rm -f conftest.err conftest.$ac_ext
26086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26087 echo "${ECHO_T}$ac_header_preproc" >&6; }
26089 # So? What about this header?
26090 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26092 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26093 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26094 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
26095 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
26096 ac_header_preproc=yes
26099 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
26100 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
26101 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
26102 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
26103 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
26104 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
26105 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26106 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26107 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
26108 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
26109 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
26110 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
26112 ## ------------------------------- ##
26113 ## Report this to www.asterisk.org ##
26114 ## ------------------------------- ##
26116 ) | sed "s/^/$as_me: WARNING: /" >&2
26119 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26120 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26122 echo $ECHO_N "(cached) $ECHO_C" >&6
26124 eval "$as_ac_Header=\$ac_header_preproc"
26126 ac_res=`eval echo '${'$as_ac_Header'}'`
26127 { echo "$as_me:$LINENO: result: $ac_res" >&5
26128 echo "${ECHO_T}$ac_res" >&6; }
26131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26137 if test "${HAS_PWLIB:-unset}" = "unset" ; then
26138 if test "${OPENH323DIR:-unset}" != "unset"; then
26139 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" |
$as_tr_sh`
26140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26141 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26142 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26144 echo $ECHO_N "(cached) $ECHO_C" >&6
26146 ac_res=`eval echo '${'$as_ac_Header'}'`
26147 { echo "$as_me:$LINENO: result: $ac_res" >&5
26148 echo "${ECHO_T}$ac_res" >&6; }
26150 # Is the header compilable?
26151 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
26152 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
26153 cat >conftest.$ac_ext <<_ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h. */
26159 $ac_includes_default
26160 #include <${OPENH323DIR}/../pwlib/version.h>
26162 rm -f conftest.$ac_objext
26163 if { (ac_try="$ac_compile"
26164 case "(($ac_try" in
26165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26166 *) ac_try_echo
=$ac_try;;
26168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26169 (eval "$ac_compile") 2>conftest.er1
26171 grep -v '^ *+' conftest.er1
>conftest.err
26173 cat conftest.err
>&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } && {
26176 test -z "$ac_cxx_werror_flag" ||
26177 test ! -s conftest.err
26178 } && test -s conftest.
$ac_objext; then
26179 ac_header_compiler
=yes
26181 echo "$as_me: failed program was:" >&5
26182 sed 's/^/| /' conftest.
$ac_ext >&5
26184 ac_header_compiler
=no
26187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26189 echo "${ECHO_T}$ac_header_compiler" >&6; }
26191 # Is the header present?
26192 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
26193 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
26194 cat >conftest.
$ac_ext <<_ACEOF
26197 cat confdefs.h
>>conftest.
$ac_ext
26198 cat >>conftest.
$ac_ext <<_ACEOF
26199 /* end confdefs.h. */
26200 #include <${OPENH323DIR}/../pwlib/version.h>
26202 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26203 case "(($ac_try" in
26204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26205 *) ac_try_echo=$ac_try;;
26207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26210 grep -v '^ *+' conftest.er1 >conftest.err
26212 cat conftest.err >&5
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } >/dev/null && {
26215 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26216 test ! -s conftest.err
26218 ac_header_preproc=yes
26220 echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26223 ac_header_preproc=no
26226 rm -f conftest.err conftest.$ac_ext
26227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26228 echo "${ECHO_T}$ac_header_preproc" >&6; }
26230 # So? What about this header?
26231 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26233 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26234 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26235 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
26236 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
26237 ac_header_preproc=yes
26240 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
26241 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
26242 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
26243 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
26244 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
26245 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
26246 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
26247 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26248 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
26249 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
26250 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
26251 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
26253 ## ------------------------------- ##
26254 ## Report this to www.asterisk.org ##
26255 ## ------------------------------- ##
26257 ) | sed "s/^/$as_me: WARNING: /" >&2
26260 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26261 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26263 echo $ECHO_N "(cached) $ECHO_C" >&6
26265 eval "$as_ac_Header=\$ac_header_preproc"
26267 ac_res=`eval echo '${'$as_ac_Header'}'`
26268 { echo "$as_me:$LINENO: result: $ac_res" >&5
26269 echo "${ECHO_T}$ac_res" >&6; }
26272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26278 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26279 PWLIBDIR="${OPENH323DIR}/../pwlib"
26281 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" |
$as_tr_sh`
26282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26283 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26284 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26286 echo $ECHO_N "(cached) $ECHO_C" >&6
26288 ac_res=`eval echo '${'$as_ac_Header'}'`
26289 { echo "$as_me:$LINENO: result: $ac_res" >&5
26290 echo "${ECHO_T}$ac_res" >&6; }
26292 # Is the header compilable?
26293 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
26294 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
26295 cat >conftest.$ac_ext <<_ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h. */
26301 $ac_includes_default
26302 #include <${HOME}/pwlib/include/ptlib.h>
26304 rm -f conftest.$ac_objext
26305 if { (ac_try="$ac_compile"
26306 case "(($ac_try" in
26307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26308 *) ac_try_echo
=$ac_try;;
26310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26311 (eval "$ac_compile") 2>conftest.er1
26313 grep -v '^ *+' conftest.er1
>conftest.err
26315 cat conftest.err
>&5
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); } && {
26318 test -z "$ac_cxx_werror_flag" ||
26319 test ! -s conftest.err
26320 } && test -s conftest.
$ac_objext; then
26321 ac_header_compiler
=yes
26323 echo "$as_me: failed program was:" >&5
26324 sed 's/^/| /' conftest.
$ac_ext >&5
26326 ac_header_compiler
=no
26329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26331 echo "${ECHO_T}$ac_header_compiler" >&6; }
26333 # Is the header present?
26334 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
26335 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
26336 cat >conftest.
$ac_ext <<_ACEOF
26339 cat confdefs.h
>>conftest.
$ac_ext
26340 cat >>conftest.
$ac_ext <<_ACEOF
26341 /* end confdefs.h. */
26342 #include <${HOME}/pwlib/include/ptlib.h>
26344 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26345 case "(($ac_try" in
26346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26347 *) ac_try_echo=$ac_try;;
26349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26352 grep -v '^ *+' conftest.er1 >conftest.err
26354 cat conftest.err >&5
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); } >/dev/null && {
26357 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26358 test ! -s conftest.err
26360 ac_header_preproc=yes
26362 echo "$as_me: failed program was:" >&5
26363 sed 's/^/| /' conftest.$ac_ext >&5
26365 ac_header_preproc=no
26368 rm -f conftest.err conftest.$ac_ext
26369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26370 echo "${ECHO_T}$ac_header_preproc" >&6; }
26372 # So? What about this header?
26373 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26375 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26376 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26377 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
26378 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
26379 ac_header_preproc=yes
26382 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
26383 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
26385 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
26387 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26389 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26390 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
26391 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26392 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
26393 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26395 ## ------------------------------- ##
26396 ## Report this to www.asterisk.org ##
26397 ## ------------------------------- ##
26399 ) | sed "s/^/$as_me: WARNING: /" >&2
26402 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26403 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26405 echo $ECHO_N "(cached) $ECHO_C" >&6
26407 eval "$as_ac_Header=\$ac_header_preproc"
26409 ac_res=`eval echo '${'$as_ac_Header'}'`
26410 { echo "$as_me:$LINENO: result: $ac_res" >&5
26411 echo "${ECHO_T}$ac_res" >&6; }
26414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26419 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26420 PWLIBDIR="${HOME}/pwlib"
26422 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26423 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26424 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26425 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26426 echo $ECHO_N "(cached) $ECHO_C" >&6
26428 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26429 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26431 # Is the header compilable?
26432 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
26433 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
26434 cat >conftest.$ac_ext <<_ACEOF
26437 cat confdefs.h >>conftest.$ac_ext
26438 cat >>conftest.$ac_ext <<_ACEOF
26439 /* end confdefs.h. */
26440 $ac_includes_default
26441 #include </usr/local/include/ptlib.h>
26443 rm -f conftest.$ac_objext
26444 if { (ac_try="$ac_compile"
26445 case "(($ac_try" in
26446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26447 *) ac_try_echo
=$ac_try;;
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450 (eval "$ac_compile") 2>conftest.er1
26452 grep -v '^ *+' conftest.er1
>conftest.err
26454 cat conftest.err
>&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); } && {
26457 test -z "$ac_cxx_werror_flag" ||
26458 test ! -s conftest.err
26459 } && test -s conftest.
$ac_objext; then
26460 ac_header_compiler
=yes
26462 echo "$as_me: failed program was:" >&5
26463 sed 's/^/| /' conftest.
$ac_ext >&5
26465 ac_header_compiler
=no
26468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26470 echo "${ECHO_T}$ac_header_compiler" >&6; }
26472 # Is the header present?
26473 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
26474 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
26475 cat >conftest.
$ac_ext <<_ACEOF
26478 cat confdefs.h
>>conftest.
$ac_ext
26479 cat >>conftest.
$ac_ext <<_ACEOF
26480 /* end confdefs.h. */
26481 #include </usr/local/include/ptlib.h>
26483 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26484 case "(($ac_try" in
26485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26486 *) ac_try_echo=$ac_try;;
26488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26491 grep -v '^ *+' conftest.er1 >conftest.err
26493 cat conftest.err >&5
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); } >/dev/null && {
26496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26497 test ! -s conftest.err
26499 ac_header_preproc=yes
26501 echo "$as_me: failed program was:" >&5
26502 sed 's/^/| /' conftest.$ac_ext >&5
26504 ac_header_preproc=no
26507 rm -f conftest.err conftest.$ac_ext
26508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26509 echo "${ECHO_T}$ac_header_preproc" >&6; }
26511 # So? What about this header?
26512 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26514 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26515 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26516 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
26517 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
26518 ac_header_preproc=yes
26521 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
26522 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
26523 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
26524 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26525 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
26526 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26528 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26529 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
26530 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26531 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
26532 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26534 ## ------------------------------- ##
26535 ## Report this to www.asterisk.org ##
26536 ## ------------------------------- ##
26538 ) | sed "s/^/$as_me: WARNING: /" >&2
26541 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26542 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26543 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26544 echo $ECHO_N "(cached) $ECHO_C" >&6
26546 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
26548 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26549 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26552 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
26557 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26558 # Extract the first word of "ptlib-config", so it can be a program name with args.
26559 set dummy ptlib-config; ac_word=$2
26560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26562 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26563 echo $ECHO_N "(cached) $ECHO_C" >&6
26565 case $PTLIB_CONFIG in
26567 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
26570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26571 for as_dir in /usr/local/bin
26574 test -z "$as_dir" && as_dir=.
26575 for ac_exec_ext in '' $ac_executable_extensions; do
26576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26577 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26588 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
26589 if test -n "$PTLIB_CONFIG"; then
26590 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
26591 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
26593 { echo "$as_me:$LINENO: result: no" >&5
26594 echo "${ECHO_T}no" >&6; }
26598 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
26599 # Extract the first word of "ptlib-config", so it can be a program name with args.
26600 set dummy ptlib-config; ac_word=$2
26601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26603 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26604 echo $ECHO_N "(cached) $ECHO_C" >&6
26606 case $PTLIB_CONFIG in
26608 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
26611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26612 for as_dir in /usr/local/share/pwlib/make
26615 test -z "$as_dir" && as_dir=.
26616 for ac_exec_ext in '' $ac_executable_extensions; do
26617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26618 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26629 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
26630 if test -n "$PTLIB_CONFIG"; then
26631 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
26632 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
26634 { echo "$as_me:$LINENO: result: no" >&5
26635 echo "${ECHO_T}no" >&6; }
26640 PWLIB_INCDIR="/usr/local/include"
26641 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
26642 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26643 if test "x$LIB64" != "x"; then
26644 PWLIB_LIBDIR="/usr/local/lib64"
26646 PWLIB_LIBDIR="/usr/local/lib"
26649 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
26650 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
26652 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
26653 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
26654 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
26655 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
26656 echo $ECHO_N "(cached) $ECHO_C" >&6
26658 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
26659 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
26661 # Is the header compilable?
26662 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
26663 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
26664 cat >conftest.$ac_ext <<_ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h. */
26670 $ac_includes_default
26671 #include </usr/include/ptlib.h>
26673 rm -f conftest.$ac_objext
26674 if { (ac_try="$ac_compile"
26675 case "(($ac_try" in
26676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26677 *) ac_try_echo
=$ac_try;;
26679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26680 (eval "$ac_compile") 2>conftest.er1
26682 grep -v '^ *+' conftest.er1
>conftest.err
26684 cat conftest.err
>&5
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); } && {
26687 test -z "$ac_cxx_werror_flag" ||
26688 test ! -s conftest.err
26689 } && test -s conftest.
$ac_objext; then
26690 ac_header_compiler
=yes
26692 echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.
$ac_ext >&5
26695 ac_header_compiler
=no
26698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26700 echo "${ECHO_T}$ac_header_compiler" >&6; }
26702 # Is the header present?
26703 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
26704 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
26705 cat >conftest.
$ac_ext <<_ACEOF
26708 cat confdefs.h
>>conftest.
$ac_ext
26709 cat >>conftest.
$ac_ext <<_ACEOF
26710 /* end confdefs.h. */
26711 #include </usr/include/ptlib.h>
26713 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26714 case "(($ac_try" in
26715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26721 grep -v '^ *+' conftest.er1 >conftest.err
26723 cat conftest.err >&5
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } >/dev/null && {
26726 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26727 test ! -s conftest.err
26729 ac_header_preproc=yes
26731 echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26734 ac_header_preproc=no
26737 rm -f conftest.err conftest.$ac_ext
26738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26739 echo "${ECHO_T}$ac_header_preproc" >&6; }
26741 # So? What about this header?
26742 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26744 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26745 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26746 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
26747 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
26748 ac_header_preproc=yes
26751 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
26752 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
26753 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
26754 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26755 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
26756 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
26757 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26758 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26759 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
26760 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26761 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
26762 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26764 ## ------------------------------- ##
26765 ## Report this to www.asterisk.org ##
26766 ## ------------------------------- ##
26768 ) | sed "s/^/$as_me: WARNING: /" >&2
26771 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
26772 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
26773 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
26774 echo $ECHO_N "(cached) $ECHO_C" >&6
26776 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
26778 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
26779 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
26782 if test $ac_cv_header__usr_include_ptlib_h = yes; then
26787 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26788 # Extract the first word of "ptlib-config", so it can be a program name with args.
26789 set dummy ptlib-config; ac_word=$2
26790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26792 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26793 echo $ECHO_N "(cached) $ECHO_C" >&6
26795 case $PTLIB_CONFIG in
26797 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
26800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26801 for as_dir in /usr/share/pwlib/make
26804 test -z "$as_dir" && as_dir=.
26805 for ac_exec_ext in '' $ac_executable_extensions; do
26806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26807 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26818 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
26819 if test -n "$PTLIB_CONFIG"; then
26820 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
26821 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
26823 { echo "$as_me:$LINENO: result: no" >&5
26824 echo "${ECHO_T}no" >&6; }
26828 PWLIB_INCDIR="/usr/include"
26829 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
26830 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26831 if test "x$LIB64" != "x"; then
26832 PWLIB_LIBDIR="/usr/lib64"
26834 PWLIB_LIBDIR="/usr/lib"
26837 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
26838 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
26845 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
26846 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
26850 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26851 if test "${PWLIBDIR:-unset}" = "unset" ; then
26852 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
26853 PWLIBDIR=`$PTLIB_CONFIG --prefix`
26855 echo "Cannot find ptlib-config - please install and try again"
26860 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
26861 PWLIBDIR="/usr/share/pwlib"
26862 PWLIB_INCDIR="/usr/include"
26863 if test "x$LIB64" != "x"; then
26864 PWLIB_LIBDIR="/usr/lib64"
26866 PWLIB_LIBDIR="/usr/lib"
26869 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
26870 PWLIBDIR="/usr/local/share/pwlib"
26871 PWLIB_INCDIR="/usr/local/include"
26872 if test "x$LIB64" != "x"; then
26873 PWLIB_LIBDIR="/usr/local/lib64"
26875 PWLIB_LIBDIR="/usr/local/lib"
26879 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
26880 PWLIB_INCDIR="${PWLIBDIR}/include"
26882 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26883 PWLIB_LIBDIR="${PWLIBDIR}/lib"
26891 ac_cpp='$CPP $CPPFLAGS'
26892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26898 if test "${HAS_PWLIB:-unset}" != "unset"; then
26899 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut
-f2 -d ' ' |
sed -e 's/"//g'`
26900 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut
-f1 -d.
`
26901 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut
-f2 -d.
`
26902 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut
-f3 -d.
`
26903 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
26904 let PWLIB_REQ=1*10000+9*100+2
26906 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
26907 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
26908 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
26909 { echo "$as_me:$LINENO: result: no" >&5
26910 echo "${ECHO_T}no" >&6; }
26913 { echo "$as_me:$LINENO: result: yes" >&5
26914 echo "${ECHO_T}yes" >&6; }
26919 if test "${HAS_PWLIB:-unset}" != "unset"; then
26923 linux*) PWLIB_OSTYPE=linux ;
26925 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
26927 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
26928 ENDLDLIBS="-lossaudio" ;
26930 netbsd* ) PWLIB_OSTYPE=NetBSD ;
26931 ENDLDLIBS="-lossaudio" ;
26933 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
26935 darwin* ) PWLIB_OSTYPE=Darwin ;
26937 beos*) PWLIB_OSTYPE=beos ;
26938 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
26940 cygwin*) PWLIB_OSTYPE=cygwin ;
26942 mingw*) PWLIB_OSTYPE=mingw ;
26943 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
26944 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
26946 * ) PWLIB_OSTYPE="$host_os" ;
26947 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
26948 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
26953 case "$host_cpu" in
26954 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
26957 x86_64) PWLIB_MACHTYPE=x86_64 ;
26962 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
26966 sparc ) PWLIB_MACHTYPE=sparc ;
26969 powerpc ) PWLIB_MACHTYPE=ppc ;
26972 ppc ) PWLIB_MACHTYPE=ppc ;
26975 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
26980 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
26985 ia64) PWLIB_MACHTYPE=ia64 ;
26989 s390x) PWLIB_MACHTYPE=s390x ;
26994 s390) PWLIB_MACHTYPE=s390 ;
26997 * ) PWLIB_MACHTYPE="$host_cpu";
26998 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
26999 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
27002 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
27007 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
27010 if test "${HAS_PWLIB:-unset}" != "unset"; then
27011 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
27012 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
27014 saved_cppflags="${CPPFLAGS}"
27015 saved_libs="${LIBS}"
27016 if test "${PWLIB_LIB:-unset}" != "unset"; then
27017 LIBS="${LIBS} ${PWLIB_LIB} "
27019 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
27021 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
27024 ac_cpp='$CXXCPP $CPPFLAGS'
27025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27030 cat >conftest.$ac_ext <<_ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h. */
27040 BOOL q = PTime::IsDaylightSavings();
27045 rm -f conftest.$ac_objext conftest$ac_exeext
27046 if { (ac_try="$ac_link"
27047 case "(($ac_try" in
27048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27049 *) ac_try_echo
=$ac_try;;
27051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27052 (eval "$ac_link") 2>conftest.er1
27054 grep -v '^ *+' conftest.er1
>conftest.err
27056 cat conftest.err
>&5
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); } && {
27059 test -z "$ac_cxx_werror_flag" ||
27060 test ! -s conftest.err
27061 } && test -s conftest
$ac_exeext &&
27062 $as_test_x conftest
$ac_exeext; then
27063 { echo "$as_me:$LINENO: result: yes" >&5
27064 echo "${ECHO_T}yes" >&6; }
27065 ac_cv_lib_PWLIB
="yes"
27068 echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.
$ac_ext >&5
27071 { echo "$as_me:$LINENO: result: no" >&5
27072 echo "${ECHO_T}no" >&6; }
27073 ac_cv_lib_PWLIB
="no"
27078 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27079 conftest
$ac_exeext conftest.
$ac_ext
27082 ac_cpp
='$CPP $CPPFLAGS'
27083 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27084 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27085 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27088 LIBS
="${saved_libs}"
27089 CPPFLAGS
="${saved_cppflags}"
27091 if test "${ac_cv_lib_PWLIB}" = "yes"; then
27092 if test "${PWLIB_LIB:-undef}" = "undef"; then
27093 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
27094 PWLIB_LIB
="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
27096 PWLIB_LIB
="-l${PLATFORM_PWLIB}"
27099 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
27100 PWLIB_INCLUDE
="-I${PWLIB_INCDIR}"
27104 cat >>confdefs.h
<<\_ACEOF
27105 #define HAVE_PWLIB 1
27114 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
27115 { echo "$as_me:$LINENO: ***" >&5
27116 echo "$as_me: ***" >&6;}
27117 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
27118 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
27119 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27120 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27121 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
27122 echo "$as_me: *** including --without-pwlib" >&6;}
27126 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
27127 if test -n "${OPENH323_DIR}"; then
27128 OPENH323DIR
="${OPENH323_DIR}"
27134 ac_cpp
='$CXXCPP $CPPFLAGS'
27135 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27136 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27137 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
27139 if test "${OPENH323DIR:-unset}" != "unset" ; then
27140 as_ac_Header
=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
27141 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27142 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27143 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27144 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27145 echo $ECHO_N "(cached) $ECHO_C" >&6
27147 ac_res
=`eval echo '${'$as_ac_Header'}'`
27148 { echo "$as_me:$LINENO: result: $ac_res" >&5
27149 echo "${ECHO_T}$ac_res" >&6; }
27151 # Is the header compilable?
27152 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
27153 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
27154 cat >conftest.
$ac_ext <<_ACEOF
27157 cat confdefs.h
>>conftest.
$ac_ext
27158 cat >>conftest.
$ac_ext <<_ACEOF
27159 /* end confdefs.h. */
27160 $ac_includes_default
27161 #include <${OPENH323DIR}/version.h>
27163 rm -f conftest.
$ac_objext
27164 if { (ac_try
="$ac_compile"
27165 case "(($ac_try" in
27166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27167 *) ac_try_echo=$ac_try;;
27169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27170 (eval "$ac_compile") 2>conftest.er1
27172 grep -v '^ *+' conftest.er1 >conftest.err
27174 cat conftest.err >&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); } && {
27177 test -z "$ac_cxx_werror_flag" ||
27178 test ! -s conftest.err
27179 } && test -s conftest.$ac_objext; then
27180 ac_header_compiler=yes
27182 echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27185 ac_header_compiler=no
27188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27190 echo "${ECHO_T}$ac_header_compiler" >&6; }
27192 # Is the header present?
27193 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
27194 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
27195 cat >conftest.$ac_ext <<_ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h. */
27201 #include <${OPENH323DIR}/version.h>
27203 if { (ac_try="$ac_cpp conftest.$ac_ext"
27204 case "(($ac_try" in
27205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27206 *) ac_try_echo
=$ac_try;;
27208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27211 grep -v '^ *+' conftest.er1
>conftest.err
27213 cat conftest.err
>&5
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); } >/dev
/null
&& {
27216 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27217 test ! -s conftest.err
27219 ac_header_preproc
=yes
27221 echo "$as_me: failed program was:" >&5
27222 sed 's/^/| /' conftest.
$ac_ext >&5
27224 ac_header_preproc
=no
27227 rm -f conftest.err conftest.
$ac_ext
27228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27229 echo "${ECHO_T}$ac_header_preproc" >&6; }
27231 # So? What about this header?
27232 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27234 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27235 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27236 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
27237 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
27238 ac_header_preproc
=yes
27241 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
27242 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
27243 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
27244 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
27245 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
27246 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
27247 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
27248 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27249 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
27250 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
27251 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
27252 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
27254 ## ------------------------------- ##
27255 ## Report this to www.asterisk.org ##
27256 ## ------------------------------- ##
27258 ) |
sed "s/^/$as_me: WARNING: /" >&2
27261 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27262 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27263 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27264 echo $ECHO_N "(cached) $ECHO_C" >&6
27266 eval "$as_ac_Header=\$ac_header_preproc"
27268 ac_res
=`eval echo '${'$as_ac_Header'}'`
27269 { echo "$as_me:$LINENO: result: $ac_res" >&5
27270 echo "${ECHO_T}$ac_res" >&6; }
27273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27279 if test "${HAS_OPENH323:-unset}" = "unset" ; then
27280 as_ac_Header
=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
27281 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27282 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27283 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27284 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27285 echo $ECHO_N "(cached) $ECHO_C" >&6
27287 ac_res
=`eval echo '${'$as_ac_Header'}'`
27288 { echo "$as_me:$LINENO: result: $ac_res" >&5
27289 echo "${ECHO_T}$ac_res" >&6; }
27291 # Is the header compilable?
27292 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
27293 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
27294 cat >conftest.
$ac_ext <<_ACEOF
27297 cat confdefs.h
>>conftest.
$ac_ext
27298 cat >>conftest.
$ac_ext <<_ACEOF
27299 /* end confdefs.h. */
27300 $ac_includes_default
27301 #include <${PWLIBDIR}/../openh323/version.h>
27303 rm -f conftest.
$ac_objext
27304 if { (ac_try
="$ac_compile"
27305 case "(($ac_try" in
27306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27307 *) ac_try_echo=$ac_try;;
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310 (eval "$ac_compile") 2>conftest.er1
27312 grep -v '^ *+' conftest.er1 >conftest.err
27314 cat conftest.err >&5
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); } && {
27317 test -z "$ac_cxx_werror_flag" ||
27318 test ! -s conftest.err
27319 } && test -s conftest.$ac_objext; then
27320 ac_header_compiler=yes
27322 echo "$as_me: failed program was:" >&5
27323 sed 's/^/| /' conftest.$ac_ext >&5
27325 ac_header_compiler=no
27328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27330 echo "${ECHO_T}$ac_header_compiler" >&6; }
27332 # Is the header present?
27333 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
27334 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
27335 cat >conftest.$ac_ext <<_ACEOF
27338 cat confdefs.h >>conftest.$ac_ext
27339 cat >>conftest.$ac_ext <<_ACEOF
27340 /* end confdefs.h. */
27341 #include <${PWLIBDIR}/../openh323/version.h>
27343 if { (ac_try="$ac_cpp conftest.$ac_ext"
27344 case "(($ac_try" in
27345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27346 *) ac_try_echo
=$ac_try;;
27348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27351 grep -v '^ *+' conftest.er1
>conftest.err
27353 cat conftest.err
>&5
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); } >/dev
/null
&& {
27356 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27357 test ! -s conftest.err
27359 ac_header_preproc
=yes
27361 echo "$as_me: failed program was:" >&5
27362 sed 's/^/| /' conftest.
$ac_ext >&5
27364 ac_header_preproc
=no
27367 rm -f conftest.err conftest.
$ac_ext
27368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27369 echo "${ECHO_T}$ac_header_preproc" >&6; }
27371 # So? What about this header?
27372 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27374 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27375 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27376 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
27377 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
27378 ac_header_preproc
=yes
27381 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
27382 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
27383 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
27384 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
27385 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
27386 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
27387 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
27388 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27389 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
27390 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
27391 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
27392 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
27394 ## ------------------------------- ##
27395 ## Report this to www.asterisk.org ##
27396 ## ------------------------------- ##
27398 ) |
sed "s/^/$as_me: WARNING: /" >&2
27401 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27402 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27403 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27406 eval "$as_ac_Header=\$ac_header_preproc"
27408 ac_res
=`eval echo '${'$as_ac_Header'}'`
27409 { echo "$as_me:$LINENO: result: $ac_res" >&5
27410 echo "${ECHO_T}$ac_res" >&6; }
27413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27414 OPENH323DIR
="${PWLIBDIR}/../openh323"; HAS_OPENH323
=1
27418 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27419 OPENH323DIR
="${PWLIBDIR}/../openh323"
27420 saved_cppflags
="${CPPFLAGS}"
27421 CPPFLAGS
="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
27422 as_ac_Header
=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
27423 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
27424 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
27425 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27426 echo $ECHO_N "(cached) $ECHO_C" >&6
27428 cat >conftest.
$ac_ext <<_ACEOF
27431 cat confdefs.h
>>conftest.
$ac_ext
27432 cat >>conftest.
$ac_ext <<_ACEOF
27433 /* end confdefs.h. */
27436 #include <${OPENH323DIR}/include/h323.h>
27438 rm -f conftest.
$ac_objext
27439 if { (ac_try
="$ac_compile"
27440 case "(($ac_try" in
27441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27442 *) ac_try_echo=$ac_try;;
27444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445 (eval "$ac_compile") 2>conftest.er1
27447 grep -v '^ *+' conftest.er1 >conftest.err
27449 cat conftest.err >&5
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); } && {
27452 test -z "$ac_cxx_werror_flag" ||
27453 test ! -s conftest.err
27454 } && test -s conftest.$ac_objext; then
27455 eval "$as_ac_Header=yes"
27457 echo "$as_me: failed program was:" >&5
27458 sed 's/^/| /' conftest.$ac_ext >&5
27460 eval "$as_ac_Header=no"
27463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27465 ac_res=`eval echo '${'$as_ac_Header'}'`
27466 { echo "$as_me:$LINENO: result: $ac_res" >&5
27467 echo "${ECHO_T}$ac_res" >&6; }
27468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27471 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
27475 CPPFLAGS="${saved_cppflags}"
27477 saved_cppflags="${CPPFLAGS}"
27478 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
27479 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" |
$as_tr_sh`
27480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27481 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
27482 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
27483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27484 echo $ECHO_N "(cached) $ECHO_C" >&6
27486 ac_res=`eval echo '${'$as_ac_Header'}'`
27487 { echo "$as_me:$LINENO: result: $ac_res" >&5
27488 echo "${ECHO_T}$ac_res" >&6; }
27490 # Is the header compilable?
27491 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
27492 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
27493 cat >conftest.$ac_ext <<_ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h. */
27499 $ac_includes_default
27500 #include <${HOME}/openh323/include/h323.h>
27502 rm -f conftest.$ac_objext
27503 if { (ac_try="$ac_compile"
27504 case "(($ac_try" in
27505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27506 *) ac_try_echo
=$ac_try;;
27508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27509 (eval "$ac_compile") 2>conftest.er1
27511 grep -v '^ *+' conftest.er1
>conftest.err
27513 cat conftest.err
>&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); } && {
27516 test -z "$ac_cxx_werror_flag" ||
27517 test ! -s conftest.err
27518 } && test -s conftest.
$ac_objext; then
27519 ac_header_compiler
=yes
27521 echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.
$ac_ext >&5
27524 ac_header_compiler
=no
27527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27529 echo "${ECHO_T}$ac_header_compiler" >&6; }
27531 # Is the header present?
27532 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
27533 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
27534 cat >conftest.
$ac_ext <<_ACEOF
27537 cat confdefs.h
>>conftest.
$ac_ext
27538 cat >>conftest.
$ac_ext <<_ACEOF
27539 /* end confdefs.h. */
27540 #include <${HOME}/openh323/include/h323.h>
27542 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27543 case "(($ac_try" in
27544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27545 *) ac_try_echo=$ac_try;;
27547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27550 grep -v '^ *+' conftest.er1 >conftest.err
27552 cat conftest.err >&5
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); } >/dev/null && {
27555 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27556 test ! -s conftest.err
27558 ac_header_preproc=yes
27560 echo "$as_me: failed program was:" >&5
27561 sed 's/^/| /' conftest.$ac_ext >&5
27563 ac_header_preproc=no
27566 rm -f conftest.err conftest.$ac_ext
27567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27568 echo "${ECHO_T}$ac_header_preproc" >&6; }
27570 # So? What about this header?
27571 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27573 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
27574 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27575 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
27576 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
27577 ac_header_preproc=yes
27580 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
27581 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
27582 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
27583 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
27584 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
27585 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
27586 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
27587 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
27588 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
27589 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
27590 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
27591 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
27593 ## ------------------------------- ##
27594 ## Report this to www.asterisk.org ##
27595 ## ------------------------------- ##
27597 ) | sed "s/^/$as_me: WARNING: /" >&2
27600 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
27601 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
27602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27603 echo $ECHO_N "(cached) $ECHO_C" >&6
27605 eval "$as_ac_Header=\$ac_header_preproc"
27607 ac_res=`eval echo '${'$as_ac_Header'}'`
27608 { echo "$as_me:$LINENO: result: $ac_res" >&5
27609 echo "${ECHO_T}$ac_res" >&6; }
27612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27617 CPPFLAGS="${saved_cppflags}"
27618 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27619 OPENH323DIR="${HOME}/openh323"
27621 saved_cppflags="${CPPFLAGS}"
27622 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
27623 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
27624 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
27625 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
27626 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
27627 echo $ECHO_N "(cached) $ECHO_C" >&6
27629 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
27630 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
27632 # Is the header compilable?
27633 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
27634 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
27635 cat >conftest.$ac_ext <<_ACEOF
27638 cat confdefs.h >>conftest.$ac_ext
27639 cat >>conftest.$ac_ext <<_ACEOF
27640 /* end confdefs.h. */
27641 $ac_includes_default
27642 #include </usr/local/include/openh323/h323.h>
27644 rm -f conftest.$ac_objext
27645 if { (ac_try="$ac_compile"
27646 case "(($ac_try" in
27647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27648 *) ac_try_echo
=$ac_try;;
27650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27651 (eval "$ac_compile") 2>conftest.er1
27653 grep -v '^ *+' conftest.er1
>conftest.err
27655 cat conftest.err
>&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); } && {
27658 test -z "$ac_cxx_werror_flag" ||
27659 test ! -s conftest.err
27660 } && test -s conftest.
$ac_objext; then
27661 ac_header_compiler
=yes
27663 echo "$as_me: failed program was:" >&5
27664 sed 's/^/| /' conftest.
$ac_ext >&5
27666 ac_header_compiler
=no
27669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27671 echo "${ECHO_T}$ac_header_compiler" >&6; }
27673 # Is the header present?
27674 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
27675 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
27676 cat >conftest.
$ac_ext <<_ACEOF
27679 cat confdefs.h
>>conftest.
$ac_ext
27680 cat >>conftest.
$ac_ext <<_ACEOF
27681 /* end confdefs.h. */
27682 #include </usr/local/include/openh323/h323.h>
27684 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27685 case "(($ac_try" in
27686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27687 *) ac_try_echo=$ac_try;;
27689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27692 grep -v '^ *+' conftest.er1 >conftest.err
27694 cat conftest.err >&5
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); } >/dev/null && {
27697 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27698 test ! -s conftest.err
27700 ac_header_preproc=yes
27702 echo "$as_me: failed program was:" >&5
27703 sed 's/^/| /' conftest.$ac_ext >&5
27705 ac_header_preproc=no
27708 rm -f conftest.err conftest.$ac_ext
27709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27710 echo "${ECHO_T}$ac_header_preproc" >&6; }
27712 # So? What about this header?
27713 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27715 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
27716 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27717 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
27718 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
27719 ac_header_preproc=yes
27722 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
27723 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
27724 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
27725 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
27726 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
27727 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
27728 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
27729 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
27730 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
27731 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
27732 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
27733 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
27735 ## ------------------------------- ##
27736 ## Report this to www.asterisk.org ##
27737 ## ------------------------------- ##
27739 ) | sed "s/^/$as_me: WARNING: /" >&2
27742 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
27743 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
27744 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
27745 echo $ECHO_N "(cached) $ECHO_C" >&6
27747 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
27749 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
27750 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
27753 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
27758 CPPFLAGS="${saved_cppflags}"
27759 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27760 OPENH323DIR="/usr/local/share/openh323"
27761 OPENH323_INCDIR="/usr/local/include/openh323"
27762 if test "x$LIB64" != "x"; then
27763 OPENH323_LIBDIR="/usr/local/lib64"
27765 OPENH323_LIBDIR="/usr/local/lib"
27768 saved_cppflags="${CPPFLAGS}"
27769 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
27770 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
27771 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
27772 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
27773 echo $ECHO_N "(cached) $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. */
27783 #include </usr/include/openh323/h323.h>
27785 rm -f conftest.$ac_objext
27786 if { (ac_try="$ac_compile"
27787 case "(($ac_try" in
27788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27789 *) ac_try_echo
=$ac_try;;
27791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27792 (eval "$ac_compile") 2>conftest.er1
27794 grep -v '^ *+' conftest.er1
>conftest.err
27796 cat conftest.err
>&5
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); } && {
27799 test -z "$ac_cxx_werror_flag" ||
27800 test ! -s conftest.err
27801 } && test -s conftest.
$ac_objext; then
27802 ac_cv_header__usr_include_openh323_h323_h
=yes
27804 echo "$as_me: failed program was:" >&5
27805 sed 's/^/| /' conftest.
$ac_ext >&5
27807 ac_cv_header__usr_include_openh323_h323_h
=no
27810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27812 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
27813 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
27814 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
27819 CPPFLAGS
="${saved_cppflags}"
27820 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27821 OPENH323DIR
="/usr/share/openh323"
27822 OPENH323_INCDIR
="/usr/include/openh323"
27823 if test "x$LIB64" != "x"; then
27824 OPENH323_LIBDIR
="/usr/lib64"
27826 OPENH323_LIBDIR
="/usr/lib"
27834 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27835 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
27836 OPENH323_INCDIR
="${OPENH323DIR}/include"
27838 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
27839 OPENH323_LIBDIR
="${OPENH323DIR}/lib"
27842 OPENH323_LIBDIR
="`cd ${OPENH323_LIBDIR}; pwd`"
27843 OPENH323_INCDIR
="`cd ${OPENH323_INCDIR}; pwd`"
27844 OPENH323DIR
="`cd ${OPENH323DIR}; pwd`"
27851 ac_cpp
='$CPP $CPPFLAGS'
27852 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27853 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27854 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27858 if test "${HAS_OPENH323:-unset}" != "unset"; then
27859 OPENH323_VERSION
=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
27860 OPENH323_MAJOR_VERSION
=`echo ${OPENH323_VERSION} | cut -f1 -d.`
27861 OPENH323_MINOR_VERSION
=`echo ${OPENH323_VERSION} | cut -f2 -d.`
27862 OPENH323_BUILD_NUMBER
=`echo ${OPENH323_VERSION} | cut -f3 -d.`
27863 let OPENH323_VER
=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
27864 let OPENH323_REQ
=1*10000+17*100+3
27866 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
27867 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
27868 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
27869 { echo "$as_me:$LINENO: result: no" >&5
27870 echo "${ECHO_T}no" >&6; }
27873 { echo "$as_me:$LINENO: result: yes" >&5
27874 echo "${ECHO_T}yes" >&6; }
27879 if test "${HAS_OPENH323:-unset}" != "unset"; then
27880 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
27881 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
27883 prefixes
="h323_${PWLIB_PLATFORM}_ h323_ openh323"
27884 for pfx
in $prefixes; do
27885 files
=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
27887 if test -n "$files"; then
27888 for f
in $files; do
27889 if test -f $f -a ! -L $f; then
27890 libfile
=`basename $f`
27895 if test -n "$libfile"; then
27896 OPENH323_PREFIX
=$pfx
27900 if test "${libfile:-unset}" != "unset"; then
27901 OPENH323_SUFFIX
=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
27903 case "${OPENH323_SUFFIX}" in
27905 OPENH323_BUILD
="notrace";;
27907 OPENH323_BUILD
="opt";;
27909 OPENH323_BUILD
="debug";;
27911 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
27912 notrace
=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
27913 if test "x$notrace" = "x"; then
27916 if test "$notrace" -ne 0; then
27917 OPENH323_BUILD
="notrace"
27919 OPENH323_BUILD
="opt"
27921 OPENH323_LIB
="-l${OPENH323_PREFIX}"
27923 OPENH323_BUILD
="notrace"
27927 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
27928 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
27934 PLATFORM_OPENH323="h323_
${PWLIB_PLATFORM}_
${OPENH323_SUFFIX}"
27936 if test "${HAS_OPENH323:-unset}" != "unset"; then
27937 { echo "$as_me:$LINENO: checking OpenH323 installation validity
" >&5
27938 echo $ECHO_N "checking OpenH323 installation validity...
$ECHO_C" >&6; }
27940 saved_cppflags="${CPPFLAGS}"
27941 saved_libs="${LIBS}"
27942 if test "${OPENH323_LIB:-unset}" != "unset"; then
27943 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
27945 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
27947 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
27950 ac_cpp='$CXXCPP $CPPFLAGS'
27951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27956 cat >conftest.$ac_ext <<_ACEOF
27959 cat confdefs.h >>conftest.$ac_ext
27960 cat >>conftest.$ac_ext <<_ACEOF
27961 /* end confdefs.h. */
27964 #include "h323ep.h
"
27968 H323EndPoint ep = H323EndPoint();
27973 rm -f conftest.$ac_objext conftest$ac_exeext
27974 if { (ac_try="$ac_link"
27975 case "(($ac_try" in
27976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977 *) ac_try_echo=$ac_try;;
27979 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27980 (eval "$ac_link") 2>conftest.er1
27982 grep -v '^ *+' conftest.er1 >conftest.err
27984 cat conftest.err >&5
27985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27986 (exit $ac_status); } && {
27987 test -z "$ac_cxx_werror_flag" ||
27988 test ! -s conftest.err
27989 } && test -s conftest$ac_exeext &&
27990 $as_test_x conftest$ac_exeext; then
27991 { echo "$as_me:$LINENO: result
: yes" >&5
27992 echo "${ECHO_T}yes" >&6; }
27993 ac_cv_lib_OPENH323="yes"
27996 echo "$as_me: failed program was
:" >&5
27997 sed 's/^/| /' conftest.$ac_ext >&5
27999 { echo "$as_me:$LINENO: result
: no
" >&5
28000 echo "${ECHO_T}no
" >&6; }
28001 ac_cv_lib_OPENH323="no
"
28006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28007 conftest$ac_exeext conftest.$ac_ext
28010 ac_cpp='$CPP $CPPFLAGS'
28011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28016 LIBS="${saved_libs}"
28017 CPPFLAGS="${saved_cppflags}"
28019 if test "${ac_cv_lib_OPENH323}" = "yes"; then
28020 if test "${OPENH323_LIB:-undef}" = "undef
"; then
28021 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr
/lib
"; then
28022 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
28024 OPENH323_LIB="-l${PLATFORM_OPENH323}"
28027 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr
/include
"; then
28028 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
28032 cat >>confdefs.h <<\_ACEOF
28033 #define HAVE_OPENH323 1
28040 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
28041 { echo "$as_me:$LINENO: ***" >&5
28042 echo "$as_me: ***" >&6;}
28043 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken.
" >&5
28044 echo "$as_me: *** The OPENH323 installation on this system appears to be broken.
" >&6;}
28045 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
28046 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
28047 { echo "$as_me:$LINENO: *** including
--without-h323" >&5
28048 echo "$as_me: *** including
--without-h323" >&6;}
28053 if test "${USE_RADIUS}" != "no
"; then
28055 if test "x
${RADIUS_DIR}" != "x
"; then
28056 if test -d ${RADIUS_DIR}/lib; then
28057 pbxlibdir="-L${RADIUS_DIR}/lib
"
28059 pbxlibdir="-L${RADIUS_DIR}"
28062 { echo "$as_me:$LINENO: checking
for rc_read_config
in -lradiusclient-ng" >&5
28063 echo $ECHO_N "checking
for rc_read_config
in -lradiusclient-ng...
$ECHO_C" >&6; }
28064 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
28065 echo $ECHO_N "(cached
) $ECHO_C" >&6
28067 ac_check_lib_save_LIBS=$LIBS
28068 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
28069 cat >conftest.$ac_ext <<_ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h. */
28076 /* Override any GCC internal prototype to avoid an error.
28077 Use char because int might match the return type of a GCC
28078 builtin and then its argument prototype would still apply. */
28082 char rc_read_config ();
28086 return rc_read_config ();
28091 rm -f conftest.$ac_objext conftest$ac_exeext
28092 if { (ac_try="$ac_link"
28093 case "(($ac_try" in
28094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28095 *) ac_try_echo=$ac_try;;
28097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28098 (eval "$ac_link") 2>conftest.er1
28100 grep -v '^ *+' conftest.er1 >conftest.err
28102 cat conftest.err >&5
28103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28104 (exit $ac_status); } && {
28105 test -z "$ac_c_werror_flag" ||
28106 test ! -s conftest.err
28107 } && test -s conftest$ac_exeext &&
28108 $as_test_x conftest$ac_exeext; then
28109 ac_cv_lib_radiusclient_ng_rc_read_config=yes
28111 echo "$as_me: failed program was
:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28114 ac_cv_lib_radiusclient_ng_rc_read_config=no
28117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28118 conftest$ac_exeext conftest.$ac_ext
28119 LIBS=$ac_check_lib_save_LIBS
28121 { echo "$as_me:$LINENO: result
: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
28122 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
28123 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
28124 AST_RADIUS_FOUND=yes
28126 AST_RADIUS_FOUND=no
28130 if test "${AST_RADIUS_FOUND}" = "yes"; then
28131 RADIUS_LIB="-lradiusclient-ng "
28132 RADIUS_HEADER_FOUND="1"
28133 if test "x
${RADIUS_DIR}" != "x
"; then
28134 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
28135 RADIUS_INCLUDE="-I${RADIUS_DIR}/include
"
28136 saved_cppflags="${CPPFLAGS}"
28137 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include
"
28138 if test "xradiusclient-ng.h
" != "x
" ; then
28139 as_ac_Header=`echo "ac_cv_header_
${RADIUS_DIR}/include
/radiusclient-ng.h
" | $as_tr_sh`
28140 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28141 { echo "$as_me:$LINENO: checking
for ${RADIUS_DIR}/include
/radiusclient-ng.h
" >&5
28142 echo $ECHO_N "checking
for ${RADIUS_DIR}/include
/radiusclient-ng.h...
$ECHO_C" >&6; }
28143 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28144 echo $ECHO_N "(cached
) $ECHO_C" >&6
28146 ac_res=`eval echo '${'$as_ac_Header'}'`
28147 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28148 echo "${ECHO_T}$ac_res" >&6; }
28150 # Is the header compilable?
28151 { echo "$as_me:$LINENO: checking
${RADIUS_DIR}/include
/radiusclient-ng.h usability
" >&5
28152 echo $ECHO_N "checking
${RADIUS_DIR}/include
/radiusclient-ng.h usability...
$ECHO_C" >&6; }
28153 cat >conftest.$ac_ext <<_ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h. */
28159 $ac_includes_default
28160 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28162 rm -f conftest.$ac_objext
28163 if { (ac_try="$ac_compile"
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_compile") 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); } && {
28176 test -z "$ac_c_werror_flag" ||
28177 test ! -s conftest.err
28178 } && test -s conftest.$ac_objext; then
28179 ac_header_compiler=yes
28181 echo "$as_me: failed program was
:" >&5
28182 sed 's/^/| /' conftest.$ac_ext >&5
28184 ac_header_compiler=no
28187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28188 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28189 echo "${ECHO_T}$ac_header_compiler" >&6; }
28191 # Is the header present?
28192 { echo "$as_me:$LINENO: checking
${RADIUS_DIR}/include
/radiusclient-ng.h presence
" >&5
28193 echo $ECHO_N "checking
${RADIUS_DIR}/include
/radiusclient-ng.h presence...
$ECHO_C" >&6; }
28194 cat >conftest.$ac_ext <<_ACEOF
28197 cat confdefs.h >>conftest.$ac_ext
28198 cat >>conftest.$ac_ext <<_ACEOF
28199 /* end confdefs.h. */
28200 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28202 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28203 case "(($ac_try" in
28204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28205 *) ac_try_echo=$ac_try;;
28207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28208 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28210 grep -v '^ *+' conftest.er1 >conftest.err
28212 cat conftest.err >&5
28213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28214 (exit $ac_status); } >/dev/null && {
28215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28216 test ! -s conftest.err
28218 ac_header_preproc=yes
28220 echo "$as_me: failed program was
:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28223 ac_header_preproc=no
28226 rm -f conftest.err conftest.$ac_ext
28227 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28228 echo "${ECHO_T}$ac_header_preproc" >&6; }
28230 # So? What about this header?
28231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28233 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28234 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28235 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: proceeding with the compiler
's result" >&5
28236 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result
" >&2;}
28237 ac_header_preproc=yes
28240 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: present but cannot be compiled
" >&5
28241 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: present but cannot be compiled
" >&2;}
28242 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: check
for missing prerequisite headers?
" >&5
28243 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: check
for missing prerequisite headers?
" >&2;}
28244 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: see the Autoconf documentation
" >&5
28245 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: see the Autoconf documentation
" >&2;}
28246 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28247 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28248 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: proceeding with the preprocessor
's result" >&5
28249 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result
" >&2;}
28250 { echo "$as_me:$LINENO: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: in the future
, the compiler will take precedence
" >&5
28251 echo "$as_me: WARNING
: ${RADIUS_DIR}/include
/radiusclient-ng.h
: in the future
, the compiler will take precedence
" >&2;}
28253 ## ------------------------------- ##
28254 ## Report this to www.asterisk.org ##
28255 ## ------------------------------- ##
28257 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28260 { echo "$as_me:$LINENO: checking
for ${RADIUS_DIR}/include
/radiusclient-ng.h
" >&5
28261 echo $ECHO_N "checking
for ${RADIUS_DIR}/include
/radiusclient-ng.h...
$ECHO_C" >&6; }
28262 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28263 echo $ECHO_N "(cached
) $ECHO_C" >&6
28265 eval "$as_ac_Header=\
$ac_header_preproc"
28267 ac_res=`eval echo '${'$as_ac_Header'}'`
28268 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28269 echo "${ECHO_T}$ac_res" >&6; }
28272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28273 RADIUS_HEADER_FOUND=1
28275 RADIUS_HEADER_FOUND=0
28280 CPPFLAGS="${saved_cppflags}"
28282 if test "xradiusclient-ng.h
" != "x
" ; then
28283 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28284 { echo "$as_me:$LINENO: checking
for radiusclient-ng.h
" >&5
28285 echo $ECHO_N "checking
for radiusclient-ng.h...
$ECHO_C" >&6; }
28286 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28287 echo $ECHO_N "(cached
) $ECHO_C" >&6
28289 { echo "$as_me:$LINENO: result
: $ac_cv_header_radiusclient_ng_h" >&5
28290 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28292 # Is the header compilable?
28293 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability
" >&5
28294 echo $ECHO_N "checking radiusclient-ng.h usability...
$ECHO_C" >&6; }
28295 cat >conftest.$ac_ext <<_ACEOF
28298 cat confdefs.h >>conftest.$ac_ext
28299 cat >>conftest.$ac_ext <<_ACEOF
28300 /* end confdefs.h. */
28301 $ac_includes_default
28302 #include <radiusclient-ng.h>
28304 rm -f conftest.$ac_objext
28305 if { (ac_try="$ac_compile"
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_compile") 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); } && {
28318 test -z "$ac_c_werror_flag" ||
28319 test ! -s conftest.err
28320 } && test -s conftest.$ac_objext; then
28321 ac_header_compiler=yes
28323 echo "$as_me: failed program was
:" >&5
28324 sed 's/^/| /' conftest.$ac_ext >&5
28326 ac_header_compiler=no
28329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28330 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28331 echo "${ECHO_T}$ac_header_compiler" >&6; }
28333 # Is the header present?
28334 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence
" >&5
28335 echo $ECHO_N "checking radiusclient-ng.h presence...
$ECHO_C" >&6; }
28336 cat >conftest.$ac_ext <<_ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h. */
28342 #include <radiusclient-ng.h>
28344 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28345 case "(($ac_try" in
28346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347 *) ac_try_echo=$ac_try;;
28349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28350 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28352 grep -v '^ *+' conftest.er1 >conftest.err
28354 cat conftest.err >&5
28355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28356 (exit $ac_status); } >/dev/null && {
28357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28358 test ! -s conftest.err
28360 ac_header_preproc=yes
28362 echo "$as_me: failed program was
:" >&5
28363 sed 's/^/| /' conftest.$ac_ext >&5
28365 ac_header_preproc=no
28368 rm -f conftest.err conftest.$ac_ext
28369 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28370 echo "${ECHO_T}$ac_header_preproc" >&6; }
28372 # So? What about this header?
28373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28375 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28376 echo "$as_me: WARNING
: radiusclient-ng.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28377 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: proceeding with the compiler
's result" >&5
28378 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result
" >&2;}
28379 ac_header_preproc=yes
28382 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: present but cannot be compiled
" >&5
28383 echo "$as_me: WARNING
: radiusclient-ng.h
: present but cannot be compiled
" >&2;}
28384 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: check
for missing prerequisite headers?
" >&5
28385 echo "$as_me: WARNING
: radiusclient-ng.h
: check
for missing prerequisite headers?
" >&2;}
28386 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: see the Autoconf documentation
" >&5
28387 echo "$as_me: WARNING
: radiusclient-ng.h
: see the Autoconf documentation
" >&2;}
28388 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28389 echo "$as_me: WARNING
: radiusclient-ng.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28390 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: proceeding with the preprocessor
's result" >&5
28391 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result
" >&2;}
28392 { echo "$as_me:$LINENO: WARNING
: radiusclient-ng.h
: in the future
, the compiler will take precedence
" >&5
28393 echo "$as_me: WARNING
: radiusclient-ng.h
: in the future
, the compiler will take precedence
" >&2;}
28395 ## ------------------------------- ##
28396 ## Report this to www.asterisk.org ##
28397 ## ------------------------------- ##
28399 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28402 { echo "$as_me:$LINENO: checking
for radiusclient-ng.h
" >&5
28403 echo $ECHO_N "checking
for radiusclient-ng.h...
$ECHO_C" >&6; }
28404 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28405 echo $ECHO_N "(cached
) $ECHO_C" >&6
28407 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
28409 { echo "$as_me:$LINENO: result
: $ac_cv_header_radiusclient_ng_h" >&5
28410 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28413 if test $ac_cv_header_radiusclient_ng_h = yes; then
28414 RADIUS_HEADER_FOUND=1
28416 RADIUS_HEADER_FOUND=0
28422 if test "x
${RADIUS_HEADER_FOUND}" = "x0
" ; then
28423 if test -n "${RADIUS_MANDATORY}" ;
28425 { echo "$as_me:$LINENO: ***" >&5
28426 echo "$as_me: ***" >&6;}
28427 { echo "$as_me:$LINENO: *** It appears that you
do not have the radiusclient-ng development package installed.
" >&5
28428 echo "$as_me: *** It appears that you
do not have the radiusclient-ng development package installed.
" >&6;}
28429 { echo "$as_me:$LINENO: *** Please
install it to include
${RADIUS_DESCRIP} support
, or re-run configure
" >&5
28430 echo "$as_me: *** Please
install it to include
${RADIUS_DESCRIP} support
, or re-run configure
" >&6;}
28431 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${RADIUS_OPTION}" >&5
28432 echo "$as_me: *** without explicitly specifying
--with-${RADIUS_OPTION}" >&6;}
28441 cat >>confdefs.h <<_ACEOF
28442 #define HAVE_RADIUS 1
28446 elif test -n "${RADIUS_MANDATORY}";
28448 { echo "$as_me:$LINENO: ***" >&5
28449 echo "$as_me: ***" >&6;}
28450 { echo "$as_me:$LINENO: *** The
${RADIUS_DESCRIP} installation on this system appears to be broken.
" >&5
28451 echo "$as_me: *** The
${RADIUS_DESCRIP} installation on this system appears to be broken.
" >&6;}
28452 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
28453 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
28454 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${RADIUS_OPTION}" >&5
28455 echo "$as_me: *** without explicitly specifying
--with-${RADIUS_OPTION}" >&6;}
28462 if test "${USE_SPEEX}" != "no
"; then
28464 if test "x
${SPEEX_DIR}" != "x
"; then
28465 if test -d ${SPEEX_DIR}/lib; then
28466 pbxlibdir="-L${SPEEX_DIR}/lib
"
28468 pbxlibdir="-L${SPEEX_DIR}"
28471 { echo "$as_me:$LINENO: checking
for speex_encode
in -lspeex" >&5
28472 echo $ECHO_N "checking
for speex_encode
in -lspeex...
$ECHO_C" >&6; }
28473 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
28474 echo $ECHO_N "(cached
) $ECHO_C" >&6
28476 ac_check_lib_save_LIBS=$LIBS
28477 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
28478 cat >conftest.$ac_ext <<_ACEOF
28481 cat confdefs.h >>conftest.$ac_ext
28482 cat >>conftest.$ac_ext <<_ACEOF
28483 /* end confdefs.h. */
28485 /* Override any GCC internal prototype to avoid an error.
28486 Use char because int might match the return type of a GCC
28487 builtin and then its argument prototype would still apply. */
28491 char speex_encode ();
28495 return speex_encode ();
28500 rm -f conftest.$ac_objext conftest$ac_exeext
28501 if { (ac_try="$ac_link"
28502 case "(($ac_try" in
28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504 *) ac_try_echo=$ac_try;;
28506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_link") 2>conftest.er1
28509 grep -v '^ *+' conftest.er1 >conftest.err
28511 cat conftest.err >&5
28512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28513 (exit $ac_status); } && {
28514 test -z "$ac_c_werror_flag" ||
28515 test ! -s conftest.err
28516 } && test -s conftest$ac_exeext &&
28517 $as_test_x conftest$ac_exeext; then
28518 ac_cv_lib_speex_speex_encode=yes
28520 echo "$as_me: failed program was
:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28523 ac_cv_lib_speex_speex_encode=no
28526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28527 conftest$ac_exeext conftest.$ac_ext
28528 LIBS=$ac_check_lib_save_LIBS
28530 { echo "$as_me:$LINENO: result
: $ac_cv_lib_speex_speex_encode" >&5
28531 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
28532 if test $ac_cv_lib_speex_speex_encode = yes; then
28533 AST_SPEEX_FOUND=yes
28539 if test "${AST_SPEEX_FOUND}" = "yes"; then
28540 SPEEX_LIB="-lspeex -lm"
28541 SPEEX_HEADER_FOUND="1"
28542 if test "x
${SPEEX_DIR}" != "x
"; then
28543 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
28544 SPEEX_INCLUDE="-I${SPEEX_DIR}/include
"
28545 saved_cppflags="${CPPFLAGS}"
28546 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include
"
28547 if test "xspeex
/speex.h
" != "x
" ; then
28548 as_ac_Header=`echo "ac_cv_header_
${SPEEX_DIR}/include
/speex
/speex.h
" | $as_tr_sh`
28549 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28550 { echo "$as_me:$LINENO: checking
for ${SPEEX_DIR}/include
/speex
/speex.h
" >&5
28551 echo $ECHO_N "checking
for ${SPEEX_DIR}/include
/speex
/speex.h...
$ECHO_C" >&6; }
28552 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28553 echo $ECHO_N "(cached
) $ECHO_C" >&6
28555 ac_res=`eval echo '${'$as_ac_Header'}'`
28556 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28557 echo "${ECHO_T}$ac_res" >&6; }
28559 # Is the header compilable?
28560 { echo "$as_me:$LINENO: checking
${SPEEX_DIR}/include
/speex
/speex.h usability
" >&5
28561 echo $ECHO_N "checking
${SPEEX_DIR}/include
/speex
/speex.h usability...
$ECHO_C" >&6; }
28562 cat >conftest.$ac_ext <<_ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h. */
28568 $ac_includes_default
28569 #include <${SPEEX_DIR}/include/speex/speex.h>
28571 rm -f conftest.$ac_objext
28572 if { (ac_try="$ac_compile"
28573 case "(($ac_try" in
28574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28575 *) ac_try_echo=$ac_try;;
28577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28578 (eval "$ac_compile") 2>conftest.er1
28580 grep -v '^ *+' conftest.er1 >conftest.err
28582 cat conftest.err >&5
28583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28584 (exit $ac_status); } && {
28585 test -z "$ac_c_werror_flag" ||
28586 test ! -s conftest.err
28587 } && test -s conftest.$ac_objext; then
28588 ac_header_compiler=yes
28590 echo "$as_me: failed program was
:" >&5
28591 sed 's/^/| /' conftest.$ac_ext >&5
28593 ac_header_compiler=no
28596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28597 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28598 echo "${ECHO_T}$ac_header_compiler" >&6; }
28600 # Is the header present?
28601 { echo "$as_me:$LINENO: checking
${SPEEX_DIR}/include
/speex
/speex.h presence
" >&5
28602 echo $ECHO_N "checking
${SPEEX_DIR}/include
/speex
/speex.h presence...
$ECHO_C" >&6; }
28603 cat >conftest.$ac_ext <<_ACEOF
28606 cat confdefs.h >>conftest.$ac_ext
28607 cat >>conftest.$ac_ext <<_ACEOF
28608 /* end confdefs.h. */
28609 #include <${SPEEX_DIR}/include/speex/speex.h>
28611 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28612 case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28617 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28619 grep -v '^ *+' conftest.er1 >conftest.err
28621 cat conftest.err >&5
28622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28623 (exit $ac_status); } >/dev/null && {
28624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28625 test ! -s conftest.err
28627 ac_header_preproc=yes
28629 echo "$as_me: failed program was
:" >&5
28630 sed 's/^/| /' conftest.$ac_ext >&5
28632 ac_header_preproc=no
28635 rm -f conftest.err conftest.$ac_ext
28636 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28637 echo "${ECHO_T}$ac_header_preproc" >&6; }
28639 # So? What about this header?
28640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28642 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28643 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28644 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: proceeding with the compiler
's result" >&5
28645 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result
" >&2;}
28646 ac_header_preproc=yes
28649 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: present but cannot be compiled
" >&5
28650 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: present but cannot be compiled
" >&2;}
28651 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: check
for missing prerequisite headers?
" >&5
28652 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: check
for missing prerequisite headers?
" >&2;}
28653 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: see the Autoconf documentation
" >&5
28654 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: see the Autoconf documentation
" >&2;}
28655 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28656 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28657 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: proceeding with the preprocessor
's result" >&5
28658 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result
" >&2;}
28659 { echo "$as_me:$LINENO: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: in the future
, the compiler will take precedence
" >&5
28660 echo "$as_me: WARNING
: ${SPEEX_DIR}/include
/speex
/speex.h
: in the future
, the compiler will take precedence
" >&2;}
28662 ## ------------------------------- ##
28663 ## Report this to www.asterisk.org ##
28664 ## ------------------------------- ##
28666 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28669 { echo "$as_me:$LINENO: checking
for ${SPEEX_DIR}/include
/speex
/speex.h
" >&5
28670 echo $ECHO_N "checking
for ${SPEEX_DIR}/include
/speex
/speex.h...
$ECHO_C" >&6; }
28671 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28672 echo $ECHO_N "(cached
) $ECHO_C" >&6
28674 eval "$as_ac_Header=\
$ac_header_preproc"
28676 ac_res=`eval echo '${'$as_ac_Header'}'`
28677 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28678 echo "${ECHO_T}$ac_res" >&6; }
28681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28682 SPEEX_HEADER_FOUND=1
28684 SPEEX_HEADER_FOUND=0
28689 CPPFLAGS="${saved_cppflags}"
28691 if test "xspeex
/speex.h
" != "x
" ; then
28692 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28693 { echo "$as_me:$LINENO: checking
for speex
/speex.h
" >&5
28694 echo $ECHO_N "checking
for speex
/speex.h...
$ECHO_C" >&6; }
28695 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28696 echo $ECHO_N "(cached
) $ECHO_C" >&6
28698 { echo "$as_me:$LINENO: result
: $ac_cv_header_speex_speex_h" >&5
28699 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
28701 # Is the header compilable?
28702 { echo "$as_me:$LINENO: checking speex
/speex.h usability
" >&5
28703 echo $ECHO_N "checking speex
/speex.h usability...
$ECHO_C" >&6; }
28704 cat >conftest.$ac_ext <<_ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h. */
28710 $ac_includes_default
28711 #include <speex/speex.h>
28713 rm -f conftest.$ac_objext
28714 if { (ac_try="$ac_compile"
28715 case "(($ac_try" in
28716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28717 *) ac_try_echo=$ac_try;;
28719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28720 (eval "$ac_compile") 2>conftest.er1
28722 grep -v '^ *+' conftest.er1 >conftest.err
28724 cat conftest.err >&5
28725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28726 (exit $ac_status); } && {
28727 test -z "$ac_c_werror_flag" ||
28728 test ! -s conftest.err
28729 } && test -s conftest.$ac_objext; then
28730 ac_header_compiler=yes
28732 echo "$as_me: failed program was
:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28735 ac_header_compiler=no
28738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28739 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28740 echo "${ECHO_T}$ac_header_compiler" >&6; }
28742 # Is the header present?
28743 { echo "$as_me:$LINENO: checking speex
/speex.h presence
" >&5
28744 echo $ECHO_N "checking speex
/speex.h presence...
$ECHO_C" >&6; }
28745 cat >conftest.$ac_ext <<_ACEOF
28748 cat confdefs.h >>conftest.$ac_ext
28749 cat >>conftest.$ac_ext <<_ACEOF
28750 /* end confdefs.h. */
28751 #include <speex/speex.h>
28753 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28754 case "(($ac_try" in
28755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28756 *) ac_try_echo=$ac_try;;
28758 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28759 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28761 grep -v '^ *+' conftest.er1 >conftest.err
28763 cat conftest.err >&5
28764 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28765 (exit $ac_status); } >/dev/null && {
28766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28767 test ! -s conftest.err
28769 ac_header_preproc=yes
28771 echo "$as_me: failed program was
:" >&5
28772 sed 's/^/| /' conftest.$ac_ext >&5
28774 ac_header_preproc=no
28777 rm -f conftest.err conftest.$ac_ext
28778 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28779 echo "${ECHO_T}$ac_header_preproc" >&6; }
28781 # So? What about this header?
28782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28784 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28785 echo "$as_me: WARNING
: speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28786 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: proceeding with the compiler
's result" >&5
28787 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result
" >&2;}
28788 ac_header_preproc=yes
28791 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: present but cannot be compiled
" >&5
28792 echo "$as_me: WARNING
: speex
/speex.h
: present but cannot be compiled
" >&2;}
28793 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: check
for missing prerequisite headers?
" >&5
28794 echo "$as_me: WARNING
: speex
/speex.h
: check
for missing prerequisite headers?
" >&2;}
28795 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: see the Autoconf documentation
" >&5
28796 echo "$as_me: WARNING
: speex
/speex.h
: see the Autoconf documentation
" >&2;}
28797 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28798 echo "$as_me: WARNING
: speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28799 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: proceeding with the preprocessor
's result" >&5
28800 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result
" >&2;}
28801 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: in the future
, the compiler will take precedence
" >&5
28802 echo "$as_me: WARNING
: speex
/speex.h
: in the future
, the compiler will take precedence
" >&2;}
28804 ## ------------------------------- ##
28805 ## Report this to www.asterisk.org ##
28806 ## ------------------------------- ##
28808 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
28811 { echo "$as_me:$LINENO: checking
for speex
/speex.h
" >&5
28812 echo $ECHO_N "checking
for speex
/speex.h...
$ECHO_C" >&6; }
28813 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28814 echo $ECHO_N "(cached
) $ECHO_C" >&6
28816 ac_cv_header_speex_speex_h=$ac_header_preproc
28818 { echo "$as_me:$LINENO: result
: $ac_cv_header_speex_speex_h" >&5
28819 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
28822 if test $ac_cv_header_speex_speex_h = yes; then
28823 SPEEX_HEADER_FOUND=1
28825 SPEEX_HEADER_FOUND=0
28831 if test "x
${SPEEX_HEADER_FOUND}" = "x0
" ; then
28832 if test -n "${SPEEX_MANDATORY}" ;
28834 { echo "$as_me:$LINENO: ***" >&5
28835 echo "$as_me: ***" >&6;}
28836 { echo "$as_me:$LINENO: *** It appears that you
do not have the speex development package installed.
" >&5
28837 echo "$as_me: *** It appears that you
do not have the speex development package installed.
" >&6;}
28838 { echo "$as_me:$LINENO: *** Please
install it to include
${SPEEX_DESCRIP} support
, or re-run configure
" >&5
28839 echo "$as_me: *** Please
install it to include
${SPEEX_DESCRIP} support
, or re-run configure
" >&6;}
28840 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SPEEX_OPTION}" >&5
28841 echo "$as_me: *** without explicitly specifying
--with-${SPEEX_OPTION}" >&6;}
28850 cat >>confdefs.h <<_ACEOF
28851 #define HAVE_SPEEX 1
28855 elif test -n "${SPEEX_MANDATORY}";
28857 { echo "$as_me:$LINENO: ***" >&5
28858 echo "$as_me: ***" >&6;}
28859 { echo "$as_me:$LINENO: *** The
${SPEEX_DESCRIP} installation on this system appears to be broken.
" >&5
28860 echo "$as_me: *** The
${SPEEX_DESCRIP} installation on this system appears to be broken.
" >&6;}
28861 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
28862 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
28863 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SPEEX_OPTION}" >&5
28864 echo "$as_me: *** without explicitly specifying
--with-${SPEEX_OPTION}" >&6;}
28871 if test "${USE_SPEEXDSP}" != "no
"; then
28873 if test "x
${SPEEXDSP_DIR}" != "x
"; then
28874 if test -d ${SPEEXDSP_DIR}/lib; then
28875 pbxlibdir="-L${SPEEXDSP_DIR}/lib
"
28877 pbxlibdir="-L${SPEEXDSP_DIR}"
28880 { echo "$as_me:$LINENO: checking
for speex_preprocess_ctl
in -lspeexdsp" >&5
28881 echo $ECHO_N "checking
for speex_preprocess_ctl
in -lspeexdsp...
$ECHO_C" >&6; }
28882 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
28883 echo $ECHO_N "(cached
) $ECHO_C" >&6
28885 ac_check_lib_save_LIBS=$LIBS
28886 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
28887 cat >conftest.$ac_ext <<_ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h. */
28894 /* Override any GCC internal prototype to avoid an error.
28895 Use char because int might match the return type of a GCC
28896 builtin and then its argument prototype would still apply. */
28900 char speex_preprocess_ctl ();
28904 return speex_preprocess_ctl ();
28909 rm -f conftest.$ac_objext conftest$ac_exeext
28910 if { (ac_try="$ac_link"
28911 case "(($ac_try" in
28912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913 *) ac_try_echo=$ac_try;;
28915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28916 (eval "$ac_link") 2>conftest.er1
28918 grep -v '^ *+' conftest.er1 >conftest.err
28920 cat conftest.err >&5
28921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28922 (exit $ac_status); } && {
28923 test -z "$ac_c_werror_flag" ||
28924 test ! -s conftest.err
28925 } && test -s conftest$ac_exeext &&
28926 $as_test_x conftest$ac_exeext; then
28927 ac_cv_lib_speexdsp_speex_preprocess_ctl=yes
28929 echo "$as_me: failed program was
:" >&5
28930 sed 's/^/| /' conftest.$ac_ext >&5
28932 ac_cv_lib_speexdsp_speex_preprocess_ctl=no
28935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28936 conftest$ac_exeext conftest.$ac_ext
28937 LIBS=$ac_check_lib_save_LIBS
28939 { echo "$as_me:$LINENO: result
: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
28940 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
28941 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
28942 AST_SPEEXDSP_FOUND=yes
28944 AST_SPEEXDSP_FOUND=no
28948 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
28949 SPEEXDSP_LIB="-lspeexdsp -lm"
28950 SPEEXDSP_HEADER_FOUND="1"
28951 if test "x
${SPEEXDSP_DIR}" != "x
"; then
28952 SPEEXDSP_LIB="${pbxlibdir} ${SPEEXDSP_LIB}"
28953 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include
"
28954 saved_cppflags="${CPPFLAGS}"
28955 CPPFLAGS="${CPPFLAGS} -I${SPEEXDSP_DIR}/include
"
28956 if test "xspeex
/speex.h
" != "x
" ; then
28957 as_ac_Header=`echo "ac_cv_header_
${SPEEXDSP_DIR}/include
/speex
/speex.h
" | $as_tr_sh`
28958 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28959 { echo "$as_me:$LINENO: checking
for ${SPEEXDSP_DIR}/include
/speex
/speex.h
" >&5
28960 echo $ECHO_N "checking
for ${SPEEXDSP_DIR}/include
/speex
/speex.h...
$ECHO_C" >&6; }
28961 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
28962 echo $ECHO_N "(cached
) $ECHO_C" >&6
28964 ac_res=`eval echo '${'$as_ac_Header'}'`
28965 { echo "$as_me:$LINENO: result
: $ac_res" >&5
28966 echo "${ECHO_T}$ac_res" >&6; }
28968 # Is the header compilable?
28969 { echo "$as_me:$LINENO: checking
${SPEEXDSP_DIR}/include
/speex
/speex.h usability
" >&5
28970 echo $ECHO_N "checking
${SPEEXDSP_DIR}/include
/speex
/speex.h usability...
$ECHO_C" >&6; }
28971 cat >conftest.$ac_ext <<_ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h. */
28977 $ac_includes_default
28978 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
28980 rm -f conftest.$ac_objext
28981 if { (ac_try="$ac_compile"
28982 case "(($ac_try" in
28983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984 *) ac_try_echo=$ac_try;;
28986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28987 (eval "$ac_compile") 2>conftest.er1
28989 grep -v '^ *+' conftest.er1 >conftest.err
28991 cat conftest.err >&5
28992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28993 (exit $ac_status); } && {
28994 test -z "$ac_c_werror_flag" ||
28995 test ! -s conftest.err
28996 } && test -s conftest.$ac_objext; then
28997 ac_header_compiler=yes
28999 echo "$as_me: failed program was
:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29002 ac_header_compiler=no
29005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29006 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29007 echo "${ECHO_T}$ac_header_compiler" >&6; }
29009 # Is the header present?
29010 { echo "$as_me:$LINENO: checking
${SPEEXDSP_DIR}/include
/speex
/speex.h presence
" >&5
29011 echo $ECHO_N "checking
${SPEEXDSP_DIR}/include
/speex
/speex.h presence...
$ECHO_C" >&6; }
29012 cat >conftest.$ac_ext <<_ACEOF
29015 cat confdefs.h >>conftest.$ac_ext
29016 cat >>conftest.$ac_ext <<_ACEOF
29017 /* end confdefs.h. */
29018 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
29020 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29021 case "(($ac_try" in
29022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29023 *) ac_try_echo=$ac_try;;
29025 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29026 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29028 grep -v '^ *+' conftest.er1 >conftest.err
29030 cat conftest.err >&5
29031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29032 (exit $ac_status); } >/dev/null && {
29033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29034 test ! -s conftest.err
29036 ac_header_preproc=yes
29038 echo "$as_me: failed program was
:" >&5
29039 sed 's/^/| /' conftest.$ac_ext >&5
29041 ac_header_preproc=no
29044 rm -f conftest.err conftest.$ac_ext
29045 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29046 echo "${ECHO_T}$ac_header_preproc" >&6; }
29048 # So? What about this header?
29049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29051 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29052 echo "$as_me: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29053 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: proceeding with the compiler
's result" >&5
29054 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result
" >&2;}
29055 ac_header_preproc=yes
29058 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: present but cannot be compiled
" >&5
29059 echo "$as_me: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: present but cannot be compiled
" >&2;}
29060 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: check
for missing prerequisite headers?
" >&5
29061 echo "$as_me: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: check
for missing prerequisite headers?
" >&2;}
29062 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: see the Autoconf documentation
" >&5
29063 echo "$as_me: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: see the Autoconf documentation
" >&2;}
29064 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29065 echo "$as_me: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29066 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: proceeding with the preprocessor
's result" >&5
29067 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result
" >&2;}
29068 { echo "$as_me:$LINENO: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: in the future
, the compiler will take precedence
" >&5
29069 echo "$as_me: WARNING
: ${SPEEXDSP_DIR}/include
/speex
/speex.h
: in the future
, the compiler will take precedence
" >&2;}
29071 ## ------------------------------- ##
29072 ## Report this to www.asterisk.org ##
29073 ## ------------------------------- ##
29075 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29078 { echo "$as_me:$LINENO: checking
for ${SPEEXDSP_DIR}/include
/speex
/speex.h
" >&5
29079 echo $ECHO_N "checking
for ${SPEEXDSP_DIR}/include
/speex
/speex.h...
$ECHO_C" >&6; }
29080 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29081 echo $ECHO_N "(cached
) $ECHO_C" >&6
29083 eval "$as_ac_Header=\
$ac_header_preproc"
29085 ac_res=`eval echo '${'$as_ac_Header'}'`
29086 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29087 echo "${ECHO_T}$ac_res" >&6; }
29090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29091 SPEEXDSP_HEADER_FOUND=1
29093 SPEEXDSP_HEADER_FOUND=0
29098 CPPFLAGS="${saved_cppflags}"
29100 if test "xspeex
/speex.h
" != "x
" ; then
29101 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29102 { echo "$as_me:$LINENO: checking
for speex
/speex.h
" >&5
29103 echo $ECHO_N "checking
for speex
/speex.h...
$ECHO_C" >&6; }
29104 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29105 echo $ECHO_N "(cached
) $ECHO_C" >&6
29107 { echo "$as_me:$LINENO: result
: $ac_cv_header_speex_speex_h" >&5
29108 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29110 # Is the header compilable?
29111 { echo "$as_me:$LINENO: checking speex
/speex.h usability
" >&5
29112 echo $ECHO_N "checking speex
/speex.h usability...
$ECHO_C" >&6; }
29113 cat >conftest.$ac_ext <<_ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h. */
29119 $ac_includes_default
29120 #include <speex/speex.h>
29122 rm -f conftest.$ac_objext
29123 if { (ac_try="$ac_compile"
29124 case "(($ac_try" in
29125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126 *) ac_try_echo=$ac_try;;
29128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29129 (eval "$ac_compile") 2>conftest.er1
29131 grep -v '^ *+' conftest.er1 >conftest.err
29133 cat conftest.err >&5
29134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29135 (exit $ac_status); } && {
29136 test -z "$ac_c_werror_flag" ||
29137 test ! -s conftest.err
29138 } && test -s conftest.$ac_objext; then
29139 ac_header_compiler=yes
29141 echo "$as_me: failed program was
:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ac_header_compiler=no
29147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29148 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29149 echo "${ECHO_T}$ac_header_compiler" >&6; }
29151 # Is the header present?
29152 { echo "$as_me:$LINENO: checking speex
/speex.h presence
" >&5
29153 echo $ECHO_N "checking speex
/speex.h presence...
$ECHO_C" >&6; }
29154 cat >conftest.$ac_ext <<_ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h. */
29160 #include <speex/speex.h>
29162 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29163 case "(($ac_try" in
29164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165 *) ac_try_echo=$ac_try;;
29167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29168 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29170 grep -v '^ *+' conftest.er1 >conftest.err
29172 cat conftest.err >&5
29173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29174 (exit $ac_status); } >/dev/null && {
29175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29176 test ! -s conftest.err
29178 ac_header_preproc=yes
29180 echo "$as_me: failed program was
:" >&5
29181 sed 's/^/| /' conftest.$ac_ext >&5
29183 ac_header_preproc=no
29186 rm -f conftest.err conftest.$ac_ext
29187 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29188 echo "${ECHO_T}$ac_header_preproc" >&6; }
29190 # So? What about this header?
29191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29193 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29194 echo "$as_me: WARNING
: speex
/speex.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29195 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: proceeding with the compiler
's result" >&5
29196 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result
" >&2;}
29197 ac_header_preproc=yes
29200 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: present but cannot be compiled
" >&5
29201 echo "$as_me: WARNING
: speex
/speex.h
: present but cannot be compiled
" >&2;}
29202 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: check
for missing prerequisite headers?
" >&5
29203 echo "$as_me: WARNING
: speex
/speex.h
: check
for missing prerequisite headers?
" >&2;}
29204 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: see the Autoconf documentation
" >&5
29205 echo "$as_me: WARNING
: speex
/speex.h
: see the Autoconf documentation
" >&2;}
29206 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29207 echo "$as_me: WARNING
: speex
/speex.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29208 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: proceeding with the preprocessor
's result" >&5
29209 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result
" >&2;}
29210 { echo "$as_me:$LINENO: WARNING
: speex
/speex.h
: in the future
, the compiler will take precedence
" >&5
29211 echo "$as_me: WARNING
: speex
/speex.h
: in the future
, the compiler will take precedence
" >&2;}
29213 ## ------------------------------- ##
29214 ## Report this to www.asterisk.org ##
29215 ## ------------------------------- ##
29217 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29220 { echo "$as_me:$LINENO: checking
for speex
/speex.h
" >&5
29221 echo $ECHO_N "checking
for speex
/speex.h...
$ECHO_C" >&6; }
29222 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29223 echo $ECHO_N "(cached
) $ECHO_C" >&6
29225 ac_cv_header_speex_speex_h=$ac_header_preproc
29227 { echo "$as_me:$LINENO: result
: $ac_cv_header_speex_speex_h" >&5
29228 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29231 if test $ac_cv_header_speex_speex_h = yes; then
29232 SPEEXDSP_HEADER_FOUND=1
29234 SPEEXDSP_HEADER_FOUND=0
29240 if test "x
${SPEEXDSP_HEADER_FOUND}" = "x0
" ; then
29241 if test -n "${SPEEXDSP_MANDATORY}" ;
29243 { echo "$as_me:$LINENO: ***" >&5
29244 echo "$as_me: ***" >&6;}
29245 { echo "$as_me:$LINENO: *** It appears that you
do not have the speexdsp development package installed.
" >&5
29246 echo "$as_me: *** It appears that you
do not have the speexdsp development package installed.
" >&6;}
29247 { echo "$as_me:$LINENO: *** Please
install it to include
${SPEEXDSP_DESCRIP} support
, or re-run configure
" >&5
29248 echo "$as_me: *** Please
install it to include
${SPEEXDSP_DESCRIP} support
, or re-run configure
" >&6;}
29249 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SPEEXDSP_OPTION}" >&5
29250 echo "$as_me: *** without explicitly specifying
--with-${SPEEXDSP_OPTION}" >&6;}
29254 SPEEXDSP_INCLUDE=""
29259 cat >>confdefs.h <<_ACEOF
29260 #define HAVE_SPEEXDSP 1
29264 elif test -n "${SPEEXDSP_MANDATORY}";
29266 { echo "$as_me:$LINENO: ***" >&5
29267 echo "$as_me: ***" >&6;}
29268 { echo "$as_me:$LINENO: *** The
${SPEEXDSP_DESCRIP} installation on this system appears to be broken.
" >&5
29269 echo "$as_me: *** The
${SPEEXDSP_DESCRIP} installation on this system appears to be broken.
" >&6;}
29270 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
29271 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
29272 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SPEEXDSP_OPTION}" >&5
29273 echo "$as_me: *** without explicitly specifying
--with-${SPEEXDSP_OPTION}" >&6;}
29280 if test "${USE_SQLITE}" != "no
"; then
29282 if test "x
${SQLITE_DIR}" != "x
"; then
29283 if test -d ${SQLITE_DIR}/lib; then
29284 pbxlibdir="-L${SQLITE_DIR}/lib
"
29286 pbxlibdir="-L${SQLITE_DIR}"
29289 { echo "$as_me:$LINENO: checking
for sqlite_exec
in -lsqlite" >&5
29290 echo $ECHO_N "checking
for sqlite_exec
in -lsqlite...
$ECHO_C" >&6; }
29291 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
29292 echo $ECHO_N "(cached
) $ECHO_C" >&6
29294 ac_check_lib_save_LIBS=$LIBS
29295 LIBS="-lsqlite ${pbxlibdir} $LIBS"
29296 cat >conftest.$ac_ext <<_ACEOF
29299 cat confdefs.h >>conftest.$ac_ext
29300 cat >>conftest.$ac_ext <<_ACEOF
29301 /* end confdefs.h. */
29303 /* Override any GCC internal prototype to avoid an error.
29304 Use char because int might match the return type of a GCC
29305 builtin and then its argument prototype would still apply. */
29309 char sqlite_exec ();
29313 return sqlite_exec ();
29318 rm -f conftest.$ac_objext conftest$ac_exeext
29319 if { (ac_try="$ac_link"
29320 case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_link") 2>conftest.er1
29327 grep -v '^ *+' conftest.er1 >conftest.err
29329 cat conftest.err >&5
29330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29331 (exit $ac_status); } && {
29332 test -z "$ac_c_werror_flag" ||
29333 test ! -s conftest.err
29334 } && test -s conftest$ac_exeext &&
29335 $as_test_x conftest$ac_exeext; then
29336 ac_cv_lib_sqlite_sqlite_exec=yes
29338 echo "$as_me: failed program was
:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29341 ac_cv_lib_sqlite_sqlite_exec=no
29344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29345 conftest$ac_exeext conftest.$ac_ext
29346 LIBS=$ac_check_lib_save_LIBS
29348 { echo "$as_me:$LINENO: result
: $ac_cv_lib_sqlite_sqlite_exec" >&5
29349 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
29350 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
29351 AST_SQLITE_FOUND=yes
29353 AST_SQLITE_FOUND=no
29357 if test "${AST_SQLITE_FOUND}" = "yes"; then
29358 SQLITE_LIB="-lsqlite "
29359 SQLITE_HEADER_FOUND="1"
29360 if test "x
${SQLITE_DIR}" != "x
"; then
29361 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
29362 SQLITE_INCLUDE="-I${SQLITE_DIR}/include
"
29363 saved_cppflags="${CPPFLAGS}"
29364 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include
"
29365 if test "xsqlite.h
" != "x
" ; then
29366 as_ac_Header=`echo "ac_cv_header_
${SQLITE_DIR}/include
/sqlite.h
" | $as_tr_sh`
29367 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29368 { echo "$as_me:$LINENO: checking
for ${SQLITE_DIR}/include
/sqlite.h
" >&5
29369 echo $ECHO_N "checking
for ${SQLITE_DIR}/include
/sqlite.h...
$ECHO_C" >&6; }
29370 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29371 echo $ECHO_N "(cached
) $ECHO_C" >&6
29373 ac_res=`eval echo '${'$as_ac_Header'}'`
29374 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29375 echo "${ECHO_T}$ac_res" >&6; }
29377 # Is the header compilable?
29378 { echo "$as_me:$LINENO: checking
${SQLITE_DIR}/include
/sqlite.h usability
" >&5
29379 echo $ECHO_N "checking
${SQLITE_DIR}/include
/sqlite.h usability...
$ECHO_C" >&6; }
29380 cat >conftest.$ac_ext <<_ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h. */
29386 $ac_includes_default
29387 #include <${SQLITE_DIR}/include/sqlite.h>
29389 rm -f conftest.$ac_objext
29390 if { (ac_try="$ac_compile"
29391 case "(($ac_try" in
29392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393 *) ac_try_echo=$ac_try;;
29395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29396 (eval "$ac_compile") 2>conftest.er1
29398 grep -v '^ *+' conftest.er1 >conftest.err
29400 cat conftest.err >&5
29401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29402 (exit $ac_status); } && {
29403 test -z "$ac_c_werror_flag" ||
29404 test ! -s conftest.err
29405 } && test -s conftest.$ac_objext; then
29406 ac_header_compiler=yes
29408 echo "$as_me: failed program was
:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29411 ac_header_compiler=no
29414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29415 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29416 echo "${ECHO_T}$ac_header_compiler" >&6; }
29418 # Is the header present?
29419 { echo "$as_me:$LINENO: checking
${SQLITE_DIR}/include
/sqlite.h presence
" >&5
29420 echo $ECHO_N "checking
${SQLITE_DIR}/include
/sqlite.h presence...
$ECHO_C" >&6; }
29421 cat >conftest.$ac_ext <<_ACEOF
29424 cat confdefs.h >>conftest.$ac_ext
29425 cat >>conftest.$ac_ext <<_ACEOF
29426 /* end confdefs.h. */
29427 #include <${SQLITE_DIR}/include/sqlite.h>
29429 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29430 case "(($ac_try" in
29431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432 *) ac_try_echo=$ac_try;;
29434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29435 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29437 grep -v '^ *+' conftest.er1 >conftest.err
29439 cat conftest.err >&5
29440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29441 (exit $ac_status); } >/dev/null && {
29442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29443 test ! -s conftest.err
29445 ac_header_preproc=yes
29447 echo "$as_me: failed program was
:" >&5
29448 sed 's/^/| /' conftest.$ac_ext >&5
29450 ac_header_preproc=no
29453 rm -f conftest.err conftest.$ac_ext
29454 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29455 echo "${ECHO_T}$ac_header_preproc" >&6; }
29457 # So? What about this header?
29458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29460 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29461 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29462 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: proceeding with the compiler
's result" >&5
29463 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result
" >&2;}
29464 ac_header_preproc=yes
29467 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: present but cannot be compiled
" >&5
29468 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: present but cannot be compiled
" >&2;}
29469 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: check
for missing prerequisite headers?
" >&5
29470 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: check
for missing prerequisite headers?
" >&2;}
29471 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: see the Autoconf documentation
" >&5
29472 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: see the Autoconf documentation
" >&2;}
29473 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29474 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29475 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: proceeding with the preprocessor
's result" >&5
29476 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result
" >&2;}
29477 { echo "$as_me:$LINENO: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: in the future
, the compiler will take precedence
" >&5
29478 echo "$as_me: WARNING
: ${SQLITE_DIR}/include
/sqlite.h
: in the future
, the compiler will take precedence
" >&2;}
29480 ## ------------------------------- ##
29481 ## Report this to www.asterisk.org ##
29482 ## ------------------------------- ##
29484 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29487 { echo "$as_me:$LINENO: checking
for ${SQLITE_DIR}/include
/sqlite.h
" >&5
29488 echo $ECHO_N "checking
for ${SQLITE_DIR}/include
/sqlite.h...
$ECHO_C" >&6; }
29489 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29490 echo $ECHO_N "(cached
) $ECHO_C" >&6
29492 eval "$as_ac_Header=\
$ac_header_preproc"
29494 ac_res=`eval echo '${'$as_ac_Header'}'`
29495 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29496 echo "${ECHO_T}$ac_res" >&6; }
29499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29500 SQLITE_HEADER_FOUND=1
29502 SQLITE_HEADER_FOUND=0
29507 CPPFLAGS="${saved_cppflags}"
29509 if test "xsqlite.h
" != "x
" ; then
29510 if test "${ac_cv_header_sqlite_h+set}" = set; then
29511 { echo "$as_me:$LINENO: checking
for sqlite.h
" >&5
29512 echo $ECHO_N "checking
for sqlite.h...
$ECHO_C" >&6; }
29513 if test "${ac_cv_header_sqlite_h+set}" = set; then
29514 echo $ECHO_N "(cached
) $ECHO_C" >&6
29516 { echo "$as_me:$LINENO: result
: $ac_cv_header_sqlite_h" >&5
29517 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
29519 # Is the header compilable?
29520 { echo "$as_me:$LINENO: checking sqlite.h usability
" >&5
29521 echo $ECHO_N "checking sqlite.h usability...
$ECHO_C" >&6; }
29522 cat >conftest.$ac_ext <<_ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h. */
29528 $ac_includes_default
29529 #include <sqlite.h>
29531 rm -f conftest.$ac_objext
29532 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
29548 ac_header_compiler=yes
29550 echo "$as_me: failed program was
:" >&5
29551 sed 's/^/| /' conftest.$ac_ext >&5
29553 ac_header_compiler=no
29556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29557 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29558 echo "${ECHO_T}$ac_header_compiler" >&6; }
29560 # Is the header present?
29561 { echo "$as_me:$LINENO: checking sqlite.h presence
" >&5
29562 echo $ECHO_N "checking sqlite.h presence...
$ECHO_C" >&6; }
29563 cat >conftest.$ac_ext <<_ACEOF
29566 cat confdefs.h >>conftest.$ac_ext
29567 cat >>conftest.$ac_ext <<_ACEOF
29568 /* end confdefs.h. */
29569 #include <sqlite.h>
29571 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29572 case "(($ac_try" in
29573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574 *) ac_try_echo=$ac_try;;
29576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29577 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29579 grep -v '^ *+' conftest.er1 >conftest.err
29581 cat conftest.err >&5
29582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29583 (exit $ac_status); } >/dev/null && {
29584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29585 test ! -s conftest.err
29587 ac_header_preproc=yes
29589 echo "$as_me: failed program was
:" >&5
29590 sed 's/^/| /' conftest.$ac_ext >&5
29592 ac_header_preproc=no
29595 rm -f conftest.err conftest.$ac_ext
29596 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29597 echo "${ECHO_T}$ac_header_preproc" >&6; }
29599 # So? What about this header?
29600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29602 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29603 echo "$as_me: WARNING
: sqlite.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29604 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: proceeding with the compiler
's result" >&5
29605 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result
" >&2;}
29606 ac_header_preproc=yes
29609 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: present but cannot be compiled
" >&5
29610 echo "$as_me: WARNING
: sqlite.h
: present but cannot be compiled
" >&2;}
29611 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: check
for missing prerequisite headers?
" >&5
29612 echo "$as_me: WARNING
: sqlite.h
: check
for missing prerequisite headers?
" >&2;}
29613 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: see the Autoconf documentation
" >&5
29614 echo "$as_me: WARNING
: sqlite.h
: see the Autoconf documentation
" >&2;}
29615 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29616 echo "$as_me: WARNING
: sqlite.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29617 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: proceeding with the preprocessor
's result" >&5
29618 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result
" >&2;}
29619 { echo "$as_me:$LINENO: WARNING
: sqlite.h
: in the future
, the compiler will take precedence
" >&5
29620 echo "$as_me: WARNING
: sqlite.h
: in the future
, the compiler will take precedence
" >&2;}
29622 ## ------------------------------- ##
29623 ## Report this to www.asterisk.org ##
29624 ## ------------------------------- ##
29626 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29629 { echo "$as_me:$LINENO: checking
for sqlite.h
" >&5
29630 echo $ECHO_N "checking
for sqlite.h...
$ECHO_C" >&6; }
29631 if test "${ac_cv_header_sqlite_h+set}" = set; then
29632 echo $ECHO_N "(cached
) $ECHO_C" >&6
29634 ac_cv_header_sqlite_h=$ac_header_preproc
29636 { echo "$as_me:$LINENO: result
: $ac_cv_header_sqlite_h" >&5
29637 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
29640 if test $ac_cv_header_sqlite_h = yes; then
29641 SQLITE_HEADER_FOUND=1
29643 SQLITE_HEADER_FOUND=0
29649 if test "x
${SQLITE_HEADER_FOUND}" = "x0
" ; then
29650 if test -n "${SQLITE_MANDATORY}" ;
29652 { echo "$as_me:$LINENO: ***" >&5
29653 echo "$as_me: ***" >&6;}
29654 { echo "$as_me:$LINENO: *** It appears that you
do not have the sqlite development package installed.
" >&5
29655 echo "$as_me: *** It appears that you
do not have the sqlite development package installed.
" >&6;}
29656 { echo "$as_me:$LINENO: *** Please
install it to include
${SQLITE_DESCRIP} support
, or re-run configure
" >&5
29657 echo "$as_me: *** Please
install it to include
${SQLITE_DESCRIP} support
, or re-run configure
" >&6;}
29658 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SQLITE_OPTION}" >&5
29659 echo "$as_me: *** without explicitly specifying
--with-${SQLITE_OPTION}" >&6;}
29668 cat >>confdefs.h <<_ACEOF
29669 #define HAVE_SQLITE 1
29673 elif test -n "${SQLITE_MANDATORY}";
29675 { echo "$as_me:$LINENO: ***" >&5
29676 echo "$as_me: ***" >&6;}
29677 { echo "$as_me:$LINENO: *** The
${SQLITE_DESCRIP} installation on this system appears to be broken.
" >&5
29678 echo "$as_me: *** The
${SQLITE_DESCRIP} installation on this system appears to be broken.
" >&6;}
29679 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
29680 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
29681 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SQLITE_OPTION}" >&5
29682 echo "$as_me: *** without explicitly specifying
--with-${SQLITE_OPTION}" >&6;}
29689 if test "${USE_OPENSSL}" != "no
"; then
29691 if test "x
${OPENSSL_DIR}" != "x
"; then
29692 if test -d ${OPENSSL_DIR}/lib; then
29693 pbxlibdir="-L${OPENSSL_DIR}/lib
"
29695 pbxlibdir="-L${OPENSSL_DIR}"
29698 { echo "$as_me:$LINENO: checking
for ssl2_connect
in -lssl" >&5
29699 echo $ECHO_N "checking
for ssl2_connect
in -lssl...
$ECHO_C" >&6; }
29700 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
29701 echo $ECHO_N "(cached
) $ECHO_C" >&6
29703 ac_check_lib_save_LIBS=$LIBS
29704 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
29705 cat >conftest.$ac_ext <<_ACEOF
29708 cat confdefs.h >>conftest.$ac_ext
29709 cat >>conftest.$ac_ext <<_ACEOF
29710 /* end confdefs.h. */
29712 /* Override any GCC internal prototype to avoid an error.
29713 Use char because int might match the return type of a GCC
29714 builtin and then its argument prototype would still apply. */
29718 char ssl2_connect ();
29722 return ssl2_connect ();
29727 rm -f conftest.$ac_objext conftest$ac_exeext
29728 if { (ac_try="$ac_link"
29729 case "(($ac_try" in
29730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29731 *) ac_try_echo=$ac_try;;
29733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29734 (eval "$ac_link") 2>conftest.er1
29736 grep -v '^ *+' conftest.er1 >conftest.err
29738 cat conftest.err >&5
29739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29740 (exit $ac_status); } && {
29741 test -z "$ac_c_werror_flag" ||
29742 test ! -s conftest.err
29743 } && test -s conftest$ac_exeext &&
29744 $as_test_x conftest$ac_exeext; then
29745 ac_cv_lib_ssl_ssl2_connect=yes
29747 echo "$as_me: failed program was
:" >&5
29748 sed 's/^/| /' conftest.$ac_ext >&5
29750 ac_cv_lib_ssl_ssl2_connect=no
29753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29754 conftest$ac_exeext conftest.$ac_ext
29755 LIBS=$ac_check_lib_save_LIBS
29757 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ssl_ssl2_connect" >&5
29758 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
29759 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
29760 AST_OPENSSL_FOUND=yes
29762 AST_OPENSSL_FOUND=no
29766 if test "${AST_OPENSSL_FOUND}" = "yes"; then
29767 OPENSSL_LIB="-lssl -lcrypto"
29768 OPENSSL_HEADER_FOUND="1"
29769 if test "x
${OPENSSL_DIR}" != "x
"; then
29770 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
29771 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include
"
29772 saved_cppflags="${CPPFLAGS}"
29773 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include
"
29774 if test "xopenssl
/ssl.h
" != "x
" ; then
29775 as_ac_Header=`echo "ac_cv_header_
${OPENSSL_DIR}/include
/openssl
/ssl.h
" | $as_tr_sh`
29776 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29777 { echo "$as_me:$LINENO: checking
for ${OPENSSL_DIR}/include
/openssl
/ssl.h
" >&5
29778 echo $ECHO_N "checking
for ${OPENSSL_DIR}/include
/openssl
/ssl.h...
$ECHO_C" >&6; }
29779 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29780 echo $ECHO_N "(cached
) $ECHO_C" >&6
29782 ac_res=`eval echo '${'$as_ac_Header'}'`
29783 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29784 echo "${ECHO_T}$ac_res" >&6; }
29786 # Is the header compilable?
29787 { echo "$as_me:$LINENO: checking
${OPENSSL_DIR}/include
/openssl
/ssl.h usability
" >&5
29788 echo $ECHO_N "checking
${OPENSSL_DIR}/include
/openssl
/ssl.h usability...
$ECHO_C" >&6; }
29789 cat >conftest.$ac_ext <<_ACEOF
29792 cat confdefs.h >>conftest.$ac_ext
29793 cat >>conftest.$ac_ext <<_ACEOF
29794 /* end confdefs.h. */
29795 $ac_includes_default
29796 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
29798 rm -f conftest.$ac_objext
29799 if { (ac_try="$ac_compile"
29800 case "(($ac_try" in
29801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29802 *) ac_try_echo=$ac_try;;
29804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29805 (eval "$ac_compile") 2>conftest.er1
29807 grep -v '^ *+' conftest.er1 >conftest.err
29809 cat conftest.err >&5
29810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29811 (exit $ac_status); } && {
29812 test -z "$ac_c_werror_flag" ||
29813 test ! -s conftest.err
29814 } && test -s conftest.$ac_objext; then
29815 ac_header_compiler=yes
29817 echo "$as_me: failed program was
:" >&5
29818 sed 's/^/| /' conftest.$ac_ext >&5
29820 ac_header_compiler=no
29823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29824 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29825 echo "${ECHO_T}$ac_header_compiler" >&6; }
29827 # Is the header present?
29828 { echo "$as_me:$LINENO: checking
${OPENSSL_DIR}/include
/openssl
/ssl.h presence
" >&5
29829 echo $ECHO_N "checking
${OPENSSL_DIR}/include
/openssl
/ssl.h presence...
$ECHO_C" >&6; }
29830 cat >conftest.$ac_ext <<_ACEOF
29833 cat confdefs.h >>conftest.$ac_ext
29834 cat >>conftest.$ac_ext <<_ACEOF
29835 /* end confdefs.h. */
29836 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
29838 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29839 case "(($ac_try" in
29840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841 *) ac_try_echo=$ac_try;;
29843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29846 grep -v '^ *+' conftest.er1 >conftest.err
29848 cat conftest.err >&5
29849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29850 (exit $ac_status); } >/dev/null && {
29851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29852 test ! -s conftest.err
29854 ac_header_preproc=yes
29856 echo "$as_me: failed program was
:" >&5
29857 sed 's/^/| /' conftest.$ac_ext >&5
29859 ac_header_preproc=no
29862 rm -f conftest.err conftest.$ac_ext
29863 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
29864 echo "${ECHO_T}$ac_header_preproc" >&6; }
29866 # So? What about this header?
29867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29869 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
29870 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
29871 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: proceeding with the compiler
's result" >&5
29872 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result
" >&2;}
29873 ac_header_preproc=yes
29876 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: present but cannot be compiled
" >&5
29877 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: present but cannot be compiled
" >&2;}
29878 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: check
for missing prerequisite headers?
" >&5
29879 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: check
for missing prerequisite headers?
" >&2;}
29880 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: see the Autoconf documentation
" >&5
29881 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: see the Autoconf documentation
" >&2;}
29882 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: section
\"Present But Cannot Be Compiled
\"" >&5
29883 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
29884 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: proceeding with the preprocessor
's result" >&5
29885 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result
" >&2;}
29886 { echo "$as_me:$LINENO: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: in the future
, the compiler will take precedence
" >&5
29887 echo "$as_me: WARNING
: ${OPENSSL_DIR}/include
/openssl
/ssl.h
: in the future
, the compiler will take precedence
" >&2;}
29889 ## ------------------------------- ##
29890 ## Report this to www.asterisk.org ##
29891 ## ------------------------------- ##
29893 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
29896 { echo "$as_me:$LINENO: checking
for ${OPENSSL_DIR}/include
/openssl
/ssl.h
" >&5
29897 echo $ECHO_N "checking
for ${OPENSSL_DIR}/include
/openssl
/ssl.h...
$ECHO_C" >&6; }
29898 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
29899 echo $ECHO_N "(cached
) $ECHO_C" >&6
29901 eval "$as_ac_Header=\
$ac_header_preproc"
29903 ac_res=`eval echo '${'$as_ac_Header'}'`
29904 { echo "$as_me:$LINENO: result
: $ac_res" >&5
29905 echo "${ECHO_T}$ac_res" >&6; }
29908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29909 OPENSSL_HEADER_FOUND=1
29911 OPENSSL_HEADER_FOUND=0
29916 CPPFLAGS="${saved_cppflags}"
29918 if test "xopenssl
/ssl.h
" != "x
" ; then
29919 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
29920 { echo "$as_me:$LINENO: checking
for openssl
/ssl.h
" >&5
29921 echo $ECHO_N "checking
for openssl
/ssl.h...
$ECHO_C" >&6; }
29922 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
29923 echo $ECHO_N "(cached
) $ECHO_C" >&6
29925 { echo "$as_me:$LINENO: result
: $ac_cv_header_openssl_ssl_h" >&5
29926 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
29928 # Is the header compilable?
29929 { echo "$as_me:$LINENO: checking openssl
/ssl.h usability
" >&5
29930 echo $ECHO_N "checking openssl
/ssl.h usability...
$ECHO_C" >&6; }
29931 cat >conftest.$ac_ext <<_ACEOF
29934 cat confdefs.h >>conftest.$ac_ext
29935 cat >>conftest.$ac_ext <<_ACEOF
29936 /* end confdefs.h. */
29937 $ac_includes_default
29938 #include <openssl/ssl.h>
29940 rm -f conftest.$ac_objext
29941 if { (ac_try="$ac_compile"
29942 case "(($ac_try" in
29943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944 *) ac_try_echo=$ac_try;;
29946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29947 (eval "$ac_compile") 2>conftest.er1
29949 grep -v '^ *+' conftest.er1 >conftest.err
29951 cat conftest.err >&5
29952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29953 (exit $ac_status); } && {
29954 test -z "$ac_c_werror_flag" ||
29955 test ! -s conftest.err
29956 } && test -s conftest.$ac_objext; then
29957 ac_header_compiler=yes
29959 echo "$as_me: failed program was
:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29962 ac_header_compiler=no
29965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29966 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
29967 echo "${ECHO_T}$ac_header_compiler" >&6; }
29969 # Is the header present?
29970 { echo "$as_me:$LINENO: checking openssl
/ssl.h presence
" >&5
29971 echo $ECHO_N "checking openssl
/ssl.h presence...
$ECHO_C" >&6; }
29972 cat >conftest.$ac_ext <<_ACEOF
29975 cat confdefs.h >>conftest.$ac_ext
29976 cat >>conftest.$ac_ext <<_ACEOF
29977 /* end confdefs.h. */
29978 #include <openssl/ssl.h>
29980 if { (ac_try="$ac_cpp conftest.
$ac_ext"
29981 case "(($ac_try" in
29982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983 *) ac_try_echo=$ac_try;;
29985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
29986 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
29988 grep -v '^ *+' conftest.er1 >conftest.err
29990 cat conftest.err >&5
29991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29992 (exit $ac_status); } >/dev/null && {
29993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29994 test ! -s conftest.err
29996 ac_header_preproc=yes
29998 echo "$as_me: failed program was
:" >&5
29999 sed 's/^/| /' conftest.$ac_ext >&5
30001 ac_header_preproc=no
30004 rm -f conftest.err conftest.$ac_ext
30005 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
30006 echo "${ECHO_T}$ac_header_preproc" >&6; }
30008 # So? What about this header?
30009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30011 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
30012 echo "$as_me: WARNING
: openssl
/ssl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
30013 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: proceeding with the compiler
's result" >&5
30014 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result
" >&2;}
30015 ac_header_preproc=yes
30018 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: present but cannot be compiled
" >&5
30019 echo "$as_me: WARNING
: openssl
/ssl.h
: present but cannot be compiled
" >&2;}
30020 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: check
for missing prerequisite headers?
" >&5
30021 echo "$as_me: WARNING
: openssl
/ssl.h
: check
for missing prerequisite headers?
" >&2;}
30022 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: see the Autoconf documentation
" >&5
30023 echo "$as_me: WARNING
: openssl
/ssl.h
: see the Autoconf documentation
" >&2;}
30024 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: section
\"Present But Cannot Be Compiled
\"" >&5
30025 echo "$as_me: WARNING
: openssl
/ssl.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
30026 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: proceeding with the preprocessor
's result" >&5
30027 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result
" >&2;}
30028 { echo "$as_me:$LINENO: WARNING
: openssl
/ssl.h
: in the future
, the compiler will take precedence
" >&5
30029 echo "$as_me: WARNING
: openssl
/ssl.h
: in the future
, the compiler will take precedence
" >&2;}
30031 ## ------------------------------- ##
30032 ## Report this to www.asterisk.org ##
30033 ## ------------------------------- ##
30035 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
30038 { echo "$as_me:$LINENO: checking
for openssl
/ssl.h
" >&5
30039 echo $ECHO_N "checking
for openssl
/ssl.h...
$ECHO_C" >&6; }
30040 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30041 echo $ECHO_N "(cached
) $ECHO_C" >&6
30043 ac_cv_header_openssl_ssl_h=$ac_header_preproc
30045 { echo "$as_me:$LINENO: result
: $ac_cv_header_openssl_ssl_h" >&5
30046 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30049 if test $ac_cv_header_openssl_ssl_h = yes; then
30050 OPENSSL_HEADER_FOUND=1
30052 OPENSSL_HEADER_FOUND=0
30058 if test "x
${OPENSSL_HEADER_FOUND}" = "x0
" ; then
30059 if test -n "${OPENSSL_MANDATORY}" ;
30061 { echo "$as_me:$LINENO: ***" >&5
30062 echo "$as_me: ***" >&6;}
30063 { echo "$as_me:$LINENO: *** It appears that you
do not have the ssl development package installed.
" >&5
30064 echo "$as_me: *** It appears that you
do not have the ssl development package installed.
" >&6;}
30065 { echo "$as_me:$LINENO: *** Please
install it to include
${OPENSSL_DESCRIP} support
, or re-run configure
" >&5
30066 echo "$as_me: *** Please
install it to include
${OPENSSL_DESCRIP} support
, or re-run configure
" >&6;}
30067 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OPENSSL_OPTION}" >&5
30068 echo "$as_me: *** without explicitly specifying
--with-${OPENSSL_OPTION}" >&6;}
30077 cat >>confdefs.h <<_ACEOF
30078 #define HAVE_OPENSSL 1
30082 elif test -n "${OPENSSL_MANDATORY}";
30084 { echo "$as_me:$LINENO: ***" >&5
30085 echo "$as_me: ***" >&6;}
30086 { echo "$as_me:$LINENO: *** The
${OPENSSL_DESCRIP} installation on this system appears to be broken.
" >&5
30087 echo "$as_me: *** The
${OPENSSL_DESCRIP} installation on this system appears to be broken.
" >&6;}
30088 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
30089 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
30090 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OPENSSL_OPTION}" >&5
30091 echo "$as_me: *** without explicitly specifying
--with-${OPENSSL_OPTION}" >&6;}
30096 if test "$PBX_OPENSSL" = "1";
30099 if test "${USE_OSPTK}" != "no
"; then
30101 if test "x
${OSPTK_DIR}" != "x
"; then
30102 if test -d ${OSPTK_DIR}/lib; then
30103 pbxlibdir="-L${OSPTK_DIR}/lib
"
30105 pbxlibdir="-L${OSPTK_DIR}"
30108 { echo "$as_me:$LINENO: checking
for OSPPCryptoDecrypt
in -losptk" >&5
30109 echo $ECHO_N "checking
for OSPPCryptoDecrypt
in -losptk...
$ECHO_C" >&6; }
30110 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
30111 echo $ECHO_N "(cached
) $ECHO_C" >&6
30113 ac_check_lib_save_LIBS=$LIBS
30114 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
30115 cat >conftest.$ac_ext <<_ACEOF
30118 cat confdefs.h >>conftest.$ac_ext
30119 cat >>conftest.$ac_ext <<_ACEOF
30120 /* end confdefs.h. */
30122 /* Override any GCC internal prototype to avoid an error.
30123 Use char because int might match the return type of a GCC
30124 builtin and then its argument prototype would still apply. */
30128 char OSPPCryptoDecrypt ();
30132 return OSPPCryptoDecrypt ();
30137 rm -f conftest.$ac_objext conftest$ac_exeext
30138 if { (ac_try="$ac_link"
30139 case "(($ac_try" in
30140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30141 *) ac_try_echo=$ac_try;;
30143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30144 (eval "$ac_link") 2>conftest.er1
30146 grep -v '^ *+' conftest.er1 >conftest.err
30148 cat conftest.err >&5
30149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30150 (exit $ac_status); } && {
30151 test -z "$ac_c_werror_flag" ||
30152 test ! -s conftest.err
30153 } && test -s conftest$ac_exeext &&
30154 $as_test_x conftest$ac_exeext; then
30155 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
30157 echo "$as_me: failed program was
:" >&5
30158 sed 's/^/| /' conftest.$ac_ext >&5
30160 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
30163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30164 conftest$ac_exeext conftest.$ac_ext
30165 LIBS=$ac_check_lib_save_LIBS
30167 { echo "$as_me:$LINENO: result
: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
30168 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
30169 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
30170 AST_OSPTK_FOUND=yes
30176 if test "${AST_OSPTK_FOUND}" = "yes"; then
30177 OSPTK_LIB="-losptk -lcrypto -lssl"
30178 OSPTK_HEADER_FOUND="1"
30179 if test "x
${OSPTK_DIR}" != "x
"; then
30180 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
30181 OSPTK_INCLUDE="-I${OSPTK_DIR}/include
"
30182 saved_cppflags="${CPPFLAGS}"
30183 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include
"
30184 if test "xosp
/osp.h
" != "x
" ; then
30185 as_ac_Header=`echo "ac_cv_header_
${OSPTK_DIR}/include
/osp
/osp.h
" | $as_tr_sh`
30186 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
30187 { echo "$as_me:$LINENO: checking
for ${OSPTK_DIR}/include
/osp
/osp.h
" >&5
30188 echo $ECHO_N "checking
for ${OSPTK_DIR}/include
/osp
/osp.h...
$ECHO_C" >&6; }
30189 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
30190 echo $ECHO_N "(cached
) $ECHO_C" >&6
30192 ac_res=`eval echo '${'$as_ac_Header'}'`
30193 { echo "$as_me:$LINENO: result
: $ac_res" >&5
30194 echo "${ECHO_T}$ac_res" >&6; }
30196 # Is the header compilable?
30197 { echo "$as_me:$LINENO: checking
${OSPTK_DIR}/include
/osp
/osp.h usability
" >&5
30198 echo $ECHO_N "checking
${OSPTK_DIR}/include
/osp
/osp.h usability...
$ECHO_C" >&6; }
30199 cat >conftest.$ac_ext <<_ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h. */
30205 $ac_includes_default
30206 #include <${OSPTK_DIR}/include/osp/osp.h>
30208 rm -f conftest.$ac_objext
30209 if { (ac_try="$ac_compile"
30210 case "(($ac_try" in
30211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30212 *) ac_try_echo=$ac_try;;
30214 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30215 (eval "$ac_compile") 2>conftest.er1
30217 grep -v '^ *+' conftest.er1 >conftest.err
30219 cat conftest.err >&5
30220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30221 (exit $ac_status); } && {
30222 test -z "$ac_c_werror_flag" ||
30223 test ! -s conftest.err
30224 } && test -s conftest.$ac_objext; then
30225 ac_header_compiler=yes
30227 echo "$as_me: failed program was
:" >&5
30228 sed 's/^/| /' conftest.$ac_ext >&5
30230 ac_header_compiler=no
30233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30234 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
30235 echo "${ECHO_T}$ac_header_compiler" >&6; }
30237 # Is the header present?
30238 { echo "$as_me:$LINENO: checking
${OSPTK_DIR}/include
/osp
/osp.h presence
" >&5
30239 echo $ECHO_N "checking
${OSPTK_DIR}/include
/osp
/osp.h presence...
$ECHO_C" >&6; }
30240 cat >conftest.$ac_ext <<_ACEOF
30243 cat confdefs.h >>conftest.$ac_ext
30244 cat >>conftest.$ac_ext <<_ACEOF
30245 /* end confdefs.h. */
30246 #include <${OSPTK_DIR}/include/osp/osp.h>
30248 if { (ac_try="$ac_cpp conftest.
$ac_ext"
30249 case "(($ac_try" in
30250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30251 *) ac_try_echo=$ac_try;;
30253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30254 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
30256 grep -v '^ *+' conftest.er1 >conftest.err
30258 cat conftest.err >&5
30259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30260 (exit $ac_status); } >/dev/null && {
30261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30262 test ! -s conftest.err
30264 ac_header_preproc=yes
30266 echo "$as_me: failed program was
:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30269 ac_header_preproc=no
30272 rm -f conftest.err conftest.$ac_ext
30273 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
30274 echo "${ECHO_T}$ac_header_preproc" >&6; }
30276 # So? What about this header?
30277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30279 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
30280 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
30281 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: proceeding with the compiler
's result" >&5
30282 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result
" >&2;}
30283 ac_header_preproc=yes
30286 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: present but cannot be compiled
" >&5
30287 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: present but cannot be compiled
" >&2;}
30288 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: check
for missing prerequisite headers?
" >&5
30289 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: check
for missing prerequisite headers?
" >&2;}
30290 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: see the Autoconf documentation
" >&5
30291 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: see the Autoconf documentation
" >&2;}
30292 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: section
\"Present But Cannot Be Compiled
\"" >&5
30293 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
30294 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: proceeding with the preprocessor
's result" >&5
30295 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result
" >&2;}
30296 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: in the future
, the compiler will take precedence
" >&5
30297 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: in the future
, the compiler will take precedence
" >&2;}
30299 ## ------------------------------- ##
30300 ## Report this to www.asterisk.org ##
30301 ## ------------------------------- ##
30303 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
30306 { echo "$as_me:$LINENO: checking
for ${OSPTK_DIR}/include
/osp
/osp.h
" >&5
30307 echo $ECHO_N "checking
for ${OSPTK_DIR}/include
/osp
/osp.h...
$ECHO_C" >&6; }
30308 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
30309 echo $ECHO_N "(cached
) $ECHO_C" >&6
30311 eval "$as_ac_Header=\
$ac_header_preproc"
30313 ac_res=`eval echo '${'$as_ac_Header'}'`
30314 { echo "$as_me:$LINENO: result
: $ac_res" >&5
30315 echo "${ECHO_T}$ac_res" >&6; }
30318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30319 OSPTK_HEADER_FOUND=1
30321 OSPTK_HEADER_FOUND=0
30326 CPPFLAGS="${saved_cppflags}"
30328 if test "xosp
/osp.h
" != "x
" ; then
30329 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30330 { echo "$as_me:$LINENO: checking
for osp
/osp.h
" >&5
30331 echo $ECHO_N "checking
for osp
/osp.h...
$ECHO_C" >&6; }
30332 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30333 echo $ECHO_N "(cached
) $ECHO_C" >&6
30335 { echo "$as_me:$LINENO: result
: $ac_cv_header_osp_osp_h" >&5
30336 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
30338 # Is the header compilable?
30339 { echo "$as_me:$LINENO: checking osp
/osp.h usability
" >&5
30340 echo $ECHO_N "checking osp
/osp.h usability...
$ECHO_C" >&6; }
30341 cat >conftest.$ac_ext <<_ACEOF
30344 cat confdefs.h >>conftest.$ac_ext
30345 cat >>conftest.$ac_ext <<_ACEOF
30346 /* end confdefs.h. */
30347 $ac_includes_default
30348 #include <osp/osp.h>
30350 rm -f conftest.$ac_objext
30351 if { (ac_try="$ac_compile"
30352 case "(($ac_try" in
30353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354 *) ac_try_echo=$ac_try;;
30356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30357 (eval "$ac_compile") 2>conftest.er1
30359 grep -v '^ *+' conftest.er1 >conftest.err
30361 cat conftest.err >&5
30362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30363 (exit $ac_status); } && {
30364 test -z "$ac_c_werror_flag" ||
30365 test ! -s conftest.err
30366 } && test -s conftest.$ac_objext; then
30367 ac_header_compiler=yes
30369 echo "$as_me: failed program was
:" >&5
30370 sed 's/^/| /' conftest.$ac_ext >&5
30372 ac_header_compiler=no
30375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30376 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
30377 echo "${ECHO_T}$ac_header_compiler" >&6; }
30379 # Is the header present?
30380 { echo "$as_me:$LINENO: checking osp
/osp.h presence
" >&5
30381 echo $ECHO_N "checking osp
/osp.h presence...
$ECHO_C" >&6; }
30382 cat >conftest.$ac_ext <<_ACEOF
30385 cat confdefs.h >>conftest.$ac_ext
30386 cat >>conftest.$ac_ext <<_ACEOF
30387 /* end confdefs.h. */
30388 #include <osp/osp.h>
30390 if { (ac_try="$ac_cpp conftest.
$ac_ext"
30391 case "(($ac_try" in
30392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30393 *) ac_try_echo=$ac_try;;
30395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30396 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
30398 grep -v '^ *+' conftest.er1 >conftest.err
30400 cat conftest.err >&5
30401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30402 (exit $ac_status); } >/dev/null && {
30403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30404 test ! -s conftest.err
30406 ac_header_preproc=yes
30408 echo "$as_me: failed program was
:" >&5
30409 sed 's/^/| /' conftest.$ac_ext >&5
30411 ac_header_preproc=no
30414 rm -f conftest.err conftest.$ac_ext
30415 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
30416 echo "${ECHO_T}$ac_header_preproc" >&6; }
30418 # So? What about this header?
30419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30421 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
30422 echo "$as_me: WARNING
: osp
/osp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
30423 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: proceeding with the compiler
's result" >&5
30424 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result
" >&2;}
30425 ac_header_preproc=yes
30428 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: present but cannot be compiled
" >&5
30429 echo "$as_me: WARNING
: osp
/osp.h
: present but cannot be compiled
" >&2;}
30430 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: check
for missing prerequisite headers?
" >&5
30431 echo "$as_me: WARNING
: osp
/osp.h
: check
for missing prerequisite headers?
" >&2;}
30432 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: see the Autoconf documentation
" >&5
30433 echo "$as_me: WARNING
: osp
/osp.h
: see the Autoconf documentation
" >&2;}
30434 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: section
\"Present But Cannot Be Compiled
\"" >&5
30435 echo "$as_me: WARNING
: osp
/osp.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
30436 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: proceeding with the preprocessor
's result" >&5
30437 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result
" >&2;}
30438 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: in the future
, the compiler will take precedence
" >&5
30439 echo "$as_me: WARNING
: osp
/osp.h
: in the future
, the compiler will take precedence
" >&2;}
30441 ## ------------------------------- ##
30442 ## Report this to www.asterisk.org ##
30443 ## ------------------------------- ##
30445 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
30448 { echo "$as_me:$LINENO: checking
for osp
/osp.h
" >&5
30449 echo $ECHO_N "checking
for osp
/osp.h...
$ECHO_C" >&6; }
30450 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30451 echo $ECHO_N "(cached
) $ECHO_C" >&6
30453 ac_cv_header_osp_osp_h=$ac_header_preproc
30455 { echo "$as_me:$LINENO: result
: $ac_cv_header_osp_osp_h" >&5
30456 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
30459 if test $ac_cv_header_osp_osp_h = yes; then
30460 OSPTK_HEADER_FOUND=1
30462 OSPTK_HEADER_FOUND=0
30468 if test "x
${OSPTK_HEADER_FOUND}" = "x0
" ; then
30469 if test -n "${OSPTK_MANDATORY}" ;
30471 { echo "$as_me:$LINENO: ***" >&5
30472 echo "$as_me: ***" >&6;}
30473 { echo "$as_me:$LINENO: *** It appears that you
do not have the osptk development package installed.
" >&5
30474 echo "$as_me: *** It appears that you
do not have the osptk development package installed.
" >&6;}
30475 { echo "$as_me:$LINENO: *** Please
install it to include
${OSPTK_DESCRIP} support
, or re-run configure
" >&5
30476 echo "$as_me: *** Please
install it to include
${OSPTK_DESCRIP} support
, or re-run configure
" >&6;}
30477 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OSPTK_OPTION}" >&5
30478 echo "$as_me: *** without explicitly specifying
--with-${OSPTK_OPTION}" >&6;}
30487 cat >>confdefs.h <<_ACEOF
30488 #define HAVE_OSPTK 1
30492 elif test -n "${OSPTK_MANDATORY}";
30494 { echo "$as_me:$LINENO: ***" >&5
30495 echo "$as_me: ***" >&6;}
30496 { echo "$as_me:$LINENO: *** The
${OSPTK_DESCRIP} installation on this system appears to be broken.
" >&5
30497 echo "$as_me: *** The
${OSPTK_DESCRIP} installation on this system appears to be broken.
" >&6;}
30498 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
30499 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
30500 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OSPTK_OPTION}" >&5
30501 echo "$as_me: *** without explicitly specifying
--with-${OSPTK_OPTION}" >&6;}
30509 if test "${USE_FREETDS}" != "no
"; then
30511 if test "x
${FREETDS_DIR}" != "x
"; then
30512 if test -d ${FREETDS_DIR}/lib; then
30513 pbxlibdir="-L${FREETDS_DIR}/lib
"
30515 pbxlibdir="-L${FREETDS_DIR}"
30518 { echo "$as_me:$LINENO: checking
for tds_version
in -ltds" >&5
30519 echo $ECHO_N "checking
for tds_version
in -ltds...
$ECHO_C" >&6; }
30520 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
30521 echo $ECHO_N "(cached
) $ECHO_C" >&6
30523 ac_check_lib_save_LIBS=$LIBS
30524 LIBS="-ltds ${pbxlibdir} $LIBS"
30525 cat >conftest.$ac_ext <<_ACEOF
30528 cat confdefs.h >>conftest.$ac_ext
30529 cat >>conftest.$ac_ext <<_ACEOF
30530 /* end confdefs.h. */
30532 /* Override any GCC internal prototype to avoid an error.
30533 Use char because int might match the return type of a GCC
30534 builtin and then its argument prototype would still apply. */
30538 char tds_version ();
30542 return tds_version ();
30547 rm -f conftest.$ac_objext conftest$ac_exeext
30548 if { (ac_try="$ac_link"
30549 case "(($ac_try" in
30550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30551 *) ac_try_echo=$ac_try;;
30553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30554 (eval "$ac_link") 2>conftest.er1
30556 grep -v '^ *+' conftest.er1 >conftest.err
30558 cat conftest.err >&5
30559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30560 (exit $ac_status); } && {
30561 test -z "$ac_c_werror_flag" ||
30562 test ! -s conftest.err
30563 } && test -s conftest$ac_exeext &&
30564 $as_test_x conftest$ac_exeext; then
30565 ac_cv_lib_tds_tds_version=yes
30567 echo "$as_me: failed program was
:" >&5
30568 sed 's/^/| /' conftest.$ac_ext >&5
30570 ac_cv_lib_tds_tds_version=no
30573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30574 conftest$ac_exeext conftest.$ac_ext
30575 LIBS=$ac_check_lib_save_LIBS
30577 { echo "$as_me:$LINENO: result
: $ac_cv_lib_tds_tds_version" >&5
30578 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
30579 if test $ac_cv_lib_tds_tds_version = yes; then
30580 AST_FREETDS_FOUND=yes
30582 AST_FREETDS_FOUND=no
30586 if test "${AST_FREETDS_FOUND}" = "yes"; then
30587 FREETDS_LIB="-ltds "
30588 FREETDS_HEADER_FOUND="1"
30589 if test "x
${FREETDS_DIR}" != "x
"; then
30590 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
30591 FREETDS_INCLUDE="-I${FREETDS_DIR}/include
"
30592 saved_cppflags="${CPPFLAGS}"
30593 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include
"
30594 if test "xtds.h
" != "x
" ; then
30595 as_ac_Header=`echo "ac_cv_header_
${FREETDS_DIR}/include
/tds.h
" | $as_tr_sh`
30596 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
30597 { echo "$as_me:$LINENO: checking
for ${FREETDS_DIR}/include
/tds.h
" >&5
30598 echo $ECHO_N "checking
for ${FREETDS_DIR}/include
/tds.h...
$ECHO_C" >&6; }
30599 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
30600 echo $ECHO_N "(cached
) $ECHO_C" >&6
30602 ac_res=`eval echo '${'$as_ac_Header'}'`
30603 { echo "$as_me:$LINENO: result
: $ac_res" >&5
30604 echo "${ECHO_T}$ac_res" >&6; }
30606 # Is the header compilable?
30607 { echo "$as_me:$LINENO: checking
${FREETDS_DIR}/include
/tds.h usability
" >&5
30608 echo $ECHO_N "checking
${FREETDS_DIR}/include
/tds.h usability...
$ECHO_C" >&6; }
30609 cat >conftest.$ac_ext <<_ACEOF
30612 cat confdefs.h >>conftest.$ac_ext
30613 cat >>conftest.$ac_ext <<_ACEOF
30614 /* end confdefs.h. */
30615 $ac_includes_default
30616 #include <${FREETDS_DIR}/include/tds.h>
30618 rm -f conftest.$ac_objext
30619 if { (ac_try="$ac_compile"
30620 case "(($ac_try" in
30621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30622 *) ac_try_echo=$ac_try;;
30624 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30625 (eval "$ac_compile") 2>conftest.er1
30627 grep -v '^ *+' conftest.er1 >conftest.err
30629 cat conftest.err >&5
30630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30631 (exit $ac_status); } && {
30632 test -z "$ac_c_werror_flag" ||
30633 test ! -s conftest.err
30634 } && test -s conftest.$ac_objext; then
30635 ac_header_compiler=yes
30637 echo "$as_me: failed program was
:" >&5
30638 sed 's/^/| /' conftest.$ac_ext >&5
30640 ac_header_compiler=no
30643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30644 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
30645 echo "${ECHO_T}$ac_header_compiler" >&6; }
30647 # Is the header present?
30648 { echo "$as_me:$LINENO: checking
${FREETDS_DIR}/include
/tds.h presence
" >&5
30649 echo $ECHO_N "checking
${FREETDS_DIR}/include
/tds.h presence...
$ECHO_C" >&6; }
30650 cat >conftest.$ac_ext <<_ACEOF
30653 cat confdefs.h >>conftest.$ac_ext
30654 cat >>conftest.$ac_ext <<_ACEOF
30655 /* end confdefs.h. */
30656 #include <${FREETDS_DIR}/include/tds.h>
30658 if { (ac_try="$ac_cpp conftest.
$ac_ext"
30659 case "(($ac_try" in
30660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30661 *) ac_try_echo=$ac_try;;
30663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30664 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
30666 grep -v '^ *+' conftest.er1 >conftest.err
30668 cat conftest.err >&5
30669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30670 (exit $ac_status); } >/dev/null && {
30671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30672 test ! -s conftest.err
30674 ac_header_preproc=yes
30676 echo "$as_me: failed program was
:" >&5
30677 sed 's/^/| /' conftest.$ac_ext >&5
30679 ac_header_preproc=no
30682 rm -f conftest.err conftest.$ac_ext
30683 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
30684 echo "${ECHO_T}$ac_header_preproc" >&6; }
30686 # So? What about this header?
30687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30689 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
30690 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
30691 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: proceeding with the compiler
's result" >&5
30692 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result
" >&2;}
30693 ac_header_preproc=yes
30696 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: present but cannot be compiled
" >&5
30697 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: present but cannot be compiled
" >&2;}
30698 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: check
for missing prerequisite headers?
" >&5
30699 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: check
for missing prerequisite headers?
" >&2;}
30700 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: see the Autoconf documentation
" >&5
30701 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: see the Autoconf documentation
" >&2;}
30702 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: section
\"Present But Cannot Be Compiled
\"" >&5
30703 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
30704 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: proceeding with the preprocessor
's result" >&5
30705 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result
" >&2;}
30706 { echo "$as_me:$LINENO: WARNING
: ${FREETDS_DIR}/include
/tds.h
: in the future
, the compiler will take precedence
" >&5
30707 echo "$as_me: WARNING
: ${FREETDS_DIR}/include
/tds.h
: in the future
, the compiler will take precedence
" >&2;}
30709 ## ------------------------------- ##
30710 ## Report this to www.asterisk.org ##
30711 ## ------------------------------- ##
30713 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
30716 { echo "$as_me:$LINENO: checking
for ${FREETDS_DIR}/include
/tds.h
" >&5
30717 echo $ECHO_N "checking
for ${FREETDS_DIR}/include
/tds.h...
$ECHO_C" >&6; }
30718 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
30719 echo $ECHO_N "(cached
) $ECHO_C" >&6
30721 eval "$as_ac_Header=\
$ac_header_preproc"
30723 ac_res=`eval echo '${'$as_ac_Header'}'`
30724 { echo "$as_me:$LINENO: result
: $ac_res" >&5
30725 echo "${ECHO_T}$ac_res" >&6; }
30728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30729 FREETDS_HEADER_FOUND=1
30731 FREETDS_HEADER_FOUND=0
30736 CPPFLAGS="${saved_cppflags}"
30738 if test "xtds.h
" != "x
" ; then
30739 if test "${ac_cv_header_tds_h+set}" = set; then
30740 { echo "$as_me:$LINENO: checking
for tds.h
" >&5
30741 echo $ECHO_N "checking
for tds.h...
$ECHO_C" >&6; }
30742 if test "${ac_cv_header_tds_h+set}" = set; then
30743 echo $ECHO_N "(cached
) $ECHO_C" >&6
30745 { echo "$as_me:$LINENO: result
: $ac_cv_header_tds_h" >&5
30746 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
30748 # Is the header compilable?
30749 { echo "$as_me:$LINENO: checking tds.h usability
" >&5
30750 echo $ECHO_N "checking tds.h usability...
$ECHO_C" >&6; }
30751 cat >conftest.$ac_ext <<_ACEOF
30754 cat confdefs.h >>conftest.$ac_ext
30755 cat >>conftest.$ac_ext <<_ACEOF
30756 /* end confdefs.h. */
30757 $ac_includes_default
30760 rm -f conftest.$ac_objext
30761 if { (ac_try="$ac_compile"
30762 case "(($ac_try" in
30763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764 *) ac_try_echo=$ac_try;;
30766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30767 (eval "$ac_compile") 2>conftest.er1
30769 grep -v '^ *+' conftest.er1 >conftest.err
30771 cat conftest.err >&5
30772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30773 (exit $ac_status); } && {
30774 test -z "$ac_c_werror_flag" ||
30775 test ! -s conftest.err
30776 } && test -s conftest.$ac_objext; then
30777 ac_header_compiler=yes
30779 echo "$as_me: failed program was
:" >&5
30780 sed 's/^/| /' conftest.$ac_ext >&5
30782 ac_header_compiler=no
30785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30786 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
30787 echo "${ECHO_T}$ac_header_compiler" >&6; }
30789 # Is the header present?
30790 { echo "$as_me:$LINENO: checking tds.h presence
" >&5
30791 echo $ECHO_N "checking tds.h presence...
$ECHO_C" >&6; }
30792 cat >conftest.$ac_ext <<_ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h. */
30800 if { (ac_try="$ac_cpp conftest.
$ac_ext"
30801 case "(($ac_try" in
30802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30803 *) ac_try_echo=$ac_try;;
30805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30806 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
30808 grep -v '^ *+' conftest.er1 >conftest.err
30810 cat conftest.err >&5
30811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30812 (exit $ac_status); } >/dev/null && {
30813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30814 test ! -s conftest.err
30816 ac_header_preproc=yes
30818 echo "$as_me: failed program was
:" >&5
30819 sed 's/^/| /' conftest.$ac_ext >&5
30821 ac_header_preproc=no
30824 rm -f conftest.err conftest.$ac_ext
30825 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
30826 echo "${ECHO_T}$ac_header_preproc" >&6; }
30828 # So? What about this header?
30829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30831 { echo "$as_me:$LINENO: WARNING
: tds.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
30832 echo "$as_me: WARNING
: tds.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
30833 { echo "$as_me:$LINENO: WARNING
: tds.h
: proceeding with the compiler
's result" >&5
30834 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result
" >&2;}
30835 ac_header_preproc=yes
30838 { echo "$as_me:$LINENO: WARNING
: tds.h
: present but cannot be compiled
" >&5
30839 echo "$as_me: WARNING
: tds.h
: present but cannot be compiled
" >&2;}
30840 { echo "$as_me:$LINENO: WARNING
: tds.h
: check
for missing prerequisite headers?
" >&5
30841 echo "$as_me: WARNING
: tds.h
: check
for missing prerequisite headers?
" >&2;}
30842 { echo "$as_me:$LINENO: WARNING
: tds.h
: see the Autoconf documentation
" >&5
30843 echo "$as_me: WARNING
: tds.h
: see the Autoconf documentation
" >&2;}
30844 { echo "$as_me:$LINENO: WARNING
: tds.h
: section
\"Present But Cannot Be Compiled
\"" >&5
30845 echo "$as_me: WARNING
: tds.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
30846 { echo "$as_me:$LINENO: WARNING
: tds.h
: proceeding with the preprocessor
's result" >&5
30847 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result
" >&2;}
30848 { echo "$as_me:$LINENO: WARNING
: tds.h
: in the future
, the compiler will take precedence
" >&5
30849 echo "$as_me: WARNING
: tds.h
: in the future
, the compiler will take precedence
" >&2;}
30851 ## ------------------------------- ##
30852 ## Report this to www.asterisk.org ##
30853 ## ------------------------------- ##
30855 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
30858 { echo "$as_me:$LINENO: checking
for tds.h
" >&5
30859 echo $ECHO_N "checking
for tds.h...
$ECHO_C" >&6; }
30860 if test "${ac_cv_header_tds_h+set}" = set; then
30861 echo $ECHO_N "(cached
) $ECHO_C" >&6
30863 ac_cv_header_tds_h=$ac_header_preproc
30865 { echo "$as_me:$LINENO: result
: $ac_cv_header_tds_h" >&5
30866 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
30869 if test $ac_cv_header_tds_h = yes; then
30870 FREETDS_HEADER_FOUND=1
30872 FREETDS_HEADER_FOUND=0
30878 if test "x
${FREETDS_HEADER_FOUND}" = "x0
" ; then
30879 if test -n "${FREETDS_MANDATORY}" ;
30881 { echo "$as_me:$LINENO: ***" >&5
30882 echo "$as_me: ***" >&6;}
30883 { echo "$as_me:$LINENO: *** It appears that you
do not have the tds development package installed.
" >&5
30884 echo "$as_me: *** It appears that you
do not have the tds development package installed.
" >&6;}
30885 { echo "$as_me:$LINENO: *** Please
install it to include
${FREETDS_DESCRIP} support
, or re-run configure
" >&5
30886 echo "$as_me: *** Please
install it to include
${FREETDS_DESCRIP} support
, or re-run configure
" >&6;}
30887 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${FREETDS_OPTION}" >&5
30888 echo "$as_me: *** without explicitly specifying
--with-${FREETDS_OPTION}" >&6;}
30897 cat >>confdefs.h <<_ACEOF
30898 #define HAVE_FREETDS 1
30902 elif test -n "${FREETDS_MANDATORY}";
30904 { echo "$as_me:$LINENO: ***" >&5
30905 echo "$as_me: ***" >&6;}
30906 { echo "$as_me:$LINENO: *** The
${FREETDS_DESCRIP} installation on this system appears to be broken.
" >&5
30907 echo "$as_me: *** The
${FREETDS_DESCRIP} installation on this system appears to be broken.
" >&6;}
30908 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
30909 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
30910 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${FREETDS_OPTION}" >&5
30911 echo "$as_me: *** without explicitly specifying
--with-${FREETDS_OPTION}" >&6;}
30916 if test "${PBX_FREETDS}" != "0";
30918 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
30920 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
30923 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
30926 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
30929 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
30935 if test "${USE_TERMCAP}" != "no
"; then
30937 if test "x
${TERMCAP_DIR}" != "x
"; then
30938 if test -d ${TERMCAP_DIR}/lib; then
30939 pbxlibdir="-L${TERMCAP_DIR}/lib
"
30941 pbxlibdir="-L${TERMCAP_DIR}"
30944 { echo "$as_me:$LINENO: checking
for tgetent
in -ltermcap" >&5
30945 echo $ECHO_N "checking
for tgetent
in -ltermcap...
$ECHO_C" >&6; }
30946 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30947 echo $ECHO_N "(cached
) $ECHO_C" >&6
30949 ac_check_lib_save_LIBS=$LIBS
30950 LIBS="-ltermcap ${pbxlibdir} $LIBS"
30951 cat >conftest.$ac_ext <<_ACEOF
30954 cat confdefs.h >>conftest.$ac_ext
30955 cat >>conftest.$ac_ext <<_ACEOF
30956 /* end confdefs.h. */
30958 /* Override any GCC internal prototype to avoid an error.
30959 Use char because int might match the return type of a GCC
30960 builtin and then its argument prototype would still apply. */
30973 rm -f conftest.$ac_objext conftest$ac_exeext
30974 if { (ac_try="$ac_link"
30975 case "(($ac_try" in
30976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30977 *) ac_try_echo=$ac_try;;
30979 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30980 (eval "$ac_link") 2>conftest.er1
30982 grep -v '^ *+' conftest.er1 >conftest.err
30984 cat conftest.err >&5
30985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30986 (exit $ac_status); } && {
30987 test -z "$ac_c_werror_flag" ||
30988 test ! -s conftest.err
30989 } && test -s conftest$ac_exeext &&
30990 $as_test_x conftest$ac_exeext; then
30991 ac_cv_lib_termcap_tgetent=yes
30993 echo "$as_me: failed program was
:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30996 ac_cv_lib_termcap_tgetent=no
30999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31000 conftest$ac_exeext conftest.$ac_ext
31001 LIBS=$ac_check_lib_save_LIBS
31003 { echo "$as_me:$LINENO: result
: $ac_cv_lib_termcap_tgetent" >&5
31004 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
31005 if test $ac_cv_lib_termcap_tgetent = yes; then
31006 AST_TERMCAP_FOUND=yes
31008 AST_TERMCAP_FOUND=no
31012 if test "${AST_TERMCAP_FOUND}" = "yes"; then
31013 TERMCAP_LIB="-ltermcap "
31014 TERMCAP_HEADER_FOUND="1"
31015 if test "x
${TERMCAP_DIR}" != "x
"; then
31016 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
31017 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include
"
31018 saved_cppflags="${CPPFLAGS}"
31019 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include
"
31020 if test "x
" != "x
" ; then
31021 as_ac_Header=`echo "ac_cv_header_
${TERMCAP_DIR}/include
/" | $as_tr_sh`
31022 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31023 { echo "$as_me:$LINENO: checking
for ${TERMCAP_DIR}/include
/" >&5
31024 echo $ECHO_N "checking
for ${TERMCAP_DIR}/include
/...
$ECHO_C" >&6; }
31025 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31026 echo $ECHO_N "(cached
) $ECHO_C" >&6
31028 ac_res=`eval echo '${'$as_ac_Header'}'`
31029 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31030 echo "${ECHO_T}$ac_res" >&6; }
31032 # Is the header compilable?
31033 { echo "$as_me:$LINENO: checking
${TERMCAP_DIR}/include
/ usability
" >&5
31034 echo $ECHO_N "checking
${TERMCAP_DIR}/include
/ usability...
$ECHO_C" >&6; }
31035 cat >conftest.$ac_ext <<_ACEOF
31038 cat confdefs.h >>conftest.$ac_ext
31039 cat >>conftest.$ac_ext <<_ACEOF
31040 /* end confdefs.h. */
31041 $ac_includes_default
31042 #include <${TERMCAP_DIR}/include/>
31044 rm -f conftest.$ac_objext
31045 if { (ac_try="$ac_compile"
31046 case "(($ac_try" in
31047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31048 *) ac_try_echo=$ac_try;;
31050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31051 (eval "$ac_compile") 2>conftest.er1
31053 grep -v '^ *+' conftest.er1 >conftest.err
31055 cat conftest.err >&5
31056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31057 (exit $ac_status); } && {
31058 test -z "$ac_c_werror_flag" ||
31059 test ! -s conftest.err
31060 } && test -s conftest.$ac_objext; then
31061 ac_header_compiler=yes
31063 echo "$as_me: failed program was
:" >&5
31064 sed 's/^/| /' conftest.$ac_ext >&5
31066 ac_header_compiler=no
31069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31070 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
31071 echo "${ECHO_T}$ac_header_compiler" >&6; }
31073 # Is the header present?
31074 { echo "$as_me:$LINENO: checking
${TERMCAP_DIR}/include
/ presence
" >&5
31075 echo $ECHO_N "checking
${TERMCAP_DIR}/include
/ presence...
$ECHO_C" >&6; }
31076 cat >conftest.$ac_ext <<_ACEOF
31079 cat confdefs.h >>conftest.$ac_ext
31080 cat >>conftest.$ac_ext <<_ACEOF
31081 /* end confdefs.h. */
31082 #include <${TERMCAP_DIR}/include/>
31084 if { (ac_try="$ac_cpp conftest.
$ac_ext"
31085 case "(($ac_try" in
31086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31087 *) ac_try_echo=$ac_try;;
31089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31090 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
31092 grep -v '^ *+' conftest.er1 >conftest.err
31094 cat conftest.err >&5
31095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31096 (exit $ac_status); } >/dev/null && {
31097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31098 test ! -s conftest.err
31100 ac_header_preproc=yes
31102 echo "$as_me: failed program was
:" >&5
31103 sed 's/^/| /' conftest.$ac_ext >&5
31105 ac_header_preproc=no
31108 rm -f conftest.err conftest.$ac_ext
31109 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
31110 echo "${ECHO_T}$ac_header_preproc" >&6; }
31112 # So? What about this header?
31113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31115 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&5
31116 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
31117 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: proceeding with the compiler
's result" >&5
31118 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result
" >&2;}
31119 ac_header_preproc=yes
31122 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: present but cannot be compiled
" >&5
31123 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: present but cannot be compiled
" >&2;}
31124 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: check
for missing prerequisite headers?
" >&5
31125 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: check
for missing prerequisite headers?
" >&2;}
31126 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: see the Autoconf documentation
" >&5
31127 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: see the Autoconf documentation
" >&2;}
31128 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&5
31129 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&2;}
31130 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: proceeding with the preprocessor
's result" >&5
31131 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result
" >&2;}
31132 { echo "$as_me:$LINENO: WARNING
: ${TERMCAP_DIR}/include
/: in the future
, the compiler will take precedence
" >&5
31133 echo "$as_me: WARNING
: ${TERMCAP_DIR}/include
/: in the future
, the compiler will take precedence
" >&2;}
31135 ## ------------------------------- ##
31136 ## Report this to www.asterisk.org ##
31137 ## ------------------------------- ##
31139 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
31142 { echo "$as_me:$LINENO: checking
for ${TERMCAP_DIR}/include
/" >&5
31143 echo $ECHO_N "checking
for ${TERMCAP_DIR}/include
/...
$ECHO_C" >&6; }
31144 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31145 echo $ECHO_N "(cached
) $ECHO_C" >&6
31147 eval "$as_ac_Header=\
$ac_header_preproc"
31149 ac_res=`eval echo '${'$as_ac_Header'}'`
31150 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31151 echo "${ECHO_T}$ac_res" >&6; }
31154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31155 TERMCAP_HEADER_FOUND=1
31157 TERMCAP_HEADER_FOUND=0
31162 CPPFLAGS="${saved_cppflags}"
31164 if test "x
" != "x
" ; then
31165 if test "${ac_cv_header_+set}" = set; then
31166 { echo "$as_me:$LINENO: checking
for " >&5
31167 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
31168 if test "${ac_cv_header_+set}" = set; then
31169 echo $ECHO_N "(cached
) $ECHO_C" >&6
31171 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
31172 echo "${ECHO_T}$ac_cv_header_" >&6; }
31174 # Is the header compilable?
31175 { echo "$as_me:$LINENO: checking usability
" >&5
31176 echo $ECHO_N "checking usability...
$ECHO_C" >&6; }
31177 cat >conftest.$ac_ext <<_ACEOF
31180 cat confdefs.h >>conftest.$ac_ext
31181 cat >>conftest.$ac_ext <<_ACEOF
31182 /* end confdefs.h. */
31183 $ac_includes_default
31186 rm -f conftest.$ac_objext
31187 if { (ac_try="$ac_compile"
31188 case "(($ac_try" in
31189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190 *) ac_try_echo=$ac_try;;
31192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31193 (eval "$ac_compile") 2>conftest.er1
31195 grep -v '^ *+' conftest.er1 >conftest.err
31197 cat conftest.err >&5
31198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31199 (exit $ac_status); } && {
31200 test -z "$ac_c_werror_flag" ||
31201 test ! -s conftest.err
31202 } && test -s conftest.$ac_objext; then
31203 ac_header_compiler=yes
31205 echo "$as_me: failed program was
:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31208 ac_header_compiler=no
31211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31212 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
31213 echo "${ECHO_T}$ac_header_compiler" >&6; }
31215 # Is the header present?
31216 { echo "$as_me:$LINENO: checking presence
" >&5
31217 echo $ECHO_N "checking presence...
$ECHO_C" >&6; }
31218 cat >conftest.$ac_ext <<_ACEOF
31221 cat confdefs.h >>conftest.$ac_ext
31222 cat >>conftest.$ac_ext <<_ACEOF
31223 /* end confdefs.h. */
31226 if { (ac_try="$ac_cpp conftest.
$ac_ext"
31227 case "(($ac_try" in
31228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31229 *) ac_try_echo=$ac_try;;
31231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31232 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
31234 grep -v '^ *+' conftest.er1 >conftest.err
31236 cat conftest.err >&5
31237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31238 (exit $ac_status); } >/dev/null && {
31239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31240 test ! -s conftest.err
31242 ac_header_preproc=yes
31244 echo "$as_me: failed program was
:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31247 ac_header_preproc=no
31250 rm -f conftest.err conftest.$ac_ext
31251 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
31252 echo "${ECHO_T}$ac_header_preproc" >&6; }
31254 # So? What about this header?
31255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31257 { echo "$as_me:$LINENO: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&5
31258 echo "$as_me: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&2;}
31259 { echo "$as_me:$LINENO: WARNING
: : proceeding with the compiler
's result" >&5
31260 echo "$as_me: WARNING: : proceeding with the compiler's result
" >&2;}
31261 ac_header_preproc=yes
31264 { echo "$as_me:$LINENO: WARNING
: : present but cannot be compiled
" >&5
31265 echo "$as_me: WARNING
: : present but cannot be compiled
" >&2;}
31266 { echo "$as_me:$LINENO: WARNING
: : check
for missing prerequisite headers?
" >&5
31267 echo "$as_me: WARNING
: : check
for missing prerequisite headers?
" >&2;}
31268 { echo "$as_me:$LINENO: WARNING
: : see the Autoconf documentation
" >&5
31269 echo "$as_me: WARNING
: : see the Autoconf documentation
" >&2;}
31270 { echo "$as_me:$LINENO: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&5
31271 echo "$as_me: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&2;}
31272 { echo "$as_me:$LINENO: WARNING
: : proceeding with the preprocessor
's result" >&5
31273 echo "$as_me: WARNING: : proceeding with the preprocessor's result
" >&2;}
31274 { echo "$as_me:$LINENO: WARNING
: : in the future
, the compiler will take precedence
" >&5
31275 echo "$as_me: WARNING
: : in the future
, the compiler will take precedence
" >&2;}
31277 ## ------------------------------- ##
31278 ## Report this to www.asterisk.org ##
31279 ## ------------------------------- ##
31281 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
31284 { echo "$as_me:$LINENO: checking
for " >&5
31285 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
31286 if test "${ac_cv_header_+set}" = set; then
31287 echo $ECHO_N "(cached
) $ECHO_C" >&6
31289 ac_cv_header_=$ac_header_preproc
31291 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
31292 echo "${ECHO_T}$ac_cv_header_" >&6; }
31295 if test $ac_cv_header_ = yes; then
31296 TERMCAP_HEADER_FOUND=1
31298 TERMCAP_HEADER_FOUND=0
31304 if test "x
${TERMCAP_HEADER_FOUND}" = "x0
" ; then
31305 if test -n "${TERMCAP_MANDATORY}" ;
31307 { echo "$as_me:$LINENO: ***" >&5
31308 echo "$as_me: ***" >&6;}
31309 { echo "$as_me:$LINENO: *** It appears that you
do not have the termcap development package installed.
" >&5
31310 echo "$as_me: *** It appears that you
do not have the termcap development package installed.
" >&6;}
31311 { echo "$as_me:$LINENO: *** Please
install it to include
${TERMCAP_DESCRIP} support
, or re-run configure
" >&5
31312 echo "$as_me: *** Please
install it to include
${TERMCAP_DESCRIP} support
, or re-run configure
" >&6;}
31313 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${TERMCAP_OPTION}" >&5
31314 echo "$as_me: *** without explicitly specifying
--with-${TERMCAP_OPTION}" >&6;}
31323 cat >>confdefs.h <<_ACEOF
31324 #define HAVE_TERMCAP 1
31328 elif test -n "${TERMCAP_MANDATORY}";
31330 { echo "$as_me:$LINENO: ***" >&5
31331 echo "$as_me: ***" >&6;}
31332 { echo "$as_me:$LINENO: *** The
${TERMCAP_DESCRIP} installation on this system appears to be broken.
" >&5
31333 echo "$as_me: *** The
${TERMCAP_DESCRIP} installation on this system appears to be broken.
" >&6;}
31334 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
31335 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
31336 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${TERMCAP_OPTION}" >&5
31337 echo "$as_me: *** without explicitly specifying
--with-${TERMCAP_OPTION}" >&6;}
31344 if test "${USE_TINFO}" != "no
"; then
31346 if test "x
${TINFO_DIR}" != "x
"; then
31347 if test -d ${TINFO_DIR}/lib; then
31348 pbxlibdir="-L${TINFO_DIR}/lib
"
31350 pbxlibdir="-L${TINFO_DIR}"
31353 { echo "$as_me:$LINENO: checking
for tgetent
in -ltinfo" >&5
31354 echo $ECHO_N "checking
for tgetent
in -ltinfo...
$ECHO_C" >&6; }
31355 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
31356 echo $ECHO_N "(cached
) $ECHO_C" >&6
31358 ac_check_lib_save_LIBS=$LIBS
31359 LIBS="-ltinfo ${pbxlibdir} $LIBS"
31360 cat >conftest.$ac_ext <<_ACEOF
31363 cat confdefs.h >>conftest.$ac_ext
31364 cat >>conftest.$ac_ext <<_ACEOF
31365 /* end confdefs.h. */
31367 /* Override any GCC internal prototype to avoid an error.
31368 Use char because int might match the return type of a GCC
31369 builtin and then its argument prototype would still apply. */
31382 rm -f conftest.$ac_objext conftest$ac_exeext
31383 if { (ac_try="$ac_link"
31384 case "(($ac_try" in
31385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31386 *) ac_try_echo=$ac_try;;
31388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31389 (eval "$ac_link") 2>conftest.er1
31391 grep -v '^ *+' conftest.er1 >conftest.err
31393 cat conftest.err >&5
31394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31395 (exit $ac_status); } && {
31396 test -z "$ac_c_werror_flag" ||
31397 test ! -s conftest.err
31398 } && test -s conftest$ac_exeext &&
31399 $as_test_x conftest$ac_exeext; then
31400 ac_cv_lib_tinfo_tgetent=yes
31402 echo "$as_me: failed program was
:" >&5
31403 sed 's/^/| /' conftest.$ac_ext >&5
31405 ac_cv_lib_tinfo_tgetent=no
31408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31409 conftest$ac_exeext conftest.$ac_ext
31410 LIBS=$ac_check_lib_save_LIBS
31412 { echo "$as_me:$LINENO: result
: $ac_cv_lib_tinfo_tgetent" >&5
31413 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
31414 if test $ac_cv_lib_tinfo_tgetent = yes; then
31415 AST_TINFO_FOUND=yes
31421 if test "${AST_TINFO_FOUND}" = "yes"; then
31422 TINFO_LIB="-ltinfo "
31423 TINFO_HEADER_FOUND="1"
31424 if test "x
${TINFO_DIR}" != "x
"; then
31425 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
31426 TINFO_INCLUDE="-I${TINFO_DIR}/include
"
31427 saved_cppflags="${CPPFLAGS}"
31428 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include
"
31429 if test "x
" != "x
" ; then
31430 as_ac_Header=`echo "ac_cv_header_
${TINFO_DIR}/include
/" | $as_tr_sh`
31431 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31432 { echo "$as_me:$LINENO: checking
for ${TINFO_DIR}/include
/" >&5
31433 echo $ECHO_N "checking
for ${TINFO_DIR}/include
/...
$ECHO_C" >&6; }
31434 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31435 echo $ECHO_N "(cached
) $ECHO_C" >&6
31437 ac_res=`eval echo '${'$as_ac_Header'}'`
31438 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31439 echo "${ECHO_T}$ac_res" >&6; }
31441 # Is the header compilable?
31442 { echo "$as_me:$LINENO: checking
${TINFO_DIR}/include
/ usability
" >&5
31443 echo $ECHO_N "checking
${TINFO_DIR}/include
/ usability...
$ECHO_C" >&6; }
31444 cat >conftest.$ac_ext <<_ACEOF
31447 cat confdefs.h >>conftest.$ac_ext
31448 cat >>conftest.$ac_ext <<_ACEOF
31449 /* end confdefs.h. */
31450 $ac_includes_default
31451 #include <${TINFO_DIR}/include/>
31453 rm -f conftest.$ac_objext
31454 if { (ac_try="$ac_compile"
31455 case "(($ac_try" in
31456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457 *) ac_try_echo=$ac_try;;
31459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31460 (eval "$ac_compile") 2>conftest.er1
31462 grep -v '^ *+' conftest.er1 >conftest.err
31464 cat conftest.err >&5
31465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31466 (exit $ac_status); } && {
31467 test -z "$ac_c_werror_flag" ||
31468 test ! -s conftest.err
31469 } && test -s conftest.$ac_objext; then
31470 ac_header_compiler=yes
31472 echo "$as_me: failed program was
:" >&5
31473 sed 's/^/| /' conftest.$ac_ext >&5
31475 ac_header_compiler=no
31478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31479 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
31480 echo "${ECHO_T}$ac_header_compiler" >&6; }
31482 # Is the header present?
31483 { echo "$as_me:$LINENO: checking
${TINFO_DIR}/include
/ presence
" >&5
31484 echo $ECHO_N "checking
${TINFO_DIR}/include
/ presence...
$ECHO_C" >&6; }
31485 cat >conftest.$ac_ext <<_ACEOF
31488 cat confdefs.h >>conftest.$ac_ext
31489 cat >>conftest.$ac_ext <<_ACEOF
31490 /* end confdefs.h. */
31491 #include <${TINFO_DIR}/include/>
31493 if { (ac_try="$ac_cpp conftest.
$ac_ext"
31494 case "(($ac_try" in
31495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31496 *) ac_try_echo=$ac_try;;
31498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31499 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
31501 grep -v '^ *+' conftest.er1 >conftest.err
31503 cat conftest.err >&5
31504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31505 (exit $ac_status); } >/dev/null && {
31506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31507 test ! -s conftest.err
31509 ac_header_preproc=yes
31511 echo "$as_me: failed program was
:" >&5
31512 sed 's/^/| /' conftest.$ac_ext >&5
31514 ac_header_preproc=no
31517 rm -f conftest.err conftest.$ac_ext
31518 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
31519 echo "${ECHO_T}$ac_header_preproc" >&6; }
31521 # So? What about this header?
31522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31524 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&5
31525 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
31526 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: proceeding with the compiler
's result" >&5
31527 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result
" >&2;}
31528 ac_header_preproc=yes
31531 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: present but cannot be compiled
" >&5
31532 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: present but cannot be compiled
" >&2;}
31533 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: check
for missing prerequisite headers?
" >&5
31534 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: check
for missing prerequisite headers?
" >&2;}
31535 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: see the Autoconf documentation
" >&5
31536 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: see the Autoconf documentation
" >&2;}
31537 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&5
31538 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&2;}
31539 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: proceeding with the preprocessor
's result" >&5
31540 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result
" >&2;}
31541 { echo "$as_me:$LINENO: WARNING
: ${TINFO_DIR}/include
/: in the future
, the compiler will take precedence
" >&5
31542 echo "$as_me: WARNING
: ${TINFO_DIR}/include
/: in the future
, the compiler will take precedence
" >&2;}
31544 ## ------------------------------- ##
31545 ## Report this to www.asterisk.org ##
31546 ## ------------------------------- ##
31548 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
31551 { echo "$as_me:$LINENO: checking
for ${TINFO_DIR}/include
/" >&5
31552 echo $ECHO_N "checking
for ${TINFO_DIR}/include
/...
$ECHO_C" >&6; }
31553 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31554 echo $ECHO_N "(cached
) $ECHO_C" >&6
31556 eval "$as_ac_Header=\
$ac_header_preproc"
31558 ac_res=`eval echo '${'$as_ac_Header'}'`
31559 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31560 echo "${ECHO_T}$ac_res" >&6; }
31563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31564 TINFO_HEADER_FOUND=1
31566 TINFO_HEADER_FOUND=0
31571 CPPFLAGS="${saved_cppflags}"
31573 if test "x
" != "x
" ; then
31574 if test "${ac_cv_header_+set}" = set; then
31575 { echo "$as_me:$LINENO: checking
for " >&5
31576 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
31577 if test "${ac_cv_header_+set}" = set; then
31578 echo $ECHO_N "(cached
) $ECHO_C" >&6
31580 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
31581 echo "${ECHO_T}$ac_cv_header_" >&6; }
31583 # Is the header compilable?
31584 { echo "$as_me:$LINENO: checking usability
" >&5
31585 echo $ECHO_N "checking usability...
$ECHO_C" >&6; }
31586 cat >conftest.$ac_ext <<_ACEOF
31589 cat confdefs.h >>conftest.$ac_ext
31590 cat >>conftest.$ac_ext <<_ACEOF
31591 /* end confdefs.h. */
31592 $ac_includes_default
31595 rm -f conftest.$ac_objext
31596 if { (ac_try="$ac_compile"
31597 case "(($ac_try" in
31598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31599 *) ac_try_echo=$ac_try;;
31601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31602 (eval "$ac_compile") 2>conftest.er1
31604 grep -v '^ *+' conftest.er1 >conftest.err
31606 cat conftest.err >&5
31607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31608 (exit $ac_status); } && {
31609 test -z "$ac_c_werror_flag" ||
31610 test ! -s conftest.err
31611 } && test -s conftest.$ac_objext; then
31612 ac_header_compiler=yes
31614 echo "$as_me: failed program was
:" >&5
31615 sed 's/^/| /' conftest.$ac_ext >&5
31617 ac_header_compiler=no
31620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31621 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
31622 echo "${ECHO_T}$ac_header_compiler" >&6; }
31624 # Is the header present?
31625 { echo "$as_me:$LINENO: checking presence
" >&5
31626 echo $ECHO_N "checking presence...
$ECHO_C" >&6; }
31627 cat >conftest.$ac_ext <<_ACEOF
31630 cat confdefs.h >>conftest.$ac_ext
31631 cat >>conftest.$ac_ext <<_ACEOF
31632 /* end confdefs.h. */
31635 if { (ac_try="$ac_cpp conftest.
$ac_ext"
31636 case "(($ac_try" in
31637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638 *) ac_try_echo=$ac_try;;
31640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31641 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
31643 grep -v '^ *+' conftest.er1 >conftest.err
31645 cat conftest.err >&5
31646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31647 (exit $ac_status); } >/dev/null && {
31648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31649 test ! -s conftest.err
31651 ac_header_preproc=yes
31653 echo "$as_me: failed program was
:" >&5
31654 sed 's/^/| /' conftest.$ac_ext >&5
31656 ac_header_preproc=no
31659 rm -f conftest.err conftest.$ac_ext
31660 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
31661 echo "${ECHO_T}$ac_header_preproc" >&6; }
31663 # So? What about this header?
31664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31666 { echo "$as_me:$LINENO: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&5
31667 echo "$as_me: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&2;}
31668 { echo "$as_me:$LINENO: WARNING
: : proceeding with the compiler
's result" >&5
31669 echo "$as_me: WARNING: : proceeding with the compiler's result
" >&2;}
31670 ac_header_preproc=yes
31673 { echo "$as_me:$LINENO: WARNING
: : present but cannot be compiled
" >&5
31674 echo "$as_me: WARNING
: : present but cannot be compiled
" >&2;}
31675 { echo "$as_me:$LINENO: WARNING
: : check
for missing prerequisite headers?
" >&5
31676 echo "$as_me: WARNING
: : check
for missing prerequisite headers?
" >&2;}
31677 { echo "$as_me:$LINENO: WARNING
: : see the Autoconf documentation
" >&5
31678 echo "$as_me: WARNING
: : see the Autoconf documentation
" >&2;}
31679 { echo "$as_me:$LINENO: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&5
31680 echo "$as_me: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&2;}
31681 { echo "$as_me:$LINENO: WARNING
: : proceeding with the preprocessor
's result" >&5
31682 echo "$as_me: WARNING: : proceeding with the preprocessor's result
" >&2;}
31683 { echo "$as_me:$LINENO: WARNING
: : in the future
, the compiler will take precedence
" >&5
31684 echo "$as_me: WARNING
: : in the future
, the compiler will take precedence
" >&2;}
31686 ## ------------------------------- ##
31687 ## Report this to www.asterisk.org ##
31688 ## ------------------------------- ##
31690 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
31693 { echo "$as_me:$LINENO: checking
for " >&5
31694 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
31695 if test "${ac_cv_header_+set}" = set; then
31696 echo $ECHO_N "(cached
) $ECHO_C" >&6
31698 ac_cv_header_=$ac_header_preproc
31700 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
31701 echo "${ECHO_T}$ac_cv_header_" >&6; }
31704 if test $ac_cv_header_ = yes; then
31705 TINFO_HEADER_FOUND=1
31707 TINFO_HEADER_FOUND=0
31713 if test "x
${TINFO_HEADER_FOUND}" = "x0
" ; then
31714 if test -n "${TINFO_MANDATORY}" ;
31716 { echo "$as_me:$LINENO: ***" >&5
31717 echo "$as_me: ***" >&6;}
31718 { echo "$as_me:$LINENO: *** It appears that you
do not have the tinfo development package installed.
" >&5
31719 echo "$as_me: *** It appears that you
do not have the tinfo development package installed.
" >&6;}
31720 { echo "$as_me:$LINENO: *** Please
install it to include
${TINFO_DESCRIP} support
, or re-run configure
" >&5
31721 echo "$as_me: *** Please
install it to include
${TINFO_DESCRIP} support
, or re-run configure
" >&6;}
31722 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${TINFO_OPTION}" >&5
31723 echo "$as_me: *** without explicitly specifying
--with-${TINFO_OPTION}" >&6;}
31732 cat >>confdefs.h <<_ACEOF
31733 #define HAVE_TINFO 1
31737 elif test -n "${TINFO_MANDATORY}";
31739 { echo "$as_me:$LINENO: ***" >&5
31740 echo "$as_me: ***" >&6;}
31741 { echo "$as_me:$LINENO: *** The
${TINFO_DESCRIP} installation on this system appears to be broken.
" >&5
31742 echo "$as_me: *** The
${TINFO_DESCRIP} installation on this system appears to be broken.
" >&6;}
31743 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
31744 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
31745 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${TINFO_OPTION}" >&5
31746 echo "$as_me: *** without explicitly specifying
--with-${TINFO_OPTION}" >&6;}
31752 if test "${host_os}" != "linux-gnu
" ; then
31753 tonezone_extra="-lm"
31757 if test "${USE_TONEZONE}" != "no
"; then
31759 if test "x
${TONEZONE_DIR}" != "x
"; then
31760 if test -d ${TONEZONE_DIR}/lib; then
31761 pbxlibdir="-L${TONEZONE_DIR}/lib
"
31763 pbxlibdir="-L${TONEZONE_DIR}"
31766 { echo "$as_me:$LINENO: checking
for tone_zone_find
in -ltonezone" >&5
31767 echo $ECHO_N "checking
for tone_zone_find
in -ltonezone...
$ECHO_C" >&6; }
31768 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
31769 echo $ECHO_N "(cached
) $ECHO_C" >&6
31771 ac_check_lib_save_LIBS=$LIBS
31772 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
31773 cat >conftest.$ac_ext <<_ACEOF
31776 cat confdefs.h >>conftest.$ac_ext
31777 cat >>conftest.$ac_ext <<_ACEOF
31778 /* end confdefs.h. */
31780 /* Override any GCC internal prototype to avoid an error.
31781 Use char because int might match the return type of a GCC
31782 builtin and then its argument prototype would still apply. */
31786 char tone_zone_find ();
31790 return tone_zone_find ();
31795 rm -f conftest.$ac_objext conftest$ac_exeext
31796 if { (ac_try="$ac_link"
31797 case "(($ac_try" in
31798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799 *) ac_try_echo=$ac_try;;
31801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31802 (eval "$ac_link") 2>conftest.er1
31804 grep -v '^ *+' conftest.er1 >conftest.err
31806 cat conftest.err >&5
31807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31808 (exit $ac_status); } && {
31809 test -z "$ac_c_werror_flag" ||
31810 test ! -s conftest.err
31811 } && test -s conftest$ac_exeext &&
31812 $as_test_x conftest$ac_exeext; then
31813 ac_cv_lib_tonezone_tone_zone_find=yes
31815 echo "$as_me: failed program was
:" >&5
31816 sed 's/^/| /' conftest.$ac_ext >&5
31818 ac_cv_lib_tonezone_tone_zone_find=no
31821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31822 conftest$ac_exeext conftest.$ac_ext
31823 LIBS=$ac_check_lib_save_LIBS
31825 { echo "$as_me:$LINENO: result
: $ac_cv_lib_tonezone_tone_zone_find" >&5
31826 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
31827 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
31828 AST_TONEZONE_FOUND=yes
31830 AST_TONEZONE_FOUND=no
31834 if test "${AST_TONEZONE_FOUND}" = "yes"; then
31835 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
31836 TONEZONE_HEADER_FOUND="1"
31837 if test "x
${TONEZONE_DIR}" != "x
"; then
31838 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
31839 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include
"
31840 saved_cppflags="${CPPFLAGS}"
31841 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include
"
31842 if test "xzaptel
/tonezone.h
" != "x
" ; then
31843 as_ac_Header=`echo "ac_cv_header_
${TONEZONE_DIR}/include
/zaptel
/tonezone.h
" | $as_tr_sh`
31844 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31845 { echo "$as_me:$LINENO: checking
for ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
" >&5
31846 echo $ECHO_N "checking
for ${TONEZONE_DIR}/include
/zaptel
/tonezone.h...
$ECHO_C" >&6; }
31847 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31848 echo $ECHO_N "(cached
) $ECHO_C" >&6
31850 ac_res=`eval echo '${'$as_ac_Header'}'`
31851 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31852 echo "${ECHO_T}$ac_res" >&6; }
31854 # Is the header compilable?
31855 { echo "$as_me:$LINENO: checking
${TONEZONE_DIR}/include
/zaptel
/tonezone.h usability
" >&5
31856 echo $ECHO_N "checking
${TONEZONE_DIR}/include
/zaptel
/tonezone.h usability...
$ECHO_C" >&6; }
31857 cat >conftest.$ac_ext <<_ACEOF
31860 cat confdefs.h >>conftest.$ac_ext
31861 cat >>conftest.$ac_ext <<_ACEOF
31862 /* end confdefs.h. */
31863 $ac_includes_default
31864 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
31866 rm -f conftest.$ac_objext
31867 if { (ac_try="$ac_compile"
31868 case "(($ac_try" in
31869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870 *) ac_try_echo=$ac_try;;
31872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31873 (eval "$ac_compile") 2>conftest.er1
31875 grep -v '^ *+' conftest.er1 >conftest.err
31877 cat conftest.err >&5
31878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31879 (exit $ac_status); } && {
31880 test -z "$ac_c_werror_flag" ||
31881 test ! -s conftest.err
31882 } && test -s conftest.$ac_objext; then
31883 ac_header_compiler=yes
31885 echo "$as_me: failed program was
:" >&5
31886 sed 's/^/| /' conftest.$ac_ext >&5
31888 ac_header_compiler=no
31891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31892 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
31893 echo "${ECHO_T}$ac_header_compiler" >&6; }
31895 # Is the header present?
31896 { echo "$as_me:$LINENO: checking
${TONEZONE_DIR}/include
/zaptel
/tonezone.h presence
" >&5
31897 echo $ECHO_N "checking
${TONEZONE_DIR}/include
/zaptel
/tonezone.h presence...
$ECHO_C" >&6; }
31898 cat >conftest.$ac_ext <<_ACEOF
31901 cat confdefs.h >>conftest.$ac_ext
31902 cat >>conftest.$ac_ext <<_ACEOF
31903 /* end confdefs.h. */
31904 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
31906 if { (ac_try="$ac_cpp conftest.
$ac_ext"
31907 case "(($ac_try" in
31908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31909 *) ac_try_echo=$ac_try;;
31911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31912 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
31914 grep -v '^ *+' conftest.er1 >conftest.err
31916 cat conftest.err >&5
31917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31918 (exit $ac_status); } >/dev/null && {
31919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31920 test ! -s conftest.err
31922 ac_header_preproc=yes
31924 echo "$as_me: failed program was
:" >&5
31925 sed 's/^/| /' conftest.$ac_ext >&5
31927 ac_header_preproc=no
31930 rm -f conftest.err conftest.$ac_ext
31931 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
31932 echo "${ECHO_T}$ac_header_preproc" >&6; }
31934 # So? What about this header?
31935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31937 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
31938 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
31939 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: proceeding with the compiler
's result" >&5
31940 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result
" >&2;}
31941 ac_header_preproc=yes
31944 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: present but cannot be compiled
" >&5
31945 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: present but cannot be compiled
" >&2;}
31946 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: check
for missing prerequisite headers?
" >&5
31947 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: check
for missing prerequisite headers?
" >&2;}
31948 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: see the Autoconf documentation
" >&5
31949 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: see the Autoconf documentation
" >&2;}
31950 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: section
\"Present But Cannot Be Compiled
\"" >&5
31951 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
31952 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: proceeding with the preprocessor
's result" >&5
31953 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result
" >&2;}
31954 { echo "$as_me:$LINENO: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: in the future
, the compiler will take precedence
" >&5
31955 echo "$as_me: WARNING
: ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
: in the future
, the compiler will take precedence
" >&2;}
31957 ## ------------------------------- ##
31958 ## Report this to www.asterisk.org ##
31959 ## ------------------------------- ##
31961 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
31964 { echo "$as_me:$LINENO: checking
for ${TONEZONE_DIR}/include
/zaptel
/tonezone.h
" >&5
31965 echo $ECHO_N "checking
for ${TONEZONE_DIR}/include
/zaptel
/tonezone.h...
$ECHO_C" >&6; }
31966 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31967 echo $ECHO_N "(cached
) $ECHO_C" >&6
31969 eval "$as_ac_Header=\
$ac_header_preproc"
31971 ac_res=`eval echo '${'$as_ac_Header'}'`
31972 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31973 echo "${ECHO_T}$ac_res" >&6; }
31976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31977 TONEZONE_HEADER_FOUND=1
31979 TONEZONE_HEADER_FOUND=0
31984 CPPFLAGS="${saved_cppflags}"
31986 if test "xzaptel
/tonezone.h
" != "x
" ; then
31987 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
31988 { echo "$as_me:$LINENO: checking
for zaptel
/tonezone.h
" >&5
31989 echo $ECHO_N "checking
for zaptel
/tonezone.h...
$ECHO_C" >&6; }
31990 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
31991 echo $ECHO_N "(cached
) $ECHO_C" >&6
31993 { echo "$as_me:$LINENO: result
: $ac_cv_header_zaptel_tonezone_h" >&5
31994 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
31996 # Is the header compilable?
31997 { echo "$as_me:$LINENO: checking zaptel
/tonezone.h usability
" >&5
31998 echo $ECHO_N "checking zaptel
/tonezone.h usability...
$ECHO_C" >&6; }
31999 cat >conftest.$ac_ext <<_ACEOF
32002 cat confdefs.h >>conftest.$ac_ext
32003 cat >>conftest.$ac_ext <<_ACEOF
32004 /* end confdefs.h. */
32005 $ac_includes_default
32006 #include <zaptel/tonezone.h>
32008 rm -f conftest.$ac_objext
32009 if { (ac_try="$ac_compile"
32010 case "(($ac_try" in
32011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32012 *) ac_try_echo=$ac_try;;
32014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32015 (eval "$ac_compile") 2>conftest.er1
32017 grep -v '^ *+' conftest.er1 >conftest.err
32019 cat conftest.err >&5
32020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32021 (exit $ac_status); } && {
32022 test -z "$ac_c_werror_flag" ||
32023 test ! -s conftest.err
32024 } && test -s conftest.$ac_objext; then
32025 ac_header_compiler=yes
32027 echo "$as_me: failed program was
:" >&5
32028 sed 's/^/| /' conftest.$ac_ext >&5
32030 ac_header_compiler=no
32033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32034 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
32035 echo "${ECHO_T}$ac_header_compiler" >&6; }
32037 # Is the header present?
32038 { echo "$as_me:$LINENO: checking zaptel
/tonezone.h presence
" >&5
32039 echo $ECHO_N "checking zaptel
/tonezone.h presence...
$ECHO_C" >&6; }
32040 cat >conftest.$ac_ext <<_ACEOF
32043 cat confdefs.h >>conftest.$ac_ext
32044 cat >>conftest.$ac_ext <<_ACEOF
32045 /* end confdefs.h. */
32046 #include <zaptel/tonezone.h>
32048 if { (ac_try="$ac_cpp conftest.
$ac_ext"
32049 case "(($ac_try" in
32050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32051 *) ac_try_echo=$ac_try;;
32053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32054 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
32056 grep -v '^ *+' conftest.er1 >conftest.err
32058 cat conftest.err >&5
32059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32060 (exit $ac_status); } >/dev/null && {
32061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32062 test ! -s conftest.err
32064 ac_header_preproc=yes
32066 echo "$as_me: failed program was
:" >&5
32067 sed 's/^/| /' conftest.$ac_ext >&5
32069 ac_header_preproc=no
32072 rm -f conftest.err conftest.$ac_ext
32073 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
32074 echo "${ECHO_T}$ac_header_preproc" >&6; }
32076 # So? What about this header?
32077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32079 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
32080 echo "$as_me: WARNING
: zaptel
/tonezone.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
32081 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: proceeding with the compiler
's result" >&5
32082 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result
" >&2;}
32083 ac_header_preproc=yes
32086 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: present but cannot be compiled
" >&5
32087 echo "$as_me: WARNING
: zaptel
/tonezone.h
: present but cannot be compiled
" >&2;}
32088 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: check
for missing prerequisite headers?
" >&5
32089 echo "$as_me: WARNING
: zaptel
/tonezone.h
: check
for missing prerequisite headers?
" >&2;}
32090 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: see the Autoconf documentation
" >&5
32091 echo "$as_me: WARNING
: zaptel
/tonezone.h
: see the Autoconf documentation
" >&2;}
32092 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: section
\"Present But Cannot Be Compiled
\"" >&5
32093 echo "$as_me: WARNING
: zaptel
/tonezone.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
32094 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: proceeding with the preprocessor
's result" >&5
32095 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result
" >&2;}
32096 { echo "$as_me:$LINENO: WARNING
: zaptel
/tonezone.h
: in the future
, the compiler will take precedence
" >&5
32097 echo "$as_me: WARNING
: zaptel
/tonezone.h
: in the future
, the compiler will take precedence
" >&2;}
32099 ## ------------------------------- ##
32100 ## Report this to www.asterisk.org ##
32101 ## ------------------------------- ##
32103 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
32106 { echo "$as_me:$LINENO: checking
for zaptel
/tonezone.h
" >&5
32107 echo $ECHO_N "checking
for zaptel
/tonezone.h...
$ECHO_C" >&6; }
32108 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32109 echo $ECHO_N "(cached
) $ECHO_C" >&6
32111 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
32113 { echo "$as_me:$LINENO: result
: $ac_cv_header_zaptel_tonezone_h" >&5
32114 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32117 if test $ac_cv_header_zaptel_tonezone_h = yes; then
32118 TONEZONE_HEADER_FOUND=1
32120 TONEZONE_HEADER_FOUND=0
32126 if test "x
${TONEZONE_HEADER_FOUND}" = "x0
" ; then
32127 if test -n "${TONEZONE_MANDATORY}" ;
32129 { echo "$as_me:$LINENO: ***" >&5
32130 echo "$as_me: ***" >&6;}
32131 { echo "$as_me:$LINENO: *** It appears that you
do not have the tonezone development package installed.
" >&5
32132 echo "$as_me: *** It appears that you
do not have the tonezone development package installed.
" >&6;}
32133 { echo "$as_me:$LINENO: *** Please
install it to include
${TONEZONE_DESCRIP} support
, or re-run configure
" >&5
32134 echo "$as_me: *** Please
install it to include
${TONEZONE_DESCRIP} support
, or re-run configure
" >&6;}
32135 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${TONEZONE_OPTION}" >&5
32136 echo "$as_me: *** without explicitly specifying
--with-${TONEZONE_OPTION}" >&6;}
32140 TONEZONE_INCLUDE=""
32145 cat >>confdefs.h <<_ACEOF
32146 #define HAVE_TONEZONE 1
32150 elif test -n "${TONEZONE_MANDATORY}";
32152 { echo "$as_me:$LINENO: ***" >&5
32153 echo "$as_me: ***" >&6;}
32154 { echo "$as_me:$LINENO: *** The
${TONEZONE_DESCRIP} installation on this system appears to be broken.
" >&5
32155 echo "$as_me: *** The
${TONEZONE_DESCRIP} installation on this system appears to be broken.
" >&6;}
32156 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
32157 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
32158 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${TONEZONE_OPTION}" >&5
32159 echo "$as_me: *** without explicitly specifying
--with-${TONEZONE_OPTION}" >&6;}
32166 if test "${USE_USB}" != "no
"; then
32168 if test "x
${USB_DIR}" != "x
"; then
32169 if test -d ${USB_DIR}/lib; then
32170 pbxlibdir="-L${USB_DIR}/lib
"
32172 pbxlibdir="-L${USB_DIR}"
32175 { echo "$as_me:$LINENO: checking
for usb_init
in -lusb" >&5
32176 echo $ECHO_N "checking
for usb_init
in -lusb...
$ECHO_C" >&6; }
32177 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
32178 echo $ECHO_N "(cached
) $ECHO_C" >&6
32180 ac_check_lib_save_LIBS=$LIBS
32181 LIBS="-lusb ${pbxlibdir} $LIBS"
32182 cat >conftest.$ac_ext <<_ACEOF
32185 cat confdefs.h >>conftest.$ac_ext
32186 cat >>conftest.$ac_ext <<_ACEOF
32187 /* end confdefs.h. */
32189 /* Override any GCC internal prototype to avoid an error.
32190 Use char because int might match the return type of a GCC
32191 builtin and then its argument prototype would still apply. */
32199 return usb_init ();
32204 rm -f conftest.$ac_objext conftest$ac_exeext
32205 if { (ac_try="$ac_link"
32206 case "(($ac_try" in
32207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208 *) ac_try_echo=$ac_try;;
32210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32211 (eval "$ac_link") 2>conftest.er1
32213 grep -v '^ *+' conftest.er1 >conftest.err
32215 cat conftest.err >&5
32216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32217 (exit $ac_status); } && {
32218 test -z "$ac_c_werror_flag" ||
32219 test ! -s conftest.err
32220 } && test -s conftest$ac_exeext &&
32221 $as_test_x conftest$ac_exeext; then
32222 ac_cv_lib_usb_usb_init=yes
32224 echo "$as_me: failed program was
:" >&5
32225 sed 's/^/| /' conftest.$ac_ext >&5
32227 ac_cv_lib_usb_usb_init=no
32230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32231 conftest$ac_exeext conftest.$ac_ext
32232 LIBS=$ac_check_lib_save_LIBS
32234 { echo "$as_me:$LINENO: result
: $ac_cv_lib_usb_usb_init" >&5
32235 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
32236 if test $ac_cv_lib_usb_usb_init = yes; then
32243 if test "${AST_USB_FOUND}" = "yes"; then
32245 USB_HEADER_FOUND="1"
32246 if test "x
${USB_DIR}" != "x
"; then
32247 USB_LIB="${pbxlibdir} ${USB_LIB}"
32248 USB_INCLUDE="-I${USB_DIR}/include
"
32249 saved_cppflags="${CPPFLAGS}"
32250 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include
"
32251 if test "xusb.h
" != "x
" ; then
32252 as_ac_Header=`echo "ac_cv_header_
${USB_DIR}/include
/usb.h
" | $as_tr_sh`
32253 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
32254 { echo "$as_me:$LINENO: checking
for ${USB_DIR}/include
/usb.h
" >&5
32255 echo $ECHO_N "checking
for ${USB_DIR}/include
/usb.h...
$ECHO_C" >&6; }
32256 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
32257 echo $ECHO_N "(cached
) $ECHO_C" >&6
32259 ac_res=`eval echo '${'$as_ac_Header'}'`
32260 { echo "$as_me:$LINENO: result
: $ac_res" >&5
32261 echo "${ECHO_T}$ac_res" >&6; }
32263 # Is the header compilable?
32264 { echo "$as_me:$LINENO: checking
${USB_DIR}/include
/usb.h usability
" >&5
32265 echo $ECHO_N "checking
${USB_DIR}/include
/usb.h usability...
$ECHO_C" >&6; }
32266 cat >conftest.$ac_ext <<_ACEOF
32269 cat confdefs.h >>conftest.$ac_ext
32270 cat >>conftest.$ac_ext <<_ACEOF
32271 /* end confdefs.h. */
32272 $ac_includes_default
32273 #include <${USB_DIR}/include/usb.h>
32275 rm -f conftest.$ac_objext
32276 if { (ac_try="$ac_compile"
32277 case "(($ac_try" in
32278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32279 *) ac_try_echo=$ac_try;;
32281 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32282 (eval "$ac_compile") 2>conftest.er1
32284 grep -v '^ *+' conftest.er1 >conftest.err
32286 cat conftest.err >&5
32287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32288 (exit $ac_status); } && {
32289 test -z "$ac_c_werror_flag" ||
32290 test ! -s conftest.err
32291 } && test -s conftest.$ac_objext; then
32292 ac_header_compiler=yes
32294 echo "$as_me: failed program was
:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32297 ac_header_compiler=no
32300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32301 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
32302 echo "${ECHO_T}$ac_header_compiler" >&6; }
32304 # Is the header present?
32305 { echo "$as_me:$LINENO: checking
${USB_DIR}/include
/usb.h presence
" >&5
32306 echo $ECHO_N "checking
${USB_DIR}/include
/usb.h presence...
$ECHO_C" >&6; }
32307 cat >conftest.$ac_ext <<_ACEOF
32310 cat confdefs.h >>conftest.$ac_ext
32311 cat >>conftest.$ac_ext <<_ACEOF
32312 /* end confdefs.h. */
32313 #include <${USB_DIR}/include/usb.h>
32315 if { (ac_try="$ac_cpp conftest.
$ac_ext"
32316 case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
32323 grep -v '^ *+' conftest.er1 >conftest.err
32325 cat conftest.err >&5
32326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32327 (exit $ac_status); } >/dev/null && {
32328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32329 test ! -s conftest.err
32331 ac_header_preproc=yes
32333 echo "$as_me: failed program was
:" >&5
32334 sed 's/^/| /' conftest.$ac_ext >&5
32336 ac_header_preproc=no
32339 rm -f conftest.err conftest.$ac_ext
32340 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
32341 echo "${ECHO_T}$ac_header_preproc" >&6; }
32343 # So? What about this header?
32344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32346 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
32347 echo "$as_me: WARNING
: ${USB_DIR}/include
/usb.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
32348 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: proceeding with the compiler
's result" >&5
32349 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result
" >&2;}
32350 ac_header_preproc=yes
32353 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: present but cannot be compiled
" >&5
32354 echo "$as_me: WARNING
: ${USB_DIR}/include
/usb.h
: present but cannot be compiled
" >&2;}
32355 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: check
for missing prerequisite headers?
" >&5
32356 echo "$as_me: WARNING
: ${USB_DIR}/include
/usb.h
: check
for missing prerequisite headers?
" >&2;}
32357 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: see the Autoconf documentation
" >&5
32358 echo "$as_me: WARNING
: ${USB_DIR}/include
/usb.h
: see the Autoconf documentation
" >&2;}
32359 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: section
\"Present But Cannot Be Compiled
\"" >&5
32360 echo "$as_me: WARNING
: ${USB_DIR}/include
/usb.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
32361 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: proceeding with the preprocessor
's result" >&5
32362 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result
" >&2;}
32363 { echo "$as_me:$LINENO: WARNING
: ${USB_DIR}/include
/usb.h
: in the future
, the compiler will take precedence
" >&5
32364 echo "$as_me: WARNING
: ${USB_DIR}/include
/usb.h
: in the future
, the compiler will take precedence
" >&2;}
32366 ## ------------------------------- ##
32367 ## Report this to www.asterisk.org ##
32368 ## ------------------------------- ##
32370 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
32373 { echo "$as_me:$LINENO: checking
for ${USB_DIR}/include
/usb.h
" >&5
32374 echo $ECHO_N "checking
for ${USB_DIR}/include
/usb.h...
$ECHO_C" >&6; }
32375 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
32376 echo $ECHO_N "(cached
) $ECHO_C" >&6
32378 eval "$as_ac_Header=\
$ac_header_preproc"
32380 ac_res=`eval echo '${'$as_ac_Header'}'`
32381 { echo "$as_me:$LINENO: result
: $ac_res" >&5
32382 echo "${ECHO_T}$ac_res" >&6; }
32385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32393 CPPFLAGS="${saved_cppflags}"
32395 if test "xusb.h
" != "x
" ; then
32396 if test "${ac_cv_header_usb_h+set}" = set; then
32397 { echo "$as_me:$LINENO: checking
for usb.h
" >&5
32398 echo $ECHO_N "checking
for usb.h...
$ECHO_C" >&6; }
32399 if test "${ac_cv_header_usb_h+set}" = set; then
32400 echo $ECHO_N "(cached
) $ECHO_C" >&6
32402 { echo "$as_me:$LINENO: result
: $ac_cv_header_usb_h" >&5
32403 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32405 # Is the header compilable?
32406 { echo "$as_me:$LINENO: checking usb.h usability
" >&5
32407 echo $ECHO_N "checking usb.h usability...
$ECHO_C" >&6; }
32408 cat >conftest.$ac_ext <<_ACEOF
32411 cat confdefs.h >>conftest.$ac_ext
32412 cat >>conftest.$ac_ext <<_ACEOF
32413 /* end confdefs.h. */
32414 $ac_includes_default
32417 rm -f conftest.$ac_objext
32418 if { (ac_try="$ac_compile"
32419 case "(($ac_try" in
32420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32421 *) ac_try_echo=$ac_try;;
32423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32424 (eval "$ac_compile") 2>conftest.er1
32426 grep -v '^ *+' conftest.er1 >conftest.err
32428 cat conftest.err >&5
32429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32430 (exit $ac_status); } && {
32431 test -z "$ac_c_werror_flag" ||
32432 test ! -s conftest.err
32433 } && test -s conftest.$ac_objext; then
32434 ac_header_compiler=yes
32436 echo "$as_me: failed program was
:" >&5
32437 sed 's/^/| /' conftest.$ac_ext >&5
32439 ac_header_compiler=no
32442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32443 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
32444 echo "${ECHO_T}$ac_header_compiler" >&6; }
32446 # Is the header present?
32447 { echo "$as_me:$LINENO: checking usb.h presence
" >&5
32448 echo $ECHO_N "checking usb.h presence...
$ECHO_C" >&6; }
32449 cat >conftest.$ac_ext <<_ACEOF
32452 cat confdefs.h >>conftest.$ac_ext
32453 cat >>conftest.$ac_ext <<_ACEOF
32454 /* end confdefs.h. */
32457 if { (ac_try="$ac_cpp conftest.
$ac_ext"
32458 case "(($ac_try" in
32459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460 *) ac_try_echo=$ac_try;;
32462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32463 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
32465 grep -v '^ *+' conftest.er1 >conftest.err
32467 cat conftest.err >&5
32468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32469 (exit $ac_status); } >/dev/null && {
32470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32471 test ! -s conftest.err
32473 ac_header_preproc=yes
32475 echo "$as_me: failed program was
:" >&5
32476 sed 's/^/| /' conftest.$ac_ext >&5
32478 ac_header_preproc=no
32481 rm -f conftest.err conftest.$ac_ext
32482 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
32483 echo "${ECHO_T}$ac_header_preproc" >&6; }
32485 # So? What about this header?
32486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32488 { echo "$as_me:$LINENO: WARNING
: usb.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
32489 echo "$as_me: WARNING
: usb.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
32490 { echo "$as_me:$LINENO: WARNING
: usb.h
: proceeding with the compiler
's result" >&5
32491 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result
" >&2;}
32492 ac_header_preproc=yes
32495 { echo "$as_me:$LINENO: WARNING
: usb.h
: present but cannot be compiled
" >&5
32496 echo "$as_me: WARNING
: usb.h
: present but cannot be compiled
" >&2;}
32497 { echo "$as_me:$LINENO: WARNING
: usb.h
: check
for missing prerequisite headers?
" >&5
32498 echo "$as_me: WARNING
: usb.h
: check
for missing prerequisite headers?
" >&2;}
32499 { echo "$as_me:$LINENO: WARNING
: usb.h
: see the Autoconf documentation
" >&5
32500 echo "$as_me: WARNING
: usb.h
: see the Autoconf documentation
" >&2;}
32501 { echo "$as_me:$LINENO: WARNING
: usb.h
: section
\"Present But Cannot Be Compiled
\"" >&5
32502 echo "$as_me: WARNING
: usb.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
32503 { echo "$as_me:$LINENO: WARNING
: usb.h
: proceeding with the preprocessor
's result" >&5
32504 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result
" >&2;}
32505 { echo "$as_me:$LINENO: WARNING
: usb.h
: in the future
, the compiler will take precedence
" >&5
32506 echo "$as_me: WARNING
: usb.h
: in the future
, the compiler will take precedence
" >&2;}
32508 ## ------------------------------- ##
32509 ## Report this to www.asterisk.org ##
32510 ## ------------------------------- ##
32512 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
32515 { echo "$as_me:$LINENO: checking
for usb.h
" >&5
32516 echo $ECHO_N "checking
for usb.h...
$ECHO_C" >&6; }
32517 if test "${ac_cv_header_usb_h+set}" = set; then
32518 echo $ECHO_N "(cached
) $ECHO_C" >&6
32520 ac_cv_header_usb_h=$ac_header_preproc
32522 { echo "$as_me:$LINENO: result
: $ac_cv_header_usb_h" >&5
32523 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32526 if test $ac_cv_header_usb_h = yes; then
32535 if test "x
${USB_HEADER_FOUND}" = "x0
" ; then
32536 if test -n "${USB_MANDATORY}" ;
32538 { echo "$as_me:$LINENO: ***" >&5
32539 echo "$as_me: ***" >&6;}
32540 { echo "$as_me:$LINENO: *** It appears that you
do not have the usb development package installed.
" >&5
32541 echo "$as_me: *** It appears that you
do not have the usb development package installed.
" >&6;}
32542 { echo "$as_me:$LINENO: *** Please
install it to include
${USB_DESCRIP} support
, or re-run configure
" >&5
32543 echo "$as_me: *** Please
install it to include
${USB_DESCRIP} support
, or re-run configure
" >&6;}
32544 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${USB_OPTION}" >&5
32545 echo "$as_me: *** without explicitly specifying
--with-${USB_OPTION}" >&6;}
32554 cat >>confdefs.h <<_ACEOF
32559 elif test -n "${USB_MANDATORY}";
32561 { echo "$as_me:$LINENO: ***" >&5
32562 echo "$as_me: ***" >&6;}
32563 { echo "$as_me:$LINENO: *** The
${USB_DESCRIP} installation on this system appears to be broken.
" >&5
32564 echo "$as_me: *** The
${USB_DESCRIP} installation on this system appears to be broken.
" >&6;}
32565 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
32566 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
32567 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${USB_OPTION}" >&5
32568 echo "$as_me: *** without explicitly specifying
--with-${USB_OPTION}" >&6;}
32575 if test "${USE_VORBIS}" != "no
"; then
32577 if test "x
${VORBIS_DIR}" != "x
"; then
32578 if test -d ${VORBIS_DIR}/lib; then
32579 pbxlibdir="-L${VORBIS_DIR}/lib
"
32581 pbxlibdir="-L${VORBIS_DIR}"
32584 { echo "$as_me:$LINENO: checking
for vorbis_info_init
in -lvorbis" >&5
32585 echo $ECHO_N "checking
for vorbis_info_init
in -lvorbis...
$ECHO_C" >&6; }
32586 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
32587 echo $ECHO_N "(cached
) $ECHO_C" >&6
32589 ac_check_lib_save_LIBS=$LIBS
32590 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
32591 cat >conftest.$ac_ext <<_ACEOF
32594 cat confdefs.h >>conftest.$ac_ext
32595 cat >>conftest.$ac_ext <<_ACEOF
32596 /* end confdefs.h. */
32598 /* Override any GCC internal prototype to avoid an error.
32599 Use char because int might match the return type of a GCC
32600 builtin and then its argument prototype would still apply. */
32604 char vorbis_info_init ();
32608 return vorbis_info_init ();
32613 rm -f conftest.$ac_objext conftest$ac_exeext
32614 if { (ac_try="$ac_link"
32615 case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32619 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_link") 2>conftest.er1
32622 grep -v '^ *+' conftest.er1 >conftest.err
32624 cat conftest.err >&5
32625 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32626 (exit $ac_status); } && {
32627 test -z "$ac_c_werror_flag" ||
32628 test ! -s conftest.err
32629 } && test -s conftest$ac_exeext &&
32630 $as_test_x conftest$ac_exeext; then
32631 ac_cv_lib_vorbis_vorbis_info_init=yes
32633 echo "$as_me: failed program was
:" >&5
32634 sed 's/^/| /' conftest.$ac_ext >&5
32636 ac_cv_lib_vorbis_vorbis_info_init=no
32639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32640 conftest$ac_exeext conftest.$ac_ext
32641 LIBS=$ac_check_lib_save_LIBS
32643 { echo "$as_me:$LINENO: result
: $ac_cv_lib_vorbis_vorbis_info_init" >&5
32644 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
32645 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
32646 AST_VORBIS_FOUND=yes
32648 AST_VORBIS_FOUND=no
32652 if test "${AST_VORBIS_FOUND}" = "yes"; then
32653 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
32654 VORBIS_HEADER_FOUND="1"
32655 if test "x
${VORBIS_DIR}" != "x
"; then
32656 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
32657 VORBIS_INCLUDE="-I${VORBIS_DIR}/include
"
32658 saved_cppflags="${CPPFLAGS}"
32659 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include
"
32660 if test "xvorbis
/codec.h
" != "x
" ; then
32661 as_ac_Header=`echo "ac_cv_header_
${VORBIS_DIR}/include
/vorbis
/codec.h
" | $as_tr_sh`
32662 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
32663 { echo "$as_me:$LINENO: checking
for ${VORBIS_DIR}/include
/vorbis
/codec.h
" >&5
32664 echo $ECHO_N "checking
for ${VORBIS_DIR}/include
/vorbis
/codec.h...
$ECHO_C" >&6; }
32665 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
32666 echo $ECHO_N "(cached
) $ECHO_C" >&6
32668 ac_res=`eval echo '${'$as_ac_Header'}'`
32669 { echo "$as_me:$LINENO: result
: $ac_res" >&5
32670 echo "${ECHO_T}$ac_res" >&6; }
32672 # Is the header compilable?
32673 { echo "$as_me:$LINENO: checking
${VORBIS_DIR}/include
/vorbis
/codec.h usability
" >&5
32674 echo $ECHO_N "checking
${VORBIS_DIR}/include
/vorbis
/codec.h usability...
$ECHO_C" >&6; }
32675 cat >conftest.$ac_ext <<_ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h. */
32681 $ac_includes_default
32682 #include <${VORBIS_DIR}/include/vorbis/codec.h>
32684 rm -f conftest.$ac_objext
32685 if { (ac_try="$ac_compile"
32686 case "(($ac_try" in
32687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688 *) ac_try_echo=$ac_try;;
32690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32691 (eval "$ac_compile") 2>conftest.er1
32693 grep -v '^ *+' conftest.er1 >conftest.err
32695 cat conftest.err >&5
32696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32697 (exit $ac_status); } && {
32698 test -z "$ac_c_werror_flag" ||
32699 test ! -s conftest.err
32700 } && test -s conftest.$ac_objext; then
32701 ac_header_compiler=yes
32703 echo "$as_me: failed program was
:" >&5
32704 sed 's/^/| /' conftest.$ac_ext >&5
32706 ac_header_compiler=no
32709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32710 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
32711 echo "${ECHO_T}$ac_header_compiler" >&6; }
32713 # Is the header present?
32714 { echo "$as_me:$LINENO: checking
${VORBIS_DIR}/include
/vorbis
/codec.h presence
" >&5
32715 echo $ECHO_N "checking
${VORBIS_DIR}/include
/vorbis
/codec.h presence...
$ECHO_C" >&6; }
32716 cat >conftest.$ac_ext <<_ACEOF
32719 cat confdefs.h >>conftest.$ac_ext
32720 cat >>conftest.$ac_ext <<_ACEOF
32721 /* end confdefs.h. */
32722 #include <${VORBIS_DIR}/include/vorbis/codec.h>
32724 if { (ac_try="$ac_cpp conftest.
$ac_ext"
32725 case "(($ac_try" in
32726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32727 *) ac_try_echo=$ac_try;;
32729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32730 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
32732 grep -v '^ *+' conftest.er1 >conftest.err
32734 cat conftest.err >&5
32735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32736 (exit $ac_status); } >/dev/null && {
32737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32738 test ! -s conftest.err
32740 ac_header_preproc=yes
32742 echo "$as_me: failed program was
:" >&5
32743 sed 's/^/| /' conftest.$ac_ext >&5
32745 ac_header_preproc=no
32748 rm -f conftest.err conftest.$ac_ext
32749 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
32750 echo "${ECHO_T}$ac_header_preproc" >&6; }
32752 # So? What about this header?
32753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32755 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
32756 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
32757 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: proceeding with the compiler
's result" >&5
32758 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result
" >&2;}
32759 ac_header_preproc=yes
32762 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: present but cannot be compiled
" >&5
32763 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: present but cannot be compiled
" >&2;}
32764 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: check
for missing prerequisite headers?
" >&5
32765 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: check
for missing prerequisite headers?
" >&2;}
32766 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: see the Autoconf documentation
" >&5
32767 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: see the Autoconf documentation
" >&2;}
32768 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: section
\"Present But Cannot Be Compiled
\"" >&5
32769 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
32770 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: proceeding with the preprocessor
's result" >&5
32771 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result
" >&2;}
32772 { echo "$as_me:$LINENO: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: in the future
, the compiler will take precedence
" >&5
32773 echo "$as_me: WARNING
: ${VORBIS_DIR}/include
/vorbis
/codec.h
: in the future
, the compiler will take precedence
" >&2;}
32775 ## ------------------------------- ##
32776 ## Report this to www.asterisk.org ##
32777 ## ------------------------------- ##
32779 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
32782 { echo "$as_me:$LINENO: checking
for ${VORBIS_DIR}/include
/vorbis
/codec.h
" >&5
32783 echo $ECHO_N "checking
for ${VORBIS_DIR}/include
/vorbis
/codec.h...
$ECHO_C" >&6; }
32784 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
32785 echo $ECHO_N "(cached
) $ECHO_C" >&6
32787 eval "$as_ac_Header=\
$ac_header_preproc"
32789 ac_res=`eval echo '${'$as_ac_Header'}'`
32790 { echo "$as_me:$LINENO: result
: $ac_res" >&5
32791 echo "${ECHO_T}$ac_res" >&6; }
32794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32795 VORBIS_HEADER_FOUND=1
32797 VORBIS_HEADER_FOUND=0
32802 CPPFLAGS="${saved_cppflags}"
32804 if test "xvorbis
/codec.h
" != "x
" ; then
32805 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
32806 { echo "$as_me:$LINENO: checking
for vorbis
/codec.h
" >&5
32807 echo $ECHO_N "checking
for vorbis
/codec.h...
$ECHO_C" >&6; }
32808 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
32809 echo $ECHO_N "(cached
) $ECHO_C" >&6
32811 { echo "$as_me:$LINENO: result
: $ac_cv_header_vorbis_codec_h" >&5
32812 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
32814 # Is the header compilable?
32815 { echo "$as_me:$LINENO: checking vorbis
/codec.h usability
" >&5
32816 echo $ECHO_N "checking vorbis
/codec.h usability...
$ECHO_C" >&6; }
32817 cat >conftest.$ac_ext <<_ACEOF
32820 cat confdefs.h >>conftest.$ac_ext
32821 cat >>conftest.$ac_ext <<_ACEOF
32822 /* end confdefs.h. */
32823 $ac_includes_default
32824 #include <vorbis/codec.h>
32826 rm -f conftest.$ac_objext
32827 if { (ac_try="$ac_compile"
32828 case "(($ac_try" in
32829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32830 *) ac_try_echo=$ac_try;;
32832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32833 (eval "$ac_compile") 2>conftest.er1
32835 grep -v '^ *+' conftest.er1 >conftest.err
32837 cat conftest.err >&5
32838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32839 (exit $ac_status); } && {
32840 test -z "$ac_c_werror_flag" ||
32841 test ! -s conftest.err
32842 } && test -s conftest.$ac_objext; then
32843 ac_header_compiler=yes
32845 echo "$as_me: failed program was
:" >&5
32846 sed 's/^/| /' conftest.$ac_ext >&5
32848 ac_header_compiler=no
32851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32852 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
32853 echo "${ECHO_T}$ac_header_compiler" >&6; }
32855 # Is the header present?
32856 { echo "$as_me:$LINENO: checking vorbis
/codec.h presence
" >&5
32857 echo $ECHO_N "checking vorbis
/codec.h presence...
$ECHO_C" >&6; }
32858 cat >conftest.$ac_ext <<_ACEOF
32861 cat confdefs.h >>conftest.$ac_ext
32862 cat >>conftest.$ac_ext <<_ACEOF
32863 /* end confdefs.h. */
32864 #include <vorbis/codec.h>
32866 if { (ac_try="$ac_cpp conftest.
$ac_ext"
32867 case "(($ac_try" in
32868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32869 *) ac_try_echo=$ac_try;;
32871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32872 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
32874 grep -v '^ *+' conftest.er1 >conftest.err
32876 cat conftest.err >&5
32877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32878 (exit $ac_status); } >/dev/null && {
32879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32880 test ! -s conftest.err
32882 ac_header_preproc=yes
32884 echo "$as_me: failed program was
:" >&5
32885 sed 's/^/| /' conftest.$ac_ext >&5
32887 ac_header_preproc=no
32890 rm -f conftest.err conftest.$ac_ext
32891 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
32892 echo "${ECHO_T}$ac_header_preproc" >&6; }
32894 # So? What about this header?
32895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32897 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
32898 echo "$as_me: WARNING
: vorbis
/codec.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
32899 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: proceeding with the compiler
's result" >&5
32900 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result
" >&2;}
32901 ac_header_preproc=yes
32904 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: present but cannot be compiled
" >&5
32905 echo "$as_me: WARNING
: vorbis
/codec.h
: present but cannot be compiled
" >&2;}
32906 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: check
for missing prerequisite headers?
" >&5
32907 echo "$as_me: WARNING
: vorbis
/codec.h
: check
for missing prerequisite headers?
" >&2;}
32908 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: see the Autoconf documentation
" >&5
32909 echo "$as_me: WARNING
: vorbis
/codec.h
: see the Autoconf documentation
" >&2;}
32910 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: section
\"Present But Cannot Be Compiled
\"" >&5
32911 echo "$as_me: WARNING
: vorbis
/codec.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
32912 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: proceeding with the preprocessor
's result" >&5
32913 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result
" >&2;}
32914 { echo "$as_me:$LINENO: WARNING
: vorbis
/codec.h
: in the future
, the compiler will take precedence
" >&5
32915 echo "$as_me: WARNING
: vorbis
/codec.h
: in the future
, the compiler will take precedence
" >&2;}
32917 ## ------------------------------- ##
32918 ## Report this to www.asterisk.org ##
32919 ## ------------------------------- ##
32921 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
32924 { echo "$as_me:$LINENO: checking
for vorbis
/codec.h
" >&5
32925 echo $ECHO_N "checking
for vorbis
/codec.h...
$ECHO_C" >&6; }
32926 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
32927 echo $ECHO_N "(cached
) $ECHO_C" >&6
32929 ac_cv_header_vorbis_codec_h=$ac_header_preproc
32931 { echo "$as_me:$LINENO: result
: $ac_cv_header_vorbis_codec_h" >&5
32932 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
32935 if test $ac_cv_header_vorbis_codec_h = yes; then
32936 VORBIS_HEADER_FOUND=1
32938 VORBIS_HEADER_FOUND=0
32944 if test "x
${VORBIS_HEADER_FOUND}" = "x0
" ; then
32945 if test -n "${VORBIS_MANDATORY}" ;
32947 { echo "$as_me:$LINENO: ***" >&5
32948 echo "$as_me: ***" >&6;}
32949 { echo "$as_me:$LINENO: *** It appears that you
do not have the vorbis development package installed.
" >&5
32950 echo "$as_me: *** It appears that you
do not have the vorbis development package installed.
" >&6;}
32951 { echo "$as_me:$LINENO: *** Please
install it to include
${VORBIS_DESCRIP} support
, or re-run configure
" >&5
32952 echo "$as_me: *** Please
install it to include
${VORBIS_DESCRIP} support
, or re-run configure
" >&6;}
32953 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${VORBIS_OPTION}" >&5
32954 echo "$as_me: *** without explicitly specifying
--with-${VORBIS_OPTION}" >&6;}
32963 cat >>confdefs.h <<_ACEOF
32964 #define HAVE_VORBIS 1
32968 elif test -n "${VORBIS_MANDATORY}";
32970 { echo "$as_me:$LINENO: ***" >&5
32971 echo "$as_me: ***" >&6;}
32972 { echo "$as_me:$LINENO: *** The
${VORBIS_DESCRIP} installation on this system appears to be broken.
" >&5
32973 echo "$as_me: *** The
${VORBIS_DESCRIP} installation on this system appears to be broken.
" >&6;}
32974 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
32975 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
32976 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${VORBIS_OPTION}" >&5
32977 echo "$as_me: *** without explicitly specifying
--with-${VORBIS_OPTION}" >&6;}
32984 ac_cpp='$CXXCPP $CPPFLAGS'
32985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32990 if test "${USE_VPB}" != "no
"; then
32991 { echo "$as_me:$LINENO: checking
for vpb_open
in -lvpb" >&5
32992 echo $ECHO_N "checking
for vpb_open
in -lvpb...
$ECHO_C" >&6; }
32993 saved_libs="${LIBS}"
32994 saved_cppflags="${CPPFLAGS}"
32995 if test "x
${VPB_DIR}" != "x
"; then
32996 if test -d ${VPB_DIR}/lib; then
32997 vpblibdir=${VPB_DIR}/lib
32999 vpblibdir=${VPB_DIR}
33001 LIBS="${LIBS} -L${vpblibdir}"
33002 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include
"
33004 LIBS="${LIBS} -lvpb -lpthread"
33005 cat >conftest.$ac_ext <<_ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h. */
33012 #include <vpbapi.h>
33016 int q = vpb_open(0,0);
33022 rm -f conftest.$ac_objext conftest$ac_exeext
33023 if { (ac_try="$ac_link"
33024 case "(($ac_try" in
33025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33026 *) ac_try_echo=$ac_try;;
33028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33029 (eval "$ac_link") 2>conftest.er1
33031 grep -v '^ *+' conftest.er1 >conftest.err
33033 cat conftest.err >&5
33034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33035 (exit $ac_status); } && {
33036 test -z "$ac_cxx_werror_flag" ||
33037 test ! -s conftest.err
33038 } && test -s conftest$ac_exeext &&
33039 $as_test_x conftest$ac_exeext; then
33040 { echo "$as_me:$LINENO: result
: yes" >&5
33041 echo "${ECHO_T}yes" >&6; }
33042 ac_cv_lib_vpb_vpb_open="yes"
33045 echo "$as_me: failed program was
:" >&5
33046 sed 's/^/| /' conftest.$ac_ext >&5
33048 { echo "$as_me:$LINENO: result
: no
" >&5
33049 echo "${ECHO_T}no
" >&6; }
33050 ac_cv_lib_vpb_vpb_open="no
"
33055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33056 conftest$ac_exeext conftest.$ac_ext
33057 LIBS="${saved_libs}"
33058 CPPFLAGS="${saved_cppflags}"
33059 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
33061 if test "${VPB_DIR}" != ""; then
33062 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
33063 VPB_INCLUDE="-I${VPB_DIR}/include
"
33067 cat >>confdefs.h <<\_ACEOF
33071 elif test -n "${VPB_MANDATORY}"; then
33072 { echo "$as_me:$LINENO: ***" >&5
33073 echo "$as_me: ***" >&6;}
33074 { echo "$as_me:$LINENO: *** The VoiceTronix
(vpb
) installation on this system appears to be broken.
" >&5
33075 echo "$as_me: *** The VoiceTronix
(vpb
) installation on this system appears to be broken.
" >&6;}
33076 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
33077 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
33078 { echo "$as_me:$LINENO: *** including
--without-vpb.
" >&5
33079 echo "$as_me: *** including
--without-vpb.
" >&6;}
33085 ac_cpp='$CPP $CPPFLAGS'
33086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33092 if test "${USE_ZLIB}" != "no
"; then
33094 if test "x
${ZLIB_DIR}" != "x
"; then
33095 if test -d ${ZLIB_DIR}/lib; then
33096 pbxlibdir="-L${ZLIB_DIR}/lib
"
33098 pbxlibdir="-L${ZLIB_DIR}"
33101 { echo "$as_me:$LINENO: checking
for compress in -lz" >&5
33102 echo $ECHO_N "checking
for compress in -lz...
$ECHO_C" >&6; }
33103 if test "${ac_cv_lib_z_compress+set}" = set; then
33104 echo $ECHO_N "(cached
) $ECHO_C" >&6
33106 ac_check_lib_save_LIBS=$LIBS
33107 LIBS="-lz ${pbxlibdir} $LIBS"
33108 cat >conftest.$ac_ext <<_ACEOF
33111 cat confdefs.h >>conftest.$ac_ext
33112 cat >>conftest.$ac_ext <<_ACEOF
33113 /* end confdefs.h. */
33115 /* Override any GCC internal prototype to avoid an error.
33116 Use char because int might match the return type of a GCC
33117 builtin and then its argument prototype would still apply. */
33125 return compress ();
33130 rm -f conftest.$ac_objext conftest$ac_exeext
33131 if { (ac_try="$ac_link"
33132 case "(($ac_try" in
33133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33134 *) ac_try_echo=$ac_try;;
33136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33137 (eval "$ac_link") 2>conftest.er1
33139 grep -v '^ *+' conftest.er1 >conftest.err
33141 cat conftest.err >&5
33142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33143 (exit $ac_status); } && {
33144 test -z "$ac_c_werror_flag" ||
33145 test ! -s conftest.err
33146 } && test -s conftest$ac_exeext &&
33147 $as_test_x conftest$ac_exeext; then
33148 ac_cv_lib_z_compress=yes
33150 echo "$as_me: failed program was
:" >&5
33151 sed 's/^/| /' conftest.$ac_ext >&5
33153 ac_cv_lib_z_compress=no
33156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33157 conftest$ac_exeext conftest.$ac_ext
33158 LIBS=$ac_check_lib_save_LIBS
33160 { echo "$as_me:$LINENO: result
: $ac_cv_lib_z_compress" >&5
33161 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
33162 if test $ac_cv_lib_z_compress = yes; then
33169 if test "${AST_ZLIB_FOUND}" = "yes"; then
33171 ZLIB_HEADER_FOUND="1"
33172 if test "x
${ZLIB_DIR}" != "x
"; then
33173 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
33174 ZLIB_INCLUDE="-I${ZLIB_DIR}/include
"
33175 saved_cppflags="${CPPFLAGS}"
33176 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include
"
33177 if test "xzlib.h
" != "x
" ; then
33178 as_ac_Header=`echo "ac_cv_header_
${ZLIB_DIR}/include
/zlib.h
" | $as_tr_sh`
33179 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33180 { echo "$as_me:$LINENO: checking
for ${ZLIB_DIR}/include
/zlib.h
" >&5
33181 echo $ECHO_N "checking
for ${ZLIB_DIR}/include
/zlib.h...
$ECHO_C" >&6; }
33182 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33183 echo $ECHO_N "(cached
) $ECHO_C" >&6
33185 ac_res=`eval echo '${'$as_ac_Header'}'`
33186 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33187 echo "${ECHO_T}$ac_res" >&6; }
33189 # Is the header compilable?
33190 { echo "$as_me:$LINENO: checking
${ZLIB_DIR}/include
/zlib.h usability
" >&5
33191 echo $ECHO_N "checking
${ZLIB_DIR}/include
/zlib.h usability...
$ECHO_C" >&6; }
33192 cat >conftest.$ac_ext <<_ACEOF
33195 cat confdefs.h >>conftest.$ac_ext
33196 cat >>conftest.$ac_ext <<_ACEOF
33197 /* end confdefs.h. */
33198 $ac_includes_default
33199 #include <${ZLIB_DIR}/include/zlib.h>
33201 rm -f conftest.$ac_objext
33202 if { (ac_try="$ac_compile"
33203 case "(($ac_try" in
33204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33205 *) ac_try_echo=$ac_try;;
33207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33208 (eval "$ac_compile") 2>conftest.er1
33210 grep -v '^ *+' conftest.er1 >conftest.err
33212 cat conftest.err >&5
33213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33214 (exit $ac_status); } && {
33215 test -z "$ac_c_werror_flag" ||
33216 test ! -s conftest.err
33217 } && test -s conftest.$ac_objext; then
33218 ac_header_compiler=yes
33220 echo "$as_me: failed program was
:" >&5
33221 sed 's/^/| /' conftest.$ac_ext >&5
33223 ac_header_compiler=no
33226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33227 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
33228 echo "${ECHO_T}$ac_header_compiler" >&6; }
33230 # Is the header present?
33231 { echo "$as_me:$LINENO: checking
${ZLIB_DIR}/include
/zlib.h presence
" >&5
33232 echo $ECHO_N "checking
${ZLIB_DIR}/include
/zlib.h presence...
$ECHO_C" >&6; }
33233 cat >conftest.$ac_ext <<_ACEOF
33236 cat confdefs.h >>conftest.$ac_ext
33237 cat >>conftest.$ac_ext <<_ACEOF
33238 /* end confdefs.h. */
33239 #include <${ZLIB_DIR}/include/zlib.h>
33241 if { (ac_try="$ac_cpp conftest.
$ac_ext"
33242 case "(($ac_try" in
33243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33244 *) ac_try_echo=$ac_try;;
33246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33247 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
33249 grep -v '^ *+' conftest.er1 >conftest.err
33251 cat conftest.err >&5
33252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33253 (exit $ac_status); } >/dev/null && {
33254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33255 test ! -s conftest.err
33257 ac_header_preproc=yes
33259 echo "$as_me: failed program was
:" >&5
33260 sed 's/^/| /' conftest.$ac_ext >&5
33262 ac_header_preproc=no
33265 rm -f conftest.err conftest.$ac_ext
33266 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
33267 echo "${ECHO_T}$ac_header_preproc" >&6; }
33269 # So? What about this header?
33270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33272 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
33273 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
33274 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: proceeding with the compiler
's result" >&5
33275 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result
" >&2;}
33276 ac_header_preproc=yes
33279 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: present but cannot be compiled
" >&5
33280 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: present but cannot be compiled
" >&2;}
33281 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: check
for missing prerequisite headers?
" >&5
33282 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: check
for missing prerequisite headers?
" >&2;}
33283 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: see the Autoconf documentation
" >&5
33284 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: see the Autoconf documentation
" >&2;}
33285 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
33286 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
33287 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: proceeding with the preprocessor
's result" >&5
33288 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result
" >&2;}
33289 { echo "$as_me:$LINENO: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: in the future
, the compiler will take precedence
" >&5
33290 echo "$as_me: WARNING
: ${ZLIB_DIR}/include
/zlib.h
: in the future
, the compiler will take precedence
" >&2;}
33292 ## ------------------------------- ##
33293 ## Report this to www.asterisk.org ##
33294 ## ------------------------------- ##
33296 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
33299 { echo "$as_me:$LINENO: checking
for ${ZLIB_DIR}/include
/zlib.h
" >&5
33300 echo $ECHO_N "checking
for ${ZLIB_DIR}/include
/zlib.h...
$ECHO_C" >&6; }
33301 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33302 echo $ECHO_N "(cached
) $ECHO_C" >&6
33304 eval "$as_ac_Header=\
$ac_header_preproc"
33306 ac_res=`eval echo '${'$as_ac_Header'}'`
33307 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33308 echo "${ECHO_T}$ac_res" >&6; }
33311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33312 ZLIB_HEADER_FOUND=1
33314 ZLIB_HEADER_FOUND=0
33319 CPPFLAGS="${saved_cppflags}"
33321 if test "xzlib.h
" != "x
" ; then
33322 if test "${ac_cv_header_zlib_h+set}" = set; then
33323 { echo "$as_me:$LINENO: checking
for zlib.h
" >&5
33324 echo $ECHO_N "checking
for zlib.h...
$ECHO_C" >&6; }
33325 if test "${ac_cv_header_zlib_h+set}" = set; then
33326 echo $ECHO_N "(cached
) $ECHO_C" >&6
33328 { echo "$as_me:$LINENO: result
: $ac_cv_header_zlib_h" >&5
33329 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33331 # Is the header compilable?
33332 { echo "$as_me:$LINENO: checking zlib.h usability
" >&5
33333 echo $ECHO_N "checking zlib.h usability...
$ECHO_C" >&6; }
33334 cat >conftest.$ac_ext <<_ACEOF
33337 cat confdefs.h >>conftest.$ac_ext
33338 cat >>conftest.$ac_ext <<_ACEOF
33339 /* end confdefs.h. */
33340 $ac_includes_default
33343 rm -f conftest.$ac_objext
33344 if { (ac_try="$ac_compile"
33345 case "(($ac_try" in
33346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33347 *) ac_try_echo=$ac_try;;
33349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33350 (eval "$ac_compile") 2>conftest.er1
33352 grep -v '^ *+' conftest.er1 >conftest.err
33354 cat conftest.err >&5
33355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33356 (exit $ac_status); } && {
33357 test -z "$ac_c_werror_flag" ||
33358 test ! -s conftest.err
33359 } && test -s conftest.$ac_objext; then
33360 ac_header_compiler=yes
33362 echo "$as_me: failed program was
:" >&5
33363 sed 's/^/| /' conftest.$ac_ext >&5
33365 ac_header_compiler=no
33368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33369 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
33370 echo "${ECHO_T}$ac_header_compiler" >&6; }
33372 # Is the header present?
33373 { echo "$as_me:$LINENO: checking zlib.h presence
" >&5
33374 echo $ECHO_N "checking zlib.h presence...
$ECHO_C" >&6; }
33375 cat >conftest.$ac_ext <<_ACEOF
33378 cat confdefs.h >>conftest.$ac_ext
33379 cat >>conftest.$ac_ext <<_ACEOF
33380 /* end confdefs.h. */
33383 if { (ac_try="$ac_cpp conftest.
$ac_ext"
33384 case "(($ac_try" in
33385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386 *) ac_try_echo=$ac_try;;
33388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33389 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
33391 grep -v '^ *+' conftest.er1 >conftest.err
33393 cat conftest.err >&5
33394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33395 (exit $ac_status); } >/dev/null && {
33396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33397 test ! -s conftest.err
33399 ac_header_preproc=yes
33401 echo "$as_me: failed program was
:" >&5
33402 sed 's/^/| /' conftest.$ac_ext >&5
33404 ac_header_preproc=no
33407 rm -f conftest.err conftest.$ac_ext
33408 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
33409 echo "${ECHO_T}$ac_header_preproc" >&6; }
33411 # So? What about this header?
33412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33414 { echo "$as_me:$LINENO: WARNING
: zlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
33415 echo "$as_me: WARNING
: zlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
33416 { echo "$as_me:$LINENO: WARNING
: zlib.h
: proceeding with the compiler
's result" >&5
33417 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result
" >&2;}
33418 ac_header_preproc=yes
33421 { echo "$as_me:$LINENO: WARNING
: zlib.h
: present but cannot be compiled
" >&5
33422 echo "$as_me: WARNING
: zlib.h
: present but cannot be compiled
" >&2;}
33423 { echo "$as_me:$LINENO: WARNING
: zlib.h
: check
for missing prerequisite headers?
" >&5
33424 echo "$as_me: WARNING
: zlib.h
: check
for missing prerequisite headers?
" >&2;}
33425 { echo "$as_me:$LINENO: WARNING
: zlib.h
: see the Autoconf documentation
" >&5
33426 echo "$as_me: WARNING
: zlib.h
: see the Autoconf documentation
" >&2;}
33427 { echo "$as_me:$LINENO: WARNING
: zlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
33428 echo "$as_me: WARNING
: zlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
33429 { echo "$as_me:$LINENO: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&5
33430 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result
" >&2;}
33431 { echo "$as_me:$LINENO: WARNING
: zlib.h
: in the future
, the compiler will take precedence
" >&5
33432 echo "$as_me: WARNING
: zlib.h
: in the future
, the compiler will take precedence
" >&2;}
33434 ## ------------------------------- ##
33435 ## Report this to www.asterisk.org ##
33436 ## ------------------------------- ##
33438 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
33441 { echo "$as_me:$LINENO: checking
for zlib.h
" >&5
33442 echo $ECHO_N "checking
for zlib.h...
$ECHO_C" >&6; }
33443 if test "${ac_cv_header_zlib_h+set}" = set; then
33444 echo $ECHO_N "(cached
) $ECHO_C" >&6
33446 ac_cv_header_zlib_h=$ac_header_preproc
33448 { echo "$as_me:$LINENO: result
: $ac_cv_header_zlib_h" >&5
33449 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33452 if test $ac_cv_header_zlib_h = yes; then
33453 ZLIB_HEADER_FOUND=1
33455 ZLIB_HEADER_FOUND=0
33461 if test "x
${ZLIB_HEADER_FOUND}" = "x0
" ; then
33462 if test -n "${ZLIB_MANDATORY}" ;
33464 { echo "$as_me:$LINENO: ***" >&5
33465 echo "$as_me: ***" >&6;}
33466 { echo "$as_me:$LINENO: *** It appears that you
do not have the z development package installed.
" >&5
33467 echo "$as_me: *** It appears that you
do not have the z development package installed.
" >&6;}
33468 { echo "$as_me:$LINENO: *** Please
install it to include
${ZLIB_DESCRIP} support
, or re-run configure
" >&5
33469 echo "$as_me: *** Please
install it to include
${ZLIB_DESCRIP} support
, or re-run configure
" >&6;}
33470 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ZLIB_OPTION}" >&5
33471 echo "$as_me: *** without explicitly specifying
--with-${ZLIB_OPTION}" >&6;}
33480 cat >>confdefs.h <<_ACEOF
33481 #define HAVE_ZLIB 1
33485 elif test -n "${ZLIB_MANDATORY}";
33487 { echo "$as_me:$LINENO: ***" >&5
33488 echo "$as_me: ***" >&6;}
33489 { echo "$as_me:$LINENO: *** The
${ZLIB_DESCRIP} installation on this system appears to be broken.
" >&5
33490 echo "$as_me: *** The
${ZLIB_DESCRIP} installation on this system appears to be broken.
" >&6;}
33491 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
33492 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
33493 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ZLIB_OPTION}" >&5
33494 echo "$as_me: *** without explicitly specifying
--with-${ZLIB_OPTION}" >&6;}
33500 if test "${USE_ZAPTEL}" != "no
"; then
33501 { echo "$as_me:$LINENO: checking
for ZT_DIAL_OP_CANCEL
in zaptel
/zaptel.h
" >&5
33502 echo $ECHO_N "checking
for ZT_DIAL_OP_CANCEL
in zaptel
/zaptel.h...
$ECHO_C" >&6; }
33503 saved_cppflags="${CPPFLAGS}"
33504 if test "x
${ZAPTEL_DIR}" != "x
"; then
33505 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include
"
33507 cat >conftest.$ac_ext <<_ACEOF
33511 cat confdefs.h >>conftest.$ac_ext
33512 cat >>conftest.$ac_ext <<_ACEOF
33513 /* end confdefs.h. */
33514 #include <zaptel/zaptel.h>
33518 int foo = ZT_DIAL_OP_CANCEL;
33524 rm -f conftest.$ac_objext
33525 if { (ac_try="$ac_compile"
33526 case "(($ac_try" in
33527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528 *) ac_try_echo=$ac_try;;
33530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33531 (eval "$ac_compile") 2>conftest.er1
33533 grep -v '^ *+' conftest.er1 >conftest.err
33535 cat conftest.err >&5
33536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33537 (exit $ac_status); } && {
33538 test -z "$ac_c_werror_flag" ||
33539 test ! -s conftest.err
33540 } && test -s conftest.$ac_objext; then
33541 { echo "$as_me:$LINENO: result
: yes" >&5
33542 echo "${ECHO_T}yes" >&6; }
33543 ac_cv_zaptel_h="yes"
33546 echo "$as_me: failed program was
:" >&5
33547 sed 's/^/| /' conftest.$ac_ext >&5
33549 { echo "$as_me:$LINENO: result
: no
" >&5
33550 echo "${ECHO_T}no
" >&6; }
33551 ac_cv_zaptel_h="no
"
33556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33557 CPPFLAGS="${saved_cppflags}"
33558 if test "${ac_cv_zaptel_h}" = "yes"; then
33559 if test "${ZAPTEL_DIR}" != ""; then
33560 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include
"
33564 cat >>confdefs.h <<\_ACEOF
33565 #define HAVE_ZAPTEL 1
33568 elif test -n "${ZAPTEL_MANDATORY}";
33570 { echo "$as_me:$LINENO: ***" >&5
33571 echo "$as_me: ***" >&6;}
33572 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken.
" >&5
33573 echo "$as_me: *** The Zaptel installation on this system appears to be broken.
" >&6;}
33574 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
33575 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
33576 { echo "$as_me:$LINENO: *** including
--without-zaptel.
" >&5
33577 echo "$as_me: *** including
--without-zaptel.
" >&6;}
33582 if test "${PBX_ZAPTEL}" = 1; then
33583 { echo "$as_me:$LINENO: checking
for ZT_EVENT_REMOVED
in zaptel
/zaptel.h
" >&5
33584 echo $ECHO_N "checking
for ZT_EVENT_REMOVED
in zaptel
/zaptel.h...
$ECHO_C" >&6; }
33585 saved_cppflags="${CPPFLAGS}"
33586 if test "x
${ZAPTEL_DIR}" != "x
"; then
33587 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include
"
33589 cat >conftest.$ac_ext <<_ACEOF
33593 cat confdefs.h >>conftest.$ac_ext
33594 cat >>conftest.$ac_ext <<_ACEOF
33595 /* end confdefs.h. */
33596 #include <zaptel/zaptel.h>
33600 int foo = ZT_EVENT_REMOVED;
33606 rm -f conftest.$ac_objext
33607 if { (ac_try="$ac_compile"
33608 case "(($ac_try" in
33609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33610 *) ac_try_echo=$ac_try;;
33612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33613 (eval "$ac_compile") 2>conftest.er1
33615 grep -v '^ *+' conftest.er1 >conftest.err
33617 cat conftest.err >&5
33618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33619 (exit $ac_status); } && {
33620 test -z "$ac_c_werror_flag" ||
33621 test ! -s conftest.err
33622 } && test -s conftest.$ac_objext; then
33623 { echo "$as_me:$LINENO: result
: yes" >&5
33624 echo "${ECHO_T}yes" >&6; }
33625 ac_cv_zaptel_vldtmf="yes"
33628 echo "$as_me: failed program was
:" >&5
33629 sed 's/^/| /' conftest.$ac_ext >&5
33631 { echo "$as_me:$LINENO: result
: no
" >&5
33632 echo "${ECHO_T}no
" >&6; }
33633 ac_cv_zaptel_vldtmf="no
"
33638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33639 CPPFLAGS="${saved_cppflags}"
33640 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
33641 PBX_ZAPTEL_VLDTMF=1
33643 { echo "$as_me:$LINENO: checking
for ZT_TCOP_ALLOCATE
in zaptel
/zaptel.h
" >&5
33644 echo $ECHO_N "checking
for ZT_TCOP_ALLOCATE
in zaptel
/zaptel.h...
$ECHO_C" >&6; }
33645 saved_cppflags="${CPPFLAGS}"
33646 if test "x
${ZAPTEL_DIR}" != "x
"; then
33647 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include
"
33649 cat >conftest.$ac_ext <<_ACEOF
33653 cat confdefs.h >>conftest.$ac_ext
33654 cat >>conftest.$ac_ext <<_ACEOF
33655 /* end confdefs.h. */
33656 #include <zaptel/zaptel.h>
33660 int foo = ZT_TCOP_ALLOCATE;
33666 rm -f conftest.$ac_objext
33667 if { (ac_try="$ac_compile"
33668 case "(($ac_try" in
33669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33670 *) ac_try_echo=$ac_try;;
33672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33673 (eval "$ac_compile") 2>conftest.er1
33675 grep -v '^ *+' conftest.er1 >conftest.err
33677 cat conftest.err >&5
33678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33679 (exit $ac_status); } && {
33680 test -z "$ac_c_werror_flag" ||
33681 test ! -s conftest.err
33682 } && test -s conftest.$ac_objext; then
33683 { echo "$as_me:$LINENO: result
: yes" >&5
33684 echo "${ECHO_T}yes" >&6; }
33685 ac_cv_zaptel_transcode="yes"
33688 echo "$as_me: failed program was
:" >&5
33689 sed 's/^/| /' conftest.$ac_ext >&5
33691 { echo "$as_me:$LINENO: result
: no
" >&5
33692 echo "${ECHO_T}no
" >&6; }
33693 ac_cv_zaptel_transcode="no
"
33698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33699 CPPFLAGS="${saved_cppflags}"
33700 if test "${ac_cv_zaptel_transcode}" = "yes"; then
33701 PBX_ZAPTEL_TRANSCODE=1
33708 if test "x
$TERMCAP_LIB" != "x
" ; then
33709 EDITLINE_LIB="$TERMCAP_LIB"
33710 elif test "x
$TINFO_LIB" != "x
" ; then
33711 EDITLINE_LIB="$TINFO_LIB"
33712 elif test "x
$CURSES_LIB" != "x
" ; then
33713 EDITLINE_LIB="$CURSES_LIB"
33714 elif test "x
$NCURSES_LIB" != "x
" ; then
33715 EDITLINE_LIB="$NCURSES_LIB"
33717 { { echo "$as_me:$LINENO: error
: *** termcap support not found
" >&5
33718 echo "$as_me: error
: *** termcap support not found
" >&2;}
33719 { (exit 1); exit 1; }; }
33723 if test "${ac_cv_header_h323_h+set}" = set; then
33724 { echo "$as_me:$LINENO: checking
for h323.h
" >&5
33725 echo $ECHO_N "checking
for h323.h...
$ECHO_C" >&6; }
33726 if test "${ac_cv_header_h323_h+set}" = set; then
33727 echo $ECHO_N "(cached
) $ECHO_C" >&6
33729 { echo "$as_me:$LINENO: result
: $ac_cv_header_h323_h" >&5
33730 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
33732 # Is the header compilable?
33733 { echo "$as_me:$LINENO: checking h323.h usability
" >&5
33734 echo $ECHO_N "checking h323.h usability...
$ECHO_C" >&6; }
33735 cat >conftest.$ac_ext <<_ACEOF
33738 cat confdefs.h >>conftest.$ac_ext
33739 cat >>conftest.$ac_ext <<_ACEOF
33740 /* end confdefs.h. */
33741 $ac_includes_default
33744 rm -f conftest.$ac_objext
33745 if { (ac_try="$ac_compile"
33746 case "(($ac_try" in
33747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33748 *) ac_try_echo=$ac_try;;
33750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33751 (eval "$ac_compile") 2>conftest.er1
33753 grep -v '^ *+' conftest.er1 >conftest.err
33755 cat conftest.err >&5
33756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33757 (exit $ac_status); } && {
33758 test -z "$ac_c_werror_flag" ||
33759 test ! -s conftest.err
33760 } && test -s conftest.$ac_objext; then
33761 ac_header_compiler=yes
33763 echo "$as_me: failed program was
:" >&5
33764 sed 's/^/| /' conftest.$ac_ext >&5
33766 ac_header_compiler=no
33769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33770 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
33771 echo "${ECHO_T}$ac_header_compiler" >&6; }
33773 # Is the header present?
33774 { echo "$as_me:$LINENO: checking h323.h presence
" >&5
33775 echo $ECHO_N "checking h323.h presence...
$ECHO_C" >&6; }
33776 cat >conftest.$ac_ext <<_ACEOF
33779 cat confdefs.h >>conftest.$ac_ext
33780 cat >>conftest.$ac_ext <<_ACEOF
33781 /* end confdefs.h. */
33784 if { (ac_try="$ac_cpp conftest.
$ac_ext"
33785 case "(($ac_try" in
33786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33787 *) ac_try_echo=$ac_try;;
33789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33790 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
33792 grep -v '^ *+' conftest.er1 >conftest.err
33794 cat conftest.err >&5
33795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33796 (exit $ac_status); } >/dev/null && {
33797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33798 test ! -s conftest.err
33800 ac_header_preproc=yes
33802 echo "$as_me: failed program was
:" >&5
33803 sed 's/^/| /' conftest.$ac_ext >&5
33805 ac_header_preproc=no
33808 rm -f conftest.err conftest.$ac_ext
33809 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
33810 echo "${ECHO_T}$ac_header_preproc" >&6; }
33812 # So? What about this header?
33813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33815 { echo "$as_me:$LINENO: WARNING
: h323.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
33816 echo "$as_me: WARNING
: h323.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
33817 { echo "$as_me:$LINENO: WARNING
: h323.h
: proceeding with the compiler
's result" >&5
33818 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result
" >&2;}
33819 ac_header_preproc=yes
33822 { echo "$as_me:$LINENO: WARNING
: h323.h
: present but cannot be compiled
" >&5
33823 echo "$as_me: WARNING
: h323.h
: present but cannot be compiled
" >&2;}
33824 { echo "$as_me:$LINENO: WARNING
: h323.h
: check
for missing prerequisite headers?
" >&5
33825 echo "$as_me: WARNING
: h323.h
: check
for missing prerequisite headers?
" >&2;}
33826 { echo "$as_me:$LINENO: WARNING
: h323.h
: see the Autoconf documentation
" >&5
33827 echo "$as_me: WARNING
: h323.h
: see the Autoconf documentation
" >&2;}
33828 { echo "$as_me:$LINENO: WARNING
: h323.h
: section
\"Present But Cannot Be Compiled
\"" >&5
33829 echo "$as_me: WARNING
: h323.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
33830 { echo "$as_me:$LINENO: WARNING
: h323.h
: proceeding with the preprocessor
's result" >&5
33831 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result
" >&2;}
33832 { echo "$as_me:$LINENO: WARNING
: h323.h
: in the future
, the compiler will take precedence
" >&5
33833 echo "$as_me: WARNING
: h323.h
: in the future
, the compiler will take precedence
" >&2;}
33835 ## ------------------------------- ##
33836 ## Report this to www.asterisk.org ##
33837 ## ------------------------------- ##
33839 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
33842 { echo "$as_me:$LINENO: checking
for h323.h
" >&5
33843 echo $ECHO_N "checking
for h323.h...
$ECHO_C" >&6; }
33844 if test "${ac_cv_header_h323_h+set}" = set; then
33845 echo $ECHO_N "(cached
) $ECHO_C" >&6
33847 ac_cv_header_h323_h=$ac_header_preproc
33849 { echo "$as_me:$LINENO: result
: $ac_cv_header_h323_h" >&5
33850 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
33853 if test $ac_cv_header_h323_h = yes; then
33862 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
33863 { echo "$as_me:$LINENO: checking
for linux
/compiler.h
" >&5
33864 echo $ECHO_N "checking
for linux
/compiler.h...
$ECHO_C" >&6; }
33865 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
33866 echo $ECHO_N "(cached
) $ECHO_C" >&6
33868 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_compiler_h" >&5
33869 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
33871 # Is the header compilable?
33872 { echo "$as_me:$LINENO: checking linux
/compiler.h usability
" >&5
33873 echo $ECHO_N "checking linux
/compiler.h usability...
$ECHO_C" >&6; }
33874 cat >conftest.$ac_ext <<_ACEOF
33877 cat confdefs.h >>conftest.$ac_ext
33878 cat >>conftest.$ac_ext <<_ACEOF
33879 /* end confdefs.h. */
33880 $ac_includes_default
33881 #include <linux/compiler.h>
33883 rm -f conftest.$ac_objext
33884 if { (ac_try="$ac_compile"
33885 case "(($ac_try" in
33886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33887 *) ac_try_echo=$ac_try;;
33889 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33890 (eval "$ac_compile") 2>conftest.er1
33892 grep -v '^ *+' conftest.er1 >conftest.err
33894 cat conftest.err >&5
33895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33896 (exit $ac_status); } && {
33897 test -z "$ac_c_werror_flag" ||
33898 test ! -s conftest.err
33899 } && test -s conftest.$ac_objext; then
33900 ac_header_compiler=yes
33902 echo "$as_me: failed program was
:" >&5
33903 sed 's/^/| /' conftest.$ac_ext >&5
33905 ac_header_compiler=no
33908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33909 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
33910 echo "${ECHO_T}$ac_header_compiler" >&6; }
33912 # Is the header present?
33913 { echo "$as_me:$LINENO: checking linux
/compiler.h presence
" >&5
33914 echo $ECHO_N "checking linux
/compiler.h presence...
$ECHO_C" >&6; }
33915 cat >conftest.$ac_ext <<_ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h. */
33921 #include <linux/compiler.h>
33923 if { (ac_try="$ac_cpp conftest.
$ac_ext"
33924 case "(($ac_try" in
33925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926 *) ac_try_echo=$ac_try;;
33928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33929 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
33931 grep -v '^ *+' conftest.er1 >conftest.err
33933 cat conftest.err >&5
33934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33935 (exit $ac_status); } >/dev/null && {
33936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33937 test ! -s conftest.err
33939 ac_header_preproc=yes
33941 echo "$as_me: failed program was
:" >&5
33942 sed 's/^/| /' conftest.$ac_ext >&5
33944 ac_header_preproc=no
33947 rm -f conftest.err conftest.$ac_ext
33948 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
33949 echo "${ECHO_T}$ac_header_preproc" >&6; }
33951 # So? What about this header?
33952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33954 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
33955 echo "$as_me: WARNING
: linux
/compiler.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
33956 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: proceeding with the compiler
's result" >&5
33957 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result
" >&2;}
33958 ac_header_preproc=yes
33961 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: present but cannot be compiled
" >&5
33962 echo "$as_me: WARNING
: linux
/compiler.h
: present but cannot be compiled
" >&2;}
33963 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: check
for missing prerequisite headers?
" >&5
33964 echo "$as_me: WARNING
: linux
/compiler.h
: check
for missing prerequisite headers?
" >&2;}
33965 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: see the Autoconf documentation
" >&5
33966 echo "$as_me: WARNING
: linux
/compiler.h
: see the Autoconf documentation
" >&2;}
33967 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: section
\"Present But Cannot Be Compiled
\"" >&5
33968 echo "$as_me: WARNING
: linux
/compiler.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
33969 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: proceeding with the preprocessor
's result" >&5
33970 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result
" >&2;}
33971 { echo "$as_me:$LINENO: WARNING
: linux
/compiler.h
: in the future
, the compiler will take precedence
" >&5
33972 echo "$as_me: WARNING
: linux
/compiler.h
: in the future
, the compiler will take precedence
" >&2;}
33974 ## ------------------------------- ##
33975 ## Report this to www.asterisk.org ##
33976 ## ------------------------------- ##
33978 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
33981 { echo "$as_me:$LINENO: checking
for linux
/compiler.h
" >&5
33982 echo $ECHO_N "checking
for linux
/compiler.h...
$ECHO_C" >&6; }
33983 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
33984 echo $ECHO_N "(cached
) $ECHO_C" >&6
33986 ac_cv_header_linux_compiler_h=$ac_header_preproc
33988 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_compiler_h" >&5
33989 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
33992 if test $ac_cv_header_linux_compiler_h = yes; then
33994 cat >>confdefs.h <<_ACEOF
33995 #define HAVE_LINUX_COMPILER_H 1
34002 { echo "$as_me:$LINENO: checking
for linux
/ixjuser.h
" >&5
34003 echo $ECHO_N "checking
for linux
/ixjuser.h...
$ECHO_C" >&6; }
34004 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
34005 echo $ECHO_N "(cached
) $ECHO_C" >&6
34007 cat >conftest.$ac_ext <<_ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h. */
34014 #include <linux/version.h>
34015 #ifdef HAVE_LINUX_COMPILER_H
34016 #include <linux/compiler.h>
34020 #include <linux/ixjuser.h>
34022 rm -f conftest.$ac_objext
34023 if { (ac_try="$ac_compile"
34024 case "(($ac_try" in
34025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34026 *) ac_try_echo=$ac_try;;
34028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34029 (eval "$ac_compile") 2>conftest.er1
34031 grep -v '^ *+' conftest.er1 >conftest.err
34033 cat conftest.err >&5
34034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34035 (exit $ac_status); } && {
34036 test -z "$ac_c_werror_flag" ||
34037 test ! -s conftest.err
34038 } && test -s conftest.$ac_objext; then
34039 ac_cv_header_linux_ixjuser_h=yes
34041 echo "$as_me: failed program was
:" >&5
34042 sed 's/^/| /' conftest.$ac_ext >&5
34044 ac_cv_header_linux_ixjuser_h=no
34047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34049 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_ixjuser_h" >&5
34050 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
34051 if test $ac_cv_header_linux_ixjuser_h = yes; then
34060 if test "${cross_compiling}" = "no
";
34062 { echo "$as_me:$LINENO: checking
for /sbin
/launchd
" >&5
34063 echo $ECHO_N "checking
for /sbin
/launchd...
$ECHO_C" >&6; }
34064 if test "${ac_cv_file__sbin_launchd+set}" = set; then
34065 echo $ECHO_N "(cached
) $ECHO_C" >&6
34067 test "$cross_compiling" = yes &&
34068 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
34069 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
34070 { (exit 1); exit 1; }; }
34071 if test -r "/sbin
/launchd
"; then
34072 ac_cv_file__sbin_launchd=yes
34074 ac_cv_file__sbin_launchd=no
34077 { echo "$as_me:$LINENO: result
: $ac_cv_file__sbin_launchd" >&5
34078 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
34079 if test $ac_cv_file__sbin_launchd = yes; then
34081 cat >>confdefs.h <<\_ACEOF
34082 #define HAVE_SBIN_LAUNCHD 1
34090 if test -n "$ac_tool_prefix"; then
34091 # Extract the first word of "${ac_tool_prefix}gtk-config
", so it can be a program name with args.
34092 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
34093 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
34094 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
34095 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
34096 echo $ECHO_N "(cached
) $ECHO_C" >&6
34098 if test -n "$GTKCONFIG"; then
34099 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
34101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34102 for as_dir in $PATH
34105 test -z "$as_dir" && as_dir=.
34106 for ac_exec_ext in '' $ac_executable_extensions; do
34107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34108 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config
"
34109 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
34118 GTKCONFIG=$ac_cv_prog_GTKCONFIG
34119 if test -n "$GTKCONFIG"; then
34120 { echo "$as_me:$LINENO: result
: $GTKCONFIG" >&5
34121 echo "${ECHO_T}$GTKCONFIG" >&6; }
34123 { echo "$as_me:$LINENO: result
: no
" >&5
34124 echo "${ECHO_T}no
" >&6; }
34129 if test -z "$ac_cv_prog_GTKCONFIG"; then
34130 ac_ct_GTKCONFIG=$GTKCONFIG
34131 # Extract the first word of "gtk-config
", so it can be a program name with args.
34132 set dummy gtk-config; ac_word=$2
34133 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
34134 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
34135 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
34136 echo $ECHO_N "(cached
) $ECHO_C" >&6
34138 if test -n "$ac_ct_GTKCONFIG"; then
34139 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
34141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34142 for as_dir in $PATH
34145 test -z "$as_dir" && as_dir=.
34146 for ac_exec_ext in '' $ac_executable_extensions; do
34147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34148 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config
"
34149 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
34158 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
34159 if test -n "$ac_ct_GTKCONFIG"; then
34160 { echo "$as_me:$LINENO: result
: $ac_ct_GTKCONFIG" >&5
34161 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
34163 { echo "$as_me:$LINENO: result
: no
" >&5
34164 echo "${ECHO_T}no
" >&6; }
34167 if test "x
$ac_ct_GTKCONFIG" = x; then
34170 case $cross_compiling:$ac_tool_warned in
34172 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
34173 whose name does not start with the
host triplet. If you think this
34174 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
34175 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
34176 whose name does not start with the
host triplet. If you think this
34177 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
34178 ac_tool_warned=yes ;;
34180 GTKCONFIG=$ac_ct_GTKCONFIG
34183 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
34186 if test ! "x
${GTKCONFIG}" = xNo; then
34187 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
34188 GTK_LIB=$(${GTKCONFIG} --libs gthread)
34191 cat >>confdefs.h <<\_ACEOF
34201 if test -n "$ac_tool_prefix"; then
34202 # Extract the first word of "${ac_tool_prefix}pkg-config
", so it can be a program name with args.
34203 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
34204 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
34205 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
34206 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
34207 echo $ECHO_N "(cached
) $ECHO_C" >&6
34209 if test -n "$PKGCONFIG"; then
34210 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
34212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34213 for as_dir in $PATH
34216 test -z "$as_dir" && as_dir=.
34217 for ac_exec_ext in '' $ac_executable_extensions; do
34218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34219 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config
"
34220 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
34229 PKGCONFIG=$ac_cv_prog_PKGCONFIG
34230 if test -n "$PKGCONFIG"; then
34231 { echo "$as_me:$LINENO: result
: $PKGCONFIG" >&5
34232 echo "${ECHO_T}$PKGCONFIG" >&6; }
34234 { echo "$as_me:$LINENO: result
: no
" >&5
34235 echo "${ECHO_T}no
" >&6; }
34240 if test -z "$ac_cv_prog_PKGCONFIG"; then
34241 ac_ct_PKGCONFIG=$PKGCONFIG
34242 # Extract the first word of "pkg-config
", so it can be a program name with args.
34243 set dummy pkg-config; ac_word=$2
34244 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
34245 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
34246 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
34247 echo $ECHO_N "(cached
) $ECHO_C" >&6
34249 if test -n "$ac_ct_PKGCONFIG"; then
34250 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
34252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34253 for as_dir in $PATH
34256 test -z "$as_dir" && as_dir=.
34257 for ac_exec_ext in '' $ac_executable_extensions; do
34258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34259 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config
"
34260 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
34269 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
34270 if test -n "$ac_ct_PKGCONFIG"; then
34271 { echo "$as_me:$LINENO: result
: $ac_ct_PKGCONFIG" >&5
34272 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
34274 { echo "$as_me:$LINENO: result
: no
" >&5
34275 echo "${ECHO_T}no
" >&6; }
34278 if test "x
$ac_ct_PKGCONFIG" = x; then
34281 case $cross_compiling:$ac_tool_warned in
34283 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
34284 whose name does not start with the
host triplet. If you think this
34285 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
34286 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
34287 whose name does not start with the
host triplet. If you think this
34288 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
34289 ac_tool_warned=yes ;;
34291 PKGCONFIG=$ac_ct_PKGCONFIG
34294 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
34297 if test ! "x
${PKGCONFIG}" = xNo; then
34298 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
34299 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
34302 cat >>confdefs.h <<\_ACEOF
34303 #define HAVE_GTK2 1
34311 if test "${USE_CURL}" != "no
"; then
34312 if test -n "$ac_tool_prefix"; then
34313 # Extract the first word of "${ac_tool_prefix}curl-config
", so it can be a program name with args.
34314 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
34315 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
34316 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
34317 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
34318 echo $ECHO_N "(cached
) $ECHO_C" >&6
34320 case $CURL_CONFIG in
34322 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
34325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34326 for as_dir in $PATH
34329 test -z "$as_dir" && as_dir=.
34330 for ac_exec_ext in '' $ac_executable_extensions; do
34331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34332 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34333 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
34343 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
34344 if test -n "$CURL_CONFIG"; then
34345 { echo "$as_me:$LINENO: result
: $CURL_CONFIG" >&5
34346 echo "${ECHO_T}$CURL_CONFIG" >&6; }
34348 { echo "$as_me:$LINENO: result
: no
" >&5
34349 echo "${ECHO_T}no
" >&6; }
34354 if test -z "$ac_cv_path_CURL_CONFIG"; then
34355 ac_pt_CURL_CONFIG=$CURL_CONFIG
34356 # Extract the first word of "curl-config
", so it can be a program name with args.
34357 set dummy curl-config; ac_word=$2
34358 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
34359 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
34360 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
34361 echo $ECHO_N "(cached
) $ECHO_C" >&6
34363 case $ac_pt_CURL_CONFIG in
34365 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
34368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34369 for as_dir in $PATH
34372 test -z "$as_dir" && as_dir=.
34373 for ac_exec_ext in '' $ac_executable_extensions; do
34374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34375 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34376 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
34386 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
34387 if test -n "$ac_pt_CURL_CONFIG"; then
34388 { echo "$as_me:$LINENO: result
: $ac_pt_CURL_CONFIG" >&5
34389 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
34391 { echo "$as_me:$LINENO: result
: no
" >&5
34392 echo "${ECHO_T}no
" >&6; }
34395 if test "x
$ac_pt_CURL_CONFIG" = x; then
34398 case $cross_compiling:$ac_tool_warned in
34400 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
34401 whose name does not start with the
host triplet. If you think this
34402 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
34403 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
34404 whose name does not start with the
host triplet. If you think this
34405 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
34406 ac_tool_warned=yes ;;
34408 CURL_CONFIG=$ac_pt_CURL_CONFIG
34411 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
34414 if test ! x"${CURL_CONFIG}" = xNo; then
34415 # check for version
34416 if test $(printf "%d
" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d
" 0x070907); then
34417 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
34418 CURL_LIB=$(${CURL_CONFIG} --libs)
34420 { echo "$as_me:$LINENO: checking
for curl_version
() in curl
/curl.h
" >&5
34421 echo $ECHO_N "checking
for curl_version
() in curl
/curl.h...
$ECHO_C" >&6; }
34422 saved_cppflags="${CPPFLAGS}"
34423 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
34424 cat >conftest.$ac_ext <<_ACEOF
34427 cat confdefs.h >>conftest.$ac_ext
34428 cat >>conftest.$ac_ext <<_ACEOF
34429 /* end confdefs.h. */
34430 #include <curl/curl.h>
34440 rm -f conftest.$ac_objext
34441 if { (ac_try="$ac_compile"
34442 case "(($ac_try" in
34443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34444 *) ac_try_echo=$ac_try;;
34446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34447 (eval "$ac_compile") 2>conftest.er1
34449 grep -v '^ *+' conftest.er1 >conftest.err
34451 cat conftest.err >&5
34452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34453 (exit $ac_status); } && {
34454 test -z "$ac_c_werror_flag" ||
34455 test ! -s conftest.err
34456 } && test -s conftest.$ac_objext; then
34458 { echo "$as_me:$LINENO: result
: yes" >&5
34459 echo "${ECHO_T}yes" >&6; }
34463 echo "$as_me: failed program was
:" >&5
34464 sed 's/^/| /' conftest.$ac_ext >&5
34467 { echo "$as_me:$LINENO: result
: no
" >&5
34468 echo "${ECHO_T}no
" >&6; }
34474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34475 CPPFLAGS="${saved_cppflags}"
34476 if test "${ac_cv_curl_h}" = "yes"; then
34479 cat >>confdefs.h <<\_ACEOF
34480 #define HAVE_CURL 1
34488 ac_config_files="$ac_config_files build_tools
/menuselect-deps makeopts channels
/h323
/Makefile
"
34490 cat >confcache <<\_ACEOF
34491 # This file is a shell script that caches the results of configure
34492 # tests run on this system so they can be shared between configure
34493 # scripts and configure runs, see configure's option --config-cache.
34494 # It is not useful on other systems. If it contains results you don't
34495 # want to keep, you may remove or edit it.
34497 # config.status only pays attention to the cache file if you give it
34498 # the --recheck option to rerun configure.
34500 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34501 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34502 # following values.
34506 # The following way of writing the cache mishandles newlines in values,
34507 # but we know of no workaround that is simple, portable, and efficient.
34508 # So, we kill variables containing newlines.
34509 # Ultrix sh set writes to stderr and can't be redirected directly,
34510 # and sets the high bit in the cache file unless we assign to the vars.
34512 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34513 eval ac_val=\$$ac_var
34517 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
34518 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
34521 _ | IFS | as_nl) ;; #(
34522 *) $as_unset $ac_var ;;
34528 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34529 *${as_nl}ac_space=\ *)
34530 # `set' does not quote correctly, so add quotes (double-quote
34531 # substitution turns \\\\ into \\, and sed turns \\ into \).
34534 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
34537 # `set' quotes correctly as required by POSIX, so do not add quotes.
34538 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
34547 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34549 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34551 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34552 if test -w "$cache_file"; then
34553 test "x
$cache_file" != "x
/dev
/null
" &&
34554 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
34555 echo "$as_me: updating cache
$cache_file" >&6;}
34556 cat confcache >$cache_file
34558 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
34559 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
34564 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
34565 # Let make expand exec_prefix.
34566 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
34568 DEFS=-DHAVE_CONFIG_H
34572 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
34573 # 1. Remove the extension, and $U if already installed.
34574 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34575 ac_i=`echo "$ac_i" | sed "$ac_script"`
34576 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34577 # will be set to the directory where LIBOBJS objects are built.
34578 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
34579 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
34581 LIBOBJS=$ac_libobjs
34583 LTLIBOBJS=$ac_ltlibobjs
34587 : ${CONFIG_STATUS=./config.status}
34588 ac_clean_files_save=$ac_clean_files
34589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34590 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
34591 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
34592 cat >$CONFIG_STATUS <<_ACEOF
34594 # Generated by $as_me.
34595 # Run this file to recreate the current configuration.
34596 # Compiler output produced by configure, useful for debugging
34597 # configure, is in config.log if it exists.
34600 ac_cs_recheck=false
34602 SHELL=\${CONFIG_SHELL-$SHELL}
34605 cat >>$CONFIG_STATUS <<\_ACEOF
34606 ## --------------------- ##
34607 ## M4sh Initialization. ##
34608 ## --------------------- ##
34610 # Be more Bourne compatible
34611 DUALCASE=1; export DUALCASE # for MKS sh
34612 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34615 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34616 # is contrary to our usage. Disable this feature.
34617 alias -g '${1+"$@"}'='"$@
"'
34618 setopt NO_GLOB_SUBST
34620 case `(set -o) 2>/dev/null` in
34621 *posix*) set -o posix ;;
34630 # Avoid depending upon Character Ranges.
34631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34634 as_cr_digits='0123456789'
34635 as_cr_alnum=$as_cr_Letters$as_cr_digits
34637 # The user is always right.
34638 if test "${PATH_SEPARATOR+set}" != set; then
34639 echo "#! /bin/sh" >conf$$.sh
34640 echo "exit 0" >>conf$$.sh
34642 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
34650 # Support unset when possible.
34651 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34659 # We need space, tab and new line, in precisely that order. Quoting is
34660 # there to prevent editors from complaining about space-tab.
34661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34662 # splitting by setting IFS to empty value.)
34667 # Find who we are. Look in the path if we contain no directory separator.
34669 *[\\/]* ) as_myself
=$0 ;;
34670 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34671 for as_dir
in $PATH
34674 test -z "$as_dir" && as_dir
=.
34675 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
34681 # We did not find ourselves, most probably we were run as `sh COMMAND'
34682 # in which case we are not to be found in the path.
34683 if test "x$as_myself" = x
; then
34686 if test ! -f "$as_myself"; then
34687 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34688 { (exit 1); exit 1; }
34691 # Work around bugs in pre-3.0 UWIN ksh.
34692 for as_var
in ENV MAIL MAILPATH
34693 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34701 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34702 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34703 LC_TELEPHONE LC_TIME
34705 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34706 eval $as_var=C
; export $as_var
34708 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34712 # Required to use basename.
34713 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34714 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34720 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34721 as_basename
=basename
34727 # Name of the executable.
34728 as_me
=`$as_basename -- "$0" ||
34729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34730 X"$0" : 'X\(//\)$' \| \
34731 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34733 sed '/^.*\/\([^/][^/]*\)\/*$/{
34752 as_lineno_1
=$LINENO
34753 as_lineno_2
=$LINENO
34754 test "x$as_lineno_1" != "x$as_lineno_2" &&
34755 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
34757 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34758 # uniformly replaced by the line number. The first 'sed' inserts a
34759 # line-number line after each line using $LINENO; the second 'sed'
34760 # does the real work. The second script uses 'N' to pair each
34761 # line-number line with the line containing $LINENO, and appends
34762 # trailing '-' during substitution so that $LINENO is not a special
34763 # case at line end.
34764 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34765 # scripts with optimization help from Paolo Bonzini. Blame Lee
34766 # E. McMahon (1931-1989) for sed's syntax. :-)
34778 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34781 ' >$as_me.lineno
&&
34782 chmod +x
"$as_me.lineno" ||
34783 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34784 { (exit 1); exit 1; }; }
34786 # Don't try to exec as it changes $[0], causing all sort of problems
34787 # (the dirname of $[0] is not the place where we might find the
34788 # original and so on. Autoconf is especially sensitive to this).
34789 .
"./$as_me.lineno"
34790 # Exit status is that of the last command.
34795 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
34801 ECHO_C
= ECHO_N
= ECHO_T
=
34802 case `echo -n x` in
34804 case `echo 'x\c'` in
34805 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
34812 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34813 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34819 rm -f conf$$ conf$$.exe conf$$.
file
34820 if test -d conf$$.dir
; then
34821 rm -f conf$$.dir
/conf$$.
file
34827 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
34829 # ... but there are two gotchas:
34830 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34831 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34832 # In both cases, we have to default to `cp -p'.
34833 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
34835 elif ln conf$$.
file conf$$
2>/dev
/null
; then
34840 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
34841 rmdir conf$$.dir
2>/dev
/null
34843 if mkdir
-p .
2>/dev
/null
; then
34846 test -d .
/-p && rmdir .
/-p
34850 if test -x / >/dev
/null
2>&1; then
34851 as_test_x
='test -x'
34853 if ls -dL / >/dev
/null
2>&1; then
34860 if test -d "$1"; then
34866 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
34867 ???[sx]*):;;*)false;;esac;fi
34871 as_executable_p
=$as_test_x
34873 # Sed expression to map a string onto a valid CPP name.
34874 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34876 # Sed expression to map a string onto a valid variable name.
34877 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34882 # Save the log message, to keep $[0] and so on meaningful, and to
34883 # report actual input values of CONFIG_FILES etc. instead of their
34884 # values after options handling.
34886 This file was extended by asterisk $as_me 1.4, which was
34887 generated by GNU Autoconf 2.61. Invocation command line was
34889 CONFIG_FILES = $CONFIG_FILES
34890 CONFIG_HEADERS = $CONFIG_HEADERS
34891 CONFIG_LINKS = $CONFIG_LINKS
34892 CONFIG_COMMANDS = $CONFIG_COMMANDS
34895 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34900 cat >>$CONFIG_STATUS <<_ACEOF
34901 # Files that config.status was made for.
34902 config_files="$ac_config_files"
34903 config_headers="$ac_config_headers"
34907 cat >>$CONFIG_STATUS <<\_ACEOF
34909 \`$as_me' instantiates files from templates according to the
34910 current configuration.
34912 Usage: $0 [OPTIONS] [FILE]...
34914 -h, --help print this help, then exit
34915 -V, --version print version number and configuration settings, then exit
34916 -q, --quiet do not print progress messages
34917 -d, --debug don't remove temporary files
34918 --recheck update $as_me by reconfiguring in the same conditions
34919 --file=FILE[:TEMPLATE]
34920 instantiate the configuration file FILE
34921 --header=FILE[:TEMPLATE]
34922 instantiate the configuration header FILE
34924 Configuration files:
34927 Configuration headers:
34930 Report bugs to <bug-autoconf@gnu.org>."
34933 cat >>$CONFIG_STATUS <<_ACEOF
34935 asterisk config.status 1.4
34936 configured by $0, generated by GNU Autoconf 2.61,
34937 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34939 Copyright (C) 2006 Free Software Foundation, Inc.
34940 This config.status script is free software; the Free Software Foundation
34941 gives unlimited permission to copy, distribute and modify it."
34948 cat >>$CONFIG_STATUS <<\_ACEOF
34949 # If no file are specified by the user, then we need to provide default
34950 # value. By we need to know if files were specified by the user.
34956 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34957 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
34968 # Handling of the options.
34969 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
34971 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
34972 echo "$ac_cs_version"; exit ;;
34973 --debug |
--debu |
--deb |
--de |
--d |
-d )
34975 --file |
--fil |
--fi |
--f )
34977 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
34978 ac_need_defaults
=false
;;
34979 --header |
--heade |
--head |
--hea )
34981 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
34982 ac_need_defaults
=false
;;
34984 # Conflict between --help and --header
34985 { echo "$as_me: error: ambiguous option: $1
34986 Try \`$0 --help' for more information." >&2
34987 { (exit 1); exit 1; }; };;
34988 --help |
--hel |
-h )
34989 echo "$ac_cs_usage"; exit ;;
34990 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
34991 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
34994 # This is an error.
34995 -*) { echo "$as_me: error: unrecognized option: $1
34996 Try \`$0 --help' for more information." >&2
34997 { (exit 1); exit 1; }; } ;;
34999 *) ac_config_targets
="$ac_config_targets $1"
35000 ac_need_defaults
=false
;;
35006 ac_configure_extra_args
=
35008 if $ac_cs_silent; then
35010 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35014 cat >>$CONFIG_STATUS <<_ACEOF
35015 if \$ac_cs_recheck; then
35016 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35017 CONFIG_SHELL=$SHELL
35018 export CONFIG_SHELL
35019 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35023 cat >>$CONFIG_STATUS <<\_ACEOF
35027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35028 ## Running $as_me. ##
35034 cat >>$CONFIG_STATUS <<_ACEOF
35037 cat >>$CONFIG_STATUS <<\_ACEOF
35039 # Handling of arguments.
35040 for ac_config_target
in $ac_config_targets
35042 case $ac_config_target in
35043 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
35044 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
35045 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
35046 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
35048 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35049 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35050 { (exit 1); exit 1; }; };;
35055 # If the user did not use the arguments to specify the items to instantiate,
35056 # then the envvar interface is used. Set only those that are not.
35057 # We use the long form for the default assignment because of an extremely
35058 # bizarre bug on SunOS 4.1.3.
35059 if $ac_need_defaults; then
35060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35061 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35064 # Have a temporary directory for convenience. Make it in the build tree
35065 # simply because there is no reason against having it here, and in addition,
35066 # creating and moving files from /tmp can sometimes cause problems.
35067 # Hook for its removal unless debugging.
35068 # Note that there is a small window in which the directory will not be cleaned:
35069 # after its creation but before its name has been assigned to `$tmp'.
35073 trap 'exit_status=$?
35074 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35076 trap '{ (exit 1); exit 1; }' 1 2 13 15
35078 # Create a (secure) tmp directory for tmp files.
35081 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35082 test -n "$tmp" && test -d "$tmp"
35085 tmp
=.
/conf$$
-$RANDOM
35086 (umask 077 && mkdir
"$tmp")
35089 echo "$me: cannot create a temporary directory in ." >&2
35090 { (exit 1); exit 1; }
35094 # Set up the sed scripts for CONFIG_FILES section.
35097 # No need to generate the scripts if there are no CONFIG_FILES.
35098 # This happens for instance when ./config.status config.h
35099 if test -n "$CONFIG_FILES"; then
35106 for ac_last_try
in false false false false false
:; do
35107 cat >conf$
$subs.
sed <<_ACEOF
35108 SHELL!$SHELL$ac_delim
35109 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35110 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35111 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35112 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35113 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35114 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35115 exec_prefix!$exec_prefix$ac_delim
35116 prefix!$prefix$ac_delim
35117 program_transform_name!$program_transform_name$ac_delim
35118 bindir!$bindir$ac_delim
35119 sbindir!$sbindir$ac_delim
35120 libexecdir!$libexecdir$ac_delim
35121 datarootdir!$datarootdir$ac_delim
35122 datadir!$datadir$ac_delim
35123 sysconfdir!$sysconfdir$ac_delim
35124 sharedstatedir!$sharedstatedir$ac_delim
35125 localstatedir!$localstatedir$ac_delim
35126 includedir!$includedir$ac_delim
35127 oldincludedir!$oldincludedir$ac_delim
35128 docdir!$docdir$ac_delim
35129 infodir!$infodir$ac_delim
35130 htmldir!$htmldir$ac_delim
35131 dvidir!$dvidir$ac_delim
35132 pdfdir!$pdfdir$ac_delim
35133 psdir!$psdir$ac_delim
35134 libdir!$libdir$ac_delim
35135 localedir!$localedir$ac_delim
35136 mandir!$mandir$ac_delim
35137 DEFS!$DEFS$ac_delim
35138 ECHO_C!$ECHO_C$ac_delim
35139 ECHO_N!$ECHO_N$ac_delim
35140 ECHO_T!$ECHO_T$ac_delim
35141 LIBS!$LIBS$ac_delim
35142 build_alias!$build_alias$ac_delim
35143 host_alias!$host_alias$ac_delim
35144 target_alias!$target_alias$ac_delim
35145 build!$build$ac_delim
35146 build_cpu!$build_cpu$ac_delim
35147 build_vendor!$build_vendor$ac_delim
35148 build_os!$build_os$ac_delim
35149 host!$host$ac_delim
35150 host_cpu!$host_cpu$ac_delim
35151 host_vendor!$host_vendor$ac_delim
35152 host_os!$host_os$ac_delim
35154 CFLAGS!$CFLAGS$ac_delim
35155 LDFLAGS!$LDFLAGS$ac_delim
35156 CPPFLAGS!$CPPFLAGS$ac_delim
35157 ac_ct_CC!$ac_ct_CC$ac_delim
35158 EXEEXT!$EXEEXT$ac_delim
35159 OBJEXT!$OBJEXT$ac_delim
35161 GREP!$GREP$ac_delim
35162 EGREP!$EGREP$ac_delim
35163 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
35164 BUILD_CPU!$BUILD_CPU$ac_delim
35165 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
35166 BUILD_OS!$BUILD_OS$ac_delim
35167 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
35168 HOST_CPU!$HOST_CPU$ac_delim
35169 HOST_VENDOR!$HOST_VENDOR$ac_delim
35170 HOST_OS!$HOST_OS$ac_delim
35171 OSARCH!$OSARCH$ac_delim
35172 UNAME!$UNAME$ac_delim
35173 PBX_OSREV!$PBX_OSREV$ac_delim
35176 RANLIB!$RANLIB$ac_delim
35177 CXXFLAGS!$CXXFLAGS$ac_delim
35178 ac_ct_CXX!$ac_ct_CXX$ac_delim
35179 CXXCPP!$CXXCPP$ac_delim
35182 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35183 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35184 INSTALL_DATA!$INSTALL_DATA$ac_delim
35185 LN_S!$LN_S$ac_delim
35186 GNU_MAKE!$GNU_MAKE$ac_delim
35187 STRIP!$STRIP$ac_delim
35189 GNU_LD!$GNU_LD$ac_delim
35190 FIND!$FIND$ac_delim
35191 COMPRESS!$COMPRESS$ac_delim
35192 BASENAME!$BASENAME$ac_delim
35194 DIRNAME!$DIRNAME$ac_delim
35197 WGET!$WGET$ac_delim
35198 FETCH!$FETCH$ac_delim
35199 DOWNLOAD!$DOWNLOAD$ac_delim
35200 SOXMIX!$SOXMIX$ac_delim
35201 acx_pthread_config!$acx_pthread_config$ac_delim
35202 PTHREAD_CC!$PTHREAD_CC$ac_delim
35203 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
35204 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
35207 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35209 elif $ac_last_try; then
35210 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35211 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35212 { (exit 1); exit 1; }; }
35214 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35218 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35219 if test -n "$ac_eof"; then
35220 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35221 ac_eof
=`expr $ac_eof + 1`
35224 cat >>$CONFIG_STATUS <<_ACEOF
35225 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35229 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35230 s/^/s,@/; s/!/@,|#_!!_#|/
35233 s/'"$ac_delim"'$/,g/; t
35235 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35236 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35237 rm -f conf$
$subs.
sed
35238 cat >>$CONFIG_STATUS <<_ACEOF
35244 for ac_last_try
in false false false false false
:; do
35245 cat >conf$
$subs.
sed <<_ACEOF
35246 AST_DEVMODE!$AST_DEVMODE$ac_delim
35247 ALSA_LIB!$ALSA_LIB$ac_delim
35248 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
35249 ALSA_DIR!$ALSA_DIR$ac_delim
35250 PBX_ALSA!$PBX_ALSA$ac_delim
35251 CURL_LIB!$CURL_LIB$ac_delim
35252 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
35253 CURL_DIR!$CURL_DIR$ac_delim
35254 PBX_CURL!$PBX_CURL$ac_delim
35255 CAP_LIB!$CAP_LIB$ac_delim
35256 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
35257 CAP_DIR!$CAP_DIR$ac_delim
35258 PBX_CAP!$PBX_CAP$ac_delim
35259 CURSES_LIB!$CURSES_LIB$ac_delim
35260 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
35261 CURSES_DIR!$CURSES_DIR$ac_delim
35262 PBX_CURSES!$PBX_CURSES$ac_delim
35263 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
35264 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
35265 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
35266 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
35267 GSM_LIB!$GSM_LIB$ac_delim
35268 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
35269 GSM_DIR!$GSM_DIR$ac_delim
35270 PBX_GSM!$PBX_GSM$ac_delim
35271 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
35272 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
35273 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
35274 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
35275 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
35276 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
35277 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
35278 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
35279 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
35280 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
35281 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
35282 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
35283 KDE_LIB!$KDE_LIB$ac_delim
35284 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
35285 KDE_DIR!$KDE_DIR$ac_delim
35286 PBX_KDE!$PBX_KDE$ac_delim
35287 LTDL_LIB!$LTDL_LIB$ac_delim
35288 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
35289 LTDL_DIR!$LTDL_DIR$ac_delim
35290 PBX_LTDL!$PBX_LTDL$ac_delim
35291 MISDN_LIB!$MISDN_LIB$ac_delim
35292 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
35293 MISDN_DIR!$MISDN_DIR$ac_delim
35294 PBX_MISDN!$PBX_MISDN$ac_delim
35295 NBS_LIB!$NBS_LIB$ac_delim
35296 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
35297 NBS_DIR!$NBS_DIR$ac_delim
35298 PBX_NBS!$PBX_NBS$ac_delim
35299 NCURSES_LIB!$NCURSES_LIB$ac_delim
35300 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
35301 NCURSES_DIR!$NCURSES_DIR$ac_delim
35302 PBX_NCURSES!$PBX_NCURSES$ac_delim
35303 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
35304 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
35305 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
35306 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
35307 NEWT_LIB!$NEWT_LIB$ac_delim
35308 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
35309 NEWT_DIR!$NEWT_DIR$ac_delim
35310 PBX_NEWT!$PBX_NEWT$ac_delim
35311 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
35312 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
35313 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
35314 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
35315 OGG_LIB!$OGG_LIB$ac_delim
35316 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
35317 OGG_DIR!$OGG_DIR$ac_delim
35318 PBX_OGG!$PBX_OGG$ac_delim
35319 OSPTK_LIB!$OSPTK_LIB$ac_delim
35320 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
35321 OSPTK_DIR!$OSPTK_DIR$ac_delim
35322 PBX_OSPTK!$PBX_OSPTK$ac_delim
35323 OSS_LIB!$OSS_LIB$ac_delim
35324 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
35325 OSS_DIR!$OSS_DIR$ac_delim
35326 PBX_OSS!$PBX_OSS$ac_delim
35327 POPT_LIB!$POPT_LIB$ac_delim
35328 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
35329 POPT_DIR!$POPT_DIR$ac_delim
35330 PBX_POPT!$PBX_POPT$ac_delim
35331 PGSQL_LIB!$PGSQL_LIB$ac_delim
35332 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
35333 PGSQL_DIR!$PGSQL_DIR$ac_delim
35334 PBX_PGSQL!$PBX_PGSQL$ac_delim
35335 PRI_LIB!$PRI_LIB$ac_delim
35336 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
35337 PRI_DIR!$PRI_DIR$ac_delim
35338 PBX_PRI!$PBX_PRI$ac_delim
35339 PWLIB_LIB!$PWLIB_LIB$ac_delim
35340 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
35341 PWLIB_DIR!$PWLIB_DIR$ac_delim
35342 PBX_PWLIB!$PBX_PWLIB$ac_delim
35345 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35347 elif $ac_last_try; then
35348 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35349 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35350 { (exit 1); exit 1; }; }
35352 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35356 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35357 if test -n "$ac_eof"; then
35358 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35359 ac_eof
=`expr $ac_eof + 1`
35362 cat >>$CONFIG_STATUS <<_ACEOF
35363 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35367 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35368 s/^/s,@/; s/!/@,|#_!!_#|/
35371 s/'"$ac_delim"'$/,g/; t
35373 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35374 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35375 rm -f conf$
$subs.
sed
35376 cat >>$CONFIG_STATUS <<_ACEOF
35382 for ac_last_try
in false false false false false
:; do
35383 cat >conf$
$subs.
sed <<_ACEOF
35384 OPENH323_LIB!$OPENH323_LIB$ac_delim
35385 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
35386 OPENH323_DIR!$OPENH323_DIR$ac_delim
35387 PBX_OPENH323!$PBX_OPENH323$ac_delim
35388 RADIUS_LIB!$RADIUS_LIB$ac_delim
35389 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
35390 RADIUS_DIR!$RADIUS_DIR$ac_delim
35391 PBX_RADIUS!$PBX_RADIUS$ac_delim
35392 SPEEX_LIB!$SPEEX_LIB$ac_delim
35393 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
35394 SPEEX_DIR!$SPEEX_DIR$ac_delim
35395 PBX_SPEEX!$PBX_SPEEX$ac_delim
35396 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
35397 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
35398 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
35399 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
35400 SQLITE_LIB!$SQLITE_LIB$ac_delim
35401 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
35402 SQLITE_DIR!$SQLITE_DIR$ac_delim
35403 PBX_SQLITE!$PBX_SQLITE$ac_delim
35404 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
35405 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
35406 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
35407 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
35408 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
35409 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
35410 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
35411 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
35412 FREETDS_LIB!$FREETDS_LIB$ac_delim
35413 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
35414 FREETDS_DIR!$FREETDS_DIR$ac_delim
35415 PBX_FREETDS!$PBX_FREETDS$ac_delim
35416 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
35417 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
35418 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
35419 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
35420 TINFO_LIB!$TINFO_LIB$ac_delim
35421 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
35422 TINFO_DIR!$TINFO_DIR$ac_delim
35423 PBX_TINFO!$PBX_TINFO$ac_delim
35424 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
35425 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
35426 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
35427 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
35428 USB_LIB!$USB_LIB$ac_delim
35429 USB_INCLUDE!$USB_INCLUDE$ac_delim
35430 USB_DIR!$USB_DIR$ac_delim
35431 PBX_USB!$PBX_USB$ac_delim
35432 VORBIS_LIB!$VORBIS_LIB$ac_delim
35433 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
35434 VORBIS_DIR!$VORBIS_DIR$ac_delim
35435 PBX_VORBIS!$PBX_VORBIS$ac_delim
35436 VPB_LIB!$VPB_LIB$ac_delim
35437 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
35438 VPB_DIR!$VPB_DIR$ac_delim
35439 PBX_VPB!$PBX_VPB$ac_delim
35440 ZLIB_LIB!$ZLIB_LIB$ac_delim
35441 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
35442 ZLIB_DIR!$ZLIB_DIR$ac_delim
35443 PBX_ZLIB!$PBX_ZLIB$ac_delim
35444 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
35445 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
35446 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
35447 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
35448 ALLOCA!$ALLOCA$ac_delim
35449 LIBOBJS!$LIBOBJS$ac_delim
35450 POW_LIB!$POW_LIB$ac_delim
35451 GC_CFLAGS!$GC_CFLAGS$ac_delim
35452 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
35453 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
35454 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
35455 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
35456 KDEINIT!$KDEINIT$ac_delim
35457 KDEDIR!$KDEDIR$ac_delim
35458 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
35459 PG_CONFIG!$PG_CONFIG$ac_delim
35460 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
35461 PWLIBDIR!$PWLIBDIR$ac_delim
35462 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
35463 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
35464 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
35465 OPENH323DIR!$OPENH323DIR$ac_delim
35466 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
35467 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
35468 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
35469 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
35470 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
35471 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
35472 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
35473 PBX_H323!$PBX_H323$ac_delim
35474 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
35475 GTKCONFIG!$GTKCONFIG$ac_delim
35476 PBX_GTK!$PBX_GTK$ac_delim
35477 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
35478 GTK_LIB!$GTK_LIB$ac_delim
35479 PKGCONFIG!$PKGCONFIG$ac_delim
35480 PBX_GTK2!$PBX_GTK2$ac_delim
35483 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35485 elif $ac_last_try; then
35486 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35487 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35488 { (exit 1); exit 1; }; }
35490 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35494 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35495 if test -n "$ac_eof"; then
35496 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35497 ac_eof
=`expr $ac_eof + 1`
35500 cat >>$CONFIG_STATUS <<_ACEOF
35501 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35505 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35506 s/^/s,@/; s/!/@,|#_!!_#|/
35509 s/'"$ac_delim"'$/,g/; t
35511 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35512 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35513 rm -f conf$
$subs.
sed
35514 cat >>$CONFIG_STATUS <<_ACEOF
35520 for ac_last_try
in false false false false false
:; do
35521 cat >conf$
$subs.
sed <<_ACEOF
35522 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
35523 GTK2_LIB!$GTK2_LIB$ac_delim
35524 CURL_CONFIG!$CURL_CONFIG$ac_delim
35525 LTLIBOBJS!$LTLIBOBJS$ac_delim
35528 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
35530 elif $ac_last_try; then
35531 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35532 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35533 { (exit 1); exit 1; }; }
35535 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35539 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35540 if test -n "$ac_eof"; then
35541 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35542 ac_eof
=`expr $ac_eof + 1`
35545 cat >>$CONFIG_STATUS <<_ACEOF
35546 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
35547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35550 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35551 s/^/s,@/; s/!/@,|#_!!_#|/
35554 s/'"$ac_delim"'$/,g/; t
35556 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35557 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35558 rm -f conf$
$subs.
sed
35559 cat >>$CONFIG_STATUS <<_ACEOF
35566 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35567 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35568 # trailing colons and then remove the whole line if VPATH becomes empty
35569 # (actually we leave an empty line to preserve line numbers).
35570 if test "x$srcdir" = x.
; then
35571 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
35572 s/:*\$(srcdir):*/:/
35573 s/:*\${srcdir}:*/:/
35575 s/^\([^=]*=[ ]*\):*/\1/
35581 cat >>$CONFIG_STATUS <<\_ACEOF
35582 fi # test -n "$CONFIG_FILES"
35585 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
35588 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35590 case $ac_mode$ac_tag in
35592 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35593 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35594 { (exit 1); exit 1; }; };;
35595 :[FH
]-) ac_tag
=-:-;;
35596 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35613 -) ac_f
="$tmp/stdin";;
35614 *) # Look for the file first in the build tree, then in the source tree
35615 # (if the path is not absolute). The absolute path cannot be DOS-style,
35616 # because $ac_f cannot contain `:'.
35620 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
35622 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35623 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35624 { (exit 1); exit 1; }; };;
35626 ac_file_inputs
="$ac_file_inputs $ac_f"
35629 # Let's still pretend it is `configure' which instantiates (i.e., don't
35630 # use $as_me), people would be surprised to read:
35631 # /* config.h. Generated by config.status. */
35632 configure_input
="Generated from "`IFS=:
35633 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35634 if test x
"$ac_file" != x-
; then
35635 configure_input
="$ac_file. $configure_input"
35636 { echo "$as_me:$LINENO: creating $ac_file" >&5
35637 echo "$as_me: creating $ac_file" >&6;}
35641 *:-:* |
*:-) cat >"$tmp/stdin";;
35646 ac_dir
=`$as_dirname -- "$ac_file" ||
35647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35648 X"$ac_file" : 'X\(//\)[^/]' \| \
35649 X"$ac_file" : 'X\(//\)$' \| \
35650 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35656 /^X\(\/\/\)[^/].*/{
35671 -*) as_dir
=.
/$as_dir;;
35673 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
35677 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35678 *) as_qdir
=$as_dir;;
35680 as_dirs
="'$as_qdir' $as_dirs"
35681 as_dir
=`$as_dirname -- "$as_dir" ||
35682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35683 X"$as_dir" : 'X\(//\)[^/]' \| \
35684 X"$as_dir" : 'X\(//\)$' \| \
35685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35691 /^X\(\/\/\)[^/].*/{
35704 test -d "$as_dir" && break
35706 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35707 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35708 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35709 { (exit 1); exit 1; }; }; }
35713 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35715 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35716 # A ".." for each directory in $ac_dir_suffix.
35717 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35718 case $ac_top_builddir_sub in
35719 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35720 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35723 ac_abs_top_builddir
=$ac_pwd
35724 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35725 # for backward compatibility:
35726 ac_top_builddir
=$ac_top_build_prefix
35729 .
) # We are building in place.
35731 ac_top_srcdir
=$ac_top_builddir_sub
35732 ac_abs_top_srcdir
=$ac_pwd ;;
35733 [\\/]* | ?
:[\\/]* ) # Absolute name.
35734 ac_srcdir
=$srcdir$ac_dir_suffix;
35735 ac_top_srcdir
=$srcdir
35736 ac_abs_top_srcdir
=$srcdir ;;
35737 *) # Relative name.
35738 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35739 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35740 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35742 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35752 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
35753 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
35757 cat >>$CONFIG_STATUS <<\_ACEOF
35758 # If the template does not know about datarootdir, expand it.
35759 # FIXME: This hack should be removed a few years after 2.60.
35760 ac_datarootdir_hack
=; ac_datarootdir_seen
=
35762 case `sed -n '/datarootdir/ {
35771 ' $ac_file_inputs` in
35772 *datarootdir
*) ac_datarootdir_seen
=yes;;
35773 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
35774 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35775 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35777 cat >>$CONFIG_STATUS <<_ACEOF
35778 ac_datarootdir_hack='
35779 s&@datadir@&$datadir&g
35780 s&@docdir@&$docdir&g
35781 s&@infodir@&$infodir&g
35782 s&@localedir@&$localedir&g
35783 s&@mandir@&$mandir&g
35784 s&\\\${datarootdir}&$datarootdir&g' ;;
35788 # Neutralize VPATH when `$srcdir' = `.'.
35789 # Shell code in configure.ac might set extrasub.
35790 # FIXME: do we really want to maintain this feature?
35791 cat >>$CONFIG_STATUS <<_ACEOF
35795 cat >>$CONFIG_STATUS <<\_ACEOF
35797 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
35798 s
&@configure_input@
&$configure_input&;t t
35799 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
35800 s
&@srcdir@
&$ac_srcdir&;t t
35801 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
35802 s
&@top_srcdir@
&$ac_top_srcdir&;t t
35803 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
35804 s
&@builddir@
&$ac_builddir&;t t
35805 s
&@abs_builddir@
&$ac_abs_builddir&;t t
35806 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
35807 s
&@INSTALL@
&$ac_INSTALL&;t t
35808 $ac_datarootdir_hack
35809 " $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
35811 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35812 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
35813 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
35814 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
35815 which seems to be undefined. Please make sure it is defined." >&5
35816 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
35817 which seems to be undefined. Please make sure it is defined." >&2;}
35821 -) cat "$tmp/out"; rm -f "$tmp/out";;
35822 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35831 # Transform confdefs.h into a sed script `conftest.defines', that
35832 # substitutes the proper values into config.h.in to produce config.h.
35833 rm -f conftest.defines conftest.
tail
35834 # First, append a space to every undef/define line, to ease matching.
35835 echo 's/$/ /' >conftest.defines
35836 # Then, protect against being on the right side of a sed subst, or in
35837 # an unquoted here document, in config.status. If some macros were
35838 # called several times there might be several #defines for the same
35839 # symbol, which is useless. But do not sort them, since the last
35840 # AC_DEFINE must be honored.
35841 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
35842 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35843 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35844 # PARAMS is the parameter list in the macro definition--in most cases, it's
35845 # just an empty string.
35846 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35847 ac_dB
='\\)[ (].*,\\1define\\2'
35855 s/^[ ]*#[ ]*define[ ][ ]*//
35860 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35861 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35862 ' >>conftest.defines
35864 # Remove the space that was appended to ease matching.
35865 # Then replace #undef with comments. This is necessary, for
35866 # example, in the case of _POSIX_SOURCE, which is predefined and required
35867 # on some systems where configure will not decide to define it.
35868 # (The regexp can be short, since the line contains either #define or #undef.)
35870 s,^[ #]*u.*,/* & */,' >>conftest.defines
35872 # Break up conftest.defines:
35873 ac_max_sed_lines
=50
35875 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35876 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35877 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35879 ac_in
='$ac_file_inputs'
35880 ac_out
='"$tmp/out1"'
35881 ac_nxt
='"$tmp/out2"'
35885 # Write a here document:
35886 cat >>$CONFIG_STATUS <<_ACEOF
35887 # First, check the format of the line:
35888 cat >"\$tmp/defines.sed" <<\\CEOF
35889 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35890 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35894 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
35896 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35897 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
35898 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
35899 grep . conftest.
tail >/dev
/null ||
break
35900 rm -f conftest.defines
35901 mv conftest.
tail conftest.defines
35903 rm -f conftest.defines conftest.
tail
35905 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35906 cat >>$CONFIG_STATUS <<\_ACEOF
35907 if test x
"$ac_file" != x-
; then
35908 echo "/* $configure_input */" >"$tmp/config.h"
35909 cat "$ac_result" >>"$tmp/config.h"
35910 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
35911 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35912 echo "$as_me: $ac_file is unchanged" >&6;}
35915 mv "$tmp/config.h" $ac_file
35918 echo "/* $configure_input */"
35930 { (exit 0); exit 0; }
35932 chmod +x
$CONFIG_STATUS
35933 ac_clean_files
=$ac_clean_files_save
35936 # configure is writing to config.log, and then calls config.status.
35937 # config.status does its own redirection, appending to config.log.
35938 # Unfortunately, on DOS this fails, as config.log is still kept open
35939 # by configure, so config.status won't be able to write to it; its
35940 # output is simply discarded. So we exec the FD to /dev/null,
35941 # effectively closing config.log, so it can be properly (re)opened and
35942 # appended to by config.status. When coming back to configure, we
35943 # need to make the FD available again.
35944 if test "$no_create" != yes; then
35946 ac_config_status_args
=
35947 test "$silent" = yes &&
35948 ac_config_status_args
="$ac_config_status_args --quiet"
35950 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
35952 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35953 # would make configure fail if this is the last instruction.
35954 $ac_cs_success ||
{ (exit 1); exit 1; }
35958 if test "x${silent}" != "xyes" ; then
35960 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
35961 echo " .\$7\$7.. .7\$\$7:. "
35962 echo " .\$\$:. ,\$7.7 "
35963 echo " .\$7. 7\$\$\$\$ .\$\$77 "
35964 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
35965 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
35966 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
35967 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
35968 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
35969 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
35970 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
35971 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
35972 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
35973 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
35974 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
35975 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
35976 echo " \$\$\$\$\$ \$\$\$ "
35977 echo " \$\$\$\$7. \$\$ (TM) "
35978 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
35979 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
35980 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
35984 { echo "$as_me:$LINENO: Package configured for: " >&5
35985 echo "$as_me: Package configured for: " >&6;}
35986 { echo "$as_me:$LINENO: OS type : $host_os" >&5
35987 echo "$as_me: OS type : $host_os" >&6;}
35988 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
35989 echo "$as_me: Host CPU : $host_cpu" >&6;}
35990 if test "${cross_compiling}" = "yes"; then
35991 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
35992 echo "$as_me: Cross Compilation = YES" >&6;}