2 # From configure.ac Revision: 136560 .
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
889 AST_DECLARATION_AFTER_STATEMENT
890 AST_NO_STRICT_OVERFLOW
923 ac_precious_vars
='build_alias
938 # Initialize some variables set by options.
940 ac_init_version
=false
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
950 program_transform_name
=s
,x
,x
,
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir
='${exec_prefix}/bin'
965 sbindir
='${exec_prefix}/sbin'
966 libexecdir
='${exec_prefix}/libexec'
967 datarootdir
='${prefix}/share'
968 datadir
='${datarootdir}'
969 sysconfdir
='${prefix}/etc'
970 sharedstatedir
='${prefix}/com'
971 localstatedir
='${prefix}/var'
972 includedir
='${prefix}/include'
973 oldincludedir
='/usr/include'
974 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir
='${datarootdir}/info'
980 libdir
='${exec_prefix}/lib'
981 localedir
='${datarootdir}/locale'
982 mandir
='${datarootdir}/man'
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\
$ac_option
996 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1002 case $ac_dashdash$ac_option in
1006 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1008 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1009 bindir
=$ac_optarg ;;
1011 -build |
--build |
--buil |
--bui |
--bu)
1012 ac_prev
=build_alias
;;
1013 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1014 build_alias
=$ac_optarg ;;
1016 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1017 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1018 ac_prev
=cache_file
;;
1019 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1020 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1021 cache_file
=$ac_optarg ;;
1023 --config-cache |
-C)
1024 cache_file
=config.cache
;;
1026 -datadir |
--datadir |
--datadi |
--datad)
1028 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1029 datadir
=$ac_optarg ;;
1031 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1032 |
--dataroo |
--dataro |
--datar)
1033 ac_prev
=datarootdir
;;
1034 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1035 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1036 datarootdir
=$ac_optarg ;;
1038 -disable-* |
--disable-*)
1039 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1042 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1045 eval enable_
$ac_feature=no
;;
1047 -docdir |
--docdir |
--docdi |
--doc |
--do)
1049 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1050 docdir
=$ac_optarg ;;
1052 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1054 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1055 dvidir
=$ac_optarg ;;
1057 -enable-* |
--enable-*)
1058 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1061 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1064 eval enable_
$ac_feature=\
$ac_optarg ;;
1066 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1067 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1068 |
--exec |
--exe |
--ex)
1069 ac_prev
=exec_prefix
;;
1070 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1071 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1072 |
--exec=* |
--exe=* |
--ex=*)
1073 exec_prefix
=$ac_optarg ;;
1075 -gas |
--gas |
--ga |
--g)
1076 # Obsolete; use --with-gas.
1079 -help |
--help |
--hel |
--he |
-h)
1080 ac_init_help
=long
;;
1081 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1082 ac_init_help
=recursive
;;
1083 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1084 ac_init_help
=short
;;
1086 -host |
--host |
--hos |
--ho)
1087 ac_prev
=host_alias
;;
1088 -host=* |
--host=* |
--hos=* |
--ho=*)
1089 host_alias
=$ac_optarg ;;
1091 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1093 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1095 htmldir
=$ac_optarg ;;
1097 -includedir |
--includedir |
--includedi |
--included |
--include \
1098 |
--includ |
--inclu |
--incl |
--inc)
1099 ac_prev
=includedir
;;
1100 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1101 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1102 includedir
=$ac_optarg ;;
1104 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1106 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1107 infodir
=$ac_optarg ;;
1109 -libdir |
--libdir |
--libdi |
--libd)
1111 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1112 libdir
=$ac_optarg ;;
1114 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1115 |
--libexe |
--libex |
--libe)
1116 ac_prev
=libexecdir
;;
1117 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1118 |
--libexe=* |
--libex=* |
--libe=*)
1119 libexecdir
=$ac_optarg ;;
1121 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1122 ac_prev
=localedir
;;
1123 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1124 localedir
=$ac_optarg ;;
1126 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1127 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1128 ac_prev
=localstatedir
;;
1129 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1130 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1131 localstatedir
=$ac_optarg ;;
1133 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1135 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1136 mandir
=$ac_optarg ;;
1138 -nfp |
--nfp |
--nf)
1139 # Obsolete; use --without-fp.
1142 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1143 |
--no-cr |
--no-c |
-n)
1146 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1147 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1150 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1151 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1152 |
--oldin |
--oldi |
--old |
--ol |
--o)
1153 ac_prev
=oldincludedir
;;
1154 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1155 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1156 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1157 oldincludedir
=$ac_optarg ;;
1159 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1161 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1162 prefix
=$ac_optarg ;;
1164 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1165 |
--program-pre |
--program-pr |
--program-p)
1166 ac_prev
=program_prefix
;;
1167 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1168 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1169 program_prefix
=$ac_optarg ;;
1171 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1172 |
--program-suf |
--program-su |
--program-s)
1173 ac_prev
=program_suffix
;;
1174 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1175 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1176 program_suffix
=$ac_optarg ;;
1178 -program-transform-name |
--program-transform-name \
1179 |
--program-transform-nam |
--program-transform-na \
1180 |
--program-transform-n |
--program-transform- \
1181 |
--program-transform |
--program-transfor \
1182 |
--program-transfo |
--program-transf \
1183 |
--program-trans |
--program-tran \
1184 |
--progr-tra |
--program-tr |
--program-t)
1185 ac_prev
=program_transform_name
;;
1186 -program-transform-name=* |
--program-transform-name=* \
1187 |
--program-transform-nam=* |
--program-transform-na=* \
1188 |
--program-transform-n=* |
--program-transform-=* \
1189 |
--program-transform=* |
--program-transfor=* \
1190 |
--program-transfo=* |
--program-transf=* \
1191 |
--program-trans=* |
--program-tran=* \
1192 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1193 program_transform_name
=$ac_optarg ;;
1195 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1197 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1198 pdfdir
=$ac_optarg ;;
1200 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1202 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1205 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1206 |
-silent |
--silent |
--silen |
--sile |
--sil)
1209 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1211 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1213 sbindir
=$ac_optarg ;;
1215 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1216 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1217 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1219 ac_prev
=sharedstatedir
;;
1220 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1221 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1222 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1224 sharedstatedir
=$ac_optarg ;;
1226 -site |
--site |
--sit)
1228 -site=* |
--site=* |
--sit=*)
1231 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1233 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1234 srcdir
=$ac_optarg ;;
1236 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1237 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1238 ac_prev
=sysconfdir
;;
1239 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1240 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1241 sysconfdir
=$ac_optarg ;;
1243 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1244 ac_prev
=target_alias
;;
1245 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1246 target_alias
=$ac_optarg ;;
1248 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1251 -version |
--version |
--versio |
--versi |
--vers |
-V)
1252 ac_init_version
=: ;;
1255 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1258 { echo "$as_me: error: invalid package name: $ac_package" >&2
1259 { (exit 1); exit 1; }; }
1260 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1261 eval with_
$ac_package=\
$ac_optarg ;;
1263 -without-* |
--without-*)
1264 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1267 { echo "$as_me: error: invalid package name: $ac_package" >&2
1268 { (exit 1); exit 1; }; }
1269 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1270 eval with_
$ac_package=no
;;
1273 # Obsolete; use --with-x.
1276 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1277 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1278 ac_prev
=x_includes
;;
1279 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1280 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1281 x_includes
=$ac_optarg ;;
1283 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1284 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1285 ac_prev
=x_libraries
;;
1286 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1287 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1288 x_libraries
=$ac_optarg ;;
1290 -*) { echo "$as_me: error: unrecognized option: $ac_option
1291 Try \`$0 --help' for more information." >&2
1292 { (exit 1); exit 1; }; }
1296 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1299 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1300 { (exit 1); exit 1; }; }
1301 eval $ac_envvar=\
$ac_optarg
1302 export $ac_envvar ;;
1305 # FIXME: should be removed in autoconf 3.0.
1306 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1308 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1315 if test -n "$ac_prev"; then
1316 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1317 { echo "$as_me: error: missing argument to $ac_option" >&2
1318 { (exit 1); exit 1; }; }
1321 # Be sure to have absolute directory names.
1322 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1327 eval ac_val
=\$
$ac_var
1329 [\\/$
]* | ?
:[\\/]* ) continue;;
1330 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1332 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1333 { (exit 1); exit 1; }; }
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1341 target
=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x
; then
1345 if test "x$build_alias" = x
; then
1346 cross_compiling
=maybe
1347 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1355 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1357 test "$silent" = yes && exec 6>/dev
/null
1360 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di
=`ls -di .` &&
1362 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1363 { echo "$as_me: error: Working directory cannot be determined" >&2
1364 { (exit 1); exit 1; }; }
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 { echo "$as_me: error: pwd does not report name of working directory" >&2
1367 { (exit 1); exit 1; }; }
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted
=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir
=`$as_dirname -- "$0" ||
1375 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$0" : 'X\(//\)[^/]' \| \
1377 X"$0" : 'X\(//\)$' \| \
1378 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1402 ac_srcdir_defaulted
=no
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1406 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1407 { (exit 1); exit 1; }; }
1409 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1412 { (exit 1); exit 1; }; }
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1422 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 for ac_var
in $ac_precious_vars; do
1425 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1427 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1432 # Report the --help message.
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1438 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1445 Defaults for the options are specified in brackets.
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1469 For better control, use the options below.
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1496 --build=BUILD configure
for building on BUILD
[guessed
]
1497 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive
) echo "Configuration of asterisk 1.4:";;
1508 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1509 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1510 --enable-dev-mode Turn on developer mode
1511 --disable-largefile omit support
for large files
1514 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1515 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1516 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1517 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1518 --with-curl=PATH use cURL files
in PATH
1519 --with-cap=PATH use POSIX
1.e capabilities files
in PATH
1520 --with-curses=PATH use curses files
in PATH
1521 --with-dahdi=PATH use DAHDI files
in PATH
1522 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1524 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1525 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1526 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1527 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1528 --with-kde=PATH use KDE files
in PATH
1529 --with-ltdl=PATH use libtool files
in PATH
1530 --with-misdn=PATH use mISDN User Library files
in PATH
1531 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1532 --with-ncurses=PATH use ncurses files
in PATH
1533 --with-netsnmp=PATH use Net-SNMP files
in PATH
1534 --with-newt=PATH use newt files
in PATH
1535 --with-odbc=PATH use unixODBC files
in PATH
1536 --with-ogg=PATH use OGG files
in PATH
1537 --with-osptk=PATH use OSP Toolkit files
in PATH
1538 --with-oss=PATH use Open Sound System files
in PATH
1539 --with-popt=PATH use popt files
in PATH
1540 --with-postgres=PATH use PostgreSQL files
in PATH
1541 --with-pri=PATH use ISDN PRI files
in PATH
1542 --with-pwlib=PATH use PWlib files
in PATH
1543 --with-h323=PATH use OpenH323 files
in PATH
1544 --with-radius=PATH use Radius Client files
in PATH
1545 --with-speex=PATH use Speex files
in PATH
1546 --with-speexdsp=PATH use Speexdsp files
in PATH
1547 --with-sqlite=PATH use SQLite files
in PATH
1548 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1549 --with-ssl=PATH use OpenSSL files
in PATH
1550 --with-tds=PATH use FreeTDS files
in PATH
1551 --with-termcap=PATH use Termcap files
in PATH
1552 --with-tinfo=PATH use Term Info files
in PATH
1553 --with-tonezone=PATH use tonezone files
in PATH
1554 --with-usb=PATH use usb files
in PATH
1555 --with-vorbis=PATH use Vorbis files
in PATH
1556 --with-vpb=PATH use Voicetronix API files
in PATH
1557 --with-z=PATH use zlib files
in PATH
1558 --with-zaptel=PATH use Zaptel files
in PATH
1560 Some influential environment variables
:
1561 CC C compiler
command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1564 nonstandard directory
<lib dir
>
1565 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1566 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1567 you have headers
in a nonstandard directory
<include dir
>
1569 CXX C
++ compiler
command
1570 CXXFLAGS C
++ compiler flags
1571 CXXCPP C
++ preprocessor
1573 Use these variables to override the choices made by
`configure' or to help
1574 it to find libraries and programs with nonstandard names/locations.
1576 Report bugs to <www.asterisk.org>.
1581 if test "$ac_init_help" = "recursive"; then
1582 # If there are subdirs, report their specific --help.
1583 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584 test -d "$ac_dir" || continue
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1591 # A ".." for each directory in $ac_dir_suffix.
1592 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1604 .) # We are building in place.
1606 ac_top_srcdir=$ac_top_builddir_sub
1607 ac_abs_top_srcdir=$ac_pwd ;;
1608 [\\/]* | ?:[\\/]* ) # Absolute name.
1609 ac_srcdir=$srcdir$ac_dir_suffix;
1610 ac_top_srcdir=$srcdir
1611 ac_abs_top_srcdir=$srcdir ;;
1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614 ac_top_srcdir=$ac_top_build_prefix$srcdir
1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619 cd "$ac_dir" || { ac_status=$?; continue; }
1620 # Check for guested configure.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1626 $SHELL "$ac_srcdir/configure" --help=recursive
1628 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 cd "$ac_pwd" || { ac_status=$?; break; }
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1637 asterisk configure 1.4
1638 generated by GNU Autoconf 2.61
1640 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1641 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1653 It was created by asterisk $as_me 1.4, which was
1654 generated by GNU Autoconf 2.61. Invocation command line was
1666 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1667 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1668 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1669 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1670 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1672 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1673 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1675 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1676 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1677 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1678 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1679 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1680 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1681 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 test -z "$as_dir" && as_dir=.
1690 echo "PATH: $as_dir"
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1714 ac_must_keep_next=false
1720 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722 | -silent | --silent | --silen | --sile | --sil)
1725 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1728 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731 if test $ac_must_keep_next = true; then
1732 ac_must_keep_next=false # Got value, back to normal.
1735 *=* | --config-cache | -C | -disable-* | --disable-* \
1736 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738 | -with-* | --with-* | -without-* | --without-* | --x)
1739 case "$ac_configure_args0 " in
1740 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743 -* ) ac_must_keep_next=true ;;
1746 ac_configure_args="$ac_configure_args '$ac_arg'"
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log. We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760 # Save into config.log some information that might help in debugging.
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1770 # The following way of writing the cache mishandles newlines in values,
1772 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1773 eval ac_val=\$$ac_var
1777 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1781 _ | IFS | as_nl) ;; #(
1782 *) $as_unset $ac_var ;;
1787 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1788 *${as_nl}ac_space=\ *)
1790 "s/'\''/'\''\\\\'\'''\''/g;
1791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1807 for ac_var in $ac_subst_vars
1809 eval ac_val=\$$ac_var
1811 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 echo "$ac_var='\''$ac_val'\''"
1817 if test -n "$ac_subst_files"; then
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1824 for ac_var in $ac_subst_files
1826 eval ac_val=\$$ac_var
1828 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 echo "$ac_var='\''$ac_val'\''"
1835 if test -s confdefs.h; then
1845 test "$ac_signal" != 0 &&
1846 echo "$as_me: caught signal $ac_signal"
1847 echo "$as_me: exit $exit_status"
1849 rm -f core *.core core.conftest.* &&
1850 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1853 for ac_signal in 1 2 13 15; do
1854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1861 # Predefined preprocessor variables.
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891 set x "$CONFIG_SITE"
1892 elif test "x$prefix" != xNONE; then
1893 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1895 set x "$ac_default_prefix/share/config.site" \
1896 "$ac_default_prefix/etc/config.site"
1901 if test -r "$ac_site_file"; then
1902 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 echo "$as_me: loading site script $ac_site_file" >&6;}
1904 sed 's/^/| /' "$ac_site_file" >&5
1909 if test -r "$cache_file"; then
1910 # Some versions of bash will fail to source /dev/null (special
1911 # files actually), so we avoid doing that.
1912 if test -f "$cache_file"; then
1913 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 echo "$as_me: loading cache $cache_file" >&6;}
1916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917 *) . "./$cache_file";;
1921 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 echo "$as_me: creating cache $cache_file" >&6;}
1926 ac_header_list="$ac_header_list utime.h"
1927 # Check that the precious variables saved in the cache have kept the same
1929 ac_cache_corrupted=false
1930 for ac_var in $ac_precious_vars; do
1931 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1932 eval ac_new_set=\$ac_env_${ac_var}_set
1933 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1934 eval ac_new_val=\$ac_env_${ac_var}_value
1935 case $ac_old_set,$ac_new_set in
1937 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1938 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1941 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1942 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1943 ac_cache_corrupted=: ;;
1946 if test "x$ac_old_val" != "x$ac_new_val"; then
1947 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1949 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1950 echo "$as_me: former value
: $ac_old_val" >&2;}
1951 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1952 echo "$as_me: current value
: $ac_new_val" >&2;}
1953 ac_cache_corrupted=:
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1959 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968 if $ac_cache_corrupted; then
1969 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1970 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1971 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1973 { (exit 1); exit 1; }; }
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 # cross-compile macros
2010 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2011 if test -f "$ac_dir/install-sh"; then
2013 ac_install_sh="$ac_aux_dir/install-sh -c"
2015 elif test -f "$ac_dir/install.sh"; then
2017 ac_install_sh="$ac_aux_dir/install.sh -c"
2019 elif test -f "$ac_dir/shtool"; then
2021 ac_install_sh="$ac_aux_dir/shtool install -c"
2025 if test -z "$ac_aux_dir"; then
2026 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2027 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2028 { (exit 1); exit 1; }; }
2031 # These three variables are undocumented and unsupported,
2032 # and are intended to be withdrawn in a future Autoconf release.
2033 # They can cause serious problems if a builder's source tree is in a directory
2034 # whose full name contains unusual characters.
2035 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2036 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2037 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2040 # Make sure we can run config.sub.
2041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2042 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2043 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2044 { (exit 1); exit 1; }; }
2046 { echo "$as_me:$LINENO: checking build system type" >&5
2047 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2048 if test "${ac_cv_build+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 ac_build_alias=$build_alias
2052 test "x$ac_build_alias" = x &&
2053 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2054 test "x$ac_build_alias" = x &&
2055 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2056 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2057 { (exit 1); exit 1; }; }
2058 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2059 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2060 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2061 { (exit 1); exit 1; }; }
2064 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2065 echo "${ECHO_T}$ac_cv_build" >&6; }
2066 case $ac_cv_build in
2068 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2069 echo "$as_me: error: invalid value of canonical build" >&2;}
2070 { (exit 1); exit 1; }; };;
2073 ac_save_IFS=$IFS; IFS='-'
2079 # Remember, the first character of IFS is used to create $*,
2080 # except with old shells:
2083 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2086 { echo "$as_me:$LINENO: checking host system type" >&5
2087 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2088 if test "${ac_cv_host+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 if test "x$host_alias" = x; then
2092 ac_cv_host=$ac_cv_build
2094 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2095 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2096 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2097 { (exit 1); exit 1; }; }
2101 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2102 echo "${ECHO_T}$ac_cv_host" >&6; }
2105 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2106 echo "$as_me: error: invalid value of canonical host" >&2;}
2107 { (exit 1); exit 1; }; };;
2110 ac_save_IFS=$IFS; IFS='-'
2116 # Remember, the first character of IFS is used to create $*,
2117 # except with old shells:
2120 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2124 # check existence of the package
2127 # specify output header file
2128 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2135 cat >>confdefs.h <<\_ACEOF
2136 #define _GNU_SOURCE 1
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 if test -n "$CC"; then
2175 { echo "$as_me:$LINENO: result: $CC" >&5
2176 echo "${ECHO_T}$CC" >&6; }
2178 { echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6; }
2184 if test -z "$ac_cv_prog_CC"; then
2186 # Extract the first word of "gcc", so it can be a program name with args.
2187 set dummy gcc; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test -n "$ac_ct_CC"; then
2194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_ac_ct_CC="gcc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2214 if test -n "$ac_ct_CC"; then
2215 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2216 echo "${ECHO_T}$ac_ct_CC" >&6; }
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2222 if test "x$ac_ct_CC" = x; then
2225 case $cross_compiling:$ac_tool_warned in
2227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2228 whose name does not start with the host triplet. If you think this
2229 configuration is useful to you, please write to autoconf@gnu.org." >&5
2230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2231 whose name does not start with the host triplet. If you think this
2232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2233 ac_tool_warned=yes ;;
2241 if test -z "$CC"; then
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}cc; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 ac_cv_prog_CC="${ac_tool_prefix}cc"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 if test -n "$CC"; then
2272 { echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6; }
2275 { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2282 if test -z "$CC"; then
2283 # Extract the first word of "cc", so it can be a program name with args.
2284 set dummy cc; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2302 ac_prog_rejected=yes
2306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 if test $ac_prog_rejected = yes; then
2314 # We found a bogon in the path, so make sure we never use it.
2315 set dummy $ac_cv_prog_CC
2317 if test $# != 0; then
2318 # We chose a different compiler from the bogus one.
2319 # However, it has the same basename, so the bogon will be chosen
2320 # first if we set CC to just the basename; use the full file name.
2322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2328 if test -n "$CC"; then
2329 { echo "$as_me:$LINENO: result: $CC" >&5
2330 echo "${ECHO_T}$CC" >&6; }
2332 { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2338 if test -z "$CC"; then
2339 if test -n "$ac_tool_prefix"; then
2340 for ac_prog in cl.exe
2342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_CC+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 if test -n "$CC"; then
2371 { echo "$as_me:$LINENO: result: $CC" >&5
2372 echo "${ECHO_T}$CC" >&6; }
2374 { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2379 test -n "$CC" && break
2382 if test -z "$CC"; then
2384 for ac_prog in cl.exe
2386 # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 if test -n "$ac_ct_CC"; then
2394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_ac_ct_CC="$ac_prog"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2414 if test -n "$ac_ct_CC"; then
2415 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2416 echo "${ECHO_T}$ac_ct_CC" >&6; }
2418 { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2423 test -n "$ac_ct_CC" && break
2426 if test "x$ac_ct_CC" = x; then
2429 case $cross_compiling:$ac_tool_warned in
2431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&5
2434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet. If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2437 ac_tool_warned=yes ;;
2446 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2447 See \`config.log
' for more details." >&5
2448 echo "$as_me: error: no acceptable C compiler found in \$PATH
2449 See \`config.log' for more details.
" >&2;}
2450 { (exit 1); exit 1; }; }
2452 # Provide some information about the compiler.
2453 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2454 ac_compiler=`set X $ac_compile; echo $2`
2455 { (ac_try="$ac_compiler --version >&5"
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compiler --version >&5") 2>&5
2463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2464 (exit $ac_status); }
2465 { (ac_try="$ac_compiler -v >&5"
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_compiler -v >&5") 2>&5
2473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2474 (exit $ac_status); }
2475 { (ac_try="$ac_compiler -V >&5"
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_compiler -V >&5") 2>&5
2483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2484 (exit $ac_status); }
2486 cat >conftest.$ac_ext <<_ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2501 ac_clean_files_save=$ac_clean_files
2502 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2503 # Try to create an executable without -o first, disregard a.out.
2504 # It will help us diagnose broken compilers, and finding out an intuition
2506 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2507 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2508 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2510 # List of possible output files, starting from the most likely.
2511 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2512 # only as a last resort. b.out is created by i960 compilers.
2513 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2515 # The IRIX 6 linker writes into existing files which may not be
2516 # executable, retaining their permissions. Remove them first so a
2517 # subsequent execution test works.
2519 for ac_file in $ac_files
2522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2523 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2528 if { (ac_try="$ac_link_default"
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_link_default") 2>&5
2536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2537 (exit $ac_status); }; then
2538 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2539 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2540 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2541 # so that the user can short-circuit this test for compilers unknown to
2543 for ac_file in $ac_files ''
2545 test -f "$ac_file" || continue
2547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2550 # We found the default executable, but exeext='' is most
2554 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2558 # We set ac_cv_exeext here because the later test for it is not
2559 # safe: cross compilers may not add the suffix if given an `-o'
2560 # argument, so we may need to know it at that point already.
2561 # Even if this section looks crufty: it has the advantage of
2568 test "$ac_cv_exeext" = no && ac_cv_exeext=
2574 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2575 echo "${ECHO_T}$ac_file" >&6; }
2576 if test -z "$ac_file"; then
2577 echo "$as_me: failed program was
:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2580 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2581 See \
`config.log' for more details." >&5
2582 echo "$as_me: error: C compiler cannot create executables
2583 See \`config.log
' for more details." >&2;}
2584 { (exit 77); exit 77; }; }
2587 ac_exeext=$ac_cv_exeext
2589 # Check that the compiler produces executables we can run. If not, either
2590 # the compiler is broken, or we cross compile.
2591 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2592 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2594 # If not cross compiling, check that we can run a simple program.
2595 if test "$cross_compiling" != yes; then
2596 if { ac_try='.
/$ac_file'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 if test "$cross_compiling" = maybe; then
2611 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2612 If you meant to cross compile, use \`--host'.
2613 See \
`config.log' for more details." >&5
2614 echo "$as_me: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details.
" >&2;}
2617 { (exit 1); exit 1; }; }
2621 { echo "$as_me:$LINENO: result
: yes" >&5
2622 echo "${ECHO_T}yes" >&6; }
2624 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2625 ac_clean_files=$ac_clean_files_save
2626 # Check that the compiler produces executables we can run. If not, either
2627 # the compiler is broken, or we cross compile.
2628 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2629 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2630 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2631 echo "${ECHO_T}$cross_compiling" >&6; }
2633 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2634 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2635 if { (ac_try="$ac_link"
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_link") 2>&5
2643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2644 (exit $ac_status); }; then
2645 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2646 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2647 # work properly (i.e., refer to `conftest.exe'), while it won't with
2649 for ac_file in conftest.exe conftest conftest.*; do
2650 test -f "$ac_file" || continue
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2653 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2659 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2660 See \
`config.log' for more details." >&5
2661 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2662 See \`config.log
' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2666 rm -f conftest$ac_cv_exeext
2667 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2668 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2670 rm -f conftest.$ac_ext
2671 EXEEXT=$ac_cv_exeext
2673 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2674 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2675 if test "${ac_cv_objext+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 rm -f conftest.o conftest.obj
2694 if { (ac_try="$ac_compile"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 for ac_file in conftest.o conftest.obj conftest.*; do
2705 test -f "$ac_file" || continue;
2707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2708 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2713 echo "$as_me: failed program was:" >&5
2714 sed 's
/^
/|
/' conftest.$ac_ext >&5
2716 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details.
" >&5
2718 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2719 See \
`config.log' for more details." >&2;}
2720 { (exit 1); exit 1; }; }
2723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2725 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2726 echo "${ECHO_T}$ac_cv_objext" >&6; }
2727 OBJEXT=$ac_cv_objext
2729 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2730 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2731 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 cat >conftest.$ac_ext <<_ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2752 rm -f conftest.$ac_objext
2753 if { (ac_try="$ac_compile"
2755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2756 *) ac_try_echo
=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compile") 2>conftest.er1
2761 grep -v '^ *+' conftest.er1
>conftest.err
2763 cat conftest.err
>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } && {
2766 test -z "$ac_c_werror_flag" ||
2767 test ! -s conftest.err
2768 } && test -s conftest.
$ac_objext; then
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.
$ac_ext >&5
2777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2778 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2781 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2782 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2783 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2784 ac_test_CFLAGS
=${CFLAGS+set}
2785 ac_save_CFLAGS
=$CFLAGS
2786 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2787 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_cc_g+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 ac_save_c_werror_flag
=$ac_c_werror_flag
2792 ac_c_werror_flag
=yes
2795 cat >conftest.
$ac_ext <<_ACEOF
2798 cat confdefs.h
>>conftest.
$ac_ext
2799 cat >>conftest.
$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2810 rm -f conftest.
$ac_objext
2811 if { (ac_try
="$ac_compile"
2813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compile") 2>conftest.er1
2819 grep -v '^ *+' conftest.er1 >conftest.err
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } && {
2824 test -z "$ac_c_werror_flag" ||
2825 test ! -s conftest.err
2826 } && test -s conftest.$ac_objext; then
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2848 rm -f conftest.$ac_objext
2849 if { (ac_try="$ac_compile"
2851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2852 *) ac_try_echo
=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_compile") 2>conftest.er1
2857 grep -v '^ *+' conftest.er1
>conftest.err
2859 cat conftest.err
>&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest.
$ac_objext; then
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.
$ac_ext >&5
2870 ac_c_werror_flag
=$ac_save_c_werror_flag
2872 cat >conftest.
$ac_ext <<_ACEOF
2875 cat confdefs.h
>>conftest.
$ac_ext
2876 cat >>conftest.
$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2887 rm -f conftest.
$ac_objext
2888 if { (ac_try
="$ac_compile"
2890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compile") 2>conftest.er1
2896 grep -v '^ *+' conftest.er1 >conftest.err
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } && {
2901 test -z "$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest.$ac_objext; then
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919 ac_c_werror_flag=$ac_save_c_werror_flag
2921 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2922 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2923 if test "$ac_test_CFLAGS" = set; then
2924 CFLAGS=$ac_save_CFLAGS
2925 elif test $ac_cv_prog_cc_g = yes; then
2926 if test "$GCC" = yes; then
2932 if test "$GCC" = yes; then
2938 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2939 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_cc_c89+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 ac_cv_prog_cc_c89=no
2945 cat >conftest.$ac_ext <<_ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2953 #include <sys/types.h>
2954 #include <sys/stat.h>
2955 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2956 struct buf { int x; };
2957 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2958 static char *e (p, i)
2964 static char *f (char * (*g) (char **, int), char **p, ...)
2969 s = g (p, va_arg (v,int));
2974 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2975 function prototypes and stuff, but not '\xHH' hex character constants.
2976 These don't provoke an error unfortunately, instead are silently treated
2977 as 'x'. The following induces an error, until -std is added to get
2978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2979 array size at least. It's necessary to write '\x00'==0 to get something
2980 that's true only with -std. */
2981 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2983 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2984 inside strings and character constants. */
2986 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2988 int test (int i, double x);
2989 struct s1 {int (*f) (int a);};
2990 struct s2 {int (*f) (double a);};
2991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2997 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3002 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005 CC="$ac_save_CC $ac_arg"
3006 rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3010 *) ac_try_echo
=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3015 grep -v '^ *+' conftest.er1
>conftest.err
3017 cat conftest.err
>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } && {
3020 test -z "$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3022 } && test -s conftest.
$ac_objext; then
3023 ac_cv_prog_cc_c89
=$ac_arg
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.
$ac_ext >&5
3031 rm -f core conftest.err conftest.
$ac_objext
3032 test "x$ac_cv_prog_cc_c89" != "xno" && break
3034 rm -f conftest.
$ac_ext
3039 case "x$ac_cv_prog_cc_c89" in
3041 { echo "$as_me:$LINENO: result: none needed" >&5
3042 echo "${ECHO_T}none needed" >&6; } ;;
3044 { echo "$as_me:$LINENO: result: unsupported" >&5
3045 echo "${ECHO_T}unsupported" >&6; } ;;
3047 CC
="$CC $ac_cv_prog_cc_c89"
3048 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3049 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3054 ac_cpp
='$CPP $CPPFLAGS'
3055 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3061 ac_cpp
='$CPP $CPPFLAGS'
3062 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3065 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3067 # On Suns, sometimes $CPP names a directory.
3068 if test -n "$CPP" && test -d "$CPP"; then
3071 if test -z "$CPP"; then
3072 if test "${ac_cv_prog_CPP+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 # Double quotes because CPP needs to be expanded
3076 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3079 for ac_c_preproc_warn_flag
in '' yes
3081 # Use a header file that comes with gcc, so configuring glibc
3082 # with a fresh cross-compiler works.
3083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3084 # <limits.h> exists even on freestanding compilers.
3085 # On the NeXT, cc -E runs the code through the compiler's parser,
3086 # not just through cpp. "Syntax error" is here to catch this case.
3087 cat >conftest.
$ac_ext <<_ACEOF
3090 cat confdefs.h
>>conftest.
$ac_ext
3091 cat >>conftest.
$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3094 # include <limits.h>
3096 # include <assert.h>
3100 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } >/dev/null && {
3113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3114 test ! -s conftest.err
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 # Broken: fails on valid input.
3125 rm -f conftest.err conftest.$ac_ext
3127 # OK, works on sane cases. Now check whether nonexistent headers
3128 # can be detected and how.
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <ac_nonexistent.h>
3137 if { (ac_try="$ac_cpp conftest.$ac_ext"
3139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3140 *) ac_try_echo
=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1
>conftest.err
3147 cat conftest.err
>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } >/dev
/null
&& {
3150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3151 test ! -s conftest.err
3153 # Broken: success on invalid input.
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.
$ac_ext >&5
3159 # Passes both tests.
3164 rm -f conftest.err conftest.
$ac_ext
3167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3168 rm -f conftest.err conftest.
$ac_ext
3169 if $ac_preproc_ok; then
3181 { echo "$as_me:$LINENO: result: $CPP" >&5
3182 echo "${ECHO_T}$CPP" >&6; }
3184 for ac_c_preproc_warn_flag
in '' yes
3186 # Use a header file that comes with gcc, so configuring glibc
3187 # with a fresh cross-compiler works.
3188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3189 # <limits.h> exists even on freestanding compilers.
3190 # On the NeXT, cc -E runs the code through the compiler's parser,
3191 # not just through cpp. "Syntax error" is here to catch this case.
3192 cat >conftest.
$ac_ext <<_ACEOF
3195 cat confdefs.h
>>conftest.
$ac_ext
3196 cat >>conftest.
$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3199 # include <limits.h>
3201 # include <assert.h>
3205 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3213 grep -v '^ *+' conftest.er1 >conftest.err
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } >/dev/null && {
3218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3219 test ! -s conftest.err
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 # Broken: fails on valid input.
3230 rm -f conftest.err conftest.$ac_ext
3232 # OK, works on sane cases. Now check whether nonexistent headers
3233 # can be detected and how.
3234 cat >conftest.$ac_ext <<_ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3240 #include <ac_nonexistent.h>
3242 if { (ac_try="$ac_cpp conftest.$ac_ext"
3244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3245 *) ac_try_echo
=$ac_try;;
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3250 grep -v '^ *+' conftest.er1
>conftest.err
3252 cat conftest.err
>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } >/dev
/null
&& {
3255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3256 test ! -s conftest.err
3258 # Broken: success on invalid input.
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.
$ac_ext >&5
3264 # Passes both tests.
3269 rm -f conftest.err conftest.
$ac_ext
3272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3273 rm -f conftest.err conftest.
$ac_ext
3274 if $ac_preproc_ok; then
3277 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3278 See \`config.log' for more details." >&5
3279 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3280 See \`config.log' for more details." >&2;}
3281 { (exit 1); exit 1; }; }
3285 ac_cpp
='$CPP $CPPFLAGS'
3286 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3291 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3292 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3293 if test "${ac_cv_path_GREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 # Extract the first word of "grep ggrep" to use in msg output
3297 if test -z "$GREP"; then
3298 set dummy
grep ggrep
; ac_prog_name
=$2
3299 if test "${ac_cv_path_GREP+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 ac_path_GREP_found
=false
3303 # Loop through the user's path and test for each of PROGNAME-LIST
3304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3305 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3308 test -z "$as_dir" && as_dir
=.
3309 for ac_prog
in grep ggrep
; do
3310 for ac_exec_ext
in '' $ac_executable_extensions; do
3311 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3312 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3313 # Check for GNU ac_path_GREP and select it if it is found.
3314 # Check for GNU $ac_path_GREP
3315 case `"$ac_path_GREP" --version 2>&1` in
3317 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3320 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3323 cat "conftest.in" "conftest.in" >"conftest.tmp"
3324 mv "conftest.tmp" "conftest.in"
3325 cp "conftest.in" "conftest.nl"
3326 echo 'GREP' >> "conftest.nl"
3327 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3328 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3329 ac_count
=`expr $ac_count + 1`
3330 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3331 # Best one so far, save it but keep looking for a better one
3332 ac_cv_path_GREP
="$ac_path_GREP"
3333 ac_path_GREP_max
=$ac_count
3335 # 10*(2^10) chars as input seems more than enough
3336 test $ac_count -gt 10 && break
3338 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3342 $ac_path_GREP_found && break 3
3352 GREP
="$ac_cv_path_GREP"
3353 if test -z "$GREP"; then
3354 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3355 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3356 { (exit 1); exit 1; }; }
3360 ac_cv_path_GREP
=$GREP
3365 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3366 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3367 GREP
="$ac_cv_path_GREP"
3370 { echo "$as_me:$LINENO: checking for egrep" >&5
3371 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3372 if test "${ac_cv_path_EGREP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3376 then ac_cv_path_EGREP
="$GREP -E"
3378 # Extract the first word of "egrep" to use in msg output
3379 if test -z "$EGREP"; then
3380 set dummy
egrep; ac_prog_name
=$2
3381 if test "${ac_cv_path_EGREP+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 ac_path_EGREP_found
=false
3385 # Loop through the user's path and test for each of PROGNAME-LIST
3386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3387 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3390 test -z "$as_dir" && as_dir
=.
3391 for ac_prog
in egrep; do
3392 for ac_exec_ext
in '' $ac_executable_extensions; do
3393 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3394 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3395 # Check for GNU ac_path_EGREP and select it if it is found.
3396 # Check for GNU $ac_path_EGREP
3397 case `"$ac_path_EGREP" --version 2>&1` in
3399 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3402 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3405 cat "conftest.in" "conftest.in" >"conftest.tmp"
3406 mv "conftest.tmp" "conftest.in"
3407 cp "conftest.in" "conftest.nl"
3408 echo 'EGREP' >> "conftest.nl"
3409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3410 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3411 ac_count
=`expr $ac_count + 1`
3412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3413 # Best one so far, save it but keep looking for a better one
3414 ac_cv_path_EGREP
="$ac_path_EGREP"
3415 ac_path_EGREP_max
=$ac_count
3417 # 10*(2^10) chars as input seems more than enough
3418 test $ac_count -gt 10 && break
3420 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3424 $ac_path_EGREP_found && break 3
3434 EGREP
="$ac_cv_path_EGREP"
3435 if test -z "$EGREP"; then
3436 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3437 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3438 { (exit 1); exit 1; }; }
3442 ac_cv_path_EGREP
=$EGREP
3448 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3449 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3450 EGREP
="$ac_cv_path_EGREP"
3454 { echo "$as_me:$LINENO: checking for AIX" >&5
3455 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3456 cat >conftest.
$ac_ext <<_ACEOF
3459 cat confdefs.h
>>conftest.
$ac_ext
3460 cat >>conftest.
$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3468 $EGREP "yes" >/dev
/null
2>&1; then
3469 { echo "$as_me:$LINENO: result: yes" >&5
3470 echo "${ECHO_T}yes" >&6; }
3471 cat >>confdefs.h
<<\_ACEOF
3472 #define _ALL_SOURCE 1
3476 { echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6; }
3482 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3483 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3484 if test "${ac_cv_header_stdc+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 cat >conftest.
$ac_ext <<_ACEOF
3490 cat confdefs.h
>>conftest.
$ac_ext
3491 cat >>conftest.
$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3506 rm -f conftest.
$ac_objext
3507 if { (ac_try
="$ac_compile"
3509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_compile") 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } && {
3520 test -z "$ac_c_werror_flag" ||
3521 test ! -s conftest.err
3522 } && test -s conftest.$ac_objext; then
3523 ac_cv_header_stdc=yes
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 ac_cv_header_stdc=no
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 if test $ac_cv_header_stdc = yes; then
3534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3545 $EGREP "memchr" >/dev/null 2>&1; then
3548 ac_cv_header_stdc=no
3554 if test $ac_cv_header_stdc = yes; then
3555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3566 $EGREP "free" >/dev/null 2>&1; then
3569 ac_cv_header_stdc=no
3575 if test $ac_cv_header_stdc = yes; then
3576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3577 if test "$cross_compiling" = yes; then
3580 cat >conftest.$ac_ext <<_ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3588 #if ((' ' & 0x0FF) == 0x020)
3589 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3590 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3592 # define ISLOWER(c) \
3593 (('a' <= (c) && (c) <= 'i') \
3594 || ('j' <= (c) && (c) <= 'r') \
3595 || ('s' <= (c) && (c) <= 'z'))
3596 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3604 for (i = 0; i < 256; i++)
3605 if (XOR (islower (i), ISLOWER (i))
3606 || toupper (i) != TOUPPER (i))
3611 rm -f conftest$ac_exeext
3612 if { (ac_try="$ac_link"
3614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3615 *) ac_try_echo
=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_link") 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3622 { (case "(($ac_try" in
3623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_try") 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; }; then
3633 echo "$as_me: program exited with status $ac_status" >&5
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3638 ac_cv_header_stdc=no
3640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3646 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3647 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3648 if test $ac_cv_header_stdc = yes; then
3650 cat >>confdefs.h <<\_ACEOF
3651 #define STDC_HEADERS 1
3656 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3666 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3667 inttypes.h stdint.h unistd.h
3669 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 cat >conftest.$ac_ext <<_ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681 $ac_includes_default
3683 #include <$ac_header>
3685 rm -f conftest.$ac_objext
3686 if { (ac_try="$ac_compile"
3688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3689 *) ac_try_echo
=$ac_try;;
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_compile") 2>conftest.er1
3694 grep -v '^ *+' conftest.er1
>conftest.err
3696 cat conftest.err
>&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } && {
3699 test -z "$ac_c_werror_flag" ||
3700 test ! -s conftest.err
3701 } && test -s conftest.
$ac_objext; then
3702 eval "$as_ac_Header=yes"
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.
$ac_ext >&5
3707 eval "$as_ac_Header=no"
3710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3712 ac_res
=`eval echo '${'$as_ac_Header'}'`
3713 { echo "$as_me:$LINENO: result: $ac_res" >&5
3714 echo "${ECHO_T}$ac_res" >&6; }
3715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3716 cat >>confdefs.h
<<_ACEOF
3717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3725 if test "${ac_cv_header_minix_config_h+set}" = set; then
3726 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3727 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3728 if test "${ac_cv_header_minix_config_h+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3732 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3734 # Is the header compilable?
3735 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3736 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3737 cat >conftest.
$ac_ext <<_ACEOF
3740 cat confdefs.h
>>conftest.
$ac_ext
3741 cat >>conftest.
$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 $ac_includes_default
3744 #include <minix/config.h>
3746 rm -f conftest.
$ac_objext
3747 if { (ac_try
="$ac_compile"
3749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3753 (eval "$ac_compile") 2>conftest.er1
3755 grep -v '^ *+' conftest.er1 >conftest.err
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } && {
3760 test -z "$ac_c_werror_flag" ||
3761 test ! -s conftest.err
3762 } && test -s conftest.$ac_objext; then
3763 ac_header_compiler=yes
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3768 ac_header_compiler=no
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3773 echo "${ECHO_T}$ac_header_compiler" >&6; }
3775 # Is the header present?
3776 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3777 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3778 cat >conftest.$ac_ext <<_ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 #include <minix/config.h>
3786 if { (ac_try="$ac_cpp conftest.$ac_ext"
3788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3789 *) ac_try_echo
=$ac_try;;
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3794 grep -v '^ *+' conftest.er1
>conftest.err
3796 cat conftest.err
>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } >/dev
/null
&& {
3799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3802 ac_header_preproc
=yes
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.
$ac_ext >&5
3807 ac_header_preproc
=no
3810 rm -f conftest.err conftest.
$ac_ext
3811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3812 echo "${ECHO_T}$ac_header_preproc" >&6; }
3814 # So? What about this header?
3815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3817 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3818 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3819 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3820 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3821 ac_header_preproc
=yes
3824 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3825 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3827 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3829 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3830 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3831 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3832 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3833 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3834 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3835 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3837 ## ------------------------------- ##
3838 ## Report this to www.asterisk.org ##
3839 ## ------------------------------- ##
3841 ) |
sed "s/^/$as_me: WARNING: /" >&2
3844 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3845 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3846 if test "${ac_cv_header_minix_config_h+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 ac_cv_header_minix_config_h
=$ac_header_preproc
3851 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3852 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3855 if test $ac_cv_header_minix_config_h = yes; then
3862 if test "$MINIX" = yes; then
3864 cat >>confdefs.h
<<\_ACEOF
3865 #define _POSIX_SOURCE 1
3869 cat >>confdefs.h
<<\_ACEOF
3870 #define _POSIX_1_SOURCE 2
3874 cat >>confdefs.h
<<\_ACEOF
3890 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3891 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3892 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 cat >conftest.
$ac_ext <<_ACEOF
3898 cat confdefs.h
>>conftest.
$ac_ext
3899 cat >>conftest.
$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3902 # define __EXTENSIONS__ 1
3903 $ac_includes_default
3912 rm -f conftest.
$ac_objext
3913 if { (ac_try
="$ac_compile"
3915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3929 ac_cv_safe_to_define___extensions__=yes
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 ac_cv_safe_to_define___extensions__=no
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3940 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3941 test $ac_cv_safe_to_define___extensions__ = yes &&
3942 cat >>confdefs.h <<\_ACEOF
3943 #define __EXTENSIONS__ 1
3946 cat >>confdefs.h <<\_ACEOF
3947 #define _POSIX_PTHREAD_SEMANTICS 1
3950 cat >>confdefs.h <<\_ACEOF
3951 #define _TANDEM_SOURCE 1
3954 # note- does not work on FreeBSD
3956 case "${host_os}" in
3958 ac_default_prefix=/usr/local
3959 CPPFLAGS=-I/usr/local/include
3960 LDFLAGS=-L/usr/local/lib
3963 ac_default_prefix=/usr
3964 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
3965 if test ${sysconfdir} = '${prefix}/etc'; then
3968 if test ${mandir} = '${prefix}/man'; then
3969 mandir=/usr/share/man
3975 if test ${localstatedir} = '${prefix}/var'; then
3979 BUILD_PLATFORM=${build}
3980 BUILD_CPU=${build_cpu}
3981 BUILD_VENDOR=${build_vendor}
3982 BUILD_OS=${build_os}
3989 HOST_PLATFORM=${host}
3990 HOST_CPU=${host_cpu}
3991 HOST_VENDOR=${host_vendor}
3999 case "${host_os}" in
4020 if test -n "$ac_tool_prefix"; then
4021 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4022 set dummy ${ac_tool_prefix}uname; ac_word=$2
4023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4025 if test "${ac_cv_path_UNAME+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4040 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 UNAME=$ac_cv_path_UNAME
4052 if test -n "$UNAME"; then
4053 { echo "$as_me:$LINENO: result: $UNAME" >&5
4054 echo "${ECHO_T}$UNAME" >&6; }
4056 { echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6; }
4062 if test -z "$ac_cv_path_UNAME"; then
4064 # Extract the first word of "uname", so it can be a program name with args.
4065 set dummy uname; ac_word=$2
4066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4068 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 case $ac_pt_UNAME in
4073 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4095 if test -n "$ac_pt_UNAME"; then
4096 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4097 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4099 { echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6; }
4103 if test "x$ac_pt_UNAME" = x; then
4106 case $cross_compiling:$ac_tool_warned in
4108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4109 whose name does not start with the host triplet. If you think this
4110 configuration is useful to you, please write to autoconf@gnu.org." >&5
4111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4112 whose name does not start with the host triplet. If you think this
4113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4114 ac_tool_warned=yes ;;
4119 UNAME="$ac_cv_path_UNAME"
4122 if test ! x"${UNAME}" = xNo; then
4123 PBX_OSREV=$(${UNAME} -r)
4133 # cross-compile checks
4134 if test "${cross_compiling}" = "yes";
4136 if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_CC+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 if test -n "$CC"; then
4166 { echo "$as_me:$LINENO: result: $CC" >&5
4167 echo "${ECHO_T}$CC" >&6; }
4169 { echo "$as_me:$LINENO: result: no" >&5
4170 echo "${ECHO_T}no" >&6; }
4175 if test -z "$ac_cv_prog_CC"; then
4177 # Extract the first word of "gcc", so it can be a program name with args.
4178 set dummy gcc; ac_word=$2
4179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 if test -n "$ac_ct_CC"; then
4185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_ac_ct_CC="gcc"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4205 if test -n "$ac_ct_CC"; then
4206 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4207 echo "${ECHO_T}$ac_ct_CC" >&6; }
4209 { echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6; }
4213 if test "x$ac_ct_CC" = x; then
4216 case $cross_compiling:$ac_tool_warned in
4218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4219 whose name does not start with the host triplet. If you think this
4220 configuration is useful to you, please write to autoconf@gnu.org." >&5
4221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4222 whose name does not start with the host triplet. If you think this
4223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4224 ac_tool_warned=yes ;;
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4234 set dummy ${ac_tool_prefix}g++; ac_word=$2
4235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4237 if test "${ac_cv_prog_CXX+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 if test -n "$CXX"; then
4241 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 if test -n "$CXX"; then
4262 { echo "$as_me:$LINENO: result: $CXX" >&5
4263 echo "${ECHO_T}$CXX" >&6; }
4265 { echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6; }
4271 if test -z "$ac_cv_prog_CXX"; then
4273 # Extract the first word of "g++", so it can be a program name with args.
4274 set dummy g++; ac_word=$2
4275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4277 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 if test -n "$ac_ct_CXX"; then
4281 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_ac_ct_CXX="g++"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4301 if test -n "$ac_ct_CXX"; then
4302 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4303 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4305 { echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6; }
4309 if test "x$ac_ct_CXX" = x; then
4312 case $cross_compiling:$ac_tool_warned in
4314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4315 whose name does not start with the host triplet. If you think this
4316 configuration is useful to you, please write to autoconf@gnu.org." >&5
4317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4318 whose name does not start with the host triplet. If you think this
4319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4320 ac_tool_warned=yes ;;
4325 CXX="$ac_cv_prog_CXX"
4328 if test -n "$ac_tool_prefix"; then
4329 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4330 set dummy ${ac_tool_prefix}ld; ac_word=$2
4331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4333 if test "${ac_cv_prog_LD+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 if test -n "$LD"; then
4337 ac_cv_prog_LD="$LD" # Let the user override the test.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_prog_LD="${ac_tool_prefix}ld"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 if test -n "$LD"; then
4358 { echo "$as_me:$LINENO: result: $LD" >&5
4359 echo "${ECHO_T}$LD" >&6; }
4361 { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4367 if test -z "$ac_cv_prog_LD"; then
4369 # Extract the first word of "ld", so it can be a program name with args.
4370 set dummy ld; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 if test -n "$ac_ct_LD"; then
4377 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_prog_ac_ct_LD="ld"
4387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4397 if test -n "$ac_ct_LD"; then
4398 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4399 echo "${ECHO_T}$ac_ct_LD" >&6; }
4401 { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4405 if test "x$ac_ct_LD" = x; then
4408 case $cross_compiling:$ac_tool_warned in
4410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4411 whose name does not start with the host triplet. If you think this
4412 configuration is useful to you, please write to autoconf@gnu.org." >&5
4413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4414 whose name does not start with the host triplet. If you think this
4415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4416 ac_tool_warned=yes ;;
4424 if test -n "$ac_tool_prefix"; then
4425 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4426 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_RANLIB+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$RANLIB"; then
4433 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 RANLIB=$ac_cv_prog_RANLIB
4453 if test -n "$RANLIB"; then
4454 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4455 echo "${ECHO_T}$RANLIB" >&6; }
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4463 if test -z "$ac_cv_prog_RANLIB"; then
4464 ac_ct_RANLIB=$RANLIB
4465 # Extract the first word of "ranlib", so it can be a program name with args.
4466 set dummy ranlib; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$ac_ct_RANLIB"; then
4473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_ac_ct_RANLIB="ranlib"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4493 if test -n "$ac_ct_RANLIB"; then
4494 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4495 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4501 if test "x$ac_ct_RANLIB" = x; then
4504 case $cross_compiling:$ac_tool_warned in
4506 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4507 whose name does not start with the host triplet. If you think this
4508 configuration is useful to you, please write to autoconf@gnu.org." >&5
4509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4510 whose name does not start with the host triplet. If you think this
4511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4512 ac_tool_warned=yes ;;
4514 RANLIB=$ac_ct_RANLIB
4517 RANLIB="$ac_cv_prog_RANLIB"
4522 # Checks for programs.
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528 if test -n "$ac_tool_prefix"; then
4529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_prog_CC+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 if test -n "$CC"; then
4537 ac_cv_prog_CC="$CC" # Let the user override the test.
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 if test -n "$CC"; then
4558 { echo "$as_me:$LINENO: result: $CC" >&5
4559 echo "${ECHO_T}$CC" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4567 if test -z "$ac_cv_prog_CC"; then
4569 # Extract the first word of "gcc", so it can be a program name with args.
4570 set dummy gcc; ac_word=$2
4571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 if test -n "$ac_ct_CC"; then
4577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_CC="gcc"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4597 if test -n "$ac_ct_CC"; then
4598 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4599 echo "${ECHO_T}$ac_ct_CC" >&6; }
4601 { echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6; }
4605 if test "x$ac_ct_CC" = x; then
4608 case $cross_compiling:$ac_tool_warned in
4610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4611 whose name does not start with the host triplet. If you think this
4612 configuration is useful to you, please write to autoconf@gnu.org." >&5
4613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4614 whose name does not start with the host triplet. If you think this
4615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4616 ac_tool_warned=yes ;;
4624 if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4627 set dummy ${ac_tool_prefix}cc; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_CC+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4643 ac_cv_prog_CC="${ac_tool_prefix}cc"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 if test -n "$CC"; then
4655 { echo "$as_me:$LINENO: result: $CC" >&5
4656 echo "${ECHO_T}$CC" >&6; }
4658 { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4665 if test -z "$CC"; then
4666 # Extract the first word of "cc", so it can be a program name with args.
4667 set dummy cc; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_CC+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 if test -n "$CC"; then
4674 ac_cv_prog_CC="$CC" # Let the user override the test.
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4685 ac_prog_rejected=yes
4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 if test $ac_prog_rejected = yes; then
4697 # We found a bogon in the path, so make sure we never use it.
4698 set dummy $ac_cv_prog_CC
4700 if test $# != 0; then
4701 # We chose a different compiler from the bogus one.
4702 # However, it has the same basename, so the bogon will be chosen
4703 # first if we set CC to just the basename; use the full file name.
4705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4711 if test -n "$CC"; then
4712 { echo "$as_me:$LINENO: result: $CC" >&5
4713 echo "${ECHO_T}$CC" >&6; }
4715 { echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6; }
4721 if test -z "$CC"; then
4722 if test -n "$ac_tool_prefix"; then
4723 for ac_prog in cl.exe
4725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 if test -n "$CC"; then
4754 { echo "$as_me:$LINENO: result: $CC" >&5
4755 echo "${ECHO_T}$CC" >&6; }
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4762 test -n "$CC" && break
4765 if test -z "$CC"; then
4767 for ac_prog in cl.exe
4769 # Extract the first word of "$ac_prog", so it can be a program name with args.
4770 set dummy $ac_prog; ac_word=$2
4771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 if test -n "$ac_ct_CC"; then
4777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_ac_ct_CC="$ac_prog"
4787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4797 if test -n "$ac_ct_CC"; then
4798 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4799 echo "${ECHO_T}$ac_ct_CC" >&6; }
4801 { echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6; }
4806 test -n "$ac_ct_CC" && break
4809 if test "x$ac_ct_CC" = x; then
4812 case $cross_compiling:$ac_tool_warned in
4814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4815 whose name does not start with the host triplet. If you think this
4816 configuration is useful to you, please write to autoconf@gnu.org." >&5
4817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4818 whose name does not start with the host triplet. If you think this
4819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4820 ac_tool_warned=yes ;;
4829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4830 See \`config.log
' for more details." >&5
4831 echo "$as_me: error: no acceptable C compiler found in \$PATH
4832 See \`config.log' for more details.
" >&2;}
4833 { (exit 1); exit 1; }; }
4835 # Provide some information about the compiler.
4836 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4837 ac_compiler=`set X $ac_compile; echo $2`
4838 { (ac_try="$ac_compiler --version >&5"
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_compiler --version >&5") 2>&5
4846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4847 (exit $ac_status); }
4848 { (ac_try="$ac_compiler -v >&5"
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_compiler -v >&5") 2>&5
4856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4857 (exit $ac_status); }
4858 { (ac_try="$ac_compiler -V >&5"
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_compiler -V >&5") 2>&5
4866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4867 (exit $ac_status); }
4869 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4870 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4872 echo $ECHO_N "(cached
) $ECHO_C" >&6
4874 cat >conftest.$ac_ext <<_ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4892 rm -f conftest.$ac_objext
4893 if { (ac_try="$ac_compile"
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4911 echo "$as_me: failed program was
:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4921 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4922 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4923 GCC=`test $ac_compiler_gnu = yes && echo yes`
4924 ac_test_CFLAGS=${CFLAGS+set}
4925 ac_save_CFLAGS=$CFLAGS
4926 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4927 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4928 if test "${ac_cv_prog_cc_g+set}" = set; then
4929 echo $ECHO_N "(cached
) $ECHO_C" >&6
4931 ac_save_c_werror_flag=$ac_c_werror_flag
4932 ac_c_werror_flag=yes
4935 cat >conftest.$ac_ext <<_ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4950 rm -f conftest.$ac_objext
4951 if { (ac_try="$ac_compile"
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4957 (eval "$ac_compile") 2>conftest.er1
4959 grep -v '^ *+' conftest.er1 >conftest.err
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4963 (exit $ac_status); } && {
4964 test -z "$ac_c_werror_flag" ||
4965 test ! -s conftest.err
4966 } && test -s conftest.$ac_objext; then
4969 echo "$as_me: failed program was
:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4988 rm -f conftest.$ac_objext
4989 if { (ac_try="$ac_compile"
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_compile") 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5001 (exit $ac_status); } && {
5002 test -z "$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 } && test -s conftest.$ac_objext; then
5007 echo "$as_me: failed program was
:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5010 ac_c_werror_flag=$ac_save_c_werror_flag
5012 cat >conftest.$ac_ext <<_ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5027 rm -f conftest.$ac_objext
5028 if { (ac_try="$ac_compile"
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_compile") 2>conftest.er1
5036 grep -v '^ *+' conftest.er1 >conftest.err
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5040 (exit $ac_status); } && {
5041 test -z "$ac_c_werror_flag" ||
5042 test ! -s conftest.err
5043 } && test -s conftest.$ac_objext; then
5046 echo "$as_me: failed program was
:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059 ac_c_werror_flag=$ac_save_c_werror_flag
5061 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5062 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5063 if test "$ac_test_CFLAGS" = set; then
5064 CFLAGS=$ac_save_CFLAGS
5065 elif test $ac_cv_prog_cc_g = yes; then
5066 if test "$GCC" = yes; then
5072 if test "$GCC" = yes; then
5078 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5079 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5080 if test "${ac_cv_prog_cc_c89+set}" = set; then
5081 echo $ECHO_N "(cached
) $ECHO_C" >&6
5083 ac_cv_prog_cc_c89=no
5085 cat >conftest.$ac_ext <<_ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5093 #include <sys/types.h>
5094 #include <sys/stat.h>
5095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5096 struct buf { int x; };
5097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5098 static char *e (p, i)
5104 static char *f (char * (*g) (char **, int), char **p, ...)
5109 s = g (p, va_arg (v,int));
5114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5115 function prototypes and stuff, but not '\xHH' hex character constants.
5116 These don't provoke an error unfortunately, instead are silently treated
5117 as 'x'. The following induces an error, until -std is added to get
5118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5119 array size at least. It's necessary to write '\x00'==0 to get something
5120 that's true only with -std. */
5121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5124 inside strings and character constants. */
5126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5128 int test (int i, double x);
5129 struct s1 {int (*f) (int a);};
5130 struct s2 {int (*f) (double a);};
5131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5145 CC="$ac_save_CC $ac_arg"
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_objext; then
5163 ac_cv_prog_cc_c89=$ac_arg
5165 echo "$as_me: failed program was
:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5171 rm -f core conftest.err conftest.$ac_objext
5172 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5174 rm -f conftest.$ac_ext
5179 case "x
$ac_cv_prog_cc_c89" in
5181 { echo "$as_me:$LINENO: result
: none needed
" >&5
5182 echo "${ECHO_T}none needed
" >&6; } ;;
5184 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5185 echo "${ECHO_T}unsupported
" >&6; } ;;
5187 CC="$CC $ac_cv_prog_cc_c89"
5188 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5189 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5194 ac_cpp='$CPP $CPPFLAGS'
5195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200 ac_cpp='$CXXCPP $CPPFLAGS'
5201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5204 if test -z "$CXX"; then
5205 if test -n "$CCC"; then
5208 if test -n "$ac_tool_prefix"; then
5209 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5214 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5215 if test "${ac_cv_prog_CXX+set}" = set; then
5216 echo $ECHO_N "(cached
) $ECHO_C" >&6
5218 if test -n "$CXX"; then
5219 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5229 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5239 if test -n "$CXX"; then
5240 { echo "$as_me:$LINENO: result
: $CXX" >&5
5241 echo "${ECHO_T}$CXX" >&6; }
5243 { echo "$as_me:$LINENO: result
: no
" >&5
5244 echo "${ECHO_T}no
" >&6; }
5248 test -n "$CXX" && break
5251 if test -z "$CXX"; then
5253 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5255 # Extract the first word of "$ac_prog", so it can be a program name with args.
5256 set dummy $ac_prog; ac_word=$2
5257 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5258 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5259 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5260 echo $ECHO_N "(cached
) $ECHO_C" >&6
5262 if test -n "$ac_ct_CXX"; then
5263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_ac_ct_CXX="$ac_prog"
5273 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5282 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5283 if test -n "$ac_ct_CXX"; then
5284 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5285 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5287 { echo "$as_me:$LINENO: result
: no
" >&5
5288 echo "${ECHO_T}no
" >&6; }
5292 test -n "$ac_ct_CXX" && break
5295 if test "x
$ac_ct_CXX" = x; then
5298 case $cross_compiling:$ac_tool_warned in
5300 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5301 whose name does not start with the
host triplet. If you think this
5302 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5303 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5304 whose name does not start with the
host triplet. If you think this
5305 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5306 ac_tool_warned=yes ;;
5314 # Provide some information about the compiler.
5315 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5316 ac_compiler=`set X $ac_compile; echo $2`
5317 { (ac_try="$ac_compiler --version >&5"
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_compiler --version >&5") 2>&5
5325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5326 (exit $ac_status); }
5327 { (ac_try="$ac_compiler -v >&5"
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_compiler -v >&5") 2>&5
5335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5336 (exit $ac_status); }
5337 { (ac_try="$ac_compiler -V >&5"
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_compiler -V >&5") 2>&5
5345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5346 (exit $ac_status); }
5348 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5349 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5350 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5351 echo $ECHO_N "(cached
) $ECHO_C" >&6
5353 cat >conftest.$ac_ext <<_ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5371 rm -f conftest.$ac_objext
5372 if { (ac_try="$ac_compile"
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5384 (exit $ac_status); } && {
5385 test -z "$ac_cxx_werror_flag" ||
5386 test ! -s conftest.err
5387 } && test -s conftest.$ac_objext; then
5390 echo "$as_me: failed program was
:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5400 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5401 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5402 GXX=`test $ac_compiler_gnu = yes && echo yes`
5403 ac_test_CXXFLAGS=${CXXFLAGS+set}
5404 ac_save_CXXFLAGS=$CXXFLAGS
5405 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5406 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5407 if test "${ac_cv_prog_cxx_g+set}" = set; then
5408 echo $ECHO_N "(cached
) $ECHO_C" >&6
5410 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5411 ac_cxx_werror_flag=yes
5414 cat >conftest.$ac_ext <<_ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5429 rm -f conftest.$ac_objext
5430 if { (ac_try="$ac_compile"
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_compile") 2>conftest.er1
5438 grep -v '^ *+' conftest.er1 >conftest.err
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5442 (exit $ac_status); } && {
5443 test -z "$ac_cxx_werror_flag" ||
5444 test ! -s conftest.err
5445 } && test -s conftest.$ac_objext; then
5446 ac_cv_prog_cxx_g=yes
5448 echo "$as_me: failed program was
:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5467 rm -f conftest.$ac_objext
5468 if { (ac_try="$ac_compile"
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_compile") 2>conftest.er1
5476 grep -v '^ *+' conftest.er1 >conftest.err
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5480 (exit $ac_status); } && {
5481 test -z "$ac_cxx_werror_flag" ||
5482 test ! -s conftest.err
5483 } && test -s conftest.$ac_objext; then
5486 echo "$as_me: failed program was
:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5491 cat >conftest.$ac_ext <<_ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5506 rm -f conftest.$ac_objext
5507 if { (ac_try="$ac_compile"
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_compile") 2>conftest.er1
5515 grep -v '^ *+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5519 (exit $ac_status); } && {
5520 test -z "$ac_cxx_werror_flag" ||
5521 test ! -s conftest.err
5522 } && test -s conftest.$ac_objext; then
5523 ac_cv_prog_cxx_g=yes
5525 echo "$as_me: failed program was
:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5540 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5541 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5542 if test "$ac_test_CXXFLAGS" = set; then
5543 CXXFLAGS=$ac_save_CXXFLAGS
5544 elif test $ac_cv_prog_cxx_g = yes; then
5545 if test "$GXX" = yes; then
5551 if test "$GXX" = yes; then
5558 ac_cpp='$CPP $CPPFLAGS'
5559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564 ac_cpp='$CPP $CPPFLAGS'
5565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5568 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5569 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5570 # On Suns, sometimes $CPP names a directory.
5571 if test -n "$CPP" && test -d "$CPP"; then
5574 if test -z "$CPP"; then
5575 if test "${ac_cv_prog_CPP+set}" = set; then
5576 echo $ECHO_N "(cached
) $ECHO_C" >&6
5578 # Double quotes because CPP needs to be expanded
5579 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5582 for ac_c_preproc_warn_flag in '' yes
5584 # Use a header file that comes with gcc, so configuring glibc
5585 # with a fresh cross-compiler works.
5586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5587 # <limits.h> exists even on freestanding compilers.
5588 # On the NeXT, cc -E runs the code through the compiler's parser,
5589 # not just through cpp. "Syntax error
" is here to catch this case.
5590 cat >conftest.$ac_ext <<_ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5597 # include <limits.h>
5599 # include <assert.h>
5603 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5608 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5611 grep -v '^ *+' conftest.er1 >conftest.err
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5615 (exit $ac_status); } >/dev/null && {
5616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5621 echo "$as_me: failed program was
:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 # Broken: fails on valid input.
5628 rm -f conftest.err conftest.$ac_ext
5630 # OK, works on sane cases. Now check whether nonexistent headers
5631 # can be detected and how.
5632 cat >conftest.$ac_ext <<_ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <ac_nonexistent.h>
5640 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5645 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5652 (exit $ac_status); } >/dev/null && {
5653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5654 test ! -s conftest.err
5656 # Broken: success on invalid input.
5659 echo "$as_me: failed program was
:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5662 # Passes both tests.
5667 rm -f conftest.err conftest.$ac_ext
5670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5671 rm -f conftest.err conftest.$ac_ext
5672 if $ac_preproc_ok; then
5684 { echo "$as_me:$LINENO: result
: $CPP" >&5
5685 echo "${ECHO_T}$CPP" >&6; }
5687 for ac_c_preproc_warn_flag in '' yes
5689 # Use a header file that comes with gcc, so configuring glibc
5690 # with a fresh cross-compiler works.
5691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5692 # <limits.h> exists even on freestanding compilers.
5693 # On the NeXT, cc -E runs the code through the compiler's parser,
5694 # not just through cpp. "Syntax error
" is here to catch this case.
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5702 # include <limits.h>
5704 # include <assert.h>
5708 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5716 grep -v '^ *+' conftest.er1 >conftest.err
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5720 (exit $ac_status); } >/dev/null && {
5721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5722 test ! -s conftest.err
5726 echo "$as_me: failed program was
:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5729 # Broken: fails on valid input.
5733 rm -f conftest.err conftest.$ac_ext
5735 # OK, works on sane cases. Now check whether nonexistent headers
5736 # can be detected and how.
5737 cat >conftest.$ac_ext <<_ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 #include <ac_nonexistent.h>
5745 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5753 grep -v '^ *+' conftest.er1 >conftest.err
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5757 (exit $ac_status); } >/dev/null && {
5758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5761 # Broken: success on invalid input.
5764 echo "$as_me: failed program was
:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 # Passes both tests.
5772 rm -f conftest.err conftest.$ac_ext
5775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5776 rm -f conftest.err conftest.$ac_ext
5777 if $ac_preproc_ok; then
5780 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5781 See \
`config.log' for more details." >&5
5782 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5783 See \`config.log
' for more details." >&2;}
5784 { (exit 1); exit 1; }; }
5788 ac_cpp='$CPP $CPPFLAGS'
5789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5790 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794 ac_cpp='$CXXCPP $CPPFLAGS'
5795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5796 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5798 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5799 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5800 if test -z "$CXXCPP"; then
5801 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 # Double quotes because CXXCPP needs to be expanded
5805 for CXXCPP in "$CXX -E" "/lib/cpp"
5808 for ac_cxx_preproc_warn_flag in '' yes
5810 # Use a header file that comes with gcc, so configuring glibc
5811 # with a fresh cross-compiler works.
5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 # <limits.h> exists even on freestanding compilers.
5814 # On the NeXT, cc -E runs the code through the compiler's parser
,
5815 # not just through cpp. "Syntax error" is here to catch this case.
5816 cat >conftest.
$ac_ext <<_ACEOF
5819 cat confdefs.h
>>conftest.
$ac_ext
5820 cat >>conftest.
$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5823 # include <limits.h>
5825 # include <assert.h>
5829 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5837 grep -v '^ *+' conftest.er1 >conftest.err
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } >/dev/null && {
5842 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5843 test ! -s conftest.err
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 # Broken: fails on valid input.
5854 rm -f conftest.err conftest.$ac_ext
5856 # OK, works on sane cases. Now check whether nonexistent headers
5857 # can be detected and how.
5858 cat >conftest.$ac_ext <<_ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <ac_nonexistent.h>
5866 if { (ac_try="$ac_cpp conftest.$ac_ext"
5868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5869 *) ac_try_echo
=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5874 grep -v '^ *+' conftest.er1
>conftest.err
5876 cat conftest.err
>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } >/dev
/null
&& {
5879 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5880 test ! -s conftest.err
5882 # Broken: success on invalid input.
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.
$ac_ext >&5
5888 # Passes both tests.
5893 rm -f conftest.err conftest.
$ac_ext
5896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5897 rm -f conftest.err conftest.
$ac_ext
5898 if $ac_preproc_ok; then
5903 ac_cv_prog_CXXCPP
=$CXXCPP
5906 CXXCPP
=$ac_cv_prog_CXXCPP
5908 ac_cv_prog_CXXCPP
=$CXXCPP
5910 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5911 echo "${ECHO_T}$CXXCPP" >&6; }
5913 for ac_cxx_preproc_warn_flag
in '' yes
5915 # Use a header file that comes with gcc, so configuring glibc
5916 # with a fresh cross-compiler works.
5917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5918 # <limits.h> exists even on freestanding compilers.
5919 # On the NeXT, cc -E runs the code through the compiler's parser,
5920 # not just through cpp. "Syntax error" is here to catch this case.
5921 cat >conftest.
$ac_ext <<_ACEOF
5924 cat confdefs.h
>>conftest.
$ac_ext
5925 cat >>conftest.
$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5928 # include <limits.h>
5930 # include <assert.h>
5934 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1 >conftest.err
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } >/dev/null && {
5947 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5948 test ! -s conftest.err
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 # Broken: fails on valid input.
5959 rm -f conftest.err conftest.$ac_ext
5961 # OK, works on sane cases. Now check whether nonexistent headers
5962 # can be detected and how.
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include <ac_nonexistent.h>
5971 if { (ac_try="$ac_cpp conftest.$ac_ext"
5973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5974 *) ac_try_echo
=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1
>conftest.err
5981 cat conftest.err
>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } >/dev
/null
&& {
5984 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5985 test ! -s conftest.err
5987 # Broken: success on invalid input.
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.
$ac_ext >&5
5993 # Passes both tests.
5998 rm -f conftest.err conftest.
$ac_ext
6001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6002 rm -f conftest.err conftest.
$ac_ext
6003 if $ac_preproc_ok; then
6006 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6007 See \`config.log' for more details." >&5
6008 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6009 See \`config.log' for more details." >&2;}
6010 { (exit 1); exit 1; }; }
6014 ac_cpp
='$CPP $CPPFLAGS'
6015 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6019 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6020 # the developers regenerating the configure script don't have to install libtool.
6021 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6022 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6023 if test "${ac_cv_path_SED+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6027 for ac_i
in 1 2 3 4 5 6 7; do
6028 ac_script
="$ac_script$as_nl$ac_script"
6030 echo "$ac_script" |
sed 99q
>conftest.
sed
6031 $as_unset ac_script || ac_script
=
6032 # Extract the first word of "sed gsed" to use in msg output
6033 if test -z "$SED"; then
6034 set dummy
sed gsed
; ac_prog_name
=$2
6035 if test "${ac_cv_path_SED+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 ac_path_SED_found
=false
6039 # Loop through the user's path and test for each of PROGNAME-LIST
6040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6044 test -z "$as_dir" && as_dir
=.
6045 for ac_prog
in sed gsed
; do
6046 for ac_exec_ext
in '' $ac_executable_extensions; do
6047 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6048 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6049 # Check for GNU ac_path_SED and select it if it is found.
6050 # Check for GNU $ac_path_SED
6051 case `"$ac_path_SED" --version 2>&1` in
6053 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6056 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6059 cat "conftest.in" "conftest.in" >"conftest.tmp"
6060 mv "conftest.tmp" "conftest.in"
6061 cp "conftest.in" "conftest.nl"
6062 echo '' >> "conftest.nl"
6063 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6064 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6065 ac_count
=`expr $ac_count + 1`
6066 if test $ac_count -gt ${ac_path_SED_max-0}; then
6067 # Best one so far, save it but keep looking for a better one
6068 ac_cv_path_SED
="$ac_path_SED"
6069 ac_path_SED_max
=$ac_count
6071 # 10*(2^10) chars as input seems more than enough
6072 test $ac_count -gt 10 && break
6074 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6078 $ac_path_SED_found && break 3
6088 SED
="$ac_cv_path_SED"
6089 if test -z "$SED"; then
6090 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6091 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6092 { (exit 1); exit 1; }; }
6100 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6101 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6102 SED
="$ac_cv_path_SED"
6105 { echo "$as_me:$LINENO: checking for egrep" >&5
6106 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_egrep+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6111 then ac_cv_prog_egrep
='grep -E'
6112 else ac_cv_prog_egrep
='egrep'
6115 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6116 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6117 EGREP
=$ac_cv_prog_egrep
6121 # Check whether --with-gnu-ld was given.
6122 if test "${with_gnu_ld+set}" = set; then
6123 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6129 if test "$GCC" = yes; then
6130 # Check if gcc -print-prog-name=ld gives a path.
6131 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6132 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6135 # gcc leaves a trailing carriage return which upsets mingw
6136 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6138 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6141 # Accept absolute paths.
6143 re_direlt
='/[^/][^/]*/\.\./'
6144 # Canonicalize the pathname of ld
6145 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6146 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6147 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6149 test -z "$LD" && LD
="$ac_prog"
6152 # If it fails, then pretend we aren't using GCC.
6156 # If it is relative, then search for the first ld in PATH.
6160 elif test "$with_gnu_ld" = yes; then
6161 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6162 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6164 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6165 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6167 if test "${lt_cv_path_LD+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 if test -z "$LD"; then
6171 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6172 for ac_dir
in $PATH; do
6174 test -z "$ac_dir" && ac_dir
=.
6175 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6176 lt_cv_path_LD
="$ac_dir/$ac_prog"
6177 # Check to see if the program is GNU ld. I'd rather use --version,
6178 # but apparently some variants of GNU ld only accept -v.
6179 # Break only if it was the GNU/non-GNU ld that we prefer.
6180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6181 *GNU
* |
*'with BFD'*)
6182 test "$with_gnu_ld" != no
&& break
6185 test "$with_gnu_ld" != yes && break
6192 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6197 if test -n "$LD"; then
6198 { echo "$as_me:$LINENO: result: $LD" >&5
6199 echo "${ECHO_T}$LD" >&6; }
6201 { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6204 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6205 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6206 { (exit 1); exit 1; }; }
6207 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6208 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6209 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6213 case `$LD -v 2>&1 </dev/null` in
6214 *GNU
* |
*'with BFD'*)
6215 lt_cv_prog_gnu_ld
=yes
6218 lt_cv_prog_gnu_ld
=no
6222 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6223 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6224 with_gnu_ld
=$lt_cv_prog_gnu_ld
6226 # note - does not work on freebsd
6227 for ac_prog
in gawk mawk nawk
awk
6229 # Extract the first word of "$ac_prog", so it can be a program name with args.
6230 set dummy
$ac_prog; ac_word
=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_prog_AWK+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 if test -n "$AWK"; then
6237 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir
=.
6244 for ac_exec_ext
in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_prog_AWK
="$ac_prog"
6247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 if test -n "$AWK"; then
6258 { echo "$as_me:$LINENO: result: $AWK" >&5
6259 echo "${ECHO_T}$AWK" >&6; }
6261 { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6266 test -n "$AWK" && break
6269 # Find a good install program. We prefer a C program (faster),
6270 # so one script is as good as another. But avoid the broken or
6271 # incompatible versions:
6272 # SysV /etc/install, /usr/sbin/install
6273 # SunOS /usr/etc/install
6274 # IRIX /sbin/install
6276 # AmigaOS /C/install, which installs bootblocks on floppy discs
6277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6280 # OS/2's system install, which has a completely different semantic
6281 # ./install, which can be erroneously created by make from ./install.sh.
6282 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6283 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6284 if test -z "$INSTALL"; then
6285 if test "${ac_cv_path_install+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir
=.
6293 # Account for people who put trailing slashes in PATH elements.
6295 .
/ | .
// |
/cC
/* | \
6296 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6297 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6300 # OSF1 and SCO ODT 3.0 have their own names for install.
6301 # Don't use installbsd from OSF since it installs stuff as root
6303 for ac_prog
in ginstall scoinst
install; do
6304 for ac_exec_ext
in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6306 if test $ac_prog = install &&
6307 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6308 # AIX install. It has an incompatible calling convention.
6310 elif test $ac_prog = install &&
6311 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6312 # program-specific install script used by HP pwplus--don't use.
6315 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6328 if test "${ac_cv_path_install+set}" = set; then
6329 INSTALL
=$ac_cv_path_install
6331 # As a last resort, use the slow shell script. Don't cache a
6332 # value for INSTALL within a source directory, because that will
6333 # break other packages using the cache if that directory is
6334 # removed, or if the value is a relative name.
6335 INSTALL
=$ac_install_sh
6338 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6339 echo "${ECHO_T}$INSTALL" >&6; }
6341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6342 # It thinks the first close brace ends the variable substitution.
6343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6347 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6349 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6350 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6352 if test "$LN_S" = "ln -s"; then
6353 { echo "$as_me:$LINENO: result: yes" >&5
6354 echo "${ECHO_T}yes" >&6; }
6356 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6357 echo "${ECHO_T}no, using $LN_S" >&6; }
6360 if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6362 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_prog_RANLIB+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 if test -n "$RANLIB"; then
6369 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir
=.
6376 for ac_exec_ext
in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 RANLIB
=$ac_cv_prog_RANLIB
6389 if test -n "$RANLIB"; then
6390 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6391 echo "${ECHO_T}$RANLIB" >&6; }
6393 { echo "$as_me:$LINENO: result: no" >&5
6394 echo "${ECHO_T}no" >&6; }
6399 if test -z "$ac_cv_prog_RANLIB"; then
6400 ac_ct_RANLIB
=$RANLIB
6401 # Extract the first word of "ranlib", so it can be a program name with args.
6402 set dummy ranlib
; ac_word
=$2
6403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 if test -n "$ac_ct_RANLIB"; then
6409 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6415 test -z "$as_dir" && as_dir
=.
6416 for ac_exec_ext
in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6429 if test -n "$ac_ct_RANLIB"; then
6430 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6431 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6433 { echo "$as_me:$LINENO: result: no" >&5
6434 echo "${ECHO_T}no" >&6; }
6437 if test "x$ac_ct_RANLIB" = x
; then
6440 case $cross_compiling:$ac_tool_warned in
6442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6443 whose name does not start with the host triplet. If you think this
6444 configuration is useful to you, please write to autoconf@gnu.org." >&5
6445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6446 whose name does not start with the host triplet. If you think this
6447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6448 ac_tool_warned
=yes ;;
6450 RANLIB
=$ac_ct_RANLIB
6453 RANLIB
="$ac_cv_prog_RANLIB"
6456 { echo "$as_me:$LINENO: checking for GNU make" >&5
6457 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6458 if test "${GNU_MAKE+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 GNU_MAKE
='Not Found' ;
6462 GNU_MAKE_VERSION_MAJOR
=0 ;
6463 GNU_MAKE_VERSION_MINOR
=0 ;
6464 for a
in make gmake gnumake
; do
6465 if test -z "$a" ; then continue ; fi ;
6466 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6468 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6469 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6475 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6476 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6477 if test "x$GNU_MAKE" = "xNot Found" ; then
6478 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6479 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6480 { (exit 1); exit 1; }; }
6486 if test -n "$ac_tool_prefix"; then
6487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6488 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_path_STRIP+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6503 test -z "$as_dir" && as_dir
=.
6504 for ac_exec_ext
in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 STRIP
=$ac_cv_path_STRIP
6518 if test -n "$STRIP"; then
6519 { echo "$as_me:$LINENO: result: $STRIP" >&5
6520 echo "${ECHO_T}$STRIP" >&6; }
6522 { echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6; }
6528 if test -z "$ac_cv_path_STRIP"; then
6530 # Extract the first word of "strip", so it can be a program name with args.
6531 set dummy strip
; ac_word
=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 case $ac_pt_STRIP in
6539 ac_cv_path_ac_pt_STRIP
="$ac_pt_STRIP" # Let the user override the test with a path.
6542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir
=.
6547 for ac_exec_ext
in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_path_ac_pt_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 ac_pt_STRIP
=$ac_cv_path_ac_pt_STRIP
6561 if test -n "$ac_pt_STRIP"; then
6562 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6563 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6565 { echo "$as_me:$LINENO: result: no" >&5
6566 echo "${ECHO_T}no" >&6; }
6569 if test "x$ac_pt_STRIP" = x
; then
6572 case $cross_compiling:$ac_tool_warned in
6574 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6575 whose name does not start with the host triplet. If you think this
6576 configuration is useful to you, please write to autoconf@gnu.org." >&5
6577 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6578 whose name does not start with the host triplet. If you think this
6579 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6580 ac_tool_warned
=yes ;;
6585 STRIP
="$ac_cv_path_STRIP"
6588 if test -n "$ac_tool_prefix"; then
6589 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6590 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6593 if test "${ac_cv_path_AR+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6605 test -z "$as_dir" && as_dir
=.
6606 for ac_exec_ext
in '' $ac_executable_extensions; do
6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 if test -n "$AR"; then
6621 { echo "$as_me:$LINENO: result: $AR" >&5
6622 echo "${ECHO_T}$AR" >&6; }
6624 { echo "$as_me:$LINENO: result: no" >&5
6625 echo "${ECHO_T}no" >&6; }
6630 if test -z "$ac_cv_path_AR"; then
6632 # Extract the first word of "ar", so it can be a program name with args.
6633 set dummy
ar; ac_word
=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 ac_cv_path_ac_pt_AR
="$ac_pt_AR" # Let the user override the test with a path.
6644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir
=.
6649 for ac_exec_ext
in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_path_ac_pt_AR
="$as_dir/$ac_word$ac_exec_ext"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 ac_pt_AR
=$ac_cv_path_ac_pt_AR
6663 if test -n "$ac_pt_AR"; then
6664 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6665 echo "${ECHO_T}$ac_pt_AR" >&6; }
6667 { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6671 if test "x$ac_pt_AR" = x
; then
6674 case $cross_compiling:$ac_tool_warned in
6676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6677 whose name does not start with the host triplet. If you think this
6678 configuration is useful to you, please write to autoconf@gnu.org." >&5
6679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6680 whose name does not start with the host triplet. If you think this
6681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6682 ac_tool_warned
=yes ;;
6692 if test "x$with_gnu_ld" = "xyes" ; then
6697 # Extract the first word of "awk", so it can be a program name with args.
6698 set dummy
awk; ac_word
=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_AWK+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
6709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir
=.
6714 for ac_exec_ext
in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_path_AWK
="$as_dir/$ac_word$ac_exec_ext"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK
=":"
6729 if test -n "$AWK"; then
6730 { echo "$as_me:$LINENO: result: $AWK" >&5
6731 echo "${ECHO_T}$AWK" >&6; }
6733 { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6738 # Extract the first word of "grep", so it can be a program name with args.
6739 set dummy
grep; ac_word
=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_path_GREP+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir
=.
6755 for ac_exec_ext
in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
6769 GREP
=$ac_cv_path_GREP
6770 if test -n "$GREP"; then
6771 { echo "$as_me:$LINENO: result: $GREP" >&5
6772 echo "${ECHO_T}$GREP" >&6; }
6774 { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6779 # Extract the first word of "find", so it can be a program name with args.
6780 set dummy
find; ac_word
=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_path_FIND+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6795 test -z "$as_dir" && as_dir
=.
6796 for ac_exec_ext
in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
6810 FIND
=$ac_cv_path_FIND
6811 if test -n "$FIND"; then
6812 { echo "$as_me:$LINENO: result: $FIND" >&5
6813 echo "${ECHO_T}$FIND" >&6; }
6815 { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6820 # Extract the first word of "compress", so it can be a program name with args.
6821 set dummy
compress; ac_word
=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_COMPRESS+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
6832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir
=.
6837 for ac_exec_ext
in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
6851 COMPRESS
=$ac_cv_path_COMPRESS
6852 if test -n "$COMPRESS"; then
6853 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6854 echo "${ECHO_T}$COMPRESS" >&6; }
6856 { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6861 # Extract the first word of "basename", so it can be a program name with args.
6862 set dummy
basename; ac_word
=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_path_BASENAME+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
6873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6877 test -z "$as_dir" && as_dir
=.
6878 for ac_exec_ext
in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
6892 BASENAME
=$ac_cv_path_BASENAME
6893 if test -n "$BASENAME"; then
6894 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6895 echo "${ECHO_T}$BASENAME" >&6; }
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6902 # Extract the first word of "id", so it can be a program name with args.
6903 set dummy id
; ac_word
=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_path_ID+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
6914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6918 test -z "$as_dir" && as_dir
=.
6919 for ac_exec_ext
in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
6934 if test -n "$ID"; then
6935 { echo "$as_me:$LINENO: result: $ID" >&5
6936 echo "${ECHO_T}$ID" >&6; }
6938 { echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6; }
6943 # Extract the first word of "dirname", so it can be a program name with args.
6944 set dummy
dirname; ac_word
=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_path_DIRNAME+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
6955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir
=.
6960 for ac_exec_ext
in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
6974 DIRNAME
=$ac_cv_path_DIRNAME
6975 if test -n "$DIRNAME"; then
6976 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6977 echo "${ECHO_T}$DIRNAME" >&6; }
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6984 # Extract the first word of "sh", so it can be a program name with args.
6985 set dummy sh
; ac_word
=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_path_SHELL+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
6996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir
=.
7001 for ac_exec_ext
in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
7015 SHELL
=$ac_cv_path_SHELL
7016 if test -n "$SHELL"; then
7017 { echo "$as_me:$LINENO: result: $SHELL" >&5
7018 echo "${ECHO_T}$SHELL" >&6; }
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7025 # Extract the first word of "ln", so it can be a program name with args.
7026 set dummy
ln; ac_word
=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_path_LN+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
7037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir
=.
7042 for ac_exec_ext
in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
7057 if test -n "$LN"; then
7058 { echo "$as_me:$LINENO: result: $LN" >&5
7059 echo "${ECHO_T}$LN" >&6; }
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7066 # Extract the first word of "dot", so it can be a program name with args.
7067 set dummy dot
; ac_word
=$2
7068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070 if test "${ac_cv_path_DOT+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7082 test -z "$as_dir" && as_dir
=.
7083 for ac_exec_ext
in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
7098 if test -n "$DOT"; then
7099 { echo "$as_me:$LINENO: result: $DOT" >&5
7100 echo "${ECHO_T}$DOT" >&6; }
7102 { echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6; }
7107 # Extract the first word of "wget", so it can be a program name with args.
7108 set dummy wget
; ac_word
=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_path_WGET+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
7119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7123 test -z "$as_dir" && as_dir
=.
7124 for ac_exec_ext
in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
7138 WGET
=$ac_cv_path_WGET
7139 if test -n "$WGET"; then
7140 { echo "$as_me:$LINENO: result: $WGET" >&5
7141 echo "${ECHO_T}$WGET" >&6; }
7143 { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7148 if test "${WGET}" != ":" ; then
7151 # Extract the first word of "fetch", so it can be a program name with args.
7152 set dummy fetch
; ac_word
=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_path_FETCH+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7167 test -z "$as_dir" && as_dir
=.
7168 for ac_exec_ext
in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7170 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7182 FETCH
=$ac_cv_path_FETCH
7183 if test -n "$FETCH"; then
7184 { echo "$as_me:$LINENO: result: $FETCH" >&5
7185 echo "${ECHO_T}$FETCH" >&6; }
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7196 if test -n "$ac_tool_prefix"; then
7197 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7198 set dummy
${ac_tool_prefix}soxmix
; ac_word
=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 if test -n "$SOXMIX"; then
7205 ac_cv_prog_SOXMIX
="$SOXMIX" # Let the user override the test.
7207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir
=.
7212 for ac_exec_ext
in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_SOXMIX
="${ac_tool_prefix}soxmix"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 SOXMIX
=$ac_cv_prog_SOXMIX
7225 if test -n "$SOXMIX"; then
7226 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7227 echo "${ECHO_T}$SOXMIX" >&6; }
7229 { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7235 if test -z "$ac_cv_prog_SOXMIX"; then
7236 ac_ct_SOXMIX
=$SOXMIX
7237 # Extract the first word of "soxmix", so it can be a program name with args.
7238 set dummy soxmix
; ac_word
=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 if test -n "$ac_ct_SOXMIX"; then
7245 ac_cv_prog_ac_ct_SOXMIX
="$ac_ct_SOXMIX" # Let the user override the test.
7247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir
=.
7252 for ac_exec_ext
in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_prog_ac_ct_SOXMIX
="soxmix"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 ac_ct_SOXMIX
=$ac_cv_prog_ac_ct_SOXMIX
7265 if test -n "$ac_ct_SOXMIX"; then
7266 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7267 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7269 { echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6; }
7273 if test "x$ac_ct_SOXMIX" = x
; then
7276 case $cross_compiling:$ac_tool_warned in
7278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7279 whose name does not start with the host triplet. If you think this
7280 configuration is useful to you, please write to autoconf@gnu.org." >&5
7281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7282 whose name does not start with the host triplet. If you think this
7283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7284 ac_tool_warned
=yes ;;
7286 SOXMIX
=$ac_ct_SOXMIX
7289 SOXMIX
="$ac_cv_prog_SOXMIX"
7292 if test "${SOXMIX}" != ":" ; then
7294 cat >>confdefs.h
<<\_ACEOF
7295 #define HAVE_SOXMIX 1
7304 ac_cpp
='$CPP $CPPFLAGS'
7305 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7306 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7311 # We used to check for pthread.h first, but this fails if pthread.h
7312 # requires special compiler flags (e.g. on True64 or Sequent).
7313 # It gets checked for in the link test anyway.
7315 # First of all, check if the user has set any of the PTHREAD_LIBS,
7316 # etcetera environment variables, and if threads linking works using
7318 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
7319 save_CFLAGS
="$CFLAGS"
7320 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7322 LIBS
="$PTHREAD_LIBS $LIBS"
7323 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7324 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7325 cat >conftest.
$ac_ext <<_ACEOF
7328 cat confdefs.h
>>conftest.
$ac_ext
7329 cat >>conftest.
$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7332 /* Override any GCC internal prototype to avoid an error.
7333 Use char because int might match the return type of a GCC
7334 builtin and then its argument prototype would still apply. */
7338 char pthread_join ();
7342 return pthread_join ();
7347 rm -f conftest.
$ac_objext conftest
$ac_exeext
7348 if { (ac_try
="$ac_link"
7350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_link") 2>conftest.er1
7356 grep -v '^ *+' conftest.er1 >conftest.err
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest$ac_exeext &&
7364 $as_test_x conftest$ac_exeext; then
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7374 conftest$ac_exeext conftest.$ac_ext
7375 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7376 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7377 if test x"$acx_pthread_ok" = xno; then
7382 CFLAGS="$save_CFLAGS"
7385 # We must check for the threads library under a number of different
7386 # names; the ordering is very important because some systems
7387 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7388 # libraries is broken (non-POSIX).
7390 # Create a list of thread flags to try. Items starting with a "-" are
7391 # C compiler flags, and other items are library names, except for "none"
7392 # which indicates that we try without any flags at all, and "pthread-config"
7393 # which is a program returning the flags for the Pth emulation library.
7395 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7397 # The ordering *is* (sometimes) important. Some notes on the
7398 # individual items follow:
7400 # pthreads: AIX (must check this before -lpthread)
7401 # none: in case threads are in libc; should be tried before -Kthread and
7402 # other compiler flags to prevent continual compiler warnings
7403 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7404 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7405 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7406 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7407 # -pthreads: Solaris/gcc
7408 # -mthreads: Mingw32/gcc, Lynx/gcc
7409 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7410 # doesn't hurt to check since this sometimes defines pthreads too;
7411 # also defines -D_REENTRANT)
7412 # ... -mt is also the pthreads flag for HP/aCC
7413 # pthread: Linux, etcetera
7414 # --thread-safe: KAI C++
7415 # pthread-config: use pthread-config program (for GNU Pth library)
7417 case "${host_cpu}-${host_os}" in
7420 # On Solaris (at least, for some versions), libc contains stubbed
7421 # (non-functional) versions of the pthreads routines, so link-based
7422 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7423 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7424 # a function called by this macro, so we could check for that, but
7425 # who knows whether they'll stub that too in a future libc.) So,
7426 # we'll just look for -pthreads and -lpthread first:
7428 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7432 if test x"$acx_pthread_ok" = xno; then
7433 for flag in $acx_pthread_flags; do
7437 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7438 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7442 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7443 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7444 PTHREAD_CFLAGS="$flag"
7448 # Extract the first word of "pthread-config", so it can be a program name with args.
7449 set dummy pthread-config; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 if test -n "$acx_pthread_config"; then
7456 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_prog_acx_pthread_config="yes"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7476 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7477 if test -n "$acx_pthread_config"; then
7478 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7479 echo "${ECHO_T}$acx_pthread_config" >&6; }
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7486 if test x"$acx_pthread_config" = xno; then continue; fi
7487 PTHREAD_CFLAGS="`pthread-config
--cflags`"
7488 PTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
7492 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7493 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7494 PTHREAD_LIBS="-l$flag"
7499 save_CFLAGS="$CFLAGS"
7500 LIBS="$PTHREAD_LIBS $LIBS"
7501 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7503 # Check for various functions. We must include pthread.h,
7504 # since some functions may be macros. (On the Sequent, we
7505 # need a special flag -Kthread to make this header compile.)
7506 # We check for pthread_join because it is in -lpthread on IRIX
7507 # while pthread_create is in libc. We check for pthread_attr_init
7508 # due to DEC craziness with -lpthreads. We check for
7509 # pthread_cleanup_push because it is one of the few pthread
7510 # functions on Solaris that doesn't have a non-functional libc stub.
7511 # We try pthread_create on general principles.
7512 cat >conftest.$ac_ext <<_ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 #include <pthread.h>
7522 pthread_t th; pthread_join(th, 0);
7523 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7524 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7529 rm -f conftest.$ac_objext conftest$ac_exeext
7530 if { (ac_try="$ac_link"
7532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7533 *) ac_try_echo
=$ac_try;;
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_link") 2>conftest.er1
7538 grep -v '^ *+' conftest.er1
>conftest.err
7540 cat conftest.err
>&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_c_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest
$ac_exeext &&
7546 $as_test_x conftest
$ac_exeext; then
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.
$ac_ext >&5
7555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7556 conftest
$ac_exeext conftest.
$ac_ext
7559 CFLAGS
="$save_CFLAGS"
7561 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7562 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7563 if test "x$acx_pthread_ok" = xyes
; then
7572 # Various other checks:
7573 if test "x$acx_pthread_ok" = xyes
; then
7575 LIBS
="$PTHREAD_LIBS $LIBS"
7576 save_CFLAGS
="$CFLAGS"
7577 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7579 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7580 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7581 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7583 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7584 cat >conftest.
$ac_ext <<_ACEOF
7587 cat confdefs.h
>>conftest.
$ac_ext
7588 cat >>conftest.
$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 #include <pthread.h>
7594 int attr=$attr; return attr;
7599 rm -f conftest.
$ac_objext conftest
$ac_exeext
7600 if { (ac_try
="$ac_link"
7602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_link") 2>conftest.er1
7608 grep -v '^ *+' conftest.er1 >conftest.err
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && {
7613 test -z "$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 } && test -s conftest$ac_exeext &&
7616 $as_test_x conftest$ac_exeext; then
7617 attr_name=$attr; break
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7626 conftest$ac_exeext conftest.$ac_ext
7628 { echo "$as_me:$LINENO: result: $attr_name" >&5
7629 echo "${ECHO_T}$attr_name" >&6; }
7630 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7632 cat >>confdefs.h <<_ACEOF
7633 #define PTHREAD_CREATE_JOINABLE $attr_name
7638 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7639 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7641 case "${host_cpu}-${host_os}" in
7642 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7643 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7645 { echo "$as_me:$LINENO: result: ${flag}" >&5
7646 echo "${ECHO_T}${flag}" >&6; }
7647 if test "x$flag" != xno; then
7648 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7652 CFLAGS="$save_CFLAGS"
7654 # More AIX lossage: must compile with xlc_r or cc_r
7655 if test x"$GCC" != xyes; then
7656 for ac_prog in xlc_r cc_r
7658 # Extract the first word of "$ac_prog", so it can be a program name with args.
7659 set dummy $ac_prog; ac_word=$2
7660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7662 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 if test -n "$PTHREAD_CC"; then
7666 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_PTHREAD_CC="$ac_prog"
7676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7686 if test -n "$PTHREAD_CC"; then
7687 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7688 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7690 { echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6; }
7695 test -n "$PTHREAD_CC" && break
7697 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7710 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7711 if test x"$acx_pthread_ok" = xyes; then
7713 cat >>confdefs.h <<\_ACEOF
7714 #define HAVE_PTHREAD 1
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
7731 ac_cpp='$CPP $CPPFLAGS'
7732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7737 # Check whether --enable-dev-mode was given.
7738 if test "${enable_dev_mode+set}" = set; then
7739 enableval=$enable_dev_mode; case "${enableval}" in
7740 y|ye|yes) AST_DEVMODE=yes ;;
7741 n|no) AST_DEVMODE=no ;;
7742 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7743 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7744 { (exit 1); exit 1; }; } ;;
7750 # package option names should be in alphabetical order
7751 # by the --with option name, to make things easier for the users :-)
7754 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7755 ALSA_OPTION="asound"
7757 # Check whether --with-asound was given.
7758 if test "${with_asound+set}" = set; then
7759 withval=$with_asound;
7765 ALSA_MANDATORY="yes"
7768 ALSA_DIR="${withval}"
7769 ALSA_MANDATORY="yes"
7785 # Check whether --with-curl was given.
7786 if test "${with_curl+set}" = set; then
7793 CURL_MANDATORY="yes"
7796 CURL_DIR="${withval}"
7797 CURL_MANDATORY="yes"
7810 CAP_DESCRIP="POSIX 1.e capabilities"
7813 # Check whether --with-cap was given.
7814 if test "${with_cap+set}" = set; then
7824 CAP_DIR="${withval}"
7838 CURSES_DESCRIP="curses"
7839 CURSES_OPTION="curses"
7841 # Check whether --with-curses was given.
7842 if test "${with_curses+set}" = set; then
7843 withval=$with_curses;
7849 CURSES_MANDATORY="yes"
7852 CURSES_DIR="${withval}"
7853 CURSES_MANDATORY="yes"
7866 DAHDI_DESCRIP="DAHDI"
7867 DAHDI_OPTION="dahdi"
7869 # Check whether --with-dahdi was given.
7870 if test "${with_dahdi+set}" = set; then
7871 withval=$with_dahdi;
7877 DAHDI_MANDATORY="yes"
7880 DAHDI_DIR="${withval}"
7881 DAHDI_MANDATORY="yes"
7894 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7895 GNUTLS_OPTION="gnutls"
7897 # Check whether --with-gnutls was given.
7898 if test "${with_gnutls+set}" = set; then
7899 withval=$with_gnutls;
7905 GNUTLS_MANDATORY="yes"
7908 GNUTLS_DIR="${withval}"
7909 GNUTLS_MANDATORY="yes"
7925 # Check whether --with-gsm was given.
7926 if test "${with_gsm+set}" = set; then
7936 GSM_DIR="${withval}"
7950 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7951 IKSEMEL_OPTION="iksemel"
7953 # Check whether --with-iksemel was given.
7954 if test "${with_iksemel+set}" = set; then
7955 withval=$with_iksemel;
7961 IKSEMEL_MANDATORY="yes"
7964 IKSEMEL_DIR="${withval}"
7965 IKSEMEL_MANDATORY="yes"
7978 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7979 IMAP_TK_OPTION="imap"
7981 # Check whether --with-imap was given.
7982 if test "${with_imap+set}" = set; then
7989 IMAP_TK_MANDATORY="yes"
7992 IMAP_TK_DIR="${withval}"
7993 IMAP_TK_MANDATORY="yes"
8006 ISDNNET_DESCRIP="ISDN4Linux Library"
8007 ISDNNET_OPTION="isdnnet"
8009 # Check whether --with-isdnnet was given.
8010 if test "${with_isdnnet+set}" = set; then
8011 withval=$with_isdnnet;
8017 ISDNNET_MANDATORY="yes"
8020 ISDNNET_DIR="${withval}"
8021 ISDNNET_MANDATORY="yes"
8037 # Check whether --with-kde was given.
8038 if test "${with_kde+set}" = set; then
8048 KDE_DIR="${withval}"
8062 LTDL_DESCRIP="libtool"
8065 # Check whether --with-ltdl was given.
8066 if test "${with_ltdl+set}" = set; then
8073 LTDL_MANDATORY="yes"
8076 LTDL_DIR="${withval}"
8077 LTDL_MANDATORY="yes"
8090 MISDN_DESCRIP="mISDN User Library"
8091 MISDN_OPTION="misdn"
8093 # Check whether --with-misdn was given.
8094 if test "${with_misdn+set}" = set; then
8095 withval=$with_misdn;
8101 MISDN_MANDATORY="yes"
8104 MISDN_DIR="${withval}"
8105 MISDN_MANDATORY="yes"
8118 NBS_DESCRIP="Network Broadcast Sound"
8121 # Check whether --with-nbs was given.
8122 if test "${with_nbs+set}" = set; then
8132 NBS_DIR="${withval}"
8146 NCURSES_DESCRIP="ncurses"
8147 NCURSES_OPTION="ncurses"
8149 # Check whether --with-ncurses was given.
8150 if test "${with_ncurses+set}" = set; then
8151 withval=$with_ncurses;
8157 NCURSES_MANDATORY="yes"
8160 NCURSES_DIR="${withval}"
8161 NCURSES_MANDATORY="yes"
8174 NETSNMP_DESCRIP="Net-SNMP"
8175 NETSNMP_OPTION="netsnmp"
8177 # Check whether --with-netsnmp was given.
8178 if test "${with_netsnmp+set}" = set; then
8179 withval=$with_netsnmp;
8185 NETSNMP_MANDATORY="yes"
8188 NETSNMP_DIR="${withval}"
8189 NETSNMP_MANDATORY="yes"
8205 # Check whether --with-newt was given.
8206 if test "${with_newt+set}" = set; then
8213 NEWT_MANDATORY="yes"
8216 NEWT_DIR="${withval}"
8217 NEWT_MANDATORY="yes"
8230 UNIXODBC_DESCRIP="unixODBC"
8231 UNIXODBC_OPTION="odbc"
8233 # Check whether --with-odbc was given.
8234 if test "${with_odbc+set}" = set; then
8241 UNIXODBC_MANDATORY="yes"
8244 UNIXODBC_DIR="${withval}"
8245 UNIXODBC_MANDATORY="yes"
8261 # Check whether --with-ogg was given.
8262 if test "${with_ogg+set}" = set; then
8272 OGG_DIR="${withval}"
8286 OSPTK_DESCRIP="OSP Toolkit"
8287 OSPTK_OPTION="osptk"
8289 # Check whether --with-osptk was given.
8290 if test "${with_osptk+set}" = set; then
8291 withval=$with_osptk;
8297 OSPTK_MANDATORY="yes"
8300 OSPTK_DIR="${withval}"
8301 OSPTK_MANDATORY="yes"
8314 OSS_DESCRIP="Open Sound System"
8317 # Check whether --with-oss was given.
8318 if test "${with_oss+set}" = set; then
8328 OSS_DIR="${withval}"
8345 # Check whether --with-popt was given.
8346 if test "${with_popt+set}" = set; then
8353 POPT_MANDATORY="yes"
8356 POPT_DIR="${withval}"
8357 POPT_MANDATORY="yes"
8370 PGSQL_DESCRIP="PostgreSQL"
8371 PGSQL_OPTION="postgres"
8373 # Check whether --with-postgres was given.
8374 if test "${with_postgres+set}" = set; then
8375 withval=$with_postgres;
8381 PGSQL_MANDATORY="yes"
8384 PGSQL_DIR="${withval}"
8385 PGSQL_MANDATORY="yes"
8398 PRI_DESCRIP="ISDN PRI"
8401 # Check whether --with-pri was given.
8402 if test "${with_pri+set}" = set; then
8412 PRI_DIR="${withval}"
8426 PWLIB_DESCRIP="PWlib"
8427 PWLIB_OPTION="pwlib"
8429 # Check whether --with-pwlib was given.
8430 if test "${with_pwlib+set}" = set; then
8431 withval=$with_pwlib;
8437 PWLIB_MANDATORY="yes"
8440 PWLIB_DIR="${withval}"
8441 PWLIB_MANDATORY="yes"
8454 OPENH323_DESCRIP="OpenH323"
8455 OPENH323_OPTION="h323"
8457 # Check whether --with-h323 was given.
8458 if test "${with_h323+set}" = set; then
8465 OPENH323_MANDATORY="yes"
8468 OPENH323_DIR="${withval}"
8469 OPENH323_MANDATORY="yes"
8482 RADIUS_DESCRIP="Radius Client"
8483 RADIUS_OPTION="radius"
8485 # Check whether --with-radius was given.
8486 if test "${with_radius+set}" = set; then
8487 withval=$with_radius;
8493 RADIUS_MANDATORY="yes"
8496 RADIUS_DIR="${withval}"
8497 RADIUS_MANDATORY="yes"
8510 SPEEX_DESCRIP="Speex"
8511 SPEEX_OPTION="speex"
8513 # Check whether --with-speex was given.
8514 if test "${with_speex+set}" = set; then
8515 withval=$with_speex;
8521 SPEEX_MANDATORY="yes"
8524 SPEEX_DIR="${withval}"
8525 SPEEX_MANDATORY="yes"
8538 SPEEXDSP_DESCRIP="Speexdsp"
8539 SPEEXDSP_OPTION="speexdsp"
8541 # Check whether --with-speexdsp was given.
8542 if test "${with_speexdsp+set}" = set; then
8543 withval=$with_speexdsp;
8549 SPEEXDSP_MANDATORY="yes"
8552 SPEEXDSP_DIR="${withval}"
8553 SPEEXDSP_MANDATORY="yes"
8566 SQLITE_DESCRIP="SQLite"
8567 SQLITE_OPTION="sqlite"
8569 # Check whether --with-sqlite was given.
8570 if test "${with_sqlite+set}" = set; then
8571 withval=$with_sqlite;
8577 SQLITE_MANDATORY="yes"
8580 SQLITE_DIR="${withval}"
8581 SQLITE_MANDATORY="yes"
8594 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8595 SUPPSERV_OPTION="suppserv"
8597 # Check whether --with-suppserv was given.
8598 if test "${with_suppserv+set}" = set; then
8599 withval=$with_suppserv;
8605 SUPPSERV_MANDATORY="yes"
8608 SUPPSERV_DIR="${withval}"
8609 SUPPSERV_MANDATORY="yes"
8622 OPENSSL_DESCRIP="OpenSSL"
8623 OPENSSL_OPTION="ssl"
8625 # Check whether --with-ssl was given.
8626 if test "${with_ssl+set}" = set; then
8633 OPENSSL_MANDATORY="yes"
8636 OPENSSL_DIR="${withval}"
8637 OPENSSL_MANDATORY="yes"
8650 FREETDS_DESCRIP="FreeTDS"
8651 FREETDS_OPTION="tds"
8653 # Check whether --with-tds was given.
8654 if test "${with_tds+set}" = set; then
8661 FREETDS_MANDATORY="yes"
8664 FREETDS_DIR="${withval}"
8665 FREETDS_MANDATORY="yes"
8678 TERMCAP_DESCRIP="Termcap"
8679 TERMCAP_OPTION="termcap"
8681 # Check whether --with-termcap was given.
8682 if test "${with_termcap+set}" = set; then
8683 withval=$with_termcap;
8689 TERMCAP_MANDATORY="yes"
8692 TERMCAP_DIR="${withval}"
8693 TERMCAP_MANDATORY="yes"
8706 TINFO_DESCRIP="Term Info"
8707 TINFO_OPTION="tinfo"
8709 # Check whether --with-tinfo was given.
8710 if test "${with_tinfo+set}" = set; then
8711 withval=$with_tinfo;
8717 TINFO_MANDATORY="yes"
8720 TINFO_DIR="${withval}"
8721 TINFO_MANDATORY="yes"
8734 TONEZONE_DESCRIP="tonezone"
8735 TONEZONE_OPTION="tonezone"
8737 # Check whether --with-tonezone was given.
8738 if test "${with_tonezone+set}" = set; then
8739 withval=$with_tonezone;
8745 TONEZONE_MANDATORY="yes"
8748 TONEZONE_DIR="${withval}"
8749 TONEZONE_MANDATORY="yes"
8765 # Check whether --with-usb was given.
8766 if test "${with_usb+set}" = set; then
8776 USB_DIR="${withval}"
8790 VORBIS_DESCRIP="Vorbis"
8791 VORBIS_OPTION="vorbis"
8793 # Check whether --with-vorbis was given.
8794 if test "${with_vorbis+set}" = set; then
8795 withval=$with_vorbis;
8801 VORBIS_MANDATORY="yes"
8804 VORBIS_DIR="${withval}"
8805 VORBIS_MANDATORY="yes"
8818 VPB_DESCRIP="Voicetronix API"
8821 # Check whether --with-vpb was given.
8822 if test "${with_vpb+set}" = set; then
8832 VPB_DIR="${withval}"
8849 # Check whether --with-z was given.
8850 if test "${with_z+set}" = set; then
8857 ZLIB_MANDATORY="yes"
8860 ZLIB_DIR="${withval}"
8861 ZLIB_MANDATORY="yes"
8874 ZAPTEL_DESCRIP="Zaptel"
8875 ZAPTEL_OPTION="zaptel"
8877 # Check whether --with-zaptel was given.
8878 if test "${with_zaptel+set}" = set; then
8879 withval=$with_zaptel;
8885 ZAPTEL_MANDATORY="yes"
8888 ZAPTEL_DIR="${withval}"
8889 ZAPTEL_MANDATORY="yes"
8902 # check for basic system features and functionality before
8903 # checking for package libraries
8905 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8906 # for constant arguments. Useless!
8907 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8908 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8909 if test "${ac_cv_working_alloca_h+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 cat >conftest.$ac_ext <<_ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8922 char *p = (char *) alloca (2 * sizeof (int));
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8932 *) ac_try_echo
=$ac_try;;
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_link") 2>conftest.er1
8937 grep -v '^ *+' conftest.er1
>conftest.err
8939 cat conftest.err
>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } && {
8942 test -z "$ac_c_werror_flag" ||
8943 test ! -s conftest.err
8944 } && test -s conftest
$ac_exeext &&
8945 $as_test_x conftest
$ac_exeext; then
8946 ac_cv_working_alloca_h
=yes
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.
$ac_ext >&5
8951 ac_cv_working_alloca_h
=no
8954 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8955 conftest
$ac_exeext conftest.
$ac_ext
8957 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8958 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8959 if test $ac_cv_working_alloca_h = yes; then
8961 cat >>confdefs.h
<<\_ACEOF
8962 #define HAVE_ALLOCA_H 1
8967 { echo "$as_me:$LINENO: checking for alloca" >&5
8968 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8969 if test "${ac_cv_func_alloca_works+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 cat >conftest.
$ac_ext <<_ACEOF
8975 cat confdefs.h
>>conftest.
$ac_ext
8976 cat >>conftest.
$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8979 # define alloca __builtin_alloca
8982 # include <malloc.h>
8983 # define alloca _alloca
8985 # ifdef HAVE_ALLOCA_H
8986 # include <alloca.h>
8991 # ifndef alloca /* predefined by HP cc +Olibcalls */
9002 char *p = (char *) alloca (1);
9008 rm -f conftest.
$ac_objext conftest
$ac_exeext
9009 if { (ac_try
="$ac_link"
9011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015 (eval "$ac_link") 2>conftest.er1
9017 grep -v '^ *+' conftest.er1 >conftest.err
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } && {
9022 test -z "$ac_c_werror_flag" ||
9023 test ! -s conftest.err
9024 } && test -s conftest$ac_exeext &&
9025 $as_test_x conftest$ac_exeext; then
9026 ac_cv_func_alloca_works=yes
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_cv_func_alloca_works=no
9034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9035 conftest$ac_exeext conftest.$ac_ext
9037 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9038 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9040 if test $ac_cv_func_alloca_works = yes; then
9042 cat >>confdefs.h <<\_ACEOF
9043 #define HAVE_ALLOCA 1
9047 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9048 # that cause trouble. Some versions do not even contain alloca or
9049 # contain a buggy version. If you still want to use their alloca,
9050 # use ar to extract alloca.o from them instead of compiling alloca.c.
9052 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9054 cat >>confdefs.h <<\_ACEOF
9059 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
9060 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
9061 if test "${ac_cv_os_cray+set}" = set; then
9062 echo $ECHO_N "(cached
) $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 #if defined CRAY && ! defined CRAY2
9077 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9078 $EGREP "webecray
" >/dev/null 2>&1; then
9086 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
9087 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9088 if test $ac_cv_os_cray = yes; then
9089 for ac_func in _getb67 GETB67 getb67; do
9090 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
9091 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
9092 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
9093 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
9094 echo $ECHO_N "(cached
) $ECHO_C" >&6
9096 cat >conftest.$ac_ext <<_ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9104 #define $ac_func innocuous_$ac_func
9106 /* System header to define __stub macros and hopefully few prototypes,
9107 which can conflict with char $ac_func (); below.
9108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9109 <limits.h> exists even on freestanding compilers. */
9112 # include <limits.h>
9114 # include <assert.h>
9119 /* Override any GCC internal prototype to avoid an error.
9120 Use char because int might match the return type of a GCC
9121 builtin and then its argument prototype would still apply. */
9126 /* The GNU C library defines this for functions which it implements
9127 to always fail with ENOSYS. Some functions are actually named
9128 something starting with __ and the normal name is an alias. */
9129 #if defined __stub_$ac_func || defined __stub___$ac_func
9141 rm -f conftest.$ac_objext conftest$ac_exeext
9142 if { (ac_try="$ac_link"
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_link") 2>conftest.er1
9150 grep -v '^ *+' conftest.er1 >conftest.err
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9154 (exit $ac_status); } && {
9155 test -z "$ac_c_werror_flag" ||
9156 test ! -s conftest.err
9157 } && test -s conftest$ac_exeext &&
9158 $as_test_x conftest$ac_exeext; then
9159 eval "$as_ac_var=yes"
9161 echo "$as_me: failed program was
:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9164 eval "$as_ac_var=no
"
9167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9168 conftest$ac_exeext conftest.$ac_ext
9170 ac_res=`eval echo '${'$as_ac_var'}'`
9171 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9172 echo "${ECHO_T}$ac_res" >&6; }
9173 if test `eval echo '${'$as_ac_var'}'` = yes; then
9175 cat >>confdefs.h <<_ACEOF
9176 #define CRAY_STACKSEG_END $ac_func
9185 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
9186 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
9187 if test "${ac_cv_c_stack_direction+set}" = set; then
9188 echo $ECHO_N "(cached
) $ECHO_C" >&6
9190 if test "$cross_compiling" = yes; then
9191 ac_cv_c_stack_direction=0
9193 cat >conftest.$ac_ext <<_ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 $ac_includes_default
9201 find_stack_direction ()
9203 static char *addr = 0;
9208 return find_stack_direction ();
9211 return (&dummy > addr) ? 1 : -1;
9217 return find_stack_direction () < 0;
9220 rm -f conftest$ac_exeext
9221 if { (ac_try="$ac_link"
9223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9224 *) ac_try_echo=$ac_try;;
9226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9227 (eval "$ac_link") 2>&5
9229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9231 { (case "(($ac_try" in
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_try") 2>&5
9238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_cv_c_stack_direction=1
9242 echo "$as_me: program exited with status
$ac_status" >&5
9243 echo "$as_me: failed program was
:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9247 ac_cv_c_stack_direction=-1
9249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9254 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
9255 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9257 cat >>confdefs.h <<_ACEOF
9258 #define STACK_DIRECTION $ac_cv_c_stack_direction
9270 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9271 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
9272 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
9273 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
9274 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9275 echo $ECHO_N "(cached
) $ECHO_C" >&6
9277 cat >conftest.$ac_ext <<_ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 #include <sys/types.h>
9295 rm -f conftest.$ac_objext
9296 if { (ac_try="$ac_compile"
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_compile") 2>conftest.er1
9304 grep -v '^ *+' conftest.er1 >conftest.err
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest.$ac_objext; then
9312 eval "$as_ac_Header=yes"
9314 echo "$as_me: failed program was
:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 eval "$as_ac_Header=no
"
9320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 ac_res=`eval echo '${'$as_ac_Header'}'`
9323 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9324 echo "${ECHO_T}$ac_res" >&6; }
9325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9326 cat >>confdefs.h <<_ACEOF
9327 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
9330 ac_header_dirent=$ac_hdr; break
9334 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9335 if test $ac_header_dirent = dirent.h; then
9336 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9337 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9338 if test "${ac_cv_search_opendir+set}" = set; then
9339 echo $ECHO_N "(cached
) $ECHO_C" >&6
9341 ac_func_search_save_LIBS=$LIBS
9342 cat >conftest.$ac_ext <<_ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9349 /* Override any GCC internal prototype to avoid an error.
9350 Use char because int might match the return type of a GCC
9351 builtin and then its argument prototype would still apply. */
9364 for ac_lib in '' dir; do
9365 if test -z "$ac_lib"; then
9366 ac_res="none required
"
9369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9371 rm -f conftest.$ac_objext conftest$ac_exeext
9372 if { (ac_try="$ac_link"
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_link") 2>conftest.er1
9380 grep -v '^ *+' conftest.er1 >conftest.err
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest$ac_exeext &&
9388 $as_test_x conftest$ac_exeext; then
9389 ac_cv_search_opendir=$ac_res
9391 echo "$as_me: failed program was
:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9399 if test "${ac_cv_search_opendir+set}" = set; then
9403 if test "${ac_cv_search_opendir+set}" = set; then
9406 ac_cv_search_opendir=no
9409 LIBS=$ac_func_search_save_LIBS
9411 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9412 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9413 ac_res=$ac_cv_search_opendir
9414 if test "$ac_res" != no; then
9415 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9420 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9421 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9422 if test "${ac_cv_search_opendir+set}" = set; then
9423 echo $ECHO_N "(cached
) $ECHO_C" >&6
9425 ac_func_search_save_LIBS=$LIBS
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9433 /* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
9448 for ac_lib in '' x; do
9449 if test -z "$ac_lib"; then
9450 ac_res="none required
"
9453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (ac_try="$ac_link"
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9462 (eval "$ac_link") 2>conftest.er1
9464 grep -v '^ *+' conftest.er1 >conftest.err
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9468 (exit $ac_status); } && {
9469 test -z "$ac_c_werror_flag" ||
9470 test ! -s conftest.err
9471 } && test -s conftest$ac_exeext &&
9472 $as_test_x conftest$ac_exeext; then
9473 ac_cv_search_opendir=$ac_res
9475 echo "$as_me: failed program was
:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9483 if test "${ac_cv_search_opendir+set}" = set; then
9487 if test "${ac_cv_search_opendir+set}" = set; then
9490 ac_cv_search_opendir=no
9493 LIBS=$ac_func_search_save_LIBS
9495 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9496 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9497 ac_res=$ac_cv_search_opendir
9498 if test "$ac_res" != no; then
9499 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9505 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
9506 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
9507 if test "${ac_cv_header_stdc+set}" = set; then
9508 echo $ECHO_N "(cached
) $ECHO_C" >&6
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_compile") 2>conftest.er1
9538 grep -v '^ *+' conftest.er1 >conftest.err
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest.$ac_objext; then
9546 ac_cv_header_stdc=yes
9548 echo "$as_me: failed program was
:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9551 ac_cv_header_stdc=no
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 if test $ac_cv_header_stdc = yes; then
9557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9558 cat >conftest.$ac_ext <<_ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9567 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9568 $EGREP "memchr
" >/dev/null 2>&1; then
9571 ac_cv_header_stdc=no
9577 if test $ac_cv_header_stdc = yes; then
9578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9579 cat >conftest.$ac_ext <<_ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9588 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9589 $EGREP "free
" >/dev/null 2>&1; then
9592 ac_cv_header_stdc=no
9598 if test $ac_cv_header_stdc = yes; then
9599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9600 if test "$cross_compiling" = yes; then
9603 cat >conftest.$ac_ext <<_ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9611 #if ((' ' & 0x0FF) == 0x020)
9612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9615 # define ISLOWER(c) \
9616 (('a' <= (c) && (c) <= 'i') \
9617 || ('j' <= (c) && (c) <= 'r') \
9618 || ('s' <= (c) && (c) <= 'z'))
9619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9627 for (i = 0; i < 256; i++)
9628 if (XOR (islower (i), ISLOWER (i))
9629 || toupper (i) != TOUPPER (i))
9634 rm -f conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_link") 2>&5
9643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9645 { (case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_try") 2>&5
9652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9653 (exit $ac_status); }; }; then
9656 echo "$as_me: program exited with status
$ac_status" >&5
9657 echo "$as_me: failed program was
:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9661 ac_cv_header_stdc=no
9663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9669 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
9670 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9671 if test $ac_cv_header_stdc = yes; then
9673 cat >>confdefs.h <<\_ACEOF
9674 #define STDC_HEADERS 1
9679 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
9680 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
9681 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9682 echo $ECHO_N "(cached
) $ECHO_C" >&6
9684 cat >conftest.$ac_ext <<_ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 #include <sys/types.h>
9691 #include <sys/wait.h>
9693 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9696 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9704 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9709 rm -f conftest.$ac_objext
9710 if { (ac_try="$ac_compile"
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_compile") 2>conftest.er1
9718 grep -v '^ *+' conftest.er1 >conftest.err
9720 cat conftest.err >&5
9721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest.$ac_objext; then
9726 ac_cv_header_sys_wait_h=yes
9728 echo "$as_me: failed program was
:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_cv_header_sys_wait_h=no
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
9737 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9738 if test $ac_cv_header_sys_wait_h = yes; then
9740 cat >>confdefs.h <<\_ACEOF
9741 #define HAVE_SYS_WAIT_H 1
9770 for ac_header in arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h arpa/nameser.h
9772 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9773 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9774 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9775 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9776 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9777 echo $ECHO_N "(cached
) $ECHO_C" >&6
9779 ac_res=`eval echo '${'$as_ac_Header'}'`
9780 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9781 echo "${ECHO_T}$ac_res" >&6; }
9783 # Is the header compilable?
9784 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9785 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 $ac_includes_default
9793 #include <$ac_header>
9795 rm -f conftest.$ac_objext
9796 if { (ac_try="$ac_compile"
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_compile") 2>conftest.er1
9804 grep -v '^ *+' conftest.er1 >conftest.err
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9808 (exit $ac_status); } && {
9809 test -z "$ac_c_werror_flag" ||
9810 test ! -s conftest.err
9811 } && test -s conftest.$ac_objext; then
9812 ac_header_compiler=yes
9814 echo "$as_me: failed program was
:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_header_compiler=no
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9821 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9822 echo "${ECHO_T}$ac_header_compiler" >&6; }
9824 # Is the header present?
9825 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9826 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9827 cat >conftest.$ac_ext <<_ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 #include <$ac_header>
9835 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9847 (exit $ac_status); } >/dev/null && {
9848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9851 ac_header_preproc=yes
9853 echo "$as_me: failed program was
:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_header_preproc=no
9859 rm -f conftest.err conftest.$ac_ext
9860 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9861 echo "${ECHO_T}$ac_header_preproc" >&6; }
9863 # So? What about this header?
9864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9866 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9867 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9868 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9870 ac_header_preproc=yes
9873 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9874 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9875 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9876 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9877 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9878 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9879 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9880 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9881 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9883 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9884 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9886 ## ------------------------------- ##
9887 ## Report this to www.asterisk.org ##
9888 ## ------------------------------- ##
9890 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9893 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9894 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9895 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9896 echo $ECHO_N "(cached
) $ECHO_C" >&6
9898 eval "$as_ac_Header=\
$ac_header_preproc"
9900 ac_res=`eval echo '${'$as_ac_Header'}'`
9901 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9902 echo "${ECHO_T}$ac_res" >&6; }
9905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9906 cat >>confdefs.h <<_ACEOF
9907 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9915 # Check whether --enable-largefile was given.
9916 if test "${enable_largefile+set}" = set; then
9917 enableval=$enable_largefile;
9920 if test "$enable_largefile" != no; then
9922 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
9923 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
9924 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9925 echo $ECHO_N "(cached
) $ECHO_C" >&6
9927 ac_cv_sys_largefile_CC=no
9928 if test "$GCC" != yes; then
9931 # IRIX 6.2 and later do not support large files by default,
9932 # so use the C compiler's -n32 option if that helps.
9933 cat >conftest.$ac_ext <<_ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 #include <sys/types.h>
9940 /* Check that off_t can represent 2**63 - 1 correctly.
9941 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9942 since some C++ compilers masquerading as C compilers
9943 incorrectly reject 9223372036854775807. */
9944 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9946 && LARGE_OFF_T % 2147483647 == 1)
9956 rm -f conftest.$ac_objext
9957 if { (ac_try="$ac_compile"
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9962 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_compile") 2>conftest.er1
9965 grep -v '^ *+' conftest.er1 >conftest.err
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9969 (exit $ac_status); } && {
9970 test -z "$ac_c_werror_flag" ||
9971 test ! -s conftest.err
9972 } && test -s conftest.$ac_objext; then
9975 echo "$as_me: failed program was
:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9981 rm -f core conftest.err conftest.$ac_objext
9983 rm -f conftest.$ac_objext
9984 if { (ac_try="$ac_compile"
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_compile") 2>conftest.er1
9992 grep -v '^ *+' conftest.er1 >conftest.err
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9996 (exit $ac_status); } && {
9997 test -z "$ac_c_werror_flag" ||
9998 test ! -s conftest.err
9999 } && test -s conftest.$ac_objext; then
10000 ac_cv_sys_largefile_CC=' -n32'; break
10002 echo "$as_me: failed program was
:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10008 rm -f core conftest.err conftest.$ac_objext
10012 rm -f conftest.$ac_ext
10015 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
10016 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10017 if test "$ac_cv_sys_largefile_CC" != no; then
10018 CC=$CC$ac_cv_sys_largefile_CC
10021 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
10022 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
10023 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10024 echo $ECHO_N "(cached
) $ECHO_C" >&6
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10033 #include <sys/types.h>
10034 /* Check that off_t can represent 2**63 - 1 correctly.
10035 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10036 since some C++ compilers masquerading as C compilers
10037 incorrectly reject 9223372036854775807. */
10038 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10039 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10040 && LARGE_OFF_T % 2147483647 == 1)
10050 rm -f conftest.$ac_objext
10051 if { (ac_try="$ac_compile"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_compile") 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest.$ac_objext; then
10067 ac_cv_sys_file_offset_bits=no; break
10069 echo "$as_me: failed program was
:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10076 cat >conftest.$ac_ext <<_ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 #define _FILE_OFFSET_BITS 64
10083 #include <sys/types.h>
10084 /* Check that off_t can represent 2**63 - 1 correctly.
10085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10086 since some C++ compilers masquerading as C compilers
10087 incorrectly reject 9223372036854775807. */
10088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10090 && LARGE_OFF_T % 2147483647 == 1)
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_compile") 2>conftest.er1
10109 grep -v '^ *+' conftest.er1 >conftest.err
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10113 (exit $ac_status); } && {
10114 test -z "$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 } && test -s conftest.$ac_objext; then
10117 ac_cv_sys_file_offset_bits=64; break
10119 echo "$as_me: failed program was
:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126 ac_cv_sys_file_offset_bits=unknown
10130 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
10131 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10132 case $ac_cv_sys_file_offset_bits in #(
10135 cat >>confdefs.h <<_ACEOF
10136 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10141 if test $ac_cv_sys_file_offset_bits = unknown; then
10142 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
10143 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
10144 if test "${ac_cv_sys_large_files+set}" = set; then
10145 echo $ECHO_N "(cached
) $ECHO_C" >&6
10148 cat >conftest.$ac_ext <<_ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10154 #include <sys/types.h>
10155 /* Check that off_t can represent 2**63 - 1 correctly.
10156 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10157 since some C++ compilers masquerading as C compilers
10158 incorrectly reject 9223372036854775807. */
10159 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10160 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10161 && LARGE_OFF_T % 2147483647 == 1)
10171 rm -f conftest.$ac_objext
10172 if { (ac_try="$ac_compile"
10173 case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_compile") 2>conftest.er1
10180 grep -v '^ *+' conftest.er1 >conftest.err
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10184 (exit $ac_status); } && {
10185 test -z "$ac_c_werror_flag" ||
10186 test ! -s conftest.err
10187 } && test -s conftest.$ac_objext; then
10188 ac_cv_sys_large_files=no; break
10190 echo "$as_me: failed program was
:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 cat >conftest.$ac_ext <<_ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 #define _LARGE_FILES 1
10204 #include <sys/types.h>
10205 /* Check that off_t can represent 2**63 - 1 correctly.
10206 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10207 since some C++ compilers masquerading as C compilers
10208 incorrectly reject 9223372036854775807. */
10209 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10211 && LARGE_OFF_T % 2147483647 == 1)
10221 rm -f conftest.$ac_objext
10222 if { (ac_try="$ac_compile"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_compile") 2>conftest.er1
10230 grep -v '^ *+' conftest.er1 >conftest.err
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest.$ac_objext; then
10238 ac_cv_sys_large_files=1; break
10240 echo "$as_me: failed program was
:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247 ac_cv_sys_large_files=unknown
10251 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
10252 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10253 case $ac_cv_sys_large_files in #(
10256 cat >>confdefs.h <<_ACEOF
10257 #define _LARGE_FILES $ac_cv_sys_large_files
10266 # Checks for typedefs, structures, and compiler characteristics.
10267 { echo "$as_me:$LINENO: checking
for stdbool.h that conforms to C99
" >&5
10268 echo $ECHO_N "checking
for stdbool.h that conforms to C99...
$ECHO_C" >&6; }
10269 if test "${ac_cv_header_stdbool_h+set}" = set; then
10270 echo $ECHO_N "(cached
) $ECHO_C" >&6
10272 cat >conftest.$ac_ext <<_ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10279 #include <stdbool.h>
10281 "error
: bool is not defined
"
10284 "error
: false is not defined
"
10287 "error
: false is not
0"
10290 "error
: true is not defined
"
10293 "error
: true is not
1"
10295 #ifndef __bool_true_false_are_defined
10296 "error
: __bool_true_false_are_defined is not defined
"
10299 struct s { _Bool s: 1; _Bool t; } s;
10301 char a[true == 1 ? 1 : -1];
10302 char b[false == 0 ? 1 : -1];
10303 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10304 char d[(bool) 0.5 == true ? 1 : -1];
10306 char f[(_Bool) 0.0 == false ? 1 : -1];
10308 char h[sizeof (_Bool)];
10309 char i[sizeof s.t];
10310 enum { j = false, k = true, l = false * true, m = true * 256 };
10312 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10313 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10314 # if defined __xlc__ || defined __GNUC__
10315 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10316 reported by James Lemley on 2005-10-05; see
10317 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10318 This test is not quite right, since xlc is allowed to
10319 reject this program, as the initializer for xlcbug is
10320 not one of the forms that C requires support for.
10321 However, doing the test right would require a runtime
10322 test, and that would make cross-compilation harder.
10323 Let us hope that IBM fixes the xlc bug, and also adds
10324 support for this kind of constant expression. In the
10325 meantime, this test will reject xlc, which is OK, since
10326 our stdbool.h substitute should suffice. We also test
10327 this with GCC, where it should work, to detect more
10328 quickly whether someone messes up the test in the
10330 char digs[] = "0123456789";
10331 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10333 /* Catch a bug in an HP-UX C compiler. See
10334 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10335 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10346 /* Refer to every declared value, to avoid compiler optimizations. */
10347 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10348 + !m + !n + !o + !p + !q + !pq);
10354 rm -f conftest.$ac_objext
10355 if { (ac_try="$ac_compile"
10356 case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_compile") 2>conftest.er1
10363 grep -v '^ *+' conftest.er1 >conftest.err
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10367 (exit $ac_status); } && {
10368 test -z "$ac_c_werror_flag" ||
10369 test ! -s conftest.err
10370 } && test -s conftest.$ac_objext; then
10371 ac_cv_header_stdbool_h=yes
10373 echo "$as_me: failed program was
:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 ac_cv_header_stdbool_h=no
10379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10381 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdbool_h" >&5
10382 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10383 { echo "$as_me:$LINENO: checking
for _Bool
" >&5
10384 echo $ECHO_N "checking
for _Bool...
$ECHO_C" >&6; }
10385 if test "${ac_cv_type__Bool+set}" = set; then
10386 echo $ECHO_N "(cached
) $ECHO_C" >&6
10388 cat >conftest.$ac_ext <<_ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 $ac_includes_default
10395 typedef _Bool ac__type_new_;
10399 if ((ac__type_new_ *) 0)
10401 if (sizeof (ac__type_new_))
10407 rm -f conftest.$ac_objext
10408 if { (ac_try="$ac_compile"
10409 case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_compile") 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest.$ac_objext; then
10424 ac_cv_type__Bool=yes
10426 echo "$as_me: failed program was
:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 ac_cv_type__Bool=no
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434 { echo "$as_me:$LINENO: result
: $ac_cv_type__Bool" >&5
10435 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10436 if test $ac_cv_type__Bool = yes; then
10438 cat >>confdefs.h <<_ACEOF
10439 #define HAVE__BOOL 1
10445 if test $ac_cv_header_stdbool_h = yes; then
10447 cat >>confdefs.h <<\_ACEOF
10448 #define HAVE_STDBOOL_H 1
10453 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
10454 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
10455 if test "${ac_cv_c_const+set}" = set; then
10456 echo $ECHO_N "(cached
) $ECHO_C" >&6
10458 cat >conftest.$ac_ext <<_ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10468 /* FIXME: Include the comments suggested by Paul. */
10469 #ifndef __cplusplus
10470 /* Ultrix mips cc rejects this. */
10471 typedef int charset[2];
10473 /* SunOS 4.1.1 cc rejects this. */
10474 char const *const *pcpcc;
10476 /* NEC SVR4.0.2 mips cc rejects this. */
10477 struct point {int x, y;};
10478 static struct point const zero = {0,0};
10479 /* AIX XL C 1.02.0.0 rejects this.
10480 It does not let you subtract one const X* pointer from another in
10481 an arm of an if-expression whose if-part is not a constant
10483 const char *g = "string
";
10484 pcpcc = &g + (g ? g-g : 0);
10485 /* HPUX 7.0 cc rejects these. */
10487 ppc = (char**) pcpcc;
10488 pcpcc = (char const *const *) ppc;
10489 { /* SCO 3.2v4 cc rejects this. */
10491 char const *s = 0 ? (char *) 0 : (char const *) 0;
10496 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10497 int x[] = {25, 17};
10498 const int *foo = &x[0];
10501 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10502 typedef const int *iptr;
10506 { /* AIX XL C 1.02.0.0 rejects this saying
10507 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10508 struct s { int j; const int *ap[3]; };
10509 struct s *b; b->j = 5;
10511 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10512 const int foo = 10;
10513 if (!foo) return 0;
10515 return !cs[0] && !zero.x;
10522 rm -f conftest.$ac_objext
10523 if { (ac_try="$ac_compile"
10524 case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_compile") 2>conftest.er1
10531 grep -v '^ *+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest.$ac_objext; then
10541 echo "$as_me: failed program was
:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
10550 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10551 if test $ac_cv_c_const = no; then
10553 cat >>confdefs.h <<\_ACEOF
10559 { echo "$as_me:$LINENO: checking
for uid_t
in sys
/types.h
" >&5
10560 echo $ECHO_N "checking
for uid_t
in sys
/types.h...
$ECHO_C" >&6; }
10561 if test "${ac_cv_type_uid_t+set}" = set; then
10562 echo $ECHO_N "(cached
) $ECHO_C" >&6
10564 cat >conftest.$ac_ext <<_ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 #include <sys/types.h>
10573 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10574 $EGREP "uid_t
" >/dev/null 2>&1; then
10575 ac_cv_type_uid_t=yes
10577 ac_cv_type_uid_t=no
10582 { echo "$as_me:$LINENO: result
: $ac_cv_type_uid_t" >&5
10583 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10584 if test $ac_cv_type_uid_t = no; then
10586 cat >>confdefs.h <<\_ACEOF
10591 cat >>confdefs.h <<\_ACEOF
10597 { echo "$as_me:$LINENO: checking
for inline
" >&5
10598 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
10599 if test "${ac_cv_c_inline+set}" = set; then
10600 echo $ECHO_N "(cached
) $ECHO_C" >&6
10603 for ac_kw in inline __inline__ __inline; do
10604 cat >conftest.$ac_ext <<_ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10610 #ifndef __cplusplus
10612 static $ac_kw foo_t static_foo () {return 0; }
10613 $ac_kw foo_t foo () {return 0; }
10617 rm -f conftest.$ac_objext
10618 if { (ac_try="$ac_compile"
10619 case "(($ac_try" in
10620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621 *) ac_try_echo=$ac_try;;
10623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10624 (eval "$ac_compile") 2>conftest.er1
10626 grep -v '^ *+' conftest.er1 >conftest.err
10628 cat conftest.err >&5
10629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10630 (exit $ac_status); } && {
10631 test -z "$ac_c_werror_flag" ||
10632 test ! -s conftest.err
10633 } && test -s conftest.$ac_objext; then
10634 ac_cv_c_inline=$ac_kw
10636 echo "$as_me: failed program was
:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 test "$ac_cv_c_inline" != no && break
10647 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
10648 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10651 case $ac_cv_c_inline in
10654 case $ac_cv_c_inline in
10656 *) ac_val=$ac_cv_c_inline;;
10658 cat >>confdefs.h <<_ACEOF
10659 #ifndef __cplusplus
10660 #define inline $ac_val
10666 { echo "$as_me:$LINENO: checking
for mode_t
" >&5
10667 echo $ECHO_N "checking
for mode_t...
$ECHO_C" >&6; }
10668 if test "${ac_cv_type_mode_t+set}" = set; then
10669 echo $ECHO_N "(cached
) $ECHO_C" >&6
10671 cat >conftest.$ac_ext <<_ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 $ac_includes_default
10678 typedef mode_t ac__type_new_;
10682 if ((ac__type_new_ *) 0)
10684 if (sizeof (ac__type_new_))
10690 rm -f conftest.$ac_objext
10691 if { (ac_try="$ac_compile"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_compile") 2>conftest.er1
10699 grep -v '^ *+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest.$ac_objext; then
10707 ac_cv_type_mode_t=yes
10709 echo "$as_me: failed program was
:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ac_cv_type_mode_t=no
10715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717 { echo "$as_me:$LINENO: result
: $ac_cv_type_mode_t" >&5
10718 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10719 if test $ac_cv_type_mode_t = yes; then
10723 cat >>confdefs.h <<_ACEOF
10729 { echo "$as_me:$LINENO: checking
for off_t
" >&5
10730 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
10731 if test "${ac_cv_type_off_t+set}" = set; then
10732 echo $ECHO_N "(cached
) $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 $ac_includes_default
10741 typedef off_t ac__type_new_;
10745 if ((ac__type_new_ *) 0)
10747 if (sizeof (ac__type_new_))
10753 rm -f conftest.$ac_objext
10754 if { (ac_try="$ac_compile"
10755 case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_compile") 2>conftest.er1
10762 grep -v '^ *+' conftest.er1 >conftest.err
10764 cat conftest.err >&5
10765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest.$ac_objext; then
10770 ac_cv_type_off_t=yes
10772 echo "$as_me: failed program was
:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_cv_type_off_t=no
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
10781 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10782 if test $ac_cv_type_off_t = yes; then
10786 cat >>confdefs.h <<_ACEOF
10787 #define off_t long int
10792 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
10793 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
10794 if test "${ac_cv_type_pid_t+set}" = set; then
10795 echo $ECHO_N "(cached
) $ECHO_C" >&6
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 typedef pid_t ac__type_new_;
10808 if ((ac__type_new_ *) 0)
10810 if (sizeof (ac__type_new_))
10816 rm -f conftest.$ac_objext
10817 if { (ac_try="$ac_compile"
10818 case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_compile") 2>conftest.er1
10825 grep -v '^ *+' conftest.er1 >conftest.err
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10829 (exit $ac_status); } && {
10830 test -z "$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10832 } && test -s conftest.$ac_objext; then
10833 ac_cv_type_pid_t=yes
10835 echo "$as_me: failed program was
:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_cv_type_pid_t=no
10841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
10844 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10845 if test $ac_cv_type_pid_t = yes; then
10849 cat >>confdefs.h <<_ACEOF
10855 { echo "$as_me:$LINENO: checking
for size_t
" >&5
10856 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
10857 if test "${ac_cv_type_size_t+set}" = set; then
10858 echo $ECHO_N "(cached
) $ECHO_C" >&6
10860 cat >conftest.$ac_ext <<_ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 $ac_includes_default
10867 typedef size_t ac__type_new_;
10871 if ((ac__type_new_ *) 0)
10873 if (sizeof (ac__type_new_))
10879 rm -f conftest.$ac_objext
10880 if { (ac_try="$ac_compile"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_compile") 2>conftest.er1
10888 grep -v '^ *+' conftest.er1 >conftest.err
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10892 (exit $ac_status); } && {
10893 test -z "$ac_c_werror_flag" ||
10894 test ! -s conftest.err
10895 } && test -s conftest.$ac_objext; then
10896 ac_cv_type_size_t=yes
10898 echo "$as_me: failed program was
:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 ac_cv_type_size_t=no
10904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
10907 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10908 if test $ac_cv_type_size_t = yes; then
10912 cat >>confdefs.h <<_ACEOF
10913 #define size_t unsigned int
10918 { echo "$as_me:$LINENO: checking
for struct stat.st_blksize
" >&5
10919 echo $ECHO_N "checking
for struct stat.st_blksize...
$ECHO_C" >&6; }
10920 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10921 echo $ECHO_N "(cached
) $ECHO_C" >&6
10923 cat >conftest.$ac_ext <<_ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 $ac_includes_default
10933 static struct stat ac_aggr;
10934 if (ac_aggr.st_blksize)
10940 rm -f conftest.$ac_objext
10941 if { (ac_try="$ac_compile"
10942 case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_compile") 2>conftest.er1
10949 grep -v '^ *+' conftest.er1 >conftest.err
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10953 (exit $ac_status); } && {
10954 test -z "$ac_c_werror_flag" ||
10955 test ! -s conftest.err
10956 } && test -s conftest.$ac_objext; then
10957 ac_cv_member_struct_stat_st_blksize=yes
10959 echo "$as_me: failed program was
:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 $ac_includes_default
10972 static struct stat ac_aggr;
10973 if (sizeof ac_aggr.st_blksize)
10979 rm -f conftest.$ac_objext
10980 if { (ac_try="$ac_compile"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_compile") 2>conftest.er1
10988 grep -v '^ *+' conftest.er1 >conftest.err
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10992 (exit $ac_status); } && {
10993 test -z "$ac_c_werror_flag" ||
10994 test ! -s conftest.err
10995 } && test -s conftest.$ac_objext; then
10996 ac_cv_member_struct_stat_st_blksize=yes
10998 echo "$as_me: failed program was
:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_cv_member_struct_stat_st_blksize=no
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11009 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_stat_st_blksize" >&5
11010 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11011 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11013 cat >>confdefs.h <<_ACEOF
11014 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11020 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
11021 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
11022 if test "${ac_cv_header_time+set}" = set; then
11023 echo $ECHO_N "(cached
) $ECHO_C" >&6
11025 cat >conftest.$ac_ext <<_ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11031 #include <sys/types.h>
11032 #include <sys/time.h>
11038 if ((struct tm *) 0)
11044 rm -f conftest.$ac_objext
11045 if { (ac_try="$ac_compile"
11046 case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_compile") 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11057 (exit $ac_status); } && {
11058 test -z "$ac_c_werror_flag" ||
11059 test ! -s conftest.err
11060 } && test -s conftest.$ac_objext; then
11061 ac_cv_header_time=yes
11063 echo "$as_me: failed program was
:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11066 ac_cv_header_time=no
11069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
11072 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11073 if test $ac_cv_header_time = yes; then
11075 cat >>confdefs.h <<\_ACEOF
11076 #define TIME_WITH_SYS_TIME 1
11081 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
11082 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
11083 if test "${ac_cv_struct_tm+set}" = set; then
11084 echo $ECHO_N "(cached
) $ECHO_C" >&6
11086 cat >conftest.$ac_ext <<_ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 #include <sys/types.h>
11099 int *p = &tm.tm_sec;
11105 rm -f conftest.$ac_objext
11106 if { (ac_try="$ac_compile"
11107 case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_compile") 2>conftest.er1
11114 grep -v '^ *+' conftest.er1 >conftest.err
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11118 (exit $ac_status); } && {
11119 test -z "$ac_c_werror_flag" ||
11120 test ! -s conftest.err
11121 } && test -s conftest.$ac_objext; then
11122 ac_cv_struct_tm=time.h
11124 echo "$as_me: failed program was
:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11127 ac_cv_struct_tm=sys/time.h
11130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
11133 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11134 if test $ac_cv_struct_tm = sys/time.h; then
11136 cat >>confdefs.h <<\_ACEOF
11137 #define TM_IN_SYS_TIME 1
11142 { echo "$as_me:$LINENO: checking
for working volatile
" >&5
11143 echo $ECHO_N "checking
for working volatile...
$ECHO_C" >&6; }
11144 if test "${ac_cv_c_volatile+set}" = set; then
11145 echo $ECHO_N "(cached
) $ECHO_C" >&6
11147 cat >conftest.$ac_ext <<_ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11159 int * volatile y = (int *) 0;
11165 rm -f conftest.$ac_objext
11166 if { (ac_try="$ac_compile"
11167 case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_compile") 2>conftest.er1
11174 grep -v '^ *+' conftest.er1 >conftest.err
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11178 (exit $ac_status); } && {
11179 test -z "$ac_c_werror_flag" ||
11180 test ! -s conftest.err
11181 } && test -s conftest.$ac_objext; then
11182 ac_cv_c_volatile=yes
11184 echo "$as_me: failed program was
:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ac_cv_c_volatile=no
11190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192 { echo "$as_me:$LINENO: result
: $ac_cv_c_volatile" >&5
11193 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11194 if test $ac_cv_c_volatile = no; then
11196 cat >>confdefs.h <<\_ACEOF
11202 { echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
11203 echo $ECHO_N "checking
for ptrdiff_t...
$ECHO_C" >&6; }
11204 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11205 echo $ECHO_N "(cached
) $ECHO_C" >&6
11207 cat >conftest.$ac_ext <<_ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 $ac_includes_default
11214 typedef ptrdiff_t ac__type_new_;
11218 if ((ac__type_new_ *) 0)
11220 if (sizeof (ac__type_new_))
11226 rm -f conftest.$ac_objext
11227 if { (ac_try="$ac_compile"
11228 case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_compile") 2>conftest.er1
11235 grep -v '^ *+' conftest.er1 >conftest.err
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11239 (exit $ac_status); } && {
11240 test -z "$ac_c_werror_flag" ||
11241 test ! -s conftest.err
11242 } && test -s conftest.$ac_objext; then
11243 ac_cv_type_ptrdiff_t=yes
11245 echo "$as_me: failed program was
:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 ac_cv_type_ptrdiff_t=no
11251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11253 { echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
11254 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11255 if test $ac_cv_type_ptrdiff_t = yes; then
11257 cat >>confdefs.h <<_ACEOF
11258 #define HAVE_PTRDIFF_T 1
11265 # Checks for library functions.
11267 for ac_header in unistd.h
11269 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11270 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11271 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11272 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11273 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11274 echo $ECHO_N "(cached
) $ECHO_C" >&6
11276 ac_res=`eval echo '${'$as_ac_Header'}'`
11277 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11278 echo "${ECHO_T}$ac_res" >&6; }
11280 # Is the header compilable?
11281 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11282 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11283 cat >conftest.$ac_ext <<_ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11289 $ac_includes_default
11290 #include <$ac_header>
11292 rm -f conftest.$ac_objext
11293 if { (ac_try="$ac_compile"
11294 case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_compile") 2>conftest.er1
11301 grep -v '^ *+' conftest.er1 >conftest.err
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11305 (exit $ac_status); } && {
11306 test -z "$ac_c_werror_flag" ||
11307 test ! -s conftest.err
11308 } && test -s conftest.$ac_objext; then
11309 ac_header_compiler=yes
11311 echo "$as_me: failed program was
:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_header_compiler=no
11317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11319 echo "${ECHO_T}$ac_header_compiler" >&6; }
11321 # Is the header present?
11322 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11323 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11324 cat >conftest.$ac_ext <<_ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 #include <$ac_header>
11332 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11333 case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11340 grep -v '^ *+' conftest.er1 >conftest.err
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11344 (exit $ac_status); } >/dev/null && {
11345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11346 test ! -s conftest.err
11348 ac_header_preproc=yes
11350 echo "$as_me: failed program was
:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 ac_header_preproc=no
11356 rm -f conftest.err conftest.$ac_ext
11357 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11358 echo "${ECHO_T}$ac_header_preproc" >&6; }
11360 # So? What about this header?
11361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11363 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11364 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11365 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11367 ac_header_preproc=yes
11370 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11371 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11372 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11373 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11374 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11375 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11376 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11377 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11378 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11380 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11381 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11383 ## ------------------------------- ##
11384 ## Report this to www.asterisk.org ##
11385 ## ------------------------------- ##
11387 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11390 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11391 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11392 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11393 echo $ECHO_N "(cached
) $ECHO_C" >&6
11395 eval "$as_ac_Header=\
$ac_header_preproc"
11397 ac_res=`eval echo '${'$as_ac_Header'}'`
11398 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11399 echo "${ECHO_T}$ac_res" >&6; }
11402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11403 cat >>confdefs.h <<_ACEOF
11404 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11411 { echo "$as_me:$LINENO: checking
for working chown
" >&5
11412 echo $ECHO_N "checking
for working chown...
$ECHO_C" >&6; }
11413 if test "${ac_cv_func_chown_works+set}" = set; then
11414 echo $ECHO_N "(cached
) $ECHO_C" >&6
11416 if test "$cross_compiling" = yes; then
11417 ac_cv_func_chown_works=no
11419 cat >conftest.$ac_ext <<_ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 $ac_includes_default
11431 char *f = "conftest.chown
";
11432 struct stat before, after;
11434 if (creat (f, 0600) < 0)
11436 if (stat (f, &before) < 0)
11438 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11440 if (stat (f, &after) < 0)
11442 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11448 rm -f conftest$ac_exeext
11449 if { (ac_try="$ac_link"
11450 case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_link") 2>&5
11457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11459 { (case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_try") 2>&5
11466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11467 (exit $ac_status); }; }; then
11468 ac_cv_func_chown_works=yes
11470 echo "$as_me: program exited with status
$ac_status" >&5
11471 echo "$as_me: failed program was
:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 ( exit $ac_status )
11475 ac_cv_func_chown_works=no
11477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11481 rm -f conftest.chown
11484 { echo "$as_me:$LINENO: result
: $ac_cv_func_chown_works" >&5
11485 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11486 if test $ac_cv_func_chown_works = yes; then
11488 cat >>confdefs.h <<\_ACEOF
11489 #define HAVE_CHOWN 1
11494 { echo "$as_me:$LINENO: checking whether closedir returns void
" >&5
11495 echo $ECHO_N "checking whether closedir returns void...
$ECHO_C" >&6; }
11496 if test "${ac_cv_func_closedir_void+set}" = set; then
11497 echo $ECHO_N "(cached
) $ECHO_C" >&6
11499 if test "$cross_compiling" = yes; then
11500 ac_cv_func_closedir_void=yes
11502 cat >conftest.$ac_ext <<_ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 $ac_includes_default
11509 #include <$ac_header_dirent>
11510 #ifndef __cplusplus
11517 return closedir (opendir (".
")) != 0;
11522 rm -f conftest$ac_exeext
11523 if { (ac_try="$ac_link"
11524 case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_link") 2>&5
11531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11533 { (case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_try") 2>&5
11540 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_cv_func_closedir_void=no
11544 echo "$as_me: program exited with status
$ac_status" >&5
11545 echo "$as_me: failed program was
:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11548 ( exit $ac_status )
11549 ac_cv_func_closedir_void=yes
11551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11556 { echo "$as_me:$LINENO: result
: $ac_cv_func_closedir_void" >&5
11557 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11558 if test $ac_cv_func_closedir_void = yes; then
11560 cat >>confdefs.h <<\_ACEOF
11561 #define CLOSEDIR_VOID 1
11566 { echo "$as_me:$LINENO: checking
for error_at_line
" >&5
11567 echo $ECHO_N "checking
for error_at_line...
$ECHO_C" >&6; }
11568 if test "${ac_cv_lib_error_at_line+set}" = set; then
11569 echo $ECHO_N "(cached
) $ECHO_C" >&6
11571 cat >conftest.$ac_ext <<_ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11581 error_at_line (0, 0, "", 0, "an error occurred
");
11586 rm -f conftest.$ac_objext conftest$ac_exeext
11587 if { (ac_try="$ac_link"
11588 case "(($ac_try" in
11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590 *) ac_try_echo=$ac_try;;
11592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11593 (eval "$ac_link") 2>conftest.er1
11595 grep -v '^ *+' conftest.er1 >conftest.err
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11599 (exit $ac_status); } && {
11600 test -z "$ac_c_werror_flag" ||
11601 test ! -s conftest.err
11602 } && test -s conftest$ac_exeext &&
11603 $as_test_x conftest$ac_exeext; then
11604 ac_cv_lib_error_at_line=yes
11606 echo "$as_me: failed program was
:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 ac_cv_lib_error_at_line=no
11612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11613 conftest$ac_exeext conftest.$ac_ext
11615 { echo "$as_me:$LINENO: result
: $ac_cv_lib_error_at_line" >&5
11616 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11617 if test $ac_cv_lib_error_at_line = no; then
11618 case " $LIBOBJS " in
11619 *" error.
$ac_objext "* ) ;;
11620 *) LIBOBJS="$LIBOBJS error.
$ac_objext"
11627 for ac_header in vfork.h
11629 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11630 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11631 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11632 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11633 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached
) $ECHO_C" >&6
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11640 # Is the header compilable?
11641 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11642 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 $ac_includes_default
11650 #include <$ac_header>
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_compile") 2>conftest.er1
11661 grep -v '^ *+' conftest.er1 >conftest.err
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest.$ac_objext; then
11669 ac_header_compiler=yes
11671 echo "$as_me: failed program was
:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11674 ac_header_compiler=no
11677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11678 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11679 echo "${ECHO_T}$ac_header_compiler" >&6; }
11681 # Is the header present?
11682 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11683 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11684 cat >conftest.$ac_ext <<_ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 #include <$ac_header>
11692 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11693 case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11700 grep -v '^ *+' conftest.er1 >conftest.err
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11704 (exit $ac_status); } >/dev/null && {
11705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11706 test ! -s conftest.err
11708 ac_header_preproc=yes
11710 echo "$as_me: failed program was
:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11713 ac_header_preproc=no
11716 rm -f conftest.err conftest.$ac_ext
11717 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11718 echo "${ECHO_T}$ac_header_preproc" >&6; }
11720 # So? What about this header?
11721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11723 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11724 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11725 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11727 ac_header_preproc=yes
11730 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11731 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11732 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11733 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11734 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11735 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11736 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11737 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11738 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11740 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11741 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11743 ## ------------------------------- ##
11744 ## Report this to www.asterisk.org ##
11745 ## ------------------------------- ##
11747 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11750 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11751 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11752 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11753 echo $ECHO_N "(cached
) $ECHO_C" >&6
11755 eval "$as_ac_Header=\
$ac_header_preproc"
11757 ac_res=`eval echo '${'$as_ac_Header'}'`
11758 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11759 echo "${ECHO_T}$ac_res" >&6; }
11762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11763 cat >>confdefs.h <<_ACEOF
11764 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11773 for ac_func in fork vfork
11775 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11776 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11777 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11778 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11779 echo $ECHO_N "(cached
) $ECHO_C" >&6
11781 cat >conftest.$ac_ext <<_ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11789 #define $ac_func innocuous_$ac_func
11791 /* System header to define __stub macros and hopefully few prototypes,
11792 which can conflict with char $ac_func (); below.
11793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11794 <limits.h> exists even on freestanding compilers. */
11797 # include <limits.h>
11799 # include <assert.h>
11804 /* Override any GCC internal prototype to avoid an error.
11805 Use char because int might match the return type of a GCC
11806 builtin and then its argument prototype would still apply. */
11811 /* The GNU C library defines this for functions which it implements
11812 to always fail with ENOSYS. Some functions are actually named
11813 something starting with __ and the normal name is an alias. */
11814 #if defined __stub_$ac_func || defined __stub___$ac_func
11821 return $ac_func ();
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_link") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest$ac_exeext &&
11843 $as_test_x conftest$ac_exeext; then
11844 eval "$as_ac_var=yes"
11846 echo "$as_me: failed program was
:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 eval "$as_ac_var=no
"
11852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11853 conftest$ac_exeext conftest.$ac_ext
11855 ac_res=`eval echo '${'$as_ac_var'}'`
11856 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11857 echo "${ECHO_T}$ac_res" >&6; }
11858 if test `eval echo '${'$as_ac_var'}'` = yes; then
11859 cat >>confdefs.h <<_ACEOF
11860 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11866 if test "x
$ac_cv_func_fork" = xyes; then
11867 { echo "$as_me:$LINENO: checking
for working fork
" >&5
11868 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
11869 if test "${ac_cv_func_fork_works+set}" = set; then
11870 echo $ECHO_N "(cached
) $ECHO_C" >&6
11872 if test "$cross_compiling" = yes; then
11873 ac_cv_func_fork_works=cross
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 $ac_includes_default
11886 /* By Ruediger Kuhlmann. */
11887 return fork () < 0;
11893 rm -f conftest$ac_exeext
11894 if { (ac_try="$ac_link"
11895 case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_link") 2>&5
11902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11904 { (case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_try") 2>&5
11911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 ac_cv_func_fork_works=yes
11915 echo "$as_me: program exited with status
$ac_status" >&5
11916 echo "$as_me: failed program was
:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ( exit $ac_status )
11920 ac_cv_func_fork_works=no
11922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11927 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
11928 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11931 ac_cv_func_fork_works=$ac_cv_func_fork
11933 if test "x
$ac_cv_func_fork_works" = xcross; then
11935 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11936 # Override, as these systems have only a dummy fork() stub
11937 ac_cv_func_fork_works=no
11940 ac_cv_func_fork_works=yes
11943 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
11944 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
11946 ac_cv_func_vfork_works=$ac_cv_func_vfork
11947 if test "x
$ac_cv_func_vfork" = xyes; then
11948 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
11949 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
11950 if test "${ac_cv_func_vfork_works+set}" = set; then
11951 echo $ECHO_N "(cached
) $ECHO_C" >&6
11953 if test "$cross_compiling" = yes; then
11954 ac_cv_func_vfork_works=cross
11956 cat >conftest.$ac_ext <<_ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11962 /* Thanks to Paul Eggert for this test. */
11963 $ac_includes_default
11964 #include <sys/wait.h>
11965 #ifdef HAVE_VFORK_H
11966 # include <vfork.h>
11968 /* On some sparc systems, changes by the child to local and incoming
11969 argument registers are propagated back to the parent. The compiler
11970 is told about this with #include <vfork.h>, but some compilers
11971 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11972 static variable whose address is put into a register that is
11973 clobbered by the vfork. */
11976 sparc_address_test (int arg)
11978 sparc_address_test (arg) int arg;
11981 static pid_t child;
11999 pid_t parent = getpid ();
12002 sparc_address_test (0);
12007 /* Here is another test for sparc vfork register problems. This
12008 test uses lots of local variables, at least as many local
12009 variables as main has allocated so far including compiler
12010 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12011 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12012 reuse the register of parent for one of the local variables,
12013 since it will think that parent can't possibly be used any more
12014 in this routine. Assigning to the local variable will thus
12015 munge parent in the parent process. */
12017 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12018 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12019 /* Convince the compiler that p..p7 are live; otherwise, it might
12020 use the same hardware register for all 8 local variables. */
12021 if (p != p1 || p != p2 || p != p3 || p != p4
12022 || p != p5 || p != p6 || p != p7)
12025 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12026 from child file descriptors. If the child closes a descriptor
12027 before it execs or exits, this munges the parent's descriptor
12028 as well. Test for this by closing stdout in the child. */
12029 _exit(close(fileno(stdout)) != 0);
12034 while (wait(&status) != child)
12037 /* Was there some problem with vforking? */
12040 /* Did the child fail? (This shouldn't happen.) */
12043 /* Did the vfork/compiler bug occur? */
12044 || parent != getpid()
12046 /* Did the file descriptor bug occur? */
12047 || fstat(fileno(stdout), &st) != 0
12052 rm -f conftest$ac_exeext
12053 if { (ac_try="$ac_link"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_link") 2>&5
12061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12063 { (case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_try") 2>&5
12070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 ac_cv_func_vfork_works=yes
12074 echo "$as_me: program exited with status
$ac_status" >&5
12075 echo "$as_me: failed program was
:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ( exit $ac_status )
12079 ac_cv_func_vfork_works=no
12081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
12087 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12090 if test "x
$ac_cv_func_fork_works" = xcross; then
12091 ac_cv_func_vfork_works=$ac_cv_func_vfork
12092 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
12093 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
12096 if test "x
$ac_cv_func_vfork_works" = xyes; then
12098 cat >>confdefs.h <<\_ACEOF
12099 #define HAVE_WORKING_VFORK 1
12104 cat >>confdefs.h <<\_ACEOF
12109 if test "x
$ac_cv_func_fork_works" = xyes; then
12111 cat >>confdefs.h <<\_ACEOF
12112 #define HAVE_WORKING_FORK 1
12117 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
12118 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
12119 if test "${ac_cv_sys_largefile_source+set}" = set; then
12120 echo $ECHO_N "(cached
) $ECHO_C" >&6
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 #include <sys/types.h> /* for off_t */
12134 int (*fp) (FILE *, off_t, int) = fseeko;
12135 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (ac_try="$ac_link"
12142 case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_link") 2>conftest.er1
12149 grep -v '^ *+' conftest.er1 >conftest.err
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12153 (exit $ac_status); } && {
12154 test -z "$ac_c_werror_flag" ||
12155 test ! -s conftest.err
12156 } && test -s conftest$ac_exeext &&
12157 $as_test_x conftest$ac_exeext; then
12158 ac_cv_sys_largefile_source=no; break
12160 echo "$as_me: failed program was
:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12167 conftest$ac_exeext conftest.$ac_ext
12168 cat >conftest.$ac_ext <<_ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #define _LARGEFILE_SOURCE 1
12175 #include <sys/types.h> /* for off_t */
12180 int (*fp) (FILE *, off_t, int) = fseeko;
12181 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (ac_try="$ac_link"
12188 case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_link") 2>conftest.er1
12195 grep -v '^ *+' conftest.er1 >conftest.err
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12199 (exit $ac_status); } && {
12200 test -z "$ac_c_werror_flag" ||
12201 test ! -s conftest.err
12202 } && test -s conftest$ac_exeext &&
12203 $as_test_x conftest$ac_exeext; then
12204 ac_cv_sys_largefile_source=1; break
12206 echo "$as_me: failed program was
:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 ac_cv_sys_largefile_source=unknown
12218 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
12219 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12220 case $ac_cv_sys_largefile_source in #(
12223 cat >>confdefs.h <<_ACEOF
12224 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12230 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12231 # in glibc 2.1.3, but that breaks too many other things.
12232 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12233 if test $ac_cv_sys_largefile_source != unknown; then
12235 cat >>confdefs.h <<\_ACEOF
12236 #define HAVE_FSEEKO 1
12241 if test $ac_cv_c_compiler_gnu = yes; then
12242 { echo "$as_me:$LINENO: checking whether
$CC needs
-traditional" >&5
12243 echo $ECHO_N "checking whether
$CC needs
-traditional...
$ECHO_C" >&6; }
12244 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12245 echo $ECHO_N "(cached
) $ECHO_C" >&6
12247 ac_pattern="Autoconf.
*'x'"
12248 cat >conftest.$ac_ext <<_ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12257 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12258 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12259 ac_cv_prog_gcc_traditional=yes
12261 ac_cv_prog_gcc_traditional=no
12266 if test $ac_cv_prog_gcc_traditional = no; then
12267 cat >conftest.$ac_ext <<_ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273 #include <termio.h>
12276 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12277 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12278 ac_cv_prog_gcc_traditional=yes
12284 { echo "$as_me:$LINENO: result
: $ac_cv_prog_gcc_traditional" >&5
12285 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12286 if test $ac_cv_prog_gcc_traditional = yes; then
12287 CC="$CC -traditional"
12291 # XXX: these are commented out until we determine whether it matters if our malloc()
12292 # acts exactly like glibc's or not
12295 { echo "$as_me:$LINENO: checking
for working memcmp
" >&5
12296 echo $ECHO_N "checking
for working memcmp...
$ECHO_C" >&6; }
12297 if test "${ac_cv_func_memcmp_working+set}" = set; then
12298 echo $ECHO_N "(cached
) $ECHO_C" >&6
12300 if test "$cross_compiling" = yes; then
12301 ac_cv_func_memcmp_working=no
12303 cat >conftest.$ac_ext <<_ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 $ac_includes_default
12314 /* Some versions of memcmp are not 8-bit clean. */
12315 char c0 = '\100', c1 = '\200', c2 = '\201';
12316 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12319 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12320 or more and with at least one buffer not starting on a 4-byte boundary.
12321 William Lewis provided this test program. */
12326 for (i = 0; i < 4; i++)
12330 strcpy (a, "--------01111111");
12331 strcpy (b, "--------10000000");
12332 if (memcmp (a, b, 16) >= 0)
12342 rm -f conftest$ac_exeext
12343 if { (ac_try="$ac_link"
12344 case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_link") 2>&5
12351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12353 { (case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_try") 2>&5
12360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ac_cv_func_memcmp_working=yes
12364 echo "$as_me: program exited with status
$ac_status" >&5
12365 echo "$as_me: failed program was
:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 ( exit $ac_status )
12369 ac_cv_func_memcmp_working=no
12371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12376 { echo "$as_me:$LINENO: result
: $ac_cv_func_memcmp_working" >&5
12377 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12378 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12379 *" memcmp.
$ac_objext "* ) ;;
12380 *) LIBOBJS="$LIBOBJS memcmp.
$ac_objext"
12387 for ac_header in stdlib.h unistd.h
12389 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12390 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12391 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12392 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12393 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12394 echo $ECHO_N "(cached
) $ECHO_C" >&6
12396 ac_res=`eval echo '${'$as_ac_Header'}'`
12397 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12398 echo "${ECHO_T}$ac_res" >&6; }
12400 # Is the header compilable?
12401 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12402 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12403 cat >conftest.$ac_ext <<_ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 $ac_includes_default
12410 #include <$ac_header>
12412 rm -f conftest.$ac_objext
12413 if { (ac_try="$ac_compile"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_compile") 2>conftest.er1
12421 grep -v '^ *+' conftest.er1 >conftest.err
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12425 (exit $ac_status); } && {
12426 test -z "$ac_c_werror_flag" ||
12427 test ! -s conftest.err
12428 } && test -s conftest.$ac_objext; then
12429 ac_header_compiler=yes
12431 echo "$as_me: failed program was
:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 ac_header_compiler=no
12437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12439 echo "${ECHO_T}$ac_header_compiler" >&6; }
12441 # Is the header present?
12442 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12443 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 #include <$ac_header>
12452 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12453 case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12460 grep -v '^ *+' conftest.er1 >conftest.err
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12464 (exit $ac_status); } >/dev/null && {
12465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12468 ac_header_preproc=yes
12470 echo "$as_me: failed program was
:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ac_header_preproc=no
12476 rm -f conftest.err conftest.$ac_ext
12477 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12478 echo "${ECHO_T}$ac_header_preproc" >&6; }
12480 # So? What about this header?
12481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12483 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12484 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12485 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12487 ac_header_preproc=yes
12490 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12491 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12492 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12493 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12494 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12495 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12496 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12497 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12498 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12500 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12501 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12503 ## ------------------------------- ##
12504 ## Report this to www.asterisk.org ##
12505 ## ------------------------------- ##
12507 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12510 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12511 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12512 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12513 echo $ECHO_N "(cached
) $ECHO_C" >&6
12515 eval "$as_ac_Header=\
$ac_header_preproc"
12517 ac_res=`eval echo '${'$as_ac_Header'}'`
12518 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12519 echo "${ECHO_T}$ac_res" >&6; }
12522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12523 cat >>confdefs.h <<_ACEOF
12524 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12532 for ac_func in getpagesize
12534 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12535 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12536 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12537 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12538 echo $ECHO_N "(cached
) $ECHO_C" >&6
12540 cat >conftest.$ac_ext <<_ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12548 #define $ac_func innocuous_$ac_func
12550 /* System header to define __stub macros and hopefully few prototypes,
12551 which can conflict with char $ac_func (); below.
12552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12553 <limits.h> exists even on freestanding compilers. */
12556 # include <limits.h>
12558 # include <assert.h>
12563 /* Override any GCC internal prototype to avoid an error.
12564 Use char because int might match the return type of a GCC
12565 builtin and then its argument prototype would still apply. */
12570 /* The GNU C library defines this for functions which it implements
12571 to always fail with ENOSYS. Some functions are actually named
12572 something starting with __ and the normal name is an alias. */
12573 #if defined __stub_$ac_func || defined __stub___$ac_func
12580 return $ac_func ();
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_link") 2>conftest.er1
12594 grep -v '^ *+' conftest.er1 >conftest.err
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12598 (exit $ac_status); } && {
12599 test -z "$ac_c_werror_flag" ||
12600 test ! -s conftest.err
12601 } && test -s conftest$ac_exeext &&
12602 $as_test_x conftest$ac_exeext; then
12603 eval "$as_ac_var=yes"
12605 echo "$as_me: failed program was
:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 eval "$as_ac_var=no
"
12611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12612 conftest$ac_exeext conftest.$ac_ext
12614 ac_res=`eval echo '${'$as_ac_var'}'`
12615 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12616 echo "${ECHO_T}$ac_res" >&6; }
12617 if test `eval echo '${'$as_ac_var'}'` = yes; then
12618 cat >>confdefs.h <<_ACEOF
12619 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12625 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
12626 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
12627 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12628 echo $ECHO_N "(cached
) $ECHO_C" >&6
12630 if test "$cross_compiling" = yes; then
12631 ac_cv_func_mmap_fixed_mapped=no
12633 cat >conftest.$ac_ext <<_ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 $ac_includes_default
12640 /* malloc might have been renamed as rpl_malloc. */
12643 /* Thanks to Mike Haertel and Jim Avera for this test.
12644 Here is a matrix of mmap possibilities:
12645 mmap private not fixed
12646 mmap private fixed at somewhere currently unmapped
12647 mmap private fixed at somewhere already mapped
12648 mmap shared not fixed
12649 mmap shared fixed at somewhere currently unmapped
12650 mmap shared fixed at somewhere already mapped
12651 For private mappings, we should verify that changes cannot be read()
12652 back from the file, nor mmap's back from the file at a different
12653 address. (There have been systems where private was not correctly
12654 implemented like the infamous i386 svr4.0, and systems where the
12655 VM page cache was not coherent with the file system buffer cache
12656 like early versions of FreeBSD and possibly contemporary NetBSD.)
12657 For shared mappings, we should conversely verify that changes get
12658 propagated back to all the places they're supposed to be.
12660 Grep wants private fixed already mapped.
12661 The main things grep needs to know about mmap are:
12662 * does it exist and is it safe to write into the mmap'd area
12663 * how to use it (BSD variants) */
12666 #include <sys/mman.h>
12668 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12672 /* This mess was copied from the GNU getpagesize.h. */
12673 #ifndef HAVE_GETPAGESIZE
12674 /* Assume that all systems that can run configure have sys/param.h. */
12675 # ifndef HAVE_SYS_PARAM_H
12676 # define HAVE_SYS_PARAM_H 1
12679 # ifdef _SC_PAGESIZE
12680 # define getpagesize() sysconf(_SC_PAGESIZE)
12681 # else /* no _SC_PAGESIZE */
12682 # ifdef HAVE_SYS_PARAM_H
12683 # include <sys/param.h>
12684 # ifdef EXEC_PAGESIZE
12685 # define getpagesize() EXEC_PAGESIZE
12686 # else /* no EXEC_PAGESIZE */
12688 # define getpagesize() NBPG * CLSIZE
12691 # endif /* no CLSIZE */
12692 # else /* no NBPG */
12694 # define getpagesize() NBPC
12695 # else /* no NBPC */
12697 # define getpagesize() PAGESIZE
12698 # endif /* PAGESIZE */
12699 # endif /* no NBPC */
12700 # endif /* no NBPG */
12701 # endif /* no EXEC_PAGESIZE */
12702 # else /* no HAVE_SYS_PARAM_H */
12703 # define getpagesize() 8192 /* punt totally */
12704 # endif /* no HAVE_SYS_PARAM_H */
12705 # endif /* no _SC_PAGESIZE */
12707 #endif /* no HAVE_GETPAGESIZE */
12712 char *data, *data2, *data3;
12716 pagesize = getpagesize ();
12718 /* First, make a file with some known garbage in it. */
12719 data = (char *) malloc (pagesize);
12722 for (i = 0; i < pagesize; ++i)
12723 *(data + i) = rand ();
12725 fd = creat ("conftest.mmap
", 0600);
12728 if (write (fd, data, pagesize) != pagesize)
12732 /* Next, try to mmap the file at a fixed address which already has
12733 something else allocated at it. If we can, also make sure that
12734 we see the same garbage. */
12735 fd = open ("conftest.mmap
", O_RDWR);
12738 data2 = (char *) malloc (2 * pagesize);
12741 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12742 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12743 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12745 for (i = 0; i < pagesize; ++i)
12746 if (*(data + i) != *(data2 + i))
12749 /* Finally, make sure that changes to the mapped area do not
12750 percolate back to the file as seen by read(). (This is a bug on
12751 some variants of i386 svr4.0.) */
12752 for (i = 0; i < pagesize; ++i)
12753 *(data2 + i) = *(data2 + i) + 1;
12754 data3 = (char *) malloc (pagesize);
12757 if (read (fd, data3, pagesize) != pagesize)
12759 for (i = 0; i < pagesize; ++i)
12760 if (*(data + i) != *(data3 + i))
12766 rm -f conftest$ac_exeext
12767 if { (ac_try="$ac_link"
12768 case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_link") 2>&5
12775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12777 { (case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_try") 2>&5
12784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12785 (exit $ac_status); }; }; then
12786 ac_cv_func_mmap_fixed_mapped=yes
12788 echo "$as_me: program exited with status
$ac_status" >&5
12789 echo "$as_me: failed program was
:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12792 ( exit $ac_status )
12793 ac_cv_func_mmap_fixed_mapped=no
12795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12800 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
12801 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12802 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12804 cat >>confdefs.h <<\_ACEOF
12805 #define HAVE_MMAP 1
12809 rm -f conftest.mmap
12813 for ac_header in sys/select.h sys/socket.h
12815 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12816 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12817 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12818 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12819 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12820 echo $ECHO_N "(cached
) $ECHO_C" >&6
12822 ac_res=`eval echo '${'$as_ac_Header'}'`
12823 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12824 echo "${ECHO_T}$ac_res" >&6; }
12826 # Is the header compilable?
12827 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12828 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12829 cat >conftest.$ac_ext <<_ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 $ac_includes_default
12836 #include <$ac_header>
12838 rm -f conftest.$ac_objext
12839 if { (ac_try="$ac_compile"
12840 case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_compile") 2>conftest.er1
12847 grep -v '^ *+' conftest.er1 >conftest.err
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12851 (exit $ac_status); } && {
12852 test -z "$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 } && test -s conftest.$ac_objext; then
12855 ac_header_compiler=yes
12857 echo "$as_me: failed program was
:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12860 ac_header_compiler=no
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12865 echo "${ECHO_T}$ac_header_compiler" >&6; }
12867 # Is the header present?
12868 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12869 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12870 cat >conftest.$ac_ext <<_ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876 #include <$ac_header>
12878 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12879 case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12883 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12886 grep -v '^ *+' conftest.er1 >conftest.err
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12890 (exit $ac_status); } >/dev/null && {
12891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12892 test ! -s conftest.err
12894 ac_header_preproc=yes
12896 echo "$as_me: failed program was
:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ac_header_preproc=no
12902 rm -f conftest.err conftest.$ac_ext
12903 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12904 echo "${ECHO_T}$ac_header_preproc" >&6; }
12906 # So? What about this header?
12907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12909 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12910 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12911 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12913 ac_header_preproc=yes
12916 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12917 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12918 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12919 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12920 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12921 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12922 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12923 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12924 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12926 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12927 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12929 ## ------------------------------- ##
12930 ## Report this to www.asterisk.org ##
12931 ## ------------------------------- ##
12933 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12936 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12937 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12938 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12939 echo $ECHO_N "(cached
) $ECHO_C" >&6
12941 eval "$as_ac_Header=\
$ac_header_preproc"
12943 ac_res=`eval echo '${'$as_ac_Header'}'`
12944 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12945 echo "${ECHO_T}$ac_res" >&6; }
12948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12949 cat >>confdefs.h <<_ACEOF
12950 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12957 { echo "$as_me:$LINENO: checking types of arguments
for select" >&5
12958 echo $ECHO_N "checking types of arguments
for select...
$ECHO_C" >&6; }
12959 if test "${ac_cv_func_select_args+set}" = set; then
12960 echo $ECHO_N "(cached
) $ECHO_C" >&6
12962 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12963 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12964 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12965 cat >conftest.$ac_ext <<_ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 $ac_includes_default
12972 #ifdef HAVE_SYS_SELECT_H
12973 # include <sys/select.h>
12975 #ifdef HAVE_SYS_SOCKET_H
12976 # include <sys/socket.h>
12982 extern int select ($ac_arg1,
12983 $ac_arg234, $ac_arg234, $ac_arg234,
12989 rm -f conftest.$ac_objext
12990 if { (ac_try="$ac_compile"
12991 case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12996 (eval "$ac_compile") 2>conftest.er1
12998 grep -v '^ *+' conftest.er1 >conftest.err
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13002 (exit $ac_status); } && {
13003 test -z "$ac_c_werror_flag" ||
13004 test ! -s conftest.err
13005 } && test -s conftest.$ac_objext; then
13006 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13008 echo "$as_me: failed program was
:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018 # Provide a safe default value.
13019 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13022 { echo "$as_me:$LINENO: result
: $ac_cv_func_select_args" >&5
13023 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13024 ac_save_IFS=$IFS; IFS=','
13025 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13029 cat >>confdefs.h <<_ACEOF
13030 #define SELECT_TYPE_ARG1 $1
13034 cat >>confdefs.h <<_ACEOF
13035 #define SELECT_TYPE_ARG234 ($2)
13039 cat >>confdefs.h <<_ACEOF
13040 #define SELECT_TYPE_ARG5 ($3)
13045 { echo "$as_me:$LINENO: checking
for function prototypes
" >&5
13046 echo $ECHO_N "checking
for function prototypes...
$ECHO_C" >&6; }
13047 if test "$ac_cv_prog_cc_c89" != no; then
13048 { echo "$as_me:$LINENO: result
: yes" >&5
13049 echo "${ECHO_T}yes" >&6; }
13051 cat >>confdefs.h <<\_ACEOF
13052 #define PROTOTYPES 1
13056 cat >>confdefs.h <<\_ACEOF
13057 #define __PROTOTYPES 1
13061 { echo "$as_me:$LINENO: result
: no
" >&5
13062 echo "${ECHO_T}no
" >&6; }
13065 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed
" >&5
13066 echo $ECHO_N "checking whether setvbuf arguments are reversed...
$ECHO_C" >&6; }
13067 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13068 echo $ECHO_N "(cached
) $ECHO_C" >&6
13070 ac_cv_func_setvbuf_reversed=no
13071 cat >conftest.$ac_ext <<_ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13079 int (setvbuf) (FILE *, int, char *, size_t);
13084 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13089 rm -f conftest.$ac_objext conftest$ac_exeext
13090 if { (ac_try="$ac_link"
13091 case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_link") 2>conftest.er1
13098 grep -v '^ *+' conftest.er1 >conftest.err
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13102 (exit $ac_status); } && {
13103 test -z "$ac_c_werror_flag" ||
13104 test ! -s conftest.err
13105 } && test -s conftest$ac_exeext &&
13106 $as_test_x conftest$ac_exeext; then
13107 cat >conftest.$ac_ext <<_ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13115 int (setvbuf) (FILE *, int, char *, size_t);
13120 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13125 rm -f conftest.$ac_objext conftest$ac_exeext
13126 if { (ac_try="$ac_link"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_link") 2>conftest.er1
13134 grep -v '^ *+' conftest.er1 >conftest.err
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13138 (exit $ac_status); } && {
13139 test -z "$ac_c_werror_flag" ||
13140 test ! -s conftest.err
13141 } && test -s conftest$ac_exeext &&
13142 $as_test_x conftest$ac_exeext; then
13143 # It compiles and links either way, so it must not be declared
13144 # with a prototype and most likely this is a K&R C compiler.
13146 if test "$cross_compiling" = yes; then
13147 : # Assume setvbuf is not reversed when cross-compiling.
13149 cat >conftest.$ac_ext <<_ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 $ac_includes_default
13159 /* This call has the arguments reversed.
13160 A reversed system may check and see that the address of buf
13161 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13163 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13166 return 0; /* Non-reversed systems SEGV here. */
13171 rm -f conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_link") 2>&5
13180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13190 (exit $ac_status); }; }; then
13191 ac_cv_func_setvbuf_reversed=yes
13193 echo "$as_me: program exited with status
$ac_status" >&5
13194 echo "$as_me: failed program was
:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13202 ac_cv_func_setvbuf_reversed=yes
13204 echo "$as_me: failed program was
:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13211 conftest$ac_exeext conftest.$ac_ext
13213 echo "$as_me: failed program was
:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13220 conftest$ac_exeext conftest.$ac_ext
13222 { echo "$as_me:$LINENO: result
: $ac_cv_func_setvbuf_reversed" >&5
13223 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13224 if test $ac_cv_func_setvbuf_reversed = yes; then
13226 cat >>confdefs.h <<\_ACEOF
13227 #define SETVBUF_REVERSED 1
13232 { echo "$as_me:$LINENO: checking
return type of signal handlers
" >&5
13233 echo $ECHO_N "checking
return type of signal handlers...
$ECHO_C" >&6; }
13234 if test "${ac_cv_type_signal+set}" = set; then
13235 echo $ECHO_N "(cached
) $ECHO_C" >&6
13237 cat >conftest.$ac_ext <<_ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13243 #include <sys/types.h>
13244 #include <signal.h>
13249 return *(signal (0, 0)) (0) == 1;
13254 rm -f conftest.$ac_objext
13255 if { (ac_try="$ac_compile"
13256 case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_compile") 2>conftest.er1
13263 grep -v '^ *+' conftest.er1 >conftest.err
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13267 (exit $ac_status); } && {
13268 test -z "$ac_c_werror_flag" ||
13269 test ! -s conftest.err
13270 } && test -s conftest.$ac_objext; then
13271 ac_cv_type_signal=int
13273 echo "$as_me: failed program was
:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13276 ac_cv_type_signal=void
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13281 { echo "$as_me:$LINENO: result
: $ac_cv_type_signal" >&5
13282 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13284 cat >>confdefs.h <<_ACEOF
13285 #define RETSIGTYPE $ac_cv_type_signal
13289 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash
" >&5
13290 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash...
$ECHO_C" >&6; }
13291 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13292 echo $ECHO_N "(cached
) $ECHO_C" >&6
13294 rm -f conftest.sym conftest.file
13295 echo >conftest.file
13296 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13297 if test "$cross_compiling" = yes; then
13298 ac_cv_func_lstat_dereferences_slashed_symlink=no
13300 cat >conftest.$ac_ext <<_ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13306 $ac_includes_default
13311 /* Linux will dereference the symlink and fail.
13312 That is better in the sense that it means we will not
13313 have to compile and use the lstat wrapper. */
13314 return lstat ("conftest.sym
/", &sbuf) == 0;
13319 rm -f conftest$ac_exeext
13320 if { (ac_try="$ac_link"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_link") 2>&5
13328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13330 { (case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_try") 2>&5
13337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13341 echo "$as_me: program exited with status
$ac_status" >&5
13342 echo "$as_me: failed program was
:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ( exit $ac_status )
13346 ac_cv_func_lstat_dereferences_slashed_symlink=no
13348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13353 # If the `ln -s' command failed, then we probably don't even
13354 # have an lstat function.
13355 ac_cv_func_lstat_dereferences_slashed_symlink=no
13357 rm -f conftest.sym conftest.file
13360 { echo "$as_me:$LINENO: result
: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13361 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13363 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13365 cat >>confdefs.h <<_ACEOF
13366 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13370 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13371 case " $LIBOBJS " in
13372 *" lstat.
$ac_objext "* ) ;;
13373 *) LIBOBJS="$LIBOBJS lstat.
$ac_objext"
13379 { echo "$as_me:$LINENO: checking whether stat accepts an empty string
" >&5
13380 echo $ECHO_N "checking whether stat accepts an empty string...
$ECHO_C" >&6; }
13381 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13382 echo $ECHO_N "(cached
) $ECHO_C" >&6
13384 if test "$cross_compiling" = yes; then
13385 ac_cv_func_stat_empty_string_bug=yes
13387 cat >conftest.$ac_ext <<_ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13393 $ac_includes_default
13398 return stat ("", &sbuf) == 0;
13403 rm -f conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_link") 2>&5
13412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13414 { (case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_try") 2>&5
13421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 ac_cv_func_stat_empty_string_bug=no
13425 echo "$as_me: program exited with status
$ac_status" >&5
13426 echo "$as_me: failed program was
:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 ( exit $ac_status )
13430 ac_cv_func_stat_empty_string_bug=yes
13432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13437 { echo "$as_me:$LINENO: result
: $ac_cv_func_stat_empty_string_bug" >&5
13438 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13439 if test $ac_cv_func_stat_empty_string_bug = yes; then
13440 case " $LIBOBJS " in
13441 *" stat.
$ac_objext "* ) ;;
13442 *) LIBOBJS="$LIBOBJS stat.
$ac_objext"
13447 cat >>confdefs.h <<_ACEOF
13448 #define HAVE_STAT_EMPTY_STRING_BUG 1
13453 { echo "$as_me:$LINENO: checking
for working strcoll
" >&5
13454 echo $ECHO_N "checking
for working strcoll...
$ECHO_C" >&6; }
13455 if test "${ac_cv_func_strcoll_works+set}" = set; then
13456 echo $ECHO_N "(cached
) $ECHO_C" >&6
13458 if test "$cross_compiling" = yes; then
13459 ac_cv_func_strcoll_works=no
13461 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 $ac_includes_default
13471 return (strcoll ("abc
", "def
") >= 0 ||
13472 strcoll ("ABC
", "DEF
") >= 0 ||
13473 strcoll ("123", "456") >= 0)
13478 rm -f conftest$ac_exeext
13479 if { (ac_try="$ac_link"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_link") 2>&5
13487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13496 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_func_strcoll_works=yes
13500 echo "$as_me: program exited with status
$ac_status" >&5
13501 echo "$as_me: failed program was
:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ( exit $ac_status )
13505 ac_cv_func_strcoll_works=no
13507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13512 { echo "$as_me:$LINENO: result
: $ac_cv_func_strcoll_works" >&5
13513 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13514 if test $ac_cv_func_strcoll_works = yes; then
13516 cat >>confdefs.h <<\_ACEOF
13517 #define HAVE_STRCOLL 1
13523 for ac_func in strftime
13525 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
13526 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
13527 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
13528 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
13529 echo $ECHO_N "(cached
) $ECHO_C" >&6
13531 cat >conftest.$ac_ext <<_ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13539 #define $ac_func innocuous_$ac_func
13541 /* System header to define __stub macros and hopefully few prototypes,
13542 which can conflict with char $ac_func (); below.
13543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13544 <limits.h> exists even on freestanding compilers. */
13547 # include <limits.h>
13549 # include <assert.h>
13554 /* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13561 /* The GNU C library defines this for functions which it implements
13562 to always fail with ENOSYS. Some functions are actually named
13563 something starting with __ and the normal name is an alias. */
13564 #if defined __stub_$ac_func || defined __stub___$ac_func
13571 return $ac_func ();
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (ac_try="$ac_link"
13578 case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_link") 2>conftest.er1
13585 grep -v '^ *+' conftest.er1 >conftest.err
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest$ac_exeext &&
13593 $as_test_x conftest$ac_exeext; then
13594 eval "$as_ac_var=yes"
13596 echo "$as_me: failed program was
:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 eval "$as_ac_var=no
"
13602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13603 conftest$ac_exeext conftest.$ac_ext
13605 ac_res=`eval echo '${'$as_ac_var'}'`
13606 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13607 echo "${ECHO_T}$ac_res" >&6; }
13608 if test `eval echo '${'$as_ac_var'}'` = yes; then
13609 cat >>confdefs.h <<_ACEOF
13610 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
13614 # strftime is in -lintl on SCO UNIX.
13615 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
13616 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
13617 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13618 echo $ECHO_N "(cached
) $ECHO_C" >&6
13620 ac_check_lib_save_LIBS=$LIBS
13621 LIBS="-lintl $LIBS"
13622 cat >conftest.$ac_ext <<_ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13629 /* Override any GCC internal prototype to avoid an error.
13630 Use char because int might match the return type of a GCC
13631 builtin and then its argument prototype would still apply. */
13639 return strftime ();
13644 rm -f conftest.$ac_objext conftest$ac_exeext
13645 if { (ac_try="$ac_link"
13646 case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_link") 2>conftest.er1
13653 grep -v '^ *+' conftest.er1 >conftest.err
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13657 (exit $ac_status); } && {
13658 test -z "$ac_c_werror_flag" ||
13659 test ! -s conftest.err
13660 } && test -s conftest$ac_exeext &&
13661 $as_test_x conftest$ac_exeext; then
13662 ac_cv_lib_intl_strftime=yes
13664 echo "$as_me: failed program was
:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13667 ac_cv_lib_intl_strftime=no
13670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13671 conftest$ac_exeext conftest.$ac_ext
13672 LIBS=$ac_check_lib_save_LIBS
13674 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
13675 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13676 if test $ac_cv_lib_intl_strftime = yes; then
13677 cat >>confdefs.h <<\_ACEOF
13678 #define HAVE_STRFTIME 1
13681 LIBS="-lintl $LIBS"
13687 { echo "$as_me:$LINENO: checking
for working strnlen
" >&5
13688 echo $ECHO_N "checking
for working strnlen...
$ECHO_C" >&6; }
13689 if test "${ac_cv_func_strnlen_working+set}" = set; then
13690 echo $ECHO_N "(cached
) $ECHO_C" >&6
13692 if test "$cross_compiling" = yes; then
13693 ac_cv_func_strnlen_working=no
13695 cat >conftest.$ac_ext <<_ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13701 $ac_includes_default
13707 #define S_LEN (sizeof S - 1)
13709 /* At least one implementation is buggy: that of AIX 4.3 would
13710 give strnlen (S, 1) == 3. */
13713 for (i = 0; i < S_LEN + 1; ++i)
13715 int expected = i <= S_LEN ? i : S_LEN;
13716 if (strnlen (S, i) != expected)
13725 rm -f conftest$ac_exeext
13726 if { (ac_try="$ac_link"
13727 case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_link") 2>&5
13734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
13743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_cv_func_strnlen_working=yes
13747 echo "$as_me: program exited with status
$ac_status" >&5
13748 echo "$as_me: failed program was
:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13751 ( exit $ac_status )
13752 ac_cv_func_strnlen_working=no
13754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13759 { echo "$as_me:$LINENO: result
: $ac_cv_func_strnlen_working" >&5
13760 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13761 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13762 *" strnlen.
$ac_objext "* ) ;;
13763 *) LIBOBJS="$LIBOBJS strnlen.
$ac_objext"
13768 { echo "$as_me:$LINENO: checking
for working strtod
" >&5
13769 echo $ECHO_N "checking
for working strtod...
$ECHO_C" >&6; }
13770 if test "${ac_cv_func_strtod+set}" = set; then
13771 echo $ECHO_N "(cached
) $ECHO_C" >&6
13773 if test "$cross_compiling" = yes; then
13774 ac_cv_func_strtod=no
13776 cat >conftest.$ac_ext <<_ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13783 $ac_includes_default
13791 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13792 char *string = " +69";
13795 value = strtod (string, &term);
13796 if (value != 69 || term != (string + 4))
13801 /* Under Solaris 2.4, strtod returns the wrong value for the
13802 terminating character under some conditions. */
13803 char *string = "NaN
";
13805 strtod (string, &term);
13806 if (term != string && *(term - 1) == 0)
13813 rm -f conftest$ac_exeext
13814 if { (ac_try="$ac_link"
13815 case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_link") 2>&5
13822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13824 { (case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_try") 2>&5
13831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_func_strtod=yes
13835 echo "$as_me: program exited with status
$ac_status" >&5
13836 echo "$as_me: failed program was
:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ( exit $ac_status )
13840 ac_cv_func_strtod=no
13842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13847 { echo "$as_me:$LINENO: result
: $ac_cv_func_strtod" >&5
13848 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13849 if test $ac_cv_func_strtod = no; then
13850 case " $LIBOBJS " in
13851 *" strtod.
$ac_objext "* ) ;;
13852 *) LIBOBJS="$LIBOBJS strtod.
$ac_objext"
13856 { echo "$as_me:$LINENO: checking
for pow
" >&5
13857 echo $ECHO_N "checking
for pow...
$ECHO_C" >&6; }
13858 if test "${ac_cv_func_pow+set}" = set; then
13859 echo $ECHO_N "(cached
) $ECHO_C" >&6
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13869 #define pow innocuous_pow
13871 /* System header to define __stub macros and hopefully few prototypes,
13872 which can conflict with char pow (); below.
13873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13874 <limits.h> exists even on freestanding compilers. */
13877 # include <limits.h>
13879 # include <assert.h>
13884 /* Override any GCC internal prototype to avoid an error.
13885 Use char because int might match the return type of a GCC
13886 builtin and then its argument prototype would still apply. */
13891 /* The GNU C library defines this for functions which it implements
13892 to always fail with ENOSYS. Some functions are actually named
13893 something starting with __ and the normal name is an alias. */
13894 #if defined __stub_pow || defined __stub___pow
13906 rm -f conftest.$ac_objext conftest$ac_exeext
13907 if { (ac_try="$ac_link"
13908 case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_link") 2>conftest.er1
13915 grep -v '^ *+' conftest.er1 >conftest.err
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13919 (exit $ac_status); } && {
13920 test -z "$ac_c_werror_flag" ||
13921 test ! -s conftest.err
13922 } && test -s conftest$ac_exeext &&
13923 $as_test_x conftest$ac_exeext; then
13926 echo "$as_me: failed program was
:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13933 conftest$ac_exeext conftest.$ac_ext
13935 { echo "$as_me:$LINENO: result
: $ac_cv_func_pow" >&5
13936 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13938 if test $ac_cv_func_pow = no; then
13939 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
13940 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
13941 if test "${ac_cv_lib_m_pow+set}" = set; then
13942 echo $ECHO_N "(cached
) $ECHO_C" >&6
13944 ac_check_lib_save_LIBS=$LIBS
13946 cat >conftest.$ac_ext <<_ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13953 /* Override any GCC internal prototype to avoid an error.
13954 Use char because int might match the return type of a GCC
13955 builtin and then its argument prototype would still apply. */
13968 rm -f conftest.$ac_objext conftest$ac_exeext
13969 if { (ac_try="$ac_link"
13970 case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13975 (eval "$ac_link") 2>conftest.er1
13977 grep -v '^ *+' conftest.er1 >conftest.err
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13981 (exit $ac_status); } && {
13982 test -z "$ac_c_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest$ac_exeext &&
13985 $as_test_x conftest$ac_exeext; then
13986 ac_cv_lib_m_pow=yes
13988 echo "$as_me: failed program was
:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13995 conftest$ac_exeext conftest.$ac_ext
13996 LIBS=$ac_check_lib_save_LIBS
13998 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
13999 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14000 if test $ac_cv_lib_m_pow = yes; then
14003 { echo "$as_me:$LINENO: WARNING
: cannot
find library containing definition of pow
" >&5
14004 echo "$as_me: WARNING
: cannot
find library containing definition of pow
" >&2;}
14015 for ac_header in $ac_header_list
14017 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14018 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14019 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14020 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14021 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14022 echo $ECHO_N "(cached
) $ECHO_C" >&6
14024 ac_res=`eval echo '${'$as_ac_Header'}'`
14025 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14026 echo "${ECHO_T}$ac_res" >&6; }
14028 # Is the header compilable?
14029 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14030 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
14031 cat >conftest.$ac_ext <<_ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 $ac_includes_default
14038 #include <$ac_header>
14040 rm -f conftest.$ac_objext
14041 if { (ac_try="$ac_compile"
14042 case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14046 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14049 grep -v '^ *+' conftest.er1 >conftest.err
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
14057 ac_header_compiler=yes
14059 echo "$as_me: failed program was
:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_header_compiler=no
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14067 echo "${ECHO_T}$ac_header_compiler" >&6; }
14069 # Is the header present?
14070 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14071 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14072 cat >conftest.$ac_ext <<_ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <$ac_header>
14080 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14085 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14088 grep -v '^ *+' conftest.er1 >conftest.err
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14092 (exit $ac_status); } >/dev/null && {
14093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14096 ac_header_preproc=yes
14098 echo "$as_me: failed program was
:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ac_header_preproc=no
14104 rm -f conftest.err conftest.$ac_ext
14105 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14106 echo "${ECHO_T}$ac_header_preproc" >&6; }
14108 # So? What about this header?
14109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14111 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14112 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14113 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14115 ac_header_preproc=yes
14118 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14119 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14120 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14121 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14122 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14123 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14124 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14125 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14126 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14128 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14129 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14131 ## ------------------------------- ##
14132 ## Report this to www.asterisk.org ##
14133 ## ------------------------------- ##
14135 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
14138 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14139 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14140 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14141 echo $ECHO_N "(cached
) $ECHO_C" >&6
14143 eval "$as_ac_Header=\
$ac_header_preproc"
14145 ac_res=`eval echo '${'$as_ac_Header'}'`
14146 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14147 echo "${ECHO_T}$ac_res" >&6; }
14150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14151 cat >>confdefs.h <<_ACEOF
14152 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14167 { echo "$as_me:$LINENO: checking whether utime accepts a null argument
" >&5
14168 echo $ECHO_N "checking whether utime accepts a null argument...
$ECHO_C" >&6; }
14169 if test "${ac_cv_func_utime_null+set}" = set; then
14170 echo $ECHO_N "(cached
) $ECHO_C" >&6
14172 rm -f conftest.data; >conftest.data
14173 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14174 if test "$cross_compiling" = yes; then
14175 ac_cv_func_utime_null=no
14177 cat >conftest.$ac_ext <<_ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14183 $ac_includes_default
14184 #ifdef HAVE_UTIME_H
14185 # include <utime.h>
14191 return ! (stat ("conftest.data
", &s) == 0
14192 && utime ("conftest.data
", 0) == 0
14193 && stat ("conftest.data
", &t) == 0
14194 && t.st_mtime >= s.st_mtime
14195 && t.st_mtime - s.st_mtime < 120);
14200 rm -f conftest$ac_exeext
14201 if { (ac_try="$ac_link"
14202 case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_link") 2>&5
14209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14211 { (case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_try") 2>&5
14218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14219 (exit $ac_status); }; }; then
14220 ac_cv_func_utime_null=yes
14222 echo "$as_me: program exited with status
$ac_status" >&5
14223 echo "$as_me: failed program was
:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14226 ( exit $ac_status )
14227 ac_cv_func_utime_null=no
14229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14234 { echo "$as_me:$LINENO: result
: $ac_cv_func_utime_null" >&5
14235 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14236 if test $ac_cv_func_utime_null = yes; then
14238 cat >>confdefs.h <<\_ACEOF
14239 #define HAVE_UTIME_NULL 1
14243 rm -f conftest.data
14246 for ac_func in vprintf
14248 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14249 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14250 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14251 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14252 echo $ECHO_N "(cached
) $ECHO_C" >&6
14254 cat >conftest.$ac_ext <<_ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14262 #define $ac_func innocuous_$ac_func
14264 /* System header to define __stub macros and hopefully few prototypes,
14265 which can conflict with char $ac_func (); below.
14266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14267 <limits.h> exists even on freestanding compilers. */
14270 # include <limits.h>
14272 # include <assert.h>
14277 /* Override any GCC internal prototype to avoid an error.
14278 Use char because int might match the return type of a GCC
14279 builtin and then its argument prototype would still apply. */
14284 /* The GNU C library defines this for functions which it implements
14285 to always fail with ENOSYS. Some functions are actually named
14286 something starting with __ and the normal name is an alias. */
14287 #if defined __stub_$ac_func || defined __stub___$ac_func
14294 return $ac_func ();
14299 rm -f conftest.$ac_objext conftest$ac_exeext
14300 if { (ac_try="$ac_link"
14301 case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14306 (eval "$ac_link") 2>conftest.er1
14308 grep -v '^ *+' conftest.er1 >conftest.err
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14312 (exit $ac_status); } && {
14313 test -z "$ac_c_werror_flag" ||
14314 test ! -s conftest.err
14315 } && test -s conftest$ac_exeext &&
14316 $as_test_x conftest$ac_exeext; then
14317 eval "$as_ac_var=yes"
14319 echo "$as_me: failed program was
:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14322 eval "$as_ac_var=no
"
14325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14326 conftest$ac_exeext conftest.$ac_ext
14328 ac_res=`eval echo '${'$as_ac_var'}'`
14329 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14330 echo "${ECHO_T}$ac_res" >&6; }
14331 if test `eval echo '${'$as_ac_var'}'` = yes; then
14332 cat >>confdefs.h <<_ACEOF
14333 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14336 { echo "$as_me:$LINENO: checking
for _doprnt
" >&5
14337 echo $ECHO_N "checking
for _doprnt...
$ECHO_C" >&6; }
14338 if test "${ac_cv_func__doprnt+set}" = set; then
14339 echo $ECHO_N "(cached
) $ECHO_C" >&6
14341 cat >conftest.$ac_ext <<_ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14347 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14349 #define _doprnt innocuous__doprnt
14351 /* System header to define __stub macros and hopefully few prototypes,
14352 which can conflict with char _doprnt (); below.
14353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14354 <limits.h> exists even on freestanding compilers. */
14357 # include <limits.h>
14359 # include <assert.h>
14364 /* Override any GCC internal prototype to avoid an error.
14365 Use char because int might match the return type of a GCC
14366 builtin and then its argument prototype would still apply. */
14371 /* The GNU C library defines this for functions which it implements
14372 to always fail with ENOSYS. Some functions are actually named
14373 something starting with __ and the normal name is an alias. */
14374 #if defined __stub__doprnt || defined __stub____doprnt
14386 rm -f conftest.$ac_objext conftest$ac_exeext
14387 if { (ac_try="$ac_link"
14388 case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14392 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_link") 2>conftest.er1
14395 grep -v '^ *+' conftest.er1 >conftest.err
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14399 (exit $ac_status); } && {
14400 test -z "$ac_c_werror_flag" ||
14401 test ! -s conftest.err
14402 } && test -s conftest$ac_exeext &&
14403 $as_test_x conftest$ac_exeext; then
14404 ac_cv_func__doprnt=yes
14406 echo "$as_me: failed program was
:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14409 ac_cv_func__doprnt=no
14412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14413 conftest$ac_exeext conftest.$ac_ext
14415 { echo "$as_me:$LINENO: result
: $ac_cv_func__doprnt" >&5
14416 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14417 if test $ac_cv_func__doprnt = yes; then
14419 cat >>confdefs.h <<\_ACEOF
14420 #define HAVE_DOPRNT 1
14478 for ac_func in asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
14480 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14481 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14482 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14483 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14484 echo $ECHO_N "(cached
) $ECHO_C" >&6
14486 cat >conftest.$ac_ext <<_ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14494 #define $ac_func innocuous_$ac_func
14496 /* System header to define __stub macros and hopefully few prototypes,
14497 which can conflict with char $ac_func (); below.
14498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14499 <limits.h> exists even on freestanding compilers. */
14502 # include <limits.h>
14504 # include <assert.h>
14509 /* Override any GCC internal prototype to avoid an error.
14510 Use char because int might match the return type of a GCC
14511 builtin and then its argument prototype would still apply. */
14516 /* The GNU C library defines this for functions which it implements
14517 to always fail with ENOSYS. Some functions are actually named
14518 something starting with __ and the normal name is an alias. */
14519 #if defined __stub_$ac_func || defined __stub___$ac_func
14526 return $ac_func ();
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (ac_try="$ac_link"
14533 case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_link") 2>conftest.er1
14540 grep -v '^ *+' conftest.er1 >conftest.err
14542 cat conftest.err >&5
14543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14544 (exit $ac_status); } && {
14545 test -z "$ac_c_werror_flag" ||
14546 test ! -s conftest.err
14547 } && test -s conftest$ac_exeext &&
14548 $as_test_x conftest$ac_exeext; then
14549 eval "$as_ac_var=yes"
14551 echo "$as_me: failed program was
:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 eval "$as_ac_var=no
"
14557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14558 conftest$ac_exeext conftest.$ac_ext
14560 ac_res=`eval echo '${'$as_ac_var'}'`
14561 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14562 echo "${ECHO_T}$ac_res" >&6; }
14563 if test `eval echo '${'$as_ac_var'}'` = yes; then
14564 cat >>confdefs.h <<_ACEOF
14565 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14572 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14573 { echo "$as_me:$LINENO: checking
for library containing gethostbyname_r
" >&5
14574 echo $ECHO_N "checking
for library containing gethostbyname_r...
$ECHO_C" >&6; }
14575 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14576 echo $ECHO_N "(cached
) $ECHO_C" >&6
14578 ac_func_search_save_LIBS=$LIBS
14579 cat >conftest.$ac_ext <<_ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14586 /* Override any GCC internal prototype to avoid an error.
14587 Use char because int might match the return type of a GCC
14588 builtin and then its argument prototype would still apply. */
14592 char gethostbyname_r ();
14596 return gethostbyname_r ();
14601 for ac_lib in '' socket nsl; do
14602 if test -z "$ac_lib"; then
14603 ac_res="none required
"
14606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (ac_try="$ac_link"
14610 case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_link") 2>conftest.er1
14617 grep -v '^ *+' conftest.er1 >conftest.err
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14621 (exit $ac_status); } && {
14622 test -z "$ac_c_werror_flag" ||
14623 test ! -s conftest.err
14624 } && test -s conftest$ac_exeext &&
14625 $as_test_x conftest$ac_exeext; then
14626 ac_cv_search_gethostbyname_r=$ac_res
14628 echo "$as_me: failed program was
:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14636 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14640 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14643 ac_cv_search_gethostbyname_r=no
14645 rm conftest.$ac_ext
14646 LIBS=$ac_func_search_save_LIBS
14648 { echo "$as_me:$LINENO: result
: $ac_cv_search_gethostbyname_r" >&5
14649 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14650 ac_res=$ac_cv_search_gethostbyname_r
14651 if test "$ac_res" != no; then
14652 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14657 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
6 arguments
" >&5
14658 echo $ECHO_N "checking
for gethostbyname_r with
6 arguments...
$ECHO_C" >&6; }
14659 cat >conftest.$ac_ext <<_ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14665 #include <stdlib.h>
14670 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14675 rm -f conftest.$ac_objext conftest$ac_exeext
14676 if { (ac_try="$ac_link"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_link") 2>conftest.er1
14684 grep -v '^ *+' conftest.er1 >conftest.err
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14688 (exit $ac_status); } && {
14689 test -z "$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14691 } && test -s conftest$ac_exeext &&
14692 $as_test_x conftest$ac_exeext; then
14693 { echo "$as_me:$LINENO: result
: yes" >&5
14694 echo "${ECHO_T}yes" >&6; }
14696 cat >>confdefs.h <<\_ACEOF
14697 #define HAVE_GETHOSTBYNAME_R_6 1
14701 echo "$as_me: failed program was
:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14704 { echo "$as_me:$LINENO: result
: no
" >&5
14705 echo "${ECHO_T}no
" >&6; }
14709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14710 conftest$ac_exeext conftest.$ac_ext
14712 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
5 arguments
" >&5
14713 echo $ECHO_N "checking
for gethostbyname_r with
5 arguments...
$ECHO_C" >&6; }
14714 cat >conftest.$ac_ext <<_ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h. */
14720 #include <stdlib.h>
14725 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (ac_try="$ac_link"
14732 case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_link") 2>conftest.er1
14739 grep -v '^ *+' conftest.er1 >conftest.err
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14743 (exit $ac_status); } && {
14744 test -z "$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14746 } && test -s conftest$ac_exeext &&
14747 $as_test_x conftest$ac_exeext; then
14748 { echo "$as_me:$LINENO: result
: yes" >&5
14749 echo "${ECHO_T}yes" >&6; }
14751 cat >>confdefs.h <<\_ACEOF
14752 #define HAVE_GETHOSTBYNAME_R_5 1
14756 echo "$as_me: failed program was
:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14759 { echo "$as_me:$LINENO: result
: no
" >&5
14760 echo "${ECHO_T}no
" >&6; }
14764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14765 conftest$ac_exeext conftest.$ac_ext
14767 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_INITIALIZER
" >&5
14768 echo $ECHO_N "checking
for PTHREAD_RWLOCK_INITIALIZER...
$ECHO_C" >&6; }
14769 cat >conftest.$ac_ext <<_ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 #include <pthread.h>
14779 int foo = PTHREAD_RWLOCK_INITIALIZER;
14784 rm -f conftest.$ac_objext conftest$ac_exeext
14785 if { (ac_try="$ac_link"
14786 case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_link") 2>conftest.er1
14793 grep -v '^ *+' conftest.er1 >conftest.err
14795 cat conftest.err >&5
14796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14797 (exit $ac_status); } && {
14798 test -z "$ac_c_werror_flag" ||
14799 test ! -s conftest.err
14800 } && test -s conftest$ac_exeext &&
14801 $as_test_x conftest$ac_exeext; then
14802 { echo "$as_me:$LINENO: result
: yes" >&5
14803 echo "${ECHO_T}yes" >&6; }
14805 cat >>confdefs.h <<\_ACEOF
14806 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14810 echo "$as_me: failed program was
:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14813 { echo "$as_me:$LINENO: result
: no
" >&5
14814 echo "${ECHO_T}no
" >&6; }
14818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14819 conftest$ac_exeext conftest.$ac_ext
14821 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP
" >&5
14822 echo $ECHO_N "checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP...
$ECHO_C" >&6; }
14823 cat >conftest.$ac_ext <<_ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h. */
14829 #include <pthread.h>
14833 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14838 rm -f conftest.$ac_objext conftest$ac_exeext
14839 if { (ac_try="$ac_link"
14840 case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_link") 2>conftest.er1
14847 grep -v '^ *+' conftest.er1 >conftest.err
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest$ac_exeext &&
14855 $as_test_x conftest$ac_exeext; then
14856 { echo "$as_me:$LINENO: result
: yes" >&5
14857 echo "${ECHO_T}yes" >&6; }
14859 cat >>confdefs.h <<\_ACEOF
14860 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14864 echo "$as_me: failed program was
:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 { echo "$as_me:$LINENO: result
: no
" >&5
14868 echo "${ECHO_T}no
" >&6; }
14872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14873 conftest$ac_exeext conftest.$ac_ext
14875 { echo "$as_me:$LINENO: checking
for compiler atomic operations
" >&5
14876 echo $ECHO_N "checking
for compiler atomic operations...
$ECHO_C" >&6; }
14877 cat >conftest.$ac_ext <<_ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14887 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14892 rm -f conftest.$ac_objext conftest$ac_exeext
14893 if { (ac_try="$ac_link"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_link") 2>conftest.er1
14901 grep -v '^ *+' conftest.er1 >conftest.err
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14905 (exit $ac_status); } && {
14906 test -z "$ac_c_werror_flag" ||
14907 test ! -s conftest.err
14908 } && test -s conftest$ac_exeext &&
14909 $as_test_x conftest$ac_exeext; then
14910 { echo "$as_me:$LINENO: result
: yes" >&5
14911 echo "${ECHO_T}yes" >&6; }
14913 cat >>confdefs.h <<\_ACEOF
14914 #define HAVE_GCC_ATOMICS 1
14918 echo "$as_me: failed program was
:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 { echo "$as_me:$LINENO: result
: no
" >&5
14922 echo "${ECHO_T}no
" >&6; }
14926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14927 conftest$ac_exeext conftest.$ac_ext
14930 { echo "$as_me:$LINENO: checking
for compiler
'attribute pure' support
" >&5
14931 echo $ECHO_N "checking
for compiler
'attribute pure' support...
$ECHO_C" >&6; }
14932 saved_CFLAGS="$CFLAGS"
14933 CFLAGS="$CFLAGS -Werror"
14934 cat >conftest.$ac_ext <<_ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 static void __attribute__((pure)) *test(void *muffin, ...) {}
14949 rm -f conftest.$ac_objext
14950 if { (ac_try="$ac_compile"
14951 case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_compile") 2>conftest.er1
14958 grep -v '^ *+' conftest.er1 >conftest.err
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14962 (exit $ac_status); } && {
14963 test -z "$ac_c_werror_flag" ||
14964 test ! -s conftest.err
14965 } && test -s conftest.$ac_objext; then
14966 { echo "$as_me:$LINENO: result
: yes" >&5
14967 echo "${ECHO_T}yes" >&6; }
14969 cat >>confdefs.h <<_ACEOF
14970 #define HAVE_ATTRIBUTE_pure 1
14974 echo "$as_me: failed program was
:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 { echo "$as_me:$LINENO: result
: no
" >&5
14978 echo "${ECHO_T}no
" >&6; }
14981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 CFLAGS="$saved_CFLAGS"
14986 { echo "$as_me:$LINENO: checking
for compiler
'attribute malloc' support
" >&5
14987 echo $ECHO_N "checking
for compiler
'attribute malloc' support...
$ECHO_C" >&6; }
14988 saved_CFLAGS="$CFLAGS"
14989 CFLAGS="$CFLAGS -Werror"
14990 cat >conftest.$ac_ext <<_ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 static void __attribute__((malloc)) *test(void *muffin, ...) {}
15005 rm -f conftest.$ac_objext
15006 if { (ac_try="$ac_compile"
15007 case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_compile") 2>conftest.er1
15014 grep -v '^ *+' conftest.er1 >conftest.err
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15018 (exit $ac_status); } && {
15019 test -z "$ac_c_werror_flag" ||
15020 test ! -s conftest.err
15021 } && test -s conftest.$ac_objext; then
15022 { echo "$as_me:$LINENO: result
: yes" >&5
15023 echo "${ECHO_T}yes" >&6; }
15025 cat >>confdefs.h <<_ACEOF
15026 #define HAVE_ATTRIBUTE_malloc 1
15030 echo "$as_me: failed program was
:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15033 { echo "$as_me:$LINENO: result
: no
" >&5
15034 echo "${ECHO_T}no
" >&6; }
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 CFLAGS="$saved_CFLAGS"
15042 { echo "$as_me:$LINENO: checking
for compiler
'attribute const' support
" >&5
15043 echo $ECHO_N "checking
for compiler
'attribute const' support...
$ECHO_C" >&6; }
15044 saved_CFLAGS="$CFLAGS"
15045 CFLAGS="$CFLAGS -Werror"
15046 cat >conftest.$ac_ext <<_ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 static void __attribute__((const)) *test(void *muffin, ...) {}
15061 rm -f conftest.$ac_objext
15062 if { (ac_try="$ac_compile"
15063 case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_compile") 2>conftest.er1
15070 grep -v '^ *+' conftest.er1 >conftest.err
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest.$ac_objext; then
15078 { echo "$as_me:$LINENO: result
: yes" >&5
15079 echo "${ECHO_T}yes" >&6; }
15081 cat >>confdefs.h <<_ACEOF
15082 #define HAVE_ATTRIBUTE_const 1
15086 echo "$as_me: failed program was
:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 { echo "$as_me:$LINENO: result
: no
" >&5
15090 echo "${ECHO_T}no
" >&6; }
15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 CFLAGS="$saved_CFLAGS"
15098 { echo "$as_me:$LINENO: checking
for compiler
'attribute unused' support
" >&5
15099 echo $ECHO_N "checking
for compiler
'attribute unused' support...
$ECHO_C" >&6; }
15100 saved_CFLAGS="$CFLAGS"
15101 CFLAGS="$CFLAGS -Werror"
15102 cat >conftest.$ac_ext <<_ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108 static void __attribute__((unused)) *test(void *muffin, ...) {}
15117 rm -f conftest.$ac_objext
15118 if { (ac_try="$ac_compile"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_compile") 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest.$ac_objext; then
15134 { echo "$as_me:$LINENO: result
: yes" >&5
15135 echo "${ECHO_T}yes" >&6; }
15137 cat >>confdefs.h <<_ACEOF
15138 #define HAVE_ATTRIBUTE_unused 1
15142 echo "$as_me: failed program was
:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 { echo "$as_me:$LINENO: result
: no
" >&5
15146 echo "${ECHO_T}no
" >&6; }
15149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151 CFLAGS="$saved_CFLAGS"
15154 { echo "$as_me:$LINENO: checking
for compiler
'attribute always_inline' support
" >&5
15155 echo $ECHO_N "checking
for compiler
'attribute always_inline' support...
$ECHO_C" >&6; }
15156 saved_CFLAGS="$CFLAGS"
15157 CFLAGS="$CFLAGS -Werror"
15158 cat >conftest.$ac_ext <<_ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h. */
15164 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
15173 rm -f conftest.$ac_objext
15174 if { (ac_try="$ac_compile"
15175 case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_compile") 2>conftest.er1
15182 grep -v '^ *+' conftest.er1 >conftest.err
15184 cat conftest.err >&5
15185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15186 (exit $ac_status); } && {
15187 test -z "$ac_c_werror_flag" ||
15188 test ! -s conftest.err
15189 } && test -s conftest.$ac_objext; then
15190 { echo "$as_me:$LINENO: result
: yes" >&5
15191 echo "${ECHO_T}yes" >&6; }
15193 cat >>confdefs.h <<_ACEOF
15194 #define HAVE_ATTRIBUTE_always_inline 1
15198 echo "$as_me: failed program was
:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15201 { echo "$as_me:$LINENO: result
: no
" >&5
15202 echo "${ECHO_T}no
" >&6; }
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 CFLAGS="$saved_CFLAGS"
15210 { echo "$as_me:$LINENO: checking
for compiler
'attribute deprecated' support
" >&5
15211 echo $ECHO_N "checking
for compiler
'attribute deprecated' support...
$ECHO_C" >&6; }
15212 saved_CFLAGS="$CFLAGS"
15213 CFLAGS="$CFLAGS -Werror"
15214 cat >conftest.$ac_ext <<_ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15220 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
15229 rm -f conftest.$ac_objext
15230 if { (ac_try="$ac_compile"
15231 case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_compile") 2>conftest.er1
15238 grep -v '^ *+' conftest.er1 >conftest.err
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15242 (exit $ac_status); } && {
15243 test -z "$ac_c_werror_flag" ||
15244 test ! -s conftest.err
15245 } && test -s conftest.$ac_objext; then
15246 { echo "$as_me:$LINENO: result
: yes" >&5
15247 echo "${ECHO_T}yes" >&6; }
15249 cat >>confdefs.h <<_ACEOF
15250 #define HAVE_ATTRIBUTE_deprecated 1
15254 echo "$as_me: failed program was
:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15257 { echo "$as_me:$LINENO: result
: no
" >&5
15258 echo "${ECHO_T}no
" >&6; }
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 CFLAGS="$saved_CFLAGS"
15266 { echo "$as_me:$LINENO: checking
for -ffunction-sections support
" >&5
15267 echo $ECHO_N "checking
for -ffunction-sections support...
$ECHO_C" >&6; }
15268 saved_CFLAGS="${CFLAGS}"
15269 CFLAGS="${CFLAGS} -ffunction-sections"
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15285 rm -f conftest.$ac_objext
15286 if { (ac_try="$ac_compile"
15287 case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15291 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_compile") 2>conftest.er1
15294 grep -v '^ *+' conftest.er1 >conftest.err
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15298 (exit $ac_status); } && {
15299 test -z "$ac_c_werror_flag" ||
15300 test ! -s conftest.err
15301 } && test -s conftest.$ac_objext; then
15302 { echo "$as_me:$LINENO: result
: yes" >&5
15303 echo "${ECHO_T}yes" >&6; }
15304 saved_LDFLAGS="${LDFLAGS}"
15305 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15306 { echo "$as_me:$LINENO: checking
for --gc-sections support
" >&5
15307 echo $ECHO_N "checking
for --gc-sections support...
$ECHO_C" >&6; }
15308 cat >conftest.$ac_ext <<_ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15323 rm -f conftest.$ac_objext conftest$ac_exeext
15324 if { (ac_try="$ac_link"
15325 case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_link") 2>conftest.er1
15332 grep -v '^ *+' conftest.er1 >conftest.err
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15336 (exit $ac_status); } && {
15337 test -z "$ac_c_werror_flag" ||
15338 test ! -s conftest.err
15339 } && test -s conftest$ac_exeext &&
15340 $as_test_x conftest$ac_exeext; then
15341 { echo "$as_me:$LINENO: result
: yes" >&5
15342 echo "${ECHO_T}yes" >&6; }
15343 GC_CFLAGS="-ffunction-sections"
15344 GC_LDFLAGS="-Wl,--gc-sections"
15346 echo "$as_me: failed program was
:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 { echo "$as_me:$LINENO: result
: no
" >&5
15350 echo "${ECHO_T}no
" >&6; }
15354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15355 conftest$ac_exeext conftest.$ac_ext
15356 LDFLAGS="${saved_LDFLAGS}"
15358 echo "$as_me: failed program was
:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15361 { echo "$as_me:$LINENO: result
: no
" >&5
15362 echo "${ECHO_T}no
" >&6; }
15366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 CFLAGS="${saved_CFLAGS}"
15371 { echo "$as_me:$LINENO: checking
for -Wdeclaration-after-statement support
" >&5
15372 echo $ECHO_N "checking
for -Wdeclaration-after-statement support...
$ECHO_C" >&6; }
15373 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15374 { echo "$as_me:$LINENO: result
: yes" >&5
15375 echo "${ECHO_T}yes" >&6; }
15376 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15378 { echo "$as_me:$LINENO: result
: no
" >&5
15379 echo "${ECHO_T}no
" >&6; }
15380 AST_DECLARATION_AFTER_STATEMENT=
15384 { echo "$as_me:$LINENO: checking
for -fno-strict-overflow" >&5
15385 echo $ECHO_N "checking
for -fno-strict-overflow...
$ECHO_C" >&6; }
15386 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15387 { echo "$as_me:$LINENO: result
: yes" >&5
15388 echo "${ECHO_T}yes" >&6; }
15389 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15391 { echo "$as_me:$LINENO: result
: no
" >&5
15392 echo "${ECHO_T}no
" >&6; }
15393 AST_NO_STRICT_OVERFLOW=
15397 { echo "$as_me:$LINENO: checking
for library containing res_9_ninit
" >&5
15398 echo $ECHO_N "checking
for library containing res_9_ninit...
$ECHO_C" >&6; }
15399 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15400 echo $ECHO_N "(cached
) $ECHO_C" >&6
15402 ac_func_search_save_LIBS=$LIBS
15403 cat >conftest.$ac_ext <<_ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h. */
15410 /* Override any GCC internal prototype to avoid an error.
15411 Use char because int might match the return type of a GCC
15412 builtin and then its argument prototype would still apply. */
15416 char res_9_ninit ();
15420 return res_9_ninit ();
15425 for ac_lib in '' resolv; do
15426 if test -z "$ac_lib"; then
15427 ac_res="none required
"
15430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (ac_try="$ac_link"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_link") 2>conftest.er1
15441 grep -v '^ *+' conftest.er1 >conftest.err
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15445 (exit $ac_status); } && {
15446 test -z "$ac_c_werror_flag" ||
15447 test ! -s conftest.err
15448 } && test -s conftest$ac_exeext &&
15449 $as_test_x conftest$ac_exeext; then
15450 ac_cv_search_res_9_ninit=$ac_res
15452 echo "$as_me: failed program was
:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15460 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15464 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15467 ac_cv_search_res_9_ninit=no
15469 rm conftest.$ac_ext
15470 LIBS=$ac_func_search_save_LIBS
15472 { echo "$as_me:$LINENO: result
: $ac_cv_search_res_9_ninit" >&5
15473 echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; }
15474 ac_res=$ac_cv_search_res_9_ninit
15475 if test "$ac_res" != no; then
15476 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
15480 { echo "$as_me:$LINENO: checking
for res_ninit
" >&5
15481 echo $ECHO_N "checking
for res_ninit...
$ECHO_C" >&6; }
15482 cat >conftest.$ac_ext <<_ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15489 #ifdef HAVE_SYS_SOCKET_H
15490 #include <sys/socket.h>
15492 #ifdef HAVE_NETINET_IN_H
15493 #include <netinet/in.h>
15495 #ifdef HAVE_ARPA_NAMESER_H
15496 #include <arpa/nameser.h>
15498 #include <resolv.h>
15502 int foo = res_ninit(NULL);
15507 rm -f conftest.$ac_objext conftest$ac_exeext
15508 if { (ac_try="$ac_link"
15509 case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_link") 2>conftest.er1
15516 grep -v '^ *+' conftest.er1 >conftest.err
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15520 (exit $ac_status); } && {
15521 test -z "$ac_c_werror_flag" ||
15522 test ! -s conftest.err
15523 } && test -s conftest$ac_exeext &&
15524 $as_test_x conftest$ac_exeext; then
15525 { echo "$as_me:$LINENO: result
: yes" >&5
15526 echo "${ECHO_T}yes" >&6; }
15528 cat >>confdefs.h <<\_ACEOF
15529 #define HAVE_RES_NINIT 1
15532 { echo "$as_me:$LINENO: checking
for library containing res_9_ndestroy
" >&5
15533 echo $ECHO_N "checking
for library containing res_9_ndestroy...
$ECHO_C" >&6; }
15534 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15535 echo $ECHO_N "(cached
) $ECHO_C" >&6
15537 ac_func_search_save_LIBS=$LIBS
15538 cat >conftest.$ac_ext <<_ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15545 /* Override any GCC internal prototype to avoid an error.
15546 Use char because int might match the return type of a GCC
15547 builtin and then its argument prototype would still apply. */
15551 char res_9_ndestroy ();
15555 return res_9_ndestroy ();
15560 for ac_lib in '' resolv; do
15561 if test -z "$ac_lib"; then
15562 ac_res="none required
"
15565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15567 rm -f conftest.$ac_objext conftest$ac_exeext
15568 if { (ac_try="$ac_link"
15569 case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15574 (eval "$ac_link") 2>conftest.er1
15576 grep -v '^ *+' conftest.er1 >conftest.err
15578 cat conftest.err >&5
15579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15580 (exit $ac_status); } && {
15581 test -z "$ac_c_werror_flag" ||
15582 test ! -s conftest.err
15583 } && test -s conftest$ac_exeext &&
15584 $as_test_x conftest$ac_exeext; then
15585 ac_cv_search_res_9_ndestroy=$ac_res
15587 echo "$as_me: failed program was
:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15595 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15599 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15602 ac_cv_search_res_9_ndestroy=no
15604 rm conftest.$ac_ext
15605 LIBS=$ac_func_search_save_LIBS
15607 { echo "$as_me:$LINENO: result
: $ac_cv_search_res_9_ndestroy" >&5
15608 echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; }
15609 ac_res=$ac_cv_search_res_9_ndestroy
15610 if test "$ac_res" != no; then
15611 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
15615 { echo "$as_me:$LINENO: checking
for res_ndestroy
" >&5
15616 echo $ECHO_N "checking
for res_ndestroy...
$ECHO_C" >&6; }
15617 cat >conftest.$ac_ext <<_ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15624 #ifdef HAVE_SYS_SOCKET_H
15625 #include <sys/socket.h>
15627 #ifdef HAVE_NETINET_IN_H
15628 #include <netinet/in.h>
15630 #ifdef HAVE_ARPA_NAMESER_H
15631 #include <arpa/nameser.h>
15633 #include <resolv.h>
15637 res_ndestroy(NULL);
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (ac_try="$ac_link"
15644 case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_link") 2>conftest.er1
15651 grep -v '^ *+' conftest.er1 >conftest.err
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15655 (exit $ac_status); } && {
15656 test -z "$ac_c_werror_flag" ||
15657 test ! -s conftest.err
15658 } && test -s conftest$ac_exeext &&
15659 $as_test_x conftest$ac_exeext; then
15660 { echo "$as_me:$LINENO: result
: yes" >&5
15661 echo "${ECHO_T}yes" >&6; }
15663 cat >>confdefs.h <<\_ACEOF
15664 #define HAVE_RES_NDESTROY 1
15668 echo "$as_me: failed program was
:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 { echo "$as_me:$LINENO: result
: no
" >&5
15672 echo "${ECHO_T}no
" >&6; }
15676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15677 conftest$ac_exeext conftest.$ac_ext
15679 echo "$as_me: failed program was
:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15682 { echo "$as_me:$LINENO: result
: no
" >&5
15683 echo "${ECHO_T}no
" >&6; }
15687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15688 conftest$ac_exeext conftest.$ac_ext
15690 { echo "$as_me:$LINENO: checking
for RTLD_NOLOAD
" >&5
15691 echo $ECHO_N "checking
for RTLD_NOLOAD...
$ECHO_C" >&6; }
15692 cat >conftest.$ac_ext <<_ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15702 int foo = RTLD_NOLOAD;
15707 rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (ac_try="$ac_link"
15709 case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_link") 2>conftest.er1
15716 grep -v '^ *+' conftest.er1 >conftest.err
15718 cat conftest.err >&5
15719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15720 (exit $ac_status); } && {
15721 test -z "$ac_c_werror_flag" ||
15722 test ! -s conftest.err
15723 } && test -s conftest$ac_exeext &&
15724 $as_test_x conftest$ac_exeext; then
15725 { echo "$as_me:$LINENO: result
: yes" >&5
15726 echo "${ECHO_T}yes" >&6; }
15728 cat >>confdefs.h <<\_ACEOF
15729 #define HAVE_RTLD_NOLOAD 1
15733 echo "$as_me: failed program was
:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15736 { echo "$as_me:$LINENO: result
: no
" >&5
15737 echo "${ECHO_T}no
" >&6; }
15741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15742 conftest$ac_exeext conftest.$ac_ext
15744 { echo "$as_me:$LINENO: checking
for IP_MTU_DISCOVER
" >&5
15745 echo $ECHO_N "checking
for IP_MTU_DISCOVER...
$ECHO_C" >&6; }
15746 cat >conftest.$ac_ext <<_ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 #include <netinet/in.h>
15756 int foo = IP_MTU_DISCOVER;
15761 rm -f conftest.$ac_objext conftest$ac_exeext
15762 if { (ac_try="$ac_link"
15763 case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_link") 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest$ac_exeext &&
15778 $as_test_x conftest$ac_exeext; then
15779 { echo "$as_me:$LINENO: result
: yes" >&5
15780 echo "${ECHO_T}yes" >&6; }
15782 cat >>confdefs.h <<\_ACEOF
15783 #define HAVE_IP_MTU_DISCOVER 1
15787 echo "$as_me: failed program was
:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15790 { echo "$as_me:$LINENO: result
: no
" >&5
15791 echo "${ECHO_T}no
" >&6; }
15795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15796 conftest$ac_exeext conftest.$ac_ext
15798 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15799 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15800 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15801 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15802 echo $ECHO_N "(cached
) $ECHO_C" >&6
15804 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15805 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15807 # Is the header compilable?
15808 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h usability
" >&5
15809 echo $ECHO_N "checking libkern
/OSAtomic.h usability...
$ECHO_C" >&6; }
15810 cat >conftest.$ac_ext <<_ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 $ac_includes_default
15817 #include <libkern/OSAtomic.h>
15819 rm -f conftest.$ac_objext
15820 if { (ac_try="$ac_compile"
15821 case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15826 (eval "$ac_compile") 2>conftest.er1
15828 grep -v '^ *+' conftest.er1 >conftest.err
15830 cat conftest.err >&5
15831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15832 (exit $ac_status); } && {
15833 test -z "$ac_c_werror_flag" ||
15834 test ! -s conftest.err
15835 } && test -s conftest.$ac_objext; then
15836 ac_header_compiler=yes
15838 echo "$as_me: failed program was
:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_header_compiler=no
15844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15846 echo "${ECHO_T}$ac_header_compiler" >&6; }
15848 # Is the header present?
15849 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h presence
" >&5
15850 echo $ECHO_N "checking libkern
/OSAtomic.h presence...
$ECHO_C" >&6; }
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 #include <libkern/OSAtomic.h>
15859 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15860 case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15867 grep -v '^ *+' conftest.er1 >conftest.err
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15871 (exit $ac_status); } >/dev/null && {
15872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15873 test ! -s conftest.err
15875 ac_header_preproc=yes
15877 echo "$as_me: failed program was
:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_header_preproc=no
15883 rm -f conftest.err conftest.$ac_ext
15884 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15885 echo "${ECHO_T}$ac_header_preproc" >&6; }
15887 # So? What about this header?
15888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15890 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15891 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15892 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the compiler
's result" >&5
15893 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result
" >&2;}
15894 ac_header_preproc=yes
15897 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&5
15898 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&2;}
15899 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&5
15900 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&2;}
15901 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&5
15902 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&2;}
15903 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15904 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15905 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the preprocessor
's result" >&5
15906 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result
" >&2;}
15907 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&5
15908 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&2;}
15910 ## ------------------------------- ##
15911 ## Report this to www.asterisk.org ##
15912 ## ------------------------------- ##
15914 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15917 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15918 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15919 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15920 echo $ECHO_N "(cached
) $ECHO_C" >&6
15922 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15924 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15925 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15928 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15930 cat >>confdefs.h <<_ACEOF
15931 #define HAVE_OSX_ATOMICS 1
15938 { echo "$as_me:$LINENO: checking
for int
" >&5
15939 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
15940 if test "${ac_cv_type_int+set}" = set; then
15941 echo $ECHO_N "(cached
) $ECHO_C" >&6
15943 cat >conftest.$ac_ext <<_ACEOF
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h. */
15949 $ac_includes_default
15950 typedef int ac__type_new_;
15954 if ((ac__type_new_ *) 0)
15956 if (sizeof (ac__type_new_))
15962 rm -f conftest.$ac_objext
15963 if { (ac_try="$ac_compile"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_compile") 2>conftest.er1
15971 grep -v '^ *+' conftest.er1 >conftest.err
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest.$ac_objext; then
15981 echo "$as_me: failed program was
:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
15990 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15992 # The cast to long int works around a bug in the HP C Compiler
15993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15995 # This bug is HP SR number 8606223364.
15996 { echo "$as_me:$LINENO: checking size of int
" >&5
15997 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
15998 if test "${ac_cv_sizeof_int+set}" = set; then
15999 echo $ECHO_N "(cached
) $ECHO_C" >&6
16001 if test "$cross_compiling" = yes; then
16002 # Depending upon the size, compute the lo and hi bounds.
16003 cat >conftest.$ac_ext <<_ACEOF
16006 cat confdefs.h >>conftest.$ac_ext
16007 cat >>conftest.$ac_ext <<_ACEOF
16008 /* end confdefs.h. */
16009 $ac_includes_default
16010 typedef int ac__type_sizeof_;
16014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
16021 rm -f conftest.$ac_objext
16022 if { (ac_try="$ac_compile"
16023 case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16027 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_compile") 2>conftest.er1
16030 grep -v '^ *+' conftest.er1 >conftest.err
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16034 (exit $ac_status); } && {
16035 test -z "$ac_c_werror_flag" ||
16036 test ! -s conftest.err
16037 } && test -s conftest.$ac_objext; then
16040 cat >conftest.$ac_ext <<_ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 $ac_includes_default
16047 typedef int ac__type_sizeof_;
16051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16058 rm -f conftest.$ac_objext
16059 if { (ac_try="$ac_compile"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_compile") 2>conftest.er1
16067 grep -v '^ *+' conftest.er1 >conftest.err
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16071 (exit $ac_status); } && {
16072 test -z "$ac_c_werror_flag" ||
16073 test ! -s conftest.err
16074 } && test -s conftest.$ac_objext; then
16075 ac_hi=$ac_mid; break
16077 echo "$as_me: failed program was
:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16080 ac_lo=`expr $ac_mid + 1`
16081 if test $ac_lo -le $ac_mid; then
16085 ac_mid=`expr 2 '*' $ac_mid + 1`
16088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091 echo "$as_me: failed program was
:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 cat >conftest.$ac_ext <<_ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 $ac_includes_default
16101 typedef int ac__type_sizeof_;
16105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
16112 rm -f conftest.$ac_objext
16113 if { (ac_try="$ac_compile"
16114 case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16119 (eval "$ac_compile") 2>conftest.er1
16121 grep -v '^ *+' conftest.er1 >conftest.err
16123 cat conftest.err >&5
16124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16125 (exit $ac_status); } && {
16126 test -z "$ac_c_werror_flag" ||
16127 test ! -s conftest.err
16128 } && test -s conftest.$ac_objext; then
16131 cat >conftest.$ac_ext <<_ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 $ac_includes_default
16138 typedef int ac__type_sizeof_;
16142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
16149 rm -f conftest.$ac_objext
16150 if { (ac_try="$ac_compile"
16151 case "(($ac_try" in
16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16156 (eval "$ac_compile") 2>conftest.er1
16158 grep -v '^ *+' conftest.er1 >conftest.err
16160 cat conftest.err >&5
16161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16162 (exit $ac_status); } && {
16163 test -z "$ac_c_werror_flag" ||
16164 test ! -s conftest.err
16165 } && test -s conftest.$ac_objext; then
16166 ac_lo=$ac_mid; break
16168 echo "$as_me: failed program was
:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 ac_hi=`expr '(' $ac_mid ')' - 1`
16172 if test $ac_mid -le $ac_hi; then
16176 ac_mid=`expr 2 '*' $ac_mid`
16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16182 echo "$as_me: failed program was
:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192 # Binary search between lo and hi bounds.
16193 while test "x
$ac_lo" != "x
$ac_hi"; do
16194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16195 cat >conftest.$ac_ext <<_ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 $ac_includes_default
16202 typedef int ac__type_sizeof_;
16206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16213 rm -f conftest.$ac_objext
16214 if { (ac_try="$ac_compile"
16215 case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_compile") 2>conftest.er1
16222 grep -v '^ *+' conftest.er1 >conftest.err
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16226 (exit $ac_status); } && {
16227 test -z "$ac_c_werror_flag" ||
16228 test ! -s conftest.err
16229 } && test -s conftest.$ac_objext; then
16232 echo "$as_me: failed program was
:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16235 ac_lo=`expr '(' $ac_mid ')' + 1`
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241 ?*) ac_cv_sizeof_int=$ac_lo;;
16242 '') if test "$ac_cv_type_int" = yes; then
16243 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
16244 See \
`config.log' for more details." >&5
16245 echo "$as_me: error: cannot compute sizeof (int)
16246 See \`config.log
' for more details." >&2;}
16247 { (exit 77); exit 77; }; }
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 $ac_includes_default
16260 typedef int ac__type_sizeof_;
16261 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16262 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16264 #include <stdlib.h>
16269 FILE *f = fopen ("conftest.val", "w");
16272 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16274 long int i = longval ();
16275 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16277 fprintf (f, "%ld\n", i);
16281 unsigned long int i = ulongval ();
16282 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16284 fprintf (f, "%lu\n", i);
16286 return ferror (f) || fclose (f) != 0;
16292 rm -f conftest$ac_exeext
16293 if { (ac_try="$ac_link"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_link") 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16303 { (case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_try") 2>&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16312 ac_cv_sizeof_int=`cat conftest.val`
16314 echo "$as_me: program exited with status $ac_status" >&5
16315 echo "$as_me: failed program was:" >&5
16316 sed 's
/^
/|
/' conftest.$ac_ext >&5
16318 ( exit $ac_status )
16319 if test "$ac_cv_type_int" = yes; then
16320 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16321 See \`config.log' for more details.
" >&5
16322 echo "$as_me: error
: cannot compute sizeof
(int
)
16323 See \
`config.log' for more details." >&2;}
16324 { (exit 77); exit 77; }; }
16329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16333 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16334 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16338 cat >>confdefs.h <<_ACEOF
16339 #define SIZEOF_INT $ac_cv_sizeof_int
16344 # do the package library checks now
16347 if test "${USE_ALSA}" != "no"; then
16349 if test "x${ALSA_DIR}" != "x"; then
16350 if test -d ${ALSA_DIR}/lib; then
16351 pbxlibdir="-L${ALSA_DIR}/lib"
16353 pbxlibdir="-L${ALSA_DIR}"
16356 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16357 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16358 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 ac_check_lib_save_LIBS=$LIBS
16362 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16363 cat >conftest.$ac_ext <<_ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16370 /* Override any GCC internal prototype to avoid an error.
16371 Use char because int might match the return type of a GCC
16372 builtin and then its argument prototype would still apply. */
16376 char snd_spcm_init ();
16380 return snd_spcm_init ();
16385 rm -f conftest.$ac_objext conftest$ac_exeext
16386 if { (ac_try="$ac_link"
16387 case "(($ac_try" in
16388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16389 *) ac_try_echo
=$ac_try;;
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_link") 2>conftest.er1
16394 grep -v '^ *+' conftest.er1
>conftest.err
16396 cat conftest.err
>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } && {
16399 test -z "$ac_c_werror_flag" ||
16400 test ! -s conftest.err
16401 } && test -s conftest
$ac_exeext &&
16402 $as_test_x conftest
$ac_exeext; then
16403 ac_cv_lib_asound_snd_spcm_init
=yes
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.
$ac_ext >&5
16408 ac_cv_lib_asound_snd_spcm_init
=no
16411 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16412 conftest
$ac_exeext conftest.
$ac_ext
16413 LIBS
=$ac_check_lib_save_LIBS
16415 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16416 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16417 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16424 if test "${AST_ALSA_FOUND}" = "yes"; then
16425 ALSA_LIB
="-lasound -lm -ldl"
16426 ALSA_HEADER_FOUND
="1"
16427 if test "x${ALSA_DIR}" != "x"; then
16428 ALSA_LIB
="${pbxlibdir} ${ALSA_LIB}"
16429 ALSA_INCLUDE
="-I${ALSA_DIR}/include"
16431 ALSA_INCLUDE
="${ALSA_INCLUDE} "
16432 saved_cppflags
="${CPPFLAGS}"
16433 CPPFLAGS
="${CPPFLAGS} ${ALSA_INCLUDE}"
16434 if test "xalsa/asoundlib.h" != "x" ; then
16435 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16436 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16437 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16438 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16441 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16442 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16444 # Is the header compilable?
16445 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16446 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16447 cat >conftest.
$ac_ext <<_ACEOF
16450 cat confdefs.h
>>conftest.
$ac_ext
16451 cat >>conftest.
$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 $ac_includes_default
16454 #include <alsa/asoundlib.h>
16456 rm -f conftest.
$ac_objext
16457 if { (ac_try
="$ac_compile"
16458 case "(($ac_try" in
16459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_compile") 2>conftest.er1
16465 grep -v '^ *+' conftest.er1 >conftest.err
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } && {
16470 test -z "$ac_c_werror_flag" ||
16471 test ! -s conftest.err
16472 } && test -s conftest.$ac_objext; then
16473 ac_header_compiler=yes
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16478 ac_header_compiler=no
16481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16483 echo "${ECHO_T}$ac_header_compiler" >&6; }
16485 # Is the header present?
16486 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16487 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16488 cat >conftest.$ac_ext <<_ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16494 #include <alsa/asoundlib.h>
16496 if { (ac_try="$ac_cpp conftest.$ac_ext"
16497 case "(($ac_try" in
16498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16499 *) ac_try_echo
=$ac_try;;
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16504 grep -v '^ *+' conftest.er1
>conftest.err
16506 cat conftest.err
>&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } >/dev
/null
&& {
16509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16510 test ! -s conftest.err
16512 ac_header_preproc
=yes
16514 echo "$as_me: failed program was:" >&5
16515 sed 's/^/| /' conftest.
$ac_ext >&5
16517 ac_header_preproc
=no
16520 rm -f conftest.err conftest.
$ac_ext
16521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16522 echo "${ECHO_T}$ac_header_preproc" >&6; }
16524 # So? What about this header?
16525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16527 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16528 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16529 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16530 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16531 ac_header_preproc
=yes
16534 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16535 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16536 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16537 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16538 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16539 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16540 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16541 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16542 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16543 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16544 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16545 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16547 ## ------------------------------- ##
16548 ## Report this to www.asterisk.org ##
16549 ## ------------------------------- ##
16551 ) |
sed "s/^/$as_me: WARNING: /" >&2
16554 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16555 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16556 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 ac_cv_header_alsa_asoundlib_h
=$ac_header_preproc
16561 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16562 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16565 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16566 ALSA_HEADER_FOUND
=1
16568 ALSA_HEADER_FOUND
=0
16573 CPPFLAGS
="${saved_cppflags}"
16574 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16575 if test -n "${ALSA_MANDATORY}" ;
16577 { echo "$as_me:$LINENO: ***" >&5
16578 echo "$as_me: ***" >&6;}
16579 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16580 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16581 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16582 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16583 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16584 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16593 cat >>confdefs.h
<<_ACEOF
16594 #define HAVE_ALSA 1
16598 elif test -n "${ALSA_MANDATORY}";
16600 { echo "$as_me:$LINENO: ***" >&5
16601 echo "$as_me: ***" >&6;}
16602 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16603 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16604 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16605 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16606 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16607 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16614 if test "${USE_CURSES}" != "no"; then
16616 if test "x${CURSES_DIR}" != "x"; then
16617 if test -d ${CURSES_DIR}/lib
; then
16618 pbxlibdir
="-L${CURSES_DIR}/lib"
16620 pbxlibdir
="-L${CURSES_DIR}"
16623 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16624 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16625 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 ac_check_lib_save_LIBS
=$LIBS
16629 LIBS
="-lcurses ${pbxlibdir} $LIBS"
16630 cat >conftest.
$ac_ext <<_ACEOF
16633 cat confdefs.h
>>conftest.
$ac_ext
16634 cat >>conftest.
$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16637 /* Override any GCC internal prototype to avoid an error.
16638 Use char because int might match the return type of a GCC
16639 builtin and then its argument prototype would still apply. */
16652 rm -f conftest.
$ac_objext conftest
$ac_exeext
16653 if { (ac_try
="$ac_link"
16654 case "(($ac_try" in
16655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659 (eval "$ac_link") 2>conftest.er1
16661 grep -v '^ *+' conftest.er1 >conftest.err
16663 cat conftest.err >&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } && {
16666 test -z "$ac_c_werror_flag" ||
16667 test ! -s conftest.err
16668 } && test -s conftest$ac_exeext &&
16669 $as_test_x conftest$ac_exeext; then
16670 ac_cv_lib_curses_initscr=yes
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 ac_cv_lib_curses_initscr=no
16678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16679 conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16682 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16683 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16684 if test $ac_cv_lib_curses_initscr = yes; then
16685 AST_CURSES_FOUND=yes
16687 AST_CURSES_FOUND=no
16691 if test "${AST_CURSES_FOUND}" = "yes"; then
16692 CURSES_LIB="-lcurses "
16693 CURSES_HEADER_FOUND="1"
16694 if test "x${CURSES_DIR}" != "x"; then
16695 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16696 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16698 CURSES_INCLUDE="${CURSES_INCLUDE} "
16699 saved_cppflags="${CPPFLAGS}"
16700 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
16701 if test "xcurses.h" != "x" ; then
16702 if test "${ac_cv_header_curses_h+set}" = set; then
16703 { echo "$as_me:$LINENO: checking for curses.h" >&5
16704 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16705 if test "${ac_cv_header_curses_h+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16709 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16711 # Is the header compilable?
16712 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16713 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16714 cat >conftest.$ac_ext <<_ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16720 $ac_includes_default
16721 #include <curses.h>
16723 rm -f conftest.$ac_objext
16724 if { (ac_try="$ac_compile"
16725 case "(($ac_try" in
16726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16727 *) ac_try_echo
=$ac_try;;
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_compile") 2>conftest.er1
16732 grep -v '^ *+' conftest.er1
>conftest.err
16734 cat conftest.err
>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest.
$ac_objext; then
16740 ac_header_compiler
=yes
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.
$ac_ext >&5
16745 ac_header_compiler
=no
16748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16750 echo "${ECHO_T}$ac_header_compiler" >&6; }
16752 # Is the header present?
16753 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16754 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16755 cat >conftest.
$ac_ext <<_ACEOF
16758 cat confdefs.h
>>conftest.
$ac_ext
16759 cat >>conftest.
$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 #include <curses.h>
16763 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16764 case "(($ac_try" in
16765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16771 grep -v '^ *+' conftest.er1 >conftest.err
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } >/dev/null && {
16776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16777 test ! -s conftest.err
16779 ac_header_preproc=yes
16781 echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16784 ac_header_preproc=no
16787 rm -f conftest.err conftest.$ac_ext
16788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16789 echo "${ECHO_T}$ac_header_preproc" >&6; }
16791 # So? What about this header?
16792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16794 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16795 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16797 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16798 ac_header_preproc=yes
16801 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16802 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16804 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16806 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16808 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16810 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16811 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16812 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16814 ## ------------------------------- ##
16815 ## Report this to www.asterisk.org ##
16816 ## ------------------------------- ##
16818 ) | sed "s/^/$as_me: WARNING: /" >&2
16821 { echo "$as_me:$LINENO: checking for curses.h" >&5
16822 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16823 if test "${ac_cv_header_curses_h+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 ac_cv_header_curses_h=$ac_header_preproc
16828 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16829 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16832 if test $ac_cv_header_curses_h = yes; then
16833 CURSES_HEADER_FOUND=1
16835 CURSES_HEADER_FOUND=0
16840 CPPFLAGS="${saved_cppflags}"
16841 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16842 if test -n "${CURSES_MANDATORY}" ;
16844 { echo "$as_me:$LINENO: ***" >&5
16845 echo "$as_me: ***" >&6;}
16846 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16847 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16848 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16849 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16850 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16851 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16860 cat >>confdefs.h <<_ACEOF
16861 #define HAVE_CURSES 1
16865 elif test -n "${CURSES_MANDATORY}";
16867 { echo "$as_me:$LINENO: ***" >&5
16868 echo "$as_me: ***" >&6;}
16869 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16870 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16871 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16872 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16873 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16874 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16880 if test "x${host_os}" = "xlinux-gnu" ; then
16882 if test "${USE_CAP}" != "no"; then
16884 if test "x${CAP_DIR}" != "x"; then
16885 if test -d ${CAP_DIR}/lib; then
16886 pbxlibdir="-L${CAP_DIR}/lib"
16888 pbxlibdir="-L${CAP_DIR}"
16891 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
16892 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
16893 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16896 ac_check_lib_save_LIBS=$LIBS
16897 LIBS="-lcap ${pbxlibdir} $LIBS"
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16905 /* Override any GCC internal prototype to avoid an error.
16906 Use char because int might match the return type of a GCC
16907 builtin and then its argument prototype would still apply. */
16911 char cap_from_text ();
16915 return cap_from_text ();
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (ac_try="$ac_link"
16922 case "(($ac_try" in
16923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16924 *) ac_try_echo
=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_link") 2>conftest.er1
16929 grep -v '^ *+' conftest.er1
>conftest.err
16931 cat conftest.err
>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } && {
16934 test -z "$ac_c_werror_flag" ||
16935 test ! -s conftest.err
16936 } && test -s conftest
$ac_exeext &&
16937 $as_test_x conftest
$ac_exeext; then
16938 ac_cv_lib_cap_cap_from_text
=yes
16940 echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.
$ac_ext >&5
16943 ac_cv_lib_cap_cap_from_text
=no
16946 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16947 conftest
$ac_exeext conftest.
$ac_ext
16948 LIBS
=$ac_check_lib_save_LIBS
16950 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
16951 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
16952 if test $ac_cv_lib_cap_cap_from_text = yes; then
16959 if test "${AST_CAP_FOUND}" = "yes"; then
16961 CAP_HEADER_FOUND
="1"
16962 if test "x${CAP_DIR}" != "x"; then
16963 CAP_LIB
="${pbxlibdir} ${CAP_LIB}"
16964 CAP_INCLUDE
="-I${CAP_DIR}/include"
16966 CAP_INCLUDE
="${CAP_INCLUDE} "
16967 saved_cppflags
="${CPPFLAGS}"
16968 CPPFLAGS
="${CPPFLAGS} ${CAP_INCLUDE}"
16969 if test "xsys/capability.h" != "x" ; then
16970 if test "${ac_cv_header_sys_capability_h+set}" = set; then
16971 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
16972 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
16973 if test "${ac_cv_header_sys_capability_h+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16976 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
16977 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
16979 # Is the header compilable?
16980 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
16981 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
16982 cat >conftest.
$ac_ext <<_ACEOF
16985 cat confdefs.h
>>conftest.
$ac_ext
16986 cat >>conftest.
$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16988 $ac_includes_default
16989 #include <sys/capability.h>
16991 rm -f conftest.
$ac_objext
16992 if { (ac_try
="$ac_compile"
16993 case "(($ac_try" in
16994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_compile") 2>conftest.er1
17000 grep -v '^ *+' conftest.er1 >conftest.err
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } && {
17005 test -z "$ac_c_werror_flag" ||
17006 test ! -s conftest.err
17007 } && test -s conftest.$ac_objext; then
17008 ac_header_compiler=yes
17010 echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17013 ac_header_compiler=no
17016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17018 echo "${ECHO_T}$ac_header_compiler" >&6; }
17020 # Is the header present?
17021 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17022 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17023 cat >conftest.$ac_ext <<_ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029 #include <sys/capability.h>
17031 if { (ac_try="$ac_cpp conftest.$ac_ext"
17032 case "(($ac_try" in
17033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17034 *) ac_try_echo
=$ac_try;;
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17039 grep -v '^ *+' conftest.er1
>conftest.err
17041 cat conftest.err
>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } >/dev
/null
&& {
17044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17045 test ! -s conftest.err
17047 ac_header_preproc
=yes
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.
$ac_ext >&5
17052 ac_header_preproc
=no
17055 rm -f conftest.err conftest.
$ac_ext
17056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17057 echo "${ECHO_T}$ac_header_preproc" >&6; }
17059 # So? What about this header?
17060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17062 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17063 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17064 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17065 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17066 ac_header_preproc
=yes
17069 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17070 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17071 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17072 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17073 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17074 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17075 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17076 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17078 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17079 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17080 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17082 ## ------------------------------- ##
17083 ## Report this to www.asterisk.org ##
17084 ## ------------------------------- ##
17086 ) |
sed "s/^/$as_me: WARNING: /" >&2
17089 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17090 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17091 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17094 ac_cv_header_sys_capability_h
=$ac_header_preproc
17096 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17097 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17100 if test $ac_cv_header_sys_capability_h = yes; then
17108 CPPFLAGS
="${saved_cppflags}"
17109 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17110 if test -n "${CAP_MANDATORY}" ;
17112 { echo "$as_me:$LINENO: ***" >&5
17113 echo "$as_me: ***" >&6;}
17114 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17115 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17116 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17117 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17118 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17119 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17128 cat >>confdefs.h
<<_ACEOF
17133 elif test -n "${CAP_MANDATORY}";
17135 { echo "$as_me:$LINENO: ***" >&5
17136 echo "$as_me: ***" >&6;}
17137 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17138 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17139 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17140 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17141 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17142 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17149 PBX_DAHDI_TRANSCODE
=0
17150 if test "${USE_DAHDI}" != "no" ; then
17152 if test "x${PBX_DAHDI}" != "x1"; then
17153 { echo "$as_me:$LINENO: checking for DAHDI_CODE in dahdi/user.h" >&5
17154 echo $ECHO_N "checking for DAHDI_CODE in dahdi/user.h... $ECHO_C" >&6; }
17155 saved_cppflags
="${CPPFLAGS}"
17156 if test "x${DAHDI_DIR}" != "x"; then
17157 DAHDI_INCLUDE
="-I${DAHDI_DIR}/include"
17159 CPPFLAGS
="${CPPFLAGS} ${DAHDI_INCLUDE}"
17161 cat >conftest.
$ac_ext <<_ACEOF
17164 cat confdefs.h
>>conftest.
$ac_ext
17165 cat >>conftest.
$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 #include <dahdi/user.h>
17171 #if defined(DAHDI_CODE)
17182 rm -f conftest.
$ac_objext
17183 if { (ac_try
="$ac_compile"
17184 case "(($ac_try" in
17185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_compile") 2>conftest.er1
17191 grep -v '^ *+' conftest.er1 >conftest.err
17193 cat conftest.err >&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && {
17196 test -z "$ac_c_werror_flag" ||
17197 test ! -s conftest.err
17198 } && test -s conftest.$ac_objext; then
17199 { echo "$as_me:$LINENO: result: yes" >&5
17200 echo "${ECHO_T}yes" >&6; }
17203 cat >>confdefs.h <<\_ACEOF
17204 #define HAVE_DAHDI 1
17208 cat >>confdefs.h <<\_ACEOF
17209 #define HAVE_DAHDI_VERSION
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 { echo "$as_me:$LINENO: result: no" >&5
17218 echo "${ECHO_T}no" >&6; }
17222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223 CPPFLAGS="${saved_cppflags}"
17227 if test "x${PBX_DAHDI}" = "x1" ; then
17228 PBX_DAHDI_TRANSCODE=1
17234 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17235 if test "xgetifaddrs() support" != "x"; then
17236 { echo "$as_me:$LINENO: checking for getifaddrs() support" >&5
17237 echo $ECHO_N "checking for getifaddrs() support... $ECHO_C" >&6; }
17239 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17240 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17242 saved_cppflags="${CPPFLAGS}"
17243 if test "x${GETIFADDRS_DIR}" != "x"; then
17244 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
17246 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17248 cat >conftest.$ac_ext <<_ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17254 #include <ifaddrs.h>
17258 struct ifaddrs *p; getifaddrs(&p);
17264 rm -f conftest.$ac_objext
17265 if { (ac_try="$ac_compile"
17266 case "(($ac_try" in
17267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17268 *) ac_try_echo
=$ac_try;;
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_compile") 2>conftest.er1
17273 grep -v '^ *+' conftest.er1
>conftest.err
17275 cat conftest.err
>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } && {
17278 test -z "$ac_c_werror_flag" ||
17279 test ! -s conftest.err
17280 } && test -s conftest.
$ac_objext; then
17281 { echo "$as_me:$LINENO: result: yes" >&5
17282 echo "${ECHO_T}yes" >&6; }
17285 cat >>confdefs.h
<<\_ACEOF
17286 #define HAVE_GETIFADDRS 1
17290 cat >>confdefs.h
<<\_ACEOF
17291 #define HAVE_GETIFADDRS_VERSION
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.
$ac_ext >&5
17299 { echo "$as_me:$LINENO: result: no" >&5
17300 echo "${ECHO_T}no" >&6; }
17304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17305 CPPFLAGS
="${saved_cppflags}"
17312 if test "${USE_GSM}" != "no"; then
17313 if test "${GSM_DIR}" = "internal"; then
17315 elif test "${GSM_DIR}" != ""; then
17318 if test "${GSM_SYSTEM}" = "yes"; then
17320 if test "x${GSM_DIR}" != "x"; then
17321 if test -d ${GSM_DIR}/lib
; then
17322 gsmlibdir
="-L${GSM_DIR}/lib"
17324 gsmlibdir
="-L${GSM_DIR}"
17327 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17328 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17329 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 ac_check_lib_save_LIBS
=$LIBS
17333 LIBS
="-lgsm ${gsmlibdir} $LIBS"
17334 cat >conftest.
$ac_ext <<_ACEOF
17337 cat confdefs.h
>>conftest.
$ac_ext
17338 cat >>conftest.
$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17341 /* Override any GCC internal prototype to avoid an error.
17342 Use char because int might match the return type of a GCC
17343 builtin and then its argument prototype would still apply. */
17347 char gsm_create ();
17351 return gsm_create ();
17356 rm -f conftest.
$ac_objext conftest
$ac_exeext
17357 if { (ac_try
="$ac_link"
17358 case "(($ac_try" in
17359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_link") 2>conftest.er1
17365 grep -v '^ *+' conftest.er1 >conftest.err
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } && {
17370 test -z "$ac_c_werror_flag" ||
17371 test ! -s conftest.err
17372 } && test -s conftest$ac_exeext &&
17373 $as_test_x conftest$ac_exeext; then
17374 ac_cv_lib_gsm_gsm_create=yes
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 ac_cv_lib_gsm_gsm_create=no
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383 conftest$ac_exeext conftest.$ac_ext
17384 LIBS=$ac_check_lib_save_LIBS
17386 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17387 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17388 if test $ac_cv_lib_gsm_gsm_create = yes; then
17390 cat >>confdefs.h <<_ACEOF
17396 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17397 if test "x${GSM_DIR}" != "x" ; then
17398 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" |
$as_tr_sh`
17399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17400 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17401 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 ac_res=`eval echo '${'$as_ac_Header'}'`
17406 { echo "$as_me:$LINENO: result: $ac_res" >&5
17407 echo "${ECHO_T}$ac_res" >&6; }
17409 # Is the header compilable?
17410 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17411 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17412 cat >conftest.$ac_ext <<_ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 $ac_includes_default
17419 #include <${GSM_DIR}/include/gsm.h>
17421 rm -f conftest.$ac_objext
17422 if { (ac_try="$ac_compile"
17423 case "(($ac_try" in
17424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17425 *) ac_try_echo
=$ac_try;;
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_compile") 2>conftest.er1
17430 grep -v '^ *+' conftest.er1
>conftest.err
17432 cat conftest.err
>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } && {
17435 test -z "$ac_c_werror_flag" ||
17436 test ! -s conftest.err
17437 } && test -s conftest.
$ac_objext; then
17438 ac_header_compiler
=yes
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.
$ac_ext >&5
17443 ac_header_compiler
=no
17446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17448 echo "${ECHO_T}$ac_header_compiler" >&6; }
17450 # Is the header present?
17451 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17452 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17453 cat >conftest.
$ac_ext <<_ACEOF
17456 cat confdefs.h
>>conftest.
$ac_ext
17457 cat >>conftest.
$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 #include <${GSM_DIR}/include/gsm.h>
17461 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17462 case "(($ac_try" in
17463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17469 grep -v '^ *+' conftest.er1 >conftest.err
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } >/dev/null && {
17474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17475 test ! -s conftest.err
17477 ac_header_preproc=yes
17479 echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17482 ac_header_preproc=no
17485 rm -f conftest.err conftest.$ac_ext
17486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17487 echo "${ECHO_T}$ac_header_preproc" >&6; }
17489 # So? What about this header?
17490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17492 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17493 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17494 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17495 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17496 ac_header_preproc=yes
17499 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17500 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17501 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17502 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17503 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17504 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17505 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17506 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17507 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17508 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17509 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17510 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17512 ## ------------------------------- ##
17513 ## Report this to www.asterisk.org ##
17514 ## ------------------------------- ##
17516 ) | sed "s/^/$as_me: WARNING: /" >&2
17519 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17520 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17524 eval "$as_ac_Header=\$ac_header_preproc"
17526 ac_res=`eval echo '${'$as_ac_Header'}'`
17527 { echo "$as_me:$LINENO: result: $ac_res" >&5
17528 echo "${ECHO_T}$ac_res" >&6; }
17531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17538 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" |
$as_tr_sh`
17539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17540 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17541 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 ac_res=`eval echo '${'$as_ac_Header'}'`
17546 { echo "$as_me:$LINENO: result: $ac_res" >&5
17547 echo "${ECHO_T}$ac_res" >&6; }
17549 # Is the header compilable?
17550 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17551 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17552 cat >conftest.$ac_ext <<_ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h. */
17558 $ac_includes_default
17559 #include <${GSM_DIR}/include/gsm/gsm.h>
17561 rm -f conftest.$ac_objext
17562 if { (ac_try="$ac_compile"
17563 case "(($ac_try" in
17564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17565 *) ac_try_echo
=$ac_try;;
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_compile") 2>conftest.er1
17570 grep -v '^ *+' conftest.er1
>conftest.err
17572 cat conftest.err
>&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } && {
17575 test -z "$ac_c_werror_flag" ||
17576 test ! -s conftest.err
17577 } && test -s conftest.
$ac_objext; then
17578 ac_header_compiler
=yes
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.
$ac_ext >&5
17583 ac_header_compiler
=no
17586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17588 echo "${ECHO_T}$ac_header_compiler" >&6; }
17590 # Is the header present?
17591 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17592 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17593 cat >conftest.
$ac_ext <<_ACEOF
17596 cat confdefs.h
>>conftest.
$ac_ext
17597 cat >>conftest.
$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 #include <${GSM_DIR}/include/gsm/gsm.h>
17601 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17602 case "(($ac_try" in
17603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17609 grep -v '^ *+' conftest.er1 >conftest.err
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } >/dev/null && {
17614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17615 test ! -s conftest.err
17617 ac_header_preproc=yes
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17622 ac_header_preproc=no
17625 rm -f conftest.err conftest.$ac_ext
17626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17627 echo "${ECHO_T}$ac_header_preproc" >&6; }
17629 # So? What about this header?
17630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17632 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17633 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17634 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17635 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17636 ac_header_preproc=yes
17639 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17640 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17641 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17642 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17643 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17644 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17645 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17646 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17647 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17648 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17649 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17650 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17652 ## ------------------------------- ##
17653 ## Report this to www.asterisk.org ##
17654 ## ------------------------------- ##
17656 ) | sed "s/^/$as_me: WARNING: /" >&2
17659 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17660 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17664 eval "$as_ac_Header=\$ac_header_preproc"
17666 ac_res=`eval echo '${'$as_ac_Header'}'`
17667 { echo "$as_me:$LINENO: result: $ac_res" >&5
17668 echo "${ECHO_T}$ac_res" >&6; }
17671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17672 GSM_GSM_HEADER_FOUND=1
17674 GSM_GSM_HEADER_FOUND=0
17679 if test "${ac_cv_header_gsm_h+set}" = set; then
17680 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17681 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17682 if test "${ac_cv_header_gsm_h+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17686 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17688 # Is the header compilable?
17689 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17690 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17691 cat >conftest.$ac_ext <<_ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 $ac_includes_default
17700 rm -f conftest.$ac_objext
17701 if { (ac_try="$ac_compile"
17702 case "(($ac_try" in
17703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17704 *) ac_try_echo
=$ac_try;;
17706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17707 (eval "$ac_compile") 2>conftest.er1
17709 grep -v '^ *+' conftest.er1
>conftest.err
17711 cat conftest.err
>&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } && {
17714 test -z "$ac_c_werror_flag" ||
17715 test ! -s conftest.err
17716 } && test -s conftest.
$ac_objext; then
17717 ac_header_compiler
=yes
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.
$ac_ext >&5
17722 ac_header_compiler
=no
17725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17727 echo "${ECHO_T}$ac_header_compiler" >&6; }
17729 # Is the header present?
17730 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17731 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17732 cat >conftest.
$ac_ext <<_ACEOF
17735 cat confdefs.h
>>conftest.
$ac_ext
17736 cat >>conftest.
$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17740 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17741 case "(($ac_try" in
17742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17743 *) ac_try_echo=$ac_try;;
17745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17748 grep -v '^ *+' conftest.er1 >conftest.err
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } >/dev/null && {
17753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17754 test ! -s conftest.err
17756 ac_header_preproc=yes
17758 echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17761 ac_header_preproc=no
17764 rm -f conftest.err conftest.$ac_ext
17765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17766 echo "${ECHO_T}$ac_header_preproc" >&6; }
17768 # So? What about this header?
17769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17771 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17772 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17773 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17774 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17775 ac_header_preproc=yes
17778 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17779 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17780 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17781 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17782 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17783 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17784 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17785 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17786 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17787 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17788 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17789 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17791 ## ------------------------------- ##
17792 ## Report this to www.asterisk.org ##
17793 ## ------------------------------- ##
17795 ) | sed "s/^/$as_me: WARNING: /" >&2
17798 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17799 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17800 if test "${ac_cv_header_gsm_h+set}" = set; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17803 ac_cv_header_gsm_h=$ac_header_preproc
17805 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17806 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17809 if test $ac_cv_header_gsm_h = yes; then
17816 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17817 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17818 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17819 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17820 echo $ECHO_N "(cached) $ECHO_C" >&6
17822 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17823 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17825 # Is the header compilable?
17826 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17827 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17828 cat >conftest.$ac_ext <<_ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 $ac_includes_default
17835 #include <gsm/gsm.h>
17837 rm -f conftest.$ac_objext
17838 if { (ac_try="$ac_compile"
17839 case "(($ac_try" in
17840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17841 *) ac_try_echo
=$ac_try;;
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_compile") 2>conftest.er1
17846 grep -v '^ *+' conftest.er1
>conftest.err
17848 cat conftest.err
>&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } && {
17851 test -z "$ac_c_werror_flag" ||
17852 test ! -s conftest.err
17853 } && test -s conftest.
$ac_objext; then
17854 ac_header_compiler
=yes
17856 echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.
$ac_ext >&5
17859 ac_header_compiler
=no
17862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17864 echo "${ECHO_T}$ac_header_compiler" >&6; }
17866 # Is the header present?
17867 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17868 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17869 cat >conftest.
$ac_ext <<_ACEOF
17872 cat confdefs.h
>>conftest.
$ac_ext
17873 cat >>conftest.
$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17875 #include <gsm/gsm.h>
17877 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17878 case "(($ac_try" in
17879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17885 grep -v '^ *+' conftest.er1 >conftest.err
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } >/dev/null && {
17890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17891 test ! -s conftest.err
17893 ac_header_preproc=yes
17895 echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 ac_header_preproc=no
17901 rm -f conftest.err conftest.$ac_ext
17902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17903 echo "${ECHO_T}$ac_header_preproc" >&6; }
17905 # So? What about this header?
17906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17908 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17909 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17910 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
17911 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
17912 ac_header_preproc=yes
17915 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
17916 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
17917 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
17918 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17919 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
17920 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
17921 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17922 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17923 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
17924 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17925 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
17926 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17928 ## ------------------------------- ##
17929 ## Report this to www.asterisk.org ##
17930 ## ------------------------------- ##
17932 ) | sed "s/^/$as_me: WARNING: /" >&2
17935 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17936 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17937 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17940 ac_cv_header_gsm_gsm_h=$ac_header_preproc
17942 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17943 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17946 if test $ac_cv_header_gsm_gsm_h = yes; then
17947 GSM_GSM_HEADER_FOUND=1
17949 GSM_GSM_HEADER_FOUND=0
17954 if test "${GSM_HEADER_FOUND}" = "0" ; then
17955 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
17956 if test "x${GSM_MANDATORY}" = "xyes" ; then
17957 { echo "$as_me:$LINENO: ***" >&5
17958 echo "$as_me: ***" >&6;}
17959 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
17960 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
17961 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
17962 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
17963 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
17964 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
17970 if test "${GSM_HEADER_FOUND}" = "1" ; then
17972 cat >>confdefs.h <<_ACEOF
17973 #define HAVE_GSM_HEADER 1
17978 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
17980 cat >>confdefs.h <<_ACEOF
17981 #define HAVE_GSM_GSM_HEADER 1
17987 if test "${GSM_OK}" = "1" ; then
17989 if test "x${GSM_DIR}" != "x"; then
17990 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
17991 GSM_INCLUDE="-I${GSM_DIR}/include"
17998 if test "${GSM_INTERNAL}" = "yes"; then
18001 cat >>confdefs.h <<_ACEOF
18002 #define HAVE_GSM_HEADER 1
18009 if test "${USE_IKSEMEL}" != "no"; then
18011 if test "x${IKSEMEL_DIR}" != "x"; then
18012 if test -d ${IKSEMEL_DIR}/lib; then
18013 pbxlibdir="-L${IKSEMEL_DIR}/lib"
18015 pbxlibdir="-L${IKSEMEL_DIR}"
18018 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18019 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18020 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18023 ac_check_lib_save_LIBS=$LIBS
18024 LIBS="-liksemel ${pbxlibdir} $LIBS"
18025 cat >conftest.$ac_ext <<_ACEOF
18028 cat confdefs.h >>conftest.$ac_ext
18029 cat >>conftest.$ac_ext <<_ACEOF
18030 /* end confdefs.h. */
18032 /* Override any GCC internal prototype to avoid an error.
18033 Use char because int might match the return type of a GCC
18034 builtin and then its argument prototype would still apply. */
18038 char iks_start_sasl ();
18042 return iks_start_sasl ();
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (ac_try="$ac_link"
18049 case "(($ac_try" in
18050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18051 *) ac_try_echo
=$ac_try;;
18053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18054 (eval "$ac_link") 2>conftest.er1
18056 grep -v '^ *+' conftest.er1
>conftest.err
18058 cat conftest.err
>&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } && {
18061 test -z "$ac_c_werror_flag" ||
18062 test ! -s conftest.err
18063 } && test -s conftest
$ac_exeext &&
18064 $as_test_x conftest
$ac_exeext; then
18065 ac_cv_lib_iksemel_iks_start_sasl
=yes
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.
$ac_ext >&5
18070 ac_cv_lib_iksemel_iks_start_sasl
=no
18073 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18074 conftest
$ac_exeext conftest.
$ac_ext
18075 LIBS
=$ac_check_lib_save_LIBS
18077 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18078 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18079 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18080 AST_IKSEMEL_FOUND
=yes
18082 AST_IKSEMEL_FOUND
=no
18086 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18087 IKSEMEL_LIB
="-liksemel "
18088 IKSEMEL_HEADER_FOUND
="1"
18089 if test "x${IKSEMEL_DIR}" != "x"; then
18090 IKSEMEL_LIB
="${pbxlibdir} ${IKSEMEL_LIB}"
18091 IKSEMEL_INCLUDE
="-I${IKSEMEL_DIR}/include"
18093 IKSEMEL_INCLUDE
="${IKSEMEL_INCLUDE} "
18094 saved_cppflags
="${CPPFLAGS}"
18095 CPPFLAGS
="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
18096 if test "xiksemel.h" != "x" ; then
18097 if test "${ac_cv_header_iksemel_h+set}" = set; then
18098 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18099 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18100 if test "${ac_cv_header_iksemel_h+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18103 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18104 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18106 # Is the header compilable?
18107 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18108 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18109 cat >conftest.
$ac_ext <<_ACEOF
18112 cat confdefs.h
>>conftest.
$ac_ext
18113 cat >>conftest.
$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18115 $ac_includes_default
18116 #include <iksemel.h>
18118 rm -f conftest.
$ac_objext
18119 if { (ac_try
="$ac_compile"
18120 case "(($ac_try" in
18121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_compile") 2>conftest.er1
18127 grep -v '^ *+' conftest.er1 >conftest.err
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } && {
18132 test -z "$ac_c_werror_flag" ||
18133 test ! -s conftest.err
18134 } && test -s conftest.$ac_objext; then
18135 ac_header_compiler=yes
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 ac_header_compiler=no
18143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18145 echo "${ECHO_T}$ac_header_compiler" >&6; }
18147 # Is the header present?
18148 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18149 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 #include <iksemel.h>
18158 if { (ac_try="$ac_cpp conftest.$ac_ext"
18159 case "(($ac_try" in
18160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18161 *) ac_try_echo
=$ac_try;;
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18166 grep -v '^ *+' conftest.er1
>conftest.err
18168 cat conftest.err
>&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } >/dev
/null
&& {
18171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18172 test ! -s conftest.err
18174 ac_header_preproc
=yes
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.
$ac_ext >&5
18179 ac_header_preproc
=no
18182 rm -f conftest.err conftest.
$ac_ext
18183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18184 echo "${ECHO_T}$ac_header_preproc" >&6; }
18186 # So? What about this header?
18187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18189 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18190 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18191 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18192 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18193 ac_header_preproc
=yes
18196 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18197 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18198 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18199 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18200 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18201 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18202 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18203 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18204 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18205 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18206 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18207 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18209 ## ------------------------------- ##
18210 ## Report this to www.asterisk.org ##
18211 ## ------------------------------- ##
18213 ) |
sed "s/^/$as_me: WARNING: /" >&2
18216 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18217 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18218 if test "${ac_cv_header_iksemel_h+set}" = set; then
18219 echo $ECHO_N "(cached) $ECHO_C" >&6
18221 ac_cv_header_iksemel_h
=$ac_header_preproc
18223 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18224 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18227 if test $ac_cv_header_iksemel_h = yes; then
18228 IKSEMEL_HEADER_FOUND
=1
18230 IKSEMEL_HEADER_FOUND
=0
18235 CPPFLAGS
="${saved_cppflags}"
18236 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18237 if test -n "${IKSEMEL_MANDATORY}" ;
18239 { echo "$as_me:$LINENO: ***" >&5
18240 echo "$as_me: ***" >&6;}
18241 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18242 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18243 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18244 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18245 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18246 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18255 cat >>confdefs.h
<<_ACEOF
18256 #define HAVE_IKSEMEL 1
18260 elif test -n "${IKSEMEL_MANDATORY}";
18262 { echo "$as_me:$LINENO: ***" >&5
18263 echo "$as_me: ***" >&6;}
18264 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18265 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18266 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18267 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18268 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18269 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18275 if test "${PBX_IKSEMEL}" = 1; then
18277 if test "${USE_GNUTLS}" != "no"; then
18279 if test "x${GNUTLS_DIR}" != "x"; then
18280 if test -d ${GNUTLS_DIR}/lib
; then
18281 pbxlibdir
="-L${GNUTLS_DIR}/lib"
18283 pbxlibdir
="-L${GNUTLS_DIR}"
18286 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18287 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18288 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 ac_check_lib_save_LIBS
=$LIBS
18292 LIBS
="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18293 cat >conftest.
$ac_ext <<_ACEOF
18296 cat confdefs.h
>>conftest.
$ac_ext
18297 cat >>conftest.
$ac_ext <<_ACEOF
18298 /* end confdefs.h. */
18300 /* Override any GCC internal prototype to avoid an error.
18301 Use char because int might match the return type of a GCC
18302 builtin and then its argument prototype would still apply. */
18306 char gnutls_bye ();
18310 return gnutls_bye ();
18315 rm -f conftest.
$ac_objext conftest
$ac_exeext
18316 if { (ac_try
="$ac_link"
18317 case "(($ac_try" in
18318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18319 *) ac_try_echo=$ac_try;;
18321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322 (eval "$ac_link") 2>conftest.er1
18324 grep -v '^ *+' conftest.er1 >conftest.err
18326 cat conftest.err >&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } && {
18329 test -z "$ac_c_werror_flag" ||
18330 test ! -s conftest.err
18331 } && test -s conftest$ac_exeext &&
18332 $as_test_x conftest$ac_exeext; then
18333 ac_cv_lib_gnutls_gnutls_bye=yes
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 ac_cv_lib_gnutls_gnutls_bye=no
18341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18342 conftest$ac_exeext conftest.$ac_ext
18343 LIBS=$ac_check_lib_save_LIBS
18345 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18346 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18347 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18348 AST_GNUTLS_FOUND=yes
18350 AST_GNUTLS_FOUND=no
18354 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18355 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
18356 GNUTLS_HEADER_FOUND="1"
18357 if test "x${GNUTLS_DIR}" != "x"; then
18358 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
18359 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
18361 GNUTLS_INCLUDE="${GNUTLS_INCLUDE} "
18362 saved_cppflags="${CPPFLAGS}"
18363 CPPFLAGS="${CPPFLAGS} ${GNUTLS_INCLUDE}"
18364 if test "xgnutls/gnutls.h" != "x" ; then
18365 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18366 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18367 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18368 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18372 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18374 # Is the header compilable?
18375 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18376 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18377 cat >conftest.$ac_ext <<_ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 $ac_includes_default
18384 #include <gnutls/gnutls.h>
18386 rm -f conftest.$ac_objext
18387 if { (ac_try="$ac_compile"
18388 case "(($ac_try" in
18389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18390 *) ac_try_echo
=$ac_try;;
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_compile") 2>conftest.er1
18395 grep -v '^ *+' conftest.er1
>conftest.err
18397 cat conftest.err
>&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } && {
18400 test -z "$ac_c_werror_flag" ||
18401 test ! -s conftest.err
18402 } && test -s conftest.
$ac_objext; then
18403 ac_header_compiler
=yes
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.
$ac_ext >&5
18408 ac_header_compiler
=no
18411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18413 echo "${ECHO_T}$ac_header_compiler" >&6; }
18415 # Is the header present?
18416 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18417 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18418 cat >conftest.
$ac_ext <<_ACEOF
18421 cat confdefs.h
>>conftest.
$ac_ext
18422 cat >>conftest.
$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18424 #include <gnutls/gnutls.h>
18426 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18427 case "(($ac_try" in
18428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18434 grep -v '^ *+' conftest.er1 >conftest.err
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } >/dev/null && {
18439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18440 test ! -s conftest.err
18442 ac_header_preproc=yes
18444 echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18447 ac_header_preproc=no
18450 rm -f conftest.err conftest.$ac_ext
18451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18452 echo "${ECHO_T}$ac_header_preproc" >&6; }
18454 # So? What about this header?
18455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18457 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18458 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18460 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18461 ac_header_preproc=yes
18464 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18465 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18466 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18467 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18468 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18469 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18470 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18471 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18472 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18473 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18474 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18475 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18477 ## ------------------------------- ##
18478 ## Report this to www.asterisk.org ##
18479 ## ------------------------------- ##
18481 ) | sed "s/^/$as_me: WARNING: /" >&2
18484 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18485 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18486 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
18491 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18492 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18495 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18496 GNUTLS_HEADER_FOUND=1
18498 GNUTLS_HEADER_FOUND=0
18503 CPPFLAGS="${saved_cppflags}"
18504 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18505 if test -n "${GNUTLS_MANDATORY}" ;
18507 { echo "$as_me:$LINENO: ***" >&5
18508 echo "$as_me: ***" >&6;}
18509 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18510 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18511 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18512 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18513 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18514 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18523 cat >>confdefs.h <<_ACEOF
18524 #define HAVE_GNUTLS 1
18528 elif test -n "${GNUTLS_MANDATORY}";
18530 { echo "$as_me:$LINENO: ***" >&5
18531 echo "$as_me: ***" >&6;}
18532 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18533 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18534 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18535 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18536 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18537 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18544 if test "${USE_IMAP_TK}" != "no"; then
18545 saved_cppflags="${CPPFLAGS}"
18546 saved_libs="${LIBS}"
18547 switch_to_system_on_failure="no"
18548 if test "${IMAP_TK_DIR}" = ""; then
18549 IMAP_TK_DIR=`pwd`"/../imap-2004g"
18550 switch_to_system_on_failure="yes"
18552 if test "${IMAP_TK_DIR}" != "system"; then
18553 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18554 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18555 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
18556 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client
/LDFLAGS
`
18558 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
18559 imap_include="-I${IMAP_TK_DIR}/c-client"
18560 CPPFLAGS="${CPPFLAGS} ${imap_include}"
18561 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18562 cat >conftest.
$ac_ext <<_ACEOF
18565 cat confdefs.h
>>conftest.
$ac_ext
18566 cat >>conftest.
$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18568 #include "c-client.h"
18569 void mm_searched (MAILSTREAM *stream,unsigned long number)
18572 void mm_exists (MAILSTREAM *stream,unsigned long number)
18575 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18578 void mm_flags (MAILSTREAM *stream,unsigned long number)
18581 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18584 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18587 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18590 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18593 void mm_log (char *string,long errflg)
18596 void mm_dlog (char *string)
18599 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18602 void mm_critical (MAILSTREAM *stream)
18605 void mm_nocritical (MAILSTREAM *stream)
18608 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18611 void mm_fatal (char *string)
18618 MAILSTREAM *foo = mail_open(NULL, "", 0);
18625 rm -f conftest.
$ac_objext conftest
$ac_exeext
18626 if { (ac_try
="$ac_link"
18627 case "(($ac_try" in
18628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_link") 2>conftest.er1
18634 grep -v '^ *+' conftest.er1 >conftest.err
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } && {
18639 test -z "$ac_c_werror_flag" ||
18640 test ! -s conftest.err
18641 } && test -s conftest$ac_exeext &&
18642 $as_test_x conftest$ac_exeext; then
18643 ac_cv_imap_tk="yes"
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18653 conftest$ac_exeext conftest.$ac_ext
18654 if test "${ac_cv_imap_tk}" = "yes"; then
18655 cat >conftest.$ac_ext <<_ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18661 #include "c-client.h"
18662 void mm_searched (MAILSTREAM *stream,unsigned long number)
18665 void mm_exists (MAILSTREAM *stream,unsigned long number)
18668 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18671 void mm_flags (MAILSTREAM *stream,unsigned long number)
18674 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18677 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18680 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18683 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18686 void mm_log (char *string,long errflg)
18689 void mm_dlog (char *string)
18692 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18695 void mm_critical (MAILSTREAM *stream)
18698 void mm_nocritical (MAILSTREAM *stream)
18701 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18704 void mm_fatal (char *string)
18711 long check = mail_expunge_full(NULL, "", 0);
18718 rm -f conftest.$ac_objext conftest$ac_exeext
18719 if { (ac_try="$ac_link"
18720 case "(($ac_try" in
18721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18722 *) ac_try_echo
=$ac_try;;
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_link") 2>conftest.er1
18727 grep -v '^ *+' conftest.er1
>conftest.err
18729 cat conftest.err
>&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } && {
18732 test -z "$ac_c_werror_flag" ||
18733 test ! -s conftest.err
18734 } && test -s conftest
$ac_exeext &&
18735 $as_test_x conftest
$ac_exeext; then
18736 ac_cv_imap_tk2006
="yes"
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.
$ac_ext >&5
18741 ac_cv_imap_tk2006
="no"
18745 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18746 conftest
$ac_exeext conftest.
$ac_ext
18748 CPPFLAGS
="${saved_cppflags}"
18749 LIBS
="${saved_libs}"
18750 if test "${ac_cv_imap_tk}" = "no"; then
18751 { echo "$as_me:$LINENO: result: no" >&5
18752 echo "${ECHO_T}no" >&6; }
18753 if test "${switch_to_system_on_failure}" = "yes"; then
18754 IMAP_TK_DIR
="system"
18755 else #This means they specified a directory. Search for a package installation there too
18756 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
18757 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
18758 CPPFLAGS
="${saved_cppflags}"
18759 LIBS
="${saved_libs}"
18760 imap_include
="-I${IMAP_TK_DIR}/include"
18761 imap_ldflags
="-L${IMAP_TK_DIR}/lib"
18762 imap_libs
="-lc-client"
18763 CPPFLAGS
="${CPPFLAGS} ${imap_include}"
18764 LIBS
="${LIBS} ${imap_libs} ${imap_ldflags}"
18765 cat >conftest.
$ac_ext <<_ACEOF
18768 cat confdefs.h
>>conftest.
$ac_ext
18769 cat >>conftest.
$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 #include "c-client.h"
18772 void mm_searched (MAILSTREAM *stream,unsigned long number)
18775 void mm_exists (MAILSTREAM *stream,unsigned long number)
18778 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18781 void mm_flags (MAILSTREAM *stream,unsigned long number)
18784 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18787 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18790 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18793 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18796 void mm_log (char *string,long errflg)
18799 void mm_dlog (char *string)
18802 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18805 void mm_critical (MAILSTREAM *stream)
18808 void mm_nocritical (MAILSTREAM *stream)
18811 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18814 void mm_fatal (char *string)
18821 MAILSTREAM *foo = mail_open(NULL, "", 0);
18828 rm -f conftest.
$ac_objext conftest
$ac_exeext
18829 if { (ac_try
="$ac_link"
18830 case "(($ac_try" in
18831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18832 *) ac_try_echo=$ac_try;;
18834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18835 (eval "$ac_link") 2>conftest.er1
18837 grep -v '^ *+' conftest.er1 >conftest.err
18839 cat conftest.err >&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); } && {
18842 test -z "$ac_c_werror_flag" ||
18843 test ! -s conftest.err
18844 } && test -s conftest$ac_exeext &&
18845 $as_test_x conftest$ac_exeext; then
18846 ac_cv_imap_tk="yes"
18848 echo "$as_me: failed program was:" >&5
18849 sed 's/^/| /' conftest.$ac_ext >&5
18855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18856 conftest$ac_exeext conftest.$ac_ext
18857 if test "${ac_cv_imap_tk}" = "yes"; then
18858 cat >conftest.$ac_ext <<_ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18864 #include "c-client.h"
18865 void mm_searched (MAILSTREAM *stream,unsigned long number)
18868 void mm_exists (MAILSTREAM *stream,unsigned long number)
18871 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18874 void mm_flags (MAILSTREAM *stream,unsigned long number)
18877 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18880 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18883 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18886 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18889 void mm_log (char *string,long errflg)
18892 void mm_dlog (char *string)
18895 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18898 void mm_critical (MAILSTREAM *stream)
18901 void mm_nocritical (MAILSTREAM *stream)
18904 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18907 void mm_fatal (char *string)
18914 long check = mail_expunge_full(NULL, "", 0);
18921 rm -f conftest.$ac_objext conftest$ac_exeext
18922 if { (ac_try="$ac_link"
18923 case "(($ac_try" in
18924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18925 *) ac_try_echo
=$ac_try;;
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_link") 2>conftest.er1
18930 grep -v '^ *+' conftest.er1
>conftest.err
18932 cat conftest.err
>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } && {
18935 test -z "$ac_c_werror_flag" ||
18936 test ! -s conftest.err
18937 } && test -s conftest
$ac_exeext &&
18938 $as_test_x conftest
$ac_exeext; then
18939 ac_cv_imap_tk2006
="yes"
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.
$ac_ext >&5
18944 ac_cv_imap_tk2006
="no"
18948 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18949 conftest
$ac_exeext conftest.
$ac_ext
18954 if test "${IMAP_TK_DIR}" = "system"; then
18955 #We will enter here if user specified "system" or if any of above checks failed
18956 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
18957 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
18958 CPPFLAGS
="${saved_cppflags}"
18959 LIBS
="${saved_libs}"
18961 imap_libs
="-lc-client"
18962 imap_include
="-DUSE_SYSTEM_IMAP" #Try the imap directory first
18963 CPPFLAGS
="${CPPFLAGS} ${imap_include}"
18964 LIBS
="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18965 cat >conftest.$ac_ext <<_ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18972 #include <imap/c-client.h>
18973 void mm_searched (MAILSTREAM *stream,unsigned long number)
18976 void mm_exists (MAILSTREAM *stream,unsigned long number)
18979 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18982 void mm_flags (MAILSTREAM *stream,unsigned long number)
18985 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18988 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18991 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18994 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18997 void mm_log (char *string,long errflg)
19000 void mm_dlog (char *string)
19003 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19006 void mm_critical (MAILSTREAM *stream)
19009 void mm_nocritical (MAILSTREAM *stream)
19012 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19015 void mm_fatal (char *string)
19022 MAILSTREAM *foo = mail_open(NULL, "", 0);
19029 rm -f conftest.$ac_objext conftest$ac_exeext
19030 if { (ac_try="$ac_link"
19031 case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19035 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_link") 2>conftest.er1
19038 grep -v '^ *+' conftest.er1 >conftest.err
19040 cat conftest.err >&5
19041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19042 (exit $ac_status); } && {
19043 test -z "$ac_c_werror_flag" ||
19044 test ! -s conftest.err
19045 } && test -s conftest$ac_exeext &&
19046 $as_test_x conftest$ac_exeext; then
19047 ac_cv_imap_tk="yes"
19049 echo "$as_me: failed program was
:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19057 conftest$ac_exeext conftest.$ac_ext
19058 if test "${ac_cv_imap_tk}" = "yes"; then
19059 cat >conftest.$ac_ext <<_ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19066 #include <imap/c-client.h>
19067 void mm_searched (MAILSTREAM *stream,unsigned long number)
19070 void mm_exists (MAILSTREAM *stream,unsigned long number)
19073 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19076 void mm_flags (MAILSTREAM *stream,unsigned long number)
19079 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19082 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19085 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19088 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19091 void mm_log (char *string,long errflg)
19094 void mm_dlog (char *string)
19097 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19100 void mm_critical (MAILSTREAM *stream)
19103 void mm_nocritical (MAILSTREAM *stream)
19106 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19109 void mm_fatal (char *string)
19116 long check = mail_expunge_full(NULL, "", 0);
19123 rm -f conftest.$ac_objext conftest$ac_exeext
19124 if { (ac_try="$ac_link"
19125 case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19130 (eval "$ac_link") 2>conftest.er1
19132 grep -v '^ *+' conftest.er1 >conftest.err
19134 cat conftest.err >&5
19135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19136 (exit $ac_status); } && {
19137 test -z "$ac_c_werror_flag" ||
19138 test ! -s conftest.err
19139 } && test -s conftest$ac_exeext &&
19140 $as_test_x conftest$ac_exeext; then
19141 ac_cv_imap_tk2006="yes"
19143 echo "$as_me: failed program was
:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_cv_imap_tk2006="no
"
19150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19151 conftest$ac_exeext conftest.$ac_ext
19152 else #looking in imap directory didn't work, try c-client
19154 imap_libs="-lc-client"
19155 imap_include="-DUSE_SYSTEM_CCLIENT"
19156 CPPFLAGS="${saved_cppflags}"
19157 LIBS="${saved_libs}"
19158 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19159 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19160 cat >conftest.$ac_ext <<_ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19167 #include <c-client/c-client.h>
19168 void mm_searched (MAILSTREAM *stream,unsigned long number)
19171 void mm_exists (MAILSTREAM *stream,unsigned long number)
19174 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19177 void mm_flags (MAILSTREAM *stream,unsigned long number)
19180 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19183 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19186 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19189 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19192 void mm_log (char *string,long errflg)
19195 void mm_dlog (char *string)
19198 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19201 void mm_critical (MAILSTREAM *stream)
19204 void mm_nocritical (MAILSTREAM *stream)
19207 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19210 void mm_fatal (char *string)
19217 MAILSTREAM *foo = mail_open(NULL, "", 0);
19224 rm -f conftest.$ac_objext conftest$ac_exeext
19225 if { (ac_try="$ac_link"
19226 case "(($ac_try" in
19227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19228 *) ac_try_echo
=$ac_try;;
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_link") 2>conftest.er1
19233 grep -v '^ *+' conftest.er1
>conftest.err
19235 cat conftest.err
>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } && {
19238 test -z "$ac_c_werror_flag" ||
19239 test ! -s conftest.err
19240 } && test -s conftest
$ac_exeext &&
19241 $as_test_x conftest
$ac_exeext; then
19242 ac_cv_imap_tk
="yes"
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.
$ac_ext >&5
19251 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19252 conftest
$ac_exeext conftest.
$ac_ext
19253 if test "${ac_cv_imap_tk}" = "yes"; then
19254 cat >conftest.
$ac_ext <<_ACEOF
19257 cat confdefs.h
>>conftest.
$ac_ext
19258 cat >>conftest.
$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19261 #include <c-client/c-client.h>
19262 void mm_searched (MAILSTREAM *stream,unsigned long number)
19265 void mm_exists (MAILSTREAM *stream,unsigned long number)
19268 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19271 void mm_flags (MAILSTREAM *stream,unsigned long number)
19274 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19277 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19280 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19283 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19286 void mm_log (char *string,long errflg)
19289 void mm_dlog (char *string)
19292 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19295 void mm_critical (MAILSTREAM *stream)
19298 void mm_nocritical (MAILSTREAM *stream)
19301 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19304 void mm_fatal (char *string)
19311 long check = mail_expunge_full(NULL, "", 0);
19318 rm -f conftest.
$ac_objext conftest
$ac_exeext
19319 if { (ac_try
="$ac_link"
19320 case "(($ac_try" in
19321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_link") 2>conftest.er1
19327 grep -v '^ *+' conftest.er1 >conftest.err
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } && {
19332 test -z "$ac_c_werror_flag" ||
19333 test ! -s conftest.err
19334 } && test -s conftest$ac_exeext &&
19335 $as_test_x conftest$ac_exeext; then
19336 ac_cv_imap_tk2006="yes"
19338 echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19341 ac_cv_imap_tk2006="no"
19345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19346 conftest$ac_exeext conftest.$ac_ext
19350 if test "${ac_cv_imap_tk}" = "yes"; then
19351 { echo "$as_me:$LINENO: result: yes" >&5
19352 echo "${ECHO_T}yes" >&6; }
19353 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
19354 IMAP_TK_INCLUDE="${imap_include}"
19357 cat >>confdefs.h <<\_ACEOF
19358 #define HAVE_IMAP_TK 1
19361 if test "${ac_cv_imap_tk2006}" = "yes"; then
19363 cat >>confdefs.h <<\_ACEOF
19364 #define HAVE_IMAP_TK2006 1
19368 elif test -n "${IMAP_TK_MANDATORY}"; then
19369 { echo "$as_me:$LINENO: result: no" >&5
19370 echo "${ECHO_T}no" >&6; }
19371 { echo "$as_me:$LINENO: ***" >&5
19372 echo "$as_me: ***" >&6;}
19373 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19374 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19375 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19376 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19377 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19378 echo "$as_me: *** including --without-imap." >&6;}
19381 { echo "$as_me:$LINENO: result: no" >&5
19382 echo "${ECHO_T}no" >&6; }
19384 CPPFLAGS="${saved_cppflags}"
19385 LIBS="${saved_libs}"
19388 # Needed by unixodbc
19390 if test "${USE_LTDL}" != "no"; then
19392 if test "x${LTDL_DIR}" != "x"; then
19393 if test -d ${LTDL_DIR}/lib; then
19394 pbxlibdir="-L${LTDL_DIR}/lib"
19396 pbxlibdir="-L${LTDL_DIR}"
19399 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19400 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19401 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19404 ac_check_lib_save_LIBS=$LIBS
19405 LIBS="-lltdl ${pbxlibdir} $LIBS"
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19423 return lt_dlinit ();
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19432 *) ac_try_echo
=$ac_try;;
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_link") 2>conftest.er1
19437 grep -v '^ *+' conftest.er1
>conftest.err
19439 cat conftest.err
>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } && {
19442 test -z "$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19444 } && test -s conftest
$ac_exeext &&
19445 $as_test_x conftest
$ac_exeext; then
19446 ac_cv_lib_ltdl_lt_dlinit
=yes
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.
$ac_ext >&5
19451 ac_cv_lib_ltdl_lt_dlinit
=no
19454 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19455 conftest
$ac_exeext conftest.
$ac_ext
19456 LIBS
=$ac_check_lib_save_LIBS
19458 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
19459 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
19460 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
19467 if test "${AST_LTDL_FOUND}" = "yes"; then
19469 LTDL_HEADER_FOUND
="1"
19470 if test "x${LTDL_DIR}" != "x"; then
19471 LTDL_LIB
="${pbxlibdir} ${LTDL_LIB}"
19472 LTDL_INCLUDE
="-I${LTDL_DIR}/include"
19474 LTDL_INCLUDE
="${LTDL_INCLUDE} "
19475 saved_cppflags
="${CPPFLAGS}"
19476 CPPFLAGS
="${CPPFLAGS} ${LTDL_INCLUDE}"
19477 if test "xltdl.h" != "x" ; then
19478 if test "${ac_cv_header_ltdl_h+set}" = set; then
19479 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19480 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19481 if test "${ac_cv_header_ltdl_h+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
19485 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19487 # Is the header compilable?
19488 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
19489 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
19490 cat >conftest.
$ac_ext <<_ACEOF
19493 cat confdefs.h
>>conftest.
$ac_ext
19494 cat >>conftest.
$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 $ac_includes_default
19499 rm -f conftest.
$ac_objext
19500 if { (ac_try
="$ac_compile"
19501 case "(($ac_try" in
19502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_compile") 2>conftest.er1
19508 grep -v '^ *+' conftest.er1 >conftest.err
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } && {
19513 test -z "$ac_c_werror_flag" ||
19514 test ! -s conftest.err
19515 } && test -s conftest.$ac_objext; then
19516 ac_header_compiler=yes
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19521 ac_header_compiler=no
19524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19526 echo "${ECHO_T}$ac_header_compiler" >&6; }
19528 # Is the header present?
19529 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
19530 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
19531 cat >conftest.$ac_ext <<_ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h. */
19539 if { (ac_try="$ac_cpp conftest.$ac_ext"
19540 case "(($ac_try" in
19541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19542 *) ac_try_echo
=$ac_try;;
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19547 grep -v '^ *+' conftest.er1
>conftest.err
19549 cat conftest.err
>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } >/dev
/null
&& {
19552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19553 test ! -s conftest.err
19555 ac_header_preproc
=yes
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.
$ac_ext >&5
19560 ac_header_preproc
=no
19563 rm -f conftest.err conftest.
$ac_ext
19564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19565 echo "${ECHO_T}$ac_header_preproc" >&6; }
19567 # So? What about this header?
19568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19570 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19571 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19572 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
19573 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
19574 ac_header_preproc
=yes
19577 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
19578 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
19579 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
19580 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
19581 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
19582 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
19583 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19584 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19585 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
19586 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
19587 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
19588 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
19590 ## ------------------------------- ##
19591 ## Report this to www.asterisk.org ##
19592 ## ------------------------------- ##
19594 ) |
sed "s/^/$as_me: WARNING: /" >&2
19597 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19598 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19599 if test "${ac_cv_header_ltdl_h+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 ac_cv_header_ltdl_h
=$ac_header_preproc
19604 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
19605 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19608 if test $ac_cv_header_ltdl_h = yes; then
19609 LTDL_HEADER_FOUND
=1
19611 LTDL_HEADER_FOUND
=0
19616 CPPFLAGS
="${saved_cppflags}"
19617 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
19618 if test -n "${LTDL_MANDATORY}" ;
19620 { echo "$as_me:$LINENO: ***" >&5
19621 echo "$as_me: ***" >&6;}
19622 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
19623 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
19624 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
19625 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
19626 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
19627 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
19636 cat >>confdefs.h
<<_ACEOF
19637 #define HAVE_LTDL 1
19641 elif test -n "${LTDL_MANDATORY}";
19643 { echo "$as_me:$LINENO: ***" >&5
19644 echo "$as_me: ***" >&6;}
19645 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
19646 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
19647 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19648 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19649 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
19650 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
19657 ac_cpp
='$CXXCPP $CPPFLAGS'
19658 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19659 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19660 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19663 if test "${USE_KDE}" != "no"; then
19664 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
19665 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
19666 saved_libs
="${LIBS}"
19667 saved_cppflags
="${CPPFLAGS}"
19668 CPPFLAGS
="${CPPFLAGS} -I${KDE_DIR}/include"
19669 if test -d ${KDE_DIR}/lib
; then
19670 kdelibdir
="${KDE_DIR}/lib"
19672 kdelibdir
="${KDE_DIR}"
19674 LIBS
="${LIBS} -L${kdelibdir} -lkdecore"
19677 cat >conftest.
$ac_ext <<_ACEOF
19680 cat confdefs.h
>>conftest.
$ac_ext
19681 cat >>conftest.
$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19683 #include "kcrash.h"
19687 KCrash::defaultCrashHandler(1);
19693 rm -f conftest.
$ac_objext conftest
$ac_exeext
19694 if { (ac_try
="$ac_link"
19695 case "(($ac_try" in
19696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700 (eval "$ac_link") 2>conftest.er1
19702 grep -v '^ *+' conftest.er1 >conftest.err
19704 cat conftest.err >&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); } && {
19707 test -z "$ac_cxx_werror_flag" ||
19708 test ! -s conftest.err
19709 } && test -s conftest$ac_exeext &&
19710 $as_test_x conftest$ac_exeext; then
19711 ac_cv_lib_kde_crash="yes"
19713 echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19716 ac_cv_lib_kde_crash="no"
19719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19720 conftest$ac_exeext conftest.$ac_ext
19722 LIBS="${saved_libs}"
19723 CPPFLAGS="${saved_cppflags}"
19725 if test "${ac_cv_lib_kde_crash}" = "yes"; then
19726 { echo "$as_me:$LINENO: result: yes" >&5
19727 echo "${ECHO_T}yes" >&6; }
19728 KDE_LIB="-lkdecore -lkdeui"
19729 if test "${KDE_DIR}" != ""; then
19730 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
19731 KDE_INCLUDE="-I${KDE_DIR}/include"
19735 cat >>confdefs.h <<\_ACEOF
19736 #define HAVE_LIBKDE 1
19739 elif test -n "${KDE_MANDATORY}"; then
19740 { echo "$as_me:$LINENO: result: no" >&5
19741 echo "${ECHO_T}no" >&6; }
19742 { echo "$as_me:$LINENO: ***" >&5
19743 echo "$as_me: ***" >&6;}
19744 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
19745 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
19746 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19747 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19748 { echo "$as_me:$LINENO: *** including --without-kde." >&5
19749 echo "$as_me: *** including --without-kde." >&6;}
19752 { echo "$as_me:$LINENO: result: no" >&5
19753 echo "${ECHO_T}no" >&6; }
19756 if test "${PBX_KDE}" = 1; then
19757 if test -n "$ac_tool_prefix"; then
19758 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
19759 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
19760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19762 if test "${ac_cv_path_KDEINIT+set}" = set; then
19763 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
19770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19771 for as_dir in $PATH
19774 test -z "$as_dir" && as_dir=.
19775 for ac_exec_ext in '' $ac_executable_extensions; do
19776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19777 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19788 KDEINIT=$ac_cv_path_KDEINIT
19789 if test -n "$KDEINIT"; then
19790 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
19791 echo "${ECHO_T}$KDEINIT" >&6; }
19793 { echo "$as_me:$LINENO: result: no" >&5
19794 echo "${ECHO_T}no" >&6; }
19799 if test -z "$ac_cv_path_KDEINIT"; then
19800 ac_pt_KDEINIT=$KDEINIT
19801 # Extract the first word of "kdeinit", so it can be a program name with args.
19802 set dummy kdeinit; ac_word=$2
19803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19805 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19808 case $ac_pt_KDEINIT in
19810 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
19813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19814 for as_dir in $PATH
19817 test -z "$as_dir" && as_dir=.
19818 for ac_exec_ext in '' $ac_executable_extensions; do
19819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19820 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19831 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
19832 if test -n "$ac_pt_KDEINIT"; then
19833 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
19834 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
19836 { echo "$as_me:$LINENO: result: no" >&5
19837 echo "${ECHO_T}no" >&6; }
19840 if test "x$ac_pt_KDEINIT" = x; then
19843 case $cross_compiling:$ac_tool_warned in
19845 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19846 whose name does not start with the host triplet. If you think this
19847 configuration is useful to you, please write to autoconf@gnu.org." >&5
19848 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19849 whose name does not start with the host triplet. If you think this
19850 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19851 ac_tool_warned=yes ;;
19853 KDEINIT=$ac_pt_KDEINIT
19856 KDEINIT="$ac_cv_path_KDEINIT"
19859 if test ! x"${KDEINIT}" = xNo; then
19860 KDEDIR=$(${DIRNAME} ${KDEINIT})
19861 KDEDIR=$(${DIRNAME} ${KDEDIR})
19867 ac_cpp='$CPP $CPPFLAGS'
19868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19874 if test "${USE_MISDN}" != "no"; then
19876 if test "x${MISDN_DIR}" != "x"; then
19877 if test -d ${MISDN_DIR}/lib; then
19878 pbxlibdir="-L${MISDN_DIR}/lib"
19880 pbxlibdir="-L${MISDN_DIR}"
19883 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
19884 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
19885 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 ac_check_lib_save_LIBS=$LIBS
19889 LIBS="-lmISDN ${pbxlibdir} $LIBS"
19890 cat >conftest.$ac_ext <<_ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19897 /* Override any GCC internal prototype to avoid an error.
19898 Use char because int might match the return type of a GCC
19899 builtin and then its argument prototype would still apply. */
19903 char mISDN_open ();
19907 return mISDN_open ();
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (ac_try="$ac_link"
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_link") 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); } && {
19926 test -z "$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 } && test -s conftest
$ac_exeext &&
19929 $as_test_x conftest
$ac_exeext; then
19930 ac_cv_lib_mISDN_mISDN_open
=yes
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.
$ac_ext >&5
19935 ac_cv_lib_mISDN_mISDN_open
=no
19938 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19939 conftest
$ac_exeext conftest.
$ac_ext
19940 LIBS
=$ac_check_lib_save_LIBS
19942 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
19943 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
19944 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
19945 AST_MISDN_FOUND
=yes
19951 if test "${AST_MISDN_FOUND}" = "yes"; then
19952 MISDN_LIB
="-lmISDN "
19953 MISDN_HEADER_FOUND
="1"
19954 if test "x${MISDN_DIR}" != "x"; then
19955 MISDN_LIB
="${pbxlibdir} ${MISDN_LIB}"
19956 MISDN_INCLUDE
="-I${MISDN_DIR}/include"
19958 MISDN_INCLUDE
="${MISDN_INCLUDE} "
19959 saved_cppflags
="${CPPFLAGS}"
19960 CPPFLAGS
="${CPPFLAGS} ${MISDN_INCLUDE}"
19961 if test "xmISDNuser/mISDNlib.h" != "x" ; then
19962 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19963 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
19964 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19965 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19969 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19971 # Is the header compilable?
19972 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
19973 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
19974 cat >conftest.
$ac_ext <<_ACEOF
19977 cat confdefs.h
>>conftest.
$ac_ext
19978 cat >>conftest.
$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 $ac_includes_default
19981 #include <mISDNuser/mISDNlib.h>
19983 rm -f conftest.
$ac_objext
19984 if { (ac_try
="$ac_compile"
19985 case "(($ac_try" in
19986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990 (eval "$ac_compile") 2>conftest.er1
19992 grep -v '^ *+' conftest.er1 >conftest.err
19994 cat conftest.err >&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } && {
19997 test -z "$ac_c_werror_flag" ||
19998 test ! -s conftest.err
19999 } && test -s conftest.$ac_objext; then
20000 ac_header_compiler=yes
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ac_header_compiler=no
20008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20010 echo "${ECHO_T}$ac_header_compiler" >&6; }
20012 # Is the header present?
20013 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20014 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20015 cat >conftest.$ac_ext <<_ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h. */
20021 #include <mISDNuser/mISDNlib.h>
20023 if { (ac_try="$ac_cpp conftest.$ac_ext"
20024 case "(($ac_try" in
20025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20026 *) ac_try_echo
=$ac_try;;
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20031 grep -v '^ *+' conftest.er1
>conftest.err
20033 cat conftest.err
>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } >/dev
/null
&& {
20036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20037 test ! -s conftest.err
20039 ac_header_preproc
=yes
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.
$ac_ext >&5
20044 ac_header_preproc
=no
20047 rm -f conftest.err conftest.
$ac_ext
20048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20049 echo "${ECHO_T}$ac_header_preproc" >&6; }
20051 # So? What about this header?
20052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20054 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20055 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20056 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20057 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20058 ac_header_preproc
=yes
20061 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20062 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20063 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20064 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20065 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20066 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20067 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20068 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20070 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20072 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20074 ## ------------------------------- ##
20075 ## Report this to www.asterisk.org ##
20076 ## ------------------------------- ##
20078 ) |
sed "s/^/$as_me: WARNING: /" >&2
20081 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20082 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20083 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 ac_cv_header_mISDNuser_mISDNlib_h
=$ac_header_preproc
20088 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20089 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20092 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20093 MISDN_HEADER_FOUND
=1
20095 MISDN_HEADER_FOUND
=0
20100 CPPFLAGS
="${saved_cppflags}"
20101 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20102 if test -n "${MISDN_MANDATORY}" ;
20104 { echo "$as_me:$LINENO: ***" >&5
20105 echo "$as_me: ***" >&6;}
20106 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20107 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20108 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20109 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20110 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20111 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20120 cat >>confdefs.h
<<_ACEOF
20121 #define HAVE_MISDN 1
20125 elif test -n "${MISDN_MANDATORY}";
20127 { echo "$as_me:$LINENO: ***" >&5
20128 echo "$as_me: ***" >&6;}
20129 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
20130 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
20131 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20132 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20133 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20134 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20140 if test "${PBX_MISDN}" = 1; then
20142 if test "${USE_ISDNNET}" != "no"; then
20144 if test "x${ISDNNET_DIR}" != "x"; then
20145 if test -d ${ISDNNET_DIR}/lib
; then
20146 pbxlibdir
="-L${ISDNNET_DIR}/lib"
20148 pbxlibdir
="-L${ISDNNET_DIR}"
20151 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
20152 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
20153 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20156 ac_check_lib_save_LIBS
=$LIBS
20157 LIBS
="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
20158 cat >conftest.
$ac_ext <<_ACEOF
20161 cat confdefs.h
>>conftest.
$ac_ext
20162 cat >>conftest.
$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20171 char init_manager ();
20175 return init_manager ();
20180 rm -f conftest.
$ac_objext conftest
$ac_exeext
20181 if { (ac_try
="$ac_link"
20182 case "(($ac_try" in
20183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_link") 2>conftest.er1
20189 grep -v '^ *+' conftest.er1 >conftest.err
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } && {
20194 test -z "$ac_c_werror_flag" ||
20195 test ! -s conftest.err
20196 } && test -s conftest$ac_exeext &&
20197 $as_test_x conftest$ac_exeext; then
20198 ac_cv_lib_isdnnet_init_manager=yes
20200 echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20203 ac_cv_lib_isdnnet_init_manager=no
20206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20207 conftest$ac_exeext conftest.$ac_ext
20208 LIBS=$ac_check_lib_save_LIBS
20210 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
20211 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20212 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20213 AST_ISDNNET_FOUND=yes
20215 AST_ISDNNET_FOUND=no
20219 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20220 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
20221 ISDNNET_HEADER_FOUND="1"
20222 if test "x${ISDNNET_DIR}" != "x"; then
20223 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
20224 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
20226 ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
20227 saved_cppflags="${CPPFLAGS}"
20228 CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
20229 if test "xmISDNuser/isdn_net.h" != "x" ; then
20230 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20231 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
20232 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20233 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
20237 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
20239 # Is the header compilable?
20240 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
20241 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20242 cat >conftest.$ac_ext <<_ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20248 $ac_includes_default
20249 #include <mISDNuser/isdn_net.h>
20251 rm -f conftest.$ac_objext
20252 if { (ac_try="$ac_compile"
20253 case "(($ac_try" in
20254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20255 *) ac_try_echo
=$ac_try;;
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_compile") 2>conftest.er1
20260 grep -v '^ *+' conftest.er1
>conftest.err
20262 cat conftest.err
>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } && {
20265 test -z "$ac_c_werror_flag" ||
20266 test ! -s conftest.err
20267 } && test -s conftest.
$ac_objext; then
20268 ac_header_compiler
=yes
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.
$ac_ext >&5
20273 ac_header_compiler
=no
20276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20278 echo "${ECHO_T}$ac_header_compiler" >&6; }
20280 # Is the header present?
20281 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
20282 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20283 cat >conftest.
$ac_ext <<_ACEOF
20286 cat confdefs.h
>>conftest.
$ac_ext
20287 cat >>conftest.
$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 #include <mISDNuser/isdn_net.h>
20291 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20292 case "(($ac_try" in
20293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20299 grep -v '^ *+' conftest.er1 >conftest.err
20301 cat conftest.err >&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } >/dev/null && {
20304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20305 test ! -s conftest.err
20307 ac_header_preproc=yes
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20312 ac_header_preproc=no
20315 rm -f conftest.err conftest.$ac_ext
20316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20317 echo "${ECHO_T}$ac_header_preproc" >&6; }
20319 # So? What about this header?
20320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20322 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
20323 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20324 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
20325 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
20326 ac_header_preproc=yes
20329 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
20330 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
20331 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
20332 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
20333 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
20334 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
20335 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
20336 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
20337 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
20338 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
20340 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
20342 ## ------------------------------- ##
20343 ## Report this to www.asterisk.org ##
20344 ## ------------------------------- ##
20346 ) | sed "s/^/$as_me: WARNING: /" >&2
20349 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
20350 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20351 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20352 echo $ECHO_N "(cached) $ECHO_C" >&6
20354 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
20356 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
20357 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
20360 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
20361 ISDNNET_HEADER_FOUND=1
20363 ISDNNET_HEADER_FOUND=0
20368 CPPFLAGS="${saved_cppflags}"
20369 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
20370 if test -n "${ISDNNET_MANDATORY}" ;
20372 { echo "$as_me:$LINENO: ***" >&5
20373 echo "$as_me: ***" >&6;}
20374 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
20375 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
20376 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
20377 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
20378 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
20379 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
20388 cat >>confdefs.h <<_ACEOF
20389 #define HAVE_ISDNNET 1
20393 elif test -n "${ISDNNET_MANDATORY}";
20395 { echo "$as_me:$LINENO: ***" >&5
20396 echo "$as_me: ***" >&6;}
20397 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
20398 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
20399 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20400 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20401 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
20402 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
20408 if test "${USE_SUPPSERV}" != "no"; then
20410 if test "x${SUPPSERV_DIR}" != "x"; then
20411 if test -d ${SUPPSERV_DIR}/lib; then
20412 pbxlibdir="-L${SUPPSERV_DIR}/lib"
20414 pbxlibdir="-L${SUPPSERV_DIR}"
20417 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
20418 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
20419 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20422 ac_check_lib_save_LIBS=$LIBS
20423 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
20424 cat >conftest.$ac_ext <<_ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20431 /* Override any GCC internal prototype to avoid an error.
20432 Use char because int might match the return type of a GCC
20433 builtin and then its argument prototype would still apply. */
20441 return encodeFac ();
20446 rm -f conftest.$ac_objext conftest$ac_exeext
20447 if { (ac_try="$ac_link"
20448 case "(($ac_try" in
20449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20450 *) ac_try_echo
=$ac_try;;
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453 (eval "$ac_link") 2>conftest.er1
20455 grep -v '^ *+' conftest.er1
>conftest.err
20457 cat conftest.err
>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } && {
20460 test -z "$ac_c_werror_flag" ||
20461 test ! -s conftest.err
20462 } && test -s conftest
$ac_exeext &&
20463 $as_test_x conftest
$ac_exeext; then
20464 ac_cv_lib_suppserv_encodeFac
=yes
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.
$ac_ext >&5
20469 ac_cv_lib_suppserv_encodeFac
=no
20472 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20473 conftest
$ac_exeext conftest.
$ac_ext
20474 LIBS
=$ac_check_lib_save_LIBS
20476 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
20477 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
20478 if test $ac_cv_lib_suppserv_encodeFac = yes; then
20479 AST_SUPPSERV_FOUND
=yes
20481 AST_SUPPSERV_FOUND
=no
20485 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
20486 SUPPSERV_LIB
="-lsuppserv "
20487 SUPPSERV_HEADER_FOUND
="1"
20488 if test "x${SUPPSERV_DIR}" != "x"; then
20489 SUPPSERV_LIB
="${pbxlibdir} ${SUPPSERV_LIB}"
20490 SUPPSERV_INCLUDE
="-I${SUPPSERV_DIR}/include"
20492 SUPPSERV_INCLUDE
="${SUPPSERV_INCLUDE} "
20493 saved_cppflags
="${CPPFLAGS}"
20494 CPPFLAGS
="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
20495 if test "xmISDNuser/suppserv.h" != "x" ; then
20496 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20497 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20498 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20499 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20503 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20505 # Is the header compilable?
20506 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
20507 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
20508 cat >conftest.
$ac_ext <<_ACEOF
20511 cat confdefs.h
>>conftest.
$ac_ext
20512 cat >>conftest.
$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 $ac_includes_default
20515 #include <mISDNuser/suppserv.h>
20517 rm -f conftest.
$ac_objext
20518 if { (ac_try
="$ac_compile"
20519 case "(($ac_try" in
20520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20521 *) ac_try_echo=$ac_try;;
20523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524 (eval "$ac_compile") 2>conftest.er1
20526 grep -v '^ *+' conftest.er1 >conftest.err
20528 cat conftest.err >&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } && {
20531 test -z "$ac_c_werror_flag" ||
20532 test ! -s conftest.err
20533 } && test -s conftest.$ac_objext; then
20534 ac_header_compiler=yes
20536 echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20539 ac_header_compiler=no
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20544 echo "${ECHO_T}$ac_header_compiler" >&6; }
20546 # Is the header present?
20547 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
20548 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
20549 cat >conftest.$ac_ext <<_ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20555 #include <mISDNuser/suppserv.h>
20557 if { (ac_try="$ac_cpp conftest.$ac_ext"
20558 case "(($ac_try" in
20559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20560 *) ac_try_echo
=$ac_try;;
20562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20565 grep -v '^ *+' conftest.er1
>conftest.err
20567 cat conftest.err
>&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } >/dev
/null
&& {
20570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20571 test ! -s conftest.err
20573 ac_header_preproc
=yes
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.
$ac_ext >&5
20578 ac_header_preproc
=no
20581 rm -f conftest.err conftest.
$ac_ext
20582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20583 echo "${ECHO_T}$ac_header_preproc" >&6; }
20585 # So? What about this header?
20586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20588 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20589 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20590 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
20591 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
20592 ac_header_preproc
=yes
20595 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
20596 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
20597 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
20598 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
20599 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
20600 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
20602 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20603 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
20604 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
20606 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
20608 ## ------------------------------- ##
20609 ## Report this to www.asterisk.org ##
20610 ## ------------------------------- ##
20612 ) |
sed "s/^/$as_me: WARNING: /" >&2
20615 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20616 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20617 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 ac_cv_header_mISDNuser_suppserv_h
=$ac_header_preproc
20622 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20623 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20626 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
20627 SUPPSERV_HEADER_FOUND
=1
20629 SUPPSERV_HEADER_FOUND
=0
20634 CPPFLAGS
="${saved_cppflags}"
20635 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
20636 if test -n "${SUPPSERV_MANDATORY}" ;
20638 { echo "$as_me:$LINENO: ***" >&5
20639 echo "$as_me: ***" >&6;}
20640 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
20641 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
20642 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
20643 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
20644 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20645 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20649 SUPPSERV_INCLUDE
=""
20654 cat >>confdefs.h
<<_ACEOF
20655 #define HAVE_SUPPSERV 1
20659 elif test -n "${SUPPSERV_MANDATORY}";
20661 { echo "$as_me:$LINENO: ***" >&5
20662 echo "$as_me: ***" >&6;}
20663 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
20664 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
20665 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20666 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20667 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20668 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20673 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20674 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20675 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20676 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20679 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20680 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20682 # Is the header compilable?
20683 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
20684 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
20685 cat >conftest.
$ac_ext <<_ACEOF
20688 cat confdefs.h
>>conftest.
$ac_ext
20689 cat >>conftest.
$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691 $ac_includes_default
20692 #include <linux/mISDNdsp.h>
20694 rm -f conftest.
$ac_objext
20695 if { (ac_try
="$ac_compile"
20696 case "(($ac_try" in
20697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20698 *) ac_try_echo=$ac_try;;
20700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701 (eval "$ac_compile") 2>conftest.er1
20703 grep -v '^ *+' conftest.er1 >conftest.err
20705 cat conftest.err >&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } && {
20708 test -z "$ac_c_werror_flag" ||
20709 test ! -s conftest.err
20710 } && test -s conftest.$ac_objext; then
20711 ac_header_compiler=yes
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20716 ac_header_compiler=no
20719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20721 echo "${ECHO_T}$ac_header_compiler" >&6; }
20723 # Is the header present?
20724 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
20725 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
20726 cat >conftest.$ac_ext <<_ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20732 #include <linux/mISDNdsp.h>
20734 if { (ac_try="$ac_cpp conftest.$ac_ext"
20735 case "(($ac_try" in
20736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20737 *) ac_try_echo
=$ac_try;;
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20742 grep -v '^ *+' conftest.er1
>conftest.err
20744 cat conftest.err
>&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } >/dev
/null
&& {
20747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20748 test ! -s conftest.err
20750 ac_header_preproc
=yes
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.
$ac_ext >&5
20755 ac_header_preproc
=no
20758 rm -f conftest.err conftest.
$ac_ext
20759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20760 echo "${ECHO_T}$ac_header_preproc" >&6; }
20762 # So? What about this header?
20763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20765 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20766 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20767 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
20768 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
20769 ac_header_preproc
=yes
20772 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
20773 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
20774 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
20775 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
20776 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
20777 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
20779 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
20781 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
20782 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
20783 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
20785 ## ------------------------------- ##
20786 ## Report this to www.asterisk.org ##
20787 ## ------------------------------- ##
20789 ) |
sed "s/^/$as_me: WARNING: /" >&2
20792 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20793 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20794 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20797 ac_cv_header_linux_mISDNdsp_h
=$ac_header_preproc
20799 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20800 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20803 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
20805 cat >>confdefs.h
<<_ACEOF
20806 #define MISDN_1_2 1
20815 if test "${USE_NBS}" != "no"; then
20817 if test "x${NBS_DIR}" != "x"; then
20818 if test -d ${NBS_DIR}/lib
; then
20819 pbxlibdir
="-L${NBS_DIR}/lib"
20821 pbxlibdir
="-L${NBS_DIR}"
20824 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
20825 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
20826 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20829 ac_check_lib_save_LIBS
=$LIBS
20830 LIBS
="-lnbs ${pbxlibdir} $LIBS"
20831 cat >conftest.
$ac_ext <<_ACEOF
20834 cat confdefs.h
>>conftest.
$ac_ext
20835 cat >>conftest.
$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20838 /* Override any GCC internal prototype to avoid an error.
20839 Use char because int might match the return type of a GCC
20840 builtin and then its argument prototype would still apply. */
20844 char nbs_connect ();
20848 return nbs_connect ();
20853 rm -f conftest.
$ac_objext conftest
$ac_exeext
20854 if { (ac_try
="$ac_link"
20855 case "(($ac_try" in
20856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20857 *) ac_try_echo=$ac_try;;
20859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860 (eval "$ac_link") 2>conftest.er1
20862 grep -v '^ *+' conftest.er1 >conftest.err
20864 cat conftest.err >&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } && {
20867 test -z "$ac_c_werror_flag" ||
20868 test ! -s conftest.err
20869 } && test -s conftest$ac_exeext &&
20870 $as_test_x conftest$ac_exeext; then
20871 ac_cv_lib_nbs_nbs_connect=yes
20873 echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20876 ac_cv_lib_nbs_nbs_connect=no
20879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20880 conftest$ac_exeext conftest.$ac_ext
20881 LIBS=$ac_check_lib_save_LIBS
20883 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
20884 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
20885 if test $ac_cv_lib_nbs_nbs_connect = yes; then
20892 if test "${AST_NBS_FOUND}" = "yes"; then
20894 NBS_HEADER_FOUND="1"
20895 if test "x${NBS_DIR}" != "x"; then
20896 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
20897 NBS_INCLUDE="-I${NBS_DIR}/include"
20899 NBS_INCLUDE="${NBS_INCLUDE} "
20900 saved_cppflags="${CPPFLAGS}"
20901 CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
20902 if test "xnbs.h" != "x" ; then
20903 if test "${ac_cv_header_nbs_h+set}" = set; then
20904 { echo "$as_me:$LINENO: checking for nbs.h" >&5
20905 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
20906 if test "${ac_cv_header_nbs_h+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
20910 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
20912 # Is the header compilable?
20913 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
20914 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
20915 cat >conftest.$ac_ext <<_ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20921 $ac_includes_default
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20928 *) ac_try_echo
=$ac_try;;
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_compile") 2>conftest.er1
20933 grep -v '^ *+' conftest.er1
>conftest.err
20935 cat conftest.err
>&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } && {
20938 test -z "$ac_c_werror_flag" ||
20939 test ! -s conftest.err
20940 } && test -s conftest.
$ac_objext; then
20941 ac_header_compiler
=yes
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.
$ac_ext >&5
20946 ac_header_compiler
=no
20949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20951 echo "${ECHO_T}$ac_header_compiler" >&6; }
20953 # Is the header present?
20954 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
20955 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
20956 cat >conftest.
$ac_ext <<_ACEOF
20959 cat confdefs.h
>>conftest.
$ac_ext
20960 cat >>conftest.
$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20964 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20965 case "(($ac_try" in
20966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20972 grep -v '^ *+' conftest.er1 >conftest.err
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } >/dev/null && {
20977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20978 test ! -s conftest.err
20980 ac_header_preproc=yes
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20985 ac_header_preproc=no
20988 rm -f conftest.err conftest.$ac_ext
20989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20990 echo "${ECHO_T}$ac_header_preproc" >&6; }
20992 # So? What about this header?
20993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20995 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20996 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20997 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
20998 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
20999 ac_header_preproc=yes
21002 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
21003 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
21004 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
21005 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
21007 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
21008 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21009 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21010 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
21011 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
21012 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
21013 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
21015 ## ------------------------------- ##
21016 ## Report this to www.asterisk.org ##
21017 ## ------------------------------- ##
21019 ) | sed "s/^/$as_me: WARNING: /" >&2
21022 { echo "$as_me:$LINENO: checking for nbs.h" >&5
21023 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
21024 if test "${ac_cv_header_nbs_h+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 ac_cv_header_nbs_h=$ac_header_preproc
21029 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
21030 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
21033 if test $ac_cv_header_nbs_h = yes; then
21041 CPPFLAGS="${saved_cppflags}"
21042 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
21043 if test -n "${NBS_MANDATORY}" ;
21045 { echo "$as_me:$LINENO: ***" >&5
21046 echo "$as_me: ***" >&6;}
21047 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
21048 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
21049 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
21050 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
21051 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
21052 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
21061 cat >>confdefs.h <<_ACEOF
21066 elif test -n "${NBS_MANDATORY}";
21068 { echo "$as_me:$LINENO: ***" >&5
21069 echo "$as_me: ***" >&6;}
21070 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
21071 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
21072 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21073 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21074 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
21075 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
21082 if test "${USE_NCURSES}" != "no"; then
21084 if test "x${NCURSES_DIR}" != "x"; then
21085 if test -d ${NCURSES_DIR}/lib; then
21086 pbxlibdir="-L${NCURSES_DIR}/lib"
21088 pbxlibdir="-L${NCURSES_DIR}"
21091 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
21092 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
21093 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21096 ac_check_lib_save_LIBS=$LIBS
21097 LIBS="-lncurses ${pbxlibdir} $LIBS"
21098 cat >conftest.$ac_ext <<_ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21105 /* Override any GCC internal prototype to avoid an error.
21106 Use char because int might match the return type of a GCC
21107 builtin and then its argument prototype would still apply. */
21120 rm -f conftest.$ac_objext conftest$ac_exeext
21121 if { (ac_try="$ac_link"
21122 case "(($ac_try" in
21123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21124 *) ac_try_echo
=$ac_try;;
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_link") 2>conftest.er1
21129 grep -v '^ *+' conftest.er1
>conftest.err
21131 cat conftest.err
>&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest
$ac_exeext &&
21137 $as_test_x conftest
$ac_exeext; then
21138 ac_cv_lib_ncurses_initscr
=yes
21140 echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.
$ac_ext >&5
21143 ac_cv_lib_ncurses_initscr
=no
21146 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21147 conftest
$ac_exeext conftest.
$ac_ext
21148 LIBS
=$ac_check_lib_save_LIBS
21150 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
21151 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
21152 if test $ac_cv_lib_ncurses_initscr = yes; then
21153 AST_NCURSES_FOUND
=yes
21155 AST_NCURSES_FOUND
=no
21159 if test "${AST_NCURSES_FOUND}" = "yes"; then
21160 NCURSES_LIB
="-lncurses "
21161 NCURSES_HEADER_FOUND
="1"
21162 if test "x${NCURSES_DIR}" != "x"; then
21163 NCURSES_LIB
="${pbxlibdir} ${NCURSES_LIB}"
21164 NCURSES_INCLUDE
="-I${NCURSES_DIR}/include"
21166 NCURSES_INCLUDE
="${NCURSES_INCLUDE} "
21167 saved_cppflags
="${CPPFLAGS}"
21168 CPPFLAGS
="${CPPFLAGS} ${NCURSES_INCLUDE}"
21169 if test "xcurses.h" != "x" ; then
21170 if test "${ac_cv_header_curses_h+set}" = set; then
21171 { echo "$as_me:$LINENO: checking for curses.h" >&5
21172 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21173 if test "${ac_cv_header_curses_h+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21176 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21177 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21179 # Is the header compilable?
21180 { echo "$as_me:$LINENO: checking curses.h usability" >&5
21181 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
21182 cat >conftest.
$ac_ext <<_ACEOF
21185 cat confdefs.h
>>conftest.
$ac_ext
21186 cat >>conftest.
$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 $ac_includes_default
21189 #include <curses.h>
21191 rm -f conftest.
$ac_objext
21192 if { (ac_try
="$ac_compile"
21193 case "(($ac_try" in
21194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_compile") 2>conftest.er1
21200 grep -v '^ *+' conftest.er1 >conftest.err
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest.$ac_objext; then
21208 ac_header_compiler=yes
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21213 ac_header_compiler=no
21216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21218 echo "${ECHO_T}$ac_header_compiler" >&6; }
21220 # Is the header present?
21221 { echo "$as_me:$LINENO: checking curses.h presence" >&5
21222 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
21223 cat >conftest.$ac_ext <<_ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21229 #include <curses.h>
21231 if { (ac_try="$ac_cpp conftest.$ac_ext"
21232 case "(($ac_try" in
21233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21234 *) ac_try_echo
=$ac_try;;
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21239 grep -v '^ *+' conftest.er1
>conftest.err
21241 cat conftest.err
>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } >/dev
/null
&& {
21244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21247 ac_header_preproc
=yes
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.
$ac_ext >&5
21252 ac_header_preproc
=no
21255 rm -f conftest.err conftest.
$ac_ext
21256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21257 echo "${ECHO_T}$ac_header_preproc" >&6; }
21259 # So? What about this header?
21260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21262 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
21263 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21264 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
21265 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
21266 ac_header_preproc
=yes
21269 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
21270 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
21272 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
21273 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
21274 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
21275 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
21276 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
21277 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
21278 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
21279 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
21280 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
21282 ## ------------------------------- ##
21283 ## Report this to www.asterisk.org ##
21284 ## ------------------------------- ##
21286 ) |
sed "s/^/$as_me: WARNING: /" >&2
21289 { echo "$as_me:$LINENO: checking for curses.h" >&5
21290 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21291 if test "${ac_cv_header_curses_h+set}" = set; then
21292 echo $ECHO_N "(cached) $ECHO_C" >&6
21294 ac_cv_header_curses_h
=$ac_header_preproc
21296 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21297 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21300 if test $ac_cv_header_curses_h = yes; then
21301 NCURSES_HEADER_FOUND
=1
21303 NCURSES_HEADER_FOUND
=0
21308 CPPFLAGS
="${saved_cppflags}"
21309 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
21310 if test -n "${NCURSES_MANDATORY}" ;
21312 { echo "$as_me:$LINENO: ***" >&5
21313 echo "$as_me: ***" >&6;}
21314 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
21315 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
21316 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
21317 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
21318 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21319 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21328 cat >>confdefs.h
<<_ACEOF
21329 #define HAVE_NCURSES 1
21333 elif test -n "${NCURSES_MANDATORY}";
21335 { echo "$as_me:$LINENO: ***" >&5
21336 echo "$as_me: ***" >&6;}
21337 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
21338 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
21339 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21340 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21341 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21342 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21349 if test "${USE_NETSNMP}" != "no"; then
21350 if test "x${NETSNMP_DIR}" != "x"; then
21351 if test -n "$ac_tool_prefix"; then
21352 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21353 set dummy
${ac_tool_prefix}net-snmp-config
; ac_word
=$2
21354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21356 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21357 echo $ECHO_N "(cached) $ECHO_C" >&6
21359 case $NETSNMP_CONFIG in
21361 ac_cv_path_NETSNMP_CONFIG
="$NETSNMP_CONFIG" # Let the user override the test with a path.
21364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21365 for as_dir
in ${NETSNMP_DIR}/bin
21368 test -z "$as_dir" && as_dir
=.
21369 for ac_exec_ext
in '' $ac_executable_extensions; do
21370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21371 ac_cv_path_NETSNMP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
21372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21382 NETSNMP_CONFIG
=$ac_cv_path_NETSNMP_CONFIG
21383 if test -n "$NETSNMP_CONFIG"; then
21384 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21385 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21387 { echo "$as_me:$LINENO: result: no" >&5
21388 echo "${ECHO_T}no" >&6; }
21393 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21394 ac_pt_NETSNMP_CONFIG
=$NETSNMP_CONFIG
21395 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21396 set dummy net-snmp-config
; ac_word
=$2
21397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21399 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21402 case $ac_pt_NETSNMP_CONFIG in
21404 ac_cv_path_ac_pt_NETSNMP_CONFIG
="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21408 for as_dir
in ${NETSNMP_DIR}/bin
21411 test -z "$as_dir" && as_dir
=.
21412 for ac_exec_ext
in '' $ac_executable_extensions; do
21413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21414 ac_cv_path_ac_pt_NETSNMP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
21415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21425 ac_pt_NETSNMP_CONFIG
=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21426 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21427 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21428 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21430 { echo "$as_me:$LINENO: result: no" >&5
21431 echo "${ECHO_T}no" >&6; }
21434 if test "x$ac_pt_NETSNMP_CONFIG" = x
; then
21435 NETSNMP_CONFIG
="No"
21437 case $cross_compiling:$ac_tool_warned in
21439 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21440 whose name does not start with the host triplet. If you think this
21441 configuration is useful to you, please write to autoconf@gnu.org." >&5
21442 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21443 whose name does not start with the host triplet. If you think this
21444 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21445 ac_tool_warned
=yes ;;
21447 NETSNMP_CONFIG
=$ac_pt_NETSNMP_CONFIG
21450 NETSNMP_CONFIG
="$ac_cv_path_NETSNMP_CONFIG"
21453 if test x
"${NETSNMP_CONFIG}" = xNo
; then
21454 { echo "$as_me:$LINENO: ***" >&5
21455 echo "$as_me: ***" >&6;}
21456 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
21457 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
21458 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
21459 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
21460 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21461 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21462 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21463 echo "$as_me: *** including --without-netsnmp" >&6;}
21467 if test -n "$ac_tool_prefix"; then
21468 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21469 set dummy
${ac_tool_prefix}net-snmp-config
; ac_word
=$2
21470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21472 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21475 case $NETSNMP_CONFIG in
21477 ac_cv_path_NETSNMP_CONFIG
="$NETSNMP_CONFIG" # Let the user override the test with a path.
21480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21481 for as_dir
in $PATH
21484 test -z "$as_dir" && as_dir
=.
21485 for ac_exec_ext
in '' $ac_executable_extensions; do
21486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21487 ac_cv_path_NETSNMP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
21488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21498 NETSNMP_CONFIG
=$ac_cv_path_NETSNMP_CONFIG
21499 if test -n "$NETSNMP_CONFIG"; then
21500 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21501 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21503 { echo "$as_me:$LINENO: result: no" >&5
21504 echo "${ECHO_T}no" >&6; }
21509 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21510 ac_pt_NETSNMP_CONFIG
=$NETSNMP_CONFIG
21511 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21512 set dummy net-snmp-config
; ac_word
=$2
21513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21515 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 case $ac_pt_NETSNMP_CONFIG in
21520 ac_cv_path_ac_pt_NETSNMP_CONFIG
="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21524 for as_dir
in $PATH
21527 test -z "$as_dir" && as_dir
=.
21528 for ac_exec_ext
in '' $ac_executable_extensions; do
21529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21530 ac_cv_path_ac_pt_NETSNMP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
21531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21541 ac_pt_NETSNMP_CONFIG
=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21542 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21543 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21544 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21546 { echo "$as_me:$LINENO: result: no" >&5
21547 echo "${ECHO_T}no" >&6; }
21550 if test "x$ac_pt_NETSNMP_CONFIG" = x
; then
21551 NETSNMP_CONFIG
="No"
21553 case $cross_compiling:$ac_tool_warned in
21555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21556 whose name does not start with the host triplet. If you think this
21557 configuration is useful to you, please write to autoconf@gnu.org." >&5
21558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21559 whose name does not start with the host triplet. If you think this
21560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21561 ac_tool_warned
=yes ;;
21563 NETSNMP_CONFIG
=$ac_pt_NETSNMP_CONFIG
21566 NETSNMP_CONFIG
="$ac_cv_path_NETSNMP_CONFIG"
21571 if test x
"${NETSNMP_CONFIG}" != xNo
; then
21572 NETSNMP_libs
=`${NETSNMP_CONFIG} --agent-libs`
21574 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
21575 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
21576 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21579 ac_check_lib_save_LIBS
=$LIBS
21580 LIBS
="-lnetsnmp ${NETSNMP_libs} $LIBS"
21581 cat >conftest.
$ac_ext <<_ACEOF
21584 cat confdefs.h
>>conftest.
$ac_ext
21585 cat >>conftest.
$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21588 /* Override any GCC internal prototype to avoid an error.
21589 Use char because int might match the return type of a GCC
21590 builtin and then its argument prototype would still apply. */
21594 char snmp_register_callback ();
21598 return snmp_register_callback ();
21603 rm -f conftest.
$ac_objext conftest
$ac_exeext
21604 if { (ac_try
="$ac_link"
21605 case "(($ac_try" in
21606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21607 *) ac_try_echo=$ac_try;;
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610 (eval "$ac_link") 2>conftest.er1
21612 grep -v '^ *+' conftest.er1 >conftest.err
21614 cat conftest.err >&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } && {
21617 test -z "$ac_c_werror_flag" ||
21618 test ! -s conftest.err
21619 } && test -s conftest$ac_exeext &&
21620 $as_test_x conftest$ac_exeext; then
21621 ac_cv_lib_netsnmp_snmp_register_callback=yes
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 ac_cv_lib_netsnmp_snmp_register_callback=no
21629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21630 conftest$ac_exeext conftest.$ac_ext
21631 LIBS=$ac_check_lib_save_LIBS
21633 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
21634 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
21635 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
21637 cat >>confdefs.h <<_ACEOF
21638 #define HAVE_NETSNMP 1
21644 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
21645 NETSNMP_LIB="${NETSNMP_libs}"
21647 elif test -n "${NETSNMP_MANDATORY}";
21649 { echo "$as_me:$LINENO: ***" >&5
21650 echo "$as_me: ***" >&6;}
21651 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
21652 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
21653 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21654 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21655 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21656 echo "$as_me: *** including --without-netsnmp" >&6;}
21659 elif test -n "${NETSNMP_MANDATORY}";
21661 { echo "$as_me:$LINENO: ***" >&5
21662 echo "$as_me: ***" >&6;}
21663 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
21664 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
21665 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21666 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21667 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21668 echo "$as_me: *** including --without-netsnmp" >&6;}
21673 if test "${USE_NEWT}" != "no"; then
21675 if test "x${NEWT_DIR}" != "x"; then
21676 if test -d ${NEWT_DIR}/lib; then
21677 pbxlibdir="-L${NEWT_DIR}/lib"
21679 pbxlibdir="-L${NEWT_DIR}"
21682 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
21683 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
21684 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21687 ac_check_lib_save_LIBS=$LIBS
21688 LIBS="-lnewt ${pbxlibdir} $LIBS"
21689 cat >conftest.$ac_ext <<_ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21696 /* Override any GCC internal prototype to avoid an error.
21697 Use char because int might match the return type of a GCC
21698 builtin and then its argument prototype would still apply. */
21706 return newtBell ();
21711 rm -f conftest.$ac_objext conftest$ac_exeext
21712 if { (ac_try="$ac_link"
21713 case "(($ac_try" in
21714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21715 *) ac_try_echo
=$ac_try;;
21717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21718 (eval "$ac_link") 2>conftest.er1
21720 grep -v '^ *+' conftest.er1
>conftest.err
21722 cat conftest.err
>&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } && {
21725 test -z "$ac_c_werror_flag" ||
21726 test ! -s conftest.err
21727 } && test -s conftest
$ac_exeext &&
21728 $as_test_x conftest
$ac_exeext; then
21729 ac_cv_lib_newt_newtBell
=yes
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.
$ac_ext >&5
21734 ac_cv_lib_newt_newtBell
=no
21737 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21738 conftest
$ac_exeext conftest.
$ac_ext
21739 LIBS
=$ac_check_lib_save_LIBS
21741 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
21742 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
21743 if test $ac_cv_lib_newt_newtBell = yes; then
21750 if test "${AST_NEWT_FOUND}" = "yes"; then
21752 NEWT_HEADER_FOUND
="1"
21753 if test "x${NEWT_DIR}" != "x"; then
21754 NEWT_LIB
="${pbxlibdir} ${NEWT_LIB}"
21755 NEWT_INCLUDE
="-I${NEWT_DIR}/include"
21757 NEWT_INCLUDE
="${NEWT_INCLUDE} "
21758 saved_cppflags
="${CPPFLAGS}"
21759 CPPFLAGS
="${CPPFLAGS} ${NEWT_INCLUDE}"
21760 if test "xnewt.h" != "x" ; then
21761 if test "${ac_cv_header_newt_h+set}" = set; then
21762 { echo "$as_me:$LINENO: checking for newt.h" >&5
21763 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
21764 if test "${ac_cv_header_newt_h+set}" = set; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21767 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
21768 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
21770 # Is the header compilable?
21771 { echo "$as_me:$LINENO: checking newt.h usability" >&5
21772 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
21773 cat >conftest.
$ac_ext <<_ACEOF
21776 cat confdefs.h
>>conftest.
$ac_ext
21777 cat >>conftest.
$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21779 $ac_includes_default
21782 rm -f conftest.
$ac_objext
21783 if { (ac_try
="$ac_compile"
21784 case "(($ac_try" in
21785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21786 *) ac_try_echo=$ac_try;;
21788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21789 (eval "$ac_compile") 2>conftest.er1
21791 grep -v '^ *+' conftest.er1 >conftest.err
21793 cat conftest.err >&5
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); } && {
21796 test -z "$ac_c_werror_flag" ||
21797 test ! -s conftest.err
21798 } && test -s conftest.$ac_objext; then
21799 ac_header_compiler=yes
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21804 ac_header_compiler=no
21807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21809 echo "${ECHO_T}$ac_header_compiler" >&6; }
21811 # Is the header present?
21812 { echo "$as_me:$LINENO: checking newt.h presence" >&5
21813 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
21814 cat >conftest.$ac_ext <<_ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h. */
21822 if { (ac_try="$ac_cpp conftest.$ac_ext"
21823 case "(($ac_try" in
21824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21825 *) ac_try_echo
=$ac_try;;
21827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21830 grep -v '^ *+' conftest.er1
>conftest.err
21832 cat conftest.err
>&5
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); } >/dev
/null
&& {
21835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21836 test ! -s conftest.err
21838 ac_header_preproc
=yes
21840 echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.
$ac_ext >&5
21843 ac_header_preproc
=no
21846 rm -f conftest.err conftest.
$ac_ext
21847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21848 echo "${ECHO_T}$ac_header_preproc" >&6; }
21850 # So? What about this header?
21851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21853 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21854 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21855 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
21856 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
21857 ac_header_preproc
=yes
21860 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
21861 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
21862 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
21863 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
21864 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
21865 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
21866 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
21867 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
21869 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
21871 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
21873 ## ------------------------------- ##
21874 ## Report this to www.asterisk.org ##
21875 ## ------------------------------- ##
21877 ) |
sed "s/^/$as_me: WARNING: /" >&2
21880 { echo "$as_me:$LINENO: checking for newt.h" >&5
21881 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
21882 if test "${ac_cv_header_newt_h+set}" = set; then
21883 echo $ECHO_N "(cached) $ECHO_C" >&6
21885 ac_cv_header_newt_h
=$ac_header_preproc
21887 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
21888 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
21891 if test $ac_cv_header_newt_h = yes; then
21892 NEWT_HEADER_FOUND
=1
21894 NEWT_HEADER_FOUND
=0
21899 CPPFLAGS
="${saved_cppflags}"
21900 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
21901 if test -n "${NEWT_MANDATORY}" ;
21903 { echo "$as_me:$LINENO: ***" >&5
21904 echo "$as_me: ***" >&6;}
21905 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
21906 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
21907 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
21908 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
21909 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
21910 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
21919 cat >>confdefs.h
<<_ACEOF
21920 #define HAVE_NEWT 1
21924 elif test -n "${NEWT_MANDATORY}";
21926 { echo "$as_me:$LINENO: ***" >&5
21927 echo "$as_me: ***" >&6;}
21928 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
21929 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
21930 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21931 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21932 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
21933 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
21940 if test "${USE_UNIXODBC}" != "no"; then
21942 if test "x${UNIXODBC_DIR}" != "x"; then
21943 if test -d ${UNIXODBC_DIR}/lib
; then
21944 pbxlibdir
="-L${UNIXODBC_DIR}/lib"
21946 pbxlibdir
="-L${UNIXODBC_DIR}"
21949 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
21950 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
21951 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
21952 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 ac_check_lib_save_LIBS
=$LIBS
21955 LIBS
="-lodbc ${pbxlibdir} $LIBS"
21956 cat >conftest.
$ac_ext <<_ACEOF
21959 cat confdefs.h
>>conftest.
$ac_ext
21960 cat >>conftest.
$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21963 /* Override any GCC internal prototype to avoid an error.
21964 Use char because int might match the return type of a GCC
21965 builtin and then its argument prototype would still apply. */
21969 char SQLConnect ();
21973 return SQLConnect ();
21978 rm -f conftest.
$ac_objext conftest
$ac_exeext
21979 if { (ac_try
="$ac_link"
21980 case "(($ac_try" in
21981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_link") 2>conftest.er1
21987 grep -v '^ *+' conftest.er1 >conftest.err
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } && {
21992 test -z "$ac_c_werror_flag" ||
21993 test ! -s conftest.err
21994 } && test -s conftest$ac_exeext &&
21995 $as_test_x conftest$ac_exeext; then
21996 ac_cv_lib_odbc_SQLConnect=yes
21998 echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22001 ac_cv_lib_odbc_SQLConnect=no
22004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22005 conftest$ac_exeext conftest.$ac_ext
22006 LIBS=$ac_check_lib_save_LIBS
22008 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
22009 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
22010 if test $ac_cv_lib_odbc_SQLConnect = yes; then
22011 AST_UNIXODBC_FOUND=yes
22013 AST_UNIXODBC_FOUND=no
22017 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
22018 UNIXODBC_LIB="-lodbc "
22019 UNIXODBC_HEADER_FOUND="1"
22020 if test "x${UNIXODBC_DIR}" != "x"; then
22021 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
22022 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
22024 UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
22025 saved_cppflags="${CPPFLAGS}"
22026 CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
22027 if test "xsql.h" != "x" ; then
22028 if test "${ac_cv_header_sql_h+set}" = set; then
22029 { echo "$as_me:$LINENO: checking for sql.h" >&5
22030 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22031 if test "${ac_cv_header_sql_h+set}" = set; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22035 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22037 # Is the header compilable?
22038 { echo "$as_me:$LINENO: checking sql.h usability" >&5
22039 echo $ECHO_N "checking sql.h usability... $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. */
22046 $ac_includes_default
22049 rm -f conftest.$ac_objext
22050 if { (ac_try="$ac_compile"
22051 case "(($ac_try" in
22052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22053 *) ac_try_echo
=$ac_try;;
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_compile") 2>conftest.er1
22058 grep -v '^ *+' conftest.er1
>conftest.err
22060 cat conftest.err
>&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } && {
22063 test -z "$ac_c_werror_flag" ||
22064 test ! -s conftest.err
22065 } && test -s conftest.
$ac_objext; then
22066 ac_header_compiler
=yes
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.
$ac_ext >&5
22071 ac_header_compiler
=no
22074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22076 echo "${ECHO_T}$ac_header_compiler" >&6; }
22078 # Is the header present?
22079 { echo "$as_me:$LINENO: checking sql.h presence" >&5
22080 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
22081 cat >conftest.
$ac_ext <<_ACEOF
22084 cat confdefs.h
>>conftest.
$ac_ext
22085 cat >>conftest.
$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22089 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22090 case "(($ac_try" in
22091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22097 grep -v '^ *+' conftest.er1 >conftest.err
22099 cat conftest.err >&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); } >/dev/null && {
22102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22103 test ! -s conftest.err
22105 ac_header_preproc=yes
22107 echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22110 ac_header_preproc=no
22113 rm -f conftest.err conftest.$ac_ext
22114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22115 echo "${ECHO_T}$ac_header_preproc" >&6; }
22117 # So? What about this header?
22118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22120 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
22121 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22122 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
22123 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
22124 ac_header_preproc=yes
22127 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
22128 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
22129 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
22130 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
22131 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
22132 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
22133 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
22134 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
22135 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
22136 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
22137 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
22138 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
22140 ## ------------------------------- ##
22141 ## Report this to www.asterisk.org ##
22142 ## ------------------------------- ##
22144 ) | sed "s/^/$as_me: WARNING: /" >&2
22147 { echo "$as_me:$LINENO: checking for sql.h" >&5
22148 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22149 if test "${ac_cv_header_sql_h+set}" = set; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22152 ac_cv_header_sql_h=$ac_header_preproc
22154 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22155 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22158 if test $ac_cv_header_sql_h = yes; then
22159 UNIXODBC_HEADER_FOUND=1
22161 UNIXODBC_HEADER_FOUND=0
22166 CPPFLAGS="${saved_cppflags}"
22167 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
22168 if test -n "${UNIXODBC_MANDATORY}" ;
22170 { echo "$as_me:$LINENO: ***" >&5
22171 echo "$as_me: ***" >&6;}
22172 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
22173 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
22174 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
22175 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
22176 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22177 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22181 UNIXODBC_INCLUDE=""
22186 cat >>confdefs.h <<_ACEOF
22187 #define HAVE_UNIXODBC 1
22191 elif test -n "${UNIXODBC_MANDATORY}";
22193 { echo "$as_me:$LINENO: ***" >&5
22194 echo "$as_me: ***" >&6;}
22195 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
22196 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
22197 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22198 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22199 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22200 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22207 if test "${USE_OGG}" != "no"; then
22209 if test "x${OGG_DIR}" != "x"; then
22210 if test -d ${OGG_DIR}/lib; then
22211 pbxlibdir="-L${OGG_DIR}/lib"
22213 pbxlibdir="-L${OGG_DIR}"
22216 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
22217 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
22218 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
22219 echo $ECHO_N "(cached) $ECHO_C" >&6
22221 ac_check_lib_save_LIBS=$LIBS
22222 LIBS="-logg ${pbxlibdir} $LIBS"
22223 cat >conftest.$ac_ext <<_ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h. */
22230 /* Override any GCC internal prototype to avoid an error.
22231 Use char because int might match the return type of a GCC
22232 builtin and then its argument prototype would still apply. */
22236 char ogg_sync_init ();
22240 return ogg_sync_init ();
22245 rm -f conftest.$ac_objext conftest$ac_exeext
22246 if { (ac_try="$ac_link"
22247 case "(($ac_try" in
22248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22249 *) ac_try_echo
=$ac_try;;
22251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22252 (eval "$ac_link") 2>conftest.er1
22254 grep -v '^ *+' conftest.er1
>conftest.err
22256 cat conftest.err
>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } && {
22259 test -z "$ac_c_werror_flag" ||
22260 test ! -s conftest.err
22261 } && test -s conftest
$ac_exeext &&
22262 $as_test_x conftest
$ac_exeext; then
22263 ac_cv_lib_ogg_ogg_sync_init
=yes
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.
$ac_ext >&5
22268 ac_cv_lib_ogg_ogg_sync_init
=no
22271 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22272 conftest
$ac_exeext conftest.
$ac_ext
22273 LIBS
=$ac_check_lib_save_LIBS
22275 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
22276 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
22277 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
22284 if test "${AST_OGG_FOUND}" = "yes"; then
22286 OGG_HEADER_FOUND
="1"
22287 if test "x${OGG_DIR}" != "x"; then
22288 OGG_LIB
="${pbxlibdir} ${OGG_LIB}"
22289 OGG_INCLUDE
="-I${OGG_DIR}/include"
22291 OGG_INCLUDE
="${OGG_INCLUDE} "
22292 saved_cppflags
="${CPPFLAGS}"
22293 CPPFLAGS
="${CPPFLAGS} ${OGG_INCLUDE}"
22294 if test "x" != "x" ; then
22295 if test "${ac_cv_header_+set}" = set; then
22296 { echo "$as_me:$LINENO: checking for " >&5
22297 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22298 if test "${ac_cv_header_+set}" = set; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22301 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22302 echo "${ECHO_T}$ac_cv_header_" >&6; }
22304 # Is the header compilable?
22305 { echo "$as_me:$LINENO: checking usability" >&5
22306 echo $ECHO_N "checking usability... $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 $ac_includes_default
22316 rm -f conftest.
$ac_objext
22317 if { (ac_try
="$ac_compile"
22318 case "(($ac_try" in
22319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22320 *) ac_try_echo=$ac_try;;
22322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22323 (eval "$ac_compile") 2>conftest.er1
22325 grep -v '^ *+' conftest.er1 >conftest.err
22327 cat conftest.err >&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); } && {
22330 test -z "$ac_c_werror_flag" ||
22331 test ! -s conftest.err
22332 } && test -s conftest.$ac_objext; then
22333 ac_header_compiler=yes
22335 echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22338 ac_header_compiler=no
22341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22343 echo "${ECHO_T}$ac_header_compiler" >&6; }
22345 # Is the header present?
22346 { echo "$as_me:$LINENO: checking presence" >&5
22347 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22348 cat >conftest.$ac_ext <<_ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22356 if { (ac_try="$ac_cpp conftest.$ac_ext"
22357 case "(($ac_try" in
22358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22359 *) ac_try_echo
=$ac_try;;
22361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22364 grep -v '^ *+' conftest.er1
>conftest.err
22366 cat conftest.err
>&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } >/dev
/null
&& {
22369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22370 test ! -s conftest.err
22372 ac_header_preproc
=yes
22374 echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.
$ac_ext >&5
22377 ac_header_preproc
=no
22380 rm -f conftest.err conftest.
$ac_ext
22381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22382 echo "${ECHO_T}$ac_header_preproc" >&6; }
22384 # So? What about this header?
22385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22387 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22388 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22389 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22390 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22391 ac_header_preproc
=yes
22394 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22395 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22396 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22397 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22398 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22399 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22400 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22401 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22402 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22403 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22404 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22405 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22407 ## ------------------------------- ##
22408 ## Report this to www.asterisk.org ##
22409 ## ------------------------------- ##
22411 ) |
sed "s/^/$as_me: WARNING: /" >&2
22414 { echo "$as_me:$LINENO: checking for " >&5
22415 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22416 if test "${ac_cv_header_+set}" = set; then
22417 echo $ECHO_N "(cached) $ECHO_C" >&6
22419 ac_cv_header_
=$ac_header_preproc
22421 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22422 echo "${ECHO_T}$ac_cv_header_" >&6; }
22425 if test $ac_cv_header_ = yes; then
22433 CPPFLAGS
="${saved_cppflags}"
22434 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
22435 if test -n "${OGG_MANDATORY}" ;
22437 { echo "$as_me:$LINENO: ***" >&5
22438 echo "$as_me: ***" >&6;}
22439 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
22440 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
22441 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
22442 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
22443 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
22444 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
22453 cat >>confdefs.h
<<_ACEOF
22458 elif test -n "${OGG_MANDATORY}";
22460 { echo "$as_me:$LINENO: ***" >&5
22461 echo "$as_me: ***" >&6;}
22462 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
22463 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
22464 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22465 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22466 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
22467 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
22473 if test "${USE_OSS}" != "no"; then
22475 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22476 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22477 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22478 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22479 echo $ECHO_N "(cached) $ECHO_C" >&6
22481 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22482 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22484 # Is the header compilable?
22485 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
22486 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
22487 cat >conftest.
$ac_ext <<_ACEOF
22490 cat confdefs.h
>>conftest.
$ac_ext
22491 cat >>conftest.
$ac_ext <<_ACEOF
22492 /* end confdefs.h. */
22493 $ac_includes_default
22494 #include <linux/soundcard.h>
22496 rm -f conftest.
$ac_objext
22497 if { (ac_try
="$ac_compile"
22498 case "(($ac_try" in
22499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_compile") 2>conftest.er1
22505 grep -v '^ *+' conftest.er1 >conftest.err
22507 cat conftest.err >&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } && {
22510 test -z "$ac_c_werror_flag" ||
22511 test ! -s conftest.err
22512 } && test -s conftest.$ac_objext; then
22513 ac_header_compiler=yes
22515 echo "$as_me: failed program was:" >&5
22516 sed 's/^/| /' conftest.$ac_ext >&5
22518 ac_header_compiler=no
22521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22523 echo "${ECHO_T}$ac_header_compiler" >&6; }
22525 # Is the header present?
22526 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
22527 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
22528 cat >conftest.$ac_ext <<_ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.h. */
22534 #include <linux/soundcard.h>
22536 if { (ac_try="$ac_cpp conftest.$ac_ext"
22537 case "(($ac_try" in
22538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22539 *) ac_try_echo
=$ac_try;;
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22544 grep -v '^ *+' conftest.er1
>conftest.err
22546 cat conftest.err
>&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } >/dev
/null
&& {
22549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22550 test ! -s conftest.err
22552 ac_header_preproc
=yes
22554 echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.
$ac_ext >&5
22557 ac_header_preproc
=no
22560 rm -f conftest.err conftest.
$ac_ext
22561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22562 echo "${ECHO_T}$ac_header_preproc" >&6; }
22564 # So? What about this header?
22565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22567 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22568 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22569 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
22570 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
22571 ac_header_preproc
=yes
22574 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
22575 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
22576 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
22577 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
22578 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
22579 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
22580 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22581 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22582 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
22583 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
22584 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
22585 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
22587 ## ------------------------------- ##
22588 ## Report this to www.asterisk.org ##
22589 ## ------------------------------- ##
22591 ) |
sed "s/^/$as_me: WARNING: /" >&2
22594 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22595 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22596 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22599 ac_cv_header_linux_soundcard_h
=$ac_header_preproc
22601 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22602 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22605 if test $ac_cv_header_linux_soundcard_h = yes; then
22609 cat >>confdefs.h
<<_ACEOF
22617 if test "$PBX_OSS" = "0"; then
22618 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22619 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22620 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22621 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22624 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22625 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22627 # Is the header compilable?
22628 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
22629 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
22630 cat >conftest.
$ac_ext <<_ACEOF
22633 cat confdefs.h
>>conftest.
$ac_ext
22634 cat >>conftest.
$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 $ac_includes_default
22637 #include <sys/soundcard.h>
22639 rm -f conftest.
$ac_objext
22640 if { (ac_try
="$ac_compile"
22641 case "(($ac_try" in
22642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22643 *) ac_try_echo=$ac_try;;
22645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22646 (eval "$ac_compile") 2>conftest.er1
22648 grep -v '^ *+' conftest.er1 >conftest.err
22650 cat conftest.err >&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); } && {
22653 test -z "$ac_c_werror_flag" ||
22654 test ! -s conftest.err
22655 } && test -s conftest.$ac_objext; then
22656 ac_header_compiler=yes
22658 echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22661 ac_header_compiler=no
22664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22666 echo "${ECHO_T}$ac_header_compiler" >&6; }
22668 # Is the header present?
22669 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
22670 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
22671 cat >conftest.$ac_ext <<_ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 #include <sys/soundcard.h>
22679 if { (ac_try="$ac_cpp conftest.$ac_ext"
22680 case "(($ac_try" in
22681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22682 *) ac_try_echo
=$ac_try;;
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22687 grep -v '^ *+' conftest.er1
>conftest.err
22689 cat conftest.err
>&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } >/dev
/null
&& {
22692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22695 ac_header_preproc
=yes
22697 echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.
$ac_ext >&5
22700 ac_header_preproc
=no
22703 rm -f conftest.err conftest.
$ac_ext
22704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22705 echo "${ECHO_T}$ac_header_preproc" >&6; }
22707 # So? What about this header?
22708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22710 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22711 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22712 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
22713 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
22714 ac_header_preproc
=yes
22717 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
22718 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
22719 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
22720 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
22721 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
22722 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
22723 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22724 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22725 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
22726 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
22727 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
22728 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
22730 ## ------------------------------- ##
22731 ## Report this to www.asterisk.org ##
22732 ## ------------------------------- ##
22734 ) |
sed "s/^/$as_me: WARNING: /" >&2
22737 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22738 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22739 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22740 echo $ECHO_N "(cached) $ECHO_C" >&6
22742 ac_cv_header_sys_soundcard_h
=$ac_header_preproc
22744 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22745 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22748 if test $ac_cv_header_sys_soundcard_h = yes; then
22752 cat >>confdefs.h
<<_ACEOF
22761 if test "$PBX_OSS" = "0"; then
22763 if test "${USE_OSS}" != "no"; then
22765 if test "x${OSS_DIR}" != "x"; then
22766 if test -d ${OSS_DIR}/lib
; then
22767 pbxlibdir
="-L${OSS_DIR}/lib"
22769 pbxlibdir
="-L${OSS_DIR}"
22772 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
22773 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
22774 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
22775 echo $ECHO_N "(cached) $ECHO_C" >&6
22777 ac_check_lib_save_LIBS
=$LIBS
22778 LIBS
="-lossaudio ${pbxlibdir} $LIBS"
22779 cat >conftest.
$ac_ext <<_ACEOF
22782 cat confdefs.h
>>conftest.
$ac_ext
22783 cat >>conftest.
$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22786 /* Override any GCC internal prototype to avoid an error.
22787 Use char because int might match the return type of a GCC
22788 builtin and then its argument prototype would still apply. */
22792 char oss_ioctl_mixer ();
22796 return oss_ioctl_mixer ();
22801 rm -f conftest.
$ac_objext conftest
$ac_exeext
22802 if { (ac_try
="$ac_link"
22803 case "(($ac_try" in
22804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808 (eval "$ac_link") 2>conftest.er1
22810 grep -v '^ *+' conftest.er1 >conftest.err
22812 cat conftest.err >&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); } && {
22815 test -z "$ac_c_werror_flag" ||
22816 test ! -s conftest.err
22817 } && test -s conftest$ac_exeext &&
22818 $as_test_x conftest$ac_exeext; then
22819 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
22821 echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22824 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
22827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22828 conftest$ac_exeext conftest.$ac_ext
22829 LIBS=$ac_check_lib_save_LIBS
22831 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
22832 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
22833 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
22840 if test "${AST_OSS_FOUND}" = "yes"; then
22841 OSS_LIB="-lossaudio "
22842 OSS_HEADER_FOUND="1"
22843 if test "x${OSS_DIR}" != "x"; then
22844 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
22845 OSS_INCLUDE="-I${OSS_DIR}/include"
22847 OSS_INCLUDE="${OSS_INCLUDE} "
22848 saved_cppflags="${CPPFLAGS}"
22849 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
22850 if test "xsoundcard.h" != "x" ; then
22851 if test "${ac_cv_header_soundcard_h+set}" = set; then
22852 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22853 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22854 if test "${ac_cv_header_soundcard_h+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22857 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22858 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22860 # Is the header compilable?
22861 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
22862 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
22863 cat >conftest.$ac_ext <<_ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h. */
22869 $ac_includes_default
22870 #include <soundcard.h>
22872 rm -f conftest.$ac_objext
22873 if { (ac_try="$ac_compile"
22874 case "(($ac_try" in
22875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22876 *) ac_try_echo
=$ac_try;;
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879 (eval "$ac_compile") 2>conftest.er1
22881 grep -v '^ *+' conftest.er1
>conftest.err
22883 cat conftest.err
>&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } && {
22886 test -z "$ac_c_werror_flag" ||
22887 test ! -s conftest.err
22888 } && test -s conftest.
$ac_objext; then
22889 ac_header_compiler
=yes
22891 echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.
$ac_ext >&5
22894 ac_header_compiler
=no
22897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22899 echo "${ECHO_T}$ac_header_compiler" >&6; }
22901 # Is the header present?
22902 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
22903 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
22904 cat >conftest.
$ac_ext <<_ACEOF
22907 cat confdefs.h
>>conftest.
$ac_ext
22908 cat >>conftest.
$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910 #include <soundcard.h>
22912 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22913 case "(($ac_try" in
22914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22920 grep -v '^ *+' conftest.er1 >conftest.err
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } >/dev/null && {
22925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22926 test ! -s conftest.err
22928 ac_header_preproc=yes
22930 echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22933 ac_header_preproc=no
22936 rm -f conftest.err conftest.$ac_ext
22937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22938 echo "${ECHO_T}$ac_header_preproc" >&6; }
22940 # So? What about this header?
22941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22943 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22944 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22945 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
22946 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
22947 ac_header_preproc=yes
22950 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
22951 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
22952 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
22953 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
22954 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
22955 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
22956 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22957 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22958 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
22959 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
22960 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
22961 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
22963 ## ------------------------------- ##
22964 ## Report this to www.asterisk.org ##
22965 ## ------------------------------- ##
22967 ) | sed "s/^/$as_me: WARNING: /" >&2
22970 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22971 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22972 if test "${ac_cv_header_soundcard_h+set}" = set; then
22973 echo $ECHO_N "(cached) $ECHO_C" >&6
22975 ac_cv_header_soundcard_h=$ac_header_preproc
22977 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22978 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22981 if test $ac_cv_header_soundcard_h = yes; then
22989 CPPFLAGS="${saved_cppflags}"
22990 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
22991 if test -n "${OSS_MANDATORY}" ;
22993 { echo "$as_me:$LINENO: ***" >&5
22994 echo "$as_me: ***" >&6;}
22995 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
22996 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
22997 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
22998 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
22999 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23000 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23009 cat >>confdefs.h <<_ACEOF
23014 elif test -n "${OSS_MANDATORY}";
23016 { echo "$as_me:$LINENO: ***" >&5
23017 echo "$as_me: ***" >&6;}
23018 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
23019 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
23020 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23021 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23022 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23023 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23032 if test "${USE_PGSQL}" != "no"; then
23033 if test "x${PGSQL_DIR}" != "x"; then
23034 if test -n "$ac_tool_prefix"; then
23035 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23036 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23039 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23044 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23048 for as_dir in ${PGSQL_DIR}/bin
23051 test -z "$as_dir" && as_dir=.
23052 for ac_exec_ext in '' $ac_executable_extensions; do
23053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23054 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23065 PG_CONFIG=$ac_cv_path_PG_CONFIG
23066 if test -n "$PG_CONFIG"; then
23067 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23068 echo "${ECHO_T}$PG_CONFIG" >&6; }
23070 { echo "$as_me:$LINENO: result: no" >&5
23071 echo "${ECHO_T}no" >&6; }
23076 if test -z "$ac_cv_path_PG_CONFIG"; then
23077 ac_pt_PG_CONFIG=$PG_CONFIG
23078 # Extract the first word of "pg_config", so it can be a program name with args.
23079 set dummy pg_config; ac_word=$2
23080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23082 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23083 echo $ECHO_N "(cached) $ECHO_C" >&6
23085 case $ac_pt_PG_CONFIG in
23087 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23091 for as_dir in ${PGSQL_DIR}/bin
23094 test -z "$as_dir" && as_dir=.
23095 for ac_exec_ext in '' $ac_executable_extensions; do
23096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23097 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23108 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23109 if test -n "$ac_pt_PG_CONFIG"; then
23110 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23111 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23113 { echo "$as_me:$LINENO: result: no" >&5
23114 echo "${ECHO_T}no" >&6; }
23117 if test "x$ac_pt_PG_CONFIG" = x; then
23120 case $cross_compiling:$ac_tool_warned in
23122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23123 whose name does not start with the host triplet. If you think this
23124 configuration is useful to you, please write to autoconf@gnu.org." >&5
23125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23126 whose name does not start with the host triplet. If you think this
23127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23128 ac_tool_warned=yes ;;
23130 PG_CONFIG=$ac_pt_PG_CONFIG
23133 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23136 if test x"${PG_CONFIG}" = xNo; then
23137 { echo "$as_me:$LINENO: ***" >&5
23138 echo "$as_me: ***" >&6;}
23139 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
23140 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
23141 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
23142 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
23143 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23144 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23145 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23146 echo "$as_me: *** including --without-postgres" >&6;}
23150 if test -n "$ac_tool_prefix"; then
23151 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23152 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23155 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23156 echo $ECHO_N "(cached) $ECHO_C" >&6
23160 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23164 for as_dir in $PATH
23167 test -z "$as_dir" && as_dir=.
23168 for ac_exec_ext in '' $ac_executable_extensions; do
23169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23170 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23181 PG_CONFIG=$ac_cv_path_PG_CONFIG
23182 if test -n "$PG_CONFIG"; then
23183 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23184 echo "${ECHO_T}$PG_CONFIG" >&6; }
23186 { echo "$as_me:$LINENO: result: no" >&5
23187 echo "${ECHO_T}no" >&6; }
23192 if test -z "$ac_cv_path_PG_CONFIG"; then
23193 ac_pt_PG_CONFIG=$PG_CONFIG
23194 # Extract the first word of "pg_config", so it can be a program name with args.
23195 set dummy pg_config; ac_word=$2
23196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23198 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23199 echo $ECHO_N "(cached) $ECHO_C" >&6
23201 case $ac_pt_PG_CONFIG in
23203 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23207 for as_dir in $PATH
23210 test -z "$as_dir" && as_dir=.
23211 for ac_exec_ext in '' $ac_executable_extensions; do
23212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23213 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23224 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23225 if test -n "$ac_pt_PG_CONFIG"; then
23226 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23227 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23229 { echo "$as_me:$LINENO: result: no" >&5
23230 echo "${ECHO_T}no" >&6; }
23233 if test "x$ac_pt_PG_CONFIG" = x; then
23236 case $cross_compiling:$ac_tool_warned in
23238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23239 whose name does not start with the host triplet. If you think this
23240 configuration is useful to you, please write to autoconf@gnu.org." >&5
23241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23242 whose name does not start with the host triplet. If you think this
23243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23244 ac_tool_warned=yes ;;
23246 PG_CONFIG=$ac_pt_PG_CONFIG
23249 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23254 if test "${PG_CONFIG}" != No; then
23255 PGSQL_libdir=`${PG_CONFIG} --libdir`
23256 PGSQL_includedir=`${PG_CONFIG} --includedir`
23258 if test "x$?" != "x0" ; then
23259 if test -n "${PGSQL_MANDATORY}" ; then
23260 { echo "$as_me:$LINENO: ***" >&5
23261 echo "$as_me: ***" >&6;}
23262 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23263 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23264 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23265 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23266 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23267 echo "$as_me: *** including --without-postgres" >&6;}
23271 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
23272 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
23273 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
23274 echo $ECHO_N "(cached) $ECHO_C" >&6
23276 ac_check_lib_save_LIBS=$LIBS
23277 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
23278 cat >conftest.$ac_ext <<_ACEOF
23281 cat confdefs.h >>conftest.$ac_ext
23282 cat >>conftest.$ac_ext <<_ACEOF
23283 /* end confdefs.h. */
23285 /* Override any GCC internal prototype to avoid an error.
23286 Use char because int might match the return type of a GCC
23287 builtin and then its argument prototype would still apply. */
23291 char PQescapeStringConn ();
23295 return PQescapeStringConn ();
23300 rm -f conftest.$ac_objext conftest$ac_exeext
23301 if { (ac_try="$ac_link"
23302 case "(($ac_try" in
23303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23304 *) ac_try_echo
=$ac_try;;
23306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23307 (eval "$ac_link") 2>conftest.er1
23309 grep -v '^ *+' conftest.er1
>conftest.err
23311 cat conftest.err
>&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } && {
23314 test -z "$ac_c_werror_flag" ||
23315 test ! -s conftest.err
23316 } && test -s conftest
$ac_exeext &&
23317 $as_test_x conftest
$ac_exeext; then
23318 ac_cv_lib_pq_PQescapeStringConn
=yes
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.
$ac_ext >&5
23323 ac_cv_lib_pq_PQescapeStringConn
=no
23326 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23327 conftest
$ac_exeext conftest.
$ac_ext
23328 LIBS
=$ac_check_lib_save_LIBS
23330 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
23331 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
23332 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
23334 cat >>confdefs.h
<<_ACEOF
23335 #define HAVE_PGSQL 1
23341 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
23342 PGSQL_LIB
="-L${PGSQL_libdir} -lpq -lz"
23343 PGSQL_INCLUDE
="-I${PGSQL_includedir}"
23345 elif test -n "${PGSQL_MANDATORY}";
23347 { echo "$as_me:$LINENO: ***" >&5
23348 echo "$as_me: ***" >&6;}
23349 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23350 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23351 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23352 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23353 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23354 echo "$as_me: *** including --without-postgres" >&6;}
23358 elif test -n "${PGSQL_MANDATORY}";
23360 { echo "$as_me:$LINENO: ***" >&5
23361 echo "$as_me: ***" >&6;}
23362 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23363 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23364 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23365 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23366 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23367 echo "$as_me: *** including --without-postgres" >&6;}
23372 if test "${USE_POPT}" != "no"; then
23374 if test "x${POPT_DIR}" != "x"; then
23375 if test -d ${POPT_DIR}/lib
; then
23376 pbxlibdir
="-L${POPT_DIR}/lib"
23378 pbxlibdir
="-L${POPT_DIR}"
23381 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
23382 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
23383 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
23384 echo $ECHO_N "(cached) $ECHO_C" >&6
23386 ac_check_lib_save_LIBS
=$LIBS
23387 LIBS
="-lpopt ${pbxlibdir} $LIBS"
23388 cat >conftest.
$ac_ext <<_ACEOF
23391 cat confdefs.h
>>conftest.
$ac_ext
23392 cat >>conftest.
$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23395 /* Override any GCC internal prototype to avoid an error.
23396 Use char because int might match the return type of a GCC
23397 builtin and then its argument prototype would still apply. */
23401 char poptStrerror ();
23405 return poptStrerror ();
23410 rm -f conftest.
$ac_objext conftest
$ac_exeext
23411 if { (ac_try
="$ac_link"
23412 case "(($ac_try" in
23413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23414 *) ac_try_echo=$ac_try;;
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417 (eval "$ac_link") 2>conftest.er1
23419 grep -v '^ *+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } && {
23424 test -z "$ac_c_werror_flag" ||
23425 test ! -s conftest.err
23426 } && test -s conftest$ac_exeext &&
23427 $as_test_x conftest$ac_exeext; then
23428 ac_cv_lib_popt_poptStrerror=yes
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 ac_cv_lib_popt_poptStrerror=no
23436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23437 conftest$ac_exeext conftest.$ac_ext
23438 LIBS=$ac_check_lib_save_LIBS
23440 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
23441 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
23442 if test $ac_cv_lib_popt_poptStrerror = yes; then
23449 if test "${AST_POPT_FOUND}" = "yes"; then
23451 POPT_HEADER_FOUND="1"
23452 if test "x${POPT_DIR}" != "x"; then
23453 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
23454 POPT_INCLUDE="-I${POPT_DIR}/include"
23456 POPT_INCLUDE="${POPT_INCLUDE} "
23457 saved_cppflags="${CPPFLAGS}"
23458 CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
23459 if test "xpopt.h" != "x" ; then
23460 if test "${ac_cv_header_popt_h+set}" = set; then
23461 { echo "$as_me:$LINENO: checking for popt.h" >&5
23462 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23463 if test "${ac_cv_header_popt_h+set}" = set; then
23464 echo $ECHO_N "(cached) $ECHO_C" >&6
23466 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23467 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23469 # Is the header compilable?
23470 { echo "$as_me:$LINENO: checking popt.h usability" >&5
23471 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
23472 cat >conftest.$ac_ext <<_ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23478 $ac_includes_default
23481 rm -f conftest.$ac_objext
23482 if { (ac_try="$ac_compile"
23483 case "(($ac_try" in
23484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23485 *) ac_try_echo
=$ac_try;;
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488 (eval "$ac_compile") 2>conftest.er1
23490 grep -v '^ *+' conftest.er1
>conftest.err
23492 cat conftest.err
>&5
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); } && {
23495 test -z "$ac_c_werror_flag" ||
23496 test ! -s conftest.err
23497 } && test -s conftest.
$ac_objext; then
23498 ac_header_compiler
=yes
23500 echo "$as_me: failed program was:" >&5
23501 sed 's/^/| /' conftest.
$ac_ext >&5
23503 ac_header_compiler
=no
23506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23508 echo "${ECHO_T}$ac_header_compiler" >&6; }
23510 # Is the header present?
23511 { echo "$as_me:$LINENO: checking popt.h presence" >&5
23512 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
23513 cat >conftest.
$ac_ext <<_ACEOF
23516 cat confdefs.h
>>conftest.
$ac_ext
23517 cat >>conftest.
$ac_ext <<_ACEOF
23518 /* end confdefs.h. */
23521 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23522 case "(($ac_try" in
23523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23529 grep -v '^ *+' conftest.er1 >conftest.err
23531 cat conftest.err >&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } >/dev/null && {
23534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23535 test ! -s conftest.err
23537 ac_header_preproc=yes
23539 echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23542 ac_header_preproc=no
23545 rm -f conftest.err conftest.$ac_ext
23546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23547 echo "${ECHO_T}$ac_header_preproc" >&6; }
23549 # So? What about this header?
23550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23552 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23553 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23554 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
23555 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
23556 ac_header_preproc=yes
23559 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
23560 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
23561 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
23562 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
23563 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
23564 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
23565 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
23566 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23567 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
23568 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
23569 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
23570 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
23572 ## ------------------------------- ##
23573 ## Report this to www.asterisk.org ##
23574 ## ------------------------------- ##
23576 ) | sed "s/^/$as_me: WARNING: /" >&2
23579 { echo "$as_me:$LINENO: checking for popt.h" >&5
23580 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23581 if test "${ac_cv_header_popt_h+set}" = set; then
23582 echo $ECHO_N "(cached) $ECHO_C" >&6
23584 ac_cv_header_popt_h=$ac_header_preproc
23586 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23587 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23590 if test $ac_cv_header_popt_h = yes; then
23591 POPT_HEADER_FOUND=1
23593 POPT_HEADER_FOUND=0
23598 CPPFLAGS="${saved_cppflags}"
23599 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
23600 if test -n "${POPT_MANDATORY}" ;
23602 { echo "$as_me:$LINENO: ***" >&5
23603 echo "$as_me: ***" >&6;}
23604 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
23605 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
23606 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
23607 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
23608 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23609 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23618 cat >>confdefs.h <<_ACEOF
23619 #define HAVE_POPT 1
23623 elif test -n "${POPT_MANDATORY}";
23625 { echo "$as_me:$LINENO: ***" >&5
23626 echo "$as_me: ***" >&6;}
23627 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
23628 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
23629 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23630 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23631 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23632 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23639 if test "${USE_PRI}" != "no"; then
23641 if test "x${PRI_DIR}" != "x"; then
23642 if test -d ${PRI_DIR}/lib; then
23643 pbxlibdir="-L${PRI_DIR}/lib"
23645 pbxlibdir="-L${PRI_DIR}"
23648 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
23649 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
23650 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
23651 echo $ECHO_N "(cached) $ECHO_C" >&6
23653 ac_check_lib_save_LIBS=$LIBS
23654 LIBS="-lpri ${pbxlibdir} $LIBS"
23655 cat >conftest.$ac_ext <<_ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23662 /* Override any GCC internal prototype to avoid an error.
23663 Use char because int might match the return type of a GCC
23664 builtin and then its argument prototype would still apply. */
23668 char pri_keypad_facility ();
23672 return pri_keypad_facility ();
23677 rm -f conftest.$ac_objext conftest$ac_exeext
23678 if { (ac_try="$ac_link"
23679 case "(($ac_try" in
23680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23681 *) ac_try_echo
=$ac_try;;
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684 (eval "$ac_link") 2>conftest.er1
23686 grep -v '^ *+' conftest.er1
>conftest.err
23688 cat conftest.err
>&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } && {
23691 test -z "$ac_c_werror_flag" ||
23692 test ! -s conftest.err
23693 } && test -s conftest
$ac_exeext &&
23694 $as_test_x conftest
$ac_exeext; then
23695 ac_cv_lib_pri_pri_keypad_facility
=yes
23697 echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.
$ac_ext >&5
23700 ac_cv_lib_pri_pri_keypad_facility
=no
23703 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23704 conftest
$ac_exeext conftest.
$ac_ext
23705 LIBS
=$ac_check_lib_save_LIBS
23707 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
23708 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
23709 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
23716 if test "${AST_PRI_FOUND}" = "yes"; then
23718 PRI_HEADER_FOUND
="1"
23719 if test "x${PRI_DIR}" != "x"; then
23720 PRI_LIB
="${pbxlibdir} ${PRI_LIB}"
23721 PRI_INCLUDE
="-I${PRI_DIR}/include"
23723 PRI_INCLUDE
="${PRI_INCLUDE} "
23724 saved_cppflags
="${CPPFLAGS}"
23725 CPPFLAGS
="${CPPFLAGS} ${PRI_INCLUDE}"
23726 if test "xlibpri.h" != "x" ; then
23727 if test "${ac_cv_header_libpri_h+set}" = set; then
23728 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23729 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23730 if test "${ac_cv_header_libpri_h+set}" = set; then
23731 echo $ECHO_N "(cached) $ECHO_C" >&6
23733 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23734 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23736 # Is the header compilable?
23737 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
23738 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
23739 cat >conftest.
$ac_ext <<_ACEOF
23742 cat confdefs.h
>>conftest.
$ac_ext
23743 cat >>conftest.
$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23745 $ac_includes_default
23746 #include <libpri.h>
23748 rm -f conftest.
$ac_objext
23749 if { (ac_try
="$ac_compile"
23750 case "(($ac_try" in
23751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23752 *) ac_try_echo=$ac_try;;
23754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23755 (eval "$ac_compile") 2>conftest.er1
23757 grep -v '^ *+' conftest.er1 >conftest.err
23759 cat conftest.err >&5
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } && {
23762 test -z "$ac_c_werror_flag" ||
23763 test ! -s conftest.err
23764 } && test -s conftest.$ac_objext; then
23765 ac_header_compiler=yes
23767 echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23770 ac_header_compiler=no
23773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23775 echo "${ECHO_T}$ac_header_compiler" >&6; }
23777 # Is the header present?
23778 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
23779 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
23780 cat >conftest.$ac_ext <<_ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h. */
23786 #include <libpri.h>
23788 if { (ac_try="$ac_cpp conftest.$ac_ext"
23789 case "(($ac_try" in
23790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23791 *) ac_try_echo
=$ac_try;;
23793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23796 grep -v '^ *+' conftest.er1
>conftest.err
23798 cat conftest.err
>&5
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); } >/dev
/null
&& {
23801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23802 test ! -s conftest.err
23804 ac_header_preproc
=yes
23806 echo "$as_me: failed program was:" >&5
23807 sed 's/^/| /' conftest.
$ac_ext >&5
23809 ac_header_preproc
=no
23812 rm -f conftest.err conftest.
$ac_ext
23813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23814 echo "${ECHO_T}$ac_header_preproc" >&6; }
23816 # So? What about this header?
23817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23819 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23820 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23821 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
23822 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
23823 ac_header_preproc
=yes
23826 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
23827 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
23828 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
23829 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
23830 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
23831 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
23832 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23833 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23834 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
23835 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
23836 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
23837 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
23839 ## ------------------------------- ##
23840 ## Report this to www.asterisk.org ##
23841 ## ------------------------------- ##
23843 ) |
sed "s/^/$as_me: WARNING: /" >&2
23846 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23847 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23848 if test "${ac_cv_header_libpri_h+set}" = set; then
23849 echo $ECHO_N "(cached) $ECHO_C" >&6
23851 ac_cv_header_libpri_h
=$ac_header_preproc
23853 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23854 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23857 if test $ac_cv_header_libpri_h = yes; then
23865 CPPFLAGS
="${saved_cppflags}"
23866 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
23867 if test -n "${PRI_MANDATORY}" ;
23869 { echo "$as_me:$LINENO: ***" >&5
23870 echo "$as_me: ***" >&6;}
23871 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
23872 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
23873 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
23874 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
23875 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23876 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23885 cat >>confdefs.h
<<_ACEOF
23890 elif test -n "${PRI_MANDATORY}";
23892 { echo "$as_me:$LINENO: ***" >&5
23893 echo "$as_me: ***" >&6;}
23894 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
23895 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
23896 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23897 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23898 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23899 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23906 if test "${USE_PRI_VERSION}" != "no"; then
23908 if test "x${PRI_VERSION_DIR}" != "x"; then
23909 if test -d ${PRI_VERSION_DIR}/lib
; then
23910 pbxlibdir
="-L${PRI_VERSION_DIR}/lib"
23912 pbxlibdir
="-L${PRI_VERSION_DIR}"
23915 { echo "$as_me:$LINENO: checking for pri_get_version in -lpri" >&5
23916 echo $ECHO_N "checking for pri_get_version in -lpri... $ECHO_C" >&6; }
23917 if test "${ac_cv_lib_pri_pri_get_version+set}" = set; then
23918 echo $ECHO_N "(cached) $ECHO_C" >&6
23920 ac_check_lib_save_LIBS
=$LIBS
23921 LIBS
="-lpri ${pbxlibdir} $LIBS"
23922 cat >conftest.
$ac_ext <<_ACEOF
23925 cat confdefs.h
>>conftest.
$ac_ext
23926 cat >>conftest.
$ac_ext <<_ACEOF
23927 /* end confdefs.h. */
23929 /* Override any GCC internal prototype to avoid an error.
23930 Use char because int might match the return type of a GCC
23931 builtin and then its argument prototype would still apply. */
23935 char pri_get_version ();
23939 return pri_get_version ();
23944 rm -f conftest.
$ac_objext conftest
$ac_exeext
23945 if { (ac_try
="$ac_link"
23946 case "(($ac_try" in
23947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23948 *) ac_try_echo=$ac_try;;
23950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23951 (eval "$ac_link") 2>conftest.er1
23953 grep -v '^ *+' conftest.er1 >conftest.err
23955 cat conftest.err >&5
23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); } && {
23958 test -z "$ac_c_werror_flag" ||
23959 test ! -s conftest.err
23960 } && test -s conftest$ac_exeext &&
23961 $as_test_x conftest$ac_exeext; then
23962 ac_cv_lib_pri_pri_get_version=yes
23964 echo "$as_me: failed program was:" >&5
23965 sed 's/^/| /' conftest.$ac_ext >&5
23967 ac_cv_lib_pri_pri_get_version=no
23970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23971 conftest$ac_exeext conftest.$ac_ext
23972 LIBS=$ac_check_lib_save_LIBS
23974 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_get_version" >&5
23975 echo "${ECHO_T}$ac_cv_lib_pri_pri_get_version" >&6; }
23976 if test $ac_cv_lib_pri_pri_get_version = yes; then
23977 AST_PRI_VERSION_FOUND=yes
23979 AST_PRI_VERSION_FOUND=no
23983 if test "${AST_PRI_VERSION_FOUND}" = "yes"; then
23984 PRI_VERSION_LIB="-lpri "
23985 PRI_VERSION_HEADER_FOUND="1"
23986 if test "x${PRI_VERSION_DIR}" != "x"; then
23987 PRI_VERSION_LIB="${pbxlibdir} ${PRI_VERSION_LIB}"
23988 PRI_VERSION_INCLUDE="-I${PRI_VERSION_DIR}/include"
23990 PRI_VERSION_INCLUDE="${PRI_VERSION_INCLUDE} "
23991 saved_cppflags="${CPPFLAGS}"
23992 CPPFLAGS="${CPPFLAGS} ${PRI_VERSION_INCLUDE}"
23993 if test "xlibpri.h" != "x" ; then
23994 if test "${ac_cv_header_libpri_h+set}" = set; then
23995 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23996 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23997 if test "${ac_cv_header_libpri_h+set}" = set; then
23998 echo $ECHO_N "(cached) $ECHO_C" >&6
24000 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24001 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24003 # Is the header compilable?
24004 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
24005 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
24006 cat >conftest.$ac_ext <<_ACEOF
24009 cat confdefs.h >>conftest.$ac_ext
24010 cat >>conftest.$ac_ext <<_ACEOF
24011 /* end confdefs.h. */
24012 $ac_includes_default
24013 #include <libpri.h>
24015 rm -f conftest.$ac_objext
24016 if { (ac_try="$ac_compile"
24017 case "(($ac_try" in
24018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24019 *) ac_try_echo
=$ac_try;;
24021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24022 (eval "$ac_compile") 2>conftest.er1
24024 grep -v '^ *+' conftest.er1
>conftest.err
24026 cat conftest.err
>&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); } && {
24029 test -z "$ac_c_werror_flag" ||
24030 test ! -s conftest.err
24031 } && test -s conftest.
$ac_objext; then
24032 ac_header_compiler
=yes
24034 echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.
$ac_ext >&5
24037 ac_header_compiler
=no
24040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24042 echo "${ECHO_T}$ac_header_compiler" >&6; }
24044 # Is the header present?
24045 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
24046 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
24047 cat >conftest.
$ac_ext <<_ACEOF
24050 cat confdefs.h
>>conftest.
$ac_ext
24051 cat >>conftest.
$ac_ext <<_ACEOF
24052 /* end confdefs.h. */
24053 #include <libpri.h>
24055 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24056 case "(($ac_try" in
24057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24058 *) ac_try_echo=$ac_try;;
24060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24063 grep -v '^ *+' conftest.er1 >conftest.err
24065 cat conftest.err >&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); } >/dev/null && {
24068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24069 test ! -s conftest.err
24071 ac_header_preproc=yes
24073 echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24076 ac_header_preproc=no
24079 rm -f conftest.err conftest.$ac_ext
24080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24081 echo "${ECHO_T}$ac_header_preproc" >&6; }
24083 # So? What about this header?
24084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24086 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24087 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24088 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
24089 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
24090 ac_header_preproc=yes
24093 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
24094 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
24095 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
24096 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
24097 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
24098 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
24099 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24100 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24101 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
24102 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
24103 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
24104 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
24106 ## ------------------------------- ##
24107 ## Report this to www.asterisk.org ##
24108 ## ------------------------------- ##
24110 ) | sed "s/^/$as_me: WARNING: /" >&2
24113 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24114 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24115 if test "${ac_cv_header_libpri_h+set}" = set; then
24116 echo $ECHO_N "(cached) $ECHO_C" >&6
24118 ac_cv_header_libpri_h=$ac_header_preproc
24120 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24121 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24124 if test $ac_cv_header_libpri_h = yes; then
24125 PRI_VERSION_HEADER_FOUND=1
24127 PRI_VERSION_HEADER_FOUND=0
24132 CPPFLAGS="${saved_cppflags}"
24133 if test "x${PRI_VERSION_HEADER_FOUND}" = "x0" ; then
24134 if test -n "${PRI_VERSION_MANDATORY}" ;
24136 { echo "$as_me:$LINENO: ***" >&5
24137 echo "$as_me: ***" >&6;}
24138 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
24139 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
24140 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&5
24141 echo "$as_me: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&6;}
24142 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
24143 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
24147 PRI_VERSION_INCLUDE=""
24152 cat >>confdefs.h <<_ACEOF
24153 #define HAVE_PRI_VERSION 1
24157 elif test -n "${PRI_VERSION_MANDATORY}";
24159 { echo "$as_me:$LINENO: ***" >&5
24160 echo "$as_me: ***" >&6;}
24161 { echo "$as_me:$LINENO: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&5
24162 echo "$as_me: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&6;}
24163 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24164 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24165 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
24166 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
24173 if test "${USE_PRI_INBANDDISCONNECT}" != "no"; then
24175 if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
24176 if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
24177 pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
24179 pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
24182 { echo "$as_me:$LINENO: checking for pri_set_inbanddisconnect in -lpri" >&5
24183 echo $ECHO_N "checking for pri_set_inbanddisconnect in -lpri... $ECHO_C" >&6; }
24184 if test "${ac_cv_lib_pri_pri_set_inbanddisconnect+set}" = set; then
24185 echo $ECHO_N "(cached) $ECHO_C" >&6
24187 ac_check_lib_save_LIBS=$LIBS
24188 LIBS="-lpri ${pbxlibdir} $LIBS"
24189 cat >conftest.$ac_ext <<_ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24196 /* Override any GCC internal prototype to avoid an error.
24197 Use char because int might match the return type of a GCC
24198 builtin and then its argument prototype would still apply. */
24202 char pri_set_inbanddisconnect ();
24206 return pri_set_inbanddisconnect ();
24211 rm -f conftest.$ac_objext conftest$ac_exeext
24212 if { (ac_try="$ac_link"
24213 case "(($ac_try" in
24214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24215 *) ac_try_echo
=$ac_try;;
24217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24218 (eval "$ac_link") 2>conftest.er1
24220 grep -v '^ *+' conftest.er1
>conftest.err
24222 cat conftest.err
>&5
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); } && {
24225 test -z "$ac_c_werror_flag" ||
24226 test ! -s conftest.err
24227 } && test -s conftest
$ac_exeext &&
24228 $as_test_x conftest
$ac_exeext; then
24229 ac_cv_lib_pri_pri_set_inbanddisconnect
=yes
24231 echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.
$ac_ext >&5
24234 ac_cv_lib_pri_pri_set_inbanddisconnect
=no
24237 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24238 conftest
$ac_exeext conftest.
$ac_ext
24239 LIBS
=$ac_check_lib_save_LIBS
24241 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_set_inbanddisconnect" >&5
24242 echo "${ECHO_T}$ac_cv_lib_pri_pri_set_inbanddisconnect" >&6; }
24243 if test $ac_cv_lib_pri_pri_set_inbanddisconnect = yes; then
24244 AST_PRI_INBANDDISCONNECT_FOUND
=yes
24246 AST_PRI_INBANDDISCONNECT_FOUND
=no
24250 if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
24251 PRI_INBANDDISCONNECT_LIB
="-lpri "
24252 PRI_INBANDDISCONNECT_HEADER_FOUND
="1"
24253 if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
24254 PRI_INBANDDISCONNECT_LIB
="${pbxlibdir} ${PRI_INBANDDISCONNECT_LIB}"
24255 PRI_INBANDDISCONNECT_INCLUDE
="-I${PRI_INBANDDISCONNECT_DIR}/include"
24257 PRI_INBANDDISCONNECT_INCLUDE
="${PRI_INBANDDISCONNECT_INCLUDE} "
24258 saved_cppflags
="${CPPFLAGS}"
24259 CPPFLAGS
="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
24260 if test "xlibpri.h" != "x" ; then
24261 if test "${ac_cv_header_libpri_h+set}" = set; then
24262 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24263 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24264 if test "${ac_cv_header_libpri_h+set}" = set; then
24265 echo $ECHO_N "(cached) $ECHO_C" >&6
24267 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24268 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24270 # Is the header compilable?
24271 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
24272 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
24273 cat >conftest.
$ac_ext <<_ACEOF
24276 cat confdefs.h
>>conftest.
$ac_ext
24277 cat >>conftest.
$ac_ext <<_ACEOF
24278 /* end confdefs.h. */
24279 $ac_includes_default
24280 #include <libpri.h>
24282 rm -f conftest.
$ac_objext
24283 if { (ac_try
="$ac_compile"
24284 case "(($ac_try" in
24285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24286 *) ac_try_echo=$ac_try;;
24288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24289 (eval "$ac_compile") 2>conftest.er1
24291 grep -v '^ *+' conftest.er1 >conftest.err
24293 cat conftest.err >&5
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } && {
24296 test -z "$ac_c_werror_flag" ||
24297 test ! -s conftest.err
24298 } && test -s conftest.$ac_objext; then
24299 ac_header_compiler=yes
24301 echo "$as_me: failed program was:" >&5
24302 sed 's/^/| /' conftest.$ac_ext >&5
24304 ac_header_compiler=no
24307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24309 echo "${ECHO_T}$ac_header_compiler" >&6; }
24311 # Is the header present?
24312 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
24313 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
24314 cat >conftest.$ac_ext <<_ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h. */
24320 #include <libpri.h>
24322 if { (ac_try="$ac_cpp conftest.$ac_ext"
24323 case "(($ac_try" in
24324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24325 *) ac_try_echo
=$ac_try;;
24327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24330 grep -v '^ *+' conftest.er1
>conftest.err
24332 cat conftest.err
>&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } >/dev
/null
&& {
24335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24336 test ! -s conftest.err
24338 ac_header_preproc
=yes
24340 echo "$as_me: failed program was:" >&5
24341 sed 's/^/| /' conftest.
$ac_ext >&5
24343 ac_header_preproc
=no
24346 rm -f conftest.err conftest.
$ac_ext
24347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24348 echo "${ECHO_T}$ac_header_preproc" >&6; }
24350 # So? What about this header?
24351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24353 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24354 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24355 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
24356 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
24357 ac_header_preproc
=yes
24360 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
24361 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
24362 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
24363 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
24364 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
24365 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
24366 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24367 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24368 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
24369 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
24370 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
24371 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
24373 ## ------------------------------- ##
24374 ## Report this to www.asterisk.org ##
24375 ## ------------------------------- ##
24377 ) |
sed "s/^/$as_me: WARNING: /" >&2
24380 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24381 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24382 if test "${ac_cv_header_libpri_h+set}" = set; then
24383 echo $ECHO_N "(cached) $ECHO_C" >&6
24385 ac_cv_header_libpri_h
=$ac_header_preproc
24387 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24388 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24391 if test $ac_cv_header_libpri_h = yes; then
24392 PRI_INBANDDISCONNECT_HEADER_FOUND
=1
24394 PRI_INBANDDISCONNECT_HEADER_FOUND
=0
24399 CPPFLAGS
="${saved_cppflags}"
24400 if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
24401 if test -n "${PRI_INBANDDISCONNECT_MANDATORY}" ;
24403 { echo "$as_me:$LINENO: ***" >&5
24404 echo "$as_me: ***" >&6;}
24405 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
24406 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
24407 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_INBANDDISCONNECT_DESCRIP} support, or re-run configure" >&5
24408 echo "$as_me: *** Please install it to include ${PRI_INBANDDISCONNECT_DESCRIP} support, or re-run configure" >&6;}
24409 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&5
24410 echo "$as_me: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&6;}
24413 PRI_INBANDDISCONNECT_LIB
=""
24414 PRI_INBANDDISCONNECT_INCLUDE
=""
24415 PBX_PRI_INBANDDISCONNECT
=0
24417 PBX_PRI_INBANDDISCONNECT
=1
24419 cat >>confdefs.h
<<_ACEOF
24420 #define HAVE_PRI_INBANDDISCONNECT 1
24424 elif test -n "${PRI_INBANDDISCONNECT_MANDATORY}";
24426 { echo "$as_me:$LINENO: ***" >&5
24427 echo "$as_me: ***" >&6;}
24428 { echo "$as_me:$LINENO: *** The ${PRI_INBANDDISCONNECT_DESCRIP} installation on this system appears to be broken." >&5
24429 echo "$as_me: *** The ${PRI_INBANDDISCONNECT_DESCRIP} installation on this system appears to be broken." >&6;}
24430 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24431 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24432 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&5
24433 echo "$as_me: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&6;}
24439 if test "${USE_PWLIB}" != "no"; then
24440 if test -n "${PWLIB_DIR}"; then
24441 PWLIBDIR
="${PWLIB_DIR}"
24448 ac_cpp
='$CXXCPP $CPPFLAGS'
24449 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24450 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24451 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
24453 if test "${PWLIBDIR:-unset}" != "unset" ; then
24454 as_ac_Header
=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
24455 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24456 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24457 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24458 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24459 echo $ECHO_N "(cached) $ECHO_C" >&6
24461 ac_res
=`eval echo '${'$as_ac_Header'}'`
24462 { echo "$as_me:$LINENO: result: $ac_res" >&5
24463 echo "${ECHO_T}$ac_res" >&6; }
24465 # Is the header compilable?
24466 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
24467 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
24468 cat >conftest.
$ac_ext <<_ACEOF
24471 cat confdefs.h
>>conftest.
$ac_ext
24472 cat >>conftest.
$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24474 $ac_includes_default
24475 #include <${PWLIBDIR}/version.h>
24477 rm -f conftest.
$ac_objext
24478 if { (ac_try
="$ac_compile"
24479 case "(($ac_try" in
24480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24481 *) ac_try_echo=$ac_try;;
24483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24484 (eval "$ac_compile") 2>conftest.er1
24486 grep -v '^ *+' conftest.er1 >conftest.err
24488 cat conftest.err >&5
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); } && {
24491 test -z "$ac_cxx_werror_flag" ||
24492 test ! -s conftest.err
24493 } && test -s conftest.$ac_objext; then
24494 ac_header_compiler=yes
24496 echo "$as_me: failed program was:" >&5
24497 sed 's/^/| /' conftest.$ac_ext >&5
24499 ac_header_compiler=no
24502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24504 echo "${ECHO_T}$ac_header_compiler" >&6; }
24506 # Is the header present?
24507 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
24508 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
24509 cat >conftest.$ac_ext <<_ACEOF
24512 cat confdefs.h >>conftest.$ac_ext
24513 cat >>conftest.$ac_ext <<_ACEOF
24514 /* end confdefs.h. */
24515 #include <${PWLIBDIR}/version.h>
24517 if { (ac_try="$ac_cpp conftest.$ac_ext"
24518 case "(($ac_try" in
24519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24520 *) ac_try_echo
=$ac_try;;
24522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24525 grep -v '^ *+' conftest.er1
>conftest.err
24527 cat conftest.err
>&5
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } >/dev
/null
&& {
24530 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24531 test ! -s conftest.err
24533 ac_header_preproc
=yes
24535 echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.
$ac_ext >&5
24538 ac_header_preproc
=no
24541 rm -f conftest.err conftest.
$ac_ext
24542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24543 echo "${ECHO_T}$ac_header_preproc" >&6; }
24545 # So? What about this header?
24546 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24548 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
24549 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24550 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
24551 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
24552 ac_header_preproc
=yes
24555 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
24556 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
24557 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
24558 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
24559 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
24560 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
24561 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
24562 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
24563 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
24564 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
24565 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
24566 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
24568 ## ------------------------------- ##
24569 ## Report this to www.asterisk.org ##
24570 ## ------------------------------- ##
24572 ) |
sed "s/^/$as_me: WARNING: /" >&2
24575 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24576 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24577 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24578 echo $ECHO_N "(cached) $ECHO_C" >&6
24580 eval "$as_ac_Header=\$ac_header_preproc"
24582 ac_res
=`eval echo '${'$as_ac_Header'}'`
24583 { echo "$as_me:$LINENO: result: $ac_res" >&5
24584 echo "${ECHO_T}$ac_res" >&6; }
24587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24593 if test "${HAS_PWLIB:-unset}" = "unset" ; then
24594 if test "${OPENH323DIR:-unset}" != "unset"; then
24595 as_ac_Header
=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
24596 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24597 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24598 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24599 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24600 echo $ECHO_N "(cached) $ECHO_C" >&6
24602 ac_res
=`eval echo '${'$as_ac_Header'}'`
24603 { echo "$as_me:$LINENO: result: $ac_res" >&5
24604 echo "${ECHO_T}$ac_res" >&6; }
24606 # Is the header compilable?
24607 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
24608 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
24609 cat >conftest.
$ac_ext <<_ACEOF
24612 cat confdefs.h
>>conftest.
$ac_ext
24613 cat >>conftest.
$ac_ext <<_ACEOF
24614 /* end confdefs.h. */
24615 $ac_includes_default
24616 #include <${OPENH323DIR}/../pwlib/version.h>
24618 rm -f conftest.
$ac_objext
24619 if { (ac_try
="$ac_compile"
24620 case "(($ac_try" in
24621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24622 *) ac_try_echo=$ac_try;;
24624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625 (eval "$ac_compile") 2>conftest.er1
24627 grep -v '^ *+' conftest.er1 >conftest.err
24629 cat conftest.err >&5
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); } && {
24632 test -z "$ac_cxx_werror_flag" ||
24633 test ! -s conftest.err
24634 } && test -s conftest.$ac_objext; then
24635 ac_header_compiler=yes
24637 echo "$as_me: failed program was:" >&5
24638 sed 's/^/| /' conftest.$ac_ext >&5
24640 ac_header_compiler=no
24643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24645 echo "${ECHO_T}$ac_header_compiler" >&6; }
24647 # Is the header present?
24648 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
24649 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
24650 cat >conftest.$ac_ext <<_ACEOF
24653 cat confdefs.h >>conftest.$ac_ext
24654 cat >>conftest.$ac_ext <<_ACEOF
24655 /* end confdefs.h. */
24656 #include <${OPENH323DIR}/../pwlib/version.h>
24658 if { (ac_try="$ac_cpp conftest.$ac_ext"
24659 case "(($ac_try" in
24660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24661 *) ac_try_echo
=$ac_try;;
24663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24666 grep -v '^ *+' conftest.er1
>conftest.err
24668 cat conftest.err
>&5
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); } >/dev
/null
&& {
24671 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24672 test ! -s conftest.err
24674 ac_header_preproc
=yes
24676 echo "$as_me: failed program was:" >&5
24677 sed 's/^/| /' conftest.
$ac_ext >&5
24679 ac_header_preproc
=no
24682 rm -f conftest.err conftest.
$ac_ext
24683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24684 echo "${ECHO_T}$ac_header_preproc" >&6; }
24686 # So? What about this header?
24687 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24689 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
24690 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24691 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
24692 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
24693 ac_header_preproc
=yes
24696 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
24697 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
24698 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
24699 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
24700 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
24701 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
24702 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
24703 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
24704 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
24705 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
24706 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
24707 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
24709 ## ------------------------------- ##
24710 ## Report this to www.asterisk.org ##
24711 ## ------------------------------- ##
24713 ) |
sed "s/^/$as_me: WARNING: /" >&2
24716 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24717 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24718 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24719 echo $ECHO_N "(cached) $ECHO_C" >&6
24721 eval "$as_ac_Header=\$ac_header_preproc"
24723 ac_res
=`eval echo '${'$as_ac_Header'}'`
24724 { echo "$as_me:$LINENO: result: $ac_res" >&5
24725 echo "${ECHO_T}$ac_res" >&6; }
24728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24734 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24735 PWLIBDIR
="${OPENH323DIR}/../pwlib"
24737 as_ac_Header
=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
24738 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24739 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
24740 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
24741 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24742 echo $ECHO_N "(cached) $ECHO_C" >&6
24744 ac_res
=`eval echo '${'$as_ac_Header'}'`
24745 { echo "$as_me:$LINENO: result: $ac_res" >&5
24746 echo "${ECHO_T}$ac_res" >&6; }
24748 # Is the header compilable?
24749 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
24750 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
24751 cat >conftest.
$ac_ext <<_ACEOF
24754 cat confdefs.h
>>conftest.
$ac_ext
24755 cat >>conftest.
$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24757 $ac_includes_default
24758 #include <${HOME}/pwlib/include/ptlib.h>
24760 rm -f conftest.
$ac_objext
24761 if { (ac_try
="$ac_compile"
24762 case "(($ac_try" in
24763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24764 *) ac_try_echo=$ac_try;;
24766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24767 (eval "$ac_compile") 2>conftest.er1
24769 grep -v '^ *+' conftest.er1 >conftest.err
24771 cat conftest.err >&5
24772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773 (exit $ac_status); } && {
24774 test -z "$ac_cxx_werror_flag" ||
24775 test ! -s conftest.err
24776 } && test -s conftest.$ac_objext; then
24777 ac_header_compiler=yes
24779 echo "$as_me: failed program was:" >&5
24780 sed 's/^/| /' conftest.$ac_ext >&5
24782 ac_header_compiler=no
24785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24787 echo "${ECHO_T}$ac_header_compiler" >&6; }
24789 # Is the header present?
24790 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
24791 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
24792 cat >conftest.$ac_ext <<_ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h. */
24798 #include <${HOME}/pwlib/include/ptlib.h>
24800 if { (ac_try="$ac_cpp conftest.$ac_ext"
24801 case "(($ac_try" in
24802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24803 *) ac_try_echo
=$ac_try;;
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24808 grep -v '^ *+' conftest.er1
>conftest.err
24810 cat conftest.err
>&5
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); } >/dev
/null
&& {
24813 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24814 test ! -s conftest.err
24816 ac_header_preproc
=yes
24818 echo "$as_me: failed program was:" >&5
24819 sed 's/^/| /' conftest.
$ac_ext >&5
24821 ac_header_preproc
=no
24824 rm -f conftest.err conftest.
$ac_ext
24825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24826 echo "${ECHO_T}$ac_header_preproc" >&6; }
24828 # So? What about this header?
24829 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24831 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24832 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24833 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
24834 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
24835 ac_header_preproc
=yes
24838 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
24839 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
24840 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
24841 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
24842 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
24843 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
24844 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
24845 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24846 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
24847 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
24848 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
24849 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
24851 ## ------------------------------- ##
24852 ## Report this to www.asterisk.org ##
24853 ## ------------------------------- ##
24855 ) |
sed "s/^/$as_me: WARNING: /" >&2
24858 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
24859 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
24860 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24863 eval "$as_ac_Header=\$ac_header_preproc"
24865 ac_res
=`eval echo '${'$as_ac_Header'}'`
24866 { echo "$as_me:$LINENO: result: $ac_res" >&5
24867 echo "${ECHO_T}$ac_res" >&6; }
24870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24875 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24876 PWLIBDIR
="${HOME}/pwlib"
24878 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
24879 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
24880 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
24881 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24884 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
24885 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
24887 # Is the header compilable?
24888 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
24889 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
24890 cat >conftest.
$ac_ext <<_ACEOF
24893 cat confdefs.h
>>conftest.
$ac_ext
24894 cat >>conftest.
$ac_ext <<_ACEOF
24895 /* end confdefs.h. */
24896 $ac_includes_default
24897 #include </usr/local/include/ptlib.h>
24899 rm -f conftest.
$ac_objext
24900 if { (ac_try
="$ac_compile"
24901 case "(($ac_try" in
24902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24903 *) ac_try_echo=$ac_try;;
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906 (eval "$ac_compile") 2>conftest.er1
24908 grep -v '^ *+' conftest.er1 >conftest.err
24910 cat conftest.err >&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } && {
24913 test -z "$ac_cxx_werror_flag" ||
24914 test ! -s conftest.err
24915 } && test -s conftest.$ac_objext; then
24916 ac_header_compiler=yes
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24921 ac_header_compiler=no
24924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24926 echo "${ECHO_T}$ac_header_compiler" >&6; }
24928 # Is the header present?
24929 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
24930 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
24931 cat >conftest.$ac_ext <<_ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24937 #include </usr/local/include/ptlib.h>
24939 if { (ac_try="$ac_cpp conftest.$ac_ext"
24940 case "(($ac_try" in
24941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24942 *) ac_try_echo
=$ac_try;;
24944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24947 grep -v '^ *+' conftest.er1
>conftest.err
24949 cat conftest.err
>&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); } >/dev
/null
&& {
24952 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24953 test ! -s conftest.err
24955 ac_header_preproc
=yes
24957 echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.
$ac_ext >&5
24960 ac_header_preproc
=no
24963 rm -f conftest.err conftest.
$ac_ext
24964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24965 echo "${ECHO_T}$ac_header_preproc" >&6; }
24967 # So? What about this header?
24968 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24970 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24971 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24972 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
24973 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
24974 ac_header_preproc
=yes
24977 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
24978 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
24979 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
24980 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
24981 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
24982 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
24983 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
24984 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24985 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
24986 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
24987 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
24988 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
24990 ## ------------------------------- ##
24991 ## Report this to www.asterisk.org ##
24992 ## ------------------------------- ##
24994 ) |
sed "s/^/$as_me: WARNING: /" >&2
24997 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
24998 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
24999 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25000 echo $ECHO_N "(cached) $ECHO_C" >&6
25002 ac_cv_header__usr_local_include_ptlib_h
=$ac_header_preproc
25004 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
25005 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
25008 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
25013 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25014 # Extract the first word of "ptlib-config", so it can be a program name with args.
25015 set dummy ptlib-config
; ac_word
=$2
25016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25018 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25019 echo $ECHO_N "(cached) $ECHO_C" >&6
25021 case $PTLIB_CONFIG in
25023 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
25026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25027 for as_dir
in /usr
/local
/bin
25030 test -z "$as_dir" && as_dir
=.
25031 for ac_exec_ext
in '' $ac_executable_extensions; do
25032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25033 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25044 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
25045 if test -n "$PTLIB_CONFIG"; then
25046 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25047 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25049 { echo "$as_me:$LINENO: result: no" >&5
25050 echo "${ECHO_T}no" >&6; }
25054 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
25055 # Extract the first word of "ptlib-config", so it can be a program name with args.
25056 set dummy ptlib-config
; ac_word
=$2
25057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25059 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25060 echo $ECHO_N "(cached) $ECHO_C" >&6
25062 case $PTLIB_CONFIG in
25064 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
25067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25068 for as_dir
in /usr
/local
/share
/pwlib
/make
25071 test -z "$as_dir" && as_dir
=.
25072 for ac_exec_ext
in '' $ac_executable_extensions; do
25073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25074 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25085 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
25086 if test -n "$PTLIB_CONFIG"; then
25087 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25088 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25090 { echo "$as_me:$LINENO: result: no" >&5
25091 echo "${ECHO_T}no" >&6; }
25096 PWLIB_INCDIR
="/usr/local/include"
25097 PWLIB_LIBDIR
=`${PTLIB_CONFIG} --pwlibdir`
25098 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25099 if test "x$LIB64" != "x"; then
25100 PWLIB_LIBDIR
="/usr/local/lib64"
25102 PWLIB_LIBDIR
="/usr/local/lib"
25105 PWLIB_LIB
=`${PTLIB_CONFIG} --ldflags --libs`
25106 PWLIB_LIB
="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25108 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25109 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
25110 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
25111 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25112 echo $ECHO_N "(cached) $ECHO_C" >&6
25114 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
25115 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25117 # Is the header compilable?
25118 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
25119 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
25120 cat >conftest.
$ac_ext <<_ACEOF
25123 cat confdefs.h
>>conftest.
$ac_ext
25124 cat >>conftest.
$ac_ext <<_ACEOF
25125 /* end confdefs.h. */
25126 $ac_includes_default
25127 #include </usr/include/ptlib.h>
25129 rm -f conftest.
$ac_objext
25130 if { (ac_try
="$ac_compile"
25131 case "(($ac_try" in
25132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25133 *) ac_try_echo=$ac_try;;
25135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25136 (eval "$ac_compile") 2>conftest.er1
25138 grep -v '^ *+' conftest.er1 >conftest.err
25140 cat conftest.err >&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } && {
25143 test -z "$ac_cxx_werror_flag" ||
25144 test ! -s conftest.err
25145 } && test -s conftest.$ac_objext; then
25146 ac_header_compiler=yes
25148 echo "$as_me: failed program was:" >&5
25149 sed 's/^/| /' conftest.$ac_ext >&5
25151 ac_header_compiler=no
25154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25156 echo "${ECHO_T}$ac_header_compiler" >&6; }
25158 # Is the header present?
25159 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
25160 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
25161 cat >conftest.$ac_ext <<_ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h. */
25167 #include </usr/include/ptlib.h>
25169 if { (ac_try="$ac_cpp conftest.$ac_ext"
25170 case "(($ac_try" in
25171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25172 *) ac_try_echo
=$ac_try;;
25174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25177 grep -v '^ *+' conftest.er1
>conftest.err
25179 cat conftest.err
>&5
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } >/dev
/null
&& {
25182 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25183 test ! -s conftest.err
25185 ac_header_preproc
=yes
25187 echo "$as_me: failed program was:" >&5
25188 sed 's/^/| /' conftest.
$ac_ext >&5
25190 ac_header_preproc
=no
25193 rm -f conftest.err conftest.
$ac_ext
25194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25195 echo "${ECHO_T}$ac_header_preproc" >&6; }
25197 # So? What about this header?
25198 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25200 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25201 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25202 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
25203 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
25204 ac_header_preproc
=yes
25207 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
25208 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
25209 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
25210 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
25211 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
25212 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
25213 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
25214 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25215 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
25216 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
25217 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
25218 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
25220 ## ------------------------------- ##
25221 ## Report this to www.asterisk.org ##
25222 ## ------------------------------- ##
25224 ) |
sed "s/^/$as_me: WARNING: /" >&2
25227 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
25228 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
25229 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25230 echo $ECHO_N "(cached) $ECHO_C" >&6
25232 ac_cv_header__usr_include_ptlib_h
=$ac_header_preproc
25234 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
25235 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25238 if test $ac_cv_header__usr_include_ptlib_h = yes; then
25243 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25244 # Extract the first word of "ptlib-config", so it can be a program name with args.
25245 set dummy ptlib-config
; ac_word
=$2
25246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25248 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25249 echo $ECHO_N "(cached) $ECHO_C" >&6
25251 case $PTLIB_CONFIG in
25253 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
25256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25257 for as_dir
in /usr
/share
/pwlib
/make
25260 test -z "$as_dir" && as_dir
=.
25261 for ac_exec_ext
in '' $ac_executable_extensions; do
25262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25263 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
25264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25274 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
25275 if test -n "$PTLIB_CONFIG"; then
25276 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25277 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25279 { echo "$as_me:$LINENO: result: no" >&5
25280 echo "${ECHO_T}no" >&6; }
25284 PWLIB_INCDIR
="/usr/include"
25285 PWLIB_LIBDIR
=`${PTLIB_CONFIG} --pwlibdir`
25286 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25287 if test "x$LIB64" != "x"; then
25288 PWLIB_LIBDIR
="/usr/lib64"
25290 PWLIB_LIBDIR
="/usr/lib"
25293 PWLIB_LIB
=`${PTLIB_CONFIG} --ldflags --libs`
25294 PWLIB_LIB
="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25301 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
25302 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
25306 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25307 if test "${PWLIBDIR:-unset}" = "unset" ; then
25308 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
25309 PWLIBDIR
=`$PTLIB_CONFIG --prefix`
25311 echo "Cannot find ptlib-config - please install and try again"
25316 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
25317 PWLIBDIR
="/usr/share/pwlib"
25318 PWLIB_INCDIR
="/usr/include"
25319 if test "x$LIB64" != "x"; then
25320 PWLIB_LIBDIR
="/usr/lib64"
25322 PWLIB_LIBDIR
="/usr/lib"
25325 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
25326 PWLIBDIR
="/usr/local/share/pwlib"
25327 PWLIB_INCDIR
="/usr/local/include"
25328 if test "x$LIB64" != "x"; then
25329 PWLIB_LIBDIR
="/usr/local/lib64"
25331 PWLIB_LIBDIR
="/usr/local/lib"
25335 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
25336 PWLIB_INCDIR
="${PWLIBDIR}/include"
25338 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25339 PWLIB_LIBDIR
="${PWLIBDIR}/lib"
25347 ac_cpp
='$CPP $CPPFLAGS'
25348 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25349 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25350 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
25354 if test "${HAS_PWLIB:-unset}" != "unset"; then
25355 PWLIB_VERSION
=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
25356 PWLIB_MAJOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f1 -d.`
25357 PWLIB_MINOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f2 -d.`
25358 PWLIB_BUILD_NUMBER
=`echo ${PWLIB_VERSION} | cut -f3 -d.`
25359 let PWLIB_VER
=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
25360 let PWLIB_REQ
=1*10000+9*100+2
25362 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
25363 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
25364 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
25365 { echo "$as_me:$LINENO: result: no" >&5
25366 echo "${ECHO_T}no" >&6; }
25369 { echo "$as_me:$LINENO: result: yes" >&5
25370 echo "${ECHO_T}yes" >&6; }
25375 if test "${HAS_PWLIB:-unset}" != "unset"; then
25379 linux
*) PWLIB_OSTYPE
=linux
;
25381 freebsd
* ) PWLIB_OSTYPE
=FreeBSD
;
25383 openbsd
* ) PWLIB_OSTYPE
=OpenBSD
;
25384 ENDLDLIBS
="-lossaudio" ;
25386 netbsd
* ) PWLIB_OSTYPE
=NetBSD
;
25387 ENDLDLIBS
="-lossaudio" ;
25389 solaris
* | sunos
* ) PWLIB_OSTYPE
=solaris
;
25391 darwin
* ) PWLIB_OSTYPE
=Darwin
;
25393 beos
*) PWLIB_OSTYPE
=beos
;
25394 STDCCFLAGS
="$STDCCFLAGS -D__BEOS__"
25396 cygwin
*) PWLIB_OSTYPE
=cygwin
;
25398 mingw
*) PWLIB_OSTYPE
=mingw
;
25399 STDCCFLAGS
="$STDCCFLAGS -mms-bitfields" ;
25400 ENDLDLIBS
="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
25402 * ) PWLIB_OSTYPE
="$host_os" ;
25403 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
25404 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
25409 case "$host_cpu" in
25410 x86 | i686 | i586 | i486 | i386
) PWLIB_MACHTYPE
=x86
25413 x86_64
) PWLIB_MACHTYPE
=x86_64
;
25418 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7
) PWLIB_MACHTYPE
=alpha
;
25422 sparc
) PWLIB_MACHTYPE
=sparc
;
25425 powerpc
) PWLIB_MACHTYPE
=ppc
;
25428 ppc
) PWLIB_MACHTYPE
=ppc
;
25431 powerpc64
) PWLIB_MACHTYPE
=ppc64
;
25436 ppc64
) PWLIB_MACHTYPE
=ppc64
;
25441 ia64
) PWLIB_MACHTYPE
=ia64
;
25445 s390x
) PWLIB_MACHTYPE
=s390x
;
25450 s390
) PWLIB_MACHTYPE
=s390
;
25453 * ) PWLIB_MACHTYPE
="$host_cpu";
25454 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
25455 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
25458 PWLIB_PLATFORM
="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
25463 PLATFORM_PWLIB
="pt_${PWLIB_PLATFORM}_r"
25466 if test "${HAS_PWLIB:-unset}" != "unset"; then
25467 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
25468 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
25470 saved_cppflags
="${CPPFLAGS}"
25471 saved_libs
="${LIBS}"
25472 if test "${PWLIB_LIB:-unset}" != "unset"; then
25473 LIBS
="${LIBS} ${PWLIB_LIB} "
25475 LIBS
="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
25477 CPPFLAGS
="${CPPFLAGS} -I${PWLIB_INCDIR} "
25480 ac_cpp
='$CXXCPP $CPPFLAGS'
25481 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25482 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25483 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
25486 cat >conftest.
$ac_ext <<_ACEOF
25489 cat confdefs.h
>>conftest.
$ac_ext
25490 cat >>conftest.
$ac_ext <<_ACEOF
25491 /* end confdefs.h. */
25496 BOOL q = PTime::IsDaylightSavings();
25501 rm -f conftest.
$ac_objext conftest
$ac_exeext
25502 if { (ac_try
="$ac_link"
25503 case "(($ac_try" in
25504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25505 *) ac_try_echo=$ac_try;;
25507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25508 (eval "$ac_link") 2>conftest.er1
25510 grep -v '^ *+' conftest.er1 >conftest.err
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } && {
25515 test -z "$ac_cxx_werror_flag" ||
25516 test ! -s conftest.err
25517 } && test -s conftest$ac_exeext &&
25518 $as_test_x conftest$ac_exeext; then
25519 { echo "$as_me:$LINENO: result: yes" >&5
25520 echo "${ECHO_T}yes" >&6; }
25521 ac_cv_lib_PWLIB="yes"
25524 echo "$as_me: failed program was:" >&5
25525 sed 's/^/| /' conftest.$ac_ext >&5
25527 { echo "$as_me:$LINENO: result: no" >&5
25528 echo "${ECHO_T}no" >&6; }
25529 ac_cv_lib_PWLIB="no"
25534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25535 conftest$ac_exeext conftest.$ac_ext
25538 ac_cpp='$CPP $CPPFLAGS'
25539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25544 LIBS="${saved_libs}"
25545 CPPFLAGS="${saved_cppflags}"
25547 if test "${ac_cv_lib_PWLIB}" = "yes"; then
25548 if test "${PWLIB_LIB:-undef}" = "undef"; then
25549 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
25550 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
25552 PWLIB_LIB="-l${PLATFORM_PWLIB}"
25555 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
25556 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
25560 cat >>confdefs.h <<\_ACEOF
25561 #define HAVE_PWLIB 1
25570 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
25571 { echo "$as_me:$LINENO: ***" >&5
25572 echo "$as_me: ***" >&6;}
25573 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
25574 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
25575 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25576 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25577 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
25578 echo "$as_me: *** including --without-pwlib" >&6;}
25582 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
25583 if test -n "${OPENH323_DIR}"; then
25584 OPENH323DIR="${OPENH323_DIR}"
25590 ac_cpp='$CXXCPP $CPPFLAGS'
25591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25595 if test "${OPENH323DIR:-unset}" != "unset" ; then
25596 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" |
$as_tr_sh`
25597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25598 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
25599 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
25600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25601 echo $ECHO_N "(cached) $ECHO_C" >&6
25603 ac_res=`eval echo '${'$as_ac_Header'}'`
25604 { echo "$as_me:$LINENO: result: $ac_res" >&5
25605 echo "${ECHO_T}$ac_res" >&6; }
25607 # Is the header compilable?
25608 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
25609 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
25610 cat >conftest.$ac_ext <<_ACEOF
25613 cat confdefs.h >>conftest.$ac_ext
25614 cat >>conftest.$ac_ext <<_ACEOF
25615 /* end confdefs.h. */
25616 $ac_includes_default
25617 #include <${OPENH323DIR}/version.h>
25619 rm -f conftest.$ac_objext
25620 if { (ac_try="$ac_compile"
25621 case "(($ac_try" in
25622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25623 *) ac_try_echo
=$ac_try;;
25625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25626 (eval "$ac_compile") 2>conftest.er1
25628 grep -v '^ *+' conftest.er1
>conftest.err
25630 cat conftest.err
>&5
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); } && {
25633 test -z "$ac_cxx_werror_flag" ||
25634 test ! -s conftest.err
25635 } && test -s conftest.
$ac_objext; then
25636 ac_header_compiler
=yes
25638 echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.
$ac_ext >&5
25641 ac_header_compiler
=no
25644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25646 echo "${ECHO_T}$ac_header_compiler" >&6; }
25648 # Is the header present?
25649 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
25650 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
25651 cat >conftest.
$ac_ext <<_ACEOF
25654 cat confdefs.h
>>conftest.
$ac_ext
25655 cat >>conftest.
$ac_ext <<_ACEOF
25656 /* end confdefs.h. */
25657 #include <${OPENH323DIR}/version.h>
25659 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25660 case "(($ac_try" in
25661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25662 *) ac_try_echo=$ac_try;;
25664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25667 grep -v '^ *+' conftest.er1 >conftest.err
25669 cat conftest.err >&5
25670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); } >/dev/null && {
25672 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25673 test ! -s conftest.err
25675 ac_header_preproc=yes
25677 echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25680 ac_header_preproc=no
25683 rm -f conftest.err conftest.$ac_ext
25684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25685 echo "${ECHO_T}$ac_header_preproc" >&6; }
25687 # So? What about this header?
25688 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25690 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
25691 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25692 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
25693 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
25694 ac_header_preproc=yes
25697 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
25698 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
25699 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
25700 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
25701 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
25702 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
25703 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
25704 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
25705 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
25706 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
25707 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
25708 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
25710 ## ------------------------------- ##
25711 ## Report this to www.asterisk.org ##
25712 ## ------------------------------- ##
25714 ) | sed "s/^/$as_me: WARNING: /" >&2
25717 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
25718 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
25719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25720 echo $ECHO_N "(cached) $ECHO_C" >&6
25722 eval "$as_ac_Header=\$ac_header_preproc"
25724 ac_res=`eval echo '${'$as_ac_Header'}'`
25725 { echo "$as_me:$LINENO: result: $ac_res" >&5
25726 echo "${ECHO_T}$ac_res" >&6; }
25729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25735 if test "${HAS_OPENH323:-unset}" = "unset" ; then
25736 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" |
$as_tr_sh`
25737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25738 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
25739 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
25740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25741 echo $ECHO_N "(cached) $ECHO_C" >&6
25743 ac_res=`eval echo '${'$as_ac_Header'}'`
25744 { echo "$as_me:$LINENO: result: $ac_res" >&5
25745 echo "${ECHO_T}$ac_res" >&6; }
25747 # Is the header compilable?
25748 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
25749 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
25750 cat >conftest.$ac_ext <<_ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h. */
25756 $ac_includes_default
25757 #include <${PWLIBDIR}/../openh323/version.h>
25759 rm -f conftest.$ac_objext
25760 if { (ac_try="$ac_compile"
25761 case "(($ac_try" in
25762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25763 *) ac_try_echo
=$ac_try;;
25765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25766 (eval "$ac_compile") 2>conftest.er1
25768 grep -v '^ *+' conftest.er1
>conftest.err
25770 cat conftest.err
>&5
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); } && {
25773 test -z "$ac_cxx_werror_flag" ||
25774 test ! -s conftest.err
25775 } && test -s conftest.
$ac_objext; then
25776 ac_header_compiler
=yes
25778 echo "$as_me: failed program was:" >&5
25779 sed 's/^/| /' conftest.
$ac_ext >&5
25781 ac_header_compiler
=no
25784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25786 echo "${ECHO_T}$ac_header_compiler" >&6; }
25788 # Is the header present?
25789 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
25790 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
25791 cat >conftest.
$ac_ext <<_ACEOF
25794 cat confdefs.h
>>conftest.
$ac_ext
25795 cat >>conftest.
$ac_ext <<_ACEOF
25796 /* end confdefs.h. */
25797 #include <${PWLIBDIR}/../openh323/version.h>
25799 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25800 case "(($ac_try" in
25801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25802 *) ac_try_echo=$ac_try;;
25804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25807 grep -v '^ *+' conftest.er1 >conftest.err
25809 cat conftest.err >&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } >/dev/null && {
25812 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25813 test ! -s conftest.err
25815 ac_header_preproc=yes
25817 echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25820 ac_header_preproc=no
25823 rm -f conftest.err conftest.$ac_ext
25824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25825 echo "${ECHO_T}$ac_header_preproc" >&6; }
25827 # So? What about this header?
25828 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25830 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
25831 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25832 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
25833 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
25834 ac_header_preproc=yes
25837 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
25838 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
25839 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
25840 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
25841 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
25842 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
25843 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
25844 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
25845 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
25846 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
25847 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
25848 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
25850 ## ------------------------------- ##
25851 ## Report this to www.asterisk.org ##
25852 ## ------------------------------- ##
25854 ) | sed "s/^/$as_me: WARNING: /" >&2
25857 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
25858 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
25859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25860 echo $ECHO_N "(cached) $ECHO_C" >&6
25862 eval "$as_ac_Header=\$ac_header_preproc"
25864 ac_res=`eval echo '${'$as_ac_Header'}'`
25865 { echo "$as_me:$LINENO: result: $ac_res" >&5
25866 echo "${ECHO_T}$ac_res" >&6; }
25869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25870 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
25874 if test "${HAS_OPENH323:-unset}" != "unset" ; then
25875 OPENH323DIR="${PWLIBDIR}/../openh323"
25876 saved_cppflags="${CPPFLAGS}"
25877 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
25878 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" |
$as_tr_sh`
25879 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
25880 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
25881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25882 echo $ECHO_N "(cached) $ECHO_C" >&6
25884 cat >conftest.$ac_ext <<_ACEOF
25887 cat confdefs.h >>conftest.$ac_ext
25888 cat >>conftest.$ac_ext <<_ACEOF
25889 /* end confdefs.h. */
25892 #include <${OPENH323DIR}/include/h323.h>
25894 rm -f conftest.$ac_objext
25895 if { (ac_try="$ac_compile"
25896 case "(($ac_try" in
25897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25898 *) ac_try_echo
=$ac_try;;
25900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25901 (eval "$ac_compile") 2>conftest.er1
25903 grep -v '^ *+' conftest.er1
>conftest.err
25905 cat conftest.err
>&5
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); } && {
25908 test -z "$ac_cxx_werror_flag" ||
25909 test ! -s conftest.err
25910 } && test -s conftest.
$ac_objext; then
25911 eval "$as_ac_Header=yes"
25913 echo "$as_me: failed program was:" >&5
25914 sed 's/^/| /' conftest.
$ac_ext >&5
25916 eval "$as_ac_Header=no"
25919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25921 ac_res
=`eval echo '${'$as_ac_Header'}'`
25922 { echo "$as_me:$LINENO: result: $ac_res" >&5
25923 echo "${ECHO_T}$ac_res" >&6; }
25924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25927 OPENH323_INCDIR
="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR
="${PWLIB_LIBDIR}"
25931 CPPFLAGS
="${saved_cppflags}"
25933 saved_cppflags
="${CPPFLAGS}"
25934 CPPFLAGS
="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
25935 as_ac_Header
=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
25936 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25937 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
25938 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
25939 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25940 echo $ECHO_N "(cached) $ECHO_C" >&6
25942 ac_res
=`eval echo '${'$as_ac_Header'}'`
25943 { echo "$as_me:$LINENO: result: $ac_res" >&5
25944 echo "${ECHO_T}$ac_res" >&6; }
25946 # Is the header compilable?
25947 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
25948 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
25949 cat >conftest.
$ac_ext <<_ACEOF
25952 cat confdefs.h
>>conftest.
$ac_ext
25953 cat >>conftest.
$ac_ext <<_ACEOF
25954 /* end confdefs.h. */
25955 $ac_includes_default
25956 #include <${HOME}/openh323/include/h323.h>
25958 rm -f conftest.
$ac_objext
25959 if { (ac_try
="$ac_compile"
25960 case "(($ac_try" in
25961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25962 *) ac_try_echo=$ac_try;;
25964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25965 (eval "$ac_compile") 2>conftest.er1
25967 grep -v '^ *+' conftest.er1 >conftest.err
25969 cat conftest.err >&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } && {
25972 test -z "$ac_cxx_werror_flag" ||
25973 test ! -s conftest.err
25974 } && test -s conftest.$ac_objext; then
25975 ac_header_compiler=yes
25977 echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25980 ac_header_compiler=no
25983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25985 echo "${ECHO_T}$ac_header_compiler" >&6; }
25987 # Is the header present?
25988 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
25989 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
25990 cat >conftest.$ac_ext <<_ACEOF
25993 cat confdefs.h >>conftest.$ac_ext
25994 cat >>conftest.$ac_ext <<_ACEOF
25995 /* end confdefs.h. */
25996 #include <${HOME}/openh323/include/h323.h>
25998 if { (ac_try="$ac_cpp conftest.$ac_ext"
25999 case "(($ac_try" in
26000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26001 *) ac_try_echo
=$ac_try;;
26003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26006 grep -v '^ *+' conftest.er1
>conftest.err
26008 cat conftest.err
>&5
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } >/dev
/null
&& {
26011 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26012 test ! -s conftest.err
26014 ac_header_preproc
=yes
26016 echo "$as_me: failed program was:" >&5
26017 sed 's/^/| /' conftest.
$ac_ext >&5
26019 ac_header_preproc
=no
26022 rm -f conftest.err conftest.
$ac_ext
26023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26024 echo "${ECHO_T}$ac_header_preproc" >&6; }
26026 # So? What about this header?
26027 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26029 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26030 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26031 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
26032 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
26033 ac_header_preproc
=yes
26036 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
26037 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
26038 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
26039 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
26040 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
26041 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
26042 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26043 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26044 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
26045 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
26046 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
26047 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
26049 ## ------------------------------- ##
26050 ## Report this to www.asterisk.org ##
26051 ## ------------------------------- ##
26053 ) |
sed "s/^/$as_me: WARNING: /" >&2
26056 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
26057 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
26058 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26059 echo $ECHO_N "(cached) $ECHO_C" >&6
26061 eval "$as_ac_Header=\$ac_header_preproc"
26063 ac_res
=`eval echo '${'$as_ac_Header'}'`
26064 { echo "$as_me:$LINENO: result: $ac_res" >&5
26065 echo "${ECHO_T}$ac_res" >&6; }
26068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26073 CPPFLAGS
="${saved_cppflags}"
26074 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26075 OPENH323DIR
="${HOME}/openh323"
26077 saved_cppflags
="${CPPFLAGS}"
26078 CPPFLAGS
="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
26079 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26080 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26081 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26082 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26083 echo $ECHO_N "(cached) $ECHO_C" >&6
26085 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26086 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26088 # Is the header compilable?
26089 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
26090 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
26091 cat >conftest.
$ac_ext <<_ACEOF
26094 cat confdefs.h
>>conftest.
$ac_ext
26095 cat >>conftest.
$ac_ext <<_ACEOF
26096 /* end confdefs.h. */
26097 $ac_includes_default
26098 #include </usr/local/include/openh323/h323.h>
26100 rm -f conftest.
$ac_objext
26101 if { (ac_try
="$ac_compile"
26102 case "(($ac_try" in
26103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26104 *) ac_try_echo=$ac_try;;
26106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26107 (eval "$ac_compile") 2>conftest.er1
26109 grep -v '^ *+' conftest.er1 >conftest.err
26111 cat conftest.err >&5
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); } && {
26114 test -z "$ac_cxx_werror_flag" ||
26115 test ! -s conftest.err
26116 } && test -s conftest.$ac_objext; then
26117 ac_header_compiler=yes
26119 echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.$ac_ext >&5
26122 ac_header_compiler=no
26125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26127 echo "${ECHO_T}$ac_header_compiler" >&6; }
26129 # Is the header present?
26130 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
26131 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
26132 cat >conftest.$ac_ext <<_ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h. */
26138 #include </usr/local/include/openh323/h323.h>
26140 if { (ac_try="$ac_cpp conftest.$ac_ext"
26141 case "(($ac_try" in
26142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26143 *) ac_try_echo
=$ac_try;;
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26148 grep -v '^ *+' conftest.er1
>conftest.err
26150 cat conftest.err
>&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); } >/dev
/null
&& {
26153 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26154 test ! -s conftest.err
26156 ac_header_preproc
=yes
26158 echo "$as_me: failed program was:" >&5
26159 sed 's/^/| /' conftest.
$ac_ext >&5
26161 ac_header_preproc
=no
26164 rm -f conftest.err conftest.
$ac_ext
26165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26166 echo "${ECHO_T}$ac_header_preproc" >&6; }
26168 # So? What about this header?
26169 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26171 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26172 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26173 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
26174 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
26175 ac_header_preproc
=yes
26178 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
26179 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
26180 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
26181 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
26182 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
26183 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
26184 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26185 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26186 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
26187 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
26188 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
26189 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
26191 ## ------------------------------- ##
26192 ## Report this to www.asterisk.org ##
26193 ## ------------------------------- ##
26195 ) |
sed "s/^/$as_me: WARNING: /" >&2
26198 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26199 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26200 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26201 echo $ECHO_N "(cached) $ECHO_C" >&6
26203 ac_cv_header__usr_local_include_openh323_h323_h
=$ac_header_preproc
26205 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26206 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26209 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
26214 CPPFLAGS
="${saved_cppflags}"
26215 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26216 OPENH323DIR
="/usr/local/share/openh323"
26217 OPENH323_INCDIR
="/usr/local/include/openh323"
26218 if test "x$LIB64" != "x"; then
26219 OPENH323_LIBDIR
="/usr/local/lib64"
26221 OPENH323_LIBDIR
="/usr/local/lib"
26224 saved_cppflags
="${CPPFLAGS}"
26225 CPPFLAGS
="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
26226 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
26227 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
26228 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
26229 echo $ECHO_N "(cached) $ECHO_C" >&6
26231 cat >conftest.
$ac_ext <<_ACEOF
26234 cat confdefs.h
>>conftest.
$ac_ext
26235 cat >>conftest.
$ac_ext <<_ACEOF
26236 /* end confdefs.h. */
26239 #include </usr/include/openh323/h323.h>
26241 rm -f conftest.
$ac_objext
26242 if { (ac_try
="$ac_compile"
26243 case "(($ac_try" in
26244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26245 *) ac_try_echo=$ac_try;;
26247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26248 (eval "$ac_compile") 2>conftest.er1
26250 grep -v '^ *+' conftest.er1 >conftest.err
26252 cat conftest.err >&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } && {
26255 test -z "$ac_cxx_werror_flag" ||
26256 test ! -s conftest.err
26257 } && test -s conftest.$ac_objext; then
26258 ac_cv_header__usr_include_openh323_h323_h=yes
26260 echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26263 ac_cv_header__usr_include_openh323_h323_h=no
26266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26268 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
26269 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
26270 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
26275 CPPFLAGS="${saved_cppflags}"
26276 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26277 OPENH323DIR="/usr/share/openh323"
26278 OPENH323_INCDIR="/usr/include/openh323"
26279 if test "x$LIB64" != "x"; then
26280 OPENH323_LIBDIR="/usr/lib64"
26282 OPENH323_LIBDIR="/usr/lib"
26290 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26291 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
26292 OPENH323_INCDIR="${OPENH323DIR}/include"
26294 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
26295 OPENH323_LIBDIR="${OPENH323DIR}/lib"
26298 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
26299 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
26300 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
26307 ac_cpp='$CPP $CPPFLAGS'
26308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26314 if test "${HAS_OPENH323:-unset}" != "unset"; then
26315 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut
-f2 -d ' ' |
sed -e 's/"//g'`
26316 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f1 -d.
`
26317 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f2 -d.
`
26318 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut
-f3 -d.
`
26319 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
26320 let OPENH323_REQ=1*10000+17*100+3
26322 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
26323 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
26324 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
26325 { echo "$as_me:$LINENO: result: no" >&5
26326 echo "${ECHO_T}no" >&6; }
26329 { echo "$as_me:$LINENO: result: yes" >&5
26330 echo "${ECHO_T}yes" >&6; }
26335 if test "${HAS_OPENH323:-unset}" != "unset"; then
26336 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
26337 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
26339 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
26340 for pfx in $prefixes; do
26341 files=`ls -l ${OPENH323_LIBDIR}/lib
${pfx}*.so
* 2>/dev
/null
`
26343 if test -n "$files"; then
26344 for f in $files; do
26345 if test -f $f -a ! -L $f; then
26346 libfile=`basename $f`
26351 if test -n "$libfile"; then
26352 OPENH323_PREFIX=$pfx
26356 if test "${libfile:-unset}" != "unset"; then
26357 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
26359 case "${OPENH323_SUFFIX}" in
26361 OPENH323_BUILD="notrace";;
26363 OPENH323_BUILD="opt";;
26365 OPENH323_BUILD="debug";;
26367 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
26368 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
26369 if test "x$notrace" = "x"; then
26372 if test "$notrace" -ne 0; then
26373 OPENH323_BUILD="notrace"
26375 OPENH323_BUILD="opt"
26377 OPENH323_LIB="-l${OPENH323_PREFIX}"
26379 OPENH323_BUILD="notrace"
26383 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
26384 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
26390 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
26392 if test "${HAS_OPENH323:-unset}" != "unset"; then
26393 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
26394 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
26396 saved_cppflags="${CPPFLAGS}"
26397 saved_libs="${LIBS}"
26398 if test "${OPENH323_LIB:-unset}" != "unset"; then
26399 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
26401 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
26403 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
26406 ac_cpp='$CXXCPP $CPPFLAGS'
26407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26412 cat >conftest.$ac_ext <<_ACEOF
26415 cat confdefs.h >>conftest.$ac_ext
26416 cat >>conftest.$ac_ext <<_ACEOF
26417 /* end confdefs.h. */
26420 #include "h323ep.h"
26424 H323EndPoint ep = H323EndPoint();
26429 rm -f conftest.$ac_objext conftest$ac_exeext
26430 if { (ac_try="$ac_link"
26431 case "(($ac_try" in
26432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26433 *) ac_try_echo
=$ac_try;;
26435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26436 (eval "$ac_link") 2>conftest.er1
26438 grep -v '^ *+' conftest.er1
>conftest.err
26440 cat conftest.err
>&5
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); } && {
26443 test -z "$ac_cxx_werror_flag" ||
26444 test ! -s conftest.err
26445 } && test -s conftest
$ac_exeext &&
26446 $as_test_x conftest
$ac_exeext; then
26447 { echo "$as_me:$LINENO: result: yes" >&5
26448 echo "${ECHO_T}yes" >&6; }
26449 ac_cv_lib_OPENH323
="yes"
26452 echo "$as_me: failed program was:" >&5
26453 sed 's/^/| /' conftest.
$ac_ext >&5
26455 { echo "$as_me:$LINENO: result: no" >&5
26456 echo "${ECHO_T}no" >&6; }
26457 ac_cv_lib_OPENH323
="no"
26462 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26463 conftest
$ac_exeext conftest.
$ac_ext
26466 ac_cpp
='$CPP $CPPFLAGS'
26467 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26468 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26469 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26472 LIBS
="${saved_libs}"
26473 CPPFLAGS
="${saved_cppflags}"
26475 if test "${ac_cv_lib_OPENH323}" = "yes"; then
26476 if test "${OPENH323_LIB:-undef}" = "undef"; then
26477 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
26478 OPENH323_LIB
="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
26480 OPENH323_LIB
="-l${PLATFORM_OPENH323}"
26483 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
26484 OPENH323_INCLUDE
="-I${OPENH323_INCDIR}"
26488 cat >>confdefs.h
<<\_ACEOF
26489 #define HAVE_OPENH323 1
26496 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
26497 { echo "$as_me:$LINENO: ***" >&5
26498 echo "$as_me: ***" >&6;}
26499 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
26500 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
26501 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26502 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26503 { echo "$as_me:$LINENO: *** including --without-h323" >&5
26504 echo "$as_me: *** including --without-h323" >&6;}
26509 if test "${USE_RADIUS}" != "no"; then
26511 if test "x${RADIUS_DIR}" != "x"; then
26512 if test -d ${RADIUS_DIR}/lib
; then
26513 pbxlibdir
="-L${RADIUS_DIR}/lib"
26515 pbxlibdir
="-L${RADIUS_DIR}"
26518 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
26519 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
26520 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
26521 echo $ECHO_N "(cached) $ECHO_C" >&6
26523 ac_check_lib_save_LIBS
=$LIBS
26524 LIBS
="-lradiusclient-ng ${pbxlibdir} $LIBS"
26525 cat >conftest.
$ac_ext <<_ACEOF
26528 cat confdefs.h
>>conftest.
$ac_ext
26529 cat >>conftest.
$ac_ext <<_ACEOF
26530 /* end confdefs.h. */
26532 /* Override any GCC internal prototype to avoid an error.
26533 Use char because int might match the return type of a GCC
26534 builtin and then its argument prototype would still apply. */
26538 char rc_read_config ();
26542 return rc_read_config ();
26547 rm -f conftest.
$ac_objext conftest
$ac_exeext
26548 if { (ac_try
="$ac_link"
26549 case "(($ac_try" in
26550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26551 *) ac_try_echo=$ac_try;;
26553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26554 (eval "$ac_link") 2>conftest.er1
26556 grep -v '^ *+' conftest.er1 >conftest.err
26558 cat conftest.err >&5
26559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560 (exit $ac_status); } && {
26561 test -z "$ac_c_werror_flag" ||
26562 test ! -s conftest.err
26563 } && test -s conftest$ac_exeext &&
26564 $as_test_x conftest$ac_exeext; then
26565 ac_cv_lib_radiusclient_ng_rc_read_config=yes
26567 echo "$as_me: failed program was:" >&5
26568 sed 's/^/| /' conftest.$ac_ext >&5
26570 ac_cv_lib_radiusclient_ng_rc_read_config=no
26573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26574 conftest$ac_exeext conftest.$ac_ext
26575 LIBS=$ac_check_lib_save_LIBS
26577 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
26578 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
26579 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
26580 AST_RADIUS_FOUND=yes
26582 AST_RADIUS_FOUND=no
26586 if test "${AST_RADIUS_FOUND}" = "yes"; then
26587 RADIUS_LIB="-lradiusclient-ng "
26588 RADIUS_HEADER_FOUND="1"
26589 if test "x${RADIUS_DIR}" != "x"; then
26590 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
26591 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
26593 RADIUS_INCLUDE="${RADIUS_INCLUDE} "
26594 saved_cppflags="${CPPFLAGS}"
26595 CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
26596 if test "xradiusclient-ng.h" != "x" ; then
26597 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
26598 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
26599 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
26600 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
26601 echo $ECHO_N "(cached) $ECHO_C" >&6
26603 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
26604 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
26606 # Is the header compilable?
26607 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
26608 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
26609 cat >conftest.$ac_ext <<_ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h. */
26615 $ac_includes_default
26616 #include <radiusclient-ng.h>
26618 rm -f conftest.$ac_objext
26619 if { (ac_try="$ac_compile"
26620 case "(($ac_try" in
26621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26622 *) ac_try_echo
=$ac_try;;
26624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26625 (eval "$ac_compile") 2>conftest.er1
26627 grep -v '^ *+' conftest.er1
>conftest.err
26629 cat conftest.err
>&5
26630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631 (exit $ac_status); } && {
26632 test -z "$ac_c_werror_flag" ||
26633 test ! -s conftest.err
26634 } && test -s conftest.
$ac_objext; then
26635 ac_header_compiler
=yes
26637 echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.
$ac_ext >&5
26640 ac_header_compiler
=no
26643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26645 echo "${ECHO_T}$ac_header_compiler" >&6; }
26647 # Is the header present?
26648 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
26649 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
26650 cat >conftest.
$ac_ext <<_ACEOF
26653 cat confdefs.h
>>conftest.
$ac_ext
26654 cat >>conftest.
$ac_ext <<_ACEOF
26655 /* end confdefs.h. */
26656 #include <radiusclient-ng.h>
26658 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26659 case "(($ac_try" in
26660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26661 *) ac_try_echo=$ac_try;;
26663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26666 grep -v '^ *+' conftest.er1 >conftest.err
26668 cat conftest.err >&5
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); } >/dev/null && {
26671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26672 test ! -s conftest.err
26674 ac_header_preproc=yes
26676 echo "$as_me: failed program was:" >&5
26677 sed 's/^/| /' conftest.$ac_ext >&5
26679 ac_header_preproc=no
26682 rm -f conftest.err conftest.$ac_ext
26683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26684 echo "${ECHO_T}$ac_header_preproc" >&6; }
26686 # So? What about this header?
26687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26689 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
26690 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26691 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
26692 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
26693 ac_header_preproc=yes
26696 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
26697 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
26698 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
26699 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
26700 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
26701 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
26702 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
26703 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
26704 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
26705 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
26706 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
26707 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
26709 ## ------------------------------- ##
26710 ## Report this to www.asterisk.org ##
26711 ## ------------------------------- ##
26713 ) | sed "s/^/$as_me: WARNING: /" >&2
26716 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
26717 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
26718 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
26719 echo $ECHO_N "(cached) $ECHO_C" >&6
26721 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
26723 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
26724 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
26727 if test $ac_cv_header_radiusclient_ng_h = yes; then
26728 RADIUS_HEADER_FOUND=1
26730 RADIUS_HEADER_FOUND=0
26735 CPPFLAGS="${saved_cppflags}"
26736 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
26737 if test -n "${RADIUS_MANDATORY}" ;
26739 { echo "$as_me:$LINENO: ***" >&5
26740 echo "$as_me: ***" >&6;}
26741 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
26742 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
26743 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
26744 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
26745 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
26746 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
26755 cat >>confdefs.h <<_ACEOF
26756 #define HAVE_RADIUS 1
26760 elif test -n "${RADIUS_MANDATORY}";
26762 { echo "$as_me:$LINENO: ***" >&5
26763 echo "$as_me: ***" >&6;}
26764 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
26765 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
26766 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26767 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26768 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
26769 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
26776 if test "${USE_SPEEX}" != "no"; then
26778 if test "x${SPEEX_DIR}" != "x"; then
26779 if test -d ${SPEEX_DIR}/lib; then
26780 pbxlibdir="-L${SPEEX_DIR}/lib"
26782 pbxlibdir="-L${SPEEX_DIR}"
26785 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
26786 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
26787 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
26788 echo $ECHO_N "(cached) $ECHO_C" >&6
26790 ac_check_lib_save_LIBS=$LIBS
26791 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
26792 cat >conftest.$ac_ext <<_ACEOF
26795 cat confdefs.h >>conftest.$ac_ext
26796 cat >>conftest.$ac_ext <<_ACEOF
26797 /* end confdefs.h. */
26799 /* Override any GCC internal prototype to avoid an error.
26800 Use char because int might match the return type of a GCC
26801 builtin and then its argument prototype would still apply. */
26805 char speex_encode ();
26809 return speex_encode ();
26814 rm -f conftest.$ac_objext conftest$ac_exeext
26815 if { (ac_try="$ac_link"
26816 case "(($ac_try" in
26817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26818 *) ac_try_echo
=$ac_try;;
26820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26821 (eval "$ac_link") 2>conftest.er1
26823 grep -v '^ *+' conftest.er1
>conftest.err
26825 cat conftest.err
>&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); } && {
26828 test -z "$ac_c_werror_flag" ||
26829 test ! -s conftest.err
26830 } && test -s conftest
$ac_exeext &&
26831 $as_test_x conftest
$ac_exeext; then
26832 ac_cv_lib_speex_speex_encode
=yes
26834 echo "$as_me: failed program was:" >&5
26835 sed 's/^/| /' conftest.
$ac_ext >&5
26837 ac_cv_lib_speex_speex_encode
=no
26840 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26841 conftest
$ac_exeext conftest.
$ac_ext
26842 LIBS
=$ac_check_lib_save_LIBS
26844 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
26845 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
26846 if test $ac_cv_lib_speex_speex_encode = yes; then
26847 AST_SPEEX_FOUND
=yes
26853 if test "${AST_SPEEX_FOUND}" = "yes"; then
26854 SPEEX_LIB
="-lspeex -lm"
26855 SPEEX_HEADER_FOUND
="1"
26856 if test "x${SPEEX_DIR}" != "x"; then
26857 SPEEX_LIB
="${pbxlibdir} ${SPEEX_LIB}"
26858 SPEEX_INCLUDE
="-I${SPEEX_DIR}/include"
26860 SPEEX_INCLUDE
="${SPEEX_INCLUDE} "
26861 saved_cppflags
="${CPPFLAGS}"
26862 CPPFLAGS
="${CPPFLAGS} ${SPEEX_INCLUDE}"
26863 if test "xspeex/speex.h" != "x" ; then
26864 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26865 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26866 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26867 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26868 echo $ECHO_N "(cached) $ECHO_C" >&6
26870 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26871 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26873 # Is the header compilable?
26874 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
26875 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
26876 cat >conftest.
$ac_ext <<_ACEOF
26879 cat confdefs.h
>>conftest.
$ac_ext
26880 cat >>conftest.
$ac_ext <<_ACEOF
26881 /* end confdefs.h. */
26882 $ac_includes_default
26883 #include <speex/speex.h>
26885 rm -f conftest.
$ac_objext
26886 if { (ac_try
="$ac_compile"
26887 case "(($ac_try" in
26888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26889 *) ac_try_echo=$ac_try;;
26891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26892 (eval "$ac_compile") 2>conftest.er1
26894 grep -v '^ *+' conftest.er1 >conftest.err
26896 cat conftest.err >&5
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); } && {
26899 test -z "$ac_c_werror_flag" ||
26900 test ! -s conftest.err
26901 } && test -s conftest.$ac_objext; then
26902 ac_header_compiler=yes
26904 echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.$ac_ext >&5
26907 ac_header_compiler=no
26910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26912 echo "${ECHO_T}$ac_header_compiler" >&6; }
26914 # Is the header present?
26915 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
26916 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
26917 cat >conftest.$ac_ext <<_ACEOF
26920 cat confdefs.h >>conftest.$ac_ext
26921 cat >>conftest.$ac_ext <<_ACEOF
26922 /* end confdefs.h. */
26923 #include <speex/speex.h>
26925 if { (ac_try="$ac_cpp conftest.$ac_ext"
26926 case "(($ac_try" in
26927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26928 *) ac_try_echo
=$ac_try;;
26930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26933 grep -v '^ *+' conftest.er1
>conftest.err
26935 cat conftest.err
>&5
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); } >/dev
/null
&& {
26938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26939 test ! -s conftest.err
26941 ac_header_preproc
=yes
26943 echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.
$ac_ext >&5
26946 ac_header_preproc
=no
26949 rm -f conftest.err conftest.
$ac_ext
26950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26951 echo "${ECHO_T}$ac_header_preproc" >&6; }
26953 # So? What about this header?
26954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26956 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
26957 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26958 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
26959 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
26960 ac_header_preproc
=yes
26963 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
26964 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
26965 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
26966 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
26967 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
26968 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
26969 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
26970 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
26971 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
26972 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
26973 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
26974 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
26976 ## ------------------------------- ##
26977 ## Report this to www.asterisk.org ##
26978 ## ------------------------------- ##
26980 ) |
sed "s/^/$as_me: WARNING: /" >&2
26983 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26984 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26985 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26986 echo $ECHO_N "(cached) $ECHO_C" >&6
26988 ac_cv_header_speex_speex_h
=$ac_header_preproc
26990 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26991 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26994 if test $ac_cv_header_speex_speex_h = yes; then
26995 SPEEX_HEADER_FOUND
=1
26997 SPEEX_HEADER_FOUND
=0
27002 CPPFLAGS
="${saved_cppflags}"
27003 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
27004 if test -n "${SPEEX_MANDATORY}" ;
27006 { echo "$as_me:$LINENO: ***" >&5
27007 echo "$as_me: ***" >&6;}
27008 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
27009 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
27010 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
27011 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
27012 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
27013 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
27022 cat >>confdefs.h
<<_ACEOF
27023 #define HAVE_SPEEX 1
27027 elif test -n "${SPEEX_MANDATORY}";
27029 { echo "$as_me:$LINENO: ***" >&5
27030 echo "$as_me: ***" >&6;}
27031 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
27032 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
27033 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27034 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27035 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
27036 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
27042 # See if the main speex library contains the preprocess functions
27044 if test "${USE_SPEEX_PREPROCESS}" != "no"; then
27046 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
27047 if test -d ${SPEEX_PREPROCESS_DIR}/lib
; then
27048 pbxlibdir
="-L${SPEEX_PREPROCESS_DIR}/lib"
27050 pbxlibdir
="-L${SPEEX_PREPROCESS_DIR}"
27053 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeex" >&5
27054 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeex... $ECHO_C" >&6; }
27055 if test "${ac_cv_lib_speex_speex_preprocess_ctl+set}" = set; then
27056 echo $ECHO_N "(cached) $ECHO_C" >&6
27058 ac_check_lib_save_LIBS
=$LIBS
27059 LIBS
="-lspeex ${pbxlibdir} -lm $LIBS"
27060 cat >conftest.
$ac_ext <<_ACEOF
27063 cat confdefs.h
>>conftest.
$ac_ext
27064 cat >>conftest.
$ac_ext <<_ACEOF
27065 /* end confdefs.h. */
27067 /* Override any GCC internal prototype to avoid an error.
27068 Use char because int might match the return type of a GCC
27069 builtin and then its argument prototype would still apply. */
27073 char speex_preprocess_ctl ();
27077 return speex_preprocess_ctl ();
27082 rm -f conftest.
$ac_objext conftest
$ac_exeext
27083 if { (ac_try
="$ac_link"
27084 case "(($ac_try" in
27085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27086 *) ac_try_echo=$ac_try;;
27088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27089 (eval "$ac_link") 2>conftest.er1
27091 grep -v '^ *+' conftest.er1 >conftest.err
27093 cat conftest.err >&5
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); } && {
27096 test -z "$ac_c_werror_flag" ||
27097 test ! -s conftest.err
27098 } && test -s conftest$ac_exeext &&
27099 $as_test_x conftest$ac_exeext; then
27100 ac_cv_lib_speex_speex_preprocess_ctl=yes
27102 echo "$as_me: failed program was:" >&5
27103 sed 's/^/| /' conftest.$ac_ext >&5
27105 ac_cv_lib_speex_speex_preprocess_ctl=no
27108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27109 conftest$ac_exeext conftest.$ac_ext
27110 LIBS=$ac_check_lib_save_LIBS
27112 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_preprocess_ctl" >&5
27113 echo "${ECHO_T}$ac_cv_lib_speex_speex_preprocess_ctl" >&6; }
27114 if test $ac_cv_lib_speex_speex_preprocess_ctl = yes; then
27115 AST_SPEEX_PREPROCESS_FOUND=yes
27117 AST_SPEEX_PREPROCESS_FOUND=no
27121 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
27122 SPEEX_PREPROCESS_LIB="-lspeex -lm"
27123 SPEEX_PREPROCESS_HEADER_FOUND="1"
27124 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
27125 SPEEX_PREPROCESS_LIB="${pbxlibdir} ${SPEEX_PREPROCESS_LIB}"
27126 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
27128 SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
27129 saved_cppflags="${CPPFLAGS}"
27130 CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
27131 if test "xspeex/speex.h" != "x" ; then
27132 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27133 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27134 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27135 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27136 echo $ECHO_N "(cached) $ECHO_C" >&6
27138 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27139 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27141 # Is the header compilable?
27142 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
27143 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
27144 cat >conftest.$ac_ext <<_ACEOF
27147 cat confdefs.h >>conftest.$ac_ext
27148 cat >>conftest.$ac_ext <<_ACEOF
27149 /* end confdefs.h. */
27150 $ac_includes_default
27151 #include <speex/speex.h>
27153 rm -f conftest.$ac_objext
27154 if { (ac_try="$ac_compile"
27155 case "(($ac_try" in
27156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27157 *) ac_try_echo
=$ac_try;;
27159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27160 (eval "$ac_compile") 2>conftest.er1
27162 grep -v '^ *+' conftest.er1
>conftest.err
27164 cat conftest.err
>&5
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); } && {
27167 test -z "$ac_c_werror_flag" ||
27168 test ! -s conftest.err
27169 } && test -s conftest.
$ac_objext; then
27170 ac_header_compiler
=yes
27172 echo "$as_me: failed program was:" >&5
27173 sed 's/^/| /' conftest.
$ac_ext >&5
27175 ac_header_compiler
=no
27178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27180 echo "${ECHO_T}$ac_header_compiler" >&6; }
27182 # Is the header present?
27183 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
27184 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
27185 cat >conftest.
$ac_ext <<_ACEOF
27188 cat confdefs.h
>>conftest.
$ac_ext
27189 cat >>conftest.
$ac_ext <<_ACEOF
27190 /* end confdefs.h. */
27191 #include <speex/speex.h>
27193 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27194 case "(($ac_try" in
27195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27196 *) ac_try_echo=$ac_try;;
27198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27201 grep -v '^ *+' conftest.er1 >conftest.err
27203 cat conftest.err >&5
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); } >/dev/null && {
27206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27207 test ! -s conftest.err
27209 ac_header_preproc=yes
27211 echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27214 ac_header_preproc=no
27217 rm -f conftest.err conftest.$ac_ext
27218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27219 echo "${ECHO_T}$ac_header_preproc" >&6; }
27221 # So? What about this header?
27222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27224 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
27225 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27226 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
27227 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
27228 ac_header_preproc=yes
27231 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
27232 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
27233 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
27234 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
27235 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
27236 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
27237 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
27238 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
27239 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
27240 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
27241 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
27242 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
27244 ## ------------------------------- ##
27245 ## Report this to www.asterisk.org ##
27246 ## ------------------------------- ##
27248 ) | sed "s/^/$as_me: WARNING: /" >&2
27251 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27252 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27253 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27254 echo $ECHO_N "(cached) $ECHO_C" >&6
27256 ac_cv_header_speex_speex_h=$ac_header_preproc
27258 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27259 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27262 if test $ac_cv_header_speex_speex_h = yes; then
27263 SPEEX_PREPROCESS_HEADER_FOUND=1
27265 SPEEX_PREPROCESS_HEADER_FOUND=0
27270 CPPFLAGS="${saved_cppflags}"
27271 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
27272 if test -n "${SPEEX_PREPROCESS_MANDATORY}" ;
27274 { echo "$as_me:$LINENO: ***" >&5
27275 echo "$as_me: ***" >&6;}
27276 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
27277 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
27278 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&5
27279 echo "$as_me: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&6;}
27280 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
27281 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
27284 SPEEX_PREPROCESS_LIB=""
27285 SPEEX_PREPROCESS_INCLUDE=""
27286 PBX_SPEEX_PREPROCESS=0
27288 PBX_SPEEX_PREPROCESS=1
27290 cat >>confdefs.h <<_ACEOF
27291 #define HAVE_SPEEX_PREPROCESS 1
27295 elif test -n "${SPEEX_PREPROCESS_MANDATORY}";
27297 { echo "$as_me:$LINENO: ***" >&5
27298 echo "$as_me: ***" >&6;}
27299 { echo "$as_me:$LINENO: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&5
27300 echo "$as_me: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&6;}
27301 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27302 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27303 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
27304 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
27309 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
27310 PBX_SPEEX_PREPROCESS=1
27314 if test "${USE_SPEEXDSP}" != "no"; then
27316 if test "x${SPEEXDSP_DIR}" != "x"; then
27317 if test -d ${SPEEXDSP_DIR}/lib; then
27318 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
27320 pbxlibdir="-L${SPEEXDSP_DIR}"
27323 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
27324 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
27325 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
27326 echo $ECHO_N "(cached) $ECHO_C" >&6
27328 ac_check_lib_save_LIBS=$LIBS
27329 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
27330 cat >conftest.$ac_ext <<_ACEOF
27333 cat confdefs.h >>conftest.$ac_ext
27334 cat >>conftest.$ac_ext <<_ACEOF
27335 /* end confdefs.h. */
27337 /* Override any GCC internal prototype to avoid an error.
27338 Use char because int might match the return type of a GCC
27339 builtin and then its argument prototype would still apply. */
27343 char speex_preprocess_ctl ();
27347 return speex_preprocess_ctl ();
27352 rm -f conftest.$ac_objext conftest$ac_exeext
27353 if { (ac_try="$ac_link"
27354 case "(($ac_try" in
27355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27356 *) ac_try_echo
=$ac_try;;
27358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27359 (eval "$ac_link") 2>conftest.er1
27361 grep -v '^ *+' conftest.er1
>conftest.err
27363 cat conftest.err
>&5
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); } && {
27366 test -z "$ac_c_werror_flag" ||
27367 test ! -s conftest.err
27368 } && test -s conftest
$ac_exeext &&
27369 $as_test_x conftest
$ac_exeext; then
27370 ac_cv_lib_speexdsp_speex_preprocess_ctl
=yes
27372 echo "$as_me: failed program was:" >&5
27373 sed 's/^/| /' conftest.
$ac_ext >&5
27375 ac_cv_lib_speexdsp_speex_preprocess_ctl
=no
27378 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27379 conftest
$ac_exeext conftest.
$ac_ext
27380 LIBS
=$ac_check_lib_save_LIBS
27382 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
27383 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
27384 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
27385 AST_SPEEXDSP_FOUND
=yes
27387 AST_SPEEXDSP_FOUND
=no
27391 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
27392 SPEEXDSP_LIB
="-lspeexdsp -lm"
27393 SPEEXDSP_HEADER_FOUND
="1"
27394 if test "x${SPEEXDSP_DIR}" != "x"; then
27395 SPEEXDSP_LIB
="${pbxlibdir} ${SPEEXDSP_LIB}"
27396 SPEEXDSP_INCLUDE
="-I${SPEEXDSP_DIR}/include"
27398 SPEEXDSP_INCLUDE
="${SPEEXDSP_INCLUDE} "
27399 saved_cppflags
="${CPPFLAGS}"
27400 CPPFLAGS
="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
27401 if test "xspeex/speex.h" != "x" ; then
27402 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27403 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27404 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27405 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27406 echo $ECHO_N "(cached) $ECHO_C" >&6
27408 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27409 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27411 # Is the header compilable?
27412 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
27413 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
27414 cat >conftest.
$ac_ext <<_ACEOF
27417 cat confdefs.h
>>conftest.
$ac_ext
27418 cat >>conftest.
$ac_ext <<_ACEOF
27419 /* end confdefs.h. */
27420 $ac_includes_default
27421 #include <speex/speex.h>
27423 rm -f conftest.
$ac_objext
27424 if { (ac_try
="$ac_compile"
27425 case "(($ac_try" in
27426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27427 *) ac_try_echo=$ac_try;;
27429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27430 (eval "$ac_compile") 2>conftest.er1
27432 grep -v '^ *+' conftest.er1 >conftest.err
27434 cat conftest.err >&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); } && {
27437 test -z "$ac_c_werror_flag" ||
27438 test ! -s conftest.err
27439 } && test -s conftest.$ac_objext; then
27440 ac_header_compiler=yes
27442 echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27445 ac_header_compiler=no
27448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27450 echo "${ECHO_T}$ac_header_compiler" >&6; }
27452 # Is the header present?
27453 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
27454 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
27455 cat >conftest.$ac_ext <<_ACEOF
27458 cat confdefs.h >>conftest.$ac_ext
27459 cat >>conftest.$ac_ext <<_ACEOF
27460 /* end confdefs.h. */
27461 #include <speex/speex.h>
27463 if { (ac_try="$ac_cpp conftest.$ac_ext"
27464 case "(($ac_try" in
27465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27466 *) ac_try_echo
=$ac_try;;
27468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27471 grep -v '^ *+' conftest.er1
>conftest.err
27473 cat conftest.err
>&5
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); } >/dev
/null
&& {
27476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27477 test ! -s conftest.err
27479 ac_header_preproc
=yes
27481 echo "$as_me: failed program was:" >&5
27482 sed 's/^/| /' conftest.
$ac_ext >&5
27484 ac_header_preproc
=no
27487 rm -f conftest.err conftest.
$ac_ext
27488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27489 echo "${ECHO_T}$ac_header_preproc" >&6; }
27491 # So? What about this header?
27492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27494 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
27495 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27496 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
27497 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
27498 ac_header_preproc
=yes
27501 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
27502 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
27503 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
27504 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
27505 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
27506 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
27507 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
27508 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
27509 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
27510 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
27511 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
27512 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
27514 ## ------------------------------- ##
27515 ## Report this to www.asterisk.org ##
27516 ## ------------------------------- ##
27518 ) |
sed "s/^/$as_me: WARNING: /" >&2
27521 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27522 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27523 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27524 echo $ECHO_N "(cached) $ECHO_C" >&6
27526 ac_cv_header_speex_speex_h
=$ac_header_preproc
27528 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27529 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27532 if test $ac_cv_header_speex_speex_h = yes; then
27533 SPEEXDSP_HEADER_FOUND
=1
27535 SPEEXDSP_HEADER_FOUND
=0
27540 CPPFLAGS
="${saved_cppflags}"
27541 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
27542 if test -n "${SPEEXDSP_MANDATORY}" ;
27544 { echo "$as_me:$LINENO: ***" >&5
27545 echo "$as_me: ***" >&6;}
27546 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
27547 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
27548 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
27549 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
27550 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
27551 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
27555 SPEEXDSP_INCLUDE
=""
27560 cat >>confdefs.h
<<_ACEOF
27561 #define HAVE_SPEEXDSP 1
27565 elif test -n "${SPEEXDSP_MANDATORY}";
27567 { echo "$as_me:$LINENO: ***" >&5
27568 echo "$as_me: ***" >&6;}
27569 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
27570 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
27571 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27572 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27573 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
27574 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
27579 if test "${PBX_SPEEXDSP}" = 1; then
27580 PBX_SPEEX_PREPROCESS
=1
27586 if test "${USE_SQLITE}" != "no"; then
27588 if test "x${SQLITE_DIR}" != "x"; then
27589 if test -d ${SQLITE_DIR}/lib
; then
27590 pbxlibdir
="-L${SQLITE_DIR}/lib"
27592 pbxlibdir
="-L${SQLITE_DIR}"
27595 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
27596 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
27597 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
27598 echo $ECHO_N "(cached) $ECHO_C" >&6
27600 ac_check_lib_save_LIBS
=$LIBS
27601 LIBS
="-lsqlite ${pbxlibdir} $LIBS"
27602 cat >conftest.
$ac_ext <<_ACEOF
27605 cat confdefs.h
>>conftest.
$ac_ext
27606 cat >>conftest.
$ac_ext <<_ACEOF
27607 /* end confdefs.h. */
27609 /* Override any GCC internal prototype to avoid an error.
27610 Use char because int might match the return type of a GCC
27611 builtin and then its argument prototype would still apply. */
27615 char sqlite_exec ();
27619 return sqlite_exec ();
27624 rm -f conftest.
$ac_objext conftest
$ac_exeext
27625 if { (ac_try
="$ac_link"
27626 case "(($ac_try" in
27627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27628 *) ac_try_echo=$ac_try;;
27630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27631 (eval "$ac_link") 2>conftest.er1
27633 grep -v '^ *+' conftest.er1 >conftest.err
27635 cat conftest.err >&5
27636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637 (exit $ac_status); } && {
27638 test -z "$ac_c_werror_flag" ||
27639 test ! -s conftest.err
27640 } && test -s conftest$ac_exeext &&
27641 $as_test_x conftest$ac_exeext; then
27642 ac_cv_lib_sqlite_sqlite_exec=yes
27644 echo "$as_me: failed program was:" >&5
27645 sed 's/^/| /' conftest.$ac_ext >&5
27647 ac_cv_lib_sqlite_sqlite_exec=no
27650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27651 conftest$ac_exeext conftest.$ac_ext
27652 LIBS=$ac_check_lib_save_LIBS
27654 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
27655 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
27656 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
27657 AST_SQLITE_FOUND=yes
27659 AST_SQLITE_FOUND=no
27663 if test "${AST_SQLITE_FOUND}" = "yes"; then
27664 SQLITE_LIB="-lsqlite "
27665 SQLITE_HEADER_FOUND="1"
27666 if test "x${SQLITE_DIR}" != "x"; then
27667 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
27668 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
27670 SQLITE_INCLUDE="${SQLITE_INCLUDE} "
27671 saved_cppflags="${CPPFLAGS}"
27672 CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
27673 if test "xsqlite.h" != "x" ; then
27674 if test "${ac_cv_header_sqlite_h+set}" = set; then
27675 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
27676 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
27677 if test "${ac_cv_header_sqlite_h+set}" = set; then
27678 echo $ECHO_N "(cached) $ECHO_C" >&6
27680 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
27681 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
27683 # Is the header compilable?
27684 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
27685 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
27686 cat >conftest.$ac_ext <<_ACEOF
27689 cat confdefs.h >>conftest.$ac_ext
27690 cat >>conftest.$ac_ext <<_ACEOF
27691 /* end confdefs.h. */
27692 $ac_includes_default
27693 #include <sqlite.h>
27695 rm -f conftest.$ac_objext
27696 if { (ac_try="$ac_compile"
27697 case "(($ac_try" in
27698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27699 *) ac_try_echo
=$ac_try;;
27701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27702 (eval "$ac_compile") 2>conftest.er1
27704 grep -v '^ *+' conftest.er1
>conftest.err
27706 cat conftest.err
>&5
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); } && {
27709 test -z "$ac_c_werror_flag" ||
27710 test ! -s conftest.err
27711 } && test -s conftest.
$ac_objext; then
27712 ac_header_compiler
=yes
27714 echo "$as_me: failed program was:" >&5
27715 sed 's/^/| /' conftest.
$ac_ext >&5
27717 ac_header_compiler
=no
27720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27722 echo "${ECHO_T}$ac_header_compiler" >&6; }
27724 # Is the header present?
27725 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
27726 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
27727 cat >conftest.
$ac_ext <<_ACEOF
27730 cat confdefs.h
>>conftest.
$ac_ext
27731 cat >>conftest.
$ac_ext <<_ACEOF
27732 /* end confdefs.h. */
27733 #include <sqlite.h>
27735 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27736 case "(($ac_try" in
27737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27738 *) ac_try_echo=$ac_try;;
27740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27743 grep -v '^ *+' conftest.er1 >conftest.err
27745 cat conftest.err >&5
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); } >/dev/null && {
27748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27749 test ! -s conftest.err
27751 ac_header_preproc=yes
27753 echo "$as_me: failed program was:" >&5
27754 sed 's/^/| /' conftest.$ac_ext >&5
27756 ac_header_preproc=no
27759 rm -f conftest.err conftest.$ac_ext
27760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27761 echo "${ECHO_T}$ac_header_preproc" >&6; }
27763 # So? What about this header?
27764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27766 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
27767 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27768 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
27769 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
27770 ac_header_preproc=yes
27773 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
27774 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
27775 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
27776 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
27777 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
27778 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
27779 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
27780 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
27781 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
27782 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
27783 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
27784 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
27786 ## ------------------------------- ##
27787 ## Report this to www.asterisk.org ##
27788 ## ------------------------------- ##
27790 ) | sed "s/^/$as_me: WARNING: /" >&2
27793 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
27794 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
27795 if test "${ac_cv_header_sqlite_h+set}" = set; then
27796 echo $ECHO_N "(cached) $ECHO_C" >&6
27798 ac_cv_header_sqlite_h=$ac_header_preproc
27800 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
27801 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
27804 if test $ac_cv_header_sqlite_h = yes; then
27805 SQLITE_HEADER_FOUND=1
27807 SQLITE_HEADER_FOUND=0
27812 CPPFLAGS="${saved_cppflags}"
27813 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
27814 if test -n "${SQLITE_MANDATORY}" ;
27816 { echo "$as_me:$LINENO: ***" >&5
27817 echo "$as_me: ***" >&6;}
27818 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
27819 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
27820 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
27821 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
27822 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
27823 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
27832 cat >>confdefs.h <<_ACEOF
27833 #define HAVE_SQLITE 1
27837 elif test -n "${SQLITE_MANDATORY}";
27839 { echo "$as_me:$LINENO: ***" >&5
27840 echo "$as_me: ***" >&6;}
27841 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
27842 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
27843 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27844 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27845 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
27846 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
27853 if test "${USE_OPENSSL}" != "no"; then
27855 if test "x${OPENSSL_DIR}" != "x"; then
27856 if test -d ${OPENSSL_DIR}/lib; then
27857 pbxlibdir="-L${OPENSSL_DIR}/lib"
27859 pbxlibdir="-L${OPENSSL_DIR}"
27862 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
27863 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
27864 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
27865 echo $ECHO_N "(cached) $ECHO_C" >&6
27867 ac_check_lib_save_LIBS=$LIBS
27868 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
27869 cat >conftest.$ac_ext <<_ACEOF
27872 cat confdefs.h >>conftest.$ac_ext
27873 cat >>conftest.$ac_ext <<_ACEOF
27874 /* end confdefs.h. */
27876 /* Override any GCC internal prototype to avoid an error.
27877 Use char because int might match the return type of a GCC
27878 builtin and then its argument prototype would still apply. */
27882 char ssl2_connect ();
27886 return ssl2_connect ();
27891 rm -f conftest.$ac_objext conftest$ac_exeext
27892 if { (ac_try="$ac_link"
27893 case "(($ac_try" in
27894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27895 *) ac_try_echo
=$ac_try;;
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898 (eval "$ac_link") 2>conftest.er1
27900 grep -v '^ *+' conftest.er1
>conftest.err
27902 cat conftest.err
>&5
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); } && {
27905 test -z "$ac_c_werror_flag" ||
27906 test ! -s conftest.err
27907 } && test -s conftest
$ac_exeext &&
27908 $as_test_x conftest
$ac_exeext; then
27909 ac_cv_lib_ssl_ssl2_connect
=yes
27911 echo "$as_me: failed program was:" >&5
27912 sed 's/^/| /' conftest.
$ac_ext >&5
27914 ac_cv_lib_ssl_ssl2_connect
=no
27917 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27918 conftest
$ac_exeext conftest.
$ac_ext
27919 LIBS
=$ac_check_lib_save_LIBS
27921 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
27922 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
27923 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
27924 AST_OPENSSL_FOUND
=yes
27926 AST_OPENSSL_FOUND
=no
27930 if test "${AST_OPENSSL_FOUND}" = "yes"; then
27931 OPENSSL_LIB
="-lssl -lcrypto"
27932 OPENSSL_HEADER_FOUND
="1"
27933 if test "x${OPENSSL_DIR}" != "x"; then
27934 OPENSSL_LIB
="${pbxlibdir} ${OPENSSL_LIB}"
27935 OPENSSL_INCLUDE
="-I${OPENSSL_DIR}/include"
27937 OPENSSL_INCLUDE
="${OPENSSL_INCLUDE} "
27938 saved_cppflags
="${CPPFLAGS}"
27939 CPPFLAGS
="${CPPFLAGS} ${OPENSSL_INCLUDE}"
27940 if test "xopenssl/ssl.h" != "x" ; then
27941 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27942 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
27943 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
27944 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27945 echo $ECHO_N "(cached) $ECHO_C" >&6
27947 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
27948 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
27950 # Is the header compilable?
27951 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
27952 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
27953 cat >conftest.
$ac_ext <<_ACEOF
27956 cat confdefs.h
>>conftest.
$ac_ext
27957 cat >>conftest.
$ac_ext <<_ACEOF
27958 /* end confdefs.h. */
27959 $ac_includes_default
27960 #include <openssl/ssl.h>
27962 rm -f conftest.
$ac_objext
27963 if { (ac_try
="$ac_compile"
27964 case "(($ac_try" in
27965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27966 *) ac_try_echo=$ac_try;;
27968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27969 (eval "$ac_compile") 2>conftest.er1
27971 grep -v '^ *+' conftest.er1 >conftest.err
27973 cat conftest.err >&5
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); } && {
27976 test -z "$ac_c_werror_flag" ||
27977 test ! -s conftest.err
27978 } && test -s conftest.$ac_objext; then
27979 ac_header_compiler=yes
27981 echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27984 ac_header_compiler=no
27987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27989 echo "${ECHO_T}$ac_header_compiler" >&6; }
27991 # Is the header present?
27992 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
27993 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
27994 cat >conftest.$ac_ext <<_ACEOF
27997 cat confdefs.h >>conftest.$ac_ext
27998 cat >>conftest.$ac_ext <<_ACEOF
27999 /* end confdefs.h. */
28000 #include <openssl/ssl.h>
28002 if { (ac_try="$ac_cpp conftest.$ac_ext"
28003 case "(($ac_try" in
28004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28005 *) ac_try_echo
=$ac_try;;
28007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28010 grep -v '^ *+' conftest.er1
>conftest.err
28012 cat conftest.err
>&5
28013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014 (exit $ac_status); } >/dev
/null
&& {
28015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28016 test ! -s conftest.err
28018 ac_header_preproc
=yes
28020 echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.
$ac_ext >&5
28023 ac_header_preproc
=no
28026 rm -f conftest.err conftest.
$ac_ext
28027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28028 echo "${ECHO_T}$ac_header_preproc" >&6; }
28030 # So? What about this header?
28031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28033 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28034 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28035 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
28036 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
28037 ac_header_preproc
=yes
28040 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
28041 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
28042 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
28043 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
28044 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
28045 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
28046 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
28047 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28048 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
28049 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
28050 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
28051 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
28053 ## ------------------------------- ##
28054 ## Report this to www.asterisk.org ##
28055 ## ------------------------------- ##
28057 ) |
sed "s/^/$as_me: WARNING: /" >&2
28060 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
28061 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
28062 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28063 echo $ECHO_N "(cached) $ECHO_C" >&6
28065 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
28067 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
28068 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
28071 if test $ac_cv_header_openssl_ssl_h = yes; then
28072 OPENSSL_HEADER_FOUND
=1
28074 OPENSSL_HEADER_FOUND
=0
28079 CPPFLAGS
="${saved_cppflags}"
28080 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
28081 if test -n "${OPENSSL_MANDATORY}" ;
28083 { echo "$as_me:$LINENO: ***" >&5
28084 echo "$as_me: ***" >&6;}
28085 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
28086 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
28087 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
28088 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
28089 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
28090 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
28099 cat >>confdefs.h
<<_ACEOF
28100 #define HAVE_OPENSSL 1
28104 elif test -n "${OPENSSL_MANDATORY}";
28106 { echo "$as_me:$LINENO: ***" >&5
28107 echo "$as_me: ***" >&6;}
28108 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
28109 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
28110 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28111 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28112 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
28113 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
28118 if test "$PBX_OPENSSL" = "1";
28121 if test "${USE_OSPTK}" != "no"; then
28123 if test "x${OSPTK_DIR}" != "x"; then
28124 if test -d ${OSPTK_DIR}/lib
; then
28125 pbxlibdir
="-L${OSPTK_DIR}/lib"
28127 pbxlibdir
="-L${OSPTK_DIR}"
28130 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
28131 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
28132 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
28133 echo $ECHO_N "(cached) $ECHO_C" >&6
28135 ac_check_lib_save_LIBS
=$LIBS
28136 LIBS
="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
28137 cat >conftest.
$ac_ext <<_ACEOF
28140 cat confdefs.h
>>conftest.
$ac_ext
28141 cat >>conftest.
$ac_ext <<_ACEOF
28142 /* end confdefs.h. */
28144 /* Override any GCC internal prototype to avoid an error.
28145 Use char because int might match the return type of a GCC
28146 builtin and then its argument prototype would still apply. */
28150 char OSPPCryptoDecrypt ();
28154 return OSPPCryptoDecrypt ();
28159 rm -f conftest.
$ac_objext conftest
$ac_exeext
28160 if { (ac_try
="$ac_link"
28161 case "(($ac_try" in
28162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28163 *) ac_try_echo=$ac_try;;
28165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166 (eval "$ac_link") 2>conftest.er1
28168 grep -v '^ *+' conftest.er1 >conftest.err
28170 cat conftest.err >&5
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); } && {
28173 test -z "$ac_c_werror_flag" ||
28174 test ! -s conftest.err
28175 } && test -s conftest$ac_exeext &&
28176 $as_test_x conftest$ac_exeext; then
28177 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
28179 echo "$as_me: failed program was:" >&5
28180 sed 's/^/| /' conftest.$ac_ext >&5
28182 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
28185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28186 conftest$ac_exeext conftest.$ac_ext
28187 LIBS=$ac_check_lib_save_LIBS
28189 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
28190 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
28191 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
28192 AST_OSPTK_FOUND=yes
28198 if test "${AST_OSPTK_FOUND}" = "yes"; then
28199 OSPTK_LIB="-losptk -lcrypto -lssl"
28200 OSPTK_HEADER_FOUND="1"
28201 if test "x${OSPTK_DIR}" != "x"; then
28202 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
28203 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
28205 OSPTK_INCLUDE="${OSPTK_INCLUDE} "
28206 saved_cppflags="${CPPFLAGS}"
28207 CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE}"
28208 if test "xosp/osp.h" != "x" ; then
28209 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28210 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
28211 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
28212 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28213 echo $ECHO_N "(cached) $ECHO_C" >&6
28215 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
28216 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
28218 # Is the header compilable?
28219 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
28220 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
28221 cat >conftest.$ac_ext <<_ACEOF
28224 cat confdefs.h >>conftest.$ac_ext
28225 cat >>conftest.$ac_ext <<_ACEOF
28226 /* end confdefs.h. */
28227 $ac_includes_default
28228 #include <osp/osp.h>
28230 rm -f conftest.$ac_objext
28231 if { (ac_try="$ac_compile"
28232 case "(($ac_try" in
28233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28234 *) ac_try_echo
=$ac_try;;
28236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28237 (eval "$ac_compile") 2>conftest.er1
28239 grep -v '^ *+' conftest.er1
>conftest.err
28241 cat conftest.err
>&5
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); } && {
28244 test -z "$ac_c_werror_flag" ||
28245 test ! -s conftest.err
28246 } && test -s conftest.
$ac_objext; then
28247 ac_header_compiler
=yes
28249 echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.
$ac_ext >&5
28252 ac_header_compiler
=no
28255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28257 echo "${ECHO_T}$ac_header_compiler" >&6; }
28259 # Is the header present?
28260 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
28261 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
28262 cat >conftest.
$ac_ext <<_ACEOF
28265 cat confdefs.h
>>conftest.
$ac_ext
28266 cat >>conftest.
$ac_ext <<_ACEOF
28267 /* end confdefs.h. */
28268 #include <osp/osp.h>
28270 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28271 case "(($ac_try" in
28272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28273 *) ac_try_echo=$ac_try;;
28275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28278 grep -v '^ *+' conftest.er1 >conftest.err
28280 cat conftest.err >&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); } >/dev/null && {
28283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28284 test ! -s conftest.err
28286 ac_header_preproc=yes
28288 echo "$as_me: failed program was:" >&5
28289 sed 's/^/| /' conftest.$ac_ext >&5
28291 ac_header_preproc=no
28294 rm -f conftest.err conftest.$ac_ext
28295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28296 echo "${ECHO_T}$ac_header_preproc" >&6; }
28298 # So? What about this header?
28299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28301 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
28302 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28303 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
28304 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
28305 ac_header_preproc=yes
28308 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
28309 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
28310 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
28311 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
28312 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
28313 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
28314 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
28315 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
28316 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
28317 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
28318 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
28319 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
28321 ## ------------------------------- ##
28322 ## Report this to www.asterisk.org ##
28323 ## ------------------------------- ##
28325 ) | sed "s/^/$as_me: WARNING: /" >&2
28328 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
28329 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
28330 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28331 echo $ECHO_N "(cached) $ECHO_C" >&6
28333 ac_cv_header_osp_osp_h=$ac_header_preproc
28335 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
28336 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
28339 if test $ac_cv_header_osp_osp_h = yes; then
28340 OSPTK_HEADER_FOUND=1
28342 OSPTK_HEADER_FOUND=0
28347 CPPFLAGS="${saved_cppflags}"
28348 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
28349 if test -n "${OSPTK_MANDATORY}" ;
28351 { echo "$as_me:$LINENO: ***" >&5
28352 echo "$as_me: ***" >&6;}
28353 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
28354 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
28355 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
28356 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
28357 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
28358 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
28367 cat >>confdefs.h <<_ACEOF
28368 #define HAVE_OSPTK 1
28372 elif test -n "${OSPTK_MANDATORY}";
28374 { echo "$as_me:$LINENO: ***" >&5
28375 echo "$as_me: ***" >&6;}
28376 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
28377 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
28378 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28379 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28380 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
28381 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
28389 if test "${USE_FREETDS}" != "no"; then
28391 if test "x${FREETDS_DIR}" != "x"; then
28392 if test -d ${FREETDS_DIR}/lib; then
28393 pbxlibdir="-L${FREETDS_DIR}/lib"
28395 pbxlibdir="-L${FREETDS_DIR}"
28398 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
28399 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
28400 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
28401 echo $ECHO_N "(cached) $ECHO_C" >&6
28403 ac_check_lib_save_LIBS=$LIBS
28404 LIBS="-ltds ${pbxlibdir} $LIBS"
28405 cat >conftest.$ac_ext <<_ACEOF
28408 cat confdefs.h >>conftest.$ac_ext
28409 cat >>conftest.$ac_ext <<_ACEOF
28410 /* end confdefs.h. */
28412 /* Override any GCC internal prototype to avoid an error.
28413 Use char because int might match the return type of a GCC
28414 builtin and then its argument prototype would still apply. */
28418 char tds_version ();
28422 return tds_version ();
28427 rm -f conftest.$ac_objext conftest$ac_exeext
28428 if { (ac_try="$ac_link"
28429 case "(($ac_try" in
28430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28431 *) ac_try_echo
=$ac_try;;
28433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28434 (eval "$ac_link") 2>conftest.er1
28436 grep -v '^ *+' conftest.er1
>conftest.err
28438 cat conftest.err
>&5
28439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440 (exit $ac_status); } && {
28441 test -z "$ac_c_werror_flag" ||
28442 test ! -s conftest.err
28443 } && test -s conftest
$ac_exeext &&
28444 $as_test_x conftest
$ac_exeext; then
28445 ac_cv_lib_tds_tds_version
=yes
28447 echo "$as_me: failed program was:" >&5
28448 sed 's/^/| /' conftest.
$ac_ext >&5
28450 ac_cv_lib_tds_tds_version
=no
28453 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28454 conftest
$ac_exeext conftest.
$ac_ext
28455 LIBS
=$ac_check_lib_save_LIBS
28457 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
28458 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
28459 if test $ac_cv_lib_tds_tds_version = yes; then
28460 AST_FREETDS_FOUND
=yes
28462 AST_FREETDS_FOUND
=no
28466 if test "${AST_FREETDS_FOUND}" = "yes"; then
28467 FREETDS_LIB
="-ltds "
28468 FREETDS_HEADER_FOUND
="1"
28469 if test "x${FREETDS_DIR}" != "x"; then
28470 FREETDS_LIB
="${pbxlibdir} ${FREETDS_LIB}"
28471 FREETDS_INCLUDE
="-I${FREETDS_DIR}/include"
28473 FREETDS_INCLUDE
="${FREETDS_INCLUDE} "
28474 saved_cppflags
="${CPPFLAGS}"
28475 CPPFLAGS
="${CPPFLAGS} ${FREETDS_INCLUDE}"
28476 if test "xtds.h" != "x" ; then
28477 if test "${ac_cv_header_tds_h+set}" = set; then
28478 { echo "$as_me:$LINENO: checking for tds.h" >&5
28479 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
28480 if test "${ac_cv_header_tds_h+set}" = set; then
28481 echo $ECHO_N "(cached) $ECHO_C" >&6
28483 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
28484 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
28486 # Is the header compilable?
28487 { echo "$as_me:$LINENO: checking tds.h usability" >&5
28488 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
28489 cat >conftest.
$ac_ext <<_ACEOF
28492 cat confdefs.h
>>conftest.
$ac_ext
28493 cat >>conftest.
$ac_ext <<_ACEOF
28494 /* end confdefs.h. */
28495 $ac_includes_default
28498 rm -f conftest.
$ac_objext
28499 if { (ac_try
="$ac_compile"
28500 case "(($ac_try" in
28501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28502 *) ac_try_echo=$ac_try;;
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505 (eval "$ac_compile") 2>conftest.er1
28507 grep -v '^ *+' conftest.er1 >conftest.err
28509 cat conftest.err >&5
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); } && {
28512 test -z "$ac_c_werror_flag" ||
28513 test ! -s conftest.err
28514 } && test -s conftest.$ac_objext; then
28515 ac_header_compiler=yes
28517 echo "$as_me: failed program was:" >&5
28518 sed 's/^/| /' conftest.$ac_ext >&5
28520 ac_header_compiler=no
28523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28525 echo "${ECHO_T}$ac_header_compiler" >&6; }
28527 # Is the header present?
28528 { echo "$as_me:$LINENO: checking tds.h presence" >&5
28529 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
28530 cat >conftest.$ac_ext <<_ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h. */
28538 if { (ac_try="$ac_cpp conftest.$ac_ext"
28539 case "(($ac_try" in
28540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28541 *) ac_try_echo
=$ac_try;;
28543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28546 grep -v '^ *+' conftest.er1
>conftest.err
28548 cat conftest.err
>&5
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); } >/dev
/null
&& {
28551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28552 test ! -s conftest.err
28554 ac_header_preproc
=yes
28556 echo "$as_me: failed program was:" >&5
28557 sed 's/^/| /' conftest.
$ac_ext >&5
28559 ac_header_preproc
=no
28562 rm -f conftest.err conftest.
$ac_ext
28563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28564 echo "${ECHO_T}$ac_header_preproc" >&6; }
28566 # So? What about this header?
28567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28569 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
28570 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28571 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
28572 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
28573 ac_header_preproc
=yes
28576 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
28577 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
28578 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
28579 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
28580 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
28581 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
28582 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
28583 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
28584 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
28585 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
28586 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
28587 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
28589 ## ------------------------------- ##
28590 ## Report this to www.asterisk.org ##
28591 ## ------------------------------- ##
28593 ) |
sed "s/^/$as_me: WARNING: /" >&2
28596 { echo "$as_me:$LINENO: checking for tds.h" >&5
28597 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
28598 if test "${ac_cv_header_tds_h+set}" = set; then
28599 echo $ECHO_N "(cached) $ECHO_C" >&6
28601 ac_cv_header_tds_h
=$ac_header_preproc
28603 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
28604 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
28607 if test $ac_cv_header_tds_h = yes; then
28608 FREETDS_HEADER_FOUND
=1
28610 FREETDS_HEADER_FOUND
=0
28615 CPPFLAGS
="${saved_cppflags}"
28616 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
28617 if test -n "${FREETDS_MANDATORY}" ;
28619 { echo "$as_me:$LINENO: ***" >&5
28620 echo "$as_me: ***" >&6;}
28621 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
28622 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
28623 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
28624 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
28625 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
28626 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
28635 cat >>confdefs.h
<<_ACEOF
28636 #define HAVE_FREETDS 1
28640 elif test -n "${FREETDS_MANDATORY}";
28642 { echo "$as_me:$LINENO: ***" >&5
28643 echo "$as_me: ***" >&6;}
28644 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
28645 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
28646 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28647 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28648 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
28649 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
28654 if test "${PBX_FREETDS}" != "0";
28656 if test "${FREETDS_DIR}x" = "x";
28658 for tds_dir
in /usr
/usr
/local;
28660 if test -f "${tds_dir}/include/tdsver.h";
28662 FREETDS_DIR
="${tds_dir}"
28666 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
28668 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_64"
28671 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_63"
28674 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_62"
28677 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
28683 if test "${USE_TERMCAP}" != "no"; then
28685 if test "x${TERMCAP_DIR}" != "x"; then
28686 if test -d ${TERMCAP_DIR}/lib
; then
28687 pbxlibdir
="-L${TERMCAP_DIR}/lib"
28689 pbxlibdir
="-L${TERMCAP_DIR}"
28692 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
28693 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
28694 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
28695 echo $ECHO_N "(cached) $ECHO_C" >&6
28697 ac_check_lib_save_LIBS
=$LIBS
28698 LIBS
="-ltermcap ${pbxlibdir} $LIBS"
28699 cat >conftest.
$ac_ext <<_ACEOF
28702 cat confdefs.h
>>conftest.
$ac_ext
28703 cat >>conftest.
$ac_ext <<_ACEOF
28704 /* end confdefs.h. */
28706 /* Override any GCC internal prototype to avoid an error.
28707 Use char because int might match the return type of a GCC
28708 builtin and then its argument prototype would still apply. */
28721 rm -f conftest.
$ac_objext conftest
$ac_exeext
28722 if { (ac_try
="$ac_link"
28723 case "(($ac_try" in
28724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28728 (eval "$ac_link") 2>conftest.er1
28730 grep -v '^ *+' conftest.er1 >conftest.err
28732 cat conftest.err >&5
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } && {
28735 test -z "$ac_c_werror_flag" ||
28736 test ! -s conftest.err
28737 } && test -s conftest$ac_exeext &&
28738 $as_test_x conftest$ac_exeext; then
28739 ac_cv_lib_termcap_tgetent=yes
28741 echo "$as_me: failed program was:" >&5
28742 sed 's/^/| /' conftest.$ac_ext >&5
28744 ac_cv_lib_termcap_tgetent=no
28747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28748 conftest$ac_exeext conftest.$ac_ext
28749 LIBS=$ac_check_lib_save_LIBS
28751 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
28752 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
28753 if test $ac_cv_lib_termcap_tgetent = yes; then
28754 AST_TERMCAP_FOUND=yes
28756 AST_TERMCAP_FOUND=no
28760 if test "${AST_TERMCAP_FOUND}" = "yes"; then
28761 TERMCAP_LIB="-ltermcap "
28762 TERMCAP_HEADER_FOUND="1"
28763 if test "x${TERMCAP_DIR}" != "x"; then
28764 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
28765 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
28767 TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
28768 saved_cppflags="${CPPFLAGS}"
28769 CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
28770 if test "x" != "x" ; then
28771 if test "${ac_cv_header_+set}" = set; then
28772 { echo "$as_me:$LINENO: checking for " >&5
28773 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28774 if test "${ac_cv_header_+set}" = set; then
28775 echo $ECHO_N "(cached) $ECHO_C" >&6
28777 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28778 echo "${ECHO_T}$ac_cv_header_" >&6; }
28780 # Is the header compilable?
28781 { echo "$as_me:$LINENO: checking usability" >&5
28782 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28783 cat >conftest.$ac_ext <<_ACEOF
28786 cat confdefs.h >>conftest.$ac_ext
28787 cat >>conftest.$ac_ext <<_ACEOF
28788 /* end confdefs.h. */
28789 $ac_includes_default
28792 rm -f conftest.$ac_objext
28793 if { (ac_try="$ac_compile"
28794 case "(($ac_try" in
28795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28796 *) ac_try_echo
=$ac_try;;
28798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28799 (eval "$ac_compile") 2>conftest.er1
28801 grep -v '^ *+' conftest.er1
>conftest.err
28803 cat conftest.err
>&5
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); } && {
28806 test -z "$ac_c_werror_flag" ||
28807 test ! -s conftest.err
28808 } && test -s conftest.
$ac_objext; then
28809 ac_header_compiler
=yes
28811 echo "$as_me: failed program was:" >&5
28812 sed 's/^/| /' conftest.
$ac_ext >&5
28814 ac_header_compiler
=no
28817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28819 echo "${ECHO_T}$ac_header_compiler" >&6; }
28821 # Is the header present?
28822 { echo "$as_me:$LINENO: checking presence" >&5
28823 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28824 cat >conftest.
$ac_ext <<_ACEOF
28827 cat confdefs.h
>>conftest.
$ac_ext
28828 cat >>conftest.
$ac_ext <<_ACEOF
28829 /* end confdefs.h. */
28832 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28833 case "(($ac_try" in
28834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28835 *) ac_try_echo=$ac_try;;
28837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28840 grep -v '^ *+' conftest.er1 >conftest.err
28842 cat conftest.err >&5
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); } >/dev/null && {
28845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28846 test ! -s conftest.err
28848 ac_header_preproc=yes
28850 echo "$as_me: failed program was:" >&5
28851 sed 's/^/| /' conftest.$ac_ext >&5
28853 ac_header_preproc=no
28856 rm -f conftest.err conftest.$ac_ext
28857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28858 echo "${ECHO_T}$ac_header_preproc" >&6; }
28860 # So? What about this header?
28861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28863 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28864 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28865 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28866 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28867 ac_header_preproc=yes
28870 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28871 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28872 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28873 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28874 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28875 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28876 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28877 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28879 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28880 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28881 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28883 ## ------------------------------- ##
28884 ## Report this to www.asterisk.org ##
28885 ## ------------------------------- ##
28887 ) | sed "s/^/$as_me: WARNING: /" >&2
28890 { echo "$as_me:$LINENO: checking for " >&5
28891 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28892 if test "${ac_cv_header_+set}" = set; then
28893 echo $ECHO_N "(cached) $ECHO_C" >&6
28895 ac_cv_header_=$ac_header_preproc
28897 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28898 echo "${ECHO_T}$ac_cv_header_" >&6; }
28901 if test $ac_cv_header_ = yes; then
28902 TERMCAP_HEADER_FOUND=1
28904 TERMCAP_HEADER_FOUND=0
28909 CPPFLAGS="${saved_cppflags}"
28910 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
28911 if test -n "${TERMCAP_MANDATORY}" ;
28913 { echo "$as_me:$LINENO: ***" >&5
28914 echo "$as_me: ***" >&6;}
28915 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
28916 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
28917 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
28918 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
28919 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28920 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28929 cat >>confdefs.h <<_ACEOF
28930 #define HAVE_TERMCAP 1
28934 elif test -n "${TERMCAP_MANDATORY}";
28936 { echo "$as_me:$LINENO: ***" >&5
28937 echo "$as_me: ***" >&6;}
28938 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
28939 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
28940 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28941 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28942 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28943 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28950 if test "${USE_TINFO}" != "no"; then
28952 if test "x${TINFO_DIR}" != "x"; then
28953 if test -d ${TINFO_DIR}/lib; then
28954 pbxlibdir="-L${TINFO_DIR}/lib"
28956 pbxlibdir="-L${TINFO_DIR}"
28959 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
28960 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
28961 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
28962 echo $ECHO_N "(cached) $ECHO_C" >&6
28964 ac_check_lib_save_LIBS=$LIBS
28965 LIBS="-ltinfo ${pbxlibdir} $LIBS"
28966 cat >conftest.$ac_ext <<_ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h. */
28973 /* Override any GCC internal prototype to avoid an error.
28974 Use char because int might match the return type of a GCC
28975 builtin and then its argument prototype would still apply. */
28988 rm -f conftest.$ac_objext conftest$ac_exeext
28989 if { (ac_try="$ac_link"
28990 case "(($ac_try" in
28991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28992 *) ac_try_echo
=$ac_try;;
28994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995 (eval "$ac_link") 2>conftest.er1
28997 grep -v '^ *+' conftest.er1
>conftest.err
28999 cat conftest.err
>&5
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); } && {
29002 test -z "$ac_c_werror_flag" ||
29003 test ! -s conftest.err
29004 } && test -s conftest
$ac_exeext &&
29005 $as_test_x conftest
$ac_exeext; then
29006 ac_cv_lib_tinfo_tgetent
=yes
29008 echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.
$ac_ext >&5
29011 ac_cv_lib_tinfo_tgetent
=no
29014 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29015 conftest
$ac_exeext conftest.
$ac_ext
29016 LIBS
=$ac_check_lib_save_LIBS
29018 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
29019 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
29020 if test $ac_cv_lib_tinfo_tgetent = yes; then
29021 AST_TINFO_FOUND
=yes
29027 if test "${AST_TINFO_FOUND}" = "yes"; then
29028 TINFO_LIB
="-ltinfo "
29029 TINFO_HEADER_FOUND
="1"
29030 if test "x${TINFO_DIR}" != "x"; then
29031 TINFO_LIB
="${pbxlibdir} ${TINFO_LIB}"
29032 TINFO_INCLUDE
="-I${TINFO_DIR}/include"
29034 TINFO_INCLUDE
="${TINFO_INCLUDE} "
29035 saved_cppflags
="${CPPFLAGS}"
29036 CPPFLAGS
="${CPPFLAGS} ${TINFO_INCLUDE}"
29037 if test "x" != "x" ; then
29038 if test "${ac_cv_header_+set}" = set; then
29039 { echo "$as_me:$LINENO: checking for " >&5
29040 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29041 if test "${ac_cv_header_+set}" = set; then
29042 echo $ECHO_N "(cached) $ECHO_C" >&6
29044 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29045 echo "${ECHO_T}$ac_cv_header_" >&6; }
29047 # Is the header compilable?
29048 { echo "$as_me:$LINENO: checking usability" >&5
29049 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29050 cat >conftest.
$ac_ext <<_ACEOF
29053 cat confdefs.h
>>conftest.
$ac_ext
29054 cat >>conftest.
$ac_ext <<_ACEOF
29055 /* end confdefs.h. */
29056 $ac_includes_default
29059 rm -f conftest.
$ac_objext
29060 if { (ac_try
="$ac_compile"
29061 case "(($ac_try" in
29062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29063 *) ac_try_echo=$ac_try;;
29065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29066 (eval "$ac_compile") 2>conftest.er1
29068 grep -v '^ *+' conftest.er1 >conftest.err
29070 cat conftest.err >&5
29071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 (exit $ac_status); } && {
29073 test -z "$ac_c_werror_flag" ||
29074 test ! -s conftest.err
29075 } && test -s conftest.$ac_objext; then
29076 ac_header_compiler=yes
29078 echo "$as_me: failed program was:" >&5
29079 sed 's/^/| /' conftest.$ac_ext >&5
29081 ac_header_compiler=no
29084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29086 echo "${ECHO_T}$ac_header_compiler" >&6; }
29088 # Is the header present?
29089 { echo "$as_me:$LINENO: checking presence" >&5
29090 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29091 cat >conftest.$ac_ext <<_ACEOF
29094 cat confdefs.h >>conftest.$ac_ext
29095 cat >>conftest.$ac_ext <<_ACEOF
29096 /* end confdefs.h. */
29099 if { (ac_try="$ac_cpp conftest.$ac_ext"
29100 case "(($ac_try" in
29101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29102 *) ac_try_echo
=$ac_try;;
29104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29107 grep -v '^ *+' conftest.er1
>conftest.err
29109 cat conftest.err
>&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); } >/dev
/null
&& {
29112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29113 test ! -s conftest.err
29115 ac_header_preproc
=yes
29117 echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.
$ac_ext >&5
29120 ac_header_preproc
=no
29123 rm -f conftest.err conftest.
$ac_ext
29124 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29125 echo "${ECHO_T}$ac_header_preproc" >&6; }
29127 # So? What about this header?
29128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29130 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29131 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29132 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29133 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29134 ac_header_preproc
=yes
29137 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29138 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29139 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29140 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29141 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29142 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29143 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29144 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29145 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29146 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29147 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29148 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29150 ## ------------------------------- ##
29151 ## Report this to www.asterisk.org ##
29152 ## ------------------------------- ##
29154 ) |
sed "s/^/$as_me: WARNING: /" >&2
29157 { echo "$as_me:$LINENO: checking for " >&5
29158 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29159 if test "${ac_cv_header_+set}" = set; then
29160 echo $ECHO_N "(cached) $ECHO_C" >&6
29162 ac_cv_header_
=$ac_header_preproc
29164 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29165 echo "${ECHO_T}$ac_cv_header_" >&6; }
29168 if test $ac_cv_header_ = yes; then
29169 TINFO_HEADER_FOUND
=1
29171 TINFO_HEADER_FOUND
=0
29176 CPPFLAGS
="${saved_cppflags}"
29177 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
29178 if test -n "${TINFO_MANDATORY}" ;
29180 { echo "$as_me:$LINENO: ***" >&5
29181 echo "$as_me: ***" >&6;}
29182 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
29183 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
29184 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
29185 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
29186 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
29187 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
29196 cat >>confdefs.h
<<_ACEOF
29197 #define HAVE_TINFO 1
29201 elif test -n "${TINFO_MANDATORY}";
29203 { echo "$as_me:$LINENO: ***" >&5
29204 echo "$as_me: ***" >&6;}
29205 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
29206 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
29207 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29208 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29209 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
29210 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
29216 if test "${host_os}" != "linux-gnu" ; then
29217 tonezone_extra_lib
="-lm"
29220 if test "${PBX_DAHDI}" = "1" ||
test "${USE_ZAPTEL}" = "no"; then
29221 tonezone_dir
="dahdi"
29222 if test "x${DAHDI_DIR}" != "x"; then
29223 tonezone_extra_inc
="${DAHDI_INCLUDE}"
29226 tonezone_dir
="zaptel"
29227 if test "x${ZAPTEL_DIR}" != "x"; then
29228 tonezone_extra_inc
="${ZAPTEL_INCLUDE}"
29233 if test "${USE_TONEZONE}" != "no"; then
29235 if test "x${TONEZONE_DIR}" != "x"; then
29236 if test -d ${TONEZONE_DIR}/lib
; then
29237 pbxlibdir
="-L${TONEZONE_DIR}/lib"
29239 pbxlibdir
="-L${TONEZONE_DIR}"
29242 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
29243 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
29244 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
29245 echo $ECHO_N "(cached) $ECHO_C" >&6
29247 ac_check_lib_save_LIBS
=$LIBS
29248 LIBS
="-ltonezone ${pbxlibdir} ${tonezone_extra_lib} $LIBS"
29249 cat >conftest.
$ac_ext <<_ACEOF
29252 cat confdefs.h
>>conftest.
$ac_ext
29253 cat >>conftest.
$ac_ext <<_ACEOF
29254 /* end confdefs.h. */
29256 /* Override any GCC internal prototype to avoid an error.
29257 Use char because int might match the return type of a GCC
29258 builtin and then its argument prototype would still apply. */
29262 char tone_zone_find ();
29266 return tone_zone_find ();
29271 rm -f conftest.
$ac_objext conftest
$ac_exeext
29272 if { (ac_try
="$ac_link"
29273 case "(($ac_try" in
29274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29275 *) ac_try_echo=$ac_try;;
29277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29278 (eval "$ac_link") 2>conftest.er1
29280 grep -v '^ *+' conftest.er1 >conftest.err
29282 cat conftest.err >&5
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); } && {
29285 test -z "$ac_c_werror_flag" ||
29286 test ! -s conftest.err
29287 } && test -s conftest$ac_exeext &&
29288 $as_test_x conftest$ac_exeext; then
29289 ac_cv_lib_tonezone_tone_zone_find=yes
29291 echo "$as_me: failed program was:" >&5
29292 sed 's/^/| /' conftest.$ac_ext >&5
29294 ac_cv_lib_tonezone_tone_zone_find=no
29297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29298 conftest$ac_exeext conftest.$ac_ext
29299 LIBS=$ac_check_lib_save_LIBS
29301 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
29302 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
29303 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
29304 AST_TONEZONE_FOUND=yes
29306 AST_TONEZONE_FOUND=no
29310 if test "${AST_TONEZONE_FOUND}" = "yes"; then
29311 TONEZONE_LIB="-ltonezone ${tonezone_extra_lib}"
29312 TONEZONE_HEADER_FOUND="1"
29313 if test "x${TONEZONE_DIR}" != "x"; then
29314 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
29315 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
29317 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} ${tonezone_extra_inc}"
29318 saved_cppflags="${CPPFLAGS}"
29319 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
29320 if test "x${tonezone_dir}/tonezone.h" != "x" ; then
29321 as_ac_Header=`echo "ac_cv_header_${tonezone_dir}/tonezone.h" |
$as_tr_sh`
29322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29323 { echo "$as_me:$LINENO: checking for ${tonezone_dir}/tonezone.h" >&5
29324 echo $ECHO_N "checking for ${tonezone_dir}/tonezone.h... $ECHO_C" >&6; }
29325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29326 echo $ECHO_N "(cached) $ECHO_C" >&6
29328 ac_res=`eval echo '${'$as_ac_Header'}'`
29329 { echo "$as_me:$LINENO: result: $ac_res" >&5
29330 echo "${ECHO_T}$ac_res" >&6; }
29332 # Is the header compilable?
29333 { echo "$as_me:$LINENO: checking ${tonezone_dir}/tonezone.h usability" >&5
29334 echo $ECHO_N "checking ${tonezone_dir}/tonezone.h usability... $ECHO_C" >&6; }
29335 cat >conftest.$ac_ext <<_ACEOF
29338 cat confdefs.h >>conftest.$ac_ext
29339 cat >>conftest.$ac_ext <<_ACEOF
29340 /* end confdefs.h. */
29341 $ac_includes_default
29342 #include <${tonezone_dir}/tonezone.h>
29344 rm -f conftest.$ac_objext
29345 if { (ac_try="$ac_compile"
29346 case "(($ac_try" in
29347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29348 *) ac_try_echo
=$ac_try;;
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351 (eval "$ac_compile") 2>conftest.er1
29353 grep -v '^ *+' conftest.er1
>conftest.err
29355 cat conftest.err
>&5
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); } && {
29358 test -z "$ac_c_werror_flag" ||
29359 test ! -s conftest.err
29360 } && test -s conftest.
$ac_objext; then
29361 ac_header_compiler
=yes
29363 echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.
$ac_ext >&5
29366 ac_header_compiler
=no
29369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29371 echo "${ECHO_T}$ac_header_compiler" >&6; }
29373 # Is the header present?
29374 { echo "$as_me:$LINENO: checking ${tonezone_dir}/tonezone.h presence" >&5
29375 echo $ECHO_N "checking ${tonezone_dir}/tonezone.h presence... $ECHO_C" >&6; }
29376 cat >conftest.
$ac_ext <<_ACEOF
29379 cat confdefs.h
>>conftest.
$ac_ext
29380 cat >>conftest.
$ac_ext <<_ACEOF
29381 /* end confdefs.h. */
29382 #include <${tonezone_dir}/tonezone.h>
29384 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29385 case "(($ac_try" in
29386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29387 *) ac_try_echo=$ac_try;;
29389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29392 grep -v '^ *+' conftest.er1 >conftest.err
29394 cat conftest.err >&5
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); } >/dev/null && {
29397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29398 test ! -s conftest.err
29400 ac_header_preproc=yes
29402 echo "$as_me: failed program was:" >&5
29403 sed 's/^/| /' conftest.$ac_ext >&5
29405 ac_header_preproc=no
29408 rm -f conftest.err conftest.$ac_ext
29409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29410 echo "${ECHO_T}$ac_header_preproc" >&6; }
29412 # So? What about this header?
29413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29415 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
29416 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29417 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the compiler's result" >&5
29418 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the compiler's result" >&2;}
29419 ac_header_preproc=yes
29422 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: present but cannot be compiled" >&5
29423 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: present but cannot be compiled" >&2;}
29424 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: check for missing prerequisite headers?" >&5
29425 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: check for missing prerequisite headers?" >&2;}
29426 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: see the Autoconf documentation" >&5
29427 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: see the Autoconf documentation" >&2;}
29428 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
29429 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
29430 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the preprocessor's result" >&5
29431 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: proceeding with the preprocessor's result" >&2;}
29432 { echo "$as_me:$LINENO: WARNING: ${tonezone_dir}/tonezone.h: in the future, the compiler will take precedence" >&5
29433 echo "$as_me: WARNING: ${tonezone_dir}/tonezone.h: in the future, the compiler will take precedence" >&2;}
29435 ## ------------------------------- ##
29436 ## Report this to www.asterisk.org ##
29437 ## ------------------------------- ##
29439 ) | sed "s/^/$as_me: WARNING: /" >&2
29442 { echo "$as_me:$LINENO: checking for ${tonezone_dir}/tonezone.h" >&5
29443 echo $ECHO_N "checking for ${tonezone_dir}/tonezone.h... $ECHO_C" >&6; }
29444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29445 echo $ECHO_N "(cached) $ECHO_C" >&6
29447 eval "$as_ac_Header=\$ac_header_preproc"
29449 ac_res=`eval echo '${'$as_ac_Header'}'`
29450 { echo "$as_me:$LINENO: result: $ac_res" >&5
29451 echo "${ECHO_T}$ac_res" >&6; }
29454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29455 TONEZONE_HEADER_FOUND=1
29457 TONEZONE_HEADER_FOUND=0
29462 CPPFLAGS="${saved_cppflags}"
29463 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
29464 if test -n "${TONEZONE_MANDATORY}" ;
29466 { echo "$as_me:$LINENO: ***" >&5
29467 echo "$as_me: ***" >&6;}
29468 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
29469 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
29470 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
29471 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
29472 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
29473 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
29477 TONEZONE_INCLUDE=""
29482 cat >>confdefs.h <<_ACEOF
29483 #define HAVE_TONEZONE 1
29487 elif test -n "${TONEZONE_MANDATORY}";
29489 { echo "$as_me:$LINENO: ***" >&5
29490 echo "$as_me: ***" >&6;}
29491 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
29492 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
29493 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29494 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29495 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
29496 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
29503 if test "${USE_USB}" != "no"; then
29505 if test "x${USB_DIR}" != "x"; then
29506 if test -d ${USB_DIR}/lib; then
29507 pbxlibdir="-L${USB_DIR}/lib"
29509 pbxlibdir="-L${USB_DIR}"
29512 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
29513 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
29514 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
29515 echo $ECHO_N "(cached) $ECHO_C" >&6
29517 ac_check_lib_save_LIBS=$LIBS
29518 LIBS="-lusb ${pbxlibdir} $LIBS"
29519 cat >conftest.$ac_ext <<_ACEOF
29522 cat confdefs.h >>conftest.$ac_ext
29523 cat >>conftest.$ac_ext <<_ACEOF
29524 /* end confdefs.h. */
29526 /* Override any GCC internal prototype to avoid an error.
29527 Use char because int might match the return type of a GCC
29528 builtin and then its argument prototype would still apply. */
29536 return usb_init ();
29541 rm -f conftest.$ac_objext conftest$ac_exeext
29542 if { (ac_try="$ac_link"
29543 case "(($ac_try" in
29544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29545 *) ac_try_echo
=$ac_try;;
29547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29548 (eval "$ac_link") 2>conftest.er1
29550 grep -v '^ *+' conftest.er1
>conftest.err
29552 cat conftest.err
>&5
29553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554 (exit $ac_status); } && {
29555 test -z "$ac_c_werror_flag" ||
29556 test ! -s conftest.err
29557 } && test -s conftest
$ac_exeext &&
29558 $as_test_x conftest
$ac_exeext; then
29559 ac_cv_lib_usb_usb_init
=yes
29561 echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.
$ac_ext >&5
29564 ac_cv_lib_usb_usb_init
=no
29567 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29568 conftest
$ac_exeext conftest.
$ac_ext
29569 LIBS
=$ac_check_lib_save_LIBS
29571 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
29572 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
29573 if test $ac_cv_lib_usb_usb_init = yes; then
29580 if test "${AST_USB_FOUND}" = "yes"; then
29582 USB_HEADER_FOUND
="1"
29583 if test "x${USB_DIR}" != "x"; then
29584 USB_LIB
="${pbxlibdir} ${USB_LIB}"
29585 USB_INCLUDE
="-I${USB_DIR}/include"
29587 USB_INCLUDE
="${USB_INCLUDE} "
29588 saved_cppflags
="${CPPFLAGS}"
29589 CPPFLAGS
="${CPPFLAGS} ${USB_INCLUDE}"
29590 if test "xusb.h" != "x" ; then
29591 if test "${ac_cv_header_usb_h+set}" = set; then
29592 { echo "$as_me:$LINENO: checking for usb.h" >&5
29593 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
29594 if test "${ac_cv_header_usb_h+set}" = set; then
29595 echo $ECHO_N "(cached) $ECHO_C" >&6
29597 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
29598 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
29600 # Is the header compilable?
29601 { echo "$as_me:$LINENO: checking usb.h usability" >&5
29602 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
29603 cat >conftest.
$ac_ext <<_ACEOF
29606 cat confdefs.h
>>conftest.
$ac_ext
29607 cat >>conftest.
$ac_ext <<_ACEOF
29608 /* end confdefs.h. */
29609 $ac_includes_default
29612 rm -f conftest.
$ac_objext
29613 if { (ac_try
="$ac_compile"
29614 case "(($ac_try" in
29615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29616 *) ac_try_echo=$ac_try;;
29618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29619 (eval "$ac_compile") 2>conftest.er1
29621 grep -v '^ *+' conftest.er1 >conftest.err
29623 cat conftest.err >&5
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); } && {
29626 test -z "$ac_c_werror_flag" ||
29627 test ! -s conftest.err
29628 } && test -s conftest.$ac_objext; then
29629 ac_header_compiler=yes
29631 echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.$ac_ext >&5
29634 ac_header_compiler=no
29637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29639 echo "${ECHO_T}$ac_header_compiler" >&6; }
29641 # Is the header present?
29642 { echo "$as_me:$LINENO: checking usb.h presence" >&5
29643 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
29644 cat >conftest.$ac_ext <<_ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h. */
29652 if { (ac_try="$ac_cpp conftest.$ac_ext"
29653 case "(($ac_try" in
29654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29655 *) ac_try_echo
=$ac_try;;
29657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29660 grep -v '^ *+' conftest.er1
>conftest.err
29662 cat conftest.err
>&5
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); } >/dev
/null
&& {
29665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29666 test ! -s conftest.err
29668 ac_header_preproc
=yes
29670 echo "$as_me: failed program was:" >&5
29671 sed 's/^/| /' conftest.
$ac_ext >&5
29673 ac_header_preproc
=no
29676 rm -f conftest.err conftest.
$ac_ext
29677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29678 echo "${ECHO_T}$ac_header_preproc" >&6; }
29680 # So? What about this header?
29681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29683 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
29684 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29685 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
29686 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
29687 ac_header_preproc
=yes
29690 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
29691 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
29692 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
29693 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
29694 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
29695 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
29696 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
29697 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
29698 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
29699 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
29700 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
29701 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
29703 ## ------------------------------- ##
29704 ## Report this to www.asterisk.org ##
29705 ## ------------------------------- ##
29707 ) |
sed "s/^/$as_me: WARNING: /" >&2
29710 { echo "$as_me:$LINENO: checking for usb.h" >&5
29711 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
29712 if test "${ac_cv_header_usb_h+set}" = set; then
29713 echo $ECHO_N "(cached) $ECHO_C" >&6
29715 ac_cv_header_usb_h
=$ac_header_preproc
29717 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
29718 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
29721 if test $ac_cv_header_usb_h = yes; then
29729 CPPFLAGS
="${saved_cppflags}"
29730 if test "x${USB_HEADER_FOUND}" = "x0" ; then
29731 if test -n "${USB_MANDATORY}" ;
29733 { echo "$as_me:$LINENO: ***" >&5
29734 echo "$as_me: ***" >&6;}
29735 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
29736 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
29737 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
29738 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
29739 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
29740 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
29749 cat >>confdefs.h
<<_ACEOF
29754 elif test -n "${USB_MANDATORY}";
29756 { echo "$as_me:$LINENO: ***" >&5
29757 echo "$as_me: ***" >&6;}
29758 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
29759 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
29760 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29761 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29762 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
29763 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
29770 if test "${USE_VORBIS}" != "no"; then
29772 if test "x${VORBIS_DIR}" != "x"; then
29773 if test -d ${VORBIS_DIR}/lib
; then
29774 pbxlibdir
="-L${VORBIS_DIR}/lib"
29776 pbxlibdir
="-L${VORBIS_DIR}"
29779 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
29780 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
29781 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
29782 echo $ECHO_N "(cached) $ECHO_C" >&6
29784 ac_check_lib_save_LIBS
=$LIBS
29785 LIBS
="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
29786 cat >conftest.
$ac_ext <<_ACEOF
29789 cat confdefs.h
>>conftest.
$ac_ext
29790 cat >>conftest.
$ac_ext <<_ACEOF
29791 /* end confdefs.h. */
29793 /* Override any GCC internal prototype to avoid an error.
29794 Use char because int might match the return type of a GCC
29795 builtin and then its argument prototype would still apply. */
29799 char vorbis_info_init ();
29803 return vorbis_info_init ();
29808 rm -f conftest.
$ac_objext conftest
$ac_exeext
29809 if { (ac_try
="$ac_link"
29810 case "(($ac_try" in
29811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_link") 2>conftest.er1
29817 grep -v '^ *+' conftest.er1 >conftest.err
29819 cat conftest.err >&5
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); } && {
29822 test -z "$ac_c_werror_flag" ||
29823 test ! -s conftest.err
29824 } && test -s conftest$ac_exeext &&
29825 $as_test_x conftest$ac_exeext; then
29826 ac_cv_lib_vorbis_vorbis_info_init=yes
29828 echo "$as_me: failed program was:" >&5
29829 sed 's/^/| /' conftest.$ac_ext >&5
29831 ac_cv_lib_vorbis_vorbis_info_init=no
29834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29835 conftest$ac_exeext conftest.$ac_ext
29836 LIBS=$ac_check_lib_save_LIBS
29838 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
29839 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
29840 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
29841 AST_VORBIS_FOUND=yes
29843 AST_VORBIS_FOUND=no
29847 if test "${AST_VORBIS_FOUND}" = "yes"; then
29848 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
29849 VORBIS_HEADER_FOUND="1"
29850 if test "x${VORBIS_DIR}" != "x"; then
29851 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
29852 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
29854 VORBIS_INCLUDE="${VORBIS_INCLUDE} "
29855 saved_cppflags="${CPPFLAGS}"
29856 CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
29857 if test "xvorbis/codec.h" != "x" ; then
29858 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29859 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29860 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29861 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29862 echo $ECHO_N "(cached) $ECHO_C" >&6
29864 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29865 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29867 # Is the header compilable?
29868 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
29869 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
29870 cat >conftest.$ac_ext <<_ACEOF
29873 cat confdefs.h >>conftest.$ac_ext
29874 cat >>conftest.$ac_ext <<_ACEOF
29875 /* end confdefs.h. */
29876 $ac_includes_default
29877 #include <vorbis/codec.h>
29879 rm -f conftest.$ac_objext
29880 if { (ac_try="$ac_compile"
29881 case "(($ac_try" in
29882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29883 *) ac_try_echo
=$ac_try;;
29885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886 (eval "$ac_compile") 2>conftest.er1
29888 grep -v '^ *+' conftest.er1
>conftest.err
29890 cat conftest.err
>&5
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); } && {
29893 test -z "$ac_c_werror_flag" ||
29894 test ! -s conftest.err
29895 } && test -s conftest.
$ac_objext; then
29896 ac_header_compiler
=yes
29898 echo "$as_me: failed program was:" >&5
29899 sed 's/^/| /' conftest.
$ac_ext >&5
29901 ac_header_compiler
=no
29904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29906 echo "${ECHO_T}$ac_header_compiler" >&6; }
29908 # Is the header present?
29909 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
29910 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
29911 cat >conftest.
$ac_ext <<_ACEOF
29914 cat confdefs.h
>>conftest.
$ac_ext
29915 cat >>conftest.
$ac_ext <<_ACEOF
29916 /* end confdefs.h. */
29917 #include <vorbis/codec.h>
29919 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29920 case "(($ac_try" in
29921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29922 *) ac_try_echo=$ac_try;;
29924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29927 grep -v '^ *+' conftest.er1 >conftest.err
29929 cat conftest.err >&5
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); } >/dev/null && {
29932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29933 test ! -s conftest.err
29935 ac_header_preproc=yes
29937 echo "$as_me: failed program was:" >&5
29938 sed 's/^/| /' conftest.$ac_ext >&5
29940 ac_header_preproc=no
29943 rm -f conftest.err conftest.$ac_ext
29944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29945 echo "${ECHO_T}$ac_header_preproc" >&6; }
29947 # So? What about this header?
29948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29950 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29951 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29952 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
29953 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
29954 ac_header_preproc=yes
29957 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
29958 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
29959 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
29960 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29961 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
29962 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
29963 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29964 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29965 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
29966 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29967 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
29968 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29970 ## ------------------------------- ##
29971 ## Report this to www.asterisk.org ##
29972 ## ------------------------------- ##
29974 ) | sed "s/^/$as_me: WARNING: /" >&2
29977 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29978 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29979 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29980 echo $ECHO_N "(cached) $ECHO_C" >&6
29982 ac_cv_header_vorbis_codec_h=$ac_header_preproc
29984 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29985 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29988 if test $ac_cv_header_vorbis_codec_h = yes; then
29989 VORBIS_HEADER_FOUND=1
29991 VORBIS_HEADER_FOUND=0
29996 CPPFLAGS="${saved_cppflags}"
29997 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
29998 if test -n "${VORBIS_MANDATORY}" ;
30000 { echo "$as_me:$LINENO: ***" >&5
30001 echo "$as_me: ***" >&6;}
30002 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
30003 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
30004 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
30005 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
30006 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
30007 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
30016 cat >>confdefs.h <<_ACEOF
30017 #define HAVE_VORBIS 1
30021 elif test -n "${VORBIS_MANDATORY}";
30023 { echo "$as_me:$LINENO: ***" >&5
30024 echo "$as_me: ***" >&6;}
30025 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
30026 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
30027 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30028 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30029 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
30030 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
30037 ac_cpp='$CXXCPP $CPPFLAGS'
30038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30043 if test "${USE_VPB}" != "no"; then
30044 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
30045 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
30046 saved_libs="${LIBS}"
30047 saved_cppflags="${CPPFLAGS}"
30048 if test "x${VPB_DIR}" != "x"; then
30049 if test -d ${VPB_DIR}/lib; then
30050 vpblibdir=${VPB_DIR}/lib
30052 vpblibdir=${VPB_DIR}
30054 LIBS="${LIBS} -L${vpblibdir}"
30055 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
30057 LIBS="${LIBS} -lvpb -lpthread"
30058 cat >conftest.$ac_ext <<_ACEOF
30062 cat confdefs.h >>conftest.$ac_ext
30063 cat >>conftest.$ac_ext <<_ACEOF
30064 /* end confdefs.h. */
30065 #include <vpbapi.h>
30069 int q = vpb_open(0,0);
30075 rm -f conftest.$ac_objext conftest$ac_exeext
30076 if { (ac_try="$ac_link"
30077 case "(($ac_try" in
30078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30079 *) ac_try_echo
=$ac_try;;
30081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30082 (eval "$ac_link") 2>conftest.er1
30084 grep -v '^ *+' conftest.er1
>conftest.err
30086 cat conftest.err
>&5
30087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088 (exit $ac_status); } && {
30089 test -z "$ac_cxx_werror_flag" ||
30090 test ! -s conftest.err
30091 } && test -s conftest
$ac_exeext &&
30092 $as_test_x conftest
$ac_exeext; then
30093 { echo "$as_me:$LINENO: result: yes" >&5
30094 echo "${ECHO_T}yes" >&6; }
30095 ac_cv_lib_vpb_vpb_open
="yes"
30098 echo "$as_me: failed program was:" >&5
30099 sed 's/^/| /' conftest.
$ac_ext >&5
30101 { echo "$as_me:$LINENO: result: no" >&5
30102 echo "${ECHO_T}no" >&6; }
30103 ac_cv_lib_vpb_vpb_open
="no"
30108 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30109 conftest
$ac_exeext conftest.
$ac_ext
30110 LIBS
="${saved_libs}"
30111 CPPFLAGS
="${saved_cppflags}"
30112 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
30114 if test "${VPB_DIR}" != ""; then
30115 VPB_LIB
="-L${vpblibdir} ${VPB_LIB}"
30116 VPB_INCLUDE
="-I${VPB_DIR}/include"
30120 cat >>confdefs.h
<<\_ACEOF
30124 elif test -n "${VPB_MANDATORY}"; then
30125 { echo "$as_me:$LINENO: ***" >&5
30126 echo "$as_me: ***" >&6;}
30127 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
30128 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
30129 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30130 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30131 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
30132 echo "$as_me: *** including --without-vpb." >&6;}
30138 ac_cpp
='$CPP $CPPFLAGS'
30139 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30140 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30141 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
30145 if test "${USE_ZLIB}" != "no"; then
30147 if test "x${ZLIB_DIR}" != "x"; then
30148 if test -d ${ZLIB_DIR}/lib
; then
30149 pbxlibdir
="-L${ZLIB_DIR}/lib"
30151 pbxlibdir
="-L${ZLIB_DIR}"
30154 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
30155 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
30156 if test "${ac_cv_lib_z_compress+set}" = set; then
30157 echo $ECHO_N "(cached) $ECHO_C" >&6
30159 ac_check_lib_save_LIBS
=$LIBS
30160 LIBS
="-lz ${pbxlibdir} $LIBS"
30161 cat >conftest.
$ac_ext <<_ACEOF
30164 cat confdefs.h
>>conftest.
$ac_ext
30165 cat >>conftest.
$ac_ext <<_ACEOF
30166 /* end confdefs.h. */
30168 /* Override any GCC internal prototype to avoid an error.
30169 Use char because int might match the return type of a GCC
30170 builtin and then its argument prototype would still apply. */
30178 return compress ();
30183 rm -f conftest.
$ac_objext conftest
$ac_exeext
30184 if { (ac_try
="$ac_link"
30185 case "(($ac_try" in
30186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_link") 2>conftest.er1
30192 grep -v '^ *+' conftest.er1 >conftest.err
30194 cat conftest.err >&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); } && {
30197 test -z "$ac_c_werror_flag" ||
30198 test ! -s conftest.err
30199 } && test -s conftest$ac_exeext &&
30200 $as_test_x conftest$ac_exeext; then
30201 ac_cv_lib_z_compress=yes
30203 echo "$as_me: failed program was:" >&5
30204 sed 's/^/| /' conftest.$ac_ext >&5
30206 ac_cv_lib_z_compress=no
30209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30210 conftest$ac_exeext conftest.$ac_ext
30211 LIBS=$ac_check_lib_save_LIBS
30213 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
30214 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
30215 if test $ac_cv_lib_z_compress = yes; then
30222 if test "${AST_ZLIB_FOUND}" = "yes"; then
30224 ZLIB_HEADER_FOUND="1"
30225 if test "x${ZLIB_DIR}" != "x"; then
30226 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
30227 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
30229 ZLIB_INCLUDE="${ZLIB_INCLUDE} "
30230 saved_cppflags="${CPPFLAGS}"
30231 CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
30232 if test "xzlib.h" != "x" ; then
30233 if test "${ac_cv_header_zlib_h+set}" = set; then
30234 { echo "$as_me:$LINENO: checking for zlib.h" >&5
30235 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30236 if test "${ac_cv_header_zlib_h+set}" = set; then
30237 echo $ECHO_N "(cached) $ECHO_C" >&6
30239 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30240 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30242 # Is the header compilable?
30243 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
30244 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
30245 cat >conftest.$ac_ext <<_ACEOF
30248 cat confdefs.h >>conftest.$ac_ext
30249 cat >>conftest.$ac_ext <<_ACEOF
30250 /* end confdefs.h. */
30251 $ac_includes_default
30254 rm -f conftest.$ac_objext
30255 if { (ac_try="$ac_compile"
30256 case "(($ac_try" in
30257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30258 *) ac_try_echo
=$ac_try;;
30260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261 (eval "$ac_compile") 2>conftest.er1
30263 grep -v '^ *+' conftest.er1
>conftest.err
30265 cat conftest.err
>&5
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); } && {
30268 test -z "$ac_c_werror_flag" ||
30269 test ! -s conftest.err
30270 } && test -s conftest.
$ac_objext; then
30271 ac_header_compiler
=yes
30273 echo "$as_me: failed program was:" >&5
30274 sed 's/^/| /' conftest.
$ac_ext >&5
30276 ac_header_compiler
=no
30279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30281 echo "${ECHO_T}$ac_header_compiler" >&6; }
30283 # Is the header present?
30284 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
30285 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
30286 cat >conftest.
$ac_ext <<_ACEOF
30289 cat confdefs.h
>>conftest.
$ac_ext
30290 cat >>conftest.
$ac_ext <<_ACEOF
30291 /* end confdefs.h. */
30294 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30295 case "(($ac_try" in
30296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30297 *) ac_try_echo=$ac_try;;
30299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30302 grep -v '^ *+' conftest.er1 >conftest.err
30304 cat conftest.err >&5
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); } >/dev/null && {
30307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30308 test ! -s conftest.err
30310 ac_header_preproc=yes
30312 echo "$as_me: failed program was:" >&5
30313 sed 's/^/| /' conftest.$ac_ext >&5
30315 ac_header_preproc=no
30318 rm -f conftest.err conftest.$ac_ext
30319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30320 echo "${ECHO_T}$ac_header_preproc" >&6; }
30322 # So? What about this header?
30323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30325 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30326 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30327 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
30328 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
30329 ac_header_preproc=yes
30332 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
30333 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
30334 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
30335 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
30336 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
30337 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
30338 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
30339 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30340 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
30341 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
30342 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
30343 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
30345 ## ------------------------------- ##
30346 ## Report this to www.asterisk.org ##
30347 ## ------------------------------- ##
30349 ) | sed "s/^/$as_me: WARNING: /" >&2
30352 { echo "$as_me:$LINENO: checking for zlib.h" >&5
30353 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30354 if test "${ac_cv_header_zlib_h+set}" = set; then
30355 echo $ECHO_N "(cached) $ECHO_C" >&6
30357 ac_cv_header_zlib_h=$ac_header_preproc
30359 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30360 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30363 if test $ac_cv_header_zlib_h = yes; then
30364 ZLIB_HEADER_FOUND=1
30366 ZLIB_HEADER_FOUND=0
30371 CPPFLAGS="${saved_cppflags}"
30372 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
30373 if test -n "${ZLIB_MANDATORY}" ;
30375 { echo "$as_me:$LINENO: ***" >&5
30376 echo "$as_me: ***" >&6;}
30377 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
30378 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
30379 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
30380 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
30381 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30382 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30391 cat >>confdefs.h <<_ACEOF
30392 #define HAVE_ZLIB 1
30396 elif test -n "${ZLIB_MANDATORY}";
30398 { echo "$as_me:$LINENO: ***" >&5
30399 echo "$as_me: ***" >&6;}
30400 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
30401 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
30402 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30403 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30404 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30405 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30411 if test "${USE_ZAPTEL}" != "no" && test "x${PBX_DAHDI}" != "x1"; then
30412 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
30413 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
30414 saved_cppflags="${CPPFLAGS}"
30415 if test "x${ZAPTEL_DIR}" != "x"; then
30416 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30418 cat >conftest.$ac_ext <<_ACEOF
30422 cat confdefs.h >>conftest.$ac_ext
30423 cat >>conftest.$ac_ext <<_ACEOF
30424 /* end confdefs.h. */
30425 #include <zaptel/zaptel.h>
30429 int foo = ZT_DIAL_OP_CANCEL;
30435 rm -f conftest.$ac_objext
30436 if { (ac_try="$ac_compile"
30437 case "(($ac_try" in
30438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30439 *) ac_try_echo
=$ac_try;;
30441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30442 (eval "$ac_compile") 2>conftest.er1
30444 grep -v '^ *+' conftest.er1
>conftest.err
30446 cat conftest.err
>&5
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); } && {
30449 test -z "$ac_c_werror_flag" ||
30450 test ! -s conftest.err
30451 } && test -s conftest.
$ac_objext; then
30452 { echo "$as_me:$LINENO: result: yes" >&5
30453 echo "${ECHO_T}yes" >&6; }
30454 ac_cv_zaptel_h
="yes"
30457 echo "$as_me: failed program was:" >&5
30458 sed 's/^/| /' conftest.
$ac_ext >&5
30460 { echo "$as_me:$LINENO: result: no" >&5
30461 echo "${ECHO_T}no" >&6; }
30462 ac_cv_zaptel_h
="no"
30467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30468 CPPFLAGS
="${saved_cppflags}"
30469 if test "${ac_cv_zaptel_h}" = "yes"; then
30470 if test "${ZAPTEL_DIR}" != ""; then
30471 ZAPTEL_INCLUDE
="-I${ZAPTEL_DIR}/include"
30475 cat >>confdefs.h
<<\_ACEOF
30476 #define HAVE_ZAPTEL 1
30479 elif test -n "${ZAPTEL_MANDATORY}";
30481 { echo "$as_me:$LINENO: ***" >&5
30482 echo "$as_me: ***" >&6;}
30483 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
30484 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
30485 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30486 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30487 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
30488 echo "$as_me: *** including --without-zaptel." >&6;}
30493 if test "${PBX_ZAPTEL}" = 1 && test "x${PBX_DAHDI}" != "x1"; then
30494 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
30495 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
30496 saved_cppflags
="${CPPFLAGS}"
30497 if test "x${ZAPTEL_DIR}" != "x"; then
30498 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30500 cat >conftest.
$ac_ext <<_ACEOF
30504 cat confdefs.h
>>conftest.
$ac_ext
30505 cat >>conftest.
$ac_ext <<_ACEOF
30506 /* end confdefs.h. */
30507 #include <zaptel/zaptel.h>
30511 int foo = ZT_EVENT_REMOVED;
30517 rm -f conftest.
$ac_objext
30518 if { (ac_try
="$ac_compile"
30519 case "(($ac_try" in
30520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30521 *) ac_try_echo=$ac_try;;
30523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524 (eval "$ac_compile") 2>conftest.er1
30526 grep -v '^ *+' conftest.er1 >conftest.err
30528 cat conftest.err >&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } && {
30531 test -z "$ac_c_werror_flag" ||
30532 test ! -s conftest.err
30533 } && test -s conftest.$ac_objext; then
30534 { echo "$as_me:$LINENO: result: yes" >&5
30535 echo "${ECHO_T}yes" >&6; }
30536 ac_cv_zaptel_vldtmf="yes"
30539 echo "$as_me: failed program was:" >&5
30540 sed 's/^/| /' conftest.$ac_ext >&5
30542 { echo "$as_me:$LINENO: result: no" >&5
30543 echo "${ECHO_T}no" >&6; }
30544 ac_cv_zaptel_vldtmf="no"
30549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30550 CPPFLAGS="${saved_cppflags}"
30551 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
30552 PBX_ZAPTEL_VLDTMF=1
30558 if test "x${PBX_ZAPTEL}" = "x1" ; then
30564 if test "x$TERMCAP_LIB" != "x" ; then
30565 EDITLINE_LIB="$TERMCAP_LIB"
30566 elif test "x$TINFO_LIB" != "x" ; then
30567 EDITLINE_LIB="$TINFO_LIB"
30568 elif test "x$CURSES_LIB" != "x" ; then
30569 EDITLINE_LIB="$CURSES_LIB"
30570 elif test "x$NCURSES_LIB" != "x" ; then
30571 EDITLINE_LIB="$NCURSES_LIB"
30573 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
30574 echo "$as_me: error: *** termcap support not found" >&2;}
30575 { (exit 1); exit 1; }; }
30579 if test "${ac_cv_header_h323_h+set}" = set; then
30580 { echo "$as_me:$LINENO: checking for h323.h" >&5
30581 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30582 if test "${ac_cv_header_h323_h+set}" = set; then
30583 echo $ECHO_N "(cached) $ECHO_C" >&6
30585 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30586 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30588 # Is the header compilable?
30589 { echo "$as_me:$LINENO: checking h323.h usability" >&5
30590 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
30591 cat >conftest.$ac_ext <<_ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h. */
30597 $ac_includes_default
30600 rm -f conftest.$ac_objext
30601 if { (ac_try="$ac_compile"
30602 case "(($ac_try" in
30603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30604 *) ac_try_echo
=$ac_try;;
30606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30607 (eval "$ac_compile") 2>conftest.er1
30609 grep -v '^ *+' conftest.er1
>conftest.err
30611 cat conftest.err
>&5
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); } && {
30614 test -z "$ac_c_werror_flag" ||
30615 test ! -s conftest.err
30616 } && test -s conftest.
$ac_objext; then
30617 ac_header_compiler
=yes
30619 echo "$as_me: failed program was:" >&5
30620 sed 's/^/| /' conftest.
$ac_ext >&5
30622 ac_header_compiler
=no
30625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30627 echo "${ECHO_T}$ac_header_compiler" >&6; }
30629 # Is the header present?
30630 { echo "$as_me:$LINENO: checking h323.h presence" >&5
30631 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
30632 cat >conftest.
$ac_ext <<_ACEOF
30635 cat confdefs.h
>>conftest.
$ac_ext
30636 cat >>conftest.
$ac_ext <<_ACEOF
30637 /* end confdefs.h. */
30640 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30641 case "(($ac_try" in
30642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30643 *) ac_try_echo=$ac_try;;
30645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30648 grep -v '^ *+' conftest.er1 >conftest.err
30650 cat conftest.err >&5
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } >/dev/null && {
30653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30654 test ! -s conftest.err
30656 ac_header_preproc=yes
30658 echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.$ac_ext >&5
30661 ac_header_preproc=no
30664 rm -f conftest.err conftest.$ac_ext
30665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30666 echo "${ECHO_T}$ac_header_preproc" >&6; }
30668 # So? What about this header?
30669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30671 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
30672 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30673 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
30674 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
30675 ac_header_preproc=yes
30678 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
30679 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
30680 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
30681 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
30682 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
30683 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
30684 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
30685 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
30686 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
30687 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
30688 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
30689 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
30691 ## ------------------------------- ##
30692 ## Report this to www.asterisk.org ##
30693 ## ------------------------------- ##
30695 ) | sed "s/^/$as_me: WARNING: /" >&2
30698 { echo "$as_me:$LINENO: checking for h323.h" >&5
30699 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30700 if test "${ac_cv_header_h323_h+set}" = set; then
30701 echo $ECHO_N "(cached) $ECHO_C" >&6
30703 ac_cv_header_h323_h=$ac_header_preproc
30705 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30706 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30709 if test $ac_cv_header_h323_h = yes; then
30718 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
30719 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
30720 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
30721 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
30722 echo $ECHO_N "(cached) $ECHO_C" >&6
30724 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
30725 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
30727 # Is the header compilable?
30728 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
30729 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
30730 cat >conftest.$ac_ext <<_ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h. */
30736 $ac_includes_default
30737 #include <linux/compiler.h>
30739 rm -f conftest.$ac_objext
30740 if { (ac_try="$ac_compile"
30741 case "(($ac_try" in
30742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30743 *) ac_try_echo
=$ac_try;;
30745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30746 (eval "$ac_compile") 2>conftest.er1
30748 grep -v '^ *+' conftest.er1
>conftest.err
30750 cat conftest.err
>&5
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); } && {
30753 test -z "$ac_c_werror_flag" ||
30754 test ! -s conftest.err
30755 } && test -s conftest.
$ac_objext; then
30756 ac_header_compiler
=yes
30758 echo "$as_me: failed program was:" >&5
30759 sed 's/^/| /' conftest.
$ac_ext >&5
30761 ac_header_compiler
=no
30764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30766 echo "${ECHO_T}$ac_header_compiler" >&6; }
30768 # Is the header present?
30769 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
30770 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
30771 cat >conftest.
$ac_ext <<_ACEOF
30774 cat confdefs.h
>>conftest.
$ac_ext
30775 cat >>conftest.
$ac_ext <<_ACEOF
30776 /* end confdefs.h. */
30777 #include <linux/compiler.h>
30779 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30780 case "(($ac_try" in
30781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30782 *) ac_try_echo=$ac_try;;
30784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30787 grep -v '^ *+' conftest.er1 >conftest.err
30789 cat conftest.err >&5
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); } >/dev/null && {
30792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30793 test ! -s conftest.err
30795 ac_header_preproc=yes
30797 echo "$as_me: failed program was:" >&5
30798 sed 's/^/| /' conftest.$ac_ext >&5
30800 ac_header_preproc=no
30803 rm -f conftest.err conftest.$ac_ext
30804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30805 echo "${ECHO_T}$ac_header_preproc" >&6; }
30807 # So? What about this header?
30808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30810 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
30811 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30812 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
30813 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
30814 ac_header_preproc=yes
30817 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
30818 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
30819 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
30820 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
30821 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
30822 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
30823 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
30824 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
30825 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
30826 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
30827 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
30828 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
30830 ## ------------------------------- ##
30831 ## Report this to www.asterisk.org ##
30832 ## ------------------------------- ##
30834 ) | sed "s/^/$as_me: WARNING: /" >&2
30837 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
30838 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
30839 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
30840 echo $ECHO_N "(cached) $ECHO_C" >&6
30842 ac_cv_header_linux_compiler_h=$ac_header_preproc
30844 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
30845 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
30848 if test $ac_cv_header_linux_compiler_h = yes; then
30850 cat >>confdefs.h <<_ACEOF
30851 #define HAVE_LINUX_COMPILER_H 1
30858 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
30859 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
30860 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
30861 echo $ECHO_N "(cached) $ECHO_C" >&6
30863 cat >conftest.$ac_ext <<_ACEOF
30866 cat confdefs.h >>conftest.$ac_ext
30867 cat >>conftest.$ac_ext <<_ACEOF
30868 /* end confdefs.h. */
30870 #include <linux/version.h>
30871 #ifdef HAVE_LINUX_COMPILER_H
30872 #include <linux/compiler.h>
30876 #include <linux/ixjuser.h>
30878 rm -f conftest.$ac_objext
30879 if { (ac_try="$ac_compile"
30880 case "(($ac_try" in
30881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30882 *) ac_try_echo
=$ac_try;;
30884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885 (eval "$ac_compile") 2>conftest.er1
30887 grep -v '^ *+' conftest.er1
>conftest.err
30889 cat conftest.err
>&5
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); } && {
30892 test -z "$ac_c_werror_flag" ||
30893 test ! -s conftest.err
30894 } && test -s conftest.
$ac_objext; then
30895 ac_cv_header_linux_ixjuser_h
=yes
30897 echo "$as_me: failed program was:" >&5
30898 sed 's/^/| /' conftest.
$ac_ext >&5
30900 ac_cv_header_linux_ixjuser_h
=no
30903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30905 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
30906 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
30907 if test $ac_cv_header_linux_ixjuser_h = yes; then
30916 if test "${cross_compiling}" = "no";
30918 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
30919 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
30920 if test "${ac_cv_file__sbin_launchd+set}" = set; then
30921 echo $ECHO_N "(cached) $ECHO_C" >&6
30923 test "$cross_compiling" = yes &&
30924 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30925 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30926 { (exit 1); exit 1; }; }
30927 if test -r "/sbin/launchd"; then
30928 ac_cv_file__sbin_launchd
=yes
30930 ac_cv_file__sbin_launchd
=no
30933 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
30934 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
30935 if test $ac_cv_file__sbin_launchd = yes; then
30937 cat >>confdefs.h
<<\_ACEOF
30938 #define HAVE_SBIN_LAUNCHD 1
30946 if test -n "$ac_tool_prefix"; then
30947 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
30948 set dummy
${ac_tool_prefix}gtk-config
; ac_word
=$2
30949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30951 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
30952 echo $ECHO_N "(cached) $ECHO_C" >&6
30954 if test -n "$GTKCONFIG"; then
30955 ac_cv_prog_GTKCONFIG
="$GTKCONFIG" # Let the user override the test.
30957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30958 for as_dir
in $PATH
30961 test -z "$as_dir" && as_dir
=.
30962 for ac_exec_ext
in '' $ac_executable_extensions; do
30963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30964 ac_cv_prog_GTKCONFIG
="${ac_tool_prefix}gtk-config"
30965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30974 GTKCONFIG
=$ac_cv_prog_GTKCONFIG
30975 if test -n "$GTKCONFIG"; then
30976 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
30977 echo "${ECHO_T}$GTKCONFIG" >&6; }
30979 { echo "$as_me:$LINENO: result: no" >&5
30980 echo "${ECHO_T}no" >&6; }
30985 if test -z "$ac_cv_prog_GTKCONFIG"; then
30986 ac_ct_GTKCONFIG
=$GTKCONFIG
30987 # Extract the first word of "gtk-config", so it can be a program name with args.
30988 set dummy gtk-config
; ac_word
=$2
30989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30991 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
30992 echo $ECHO_N "(cached) $ECHO_C" >&6
30994 if test -n "$ac_ct_GTKCONFIG"; then
30995 ac_cv_prog_ac_ct_GTKCONFIG
="$ac_ct_GTKCONFIG" # Let the user override the test.
30997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30998 for as_dir
in $PATH
31001 test -z "$as_dir" && as_dir
=.
31002 for ac_exec_ext
in '' $ac_executable_extensions; do
31003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31004 ac_cv_prog_ac_ct_GTKCONFIG
="gtk-config"
31005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31014 ac_ct_GTKCONFIG
=$ac_cv_prog_ac_ct_GTKCONFIG
31015 if test -n "$ac_ct_GTKCONFIG"; then
31016 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
31017 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
31019 { echo "$as_me:$LINENO: result: no" >&5
31020 echo "${ECHO_T}no" >&6; }
31023 if test "x$ac_ct_GTKCONFIG" = x
; then
31026 case $cross_compiling:$ac_tool_warned in
31028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31029 whose name does not start with the host triplet. If you think this
31030 configuration is useful to you, please write to autoconf@gnu.org." >&5
31031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31032 whose name does not start with the host triplet. If you think this
31033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31034 ac_tool_warned
=yes ;;
31036 GTKCONFIG
=$ac_ct_GTKCONFIG
31039 GTKCONFIG
="$ac_cv_prog_GTKCONFIG"
31042 if test ! "x${GTKCONFIG}" = xNo
; then
31043 GTK_INCLUDE
=$
(${GTKCONFIG} --cflags gthread
)
31044 GTK_LIB
=$
(${GTKCONFIG} --libs gthread
)
31047 cat >>confdefs.h
<<\_ACEOF
31057 if test -n "$ac_tool_prefix"; then
31058 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31059 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
31060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31062 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
31063 echo $ECHO_N "(cached) $ECHO_C" >&6
31065 if test -n "$PKGCONFIG"; then
31066 ac_cv_prog_PKGCONFIG
="$PKGCONFIG" # Let the user override the test.
31068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31069 for as_dir
in $PATH
31072 test -z "$as_dir" && as_dir
=.
31073 for ac_exec_ext
in '' $ac_executable_extensions; do
31074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31075 ac_cv_prog_PKGCONFIG
="${ac_tool_prefix}pkg-config"
31076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31085 PKGCONFIG
=$ac_cv_prog_PKGCONFIG
31086 if test -n "$PKGCONFIG"; then
31087 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
31088 echo "${ECHO_T}$PKGCONFIG" >&6; }
31090 { echo "$as_me:$LINENO: result: no" >&5
31091 echo "${ECHO_T}no" >&6; }
31096 if test -z "$ac_cv_prog_PKGCONFIG"; then
31097 ac_ct_PKGCONFIG
=$PKGCONFIG
31098 # Extract the first word of "pkg-config", so it can be a program name with args.
31099 set dummy pkg-config
; ac_word
=$2
31100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31102 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
31103 echo $ECHO_N "(cached) $ECHO_C" >&6
31105 if test -n "$ac_ct_PKGCONFIG"; then
31106 ac_cv_prog_ac_ct_PKGCONFIG
="$ac_ct_PKGCONFIG" # Let the user override the test.
31108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31109 for as_dir
in $PATH
31112 test -z "$as_dir" && as_dir
=.
31113 for ac_exec_ext
in '' $ac_executable_extensions; do
31114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31115 ac_cv_prog_ac_ct_PKGCONFIG
="pkg-config"
31116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31125 ac_ct_PKGCONFIG
=$ac_cv_prog_ac_ct_PKGCONFIG
31126 if test -n "$ac_ct_PKGCONFIG"; then
31127 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
31128 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
31130 { echo "$as_me:$LINENO: result: no" >&5
31131 echo "${ECHO_T}no" >&6; }
31134 if test "x$ac_ct_PKGCONFIG" = x
; then
31137 case $cross_compiling:$ac_tool_warned in
31139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31140 whose name does not start with the host triplet. If you think this
31141 configuration is useful to you, please write to autoconf@gnu.org." >&5
31142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31143 whose name does not start with the host triplet. If you think this
31144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31145 ac_tool_warned
=yes ;;
31147 PKGCONFIG
=$ac_ct_PKGCONFIG
31150 PKGCONFIG
="$ac_cv_prog_PKGCONFIG"
31153 if test ! "x${PKGCONFIG}" = xNo
; then
31154 GTK2_INCLUDE
=$
(${PKGCONFIG} gtk
+-2.0
--cflags 2>/dev
/null
)
31155 GTK2_LIB
=$
(${PKGCONFIG} gtk
+-2.0
--libs)
31158 cat >>confdefs.h
<<\_ACEOF
31159 #define HAVE_GTK2 1
31167 if test "${USE_CURL}" != "no"; then
31168 if test -n "$ac_tool_prefix"; then
31169 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
31170 set dummy
${ac_tool_prefix}curl-config
; ac_word
=$2
31171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31173 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
31174 echo $ECHO_N "(cached) $ECHO_C" >&6
31176 case $CURL_CONFIG in
31178 ac_cv_path_CURL_CONFIG
="$CURL_CONFIG" # Let the user override the test with a path.
31181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31182 for as_dir
in $PATH
31185 test -z "$as_dir" && as_dir
=.
31186 for ac_exec_ext
in '' $ac_executable_extensions; do
31187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31188 ac_cv_path_CURL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
31189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31199 CURL_CONFIG
=$ac_cv_path_CURL_CONFIG
31200 if test -n "$CURL_CONFIG"; then
31201 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
31202 echo "${ECHO_T}$CURL_CONFIG" >&6; }
31204 { echo "$as_me:$LINENO: result: no" >&5
31205 echo "${ECHO_T}no" >&6; }
31210 if test -z "$ac_cv_path_CURL_CONFIG"; then
31211 ac_pt_CURL_CONFIG
=$CURL_CONFIG
31212 # Extract the first word of "curl-config", so it can be a program name with args.
31213 set dummy curl-config
; ac_word
=$2
31214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31216 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
31217 echo $ECHO_N "(cached) $ECHO_C" >&6
31219 case $ac_pt_CURL_CONFIG in
31221 ac_cv_path_ac_pt_CURL_CONFIG
="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
31224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31225 for as_dir
in $PATH
31228 test -z "$as_dir" && as_dir
=.
31229 for ac_exec_ext
in '' $ac_executable_extensions; do
31230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31231 ac_cv_path_ac_pt_CURL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
31232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31242 ac_pt_CURL_CONFIG
=$ac_cv_path_ac_pt_CURL_CONFIG
31243 if test -n "$ac_pt_CURL_CONFIG"; then
31244 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
31245 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
31247 { echo "$as_me:$LINENO: result: no" >&5
31248 echo "${ECHO_T}no" >&6; }
31251 if test "x$ac_pt_CURL_CONFIG" = x
; then
31254 case $cross_compiling:$ac_tool_warned in
31256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31257 whose name does not start with the host triplet. If you think this
31258 configuration is useful to you, please write to autoconf@gnu.org." >&5
31259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31260 whose name does not start with the host triplet. If you think this
31261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31262 ac_tool_warned
=yes ;;
31264 CURL_CONFIG
=$ac_pt_CURL_CONFIG
31267 CURL_CONFIG
="$ac_cv_path_CURL_CONFIG"
31270 if test ! x
"${CURL_CONFIG}" = xNo
; then
31271 # check for version
31272 if test $
(printf "%d" 0x$
(${CURL_CONFIG} --vernum)) -ge $
(printf "%d" 0x070907); then
31273 CURL_INCLUDE
=$
(${CURL_CONFIG} --cflags)
31274 CURL_LIB
=$
(${CURL_CONFIG} --libs)
31276 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
31277 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
31278 saved_cppflags
="${CPPFLAGS}"
31279 CPPFLAGS
="${CPPFLAGS} ${CURL_INCLUDE}"
31280 cat >conftest.
$ac_ext <<_ACEOF
31283 cat confdefs.h
>>conftest.
$ac_ext
31284 cat >>conftest.
$ac_ext <<_ACEOF
31285 /* end confdefs.h. */
31286 #include <curl/curl.h>
31296 rm -f conftest.
$ac_objext
31297 if { (ac_try
="$ac_compile"
31298 case "(($ac_try" in
31299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_compile") 2>conftest.er1
31305 grep -v '^ *+' conftest.er1 >conftest.err
31307 cat conftest.err >&5
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); } && {
31310 test -z "$ac_c_werror_flag" ||
31311 test ! -s conftest.err
31312 } && test -s conftest.$ac_objext; then
31314 { echo "$as_me:$LINENO: result: yes" >&5
31315 echo "${ECHO_T}yes" >&6; }
31319 echo "$as_me: failed program was:" >&5
31320 sed 's/^/| /' conftest.$ac_ext >&5
31323 { echo "$as_me:$LINENO: result: no" >&5
31324 echo "${ECHO_T}no" >&6; }
31330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31331 CPPFLAGS="${saved_cppflags}"
31332 if test "${ac_cv_curl_h}" = "yes"; then
31335 cat >>confdefs.h <<\_ACEOF
31336 #define HAVE_CURL 1
31344 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
31346 cat >confcache <<\_ACEOF
31347 # This file is a shell script that caches the results of configure
31348 # tests run on this system so they can be shared between configure
31349 # scripts and configure runs, see configure's option --config-cache.
31350 # It is not useful on other systems. If it contains results you don't
31351 # want to keep, you may remove or edit it.
31353 # config.status only pays attention to the cache file if you give it
31354 # the --recheck option to rerun configure.
31356 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
31357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31358 # following values.
31362 # The following way of writing the cache mishandles newlines in values,
31363 # but we know of no workaround that is simple, portable, and efficient.
31364 # So, we kill variables containing newlines.
31365 # Ultrix sh set writes to stderr and can't be redirected directly,
31366 # and sets the high bit in the cache file unless we assign to the vars.
31368 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31369 eval ac_val
=\$
$ac_var
31373 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31374 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31377 _ | IFS | as_nl
) ;; #(
31378 *) $as_unset $ac_var ;;
31384 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31385 *${as_nl}ac_space
=\
*)
31386 # `set' does not quote correctly, so add quotes (double-quote
31387 # substitution turns \\\\ into \\, and sed turns \\ into \).
31390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31393 # `set' quotes correctly as required by POSIX, so do not add quotes.
31394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31405 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31407 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31408 if test -w "$cache_file"; then
31409 test "x$cache_file" != "x/dev/null" &&
31410 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31411 echo "$as_me: updating cache $cache_file" >&6;}
31412 cat confcache
>$cache_file
31414 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31415 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31420 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
31421 # Let make expand exec_prefix.
31422 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31424 DEFS
=-DHAVE_CONFIG_H
31428 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
31429 # 1. Remove the extension, and $U if already installed.
31430 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
31431 ac_i
=`echo "$ac_i" | sed "$ac_script"`
31432 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31433 # will be set to the directory where LIBOBJS objects are built.
31434 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31435 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31437 LIBOBJS
=$ac_libobjs
31439 LTLIBOBJS
=$ac_ltlibobjs
31443 : ${CONFIG_STATUS=./config.status}
31444 ac_clean_files_save
=$ac_clean_files
31445 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31446 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31447 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31448 cat >$CONFIG_STATUS <<_ACEOF
31450 # Generated by $as_me.
31451 # Run this file to recreate the current configuration.
31452 # Compiler output produced by configure, useful for debugging
31453 # configure, is in config.log if it exists.
31456 ac_cs_recheck=false
31458 SHELL=\${CONFIG_SHELL-$SHELL}
31461 cat >>$CONFIG_STATUS <<\_ACEOF
31462 ## --------------------- ##
31463 ## M4sh Initialization. ##
31464 ## --------------------- ##
31466 # Be more Bourne compatible
31467 DUALCASE
=1; export DUALCASE
# for MKS sh
31468 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
31471 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31472 # is contrary to our usage. Disable this feature.
31473 alias -g '${1+"$@"}'='"$@"'
31474 setopt NO_GLOB_SUBST
31476 case `(set -o) 2>/dev/null` in
31477 *posix
*) set -o posix
;;
31486 # Avoid depending upon Character Ranges.
31487 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31488 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31489 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31490 as_cr_digits
='0123456789'
31491 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31493 # The user is always right.
31494 if test "${PATH_SEPARATOR+set}" != set; then
31495 echo "#! /bin/sh" >conf$$.sh
31496 echo "exit 0" >>conf$$.sh
31498 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
31506 # Support unset when possible.
31507 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
31515 # We need space, tab and new line, in precisely that order. Quoting is
31516 # there to prevent editors from complaining about space-tab.
31517 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31518 # splitting by setting IFS to empty value.)
31523 # Find who we are. Look in the path if we contain no directory separator.
31525 *[\\/]* ) as_myself
=$0 ;;
31526 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31527 for as_dir
in $PATH
31530 test -z "$as_dir" && as_dir
=.
31531 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
31537 # We did not find ourselves, most probably we were run as `sh COMMAND'
31538 # in which case we are not to be found in the path.
31539 if test "x$as_myself" = x
; then
31542 if test ! -f "$as_myself"; then
31543 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31544 { (exit 1); exit 1; }
31547 # Work around bugs in pre-3.0 UWIN ksh.
31548 for as_var
in ENV MAIL MAILPATH
31549 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
31557 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31558 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31559 LC_TELEPHONE LC_TIME
31561 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31562 eval $as_var=C
; export $as_var
31564 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
31568 # Required to use basename.
31569 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31570 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31576 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31577 as_basename
=basename
31583 # Name of the executable.
31584 as_me
=`$as_basename -- "$0" ||
31585 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31586 X"$0" : 'X\(//\)$' \| \
31587 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31589 sed '/^.*\/\([^/][^/]*\)\/*$/{
31608 as_lineno_1
=$LINENO
31609 as_lineno_2
=$LINENO
31610 test "x$as_lineno_1" != "x$as_lineno_2" &&
31611 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
31613 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31614 # uniformly replaced by the line number. The first 'sed' inserts a
31615 # line-number line after each line using $LINENO; the second 'sed'
31616 # does the real work. The second script uses 'N' to pair each
31617 # line-number line with the line containing $LINENO, and appends
31618 # trailing '-' during substitution so that $LINENO is not a special
31619 # case at line end.
31620 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31621 # scripts with optimization help from Paolo Bonzini. Blame Lee
31622 # E. McMahon (1931-1989) for sed's syntax. :-)
31634 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31637 ' >$as_me.lineno
&&
31638 chmod +x
"$as_me.lineno" ||
31639 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31640 { (exit 1); exit 1; }; }
31642 # Don't try to exec as it changes $[0], causing all sort of problems
31643 # (the dirname of $[0] is not the place where we might find the
31644 # original and so on. Autoconf is especially sensitive to this).
31645 .
"./$as_me.lineno"
31646 # Exit status is that of the last command.
31651 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31657 ECHO_C
= ECHO_N
= ECHO_T
=
31658 case `echo -n x` in
31660 case `echo 'x\c'` in
31661 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31668 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31669 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31675 rm -f conf$$ conf$$.exe conf$$.
file
31676 if test -d conf$$.dir
; then
31677 rm -f conf$$.dir
/conf$$.
file
31683 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31685 # ... but there are two gotchas:
31686 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31687 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31688 # In both cases, we have to default to `cp -p'.
31689 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31691 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31696 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31697 rmdir conf$$.dir
2>/dev
/null
31699 if mkdir
-p .
2>/dev
/null
; then
31702 test -d .
/-p && rmdir .
/-p
31706 if test -x / >/dev
/null
2>&1; then
31707 as_test_x
='test -x'
31709 if ls -dL / >/dev
/null
2>&1; then
31716 if test -d "$1"; then
31722 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31723 ???[sx]*):;;*)false;;esac;fi
31727 as_executable_p
=$as_test_x
31729 # Sed expression to map a string onto a valid CPP name.
31730 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31732 # Sed expression to map a string onto a valid variable name.
31733 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31738 # Save the log message, to keep $[0] and so on meaningful, and to
31739 # report actual input values of CONFIG_FILES etc. instead of their
31740 # values after options handling.
31742 This file was extended by asterisk $as_me 1.4, which was
31743 generated by GNU Autoconf 2.61. Invocation command line was
31745 CONFIG_FILES = $CONFIG_FILES
31746 CONFIG_HEADERS = $CONFIG_HEADERS
31747 CONFIG_LINKS = $CONFIG_LINKS
31748 CONFIG_COMMANDS = $CONFIG_COMMANDS
31751 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31756 cat >>$CONFIG_STATUS <<_ACEOF
31757 # Files that config.status was made for.
31758 config_files="$ac_config_files"
31759 config_headers="$ac_config_headers"
31763 cat >>$CONFIG_STATUS <<\_ACEOF
31765 \`$as_me' instantiates files from templates according to the
31766 current configuration.
31768 Usage: $0 [OPTIONS] [FILE]...
31770 -h, --help print this help, then exit
31771 -V, --version print version number and configuration settings, then exit
31772 -q, --quiet do not print progress messages
31773 -d, --debug don't remove temporary files
31774 --recheck update $as_me by reconfiguring in the same conditions
31775 --file=FILE[:TEMPLATE]
31776 instantiate the configuration file FILE
31777 --header=FILE[:TEMPLATE]
31778 instantiate the configuration header FILE
31780 Configuration files:
31783 Configuration headers:
31786 Report bugs to <bug-autoconf@gnu.org>."
31789 cat >>$CONFIG_STATUS <<_ACEOF
31791 asterisk config.status 1.4
31792 configured by $0, generated by GNU Autoconf 2.61,
31793 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31795 Copyright (C) 2006 Free Software Foundation, Inc.
31796 This config.status script is free software; the Free Software Foundation
31797 gives unlimited permission to copy, distribute and modify it."
31804 cat >>$CONFIG_STATUS <<\_ACEOF
31805 # If no file are specified by the user, then we need to provide default
31806 # value. By we need to know if files were specified by the user.
31812 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31813 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31824 # Handling of the options.
31825 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31827 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31828 echo "$ac_cs_version"; exit ;;
31829 --debug |
--debu |
--deb |
--de |
--d |
-d )
31831 --file |
--fil |
--fi |
--f )
31833 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
31834 ac_need_defaults
=false
;;
31835 --header |
--heade |
--head |
--hea )
31837 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
31838 ac_need_defaults
=false
;;
31840 # Conflict between --help and --header
31841 { echo "$as_me: error: ambiguous option: $1
31842 Try \`$0 --help' for more information." >&2
31843 { (exit 1); exit 1; }; };;
31844 --help |
--hel |
-h )
31845 echo "$ac_cs_usage"; exit ;;
31846 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31847 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31850 # This is an error.
31851 -*) { echo "$as_me: error: unrecognized option: $1
31852 Try \`$0 --help' for more information." >&2
31853 { (exit 1); exit 1; }; } ;;
31855 *) ac_config_targets
="$ac_config_targets $1"
31856 ac_need_defaults
=false
;;
31862 ac_configure_extra_args
=
31864 if $ac_cs_silent; then
31866 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31870 cat >>$CONFIG_STATUS <<_ACEOF
31871 if \$ac_cs_recheck; then
31872 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31873 CONFIG_SHELL=$SHELL
31874 export CONFIG_SHELL
31875 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31879 cat >>$CONFIG_STATUS <<\_ACEOF
31883 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31884 ## Running $as_me. ##
31890 cat >>$CONFIG_STATUS <<_ACEOF
31893 cat >>$CONFIG_STATUS <<\_ACEOF
31895 # Handling of arguments.
31896 for ac_config_target
in $ac_config_targets
31898 case $ac_config_target in
31899 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
31900 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
31901 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
31902 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
31904 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31905 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31906 { (exit 1); exit 1; }; };;
31911 # If the user did not use the arguments to specify the items to instantiate,
31912 # then the envvar interface is used. Set only those that are not.
31913 # We use the long form for the default assignment because of an extremely
31914 # bizarre bug on SunOS 4.1.3.
31915 if $ac_need_defaults; then
31916 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
31917 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
31920 # Have a temporary directory for convenience. Make it in the build tree
31921 # simply because there is no reason against having it here, and in addition,
31922 # creating and moving files from /tmp can sometimes cause problems.
31923 # Hook for its removal unless debugging.
31924 # Note that there is a small window in which the directory will not be cleaned:
31925 # after its creation but before its name has been assigned to `$tmp'.
31929 trap 'exit_status=$?
31930 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31932 trap '{ (exit 1); exit 1; }' 1 2 13 15
31934 # Create a (secure) tmp directory for tmp files.
31937 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31938 test -n "$tmp" && test -d "$tmp"
31941 tmp
=.
/conf$$
-$RANDOM
31942 (umask 077 && mkdir
"$tmp")
31945 echo "$me: cannot create a temporary directory in ." >&2
31946 { (exit 1); exit 1; }
31950 # Set up the sed scripts for CONFIG_FILES section.
31953 # No need to generate the scripts if there are no CONFIG_FILES.
31954 # This happens for instance when ./config.status config.h
31955 if test -n "$CONFIG_FILES"; then
31962 for ac_last_try
in false false false false false
:; do
31963 cat >conf$
$subs.
sed <<_ACEOF
31964 SHELL!$SHELL$ac_delim
31965 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31966 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31967 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31968 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31969 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31970 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31971 exec_prefix!$exec_prefix$ac_delim
31972 prefix!$prefix$ac_delim
31973 program_transform_name!$program_transform_name$ac_delim
31974 bindir!$bindir$ac_delim
31975 sbindir!$sbindir$ac_delim
31976 libexecdir!$libexecdir$ac_delim
31977 datarootdir!$datarootdir$ac_delim
31978 datadir!$datadir$ac_delim
31979 sysconfdir!$sysconfdir$ac_delim
31980 sharedstatedir!$sharedstatedir$ac_delim
31981 localstatedir!$localstatedir$ac_delim
31982 includedir!$includedir$ac_delim
31983 oldincludedir!$oldincludedir$ac_delim
31984 docdir!$docdir$ac_delim
31985 infodir!$infodir$ac_delim
31986 htmldir!$htmldir$ac_delim
31987 dvidir!$dvidir$ac_delim
31988 pdfdir!$pdfdir$ac_delim
31989 psdir!$psdir$ac_delim
31990 libdir!$libdir$ac_delim
31991 localedir!$localedir$ac_delim
31992 mandir!$mandir$ac_delim
31993 DEFS!$DEFS$ac_delim
31994 ECHO_C!$ECHO_C$ac_delim
31995 ECHO_N!$ECHO_N$ac_delim
31996 ECHO_T!$ECHO_T$ac_delim
31997 LIBS!$LIBS$ac_delim
31998 build_alias!$build_alias$ac_delim
31999 host_alias!$host_alias$ac_delim
32000 target_alias!$target_alias$ac_delim
32001 build!$build$ac_delim
32002 build_cpu!$build_cpu$ac_delim
32003 build_vendor!$build_vendor$ac_delim
32004 build_os!$build_os$ac_delim
32005 host!$host$ac_delim
32006 host_cpu!$host_cpu$ac_delim
32007 host_vendor!$host_vendor$ac_delim
32008 host_os!$host_os$ac_delim
32010 CFLAGS!$CFLAGS$ac_delim
32011 LDFLAGS!$LDFLAGS$ac_delim
32012 CPPFLAGS!$CPPFLAGS$ac_delim
32013 ac_ct_CC!$ac_ct_CC$ac_delim
32014 EXEEXT!$EXEEXT$ac_delim
32015 OBJEXT!$OBJEXT$ac_delim
32017 GREP!$GREP$ac_delim
32018 EGREP!$EGREP$ac_delim
32019 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
32020 BUILD_CPU!$BUILD_CPU$ac_delim
32021 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
32022 BUILD_OS!$BUILD_OS$ac_delim
32023 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
32024 HOST_CPU!$HOST_CPU$ac_delim
32025 HOST_VENDOR!$HOST_VENDOR$ac_delim
32026 HOST_OS!$HOST_OS$ac_delim
32027 OSARCH!$OSARCH$ac_delim
32028 UNAME!$UNAME$ac_delim
32029 PBX_OSREV!$PBX_OSREV$ac_delim
32032 RANLIB!$RANLIB$ac_delim
32033 CXXFLAGS!$CXXFLAGS$ac_delim
32034 ac_ct_CXX!$ac_ct_CXX$ac_delim
32035 CXXCPP!$CXXCPP$ac_delim
32038 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32039 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32040 INSTALL_DATA!$INSTALL_DATA$ac_delim
32041 LN_S!$LN_S$ac_delim
32042 GNU_MAKE!$GNU_MAKE$ac_delim
32043 STRIP!$STRIP$ac_delim
32045 GNU_LD!$GNU_LD$ac_delim
32046 FIND!$FIND$ac_delim
32047 COMPRESS!$COMPRESS$ac_delim
32048 BASENAME!$BASENAME$ac_delim
32050 DIRNAME!$DIRNAME$ac_delim
32053 WGET!$WGET$ac_delim
32054 FETCH!$FETCH$ac_delim
32055 DOWNLOAD!$DOWNLOAD$ac_delim
32056 SOXMIX!$SOXMIX$ac_delim
32057 acx_pthread_config!$acx_pthread_config$ac_delim
32058 PTHREAD_CC!$PTHREAD_CC$ac_delim
32059 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
32060 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
32063 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32065 elif $ac_last_try; then
32066 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32067 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32068 { (exit 1); exit 1; }; }
32070 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
32074 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32075 if test -n "$ac_eof"; then
32076 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
32077 ac_eof
=`expr $ac_eof + 1`
32080 cat >>$CONFIG_STATUS <<_ACEOF
32081 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32085 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32086 s/^/s,@/; s/!/@,|#_!!_#|/
32089 s/'"$ac_delim"'$/,g/; t
32091 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32092 ' >>$CONFIG_STATUS <conf$
$subs.
sed
32093 rm -f conf$
$subs.
sed
32094 cat >>$CONFIG_STATUS <<_ACEOF
32100 for ac_last_try
in false false false false false
:; do
32101 cat >conf$
$subs.
sed <<_ACEOF
32102 AST_DEVMODE!$AST_DEVMODE$ac_delim
32103 ALSA_LIB!$ALSA_LIB$ac_delim
32104 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
32105 ALSA_DIR!$ALSA_DIR$ac_delim
32106 PBX_ALSA!$PBX_ALSA$ac_delim
32107 CURL_LIB!$CURL_LIB$ac_delim
32108 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
32109 CURL_DIR!$CURL_DIR$ac_delim
32110 PBX_CURL!$PBX_CURL$ac_delim
32111 CAP_LIB!$CAP_LIB$ac_delim
32112 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
32113 CAP_DIR!$CAP_DIR$ac_delim
32114 PBX_CAP!$PBX_CAP$ac_delim
32115 CURSES_LIB!$CURSES_LIB$ac_delim
32116 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
32117 CURSES_DIR!$CURSES_DIR$ac_delim
32118 PBX_CURSES!$PBX_CURSES$ac_delim
32119 DAHDI_LIB!$DAHDI_LIB$ac_delim
32120 DAHDI_INCLUDE!$DAHDI_INCLUDE$ac_delim
32121 DAHDI_DIR!$DAHDI_DIR$ac_delim
32122 PBX_DAHDI!$PBX_DAHDI$ac_delim
32123 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
32124 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
32125 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
32126 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
32127 GSM_LIB!$GSM_LIB$ac_delim
32128 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
32129 GSM_DIR!$GSM_DIR$ac_delim
32130 PBX_GSM!$PBX_GSM$ac_delim
32131 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
32132 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
32133 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
32134 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
32135 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
32136 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
32137 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
32138 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
32139 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
32140 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
32141 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
32142 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
32143 KDE_LIB!$KDE_LIB$ac_delim
32144 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
32145 KDE_DIR!$KDE_DIR$ac_delim
32146 PBX_KDE!$PBX_KDE$ac_delim
32147 LTDL_LIB!$LTDL_LIB$ac_delim
32148 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
32149 LTDL_DIR!$LTDL_DIR$ac_delim
32150 PBX_LTDL!$PBX_LTDL$ac_delim
32151 MISDN_LIB!$MISDN_LIB$ac_delim
32152 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
32153 MISDN_DIR!$MISDN_DIR$ac_delim
32154 PBX_MISDN!$PBX_MISDN$ac_delim
32155 NBS_LIB!$NBS_LIB$ac_delim
32156 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
32157 NBS_DIR!$NBS_DIR$ac_delim
32158 PBX_NBS!$PBX_NBS$ac_delim
32159 NCURSES_LIB!$NCURSES_LIB$ac_delim
32160 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
32161 NCURSES_DIR!$NCURSES_DIR$ac_delim
32162 PBX_NCURSES!$PBX_NCURSES$ac_delim
32163 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
32164 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
32165 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
32166 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
32167 NEWT_LIB!$NEWT_LIB$ac_delim
32168 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
32169 NEWT_DIR!$NEWT_DIR$ac_delim
32170 PBX_NEWT!$PBX_NEWT$ac_delim
32171 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
32172 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
32173 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
32174 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
32175 OGG_LIB!$OGG_LIB$ac_delim
32176 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
32177 OGG_DIR!$OGG_DIR$ac_delim
32178 PBX_OGG!$PBX_OGG$ac_delim
32179 OSPTK_LIB!$OSPTK_LIB$ac_delim
32180 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
32181 OSPTK_DIR!$OSPTK_DIR$ac_delim
32182 PBX_OSPTK!$PBX_OSPTK$ac_delim
32183 OSS_LIB!$OSS_LIB$ac_delim
32184 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
32185 OSS_DIR!$OSS_DIR$ac_delim
32186 PBX_OSS!$PBX_OSS$ac_delim
32187 POPT_LIB!$POPT_LIB$ac_delim
32188 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
32189 POPT_DIR!$POPT_DIR$ac_delim
32190 PBX_POPT!$PBX_POPT$ac_delim
32191 PGSQL_LIB!$PGSQL_LIB$ac_delim
32192 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
32193 PGSQL_DIR!$PGSQL_DIR$ac_delim
32194 PBX_PGSQL!$PBX_PGSQL$ac_delim
32195 PRI_LIB!$PRI_LIB$ac_delim
32196 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
32197 PRI_DIR!$PRI_DIR$ac_delim
32198 PBX_PRI!$PBX_PRI$ac_delim
32201 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32203 elif $ac_last_try; then
32204 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32205 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32206 { (exit 1); exit 1; }; }
32208 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
32212 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32213 if test -n "$ac_eof"; then
32214 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
32215 ac_eof
=`expr $ac_eof + 1`
32218 cat >>$CONFIG_STATUS <<_ACEOF
32219 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32220 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32223 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32224 s/^/s,@/; s/!/@,|#_!!_#|/
32227 s/'"$ac_delim"'$/,g/; t
32229 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32230 ' >>$CONFIG_STATUS <conf$
$subs.
sed
32231 rm -f conf$
$subs.
sed
32232 cat >>$CONFIG_STATUS <<_ACEOF
32238 for ac_last_try
in false false false false false
:; do
32239 cat >conf$
$subs.
sed <<_ACEOF
32240 PWLIB_LIB!$PWLIB_LIB$ac_delim
32241 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
32242 PWLIB_DIR!$PWLIB_DIR$ac_delim
32243 PBX_PWLIB!$PBX_PWLIB$ac_delim
32244 OPENH323_LIB!$OPENH323_LIB$ac_delim
32245 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
32246 OPENH323_DIR!$OPENH323_DIR$ac_delim
32247 PBX_OPENH323!$PBX_OPENH323$ac_delim
32248 RADIUS_LIB!$RADIUS_LIB$ac_delim
32249 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
32250 RADIUS_DIR!$RADIUS_DIR$ac_delim
32251 PBX_RADIUS!$PBX_RADIUS$ac_delim
32252 SPEEX_LIB!$SPEEX_LIB$ac_delim
32253 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
32254 SPEEX_DIR!$SPEEX_DIR$ac_delim
32255 PBX_SPEEX!$PBX_SPEEX$ac_delim
32256 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
32257 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
32258 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
32259 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
32260 SQLITE_LIB!$SQLITE_LIB$ac_delim
32261 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
32262 SQLITE_DIR!$SQLITE_DIR$ac_delim
32263 PBX_SQLITE!$PBX_SQLITE$ac_delim
32264 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
32265 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
32266 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
32267 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
32268 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
32269 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
32270 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
32271 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
32272 FREETDS_LIB!$FREETDS_LIB$ac_delim
32273 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
32274 FREETDS_DIR!$FREETDS_DIR$ac_delim
32275 PBX_FREETDS!$PBX_FREETDS$ac_delim
32276 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
32277 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
32278 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
32279 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
32280 TINFO_LIB!$TINFO_LIB$ac_delim
32281 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
32282 TINFO_DIR!$TINFO_DIR$ac_delim
32283 PBX_TINFO!$PBX_TINFO$ac_delim
32284 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
32285 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
32286 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
32287 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
32288 USB_LIB!$USB_LIB$ac_delim
32289 USB_INCLUDE!$USB_INCLUDE$ac_delim
32290 USB_DIR!$USB_DIR$ac_delim
32291 PBX_USB!$PBX_USB$ac_delim
32292 VORBIS_LIB!$VORBIS_LIB$ac_delim
32293 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
32294 VORBIS_DIR!$VORBIS_DIR$ac_delim
32295 PBX_VORBIS!$PBX_VORBIS$ac_delim
32296 VPB_LIB!$VPB_LIB$ac_delim
32297 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
32298 VPB_DIR!$VPB_DIR$ac_delim
32299 PBX_VPB!$PBX_VPB$ac_delim
32300 ZLIB_LIB!$ZLIB_LIB$ac_delim
32301 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
32302 ZLIB_DIR!$ZLIB_DIR$ac_delim
32303 PBX_ZLIB!$PBX_ZLIB$ac_delim
32304 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
32305 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
32306 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
32307 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
32308 ALLOCA!$ALLOCA$ac_delim
32309 LIBOBJS!$LIBOBJS$ac_delim
32310 POW_LIB!$POW_LIB$ac_delim
32311 GC_CFLAGS!$GC_CFLAGS$ac_delim
32312 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
32313 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
32314 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
32315 PBX_DAHDI_TRANSCODE!$PBX_DAHDI_TRANSCODE$ac_delim
32316 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
32317 KDEINIT!$KDEINIT$ac_delim
32318 KDEDIR!$KDEDIR$ac_delim
32319 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
32320 PG_CONFIG!$PG_CONFIG$ac_delim
32321 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
32322 PWLIBDIR!$PWLIBDIR$ac_delim
32323 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
32324 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
32325 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
32326 OPENH323DIR!$OPENH323DIR$ac_delim
32327 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
32328 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
32329 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
32330 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
32331 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
32332 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
32333 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
32334 PBX_H323!$PBX_H323$ac_delim
32335 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
32336 GTKCONFIG!$GTKCONFIG$ac_delim
32339 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32341 elif $ac_last_try; then
32342 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32343 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32344 { (exit 1); exit 1; }; }
32346 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
32350 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32351 if test -n "$ac_eof"; then
32352 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
32353 ac_eof
=`expr $ac_eof + 1`
32356 cat >>$CONFIG_STATUS <<_ACEOF
32357 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
32358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32361 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32362 s/^/s,@/; s/!/@,|#_!!_#|/
32365 s/'"$ac_delim"'$/,g/; t
32367 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32368 ' >>$CONFIG_STATUS <conf$
$subs.
sed
32369 rm -f conf$
$subs.
sed
32370 cat >>$CONFIG_STATUS <<_ACEOF
32376 for ac_last_try
in false false false false false
:; do
32377 cat >conf$
$subs.
sed <<_ACEOF
32378 PBX_GTK!$PBX_GTK$ac_delim
32379 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
32380 GTK_LIB!$GTK_LIB$ac_delim
32381 PKGCONFIG!$PKGCONFIG$ac_delim
32382 PBX_GTK2!$PBX_GTK2$ac_delim
32383 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
32384 GTK2_LIB!$GTK2_LIB$ac_delim
32385 CURL_CONFIG!$CURL_CONFIG$ac_delim
32386 LTLIBOBJS!$LTLIBOBJS$ac_delim
32389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
32391 elif $ac_last_try; then
32392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32393 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32394 { (exit 1); exit 1; }; }
32396 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
32400 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32401 if test -n "$ac_eof"; then
32402 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
32403 ac_eof
=`expr $ac_eof + 1`
32406 cat >>$CONFIG_STATUS <<_ACEOF
32407 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
32408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32411 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32412 s/^/s,@/; s/!/@,|#_!!_#|/
32415 s/'"$ac_delim"'$/,g/; t
32417 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32418 ' >>$CONFIG_STATUS <conf$
$subs.
sed
32419 rm -f conf$
$subs.
sed
32420 cat >>$CONFIG_STATUS <<_ACEOF
32427 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32428 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32429 # trailing colons and then remove the whole line if VPATH becomes empty
32430 # (actually we leave an empty line to preserve line numbers).
32431 if test "x$srcdir" = x.
; then
32432 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
32433 s/:*\$(srcdir):*/:/
32434 s/:*\${srcdir}:*/:/
32436 s/^\([^=]*=[ ]*\):*/\1/
32442 cat >>$CONFIG_STATUS <<\_ACEOF
32443 fi # test -n "$CONFIG_FILES"
32446 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
32449 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32451 case $ac_mode$ac_tag in
32453 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32454 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32455 { (exit 1); exit 1; }; };;
32456 :[FH
]-) ac_tag
=-:-;;
32457 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32474 -) ac_f
="$tmp/stdin";;
32475 *) # Look for the file first in the build tree, then in the source tree
32476 # (if the path is not absolute). The absolute path cannot be DOS-style,
32477 # because $ac_f cannot contain `:'.
32481 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32483 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32484 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32485 { (exit 1); exit 1; }; };;
32487 ac_file_inputs
="$ac_file_inputs $ac_f"
32490 # Let's still pretend it is `configure' which instantiates (i.e., don't
32491 # use $as_me), people would be surprised to read:
32492 # /* config.h. Generated by config.status. */
32493 configure_input
="Generated from "`IFS=:
32494 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32495 if test x
"$ac_file" != x-
; then
32496 configure_input
="$ac_file. $configure_input"
32497 { echo "$as_me:$LINENO: creating $ac_file" >&5
32498 echo "$as_me: creating $ac_file" >&6;}
32502 *:-:* |
*:-) cat >"$tmp/stdin";;
32507 ac_dir
=`$as_dirname -- "$ac_file" ||
32508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32509 X"$ac_file" : 'X\(//\)[^/]' \| \
32510 X"$ac_file" : 'X\(//\)$' \| \
32511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32517 /^X\(\/\/\)[^/].*/{
32532 -*) as_dir
=.
/$as_dir;;
32534 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
32538 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32539 *) as_qdir
=$as_dir;;
32541 as_dirs
="'$as_qdir' $as_dirs"
32542 as_dir
=`$as_dirname -- "$as_dir" ||
32543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32544 X"$as_dir" : 'X\(//\)[^/]' \| \
32545 X"$as_dir" : 'X\(//\)$' \| \
32546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32552 /^X\(\/\/\)[^/].*/{
32565 test -d "$as_dir" && break
32567 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32568 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32569 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32570 { (exit 1); exit 1; }; }; }
32574 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32576 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32577 # A ".." for each directory in $ac_dir_suffix.
32578 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32579 case $ac_top_builddir_sub in
32580 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32581 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32584 ac_abs_top_builddir
=$ac_pwd
32585 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32586 # for backward compatibility:
32587 ac_top_builddir
=$ac_top_build_prefix
32590 .
) # We are building in place.
32592 ac_top_srcdir
=$ac_top_builddir_sub
32593 ac_abs_top_srcdir
=$ac_pwd ;;
32594 [\\/]* | ?
:[\\/]* ) # Absolute name.
32595 ac_srcdir
=$srcdir$ac_dir_suffix;
32596 ac_top_srcdir
=$srcdir
32597 ac_abs_top_srcdir
=$srcdir ;;
32598 *) # Relative name.
32599 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32600 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32601 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32603 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32613 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32614 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32618 cat >>$CONFIG_STATUS <<\_ACEOF
32619 # If the template does not know about datarootdir, expand it.
32620 # FIXME: This hack should be removed a few years after 2.60.
32621 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32623 case `sed -n '/datarootdir/ {
32632 ' $ac_file_inputs` in
32633 *datarootdir
*) ac_datarootdir_seen
=yes;;
32634 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32635 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32636 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32638 cat >>$CONFIG_STATUS <<_ACEOF
32639 ac_datarootdir_hack='
32640 s&@datadir@&$datadir&g
32641 s&@docdir@&$docdir&g
32642 s&@infodir@&$infodir&g
32643 s&@localedir@&$localedir&g
32644 s&@mandir@&$mandir&g
32645 s&\\\${datarootdir}&$datarootdir&g' ;;
32649 # Neutralize VPATH when `$srcdir' = `.'.
32650 # Shell code in configure.ac might set extrasub.
32651 # FIXME: do we really want to maintain this feature?
32652 cat >>$CONFIG_STATUS <<_ACEOF
32656 cat >>$CONFIG_STATUS <<\_ACEOF
32658 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32659 s
&@configure_input@
&$configure_input&;t t
32660 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32661 s
&@srcdir@
&$ac_srcdir&;t t
32662 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32663 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32664 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32665 s
&@builddir@
&$ac_builddir&;t t
32666 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32667 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32668 s
&@INSTALL@
&$ac_INSTALL&;t t
32669 $ac_datarootdir_hack
32670 " $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
32672 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32673 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
32674 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
32675 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32676 which seems to be undefined. Please make sure it is defined." >&5
32677 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32678 which seems to be undefined. Please make sure it is defined." >&2;}
32682 -) cat "$tmp/out"; rm -f "$tmp/out";;
32683 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32692 # Transform confdefs.h into a sed script `conftest.defines', that
32693 # substitutes the proper values into config.h.in to produce config.h.
32694 rm -f conftest.defines conftest.
tail
32695 # First, append a space to every undef/define line, to ease matching.
32696 echo 's/$/ /' >conftest.defines
32697 # Then, protect against being on the right side of a sed subst, or in
32698 # an unquoted here document, in config.status. If some macros were
32699 # called several times there might be several #defines for the same
32700 # symbol, which is useless. But do not sort them, since the last
32701 # AC_DEFINE must be honored.
32702 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
32703 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32704 # NAME is the cpp macro being defined, VALUE is the value it is being given.
32705 # PARAMS is the parameter list in the macro definition--in most cases, it's
32706 # just an empty string.
32707 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
32708 ac_dB
='\\)[ (].*,\\1define\\2'
32716 s/^[ ]*#[ ]*define[ ][ ]*//
32721 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32722 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32723 ' >>conftest.defines
32725 # Remove the space that was appended to ease matching.
32726 # Then replace #undef with comments. This is necessary, for
32727 # example, in the case of _POSIX_SOURCE, which is predefined and required
32728 # on some systems where configure will not decide to define it.
32729 # (The regexp can be short, since the line contains either #define or #undef.)
32731 s,^[ #]*u.*,/* & */,' >>conftest.defines
32733 # Break up conftest.defines:
32734 ac_max_sed_lines
=50
32736 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32737 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32738 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32740 ac_in
='$ac_file_inputs'
32741 ac_out
='"$tmp/out1"'
32742 ac_nxt
='"$tmp/out2"'
32746 # Write a here document:
32747 cat >>$CONFIG_STATUS <<_ACEOF
32748 # First, check the format of the line:
32749 cat >"\$tmp/defines.sed" <<\\CEOF
32750 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
32751 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
32755 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
32757 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32758 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
32759 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
32760 grep . conftest.
tail >/dev
/null ||
break
32761 rm -f conftest.defines
32762 mv conftest.
tail conftest.defines
32764 rm -f conftest.defines conftest.
tail
32766 echo "ac_result=$ac_in" >>$CONFIG_STATUS
32767 cat >>$CONFIG_STATUS <<\_ACEOF
32768 if test x
"$ac_file" != x-
; then
32769 echo "/* $configure_input */" >"$tmp/config.h"
32770 cat "$ac_result" >>"$tmp/config.h"
32771 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
32772 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32773 echo "$as_me: $ac_file is unchanged" >&6;}
32776 mv "$tmp/config.h" $ac_file
32779 echo "/* $configure_input */"
32791 { (exit 0); exit 0; }
32793 chmod +x
$CONFIG_STATUS
32794 ac_clean_files
=$ac_clean_files_save
32797 # configure is writing to config.log, and then calls config.status.
32798 # config.status does its own redirection, appending to config.log.
32799 # Unfortunately, on DOS this fails, as config.log is still kept open
32800 # by configure, so config.status won't be able to write to it; its
32801 # output is simply discarded. So we exec the FD to /dev/null,
32802 # effectively closing config.log, so it can be properly (re)opened and
32803 # appended to by config.status. When coming back to configure, we
32804 # need to make the FD available again.
32805 if test "$no_create" != yes; then
32807 ac_config_status_args
=
32808 test "$silent" = yes &&
32809 ac_config_status_args
="$ac_config_status_args --quiet"
32811 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32813 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32814 # would make configure fail if this is the last instruction.
32815 $ac_cs_success ||
{ (exit 1); exit 1; }
32819 if test "x${silent}" != "xyes" ; then
32821 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
32822 echo " .\$7\$7.. .7\$\$7:. "
32823 echo " .\$\$:. ,\$7.7 "
32824 echo " .\$7. 7\$\$\$\$ .\$\$77 "
32825 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
32826 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
32827 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
32828 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
32829 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
32830 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
32831 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
32832 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
32833 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
32834 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
32835 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
32836 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
32837 echo " \$\$\$\$\$ \$\$\$ "
32838 echo " \$\$\$\$7. \$\$ (TM) "
32839 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
32840 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
32841 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
32845 { echo "$as_me:$LINENO: Package configured for: " >&5
32846 echo "$as_me: Package configured for: " >&6;}
32847 { echo "$as_me:$LINENO: OS type : $host_os" >&5
32848 echo "$as_me: OS type : $host_os" >&6;}
32849 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
32850 echo "$as_me: Host CPU : $host_cpu" >&6;}
32851 if test "${cross_compiling}" = "yes"; then
32852 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
32853 echo "$as_me: Cross Compilation = YES" >&6;}