2 # From configure.ac Revision: 48561 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
582 ac_unique_file
="asterisk"
583 ac_unique_file
="main/asterisk.c"
584 # Factoring default headers for most tests.
585 ac_includes_default
="\
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
597 # ifdef HAVE_STDLIB_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
631 program_transform_name
857 ac_precious_vars
='build_alias
872 # Initialize some variables set by options.
874 ac_init_version
=false
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
884 program_transform_name
=s
,x
,x
,
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir
='${exec_prefix}/bin'
899 sbindir
='${exec_prefix}/sbin'
900 libexecdir
='${exec_prefix}/libexec'
901 datarootdir
='${prefix}/share'
902 datadir
='${datarootdir}'
903 sysconfdir
='${prefix}/etc'
904 sharedstatedir
='${prefix}/com'
905 localstatedir
='${prefix}/var'
906 includedir
='${prefix}/include'
907 oldincludedir
='/usr/include'
908 docdir
='${datarootdir}/doc/${PACKAGE}'
909 infodir
='${datarootdir}/info'
914 libdir
='${exec_prefix}/lib'
915 localedir
='${datarootdir}/locale'
916 mandir
='${datarootdir}/man'
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\
$ac_option
930 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
940 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
942 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
945 -build |
--build |
--buil |
--bui |
--bu)
946 ac_prev
=build_alias
;;
947 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
948 build_alias
=$ac_optarg ;;
950 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
951 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
952 ac_prev
=cache_file
;;
953 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
954 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
955 cache_file
=$ac_optarg ;;
958 cache_file
=config.cache
;;
960 -datadir |
--datadir |
--datadi |
--datad)
962 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
963 datadir
=$ac_optarg ;;
965 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
966 |
--dataroo |
--dataro |
--datar)
967 ac_prev
=datarootdir
;;
968 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
969 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
970 datarootdir
=$ac_optarg ;;
972 -disable-* |
--disable-*)
973 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
976 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
977 { (exit 1); exit 1; }; }
978 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
979 eval enable_
$ac_feature=no
;;
981 -docdir |
--docdir |
--docdi |
--doc |
--do)
983 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
986 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
988 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
991 -enable-* |
--enable-*)
992 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996 { (exit 1); exit 1; }; }
997 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
998 eval enable_
$ac_feature=\
$ac_optarg ;;
1000 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1001 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1002 |
--exec |
--exe |
--ex)
1003 ac_prev
=exec_prefix
;;
1004 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1005 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1006 |
--exec=* |
--exe=* |
--ex=*)
1007 exec_prefix
=$ac_optarg ;;
1009 -gas |
--gas |
--ga |
--g)
1010 # Obsolete; use --with-gas.
1013 -help |
--help |
--hel |
--he |
-h)
1014 ac_init_help
=long
;;
1015 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1016 ac_init_help
=recursive
;;
1017 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1018 ac_init_help
=short
;;
1020 -host |
--host |
--hos |
--ho)
1021 ac_prev
=host_alias
;;
1022 -host=* |
--host=* |
--hos=* |
--ho=*)
1023 host_alias
=$ac_optarg ;;
1025 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1027 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1029 htmldir
=$ac_optarg ;;
1031 -includedir |
--includedir |
--includedi |
--included |
--include \
1032 |
--includ |
--inclu |
--incl |
--inc)
1033 ac_prev
=includedir
;;
1034 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1035 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1036 includedir
=$ac_optarg ;;
1038 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1040 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1041 infodir
=$ac_optarg ;;
1043 -libdir |
--libdir |
--libdi |
--libd)
1045 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1046 libdir
=$ac_optarg ;;
1048 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1049 |
--libexe |
--libex |
--libe)
1050 ac_prev
=libexecdir
;;
1051 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1052 |
--libexe=* |
--libex=* |
--libe=*)
1053 libexecdir
=$ac_optarg ;;
1055 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1056 ac_prev
=localedir
;;
1057 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1058 localedir
=$ac_optarg ;;
1060 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1061 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1062 ac_prev
=localstatedir
;;
1063 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1064 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1065 localstatedir
=$ac_optarg ;;
1067 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1069 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1070 mandir
=$ac_optarg ;;
1072 -nfp |
--nfp |
--nf)
1073 # Obsolete; use --without-fp.
1076 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1077 |
--no-cr |
--no-c |
-n)
1080 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1081 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1084 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1085 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1086 |
--oldin |
--oldi |
--old |
--ol |
--o)
1087 ac_prev
=oldincludedir
;;
1088 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1089 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1090 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1091 oldincludedir
=$ac_optarg ;;
1093 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1095 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1096 prefix
=$ac_optarg ;;
1098 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1099 |
--program-pre |
--program-pr |
--program-p)
1100 ac_prev
=program_prefix
;;
1101 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1102 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1103 program_prefix
=$ac_optarg ;;
1105 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1106 |
--program-suf |
--program-su |
--program-s)
1107 ac_prev
=program_suffix
;;
1108 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1109 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1110 program_suffix
=$ac_optarg ;;
1112 -program-transform-name |
--program-transform-name \
1113 |
--program-transform-nam |
--program-transform-na \
1114 |
--program-transform-n |
--program-transform- \
1115 |
--program-transform |
--program-transfor \
1116 |
--program-transfo |
--program-transf \
1117 |
--program-trans |
--program-tran \
1118 |
--progr-tra |
--program-tr |
--program-t)
1119 ac_prev
=program_transform_name
;;
1120 -program-transform-name=* |
--program-transform-name=* \
1121 |
--program-transform-nam=* |
--program-transform-na=* \
1122 |
--program-transform-n=* |
--program-transform-=* \
1123 |
--program-transform=* |
--program-transfor=* \
1124 |
--program-transfo=* |
--program-transf=* \
1125 |
--program-trans=* |
--program-tran=* \
1126 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1127 program_transform_name
=$ac_optarg ;;
1129 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1131 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1132 pdfdir
=$ac_optarg ;;
1134 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1136 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1139 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1140 |
-silent |
--silent |
--silen |
--sile |
--sil)
1143 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1145 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1147 sbindir
=$ac_optarg ;;
1149 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1150 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1151 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1153 ac_prev
=sharedstatedir
;;
1154 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1155 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1156 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1158 sharedstatedir
=$ac_optarg ;;
1160 -site |
--site |
--sit)
1162 -site=* |
--site=* |
--sit=*)
1165 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1167 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1168 srcdir
=$ac_optarg ;;
1170 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1171 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1172 ac_prev
=sysconfdir
;;
1173 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1174 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1175 sysconfdir
=$ac_optarg ;;
1177 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1178 ac_prev
=target_alias
;;
1179 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1180 target_alias
=$ac_optarg ;;
1182 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1185 -version |
--version |
--versio |
--versi |
--vers |
-V)
1186 ac_init_version
=: ;;
1189 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_
$ac_package=\
$ac_optarg ;;
1197 -without-* |
--without-*)
1198 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1201 { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1204 eval with_
$ac_package=no
;;
1207 # Obsolete; use --with-x.
1210 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1211 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1212 ac_prev
=x_includes
;;
1213 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1214 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1215 x_includes
=$ac_optarg ;;
1217 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1218 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1219 ac_prev
=x_libraries
;;
1220 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1221 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1222 x_libraries
=$ac_optarg ;;
1224 -*) { echo "$as_me: error: unrecognized option: $ac_option
1225 Try \`$0 --help' for more information." >&2
1226 { (exit 1); exit 1; }; }
1230 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1233 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1234 { (exit 1); exit 1; }; }
1235 eval $ac_envvar=\
$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1242 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 if test -n "$ac_prev"; then
1250 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1251 { echo "$as_me: error: missing argument to $ac_option" >&2
1252 { (exit 1); exit 1; }; }
1255 # Be sure to have absolute directory names.
1256 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val
=\$
$ac_var
1263 [\\/$
]* | ?
:[\\/]* ) continue;;
1264 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1266 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1267 { (exit 1); exit 1; }; }
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1275 target
=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x
; then
1279 if test "x$build_alias" = x
; then
1280 cross_compiling
=maybe
1281 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1289 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1291 test "$silent" = yes && exec 6>/dev
/null
1294 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di
=`ls -di .` &&
1296 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1297 { echo "$as_me: error: Working directory cannot be determined" >&2
1298 { (exit 1); exit 1; }; }
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 { echo "$as_me: error: pwd does not report name of working directory" >&2
1301 { (exit 1); exit 1; }; }
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted
=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir
=`$as_dirname -- "$0" ||
1309 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$0" : 'X\(//\)[^/]' \| \
1311 X"$0" : 'X\(//\)$' \| \
1312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1336 ac_srcdir_defaulted
=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1340 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1341 { (exit 1); exit 1; }; }
1343 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1346 { (exit 1); exit 1; }; }
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1356 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 for ac_var
in $ac_precious_vars; do
1359 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1361 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1366 # Report the --help message.
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1372 \`configure' configures this package to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1430 --build=BUILD configure
for building on BUILD
[guessed
]
1431 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1435 if test -n "$ac_init_help"; then
1440 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1441 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1442 --enable-dev-mode Turn on developer mode
1443 --disable-largefile omit support
for large files
1446 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1447 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1448 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1449 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1450 --with-curl=PATH use cURL files
in PATH
1451 --with-curses=PATH use curses files
in PATH
1452 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1454 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1455 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1456 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1457 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1458 --with-kde=PATH use KDE files
in PATH
1459 --with-misdn=PATH use mISDN User Library files
in PATH
1460 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1461 --with-ncurses=PATH use ncurses files
in PATH
1462 --with-netsnmp=PATH use Net-SNMP files
in PATH
1463 --with-newt=PATH use newt files
in PATH
1464 --with-odbc=PATH use unixODBC files
in PATH
1465 --with-ogg=PATH use OGG files
in PATH
1466 --with-osptk=PATH use OSP Toolkit files
in PATH
1467 --with-oss=PATH use Open Sound System files
in PATH
1468 --with-popt=PATH use popt files
in PATH
1469 --with-postgres=PATH use PostgreSQL files
in PATH
1470 --with-pri=PATH use ISDN PRI files
in PATH
1471 --with-pwlib=PATH use PWlib files
in PATH
1472 --with-h323=PATH use OpenH323 files
in PATH
1473 --with-qt=PATH use Qt files
in PATH
1474 --with-radius=PATH use Radius Client files
in PATH
1475 --with-speex=PATH use Speex files
in PATH
1476 --with-sqlite=PATH use SQLite files
in PATH
1477 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1478 --with-ssl=PATH use OpenSSL files
in PATH
1479 --with-tds=PATH use FreeTDS files
in PATH
1480 --with-termcap=PATH use Termcap files
in PATH
1481 --with-tinfo=PATH use Term Info files
in PATH
1482 --with-tonezone=PATH use tonezone files
in PATH
1483 --with-vorbis=PATH use Vorbis files
in PATH
1484 --with-vpb=PATH use Voicetronix API files
in PATH
1485 --with-z=PATH use zlib files
in PATH
1486 --with-zaptel=PATH use Zaptel files
in PATH
1488 Some influential environment variables
:
1489 CC C compiler
command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1492 nonstandard directory
<lib dir
>
1493 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1494 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1495 you have headers
in a nonstandard directory
<include dir
>
1497 CXX C
++ compiler
command
1498 CXXFLAGS C
++ compiler flags
1499 CXXCPP C
++ preprocessor
1501 Use these variables to override the choices made by
`configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1565 generated by GNU Autoconf 2.61
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by $as_me, which was
1581 generated by GNU Autoconf 2.61. Invocation command line was
1593 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1594 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1595 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1596 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1597 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1599 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1600 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1602 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1603 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1604 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1605 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1606 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1607 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1608 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_must_keep_next=false
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1652 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 -* ) ac_must_keep_next=true ;;
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1697 # The following way of writing the cache mishandles newlines in values,
1699 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1700 eval ac_val=\$$ac_var
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1714 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1734 for ac_var in $ac_subst_vars
1736 eval ac_val=\$$ac_var
1738 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 echo "$ac_var='\''$ac_val'\''"
1744 if test -n "$ac_subst_files"; then
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1751 for ac_var in $ac_subst_files
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1762 if test -s confdefs.h; then
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1853 ac_header_list="$ac_header_list sys/time.h"
1854 ac_header_list="$ac_header_list unistd.h"
1855 ac_func_list="$ac_func_list alarm"
1856 ac_header_list="$ac_header_list utime.h"
1857 # Check that the precious variables saved in the cache have kept the same
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1868 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1872 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1879 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1880 echo "$as_me: former value
: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1882 echo "$as_me: current value
: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1900 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1901 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 # cross-compile macros
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 elif test -f "$ac_dir/install.sh"; then
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 elif test -f "$ac_dir/shtool"; then
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 # Make sure we can run config.sub.
1963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1964 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1965 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1966 { (exit 1); exit 1; }; }
1968 { echo "$as_me:$LINENO: checking build system type" >&5
1969 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1970 if test "${ac_cv_build+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 ac_build_alias=$build_alias
1974 test "x$ac_build_alias" = x &&
1975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1976 test "x$ac_build_alias" = x &&
1977 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1978 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1979 { (exit 1); exit 1; }; }
1980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1983 { (exit 1); exit 1; }; }
1986 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1987 echo "${ECHO_T}$ac_cv_build" >&6; }
1988 case $ac_cv_build in
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1991 echo "$as_me: error: invalid value of canonical build" >&2;}
1992 { (exit 1); exit 1; }; };;
1995 ac_save_IFS=$IFS; IFS='-'
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2005 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2008 { echo "$as_me:$LINENO: checking host system type" >&5
2009 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2010 if test "${ac_cv_host+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test "x$host_alias" = x; then
2014 ac_cv_host=$ac_cv_build
2016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2017 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2019 { (exit 1); exit 1; }; }
2023 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2024 echo "${ECHO_T}$ac_cv_host" >&6; }
2027 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2028 echo "$as_me: error: invalid value of canonical host" >&2;}
2029 { (exit 1); exit 1; }; };;
2032 ac_save_IFS=$IFS; IFS='-'
2038 # Remember, the first character of IFS is used to create $*,
2039 # except with old shells:
2042 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2046 # check existence of the package
2049 # specify output header file
2050 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2057 cat >>confdefs.h <<\_ACEOF
2058 #define _GNU_SOURCE 1
2063 ac_cpp='$CPP $CPPFLAGS'
2064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067 if test -n "$ac_tool_prefix"; then
2068 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$CC"; then
2076 ac_cv_prog_CC="$CC" # Let the user override the test.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 if test -n "$CC"; then
2097 { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2106 if test -z "$ac_cv_prog_CC"; then
2108 # Extract the first word of "gcc", so it can be a program name with args.
2109 set dummy gcc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test -n "$ac_ct_CC"; then
2116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125 ac_cv_prog_ac_ct_CC="gcc"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136 if test -n "$ac_ct_CC"; then
2137 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2138 echo "${ECHO_T}$ac_ct_CC" >&6; }
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2144 if test "x$ac_ct_CC" = x; then
2147 case $cross_compiling:$ac_tool_warned in
2149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2150 whose name does not start with the host triplet. If you think this
2151 configuration is useful to you, please write to autoconf@gnu.org." >&5
2152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2153 whose name does not start with the host triplet. If you think this
2154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2155 ac_tool_warned=yes ;;
2163 if test -z "$CC"; then
2164 if test -n "$ac_tool_prefix"; then
2165 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2166 set dummy ${ac_tool_prefix}cc; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_CC+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 if test -n "$CC"; then
2173 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_CC="${ac_tool_prefix}cc"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 if test -n "$CC"; then
2194 { echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6; }
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2204 if test -z "$CC"; then
2205 # Extract the first word of "cc", so it can be a program name with args.
2206 set dummy cc; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2224 ac_prog_rejected=yes
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 if test $ac_prog_rejected = yes; then
2236 # We found a bogon in the path, so make sure we never use it.
2237 set dummy $ac_cv_prog_CC
2239 if test $# != 0; then
2240 # We chose a different compiler from the bogus one.
2241 # However, it has the same basename, so the bogon will be chosen
2242 # first if we set CC to just the basename; use the full file name.
2244 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2250 if test -n "$CC"; then
2251 { echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6; }
2254 { echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6; }
2260 if test -z "$CC"; then
2261 if test -n "$ac_tool_prefix"; then
2262 for ac_prog in cl.exe
2264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2268 if test "${ac_cv_prog_CC+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 if test -n "$CC"; then
2272 ac_cv_prog_CC="$CC" # Let the user override the test.
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2281 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 if test -n "$CC"; then
2293 { echo "$as_me:$LINENO: result: $CC" >&5
2294 echo "${ECHO_T}$CC" >&6; }
2296 { echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6; }
2301 test -n "$CC" && break
2304 if test -z "$CC"; then
2306 for ac_prog in cl.exe
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy $ac_prog; ac_word=$2
2310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$ac_ct_CC"; then
2316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_ac_ct_CC="$ac_prog"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6; }
2340 { echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6; }
2345 test -n "$ac_ct_CC" && break
2348 if test "x$ac_ct_CC" = x; then
2351 case $cross_compiling:$ac_tool_warned in
2353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2354 whose name does not start with the host triplet. If you think this
2355 configuration is useful to you, please write to autoconf@gnu.org." >&5
2356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2357 whose name does not start with the host triplet. If you think this
2358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2359 ac_tool_warned=yes ;;
2368 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2369 See \`config.log
' for more details." >&5
2370 echo "$as_me: error: no acceptable C compiler found in \$PATH
2371 See \`config.log' for more details.
" >&2;}
2372 { (exit 1); exit 1; }; }
2374 # Provide some information about the compiler.
2375 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2376 ac_compiler=`set X $ac_compile; echo $2`
2377 { (ac_try="$ac_compiler --version >&5"
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_compiler --version >&5") 2>&5
2385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2386 (exit $ac_status); }
2387 { (ac_try="$ac_compiler -v >&5"
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compiler -v >&5") 2>&5
2395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2396 (exit $ac_status); }
2397 { (ac_try="$ac_compiler -V >&5"
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_compiler -V >&5") 2>&5
2405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2406 (exit $ac_status); }
2408 cat >conftest.$ac_ext <<_ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2423 ac_clean_files_save=$ac_clean_files
2424 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2425 # Try to create an executable without -o first, disregard a.out.
2426 # It will help us diagnose broken compilers, and finding out an intuition
2428 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2429 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2430 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2432 # List of possible output files, starting from the most likely.
2433 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2434 # only as a last resort. b.out is created by i960 compilers.
2435 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2437 # The IRIX 6 linker writes into existing files which may not be
2438 # executable, retaining their permissions. Remove them first so a
2439 # subsequent execution test works.
2441 for ac_file in $ac_files
2444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2445 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2450 if { (ac_try="$ac_link_default"
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_link_default") 2>&5
2458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2459 (exit $ac_status); }; then
2460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2462 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2463 # so that the user can short-circuit this test for compilers unknown to
2465 for ac_file in $ac_files ''
2467 test -f "$ac_file" || continue
2469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2472 # We found the default executable, but exeext='' is most
2476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2480 # We set ac_cv_exeext here because the later test for it is not
2481 # safe: cross compilers may not add the suffix if given an `-o'
2482 # argument, so we may need to know it at that point already.
2483 # Even if this section looks crufty: it has the advantage of
2490 test "$ac_cv_exeext" = no && ac_cv_exeext=
2496 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2497 echo "${ECHO_T}$ac_file" >&6; }
2498 if test -z "$ac_file"; then
2499 echo "$as_me: failed program was
:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2502 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2503 See \
`config.log' for more details." >&5
2504 echo "$as_me: error: C compiler cannot create executables
2505 See \`config.log
' for more details." >&2;}
2506 { (exit 77); exit 77; }; }
2509 ac_exeext=$ac_cv_exeext
2511 # Check that the compiler produces executables we can run. If not, either
2512 # the compiler is broken, or we cross compile.
2513 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2514 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2515 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2516 # If not cross compiling, check that we can run a simple program.
2517 if test "$cross_compiling" != yes; then
2518 if { ac_try='.
/$ac_file'
2519 { (case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_try") 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2530 if test "$cross_compiling" = maybe; then
2533 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2534 If you meant to cross compile, use \`--host'.
2535 See \
`config.log' for more details." >&5
2536 echo "$as_me: error: cannot run C compiled programs.
2537 If you meant to cross compile, use \`--host'.
2538 See \`config.log' for more details.
" >&2;}
2539 { (exit 1); exit 1; }; }
2543 { echo "$as_me:$LINENO: result
: yes" >&5
2544 echo "${ECHO_T}yes" >&6; }
2546 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2547 ac_clean_files=$ac_clean_files_save
2548 # Check that the compiler produces executables we can run. If not, either
2549 # the compiler is broken, or we cross compile.
2550 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2551 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2552 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2553 echo "${ECHO_T}$cross_compiling" >&6; }
2555 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2556 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2557 if { (ac_try="$ac_link"
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_link") 2>&5
2565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2566 (exit $ac_status); }; then
2567 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2568 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2569 # work properly (i.e., refer to `conftest.exe'), while it won't with
2571 for ac_file in conftest.exe conftest conftest.*; do
2572 test -f "$ac_file" || continue
2574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2581 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2582 See \
`config.log' for more details." >&5
2583 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2584 See \`config.log
' for more details." >&2;}
2585 { (exit 1); exit 1; }; }
2588 rm -f conftest$ac_cv_exeext
2589 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2590 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2592 rm -f conftest.$ac_ext
2593 EXEEXT=$ac_cv_exeext
2595 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2596 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2597 if test "${ac_cv_objext+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2615 rm -f conftest.o conftest.obj
2616 if { (ac_try="$ac_compile"
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; then
2626 for ac_file in conftest.o conftest.obj conftest.*; do
2627 test -f "$ac_file" || continue;
2629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2630 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2635 echo "$as_me: failed program was:" >&5
2636 sed 's
/^
/|
/' conftest.$ac_ext >&5
2638 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2639 See \`config.log' for more details.
" >&5
2640 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2641 See \
`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2645 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2647 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2648 echo "${ECHO_T}$ac_cv_objext" >&6; }
2649 OBJEXT=$ac_cv_objext
2651 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2652 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2653 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 cat >conftest.$ac_ext <<_ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2674 rm -f conftest.$ac_objext
2675 if { (ac_try="$ac_compile"
2677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2678 *) ac_try_echo
=$ac_try;;
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compile") 2>conftest.er1
2683 grep -v '^ *+' conftest.er1
>conftest.err
2685 cat conftest.err
>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } && {
2688 test -z "$ac_c_werror_flag" ||
2689 test ! -s conftest.err
2690 } && test -s conftest.
$ac_objext; then
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.
$ac_ext >&5
2699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2700 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2703 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2704 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2705 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2706 ac_test_CFLAGS
=${CFLAGS+set}
2707 ac_save_CFLAGS
=$CFLAGS
2708 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2709 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2710 if test "${ac_cv_prog_cc_g+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 ac_save_c_werror_flag
=$ac_c_werror_flag
2714 ac_c_werror_flag
=yes
2717 cat >conftest.
$ac_ext <<_ACEOF
2720 cat confdefs.h
>>conftest.
$ac_ext
2721 cat >>conftest.
$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2732 rm -f conftest.
$ac_objext
2733 if { (ac_try
="$ac_compile"
2735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2741 grep -v '^ *+' conftest.er1 >conftest.err
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } && {
2746 test -z "$ac_c_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest.$ac_objext; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2774 *) ac_try_echo
=$ac_try;;
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2779 grep -v '^ *+' conftest.er1
>conftest.err
2781 cat conftest.err
>&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } && {
2784 test -z "$ac_c_werror_flag" ||
2785 test ! -s conftest.err
2786 } && test -s conftest.
$ac_objext; then
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.
$ac_ext >&5
2792 ac_c_werror_flag
=$ac_save_c_werror_flag
2794 cat >conftest.
$ac_ext <<_ACEOF
2797 cat confdefs.h
>>conftest.
$ac_ext
2798 cat >>conftest.
$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2809 rm -f conftest.
$ac_objext
2810 if { (ac_try
="$ac_compile"
2812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_compile") 2>conftest.er1
2818 grep -v '^ *+' conftest.er1 >conftest.err
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest.$ac_objext; then
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 ac_c_werror_flag=$ac_save_c_werror_flag
2843 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2844 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2845 if test "$ac_test_CFLAGS" = set; then
2846 CFLAGS=$ac_save_CFLAGS
2847 elif test $ac_cv_prog_cc_g = yes; then
2848 if test "$GCC" = yes; then
2854 if test "$GCC" = yes; then
2860 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2861 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2862 if test "${ac_cv_prog_cc_c89+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 ac_cv_prog_cc_c89=no
2867 cat >conftest.$ac_ext <<_ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2875 #include <sys/types.h>
2876 #include <sys/stat.h>
2877 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2878 struct buf { int x; };
2879 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2880 static char *e (p, i)
2886 static char *f (char * (*g) (char **, int), char **p, ...)
2891 s = g (p, va_arg (v,int));
2896 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2897 function prototypes and stuff, but not '\xHH' hex character constants.
2898 These don't provoke an error unfortunately, instead are silently treated
2899 as 'x'. The following induces an error, until -std is added to get
2900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2901 array size at least. It's necessary to write '\x00'==0 to get something
2902 that's true only with -std. */
2903 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2905 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2906 inside strings and character constants. */
2908 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2910 int test (int i, double x);
2911 struct s1 {int (*f) (int a);};
2912 struct s2 {int (*f) (double a);};
2913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2927 CC="$ac_save_CC $ac_arg"
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2932 *) ac_try_echo
=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2937 grep -v '^ *+' conftest.er1
>conftest.err
2939 cat conftest.err
>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && {
2942 test -z "$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 } && test -s conftest.
$ac_objext; then
2945 ac_cv_prog_cc_c89
=$ac_arg
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.
$ac_ext >&5
2953 rm -f core conftest.err conftest.
$ac_objext
2954 test "x$ac_cv_prog_cc_c89" != "xno" && break
2956 rm -f conftest.
$ac_ext
2961 case "x$ac_cv_prog_cc_c89" in
2963 { echo "$as_me:$LINENO: result: none needed" >&5
2964 echo "${ECHO_T}none needed" >&6; } ;;
2966 { echo "$as_me:$LINENO: result: unsupported" >&5
2967 echo "${ECHO_T}unsupported" >&6; } ;;
2969 CC
="$CC $ac_cv_prog_cc_c89"
2970 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2971 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2976 ac_cpp
='$CPP $CPPFLAGS'
2977 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2983 ac_cpp
='$CPP $CPPFLAGS'
2984 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2987 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2988 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2989 # On Suns, sometimes $CPP names a directory.
2990 if test -n "$CPP" && test -d "$CPP"; then
2993 if test -z "$CPP"; then
2994 if test "${ac_cv_prog_CPP+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 # Double quotes because CPP needs to be expanded
2998 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3001 for ac_c_preproc_warn_flag
in '' yes
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
3005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
3007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat >conftest.
$ac_ext <<_ACEOF
3012 cat confdefs.h
>>conftest.
$ac_ext
3013 cat >>conftest.
$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3016 # include <limits.h>
3018 # include <assert.h>
3022 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null && {
3035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 # Broken: fails on valid input.
3047 rm -f conftest.err conftest.$ac_ext
3049 # OK, works on sane cases. Now check whether nonexistent headers
3050 # can be detected and how.
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3059 if { (ac_try="$ac_cpp conftest.$ac_ext"
3061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3062 *) ac_try_echo
=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3067 grep -v '^ *+' conftest.er1
>conftest.err
3069 cat conftest.err
>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev
/null
&& {
3072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3075 # Broken: success on invalid input.
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.
$ac_ext >&5
3081 # Passes both tests.
3086 rm -f conftest.err conftest.
$ac_ext
3089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3090 rm -f conftest.err conftest.
$ac_ext
3091 if $ac_preproc_ok; then
3103 { echo "$as_me:$LINENO: result: $CPP" >&5
3104 echo "${ECHO_T}$CPP" >&6; }
3106 for ac_c_preproc_warn_flag
in '' yes
3108 # Use a header file that comes with gcc, so configuring glibc
3109 # with a fresh cross-compiler works.
3110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3111 # <limits.h> exists even on freestanding compilers.
3112 # On the NeXT, cc -E runs the code through the compiler's parser,
3113 # not just through cpp. "Syntax error" is here to catch this case.
3114 cat >conftest.
$ac_ext <<_ACEOF
3117 cat confdefs.h
>>conftest.
$ac_ext
3118 cat >>conftest.
$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3121 # include <limits.h>
3123 # include <assert.h>
3127 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null && {
3140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 # Broken: fails on valid input.
3152 rm -f conftest.err conftest.$ac_ext
3154 # OK, works on sane cases. Now check whether nonexistent headers
3155 # can be detected and how.
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162 #include <ac_nonexistent.h>
3164 if { (ac_try="$ac_cpp conftest.$ac_ext"
3166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3167 *) ac_try_echo
=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3172 grep -v '^ *+' conftest.er1
>conftest.err
3174 cat conftest.err
>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } >/dev
/null
&& {
3177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3180 # Broken: success on invalid input.
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.
$ac_ext >&5
3186 # Passes both tests.
3191 rm -f conftest.err conftest.
$ac_ext
3194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3195 rm -f conftest.err conftest.
$ac_ext
3196 if $ac_preproc_ok; then
3199 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3200 See \`config.log' for more details." >&5
3201 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3202 See \`config.log' for more details." >&2;}
3203 { (exit 1); exit 1; }; }
3207 ac_cpp
='$CPP $CPPFLAGS'
3208 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3213 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3214 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3215 if test "${ac_cv_path_GREP+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 # Extract the first word of "grep ggrep" to use in msg output
3219 if test -z "$GREP"; then
3220 set dummy
grep ggrep
; ac_prog_name
=$2
3221 if test "${ac_cv_path_GREP+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 ac_path_GREP_found
=false
3225 # Loop through the user's path and test for each of PROGNAME-LIST
3226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3227 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3230 test -z "$as_dir" && as_dir
=.
3231 for ac_prog
in grep ggrep
; do
3232 for ac_exec_ext
in '' $ac_executable_extensions; do
3233 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3234 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3235 # Check for GNU ac_path_GREP and select it if it is found.
3236 # Check for GNU $ac_path_GREP
3237 case `"$ac_path_GREP" --version 2>&1` in
3239 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3242 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3245 cat "conftest.in" "conftest.in" >"conftest.tmp"
3246 mv "conftest.tmp" "conftest.in"
3247 cp "conftest.in" "conftest.nl"
3248 echo 'GREP' >> "conftest.nl"
3249 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3250 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3251 ac_count
=`expr $ac_count + 1`
3252 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3253 # Best one so far, save it but keep looking for a better one
3254 ac_cv_path_GREP
="$ac_path_GREP"
3255 ac_path_GREP_max
=$ac_count
3257 # 10*(2^10) chars as input seems more than enough
3258 test $ac_count -gt 10 && break
3260 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3264 $ac_path_GREP_found && break 3
3274 GREP
="$ac_cv_path_GREP"
3275 if test -z "$GREP"; then
3276 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3277 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3278 { (exit 1); exit 1; }; }
3282 ac_cv_path_GREP
=$GREP
3287 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3288 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3289 GREP
="$ac_cv_path_GREP"
3292 { echo "$as_me:$LINENO: checking for egrep" >&5
3293 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3294 if test "${ac_cv_path_EGREP+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3298 then ac_cv_path_EGREP
="$GREP -E"
3300 # Extract the first word of "egrep" to use in msg output
3301 if test -z "$EGREP"; then
3302 set dummy
egrep; ac_prog_name
=$2
3303 if test "${ac_cv_path_EGREP+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 ac_path_EGREP_found
=false
3307 # Loop through the user's path and test for each of PROGNAME-LIST
3308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3309 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3312 test -z "$as_dir" && as_dir
=.
3313 for ac_prog
in egrep; do
3314 for ac_exec_ext
in '' $ac_executable_extensions; do
3315 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3316 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3317 # Check for GNU ac_path_EGREP and select it if it is found.
3318 # Check for GNU $ac_path_EGREP
3319 case `"$ac_path_EGREP" --version 2>&1` in
3321 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3324 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3327 cat "conftest.in" "conftest.in" >"conftest.tmp"
3328 mv "conftest.tmp" "conftest.in"
3329 cp "conftest.in" "conftest.nl"
3330 echo 'EGREP' >> "conftest.nl"
3331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3332 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3333 ac_count
=`expr $ac_count + 1`
3334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3335 # Best one so far, save it but keep looking for a better one
3336 ac_cv_path_EGREP
="$ac_path_EGREP"
3337 ac_path_EGREP_max
=$ac_count
3339 # 10*(2^10) chars as input seems more than enough
3340 test $ac_count -gt 10 && break
3342 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3346 $ac_path_EGREP_found && break 3
3356 EGREP
="$ac_cv_path_EGREP"
3357 if test -z "$EGREP"; then
3358 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3359 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3360 { (exit 1); exit 1; }; }
3364 ac_cv_path_EGREP
=$EGREP
3370 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3371 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3372 EGREP
="$ac_cv_path_EGREP"
3376 { echo "$as_me:$LINENO: checking for AIX" >&5
3377 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3378 cat >conftest.
$ac_ext <<_ACEOF
3381 cat confdefs.h
>>conftest.
$ac_ext
3382 cat >>conftest.
$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3390 $EGREP "yes" >/dev
/null
2>&1; then
3391 { echo "$as_me:$LINENO: result: yes" >&5
3392 echo "${ECHO_T}yes" >&6; }
3393 cat >>confdefs.h
<<\_ACEOF
3394 #define _ALL_SOURCE 1
3398 { echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6; }
3404 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3405 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3406 if test "${ac_cv_header_stdc+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 cat >conftest.
$ac_ext <<_ACEOF
3412 cat confdefs.h
>>conftest.
$ac_ext
3413 cat >>conftest.
$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3428 rm -f conftest.
$ac_objext
3429 if { (ac_try
="$ac_compile"
3431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_compile") 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } && {
3442 test -z "$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3444 } && test -s conftest.$ac_objext; then
3445 ac_cv_header_stdc=yes
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 ac_cv_header_stdc=no
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 if test $ac_cv_header_stdc = yes; then
3456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3457 cat >conftest.$ac_ext <<_ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3467 $EGREP "memchr" >/dev/null 2>&1; then
3470 ac_cv_header_stdc=no
3476 if test $ac_cv_header_stdc = yes; then
3477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3478 cat >conftest.$ac_ext <<_ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3488 $EGREP "free" >/dev/null 2>&1; then
3491 ac_cv_header_stdc=no
3497 if test $ac_cv_header_stdc = yes; then
3498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3499 if test "$cross_compiling" = yes; then
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3510 #if ((' ' & 0x0FF) == 0x020)
3511 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3512 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3514 # define ISLOWER(c) \
3515 (('a' <= (c) && (c) <= 'i') \
3516 || ('j' <= (c) && (c) <= 'r') \
3517 || ('s' <= (c) && (c) <= 'z'))
3518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3521 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3526 for (i = 0; i < 256; i++)
3527 if (XOR (islower (i), ISLOWER (i))
3528 || toupper (i) != TOUPPER (i))
3533 rm -f conftest$ac_exeext
3534 if { (ac_try="$ac_link"
3536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3537 *) ac_try_echo
=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_link") 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3544 { (case "(($ac_try" in
3545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_try") 2>&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3555 echo "$as_me: program exited with status $ac_status" >&5
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3560 ac_cv_header_stdc=no
3562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3568 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3569 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3570 if test $ac_cv_header_stdc = yes; then
3572 cat >>confdefs.h <<\_ACEOF
3573 #define STDC_HEADERS 1
3578 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3589 inttypes.h stdint.h unistd.h
3591 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 $ac_includes_default
3605 #include <$ac_header>
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3611 *) ac_try_echo
=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1
>conftest.err
3618 cat conftest.err
>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.
$ac_objext; then
3624 eval "$as_ac_Header=yes"
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.
$ac_ext >&5
3629 eval "$as_ac_Header=no"
3632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3634 ac_res
=`eval echo '${'$as_ac_Header'}'`
3635 { echo "$as_me:$LINENO: result: $ac_res" >&5
3636 echo "${ECHO_T}$ac_res" >&6; }
3637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3638 cat >>confdefs.h
<<_ACEOF
3639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3647 if test "${ac_cv_header_minix_config_h+set}" = set; then
3648 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3649 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3650 if test "${ac_cv_header_minix_config_h+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3654 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3656 # Is the header compilable?
3657 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3658 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3659 cat >conftest.
$ac_ext <<_ACEOF
3662 cat confdefs.h
>>conftest.
$ac_ext
3663 cat >>conftest.
$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 $ac_includes_default
3666 #include <minix/config.h>
3668 rm -f conftest.
$ac_objext
3669 if { (ac_try
="$ac_compile"
3671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } && {
3682 test -z "$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 } && test -s conftest.$ac_objext; then
3685 ac_header_compiler=yes
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 ac_header_compiler=no
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3695 echo "${ECHO_T}$ac_header_compiler" >&6; }
3697 # Is the header present?
3698 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3699 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3700 cat >conftest.$ac_ext <<_ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 #include <minix/config.h>
3708 if { (ac_try="$ac_cpp conftest.$ac_ext"
3710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3711 *) ac_try_echo
=$ac_try;;
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3716 grep -v '^ *+' conftest.er1
>conftest.err
3718 cat conftest.err
>&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } >/dev
/null
&& {
3721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3722 test ! -s conftest.err
3724 ac_header_preproc
=yes
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.
$ac_ext >&5
3729 ac_header_preproc
=no
3732 rm -f conftest.err conftest.
$ac_ext
3733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3734 echo "${ECHO_T}$ac_header_preproc" >&6; }
3736 # So? What about this header?
3737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3739 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3740 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3741 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3742 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3743 ac_header_preproc
=yes
3746 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3747 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3749 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3751 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3752 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3753 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3755 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3757 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3761 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3762 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3763 if test "${ac_cv_header_minix_config_h+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 ac_cv_header_minix_config_h
=$ac_header_preproc
3768 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3769 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3772 if test $ac_cv_header_minix_config_h = yes; then
3779 if test "$MINIX" = yes; then
3781 cat >>confdefs.h
<<\_ACEOF
3782 #define _POSIX_SOURCE 1
3786 cat >>confdefs.h
<<\_ACEOF
3787 #define _POSIX_1_SOURCE 2
3791 cat >>confdefs.h
<<\_ACEOF
3807 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3808 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3809 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 cat >conftest.
$ac_ext <<_ACEOF
3815 cat confdefs.h
>>conftest.
$ac_ext
3816 cat >>conftest.
$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3819 # define __EXTENSIONS__ 1
3820 $ac_includes_default
3829 rm -f conftest.
$ac_objext
3830 if { (ac_try
="$ac_compile"
3832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_compile") 2>conftest.er1
3838 grep -v '^ *+' conftest.er1 >conftest.err
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } && {
3843 test -z "$ac_c_werror_flag" ||
3844 test ! -s conftest.err
3845 } && test -s conftest.$ac_objext; then
3846 ac_cv_safe_to_define___extensions__=yes
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ac_cv_safe_to_define___extensions__=no
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3857 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3858 test $ac_cv_safe_to_define___extensions__ = yes &&
3859 cat >>confdefs.h <<\_ACEOF
3860 #define __EXTENSIONS__ 1
3863 cat >>confdefs.h <<\_ACEOF
3864 #define _POSIX_PTHREAD_SEMANTICS 1
3867 cat >>confdefs.h <<\_ACEOF
3868 #define _TANDEM_SOURCE 1
3873 case "${host_os}" in
3875 ac_default_prefix=/usr/local
3876 CPPFLAGS=-I/usr/local/include
3877 LDFLAGS=-L/usr/local/lib
3880 ac_default_prefix=/usr
3881 if test ${sysconfdir} = '${prefix}/etc'; then
3884 if test ${mandir} = '${prefix}/man'; then
3885 mandir=/usr/share/man
3890 if test ${localstatedir} = '${prefix}/var'; then
3894 BUILD_PLATFORM=${build}
3895 BUILD_CPU=${build_cpu}
3896 BUILD_VENDOR=${build_vendor}
3897 BUILD_OS=${build_os}
3904 HOST_PLATFORM=${host}
3905 HOST_CPU=${host_cpu}
3906 HOST_VENDOR=${host_vendor}
3914 case "${host_os}" in
3935 if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
3937 set dummy ${ac_tool_prefix}uname; ac_word=$2
3938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3940 if test "${ac_cv_path_UNAME+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 UNAME=$ac_cv_path_UNAME
3967 if test -n "$UNAME"; then
3968 { echo "$as_me:$LINENO: result: $UNAME" >&5
3969 echo "${ECHO_T}$UNAME" >&6; }
3971 { echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6; }
3977 if test -z "$ac_cv_path_UNAME"; then
3979 # Extract the first word of "uname", so it can be a program name with args.
3980 set dummy uname; ac_word=$2
3981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3983 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 case $ac_pt_UNAME in
3988 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4010 if test -n "$ac_pt_UNAME"; then
4011 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4012 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4014 { echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6; }
4018 if test "x$ac_pt_UNAME" = x; then
4021 case $cross_compiling:$ac_tool_warned in
4023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4024 whose name does not start with the host triplet. If you think this
4025 configuration is useful to you, please write to autoconf@gnu.org." >&5
4026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4027 whose name does not start with the host triplet. If you think this
4028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4029 ac_tool_warned=yes ;;
4034 UNAME="$ac_cv_path_UNAME"
4037 if test ! x"${UNAME}" = xNo; then
4038 PBX_OSREV=$(${UNAME} -r)
4048 # cross-compile checks
4049 if test "${cross_compiling}" = "yes";
4051 if test -n "$ac_tool_prefix"; then
4052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4056 if test "${ac_cv_prog_CC+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 if test -n "$CC"; then
4060 ac_cv_prog_CC="$CC" # Let the user override the test.
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 if test -n "$CC"; then
4081 { echo "$as_me:$LINENO: result: $CC" >&5
4082 echo "${ECHO_T}$CC" >&6; }
4084 { echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6; }
4090 if test -z "$ac_cv_prog_CC"; then
4092 # Extract the first word of "gcc", so it can be a program name with args.
4093 set dummy gcc; ac_word=$2
4094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 if test -n "$ac_ct_CC"; then
4100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_ac_ct_CC="gcc"
4110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4120 if test -n "$ac_ct_CC"; then
4121 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4122 echo "${ECHO_T}$ac_ct_CC" >&6; }
4124 { echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6; }
4128 if test "x$ac_ct_CC" = x; then
4131 case $cross_compiling:$ac_tool_warned in
4133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4134 whose name does not start with the host triplet. If you think this
4135 configuration is useful to you, please write to autoconf@gnu.org." >&5
4136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4137 whose name does not start with the host triplet. If you think this
4138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4139 ac_tool_warned=yes ;;
4147 if test -n "$ac_tool_prefix"; then
4148 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4149 set dummy ${ac_tool_prefix}g++; ac_word=$2
4150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4152 if test "${ac_cv_prog_CXX+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 if test -n "$CXX"; then
4156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 if test -n "$CXX"; then
4177 { echo "$as_me:$LINENO: result: $CXX" >&5
4178 echo "${ECHO_T}$CXX" >&6; }
4180 { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4186 if test -z "$ac_cv_prog_CXX"; then
4188 # Extract the first word of "g++", so it can be a program name with args.
4189 set dummy g++; ac_word=$2
4190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4192 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 if test -n "$ac_ct_CXX"; then
4196 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_ac_ct_CXX="g++"
4206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4216 if test -n "$ac_ct_CXX"; then
4217 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4218 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4220 { echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6; }
4224 if test "x$ac_ct_CXX" = x; then
4227 case $cross_compiling:$ac_tool_warned in
4229 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4230 whose name does not start with the host triplet. If you think this
4231 configuration is useful to you, please write to autoconf@gnu.org." >&5
4232 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4233 whose name does not start with the host triplet. If you think this
4234 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4235 ac_tool_warned=yes ;;
4240 CXX="$ac_cv_prog_CXX"
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4245 set dummy ${ac_tool_prefix}ld; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_LD+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 if test -n "$LD"; then
4252 ac_cv_prog_LD="$LD" # Let the user override the test.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_LD="${ac_tool_prefix}ld"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 if test -n "$LD"; then
4273 { echo "$as_me:$LINENO: result: $LD" >&5
4274 echo "${ECHO_T}$LD" >&6; }
4276 { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4282 if test -z "$ac_cv_prog_LD"; then
4284 # Extract the first word of "ld", so it can be a program name with args.
4285 set dummy ld; ac_word=$2
4286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4288 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 if test -n "$ac_ct_LD"; then
4292 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_prog_ac_ct_LD="ld"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4312 if test -n "$ac_ct_LD"; then
4313 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4314 echo "${ECHO_T}$ac_ct_LD" >&6; }
4316 { echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6; }
4320 if test "x$ac_ct_LD" = x; then
4323 case $cross_compiling:$ac_tool_warned in
4325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4326 whose name does not start with the host triplet. If you think this
4327 configuration is useful to you, please write to autoconf@gnu.org." >&5
4328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4329 whose name does not start with the host triplet. If you think this
4330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4331 ac_tool_warned=yes ;;
4339 if test -n "$ac_tool_prefix"; then
4340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4344 if test "${ac_cv_prog_RANLIB+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 if test -n "$RANLIB"; then
4348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 RANLIB=$ac_cv_prog_RANLIB
4368 if test -n "$RANLIB"; then
4369 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4370 echo "${ECHO_T}$RANLIB" >&6; }
4372 { echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6; }
4378 if test -z "$ac_cv_prog_RANLIB"; then
4379 ac_ct_RANLIB=$RANLIB
4380 # Extract the first word of "ranlib", so it can be a program name with args.
4381 set dummy ranlib; ac_word=$2
4382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 if test -n "$ac_ct_RANLIB"; then
4388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_ac_ct_RANLIB="ranlib"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4408 if test -n "$ac_ct_RANLIB"; then
4409 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4410 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4412 { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4416 if test "x$ac_ct_RANLIB" = x; then
4419 case $cross_compiling:$ac_tool_warned in
4421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4422 whose name does not start with the host triplet. If you think this
4423 configuration is useful to you, please write to autoconf@gnu.org." >&5
4424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4425 whose name does not start with the host triplet. If you think this
4426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4427 ac_tool_warned=yes ;;
4429 RANLIB=$ac_ct_RANLIB
4432 RANLIB="$ac_cv_prog_RANLIB"
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}ar; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_AR+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -n "$AR"; then
4444 ac_cv_prog_AR="$AR" # Let the user override the test.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_AR="${ac_tool_prefix}ar"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 if test -n "$AR"; then
4465 { echo "$as_me:$LINENO: result: $AR" >&5
4466 echo "${ECHO_T}$AR" >&6; }
4468 { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4474 if test -z "$ac_cv_prog_AR"; then
4476 # Extract the first word of "ar", so it can be a program name with args.
4477 set dummy ar; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 if test -n "$ac_ct_AR"; then
4484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_ac_ct_AR="ar"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4504 if test -n "$ac_ct_AR"; then
4505 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4506 echo "${ECHO_T}$ac_ct_AR" >&6; }
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4512 if test "x$ac_ct_AR" = x; then
4515 case $cross_compiling:$ac_tool_warned in
4517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4518 whose name does not start with the host triplet. If you think this
4519 configuration is useful to you, please write to autoconf@gnu.org." >&5
4520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4521 whose name does not start with the host triplet. If you think this
4522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4523 ac_tool_warned=yes ;;
4533 # Checks for programs.
4535 ac_cpp='$CPP $CPPFLAGS'
4536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539 if test -n "$ac_tool_prefix"; then
4540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4544 if test "${ac_cv_prog_CC+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 if test -n "$CC"; then
4548 ac_cv_prog_CC="$CC" # Let the user override the test.
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 if test -n "$CC"; then
4569 { echo "$as_me:$LINENO: result: $CC" >&5
4570 echo "${ECHO_T}$CC" >&6; }
4572 { echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6; }
4578 if test -z "$ac_cv_prog_CC"; then
4580 # Extract the first word of "gcc", so it can be a program name with args.
4581 set dummy gcc; ac_word=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 if test -n "$ac_ct_CC"; then
4588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_ac_ct_CC="gcc"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4608 if test -n "$ac_ct_CC"; then
4609 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4610 echo "${ECHO_T}$ac_ct_CC" >&6; }
4612 { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4616 if test "x$ac_ct_CC" = x; then
4619 case $cross_compiling:$ac_tool_warned in
4621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4622 whose name does not start with the host triplet. If you think this
4623 configuration is useful to you, please write to autoconf@gnu.org." >&5
4624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4625 whose name does not start with the host triplet. If you think this
4626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4627 ac_tool_warned=yes ;;
4635 if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}cc; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_prog_CC+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 if test -n "$CC"; then
4645 ac_cv_prog_CC="$CC" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_CC="${ac_tool_prefix}cc"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 if test -n "$CC"; then
4666 { echo "$as_me:$LINENO: result: $CC" >&5
4667 echo "${ECHO_T}$CC" >&6; }
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4676 if test -z "$CC"; then
4677 # Extract the first word of "cc", so it can be a program name with args.
4678 set dummy cc; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_prog_CC+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 if test -n "$CC"; then
4685 ac_cv_prog_CC="$CC" # Let the user override the test.
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696 ac_prog_rejected=yes
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_CC
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set CC to just the basename; use the full file name.
4716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4722 if test -n "$CC"; then
4723 { echo "$as_me:$LINENO: result: $CC" >&5
4724 echo "${ECHO_T}$CC" >&6; }
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4732 if test -z "$CC"; then
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in cl.exe
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_prog_CC+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 if test -n "$CC"; then
4744 ac_cv_prog_CC="$CC" # Let the user override the test.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 if test -n "$CC"; then
4765 { echo "$as_me:$LINENO: result: $CC" >&5
4766 echo "${ECHO_T}$CC" >&6; }
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4773 test -n "$CC" && break
4776 if test -z "$CC"; then
4778 for ac_prog in cl.exe
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 if test -n "$ac_ct_CC"; then
4788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_CC="$ac_prog"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4808 if test -n "$ac_ct_CC"; then
4809 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4810 echo "${ECHO_T}$ac_ct_CC" >&6; }
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4817 test -n "$ac_ct_CC" && break
4820 if test "x$ac_ct_CC" = x; then
4823 case $cross_compiling:$ac_tool_warned in
4825 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4826 whose name does not start with the host triplet. If you think this
4827 configuration is useful to you, please write to autoconf@gnu.org." >&5
4828 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4829 whose name does not start with the host triplet. If you think this
4830 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4831 ac_tool_warned=yes ;;
4840 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4841 See \`config.log
' for more details." >&5
4842 echo "$as_me: error: no acceptable C compiler found in \$PATH
4843 See \`config.log' for more details.
" >&2;}
4844 { (exit 1); exit 1; }; }
4846 # Provide some information about the compiler.
4847 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4848 ac_compiler=`set X $ac_compile; echo $2`
4849 { (ac_try="$ac_compiler --version >&5"
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_compiler --version >&5") 2>&5
4857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4858 (exit $ac_status); }
4859 { (ac_try="$ac_compiler -v >&5"
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_compiler -v >&5") 2>&5
4867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4868 (exit $ac_status); }
4869 { (ac_try="$ac_compiler -V >&5"
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_compiler -V >&5") 2>&5
4877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4878 (exit $ac_status); }
4880 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4881 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4882 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4883 echo $ECHO_N "(cached
) $ECHO_C" >&6
4885 cat >conftest.$ac_ext <<_ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4903 rm -f conftest.$ac_objext
4904 if { (ac_try="$ac_compile"
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_compile") 2>conftest.er1
4912 grep -v '^ *+' conftest.er1 >conftest.err
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
4922 echo "$as_me: failed program was
:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4932 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4933 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4934 GCC=`test $ac_compiler_gnu = yes && echo yes`
4935 ac_test_CFLAGS=${CFLAGS+set}
4936 ac_save_CFLAGS=$CFLAGS
4937 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4938 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4939 if test "${ac_cv_prog_cc_g+set}" = set; then
4940 echo $ECHO_N "(cached
) $ECHO_C" >&6
4942 ac_save_c_werror_flag=$ac_c_werror_flag
4943 ac_c_werror_flag=yes
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4961 rm -f conftest.$ac_objext
4962 if { (ac_try="$ac_compile"
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_compile") 2>conftest.er1
4970 grep -v '^ *+' conftest.er1 >conftest.err
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4974 (exit $ac_status); } && {
4975 test -z "$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 } && test -s conftest.$ac_objext; then
4980 echo "$as_me: failed program was
:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4984 cat >conftest.$ac_ext <<_ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4999 rm -f conftest.$ac_objext
5000 if { (ac_try="$ac_compile"
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5008 grep -v '^ *+' conftest.er1 >conftest.err
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_c_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.$ac_objext; then
5018 echo "$as_me: failed program was
:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 ac_c_werror_flag=$ac_save_c_werror_flag
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5038 rm -f conftest.$ac_objext
5039 if { (ac_try="$ac_compile"
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_compile") 2>conftest.er1
5047 grep -v '^ *+' conftest.er1 >conftest.err
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5051 (exit $ac_status); } && {
5052 test -z "$ac_c_werror_flag" ||
5053 test ! -s conftest.err
5054 } && test -s conftest.$ac_objext; then
5057 echo "$as_me: failed program was
:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ac_c_werror_flag=$ac_save_c_werror_flag
5072 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5073 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5074 if test "$ac_test_CFLAGS" = set; then
5075 CFLAGS=$ac_save_CFLAGS
5076 elif test $ac_cv_prog_cc_g = yes; then
5077 if test "$GCC" = yes; then
5083 if test "$GCC" = yes; then
5089 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5090 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5091 if test "${ac_cv_prog_cc_c89+set}" = set; then
5092 echo $ECHO_N "(cached
) $ECHO_C" >&6
5094 ac_cv_prog_cc_c89=no
5096 cat >conftest.$ac_ext <<_ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5104 #include <sys/types.h>
5105 #include <sys/stat.h>
5106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5107 struct buf { int x; };
5108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5109 static char *e (p, i)
5115 static char *f (char * (*g) (char **, int), char **p, ...)
5120 s = g (p, va_arg (v,int));
5125 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5126 function prototypes and stuff, but not '\xHH' hex character constants.
5127 These don't provoke an error unfortunately, instead are silently treated
5128 as 'x'. The following induces an error, until -std is added to get
5129 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5130 array size at least. It's necessary to write '\x00'==0 to get something
5131 that's true only with -std. */
5132 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5134 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5135 inside strings and character constants. */
5137 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5139 int test (int i, double x);
5140 struct s1 {int (*f) (int a);};
5141 struct s2 {int (*f) (double a);};
5142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5153 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5154 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5156 CC="$ac_save_CC $ac_arg"
5157 rm -f conftest.$ac_objext
5158 if { (ac_try="$ac_compile"
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5164 (eval "$ac_compile") 2>conftest.er1
5166 grep -v '^ *+' conftest.er1 >conftest.err
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5170 (exit $ac_status); } && {
5171 test -z "$ac_c_werror_flag" ||
5172 test ! -s conftest.err
5173 } && test -s conftest.$ac_objext; then
5174 ac_cv_prog_cc_c89=$ac_arg
5176 echo "$as_me: failed program was
:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5182 rm -f core conftest.err conftest.$ac_objext
5183 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5185 rm -f conftest.$ac_ext
5190 case "x
$ac_cv_prog_cc_c89" in
5192 { echo "$as_me:$LINENO: result
: none needed
" >&5
5193 echo "${ECHO_T}none needed
" >&6; } ;;
5195 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5196 echo "${ECHO_T}unsupported
" >&6; } ;;
5198 CC="$CC $ac_cv_prog_cc_c89"
5199 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5200 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5211 ac_cpp='$CXXCPP $CPPFLAGS'
5212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5215 if test -z "$CXX"; then
5216 if test -n "$CCC"; then
5219 if test -n "$ac_tool_prefix"; then
5220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5224 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5225 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5226 if test "${ac_cv_prog_CXX+set}" = set; then
5227 echo $ECHO_N "(cached
) $ECHO_C" >&6
5229 if test -n "$CXX"; then
5230 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5240 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5250 if test -n "$CXX"; then
5251 { echo "$as_me:$LINENO: result
: $CXX" >&5
5252 echo "${ECHO_T}$CXX" >&6; }
5254 { echo "$as_me:$LINENO: result
: no
" >&5
5255 echo "${ECHO_T}no
" >&6; }
5259 test -n "$CXX" && break
5262 if test -z "$CXX"; then
5264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5266 # Extract the first word of "$ac_prog", so it can be a program name with args.
5267 set dummy $ac_prog; ac_word=$2
5268 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5269 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5271 echo $ECHO_N "(cached
) $ECHO_C" >&6
5273 if test -n "$ac_ct_CXX"; then
5274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_ac_ct_CXX="$ac_prog"
5284 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5294 if test -n "$ac_ct_CXX"; then
5295 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5298 { echo "$as_me:$LINENO: result
: no
" >&5
5299 echo "${ECHO_T}no
" >&6; }
5303 test -n "$ac_ct_CXX" && break
5306 if test "x
$ac_ct_CXX" = x; then
5309 case $cross_compiling:$ac_tool_warned in
5311 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5312 whose name does not start with the
host triplet. If you think this
5313 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5314 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5315 whose name does not start with the
host triplet. If you think this
5316 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5317 ac_tool_warned=yes ;;
5325 # Provide some information about the compiler.
5326 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5327 ac_compiler=`set X $ac_compile; echo $2`
5328 { (ac_try="$ac_compiler --version >&5"
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_compiler --version >&5") 2>&5
5336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5337 (exit $ac_status); }
5338 { (ac_try="$ac_compiler -v >&5"
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_compiler -v >&5") 2>&5
5346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5347 (exit $ac_status); }
5348 { (ac_try="$ac_compiler -V >&5"
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_compiler -V >&5") 2>&5
5356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5357 (exit $ac_status); }
5359 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5360 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5361 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5362 echo $ECHO_N "(cached
) $ECHO_C" >&6
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_cxx_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5401 echo "$as_me: failed program was
:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5411 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5412 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5413 GXX=`test $ac_compiler_gnu = yes && echo yes`
5414 ac_test_CXXFLAGS=${CXXFLAGS+set}
5415 ac_save_CXXFLAGS=$CXXFLAGS
5416 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5417 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5418 if test "${ac_cv_prog_cxx_g+set}" = set; then
5419 echo $ECHO_N "(cached
) $ECHO_C" >&6
5421 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5422 ac_cxx_werror_flag=yes
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5440 rm -f conftest.$ac_objext
5441 if { (ac_try="$ac_compile"
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_compile") 2>conftest.er1
5449 grep -v '^ *+' conftest.er1 >conftest.err
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_cxx_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest.$ac_objext; then
5457 ac_cv_prog_cxx_g=yes
5459 echo "$as_me: failed program was
:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5463 cat >conftest.$ac_ext <<_ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5478 rm -f conftest.$ac_objext
5479 if { (ac_try="$ac_compile"
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5487 grep -v '^ *+' conftest.er1 >conftest.err
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_cxx_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
5497 echo "$as_me: failed program was
:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5502 cat >conftest.$ac_ext <<_ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5526 grep -v '^ *+' conftest.er1 >conftest.err
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_cxx_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5534 ac_cv_prog_cxx_g=yes
5536 echo "$as_me: failed program was
:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5551 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5552 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5553 if test "$ac_test_CXXFLAGS" = set; then
5554 CXXFLAGS=$ac_save_CXXFLAGS
5555 elif test $ac_cv_prog_cxx_g = yes; then
5556 if test "$GXX" = yes; then
5562 if test "$GXX" = yes; then
5569 ac_cpp='$CPP $CPPFLAGS'
5570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575 ac_cpp='$CPP $CPPFLAGS'
5576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5579 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5580 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5581 # On Suns, sometimes $CPP names a directory.
5582 if test -n "$CPP" && test -d "$CPP"; then
5585 if test -z "$CPP"; then
5586 if test "${ac_cv_prog_CPP+set}" = set; then
5587 echo $ECHO_N "(cached
) $ECHO_C" >&6
5589 # Double quotes because CPP needs to be expanded
5590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5593 for ac_c_preproc_warn_flag in '' yes
5595 # Use a header file that comes with gcc, so configuring glibc
5596 # with a fresh cross-compiler works.
5597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598 # <limits.h> exists even on freestanding compilers.
5599 # On the NeXT, cc -E runs the code through the compiler's parser,
5600 # not just through cpp. "Syntax error
" is here to catch this case.
5601 cat >conftest.$ac_ext <<_ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5608 # include <limits.h>
5610 # include <assert.h>
5614 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5619 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1 >conftest.err
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5626 (exit $ac_status); } >/dev/null && {
5627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5632 echo "$as_me: failed program was
:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 # Broken: fails on valid input.
5639 rm -f conftest.err conftest.$ac_ext
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat >conftest.$ac_ext <<_ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <ac_nonexistent.h>
5651 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5659 grep -v '^ *+' conftest.er1 >conftest.err
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5663 (exit $ac_status); } >/dev/null && {
5664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5667 # Broken: success on invalid input.
5670 echo "$as_me: failed program was
:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 # Passes both tests.
5678 rm -f conftest.err conftest.$ac_ext
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then
5695 { echo "$as_me:$LINENO: result
: $CPP" >&5
5696 echo "${ECHO_T}$CPP" >&6; }
5698 for ac_c_preproc_warn_flag in '' yes
5700 # Use a header file that comes with gcc, so configuring glibc
5701 # with a fresh cross-compiler works.
5702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5703 # <limits.h> exists even on freestanding compilers.
5704 # On the NeXT, cc -E runs the code through the compiler's parser,
5705 # not just through cpp. "Syntax error
" is here to catch this case.
5706 cat >conftest.$ac_ext <<_ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5713 # include <limits.h>
5715 # include <assert.h>
5719 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5731 (exit $ac_status); } >/dev/null && {
5732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5737 echo "$as_me: failed program was
:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 # Broken: fails on valid input.
5744 rm -f conftest.err conftest.$ac_ext
5746 # OK, works on sane cases. Now check whether nonexistent headers
5747 # can be detected and how.
5748 cat >conftest.$ac_ext <<_ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 #include <ac_nonexistent.h>
5756 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5761 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5768 (exit $ac_status); } >/dev/null && {
5769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5772 # Broken: success on invalid input.
5775 echo "$as_me: failed program was
:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 # Passes both tests.
5783 rm -f conftest.err conftest.$ac_ext
5786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5787 rm -f conftest.err conftest.$ac_ext
5788 if $ac_preproc_ok; then
5791 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5792 See \
`config.log' for more details." >&5
5793 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5794 See \`config.log
' for more details." >&2;}
5795 { (exit 1); exit 1; }; }
5799 ac_cpp='$CPP $CPPFLAGS'
5800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5801 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5805 ac_cpp='$CXXCPP $CPPFLAGS'
5806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5807 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5810 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5811 if test -z "$CXXCPP"; then
5812 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 # Double quotes because CXXCPP needs to be expanded
5816 for CXXCPP in "$CXX -E" "/lib/cpp"
5819 for ac_cxx_preproc_warn_flag in '' yes
5821 # Use a header file that comes with gcc, so configuring glibc
5822 # with a fresh cross-compiler works.
5823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5824 # <limits.h> exists even on freestanding compilers.
5825 # On the NeXT, cc -E runs the code through the compiler's parser
,
5826 # not just through cpp. "Syntax error" is here to catch this case.
5827 cat >conftest.
$ac_ext <<_ACEOF
5830 cat confdefs.h
>>conftest.
$ac_ext
5831 cat >>conftest.
$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5834 # include <limits.h>
5836 # include <assert.h>
5840 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5848 grep -v '^ *+' conftest.er1 >conftest.err
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } >/dev/null && {
5853 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5854 test ! -s conftest.err
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 # Broken: fails on valid input.
5865 rm -f conftest.err conftest.$ac_ext
5867 # OK, works on sane cases. Now check whether nonexistent headers
5868 # can be detected and how.
5869 cat >conftest.$ac_ext <<_ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 #include <ac_nonexistent.h>
5877 if { (ac_try="$ac_cpp conftest.$ac_ext"
5879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5880 *) ac_try_echo
=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5885 grep -v '^ *+' conftest.er1
>conftest.err
5887 cat conftest.err
>&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } >/dev
/null
&& {
5890 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5891 test ! -s conftest.err
5893 # Broken: success on invalid input.
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.
$ac_ext >&5
5899 # Passes both tests.
5904 rm -f conftest.err conftest.
$ac_ext
5907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5908 rm -f conftest.err conftest.
$ac_ext
5909 if $ac_preproc_ok; then
5914 ac_cv_prog_CXXCPP
=$CXXCPP
5917 CXXCPP
=$ac_cv_prog_CXXCPP
5919 ac_cv_prog_CXXCPP
=$CXXCPP
5921 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5922 echo "${ECHO_T}$CXXCPP" >&6; }
5924 for ac_cxx_preproc_warn_flag
in '' yes
5926 # Use a header file that comes with gcc, so configuring glibc
5927 # with a fresh cross-compiler works.
5928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5929 # <limits.h> exists even on freestanding compilers.
5930 # On the NeXT, cc -E runs the code through the compiler's parser,
5931 # not just through cpp. "Syntax error" is here to catch this case.
5932 cat >conftest.
$ac_ext <<_ACEOF
5935 cat confdefs.h
>>conftest.
$ac_ext
5936 cat >>conftest.
$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5939 # include <limits.h>
5941 # include <assert.h>
5945 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5953 grep -v '^ *+' conftest.er1 >conftest.err
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } >/dev/null && {
5958 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5959 test ! -s conftest.err
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 # Broken: fails on valid input.
5970 rm -f conftest.err conftest.$ac_ext
5972 # OK, works on sane cases. Now check whether nonexistent headers
5973 # can be detected and how.
5974 cat >conftest.$ac_ext <<_ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #include <ac_nonexistent.h>
5982 if { (ac_try="$ac_cpp conftest.$ac_ext"
5984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5985 *) ac_try_echo
=$ac_try;;
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5990 grep -v '^ *+' conftest.er1
>conftest.err
5992 cat conftest.err
>&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } >/dev
/null
&& {
5995 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5996 test ! -s conftest.err
5998 # Broken: success on invalid input.
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.
$ac_ext >&5
6004 # Passes both tests.
6009 rm -f conftest.err conftest.
$ac_ext
6012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6013 rm -f conftest.err conftest.
$ac_ext
6014 if $ac_preproc_ok; then
6017 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6018 See \`config.log' for more details." >&5
6019 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6020 See \`config.log' for more details." >&2;}
6021 { (exit 1); exit 1; }; }
6025 ac_cpp
='$CPP $CPPFLAGS'
6026 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6030 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6031 # the developers regenerating the configure script don't have to install libtool.
6032 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6033 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6034 if test "${ac_cv_path_SED+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6038 for ac_i
in 1 2 3 4 5 6 7; do
6039 ac_script
="$ac_script$as_nl$ac_script"
6041 echo "$ac_script" |
sed 99q
>conftest.
sed
6042 $as_unset ac_script || ac_script
=
6043 # Extract the first word of "sed gsed" to use in msg output
6044 if test -z "$SED"; then
6045 set dummy
sed gsed
; ac_prog_name
=$2
6046 if test "${ac_cv_path_SED+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 ac_path_SED_found
=false
6050 # Loop through the user's path and test for each of PROGNAME-LIST
6051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6055 test -z "$as_dir" && as_dir
=.
6056 for ac_prog
in sed gsed
; do
6057 for ac_exec_ext
in '' $ac_executable_extensions; do
6058 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6059 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6060 # Check for GNU ac_path_SED and select it if it is found.
6061 # Check for GNU $ac_path_SED
6062 case `"$ac_path_SED" --version 2>&1` in
6064 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6067 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6070 cat "conftest.in" "conftest.in" >"conftest.tmp"
6071 mv "conftest.tmp" "conftest.in"
6072 cp "conftest.in" "conftest.nl"
6073 echo '' >> "conftest.nl"
6074 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6075 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6076 ac_count
=`expr $ac_count + 1`
6077 if test $ac_count -gt ${ac_path_SED_max-0}; then
6078 # Best one so far, save it but keep looking for a better one
6079 ac_cv_path_SED
="$ac_path_SED"
6080 ac_path_SED_max
=$ac_count
6082 # 10*(2^10) chars as input seems more than enough
6083 test $ac_count -gt 10 && break
6085 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6089 $ac_path_SED_found && break 3
6099 SED
="$ac_cv_path_SED"
6100 if test -z "$SED"; then
6101 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6102 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6103 { (exit 1); exit 1; }; }
6111 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6112 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6113 SED
="$ac_cv_path_SED"
6116 { echo "$as_me:$LINENO: checking for egrep" >&5
6117 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_egrep+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6122 then ac_cv_prog_egrep
='grep -E'
6123 else ac_cv_prog_egrep
='egrep'
6126 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6127 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6128 EGREP
=$ac_cv_prog_egrep
6132 # Check whether --with-gnu-ld was given.
6133 if test "${with_gnu_ld+set}" = set; then
6134 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6140 if test "$GCC" = yes; then
6141 # Check if gcc -print-prog-name=ld gives a path.
6142 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6143 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6146 # gcc leaves a trailing carriage return which upsets mingw
6147 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6149 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6152 # Accept absolute paths.
6154 re_direlt
='/[^/][^/]*/\.\./'
6155 # Canonicalize the pathname of ld
6156 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6157 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6158 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6160 test -z "$LD" && LD
="$ac_prog"
6163 # If it fails, then pretend we aren't using GCC.
6167 # If it is relative, then search for the first ld in PATH.
6171 elif test "$with_gnu_ld" = yes; then
6172 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6173 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6175 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6176 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6178 if test "${lt_cv_path_LD+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 if test -z "$LD"; then
6182 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6183 for ac_dir
in $PATH; do
6185 test -z "$ac_dir" && ac_dir
=.
6186 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6187 lt_cv_path_LD
="$ac_dir/$ac_prog"
6188 # Check to see if the program is GNU ld. I'd rather use --version,
6189 # but apparently some variants of GNU ld only accept -v.
6190 # Break only if it was the GNU/non-GNU ld that we prefer.
6191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6192 *GNU
* |
*'with BFD'*)
6193 test "$with_gnu_ld" != no
&& break
6196 test "$with_gnu_ld" != yes && break
6203 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6208 if test -n "$LD"; then
6209 { echo "$as_me:$LINENO: result: $LD" >&5
6210 echo "${ECHO_T}$LD" >&6; }
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6215 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6216 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6217 { (exit 1); exit 1; }; }
6218 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6219 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6220 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6224 case `$LD -v 2>&1 </dev/null` in
6225 *GNU
* |
*'with BFD'*)
6226 lt_cv_prog_gnu_ld
=yes
6229 lt_cv_prog_gnu_ld
=no
6233 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6234 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6235 with_gnu_ld
=$lt_cv_prog_gnu_ld
6238 for ac_prog
in gawk mawk nawk
awk
6240 # Extract the first word of "$ac_prog", so it can be a program name with args.
6241 set dummy
$ac_prog; ac_word
=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_AWK+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 if test -n "$AWK"; then
6248 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir
=.
6255 for ac_exec_ext
in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_AWK
="$ac_prog"
6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 if test -n "$AWK"; then
6269 { echo "$as_me:$LINENO: result: $AWK" >&5
6270 echo "${ECHO_T}$AWK" >&6; }
6272 { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6277 test -n "$AWK" && break
6280 # Find a good install program. We prefer a C program (faster),
6281 # so one script is as good as another. But avoid the broken or
6282 # incompatible versions:
6283 # SysV /etc/install, /usr/sbin/install
6284 # SunOS /usr/etc/install
6285 # IRIX /sbin/install
6287 # AmigaOS /C/install, which installs bootblocks on floppy discs
6288 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6289 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6290 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6291 # OS/2's system install, which has a completely different semantic
6292 # ./install, which can be erroneously created by make from ./install.sh.
6293 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6294 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6295 if test -z "$INSTALL"; then
6296 if test "${ac_cv_path_install+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir
=.
6304 # Account for people who put trailing slashes in PATH elements.
6306 .
/ | .
// |
/cC
/* | \
6307 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6308 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6311 # OSF1 and SCO ODT 3.0 have their own names for install.
6312 # Don't use installbsd from OSF since it installs stuff as root
6314 for ac_prog
in ginstall scoinst
install; do
6315 for ac_exec_ext
in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6317 if test $ac_prog = install &&
6318 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6319 # AIX install. It has an incompatible calling convention.
6321 elif test $ac_prog = install &&
6322 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6323 # program-specific install script used by HP pwplus--don't use.
6326 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6339 if test "${ac_cv_path_install+set}" = set; then
6340 INSTALL
=$ac_cv_path_install
6342 # As a last resort, use the slow shell script. Don't cache a
6343 # value for INSTALL within a source directory, because that will
6344 # break other packages using the cache if that directory is
6345 # removed, or if the value is a relative name.
6346 INSTALL
=$ac_install_sh
6349 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6350 echo "${ECHO_T}$INSTALL" >&6; }
6352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6353 # It thinks the first close brace ends the variable substitution.
6354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6358 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6360 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6361 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6363 if test "$LN_S" = "ln -s"; then
6364 { echo "$as_me:$LINENO: result: yes" >&5
6365 echo "${ECHO_T}yes" >&6; }
6367 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6368 echo "${ECHO_T}no, using $LN_S" >&6; }
6371 if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6373 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_prog_RANLIB+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 if test -n "$RANLIB"; then
6380 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir
=.
6387 for ac_exec_ext
in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 RANLIB
=$ac_cv_prog_RANLIB
6400 if test -n "$RANLIB"; then
6401 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6402 echo "${ECHO_T}$RANLIB" >&6; }
6404 { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6410 if test -z "$ac_cv_prog_RANLIB"; then
6411 ac_ct_RANLIB
=$RANLIB
6412 # Extract the first word of "ranlib", so it can be a program name with args.
6413 set dummy ranlib
; ac_word
=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 if test -n "$ac_ct_RANLIB"; then
6420 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir
=.
6427 for ac_exec_ext
in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6440 if test -n "$ac_ct_RANLIB"; then
6441 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6442 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6444 { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6448 if test "x$ac_ct_RANLIB" = x
; then
6451 case $cross_compiling:$ac_tool_warned in
6453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6454 whose name does not start with the host triplet. If you think this
6455 configuration is useful to you, please write to autoconf@gnu.org." >&5
6456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6457 whose name does not start with the host triplet. If you think this
6458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6459 ac_tool_warned
=yes ;;
6461 RANLIB
=$ac_ct_RANLIB
6464 RANLIB
="$ac_cv_prog_RANLIB"
6467 { echo "$as_me:$LINENO: checking for GNU make" >&5
6468 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6469 if test "${GNU_MAKE+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 GNU_MAKE
='Not Found' ;
6473 GNU_MAKE_VERSION_MAJOR
=0 ;
6474 GNU_MAKE_VERSION_MINOR
=0 ;
6475 for a
in make gmake gnumake
; do
6476 if test -z "$a" ; then continue ; fi ;
6477 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6479 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6480 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6486 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6487 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6488 if test "x$GNU_MAKE" = "xNot Found" ; then
6489 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6490 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6491 { (exit 1); exit 1; }; }
6498 if test "x$with_gnu_ld" = "xyes" ; then
6503 # Extract the first word of "grep", so it can be a program name with args.
6504 set dummy
grep; ac_word
=$2
6505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507 if test "${ac_cv_path_GREP+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6519 test -z "$as_dir" && as_dir
=.
6520 for ac_exec_ext
in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
6534 GREP
=$ac_cv_path_GREP
6535 if test -n "$GREP"; then
6536 { echo "$as_me:$LINENO: result: $GREP" >&5
6537 echo "${ECHO_T}$GREP" >&6; }
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6544 # Extract the first word of "ar", so it can be a program name with args.
6545 set dummy
ar; ac_word
=$2
6546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548 if test "${ac_cv_path_AR+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6560 test -z "$as_dir" && as_dir
=.
6561 for ac_exec_ext
in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 test -z "$ac_cv_path_AR" && ac_cv_path_AR
=":"
6576 if test -n "$AR"; then
6577 { echo "$as_me:$LINENO: result: $AR" >&5
6578 echo "${ECHO_T}$AR" >&6; }
6580 { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6585 # Extract the first word of "find", so it can be a program name with args.
6586 set dummy
find; ac_word
=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_FIND+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir
=.
6602 for ac_exec_ext
in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
6616 FIND
=$ac_cv_path_FIND
6617 if test -n "$FIND"; then
6618 { echo "$as_me:$LINENO: result: $FIND" >&5
6619 echo "${ECHO_T}$FIND" >&6; }
6621 { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6626 # Extract the first word of "compress", so it can be a program name with args.
6627 set dummy
compress; ac_word
=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_COMPRESS+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
6638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6642 test -z "$as_dir" && as_dir
=.
6643 for ac_exec_ext
in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
6657 COMPRESS
=$ac_cv_path_COMPRESS
6658 if test -n "$COMPRESS"; then
6659 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6660 echo "${ECHO_T}$COMPRESS" >&6; }
6662 { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6667 # Extract the first word of "basename", so it can be a program name with args.
6668 set dummy
basename; ac_word
=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_BASENAME+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
6679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir
=.
6684 for ac_exec_ext
in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
6698 BASENAME
=$ac_cv_path_BASENAME
6699 if test -n "$BASENAME"; then
6700 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6701 echo "${ECHO_T}$BASENAME" >&6; }
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6708 # Extract the first word of "id", so it can be a program name with args.
6709 set dummy id
; ac_word
=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_path_ID+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
6720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir
=.
6725 for ac_exec_ext
in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
6740 if test -n "$ID"; then
6741 { echo "$as_me:$LINENO: result: $ID" >&5
6742 echo "${ECHO_T}$ID" >&6; }
6744 { echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6; }
6749 # Extract the first word of "dirname", so it can be a program name with args.
6750 set dummy
dirname; ac_word
=$2
6751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753 if test "${ac_cv_path_DIRNAME+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
6761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir
=.
6766 for ac_exec_ext
in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
6780 DIRNAME
=$ac_cv_path_DIRNAME
6781 if test -n "$DIRNAME"; then
6782 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6783 echo "${ECHO_T}$DIRNAME" >&6; }
6785 { echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6; }
6790 # Extract the first word of "sh", so it can be a program name with args.
6791 set dummy sh
; ac_word
=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_path_SHELL+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
6802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6806 test -z "$as_dir" && as_dir
=.
6807 for ac_exec_ext
in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
6821 SHELL
=$ac_cv_path_SHELL
6822 if test -n "$SHELL"; then
6823 { echo "$as_me:$LINENO: result: $SHELL" >&5
6824 echo "${ECHO_T}$SHELL" >&6; }
6826 { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6831 # Extract the first word of "ln", so it can be a program name with args.
6832 set dummy
ln; ac_word
=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_LN+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
6843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir
=.
6848 for ac_exec_ext
in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
6863 if test -n "$LN"; then
6864 { echo "$as_me:$LINENO: result: $LN" >&5
6865 echo "${ECHO_T}$LN" >&6; }
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 # Extract the first word of "dot", so it can be a program name with args.
6873 set dummy dot
; ac_word
=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_DOT+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
6884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir
=.
6889 for ac_exec_ext
in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
6904 if test -n "$DOT"; then
6905 { echo "$as_me:$LINENO: result: $DOT" >&5
6906 echo "${ECHO_T}$DOT" >&6; }
6908 { echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6; }
6913 # Extract the first word of "strip", so it can be a program name with args.
6914 set dummy strip
; ac_word
=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_path_STRIP+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6929 test -z "$as_dir" && as_dir
=.
6930 for ac_exec_ext
in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP
=":"
6944 STRIP
=$ac_cv_path_STRIP
6945 if test -n "$STRIP"; then
6946 { echo "$as_me:$LINENO: result: $STRIP" >&5
6947 echo "${ECHO_T}$STRIP" >&6; }
6949 { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6954 # Extract the first word of "wget", so it can be a program name with args.
6955 set dummy wget
; ac_word
=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_WGET+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
6966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir
=.
6971 for ac_exec_ext
in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
6985 WGET
=$ac_cv_path_WGET
6986 if test -n "$WGET"; then
6987 { echo "$as_me:$LINENO: result: $WGET" >&5
6988 echo "${ECHO_T}$WGET" >&6; }
6990 { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6995 if test "${WGET}" != ":" ; then
6998 # Extract the first word of "fetch", so it can be a program name with args.
6999 set dummy fetch
; ac_word
=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_FETCH+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir
=.
7015 for ac_exec_ext
in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7029 FETCH
=$ac_cv_path_FETCH
7030 if test -n "$FETCH"; then
7031 { echo "$as_me:$LINENO: result: $FETCH" >&5
7032 echo "${ECHO_T}$FETCH" >&6; }
7034 { echo "$as_me:$LINENO: result: no" >&5
7035 echo "${ECHO_T}no" >&6; }
7044 ac_cpp
='$CPP $CPPFLAGS'
7045 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7050 # Check whether --enable-dev-mode was given.
7051 if test "${enable_dev_mode+set}" = set; then
7052 enableval
=$enable_dev_mode; case "${enableval}" in
7053 y|ye|
yes) AST_DEVMODE
=yes ;;
7054 n|no
) AST_DEVMODE
=no
;;
7055 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7056 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7057 { (exit 1); exit 1; }; } ;;
7063 # package option names should be in alphabetical order
7064 # by the --with option name, to make things easier for the users :-)
7067 ALSA_DESCRIP
="Advanced Linux Sound Architecture"
7068 ALSA_OPTION
="asound"
7070 # Check whether --with-asound was given.
7071 if test "${with_asound+set}" = set; then
7072 withval
=$with_asound;
7078 ALSA_MANDATORY
="yes"
7081 ALSA_DIR
="${withval}"
7082 ALSA_MANDATORY
="yes"
7097 # Check whether --with-curl was given.
7098 if test "${with_curl+set}" = set; then
7105 CURL_MANDATORY
="yes"
7108 CURL_DIR
="${withval}"
7109 CURL_MANDATORY
="yes"
7121 CURSES_DESCRIP
="curses"
7122 CURSES_OPTION
="curses"
7124 # Check whether --with-curses was given.
7125 if test "${with_curses+set}" = set; then
7126 withval
=$with_curses;
7132 CURSES_MANDATORY
="yes"
7135 CURSES_DIR
="${withval}"
7136 CURSES_MANDATORY
="yes"
7148 GNUTLS_DESCRIP
="GNU TLS support (used for iksemel only)"
7149 GNUTLS_OPTION
="gnutls"
7151 # Check whether --with-gnutls was given.
7152 if test "${with_gnutls+set}" = set; then
7153 withval
=$with_gnutls;
7159 GNUTLS_MANDATORY
="yes"
7162 GNUTLS_DIR
="${withval}"
7163 GNUTLS_MANDATORY
="yes"
7178 # Check whether --with-gsm was given.
7179 if test "${with_gsm+set}" = set; then
7189 GSM_DIR
="${withval}"
7202 IKSEMEL_DESCRIP
="Iksemel Jabber Library"
7203 IKSEMEL_OPTION
="iksemel"
7205 # Check whether --with-iksemel was given.
7206 if test "${with_iksemel+set}" = set; then
7207 withval
=$with_iksemel;
7213 IKSEMEL_MANDATORY
="yes"
7216 IKSEMEL_DIR
="${withval}"
7217 IKSEMEL_MANDATORY
="yes"
7229 IMAP_TK_DESCRIP
="UW IMAP Toolkit"
7230 IMAP_TK_OPTION
="imap"
7232 # Check whether --with-imap was given.
7233 if test "${with_imap+set}" = set; then
7240 IMAP_TK_MANDATORY
="yes"
7243 IMAP_TK_DIR
="${withval}"
7244 IMAP_TK_MANDATORY
="yes"
7256 ISDNNET_DESCRIP
="ISDN4Linux Library"
7257 ISDNNET_OPTION
="isdnnet"
7259 # Check whether --with-isdnnet was given.
7260 if test "${with_isdnnet+set}" = set; then
7261 withval
=$with_isdnnet;
7267 ISDNNET_MANDATORY
="yes"
7270 ISDNNET_DIR
="${withval}"
7271 ISDNNET_MANDATORY
="yes"
7286 # Check whether --with-kde was given.
7287 if test "${with_kde+set}" = set; then
7297 KDE_DIR
="${withval}"
7310 MISDN_DESCRIP
="mISDN User Library"
7311 MISDN_OPTION
="misdn"
7313 # Check whether --with-misdn was given.
7314 if test "${with_misdn+set}" = set; then
7315 withval
=$with_misdn;
7321 MISDN_MANDATORY
="yes"
7324 MISDN_DIR
="${withval}"
7325 MISDN_MANDATORY
="yes"
7337 NBS_DESCRIP
="Network Broadcast Sound"
7340 # Check whether --with-nbs was given.
7341 if test "${with_nbs+set}" = set; then
7351 NBS_DIR
="${withval}"
7364 NCURSES_DESCRIP
="ncurses"
7365 NCURSES_OPTION
="ncurses"
7367 # Check whether --with-ncurses was given.
7368 if test "${with_ncurses+set}" = set; then
7369 withval
=$with_ncurses;
7375 NCURSES_MANDATORY
="yes"
7378 NCURSES_DIR
="${withval}"
7379 NCURSES_MANDATORY
="yes"
7391 NETSNMP_DESCRIP
="Net-SNMP"
7392 NETSNMP_OPTION
="netsnmp"
7394 # Check whether --with-netsnmp was given.
7395 if test "${with_netsnmp+set}" = set; then
7396 withval
=$with_netsnmp;
7402 NETSNMP_MANDATORY
="yes"
7405 NETSNMP_DIR
="${withval}"
7406 NETSNMP_MANDATORY
="yes"
7421 # Check whether --with-newt was given.
7422 if test "${with_newt+set}" = set; then
7429 NEWT_MANDATORY
="yes"
7432 NEWT_DIR
="${withval}"
7433 NEWT_MANDATORY
="yes"
7445 UNIXODBC_DESCRIP
="unixODBC"
7446 UNIXODBC_OPTION
="odbc"
7448 # Check whether --with-odbc was given.
7449 if test "${with_odbc+set}" = set; then
7456 UNIXODBC_MANDATORY
="yes"
7459 UNIXODBC_DIR
="${withval}"
7460 UNIXODBC_MANDATORY
="yes"
7475 # Check whether --with-ogg was given.
7476 if test "${with_ogg+set}" = set; then
7486 OGG_DIR
="${withval}"
7499 OSPTK_DESCRIP
="OSP Toolkit"
7500 OSPTK_OPTION
="osptk"
7502 # Check whether --with-osptk was given.
7503 if test "${with_osptk+set}" = set; then
7504 withval
=$with_osptk;
7510 OSPTK_MANDATORY
="yes"
7513 OSPTK_DIR
="${withval}"
7514 OSPTK_MANDATORY
="yes"
7526 OSS_DESCRIP
="Open Sound System"
7529 # Check whether --with-oss was given.
7530 if test "${with_oss+set}" = set; then
7540 OSS_DIR
="${withval}"
7556 # Check whether --with-popt was given.
7557 if test "${with_popt+set}" = set; then
7564 POPT_MANDATORY
="yes"
7567 POPT_DIR
="${withval}"
7568 POPT_MANDATORY
="yes"
7580 PGSQL_DESCRIP
="PostgreSQL"
7581 PGSQL_OPTION
="postgres"
7583 # Check whether --with-postgres was given.
7584 if test "${with_postgres+set}" = set; then
7585 withval
=$with_postgres;
7591 PGSQL_MANDATORY
="yes"
7594 PGSQL_DIR
="${withval}"
7595 PGSQL_MANDATORY
="yes"
7607 PRI_DESCRIP
="ISDN PRI"
7610 # Check whether --with-pri was given.
7611 if test "${with_pri+set}" = set; then
7621 PRI_DIR
="${withval}"
7634 PWLIB_DESCRIP
="PWlib"
7635 PWLIB_OPTION
="pwlib"
7637 # Check whether --with-pwlib was given.
7638 if test "${with_pwlib+set}" = set; then
7639 withval
=$with_pwlib;
7645 PWLIB_MANDATORY
="yes"
7648 PWLIB_DIR
="${withval}"
7649 PWLIB_MANDATORY
="yes"
7661 OPENH323_DESCRIP
="OpenH323"
7662 OPENH323_OPTION
="h323"
7664 # Check whether --with-h323 was given.
7665 if test "${with_h323+set}" = set; then
7672 OPENH323_MANDATORY
="yes"
7675 OPENH323_DIR
="${withval}"
7676 OPENH323_MANDATORY
="yes"
7691 # Check whether --with-qt was given.
7692 if test "${with_qt+set}" = set; then
7715 RADIUS_DESCRIP
="Radius Client"
7716 RADIUS_OPTION
="radius"
7718 # Check whether --with-radius was given.
7719 if test "${with_radius+set}" = set; then
7720 withval
=$with_radius;
7726 RADIUS_MANDATORY
="yes"
7729 RADIUS_DIR
="${withval}"
7730 RADIUS_MANDATORY
="yes"
7742 SPEEX_DESCRIP
="Speex"
7743 SPEEX_OPTION
="speex"
7745 # Check whether --with-speex was given.
7746 if test "${with_speex+set}" = set; then
7747 withval
=$with_speex;
7753 SPEEX_MANDATORY
="yes"
7756 SPEEX_DIR
="${withval}"
7757 SPEEX_MANDATORY
="yes"
7769 SQLITE_DESCRIP
="SQLite"
7770 SQLITE_OPTION
="sqlite"
7772 # Check whether --with-sqlite was given.
7773 if test "${with_sqlite+set}" = set; then
7774 withval
=$with_sqlite;
7780 SQLITE_MANDATORY
="yes"
7783 SQLITE_DIR
="${withval}"
7784 SQLITE_MANDATORY
="yes"
7796 SUPPSERV_DESCRIP
="mISDN Supplemental Services"
7797 SUPPSERV_OPTION
="suppserv"
7799 # Check whether --with-suppserv was given.
7800 if test "${with_suppserv+set}" = set; then
7801 withval
=$with_suppserv;
7807 SUPPSERV_MANDATORY
="yes"
7810 SUPPSERV_DIR
="${withval}"
7811 SUPPSERV_MANDATORY
="yes"
7823 OPENSSL_DESCRIP
="OpenSSL"
7824 OPENSSL_OPTION
="ssl"
7826 # Check whether --with-ssl was given.
7827 if test "${with_ssl+set}" = set; then
7834 OPENSSL_MANDATORY
="yes"
7837 OPENSSL_DIR
="${withval}"
7838 OPENSSL_MANDATORY
="yes"
7850 FREETDS_DESCRIP
="FreeTDS"
7851 FREETDS_OPTION
="tds"
7853 # Check whether --with-tds was given.
7854 if test "${with_tds+set}" = set; then
7861 FREETDS_MANDATORY
="yes"
7864 FREETDS_DIR
="${withval}"
7865 FREETDS_MANDATORY
="yes"
7877 TERMCAP_DESCRIP
="Termcap"
7878 TERMCAP_OPTION
="termcap"
7880 # Check whether --with-termcap was given.
7881 if test "${with_termcap+set}" = set; then
7882 withval
=$with_termcap;
7888 TERMCAP_MANDATORY
="yes"
7891 TERMCAP_DIR
="${withval}"
7892 TERMCAP_MANDATORY
="yes"
7904 TINFO_DESCRIP
="Term Info"
7905 TINFO_OPTION
="tinfo"
7907 # Check whether --with-tinfo was given.
7908 if test "${with_tinfo+set}" = set; then
7909 withval
=$with_tinfo;
7915 TINFO_MANDATORY
="yes"
7918 TINFO_DIR
="${withval}"
7919 TINFO_MANDATORY
="yes"
7931 TONEZONE_DESCRIP
="tonezone"
7932 TONEZONE_OPTION
="tonezone"
7934 # Check whether --with-tonezone was given.
7935 if test "${with_tonezone+set}" = set; then
7936 withval
=$with_tonezone;
7942 TONEZONE_MANDATORY
="yes"
7945 TONEZONE_DIR
="${withval}"
7946 TONEZONE_MANDATORY
="yes"
7958 VORBIS_DESCRIP
="Vorbis"
7959 VORBIS_OPTION
="vorbis"
7961 # Check whether --with-vorbis was given.
7962 if test "${with_vorbis+set}" = set; then
7963 withval
=$with_vorbis;
7969 VORBIS_MANDATORY
="yes"
7972 VORBIS_DIR
="${withval}"
7973 VORBIS_MANDATORY
="yes"
7985 VPB_DESCRIP
="Voicetronix API"
7988 # Check whether --with-vpb was given.
7989 if test "${with_vpb+set}" = set; then
7999 VPB_DIR
="${withval}"
8015 # Check whether --with-z was given.
8016 if test "${with_z+set}" = set; then
8023 ZLIB_MANDATORY
="yes"
8026 ZLIB_DIR
="${withval}"
8027 ZLIB_MANDATORY
="yes"
8039 ZAPTEL_DESCRIP
="Zaptel"
8040 ZAPTEL_OPTION
="zaptel"
8042 # Check whether --with-zaptel was given.
8043 if test "${with_zaptel+set}" = set; then
8044 withval
=$with_zaptel;
8050 ZAPTEL_MANDATORY
="yes"
8053 ZAPTEL_DIR
="${withval}"
8054 ZAPTEL_MANDATORY
="yes"
8066 # check for basic system features and functionality before
8067 # checking for package libraries
8069 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8070 # for constant arguments. Useless!
8071 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8072 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8073 if test "${ac_cv_working_alloca_h+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 cat >conftest.
$ac_ext <<_ACEOF
8079 cat confdefs.h
>>conftest.
$ac_ext
8080 cat >>conftest.
$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8086 char *p = (char *) alloca (2 * sizeof (int));
8092 rm -f conftest.
$ac_objext conftest
$ac_exeext
8093 if { (ac_try
="$ac_link"
8095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_link") 2>conftest.er1
8101 grep -v '^ *+' conftest.er1 >conftest.err
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } && {
8106 test -z "$ac_c_werror_flag" ||
8107 test ! -s conftest.err
8108 } && test -s conftest$ac_exeext &&
8109 $as_test_x conftest$ac_exeext; then
8110 ac_cv_working_alloca_h=yes
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8115 ac_cv_working_alloca_h=no
8118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8119 conftest$ac_exeext conftest.$ac_ext
8121 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8122 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8123 if test $ac_cv_working_alloca_h = yes; then
8125 cat >>confdefs.h <<\_ACEOF
8126 #define HAVE_ALLOCA_H 1
8131 { echo "$as_me:$LINENO: checking for alloca" >&5
8132 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8133 if test "${ac_cv_func_alloca_works+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8143 # define alloca __builtin_alloca
8146 # include <malloc.h>
8147 # define alloca _alloca
8149 # ifdef HAVE_ALLOCA_H
8150 # include <alloca.h>
8155 # ifndef alloca /* predefined by HP cc +Olibcalls */
8166 char *p = (char *) alloca (1);
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8176 *) ac_try_echo
=$ac_try;;
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_link") 2>conftest.er1
8181 grep -v '^ *+' conftest.er1
>conftest.err
8183 cat conftest.err
>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest
$ac_exeext &&
8189 $as_test_x conftest
$ac_exeext; then
8190 ac_cv_func_alloca_works
=yes
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.
$ac_ext >&5
8195 ac_cv_func_alloca_works
=no
8198 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8199 conftest
$ac_exeext conftest.
$ac_ext
8201 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8202 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8204 if test $ac_cv_func_alloca_works = yes; then
8206 cat >>confdefs.h
<<\_ACEOF
8207 #define HAVE_ALLOCA 1
8211 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8212 # that cause trouble. Some versions do not even contain alloca or
8213 # contain a buggy version. If you still want to use their alloca,
8214 # use ar to extract alloca.o from them instead of compiling alloca.c.
8216 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8218 cat >>confdefs.h
<<\_ACEOF
8223 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8224 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8225 if test "${ac_cv_os_cray+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.
$ac_ext <<_ACEOF
8231 cat confdefs.h
>>conftest.
$ac_ext
8232 cat >>conftest.
$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 #if defined CRAY && ! defined CRAY2
8241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8242 $EGREP "webecray" >/dev
/null
2>&1; then
8250 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8251 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8252 if test $ac_cv_os_cray = yes; then
8253 for ac_func
in _getb67 GETB67 getb67
; do
8254 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8257 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 cat >conftest.
$ac_ext <<_ACEOF
8263 cat confdefs.h
>>conftest.
$ac_ext
8264 cat >>conftest.
$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8268 #define $ac_func innocuous_$ac_func
8270 /* System header to define __stub macros and hopefully few prototypes,
8271 which can conflict with char $ac_func (); below.
8272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8273 <limits.h> exists even on freestanding compilers. */
8276 # include <limits.h>
8278 # include <assert.h>
8283 /* Override any GCC internal prototype to avoid an error.
8284 Use char because int might match the return type of a GCC
8285 builtin and then its argument prototype would still apply. */
8290 /* The GNU C library defines this for functions which it implements
8291 to always fail with ENOSYS. Some functions are actually named
8292 something starting with __ and the normal name is an alias. */
8293 #if defined __stub_$ac_func || defined __stub___$ac_func
8305 rm -f conftest.
$ac_objext conftest
$ac_exeext
8306 if { (ac_try
="$ac_link"
8308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_link") 2>conftest.er1
8314 grep -v '^ *+' conftest.er1 >conftest.err
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
8321 } && test -s conftest$ac_exeext &&
8322 $as_test_x conftest$ac_exeext; then
8323 eval "$as_ac_var=yes"
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 eval "$as_ac_var=no"
8331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8332 conftest$ac_exeext conftest.$ac_ext
8334 ac_res=`eval echo '${'$as_ac_var'}'`
8335 { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8337 if test `eval echo '${'$as_ac_var'}'` = yes; then
8339 cat >>confdefs.h <<_ACEOF
8340 #define CRAY_STACKSEG_END $ac_func
8349 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8350 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8351 if test "${ac_cv_c_stack_direction+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 if test "$cross_compiling" = yes; then
8355 ac_cv_c_stack_direction=0
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 $ac_includes_default
8365 find_stack_direction ()
8367 static char *addr = 0;
8372 return find_stack_direction ();
8375 return (&dummy > addr) ? 1 : -1;
8381 return find_stack_direction () < 0;
8384 rm -f conftest$ac_exeext
8385 if { (ac_try="$ac_link"
8387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8388 *) ac_try_echo
=$ac_try;;
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_link") 2>&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8395 { (case "(($ac_try" in
8396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_c_stack_direction=1
8406 echo "$as_me: program exited with status $ac_status" >&5
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_cv_c_stack_direction=-1
8413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8418 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8419 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8421 cat >>confdefs.h <<_ACEOF
8422 #define STACK_DIRECTION $ac_cv_c_stack_direction
8434 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8435 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
8436 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8437 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 #include <sys/types.h>
8459 rm -f conftest.$ac_objext
8460 if { (ac_try="$ac_compile"
8462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8463 *) ac_try_echo
=$ac_try;;
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_compile") 2>conftest.er1
8468 grep -v '^ *+' conftest.er1
>conftest.err
8470 cat conftest.err
>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest.
$ac_objext; then
8476 eval "$as_ac_Header=yes"
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.
$ac_ext >&5
8481 eval "$as_ac_Header=no"
8484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8486 ac_res
=`eval echo '${'$as_ac_Header'}'`
8487 { echo "$as_me:$LINENO: result: $ac_res" >&5
8488 echo "${ECHO_T}$ac_res" >&6; }
8489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8490 cat >>confdefs.h
<<_ACEOF
8491 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8494 ac_header_dirent
=$ac_hdr; break
8498 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8499 if test $ac_header_dirent = dirent.h
; then
8500 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8501 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8502 if test "${ac_cv_search_opendir+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 ac_func_search_save_LIBS
=$LIBS
8506 cat >conftest.
$ac_ext <<_ACEOF
8509 cat confdefs.h
>>conftest.
$ac_ext
8510 cat >>conftest.
$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8513 /* Override any GCC internal prototype to avoid an error.
8514 Use char because int might match the return type of a GCC
8515 builtin and then its argument prototype would still apply. */
8528 for ac_lib
in '' dir
; do
8529 if test -z "$ac_lib"; then
8530 ac_res
="none required"
8533 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8535 rm -f conftest.
$ac_objext conftest
$ac_exeext
8536 if { (ac_try
="$ac_link"
8538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_link") 2>conftest.er1
8544 grep -v '^ *+' conftest.er1 >conftest.err
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } && {
8549 test -z "$ac_c_werror_flag" ||
8550 test ! -s conftest.err
8551 } && test -s conftest$ac_exeext &&
8552 $as_test_x conftest$ac_exeext; then
8553 ac_cv_search_opendir=$ac_res
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8563 if test "${ac_cv_search_opendir+set}" = set; then
8567 if test "${ac_cv_search_opendir+set}" = set; then
8570 ac_cv_search_opendir=no
8573 LIBS=$ac_func_search_save_LIBS
8575 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8576 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8577 ac_res=$ac_cv_search_opendir
8578 if test "$ac_res" != no; then
8579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8584 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8585 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8586 if test "${ac_cv_search_opendir+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 ac_func_search_save_LIBS=$LIBS
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8597 /* Override any GCC internal prototype to avoid an error.
8598 Use char because int might match the return type of a GCC
8599 builtin and then its argument prototype would still apply. */
8612 for ac_lib in '' x; do
8613 if test -z "$ac_lib"; then
8614 ac_res="none required"
8617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8623 *) ac_try_echo
=$ac_try;;
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_link") 2>conftest.er1
8628 grep -v '^ *+' conftest.er1
>conftest.err
8630 cat conftest.err
>&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && {
8633 test -z "$ac_c_werror_flag" ||
8634 test ! -s conftest.err
8635 } && test -s conftest
$ac_exeext &&
8636 $as_test_x conftest
$ac_exeext; then
8637 ac_cv_search_opendir
=$ac_res
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.
$ac_ext >&5
8645 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8647 if test "${ac_cv_search_opendir+set}" = set; then
8651 if test "${ac_cv_search_opendir+set}" = set; then
8654 ac_cv_search_opendir
=no
8657 LIBS
=$ac_func_search_save_LIBS
8659 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8660 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8661 ac_res
=$ac_cv_search_opendir
8662 if test "$ac_res" != no
; then
8663 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8669 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8670 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8671 if test "${ac_cv_header_stdc+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 cat >conftest.
$ac_ext <<_ACEOF
8677 cat confdefs.h
>>conftest.
$ac_ext
8678 cat >>conftest.
$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8693 rm -f conftest.
$ac_objext
8694 if { (ac_try
="$ac_compile"
8696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_cv_header_stdc=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_header_stdc=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 if test $ac_cv_header_stdc = yes; then
8721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8722 cat >conftest.$ac_ext <<_ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8732 $EGREP "memchr" >/dev/null 2>&1; then
8735 ac_cv_header_stdc=no
8741 if test $ac_cv_header_stdc = yes; then
8742 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8743 cat >conftest.$ac_ext <<_ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8753 $EGREP "free" >/dev/null 2>&1; then
8756 ac_cv_header_stdc=no
8762 if test $ac_cv_header_stdc = yes; then
8763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8764 if test "$cross_compiling" = yes; then
8767 cat >conftest.$ac_ext <<_ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8775 #if ((' ' & 0x0FF) == 0x020)
8776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8779 # define ISLOWER(c) \
8780 (('a' <= (c) && (c) <= 'i') \
8781 || ('j' <= (c) && (c) <= 'r') \
8782 || ('s' <= (c) && (c) <= 'z'))
8783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8791 for (i = 0; i < 256; i++)
8792 if (XOR (islower (i), ISLOWER (i))
8793 || toupper (i) != TOUPPER (i))
8798 rm -f conftest$ac_exeext
8799 if { (ac_try="$ac_link"
8801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8802 *) ac_try_echo
=$ac_try;;
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_link") 2>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8809 { (case "(($ac_try" in
8810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_try") 2>&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8820 echo "$as_me: program exited with status $ac_status" >&5
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8825 ac_cv_header_stdc=no
8827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8833 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8834 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8835 if test $ac_cv_header_stdc = yes; then
8837 cat >>confdefs.h <<\_ACEOF
8838 #define STDC_HEADERS 1
8843 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8844 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8845 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 cat >conftest.$ac_ext <<_ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 #include <sys/types.h>
8855 #include <sys/wait.h>
8857 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8860 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8868 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8873 rm -f conftest.$ac_objext
8874 if { (ac_try="$ac_compile"
8876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8877 *) ac_try_echo
=$ac_try;;
8879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8882 grep -v '^ *+' conftest.er1
>conftest.err
8884 cat conftest.err
>&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && {
8887 test -z "$ac_c_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest.
$ac_objext; then
8890 ac_cv_header_sys_wait_h
=yes
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.
$ac_ext >&5
8895 ac_cv_header_sys_wait_h
=no
8898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8900 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8901 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8902 if test $ac_cv_header_sys_wait_h = yes; then
8904 cat >>confdefs.h
<<\_ACEOF
8905 #define HAVE_SYS_WAIT_H 1
8933 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
8935 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8936 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8939 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 ac_res
=`eval echo '${'$as_ac_Header'}'`
8943 { echo "$as_me:$LINENO: result: $ac_res" >&5
8944 echo "${ECHO_T}$ac_res" >&6; }
8946 # Is the header compilable?
8947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8949 cat >conftest.
$ac_ext <<_ACEOF
8952 cat confdefs.h
>>conftest.
$ac_ext
8953 cat >>conftest.
$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 $ac_includes_default
8956 #include <$ac_header>
8958 rm -f conftest.
$ac_objext
8959 if { (ac_try
="$ac_compile"
8961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_compile") 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } && {
8972 test -z "$ac_c_werror_flag" ||
8973 test ! -s conftest.err
8974 } && test -s conftest.$ac_objext; then
8975 ac_header_compiler=yes
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8980 ac_header_compiler=no
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8985 echo "${ECHO_T}$ac_header_compiler" >&6; }
8987 # Is the header present?
8988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 #include <$ac_header>
8998 if { (ac_try="$ac_cpp conftest.$ac_ext"
9000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9001 *) ac_try_echo
=$ac_try;;
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9006 grep -v '^ *+' conftest.er1
>conftest.err
9008 cat conftest.err
>&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } >/dev
/null
&& {
9011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9014 ac_header_preproc
=yes
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.
$ac_ext >&5
9019 ac_header_preproc
=no
9022 rm -f conftest.err conftest.
$ac_ext
9023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9024 echo "${ECHO_T}$ac_header_preproc" >&6; }
9026 # So? What about this header?
9027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9033 ac_header_preproc
=yes
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9053 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 eval "$as_ac_Header=\$ac_header_preproc"
9058 ac_res
=`eval echo '${'$as_ac_Header'}'`
9059 { echo "$as_me:$LINENO: result: $ac_res" >&5
9060 echo "${ECHO_T}$ac_res" >&6; }
9063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064 cat >>confdefs.h
<<_ACEOF
9065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9073 # Check whether --enable-largefile was given.
9074 if test "${enable_largefile+set}" = set; then
9075 enableval
=$enable_largefile;
9078 if test "$enable_largefile" != no
; then
9080 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9081 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9082 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 ac_cv_sys_largefile_CC
=no
9086 if test "$GCC" != yes; then
9089 # IRIX 6.2 and later do not support large files by default,
9090 # so use the C compiler's -n32 option if that helps.
9091 cat >conftest.
$ac_ext <<_ACEOF
9094 cat confdefs.h
>>conftest.
$ac_ext
9095 cat >>conftest.
$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <sys/types.h>
9098 /* Check that off_t can represent 2**63 - 1 correctly.
9099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9100 since some C++ compilers masquerading as C compilers
9101 incorrectly reject 9223372036854775807. */
9102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9104 && LARGE_OFF_T % 2147483647 == 1)
9114 rm -f conftest.
$ac_objext
9115 if { (ac_try
="$ac_compile"
9117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_compile") 2>conftest.er1
9123 grep -v '^ *+' conftest.er1 >conftest.err
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest.$ac_objext; then
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9139 rm -f core conftest.err conftest.$ac_objext
9141 rm -f conftest.$ac_objext
9142 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
9158 ac_cv_sys_largefile_CC
=' -n32'; break
9160 echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.
$ac_ext >&5
9166 rm -f core conftest.err conftest.
$ac_objext
9170 rm -f conftest.
$ac_ext
9173 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9174 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9175 if test "$ac_cv_sys_largefile_CC" != no
; then
9176 CC
=$CC$ac_cv_sys_largefile_CC
9179 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9180 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9181 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 cat >conftest.
$ac_ext <<_ACEOF
9188 cat confdefs.h
>>conftest.
$ac_ext
9189 cat >>conftest.
$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <sys/types.h>
9192 /* Check that off_t can represent 2**63 - 1 correctly.
9193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9194 since some C++ compilers masquerading as C compilers
9195 incorrectly reject 9223372036854775807. */
9196 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9198 && LARGE_OFF_T % 2147483647 == 1)
9208 rm -f conftest.
$ac_objext
9209 if { (ac_try
="$ac_compile"
9211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_compile") 2>conftest.er1
9217 grep -v '^ *+' conftest.er1 >conftest.err
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest.$ac_objext; then
9225 ac_cv_sys_file_offset_bits=no; break
9227 echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.$ac_ext >&5
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234 cat >conftest.$ac_ext <<_ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 #define _FILE_OFFSET_BITS 64
9241 #include <sys/types.h>
9242 /* Check that off_t can represent 2**63 - 1 correctly.
9243 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9244 since some C++ compilers masquerading as C compilers
9245 incorrectly reject 9223372036854775807. */
9246 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9247 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9248 && LARGE_OFF_T % 2147483647 == 1)
9258 rm -f conftest.$ac_objext
9259 if { (ac_try="$ac_compile"
9261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9262 *) ac_try_echo
=$ac_try;;
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9267 grep -v '^ *+' conftest.er1
>conftest.err
9269 cat conftest.err
>&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.
$ac_objext; then
9275 ac_cv_sys_file_offset_bits
=64; break
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.
$ac_ext >&5
9283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9284 ac_cv_sys_file_offset_bits
=unknown
9288 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9289 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9290 case $ac_cv_sys_file_offset_bits in #(
9293 cat >>confdefs.h
<<_ACEOF
9294 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9299 if test $ac_cv_sys_file_offset_bits = unknown
; then
9300 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9301 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9302 if test "${ac_cv_sys_large_files+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 cat >conftest.
$ac_ext <<_ACEOF
9309 cat confdefs.h
>>conftest.
$ac_ext
9310 cat >>conftest.
$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 #include <sys/types.h>
9313 /* Check that off_t can represent 2**63 - 1 correctly.
9314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9315 since some C++ compilers masquerading as C compilers
9316 incorrectly reject 9223372036854775807. */
9317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9319 && LARGE_OFF_T % 2147483647 == 1)
9329 rm -f conftest.
$ac_objext
9330 if { (ac_try
="$ac_compile"
9332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_compile") 2>conftest.er1
9338 grep -v '^ *+' conftest.er1 >conftest.err
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } && {
9343 test -z "$ac_c_werror_flag" ||
9344 test ! -s conftest.err
9345 } && test -s conftest.$ac_objext; then
9346 ac_cv_sys_large_files=no; break
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 cat >conftest.$ac_ext <<_ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 #define _LARGE_FILES 1
9362 #include <sys/types.h>
9363 /* Check that off_t can represent 2**63 - 1 correctly.
9364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9365 since some C++ compilers masquerading as C compilers
9366 incorrectly reject 9223372036854775807. */
9367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9369 && LARGE_OFF_T % 2147483647 == 1)
9379 rm -f conftest.$ac_objext
9380 if { (ac_try="$ac_compile"
9382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9383 *) ac_try_echo
=$ac_try;;
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_compile") 2>conftest.er1
9388 grep -v '^ *+' conftest.er1
>conftest.err
9390 cat conftest.err
>&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest.
$ac_objext; then
9396 ac_cv_sys_large_files
=1; break
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.
$ac_ext >&5
9404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9405 ac_cv_sys_large_files
=unknown
9409 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9410 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9411 case $ac_cv_sys_large_files in #(
9414 cat >>confdefs.h
<<_ACEOF
9415 #define _LARGE_FILES $ac_cv_sys_large_files
9424 # Checks for typedefs, structures, and compiler characteristics.
9425 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9426 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
9427 if test "${ac_cv_header_stdbool_h+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 cat >conftest.
$ac_ext <<_ACEOF
9433 cat confdefs.h
>>conftest.
$ac_ext
9434 cat >>conftest.
$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9437 #include <stdbool.h>
9439 "error: bool is not defined"
9442 "error: false is not defined"
9445 "error: false is not 0"
9448 "error: true is not defined"
9451 "error: true is not 1"
9453 #ifndef __bool_true_false_are_defined
9454 "error: __bool_true_false_are_defined is not defined"
9457 struct s { _Bool s: 1; _Bool t; } s;
9459 char a[true == 1 ? 1 : -1];
9460 char b[false == 0 ? 1 : -1];
9461 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9462 char d[(bool) 0.5 == true ? 1 : -1];
9464 char f[(_Bool) 0.0 == false ? 1 : -1];
9466 char h[sizeof (_Bool)];
9468 enum { j = false, k = true, l = false * true, m = true * 256 };
9470 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9471 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9472 # if defined __xlc__ || defined __GNUC__
9473 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9474 reported by James Lemley on 2005-10-05; see
9475 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9476 This test is not quite right, since xlc is allowed to
9477 reject this program, as the initializer for xlcbug is
9478 not one of the forms that C requires support for.
9479 However, doing the test right would require a runtime
9480 test, and that would make cross-compilation harder.
9481 Let us hope that IBM fixes the xlc bug, and also adds
9482 support for this kind of constant expression. In the
9483 meantime, this test will reject xlc, which is OK, since
9484 our stdbool.h substitute should suffice. We also test
9485 this with GCC, where it should work, to detect more
9486 quickly whether someone messes up the test in the
9488 char digs[] = "0123456789";
9489 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9491 /* Catch a bug in an HP-UX C compiler. See
9492 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9493 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9504 /* Refer to every declared value, to avoid compiler optimizations. */
9505 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9506 + !m + !n + !o + !p + !q + !pq);
9512 rm -f conftest.
$ac_objext
9513 if { (ac_try
="$ac_compile"
9515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_compile") 2>conftest.er1
9521 grep -v '^ *+' conftest.er1 >conftest.err
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } && {
9526 test -z "$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 } && test -s conftest.$ac_objext; then
9529 ac_cv_header_stdbool_h=yes
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_header_stdbool_h=no
9537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9539 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9540 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
9541 { echo "$as_me:$LINENO: checking for _Bool" >&5
9542 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
9543 if test "${ac_cv_type__Bool+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9553 typedef _Bool ac__type_new_;
9557 if ((ac__type_new_ *) 0)
9559 if (sizeof (ac__type_new_))
9565 rm -f conftest.$ac_objext
9566 if { (ac_try="$ac_compile"
9568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9569 *) ac_try_echo
=$ac_try;;
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_compile") 2>conftest.er1
9574 grep -v '^ *+' conftest.er1
>conftest.err
9576 cat conftest.err
>&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && {
9579 test -z "$ac_c_werror_flag" ||
9580 test ! -s conftest.err
9581 } && test -s conftest.
$ac_objext; then
9582 ac_cv_type__Bool
=yes
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.
$ac_ext >&5
9590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9592 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9593 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
9594 if test $ac_cv_type__Bool = yes; then
9596 cat >>confdefs.h
<<_ACEOF
9597 #define HAVE__BOOL 1
9603 if test $ac_cv_header_stdbool_h = yes; then
9605 cat >>confdefs.h
<<\_ACEOF
9606 #define HAVE_STDBOOL_H 1
9611 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9612 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9613 if test "${ac_cv_c_const+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 cat >conftest.
$ac_ext <<_ACEOF
9619 cat confdefs.h
>>conftest.
$ac_ext
9620 cat >>conftest.
$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9626 /* FIXME: Include the comments suggested by Paul. */
9628 /* Ultrix mips cc rejects this. */
9629 typedef int charset[2];
9631 /* SunOS 4.1.1 cc rejects this. */
9632 char const *const *pcpcc;
9634 /* NEC SVR4.0.2 mips cc rejects this. */
9635 struct point {int x, y;};
9636 static struct point const zero = {0,0};
9637 /* AIX XL C 1.02.0.0 rejects this.
9638 It does not let you subtract one const X* pointer from another in
9639 an arm of an if-expression whose if-part is not a constant
9641 const char *g = "string";
9642 pcpcc = &g + (g ? g-g : 0);
9643 /* HPUX 7.0 cc rejects these. */
9645 ppc = (char**) pcpcc;
9646 pcpcc = (char const *const *) ppc;
9647 { /* SCO 3.2v4 cc rejects this. */
9649 char const *s = 0 ? (char *) 0 : (char const *) 0;
9654 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9656 const int *foo = &x[0];
9659 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9660 typedef const int *iptr;
9664 { /* AIX XL C 1.02.0.0 rejects this saying
9665 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9666 struct s { int j; const int *ap[3]; };
9667 struct s *b; b->j = 5;
9669 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9673 return !cs[0] && !zero.x;
9680 rm -f conftest.
$ac_objext
9681 if { (ac_try
="$ac_compile"
9683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_compile") 2>conftest.er1
9689 grep -v '^ *+' conftest.er1 >conftest.err
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && {
9694 test -z "$ac_c_werror_flag" ||
9695 test ! -s conftest.err
9696 } && test -s conftest.$ac_objext; then
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9708 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9709 if test $ac_cv_c_const = no; then
9711 cat >>confdefs.h <<\_ACEOF
9717 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9718 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
9719 if test "${ac_cv_type_uid_t+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 #include <sys/types.h>
9731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9732 $EGREP "uid_t" >/dev/null 2>&1; then
9733 ac_cv_type_uid_t=yes
9740 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9741 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
9742 if test $ac_cv_type_uid_t = no; then
9744 cat >>confdefs.h <<\_ACEOF
9749 cat >>confdefs.h <<\_ACEOF
9755 { echo "$as_me:$LINENO: checking for inline" >&5
9756 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
9757 if test "${ac_cv_c_inline+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 for ac_kw in inline __inline__ __inline; do
9762 cat >conftest.$ac_ext <<_ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9770 static $ac_kw foo_t static_foo () {return 0; }
9771 $ac_kw foo_t foo () {return 0; }
9775 rm -f conftest.$ac_objext
9776 if { (ac_try="$ac_compile"
9778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9779 *) ac_try_echo
=$ac_try;;
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_compile") 2>conftest.er1
9784 grep -v '^ *+' conftest.er1
>conftest.err
9786 cat conftest.err
>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest.
$ac_objext; then
9792 ac_cv_c_inline
=$ac_kw
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.
$ac_ext >&5
9800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9801 test "$ac_cv_c_inline" != no
&& break
9805 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9806 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9809 case $ac_cv_c_inline in
9812 case $ac_cv_c_inline in
9814 *) ac_val
=$ac_cv_c_inline;;
9816 cat >>confdefs.h
<<_ACEOF
9818 #define inline $ac_val
9824 { echo "$as_me:$LINENO: checking for mode_t" >&5
9825 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
9826 if test "${ac_cv_type_mode_t+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 cat >conftest.
$ac_ext <<_ACEOF
9832 cat confdefs.h
>>conftest.
$ac_ext
9833 cat >>conftest.
$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 $ac_includes_default
9836 typedef mode_t ac__type_new_;
9840 if ((ac__type_new_ *) 0)
9842 if (sizeof (ac__type_new_))
9848 rm -f conftest.
$ac_objext
9849 if { (ac_try
="$ac_compile"
9851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_compile") 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest.$ac_objext; then
9865 ac_cv_type_mode_t=yes
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_cv_type_mode_t=no
9873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
9876 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
9877 if test $ac_cv_type_mode_t = yes; then
9881 cat >>confdefs.h <<_ACEOF
9887 { echo "$as_me:$LINENO: checking for off_t" >&5
9888 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9889 if test "${ac_cv_type_off_t+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 $ac_includes_default
9899 typedef off_t ac__type_new_;
9903 if ((ac__type_new_ *) 0)
9905 if (sizeof (ac__type_new_))
9911 rm -f conftest.$ac_objext
9912 if { (ac_try="$ac_compile"
9914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9915 *) ac_try_echo
=$ac_try;;
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_compile") 2>conftest.er1
9920 grep -v '^ *+' conftest.er1
>conftest.err
9922 cat conftest.err
>&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } && {
9925 test -z "$ac_c_werror_flag" ||
9926 test ! -s conftest.err
9927 } && test -s conftest.
$ac_objext; then
9928 ac_cv_type_off_t
=yes
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.
$ac_ext >&5
9936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9938 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9939 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9940 if test $ac_cv_type_off_t = yes; then
9944 cat >>confdefs.h
<<_ACEOF
9945 #define off_t long int
9950 { echo "$as_me:$LINENO: checking for pid_t" >&5
9951 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9952 if test "${ac_cv_type_pid_t+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 cat >conftest.
$ac_ext <<_ACEOF
9958 cat confdefs.h
>>conftest.
$ac_ext
9959 cat >>conftest.
$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 $ac_includes_default
9962 typedef pid_t ac__type_new_;
9966 if ((ac__type_new_ *) 0)
9968 if (sizeof (ac__type_new_))
9974 rm -f conftest.
$ac_objext
9975 if { (ac_try
="$ac_compile"
9977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_compile") 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } && {
9988 test -z "$ac_c_werror_flag" ||
9989 test ! -s conftest.err
9990 } && test -s conftest.$ac_objext; then
9991 ac_cv_type_pid_t=yes
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10001 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10002 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10003 if test $ac_cv_type_pid_t = yes; then
10007 cat >>confdefs.h <<_ACEOF
10013 { echo "$as_me:$LINENO: checking for size_t" >&5
10014 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10015 if test "${ac_cv_type_size_t+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 $ac_includes_default
10025 typedef size_t ac__type_new_;
10029 if ((ac__type_new_ *) 0)
10031 if (sizeof (ac__type_new_))
10037 rm -f conftest.$ac_objext
10038 if { (ac_try="$ac_compile"
10039 case "(($ac_try" in
10040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10041 *) ac_try_echo
=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10046 grep -v '^ *+' conftest.er1
>conftest.err
10048 cat conftest.err
>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.
$ac_objext; then
10054 ac_cv_type_size_t
=yes
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.
$ac_ext >&5
10059 ac_cv_type_size_t
=no
10062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10064 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10065 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10066 if test $ac_cv_type_size_t = yes; then
10070 cat >>confdefs.h
<<_ACEOF
10071 #define size_t unsigned int
10076 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10077 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10078 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 cat >conftest.
$ac_ext <<_ACEOF
10084 cat confdefs.h
>>conftest.
$ac_ext
10085 cat >>conftest.
$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 $ac_includes_default
10091 static struct stat ac_aggr;
10092 if (ac_aggr.st_blksize)
10098 rm -f conftest.
$ac_objext
10099 if { (ac_try
="$ac_compile"
10100 case "(($ac_try" in
10101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_compile") 2>conftest.er1
10107 grep -v '^ *+' conftest.er1 >conftest.err
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && {
10112 test -z "$ac_c_werror_flag" ||
10113 test ! -s conftest.err
10114 } && test -s conftest.$ac_objext; then
10115 ac_cv_member_struct_stat_st_blksize=yes
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10130 static struct stat ac_aggr;
10131 if (sizeof ac_aggr.st_blksize)
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10141 *) ac_try_echo
=$ac_try;;
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_compile") 2>conftest.er1
10146 grep -v '^ *+' conftest.er1
>conftest.err
10148 cat conftest.err
>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && {
10151 test -z "$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10153 } && test -s conftest.
$ac_objext; then
10154 ac_cv_member_struct_stat_st_blksize
=yes
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.
$ac_ext >&5
10159 ac_cv_member_struct_stat_st_blksize
=no
10162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10167 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10168 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10169 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10171 cat >>confdefs.h
<<_ACEOF
10172 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10178 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10179 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10180 if test "${ac_cv_header_time+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 cat >conftest.
$ac_ext <<_ACEOF
10186 cat confdefs.h
>>conftest.
$ac_ext
10187 cat >>conftest.
$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 #include <sys/types.h>
10190 #include <sys/time.h>
10196 if ((struct tm *) 0)
10202 rm -f conftest.
$ac_objext
10203 if { (ac_try
="$ac_compile"
10204 case "(($ac_try" in
10205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_compile") 2>conftest.er1
10211 grep -v '^ *+' conftest.er1 >conftest.err
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest.$ac_objext; then
10219 ac_cv_header_time=yes
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_cv_header_time=no
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10230 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10231 if test $ac_cv_header_time = yes; then
10233 cat >>confdefs.h <<\_ACEOF
10234 #define TIME_WITH_SYS_TIME 1
10239 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10240 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10241 if test "${ac_cv_struct_tm+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 cat >conftest.$ac_ext <<_ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 #include <sys/types.h>
10257 int *p = &tm.tm_sec;
10263 rm -f conftest.$ac_objext
10264 if { (ac_try="$ac_compile"
10265 case "(($ac_try" in
10266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10267 *) ac_try_echo
=$ac_try;;
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_compile") 2>conftest.er1
10272 grep -v '^ *+' conftest.er1
>conftest.err
10274 cat conftest.err
>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest.
$ac_objext; then
10280 ac_cv_struct_tm
=time.h
10282 echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.
$ac_ext >&5
10285 ac_cv_struct_tm
=sys
/time.h
10288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10290 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10291 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10292 if test $ac_cv_struct_tm = sys
/time.h
; then
10294 cat >>confdefs.h
<<\_ACEOF
10295 #define TM_IN_SYS_TIME 1
10300 { echo "$as_me:$LINENO: checking for working volatile" >&5
10301 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10302 if test "${ac_cv_c_volatile+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 cat >conftest.
$ac_ext <<_ACEOF
10308 cat confdefs.h
>>conftest.
$ac_ext
10309 cat >>conftest.
$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10317 int * volatile y = (int *) 0;
10323 rm -f conftest.
$ac_objext
10324 if { (ac_try
="$ac_compile"
10325 case "(($ac_try" in
10326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10332 grep -v '^ *+' conftest.er1 >conftest.err
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest.$ac_objext; then
10340 ac_cv_c_volatile=yes
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_cv_c_volatile=no
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10351 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10352 if test $ac_cv_c_volatile = no; then
10354 cat >>confdefs.h <<\_ACEOF
10360 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10361 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10362 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 cat >conftest.$ac_ext <<_ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 $ac_includes_default
10372 typedef ptrdiff_t ac__type_new_;
10376 if ((ac__type_new_ *) 0)
10378 if (sizeof (ac__type_new_))
10384 rm -f conftest.$ac_objext
10385 if { (ac_try="$ac_compile"
10386 case "(($ac_try" in
10387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10388 *) ac_try_echo
=$ac_try;;
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_compile") 2>conftest.er1
10393 grep -v '^ *+' conftest.er1
>conftest.err
10395 cat conftest.err
>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && {
10398 test -z "$ac_c_werror_flag" ||
10399 test ! -s conftest.err
10400 } && test -s conftest.
$ac_objext; then
10401 ac_cv_type_ptrdiff_t
=yes
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.
$ac_ext >&5
10406 ac_cv_type_ptrdiff_t
=no
10409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10411 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10412 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10413 if test $ac_cv_type_ptrdiff_t = yes; then
10415 cat >>confdefs.h
<<_ACEOF
10416 #define HAVE_PTRDIFF_T 1
10423 # Checks for library functions.
10425 for ac_header
in unistd.h
10427 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10428 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10431 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 ac_res
=`eval echo '${'$as_ac_Header'}'`
10435 { echo "$as_me:$LINENO: result: $ac_res" >&5
10436 echo "${ECHO_T}$ac_res" >&6; }
10438 # Is the header compilable?
10439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10441 cat >conftest.
$ac_ext <<_ACEOF
10444 cat confdefs.h
>>conftest.
$ac_ext
10445 cat >>conftest.
$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 $ac_includes_default
10448 #include <$ac_header>
10450 rm -f conftest.
$ac_objext
10451 if { (ac_try
="$ac_compile"
10452 case "(($ac_try" in
10453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_compile") 2>conftest.er1
10459 grep -v '^ *+' conftest.er1 >conftest.err
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && {
10464 test -z "$ac_c_werror_flag" ||
10465 test ! -s conftest.err
10466 } && test -s conftest.$ac_objext; then
10467 ac_header_compiler=yes
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10472 ac_header_compiler=no
10475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10477 echo "${ECHO_T}$ac_header_compiler" >&6; }
10479 # Is the header present?
10480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10482 cat >conftest.$ac_ext <<_ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 #include <$ac_header>
10490 if { (ac_try="$ac_cpp conftest.$ac_ext"
10491 case "(($ac_try" in
10492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10493 *) ac_try_echo
=$ac_try;;
10495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10498 grep -v '^ *+' conftest.er1
>conftest.err
10500 cat conftest.err
>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } >/dev
/null
&& {
10503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10504 test ! -s conftest.err
10506 ac_header_preproc
=yes
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.
$ac_ext >&5
10511 ac_header_preproc
=no
10514 rm -f conftest.err conftest.
$ac_ext
10515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10516 echo "${ECHO_T}$ac_header_preproc" >&6; }
10518 # So? What about this header?
10519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10525 ac_header_preproc
=yes
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 eval "$as_ac_Header=\$ac_header_preproc"
10550 ac_res
=`eval echo '${'$as_ac_Header'}'`
10551 { echo "$as_me:$LINENO: result: $ac_res" >&5
10552 echo "${ECHO_T}$ac_res" >&6; }
10555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10556 cat >>confdefs.h
<<_ACEOF
10557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10564 { echo "$as_me:$LINENO: checking for working chown" >&5
10565 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10566 if test "${ac_cv_func_chown_works+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 if test "$cross_compiling" = yes; then
10570 ac_cv_func_chown_works
=no
10572 cat >conftest.
$ac_ext <<_ACEOF
10575 cat confdefs.h
>>conftest.
$ac_ext
10576 cat >>conftest.
$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 $ac_includes_default
10584 char *f = "conftest.chown";
10585 struct stat before, after;
10587 if (creat (f, 0600) < 0)
10589 if (stat (f, &before) < 0)
10591 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10593 if (stat (f, &after) < 0)
10595 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10601 rm -f conftest
$ac_exeext
10602 if { (ac_try
="$ac_link"
10603 case "(($ac_try" in
10604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10612 { (case "(($ac_try" in
10613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10614 *) ac_try_echo
=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_func_chown_works
=yes
10623 echo "$as_me: program exited with status $ac_status" >&5
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.
$ac_ext >&5
10627 ( exit $ac_status )
10628 ac_cv_func_chown_works
=no
10630 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10634 rm -f conftest.chown
10637 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10638 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10639 if test $ac_cv_func_chown_works = yes; then
10641 cat >>confdefs.h
<<\_ACEOF
10642 #define HAVE_CHOWN 1
10647 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10648 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
10649 if test "${ac_cv_func_closedir_void+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 if test "$cross_compiling" = yes; then
10653 ac_cv_func_closedir_void
=yes
10655 cat >conftest.
$ac_ext <<_ACEOF
10658 cat confdefs.h
>>conftest.
$ac_ext
10659 cat >>conftest.
$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10661 $ac_includes_default
10662 #include <$ac_header_dirent>
10663 #ifndef __cplusplus
10670 return closedir (opendir (".")) != 0;
10675 rm -f conftest
$ac_exeext
10676 if { (ac_try
="$ac_link"
10677 case "(($ac_try" in
10678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_link") 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10686 { (case "(($ac_try" in
10687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10688 *) ac_try_echo
=$ac_try;;
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_try") 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; }; then
10695 ac_cv_func_closedir_void
=no
10697 echo "$as_me: program exited with status $ac_status" >&5
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.
$ac_ext >&5
10701 ( exit $ac_status )
10702 ac_cv_func_closedir_void
=yes
10704 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10709 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10710 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
10711 if test $ac_cv_func_closedir_void = yes; then
10713 cat >>confdefs.h
<<\_ACEOF
10714 #define CLOSEDIR_VOID 1
10719 { echo "$as_me:$LINENO: checking for error_at_line" >&5
10720 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
10721 if test "${ac_cv_lib_error_at_line+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 cat >conftest.
$ac_ext <<_ACEOF
10727 cat confdefs.h
>>conftest.
$ac_ext
10728 cat >>conftest.
$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10734 error_at_line (0, 0, "", 0, "an error occurred");
10739 rm -f conftest.
$ac_objext conftest
$ac_exeext
10740 if { (ac_try
="$ac_link"
10741 case "(($ac_try" in
10742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_link") 2>conftest.er1
10748 grep -v '^ *+' conftest.er1 >conftest.err
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } && {
10753 test -z "$ac_c_werror_flag" ||
10754 test ! -s conftest.err
10755 } && test -s conftest$ac_exeext &&
10756 $as_test_x conftest$ac_exeext; then
10757 ac_cv_lib_error_at_line=yes
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10762 ac_cv_lib_error_at_line=no
10765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10766 conftest$ac_exeext conftest.$ac_ext
10768 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10769 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10770 if test $ac_cv_lib_error_at_line = no; then
10771 case " $LIBOBJS " in
10772 *" error.$ac_objext "* ) ;;
10773 *) LIBOBJS="$LIBOBJS error.$ac_objext"
10780 for ac_header in vfork.h
10782 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 ac_res=`eval echo '${'$as_ac_Header'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10793 # Is the header compilable?
10794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10796 cat >conftest.$ac_ext <<_ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 $ac_includes_default
10803 #include <$ac_header>
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10809 *) ac_try_echo
=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10814 grep -v '^ *+' conftest.er1
>conftest.err
10816 cat conftest.err
>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest.
$ac_objext; then
10822 ac_header_compiler
=yes
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.
$ac_ext >&5
10827 ac_header_compiler
=no
10830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10832 echo "${ECHO_T}$ac_header_compiler" >&6; }
10834 # Is the header present?
10835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10837 cat >conftest.
$ac_ext <<_ACEOF
10840 cat confdefs.h
>>conftest.
$ac_ext
10841 cat >>conftest.
$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include <$ac_header>
10845 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10846 case "(($ac_try" in
10847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10853 grep -v '^ *+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } >/dev/null && {
10858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10861 ac_header_preproc=yes
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_header_preproc=no
10869 rm -f conftest.err conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10871 echo "${ECHO_T}$ac_header_preproc" >&6; }
10873 # So? What about this header?
10874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10880 ac_header_preproc=yes
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 eval "$as_ac_Header=\$ac_header_preproc"
10905 ac_res=`eval echo '${'$as_ac_Header'}'`
10906 { echo "$as_me:$LINENO: result: $ac_res" >&5
10907 echo "${ECHO_T}$ac_res" >&6; }
10910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10911 cat >>confdefs.h <<_ACEOF
10912 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10921 for ac_func in fork vfork
10923 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 cat >conftest.$ac_ext <<_ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10937 #define $ac_func innocuous_$ac_func
10939 /* System header to define __stub macros and hopefully few prototypes,
10940 which can conflict with char $ac_func (); below.
10941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942 <limits.h> exists even on freestanding compilers. */
10945 # include <limits.h>
10947 # include <assert.h>
10952 /* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10959 /* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962 #if defined __stub_$ac_func || defined __stub___$ac_func
10969 return $ac_func ();
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10978 *) ac_try_echo
=$ac_try;;
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10983 grep -v '^ *+' conftest.er1
>conftest.err
10985 cat conftest.err
>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } && {
10988 test -z "$ac_c_werror_flag" ||
10989 test ! -s conftest.err
10990 } && test -s conftest
$ac_exeext &&
10991 $as_test_x conftest
$ac_exeext; then
10992 eval "$as_ac_var=yes"
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.
$ac_ext >&5
10997 eval "$as_ac_var=no"
11000 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11001 conftest
$ac_exeext conftest.
$ac_ext
11003 ac_res
=`eval echo '${'$as_ac_var'}'`
11004 { echo "$as_me:$LINENO: result: $ac_res" >&5
11005 echo "${ECHO_T}$ac_res" >&6; }
11006 if test `eval echo '${'$as_ac_var'}'` = yes; then
11007 cat >>confdefs.h
<<_ACEOF
11008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11014 if test "x$ac_cv_func_fork" = xyes
; then
11015 { echo "$as_me:$LINENO: checking for working fork" >&5
11016 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11017 if test "${ac_cv_func_fork_works+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 if test "$cross_compiling" = yes; then
11021 ac_cv_func_fork_works
=cross
11023 cat >conftest.
$ac_ext <<_ACEOF
11026 cat confdefs.h
>>conftest.
$ac_ext
11027 cat >>conftest.
$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 $ac_includes_default
11034 /* By Ruediger Kuhlmann. */
11035 return fork () < 0;
11041 rm -f conftest
$ac_exeext
11042 if { (ac_try
="$ac_link"
11043 case "(($ac_try" in
11044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_link") 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11052 { (case "(($ac_try" in
11053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11054 *) ac_try_echo
=$ac_try;;
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_try") 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 ac_cv_func_fork_works
=yes
11063 echo "$as_me: program exited with status $ac_status" >&5
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.
$ac_ext >&5
11067 ( exit $ac_status )
11068 ac_cv_func_fork_works
=no
11070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11075 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11076 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11079 ac_cv_func_fork_works
=$ac_cv_func_fork
11081 if test "x$ac_cv_func_fork_works" = xcross
; then
11083 *-*-amigaos* |
*-*-msdosdjgpp* |
*-*-uclinux* )
11084 # Override, as these systems have only a dummy fork() stub
11085 ac_cv_func_fork_works
=no
11088 ac_cv_func_fork_works
=yes
11091 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11092 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11094 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11095 if test "x$ac_cv_func_vfork" = xyes
; then
11096 { echo "$as_me:$LINENO: checking for working vfork" >&5
11097 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11098 if test "${ac_cv_func_vfork_works+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 if test "$cross_compiling" = yes; then
11102 ac_cv_func_vfork_works
=cross
11104 cat >conftest.
$ac_ext <<_ACEOF
11107 cat confdefs.h
>>conftest.
$ac_ext
11108 cat >>conftest.
$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 /* Thanks to Paul Eggert for this test. */
11111 $ac_includes_default
11112 #include <sys/wait.h>
11113 #ifdef HAVE_VFORK_H
11114 # include <vfork.h>
11116 /* On some sparc systems, changes by the child to local and incoming
11117 argument registers are propagated back to the parent. The compiler
11118 is told about this with #include <vfork.h>, but some compilers
11119 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11120 static variable whose address is put into a register that is
11121 clobbered by the vfork. */
11124 sparc_address_test (int arg)
11126 sparc_address_test (arg) int arg;
11129 static pid_t child;
11147 pid_t parent = getpid ();
11150 sparc_address_test (0);
11155 /* Here is another test for sparc vfork register problems. This
11156 test uses lots of local variables, at least as many local
11157 variables as main has allocated so far including compiler
11158 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11159 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11160 reuse the register of parent for one of the local variables,
11161 since it will think that parent can't possibly be used any more
11162 in this routine. Assigning to the local variable will thus
11163 munge parent in the parent process. */
11165 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11166 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11167 /* Convince the compiler that p..p7 are live; otherwise, it might
11168 use the same hardware register for all 8 local variables. */
11169 if (p != p1 || p != p2 || p != p3 || p != p4
11170 || p != p5 || p != p6 || p != p7)
11173 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11174 from child file descriptors. If the child closes a descriptor
11175 before it execs or exits, this munges the parent's descriptor
11176 as well. Test for this by closing stdout in the child. */
11177 _exit(close(fileno(stdout)) != 0);
11182 while (wait(&status) != child)
11185 /* Was there some problem with vforking? */
11188 /* Did the child fail? (This shouldn't happen.) */
11191 /* Did the vfork/compiler bug occur? */
11192 || parent != getpid()
11194 /* Did the file descriptor bug occur? */
11195 || fstat(fileno(stdout), &st) != 0
11200 rm -f conftest
$ac_exeext
11201 if { (ac_try
="$ac_link"
11202 case "(($ac_try" in
11203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_link") 2>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11213 *) ac_try_echo
=$ac_try;;
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; }; then
11220 ac_cv_func_vfork_works
=yes
11222 echo "$as_me: program exited with status $ac_status" >&5
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.
$ac_ext >&5
11226 ( exit $ac_status )
11227 ac_cv_func_vfork_works
=no
11229 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11235 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11238 if test "x$ac_cv_func_fork_works" = xcross
; then
11239 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11240 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11241 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11244 if test "x$ac_cv_func_vfork_works" = xyes
; then
11246 cat >>confdefs.h
<<\_ACEOF
11247 #define HAVE_WORKING_VFORK 1
11252 cat >>confdefs.h
<<\_ACEOF
11257 if test "x$ac_cv_func_fork_works" = xyes
; then
11259 cat >>confdefs.h
<<\_ACEOF
11260 #define HAVE_WORKING_FORK 1
11265 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11266 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
11267 if test "${ac_cv_sys_largefile_source+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 cat >conftest.
$ac_ext <<_ACEOF
11274 cat confdefs.h
>>conftest.
$ac_ext
11275 cat >>conftest.
$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 #include <sys/types.h> /* for off_t */
11282 int (*fp) (FILE *, off_t, int) = fseeko;
11283 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11288 rm -f conftest.
$ac_objext conftest
$ac_exeext
11289 if { (ac_try
="$ac_link"
11290 case "(($ac_try" in
11291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_link") 2>conftest.er1
11297 grep -v '^ *+' conftest.er1 >conftest.err
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } && {
11302 test -z "$ac_c_werror_flag" ||
11303 test ! -s conftest.err
11304 } && test -s conftest$ac_exeext &&
11305 $as_test_x conftest$ac_exeext; then
11306 ac_cv_sys_largefile_source=no; break
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11315 conftest$ac_exeext conftest.$ac_ext
11316 cat >conftest.$ac_ext <<_ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 #define _LARGEFILE_SOURCE 1
11323 #include <sys/types.h> /* for off_t */
11328 int (*fp) (FILE *, off_t, int) = fseeko;
11329 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (ac_try="$ac_link"
11336 case "(($ac_try" in
11337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11338 *) ac_try_echo
=$ac_try;;
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_link") 2>conftest.er1
11343 grep -v '^ *+' conftest.er1
>conftest.err
11345 cat conftest.err
>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest
$ac_exeext &&
11351 $as_test_x conftest
$ac_exeext; then
11352 ac_cv_sys_largefile_source
=1; break
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.
$ac_ext >&5
11360 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11361 conftest
$ac_exeext conftest.
$ac_ext
11362 ac_cv_sys_largefile_source
=unknown
11366 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11367 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
11368 case $ac_cv_sys_largefile_source in #(
11371 cat >>confdefs.h
<<_ACEOF
11372 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11378 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11379 # in glibc 2.1.3, but that breaks too many other things.
11380 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11381 if test $ac_cv_sys_largefile_source != unknown
; then
11383 cat >>confdefs.h
<<\_ACEOF
11384 #define HAVE_FSEEKO 1
11389 if test $ac_cv_c_compiler_gnu = yes; then
11390 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11391 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11392 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 ac_pattern
="Autoconf.*'x'"
11396 cat >conftest.
$ac_ext <<_ACEOF
11399 cat confdefs.h
>>conftest.
$ac_ext
11400 cat >>conftest.
$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11406 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11407 ac_cv_prog_gcc_traditional
=yes
11409 ac_cv_prog_gcc_traditional
=no
11414 if test $ac_cv_prog_gcc_traditional = no
; then
11415 cat >conftest.
$ac_ext <<_ACEOF
11418 cat confdefs.h
>>conftest.
$ac_ext
11419 cat >>conftest.
$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 #include <termio.h>
11424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11425 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11426 ac_cv_prog_gcc_traditional
=yes
11432 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11433 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11434 if test $ac_cv_prog_gcc_traditional = yes; then
11435 CC
="$CC -traditional"
11439 # XXX: these are commented out until we determine whether it matters if our malloc()
11440 # acts exactly like glibc's or not
11443 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11444 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11445 if test "${ac_cv_func_memcmp_working+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 if test "$cross_compiling" = yes; then
11449 ac_cv_func_memcmp_working
=no
11451 cat >conftest.
$ac_ext <<_ACEOF
11454 cat confdefs.h
>>conftest.
$ac_ext
11455 cat >>conftest.
$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 $ac_includes_default
11462 /* Some versions of memcmp are not 8-bit clean. */
11463 char c0 = '\100', c1 = '\200', c2 = '\201';
11464 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11467 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11468 or more and with at least one buffer not starting on a 4-byte boundary.
11469 William Lewis provided this test program. */
11474 for (i = 0; i < 4; i++)
11478 strcpy (a, "--------01111111");
11479 strcpy (b, "--------10000000");
11480 if (memcmp (a, b, 16) >= 0)
11490 rm -f conftest
$ac_exeext
11491 if { (ac_try
="$ac_link"
11492 case "(($ac_try" in
11493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_link") 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11503 *) ac_try_echo
=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_func_memcmp_working
=yes
11512 echo "$as_me: program exited with status $ac_status" >&5
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.
$ac_ext >&5
11516 ( exit $ac_status )
11517 ac_cv_func_memcmp_working
=no
11519 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11524 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11525 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11526 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
11527 *" memcmp.$ac_objext "* ) ;;
11528 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
11537 for ac_header
in $ac_header_list
11539 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11540 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11543 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 ac_res
=`eval echo '${'$as_ac_Header'}'`
11547 { echo "$as_me:$LINENO: result: $ac_res" >&5
11548 echo "${ECHO_T}$ac_res" >&6; }
11550 # Is the header compilable?
11551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11553 cat >conftest.
$ac_ext <<_ACEOF
11556 cat confdefs.h
>>conftest.
$ac_ext
11557 cat >>conftest.
$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 $ac_includes_default
11560 #include <$ac_header>
11562 rm -f conftest.
$ac_objext
11563 if { (ac_try
="$ac_compile"
11564 case "(($ac_try" in
11565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_compile") 2>conftest.er1
11571 grep -v '^ *+' conftest.er1 >conftest.err
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } && {
11576 test -z "$ac_c_werror_flag" ||
11577 test ! -s conftest.err
11578 } && test -s conftest.$ac_objext; then
11579 ac_header_compiler=yes
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 ac_header_compiler=no
11587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11589 echo "${ECHO_T}$ac_header_compiler" >&6; }
11591 # Is the header present?
11592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11594 cat >conftest.$ac_ext <<_ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 #include <$ac_header>
11602 if { (ac_try="$ac_cpp conftest.$ac_ext"
11603 case "(($ac_try" in
11604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11605 *) ac_try_echo
=$ac_try;;
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11610 grep -v '^ *+' conftest.er1
>conftest.err
11612 cat conftest.err
>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } >/dev
/null
&& {
11615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11616 test ! -s conftest.err
11618 ac_header_preproc
=yes
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.
$ac_ext >&5
11623 ac_header_preproc
=no
11626 rm -f conftest.err conftest.
$ac_ext
11627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11628 echo "${ECHO_T}$ac_header_preproc" >&6; }
11630 # So? What about this header?
11631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11637 ac_header_preproc
=yes
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 eval "$as_ac_Header=\$ac_header_preproc"
11662 ac_res
=`eval echo '${'$as_ac_Header'}'`
11663 { echo "$as_me:$LINENO: result: $ac_res" >&5
11664 echo "${ECHO_T}$ac_res" >&6; }
11667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11668 cat >>confdefs.h
<<_ACEOF
11669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11684 for ac_func
in $ac_func_list
11686 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11689 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 cat >conftest.
$ac_ext <<_ACEOF
11695 cat confdefs.h
>>conftest.
$ac_ext
11696 cat >>conftest.
$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11700 #define $ac_func innocuous_$ac_func
11702 /* System header to define __stub macros and hopefully few prototypes,
11703 which can conflict with char $ac_func (); below.
11704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705 <limits.h> exists even on freestanding compilers. */
11708 # include <limits.h>
11710 # include <assert.h>
11715 /* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
11722 /* The GNU C library defines this for functions which it implements
11723 to always fail with ENOSYS. Some functions are actually named
11724 something starting with __ and the normal name is an alias. */
11725 #if defined __stub_$ac_func || defined __stub___$ac_func
11732 return $ac_func ();
11737 rm -f conftest.
$ac_objext conftest
$ac_exeext
11738 if { (ac_try
="$ac_link"
11739 case "(($ac_try" in
11740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_link") 2>conftest.er1
11746 grep -v '^ *+' conftest.er1 >conftest.err
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } && {
11751 test -z "$ac_c_werror_flag" ||
11752 test ! -s conftest.err
11753 } && test -s conftest$ac_exeext &&
11754 $as_test_x conftest$ac_exeext; then
11755 eval "$as_ac_var=yes"
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11760 eval "$as_ac_var=no"
11763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11764 conftest$ac_exeext conftest.$ac_ext
11766 ac_res=`eval echo '${'$as_ac_var'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768 echo "${ECHO_T}$ac_res" >&6; }
11769 if test `eval echo '${'$as_ac_var'}'` = yes; then
11770 cat >>confdefs.h <<_ACEOF
11771 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11793 { echo "$as_me:$LINENO: checking for working mktime" >&5
11794 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
11795 if test "${ac_cv_func_working_mktime+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 if test "$cross_compiling" = yes; then
11799 ac_cv_func_working_mktime=no
11801 cat >conftest.$ac_ext <<_ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 /* Test program from Paul Eggert and Tony Leneis. */
11808 #ifdef TIME_WITH_SYS_TIME
11809 # include <sys/time.h>
11812 # ifdef HAVE_SYS_TIME_H
11813 # include <sys/time.h>
11819 #include <stdlib.h>
11821 #ifdef HAVE_UNISTD_H
11822 # include <unistd.h>
11826 # define alarm(X) /* empty */
11829 /* Work around redefinition to rpl_putenv by other config tests. */
11832 static time_t time_t_max;
11833 static time_t time_t_min;
11835 /* Values we'll use to set the TZ environment variable. */
11836 static char *tz_strings[] = {
11837 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11838 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11840 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11842 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11843 Based on a problem report from Andreas Jaeger. */
11845 spring_forward_gap ()
11847 /* glibc (up to about 1998-10-07) failed this test. */
11850 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11851 instead of "TZ=America/Vancouver" in order to detect the bug even
11852 on systems that don't support the Olson extension, or don't have the
11853 full zoneinfo tables installed. */
11854 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11863 return mktime (&tm) != (time_t) -1;
11871 return ! (lt = localtime (&now)) || mktime (lt) == now;
11878 return (mktime_test1 (now)
11879 && mktime_test1 ((time_t) (time_t_max - now))
11880 && mktime_test1 ((time_t) (time_t_min + now)));
11886 /* Based on code from Ariel Faigon. */
11896 return tm.tm_mon == 2 && tm.tm_mday == 31;
11905 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11906 now = mktime (&tm);
11907 if (now != (time_t) -1)
11909 struct tm *lt = localtime (&now);
11911 && lt->tm_year == tm.tm_year
11912 && lt->tm_mon == tm.tm_mon
11913 && lt->tm_mday == tm.tm_mday
11914 && lt->tm_hour == tm.tm_hour
11915 && lt->tm_min == tm.tm_min
11916 && lt->tm_sec == tm.tm_sec
11917 && lt->tm_yday == tm.tm_yday
11918 && lt->tm_wday == tm.tm_wday
11919 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11920 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11929 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11930 ignoring leap seconds. */
11931 unsigned long int answer = 2527315200UL;
11935 tm.tm_year = 2050 - 1900;
11938 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11941 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11942 instead of "TZ=America/Vancouver" in order to detect the bug even
11943 on systems that don't support the Olson extension, or don't have the
11944 full zoneinfo tables installed. */
11945 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11949 /* Check that the result is either a failure, or close enough
11950 to the correct answer that we can assume the discrepancy is
11951 due to leap seconds. */
11952 return (t == (time_t) -1
11953 || (0 < t && answer - 120 <= t && t <= answer + 120));
11962 /* This test makes some buggy mktime implementations loop.
11963 Give up after 60 seconds; a mktime slower than that
11964 isn't worth using anyway. */
11967 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11970 if ((time_t) -1 < 0)
11971 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11973 delta = time_t_max / 997; /* a suitable prime number */
11974 for (i = 0; i < N_STRINGS; i++)
11977 putenv (tz_strings[i]);
11979 for (t = 0; t <= time_t_max - delta; t += delta)
11980 if (! mktime_test (t))
11982 if (! (mktime_test ((time_t) 1)
11983 && mktime_test ((time_t) (60 * 60))
11984 && mktime_test ((time_t) (60 * 60 * 24))))
11987 for (j = 1; 0 < j; j *= 2)
11988 if (! bigtime_test (j))
11990 if (! bigtime_test (j - 1))
11993 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11996 rm -f conftest$ac_exeext
11997 if { (ac_try="$ac_link"
11998 case "(($ac_try" in
11999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12000 *) ac_try_echo
=$ac_try;;
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_link") 2>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12007 { (case "(($ac_try" in
12008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_cv_func_working_mktime=yes
12018 echo "$as_me: program exited with status $ac_status" >&5
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12022 ( exit $ac_status )
12023 ac_cv_func_working_mktime=no
12025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12030 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12031 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12032 if test $ac_cv_func_working_mktime = no; then
12033 case " $LIBOBJS " in
12034 *" mktime.$ac_objext "* ) ;;
12035 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12043 for ac_header in stdlib.h unistd.h
12045 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 ac_res=`eval echo '${'$as_ac_Header'}'`
12053 { echo "$as_me:$LINENO: result: $ac_res" >&5
12054 echo "${ECHO_T}$ac_res" >&6; }
12056 # Is the header compilable?
12057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12059 cat >conftest.$ac_ext <<_ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 $ac_includes_default
12066 #include <$ac_header>
12068 rm -f conftest.$ac_objext
12069 if { (ac_try="$ac_compile"
12070 case "(($ac_try" in
12071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12072 *) ac_try_echo
=$ac_try;;
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_compile") 2>conftest.er1
12077 grep -v '^ *+' conftest.er1
>conftest.err
12079 cat conftest.err
>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } && {
12082 test -z "$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 } && test -s conftest.
$ac_objext; then
12085 ac_header_compiler
=yes
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.
$ac_ext >&5
12090 ac_header_compiler
=no
12093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12095 echo "${ECHO_T}$ac_header_compiler" >&6; }
12097 # Is the header present?
12098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12100 cat >conftest.
$ac_ext <<_ACEOF
12103 cat confdefs.h
>>conftest.
$ac_ext
12104 cat >>conftest.
$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #include <$ac_header>
12108 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12109 case "(($ac_try" in
12110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12116 grep -v '^ *+' conftest.er1 >conftest.err
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } >/dev/null && {
12121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12122 test ! -s conftest.err
12124 ac_header_preproc=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 ac_header_preproc=no
12132 rm -f conftest.err conftest.$ac_ext
12133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12134 echo "${ECHO_T}$ac_header_preproc" >&6; }
12136 # So? What about this header?
12137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12143 ac_header_preproc=yes
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 eval "$as_ac_Header=\$ac_header_preproc"
12168 ac_res=`eval echo '${'$as_ac_Header'}'`
12169 { echo "$as_me:$LINENO: result: $ac_res" >&5
12170 echo "${ECHO_T}$ac_res" >&6; }
12173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12174 cat >>confdefs.h <<_ACEOF
12175 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12183 for ac_func in getpagesize
12185 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12199 #define $ac_func innocuous_$ac_func
12201 /* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char $ac_func (); below.
12203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12204 <limits.h> exists even on freestanding compilers. */
12207 # include <limits.h>
12209 # include <assert.h>
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12221 /* The GNU C library defines this for functions which it implements
12222 to always fail with ENOSYS. Some functions are actually named
12223 something starting with __ and the normal name is an alias. */
12224 #if defined __stub_$ac_func || defined __stub___$ac_func
12231 return $ac_func ();
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (ac_try="$ac_link"
12238 case "(($ac_try" in
12239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12240 *) ac_try_echo
=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_link") 2>conftest.er1
12245 grep -v '^ *+' conftest.er1
>conftest.err
12247 cat conftest.err
>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } && {
12250 test -z "$ac_c_werror_flag" ||
12251 test ! -s conftest.err
12252 } && test -s conftest
$ac_exeext &&
12253 $as_test_x conftest
$ac_exeext; then
12254 eval "$as_ac_var=yes"
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.
$ac_ext >&5
12259 eval "$as_ac_var=no"
12262 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12263 conftest
$ac_exeext conftest.
$ac_ext
12265 ac_res
=`eval echo '${'$as_ac_var'}'`
12266 { echo "$as_me:$LINENO: result: $ac_res" >&5
12267 echo "${ECHO_T}$ac_res" >&6; }
12268 if test `eval echo '${'$as_ac_var'}'` = yes; then
12269 cat >>confdefs.h
<<_ACEOF
12270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12276 { echo "$as_me:$LINENO: checking for working mmap" >&5
12277 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12278 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 if test "$cross_compiling" = yes; then
12282 ac_cv_func_mmap_fixed_mapped
=no
12284 cat >conftest.
$ac_ext <<_ACEOF
12287 cat confdefs.h
>>conftest.
$ac_ext
12288 cat >>conftest.
$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 $ac_includes_default
12291 /* malloc might have been renamed as rpl_malloc. */
12294 /* Thanks to Mike Haertel and Jim Avera for this test.
12295 Here is a matrix of mmap possibilities:
12296 mmap private not fixed
12297 mmap private fixed at somewhere currently unmapped
12298 mmap private fixed at somewhere already mapped
12299 mmap shared not fixed
12300 mmap shared fixed at somewhere currently unmapped
12301 mmap shared fixed at somewhere already mapped
12302 For private mappings, we should verify that changes cannot be read()
12303 back from the file, nor mmap's back from the file at a different
12304 address. (There have been systems where private was not correctly
12305 implemented like the infamous i386 svr4.0, and systems where the
12306 VM page cache was not coherent with the file system buffer cache
12307 like early versions of FreeBSD and possibly contemporary NetBSD.)
12308 For shared mappings, we should conversely verify that changes get
12309 propagated back to all the places they're supposed to be.
12311 Grep wants private fixed already mapped.
12312 The main things grep needs to know about mmap are:
12313 * does it exist and is it safe to write into the mmap'd area
12314 * how to use it (BSD variants) */
12317 #include <sys/mman.h>
12319 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12323 /* This mess was copied from the GNU getpagesize.h. */
12324 #ifndef HAVE_GETPAGESIZE
12325 /* Assume that all systems that can run configure have sys/param.h. */
12326 # ifndef HAVE_SYS_PARAM_H
12327 # define HAVE_SYS_PARAM_H 1
12330 # ifdef _SC_PAGESIZE
12331 # define getpagesize() sysconf(_SC_PAGESIZE)
12332 # else /* no _SC_PAGESIZE */
12333 # ifdef HAVE_SYS_PARAM_H
12334 # include <sys/param.h>
12335 # ifdef EXEC_PAGESIZE
12336 # define getpagesize() EXEC_PAGESIZE
12337 # else /* no EXEC_PAGESIZE */
12339 # define getpagesize() NBPG * CLSIZE
12342 # endif /* no CLSIZE */
12343 # else /* no NBPG */
12345 # define getpagesize() NBPC
12346 # else /* no NBPC */
12348 # define getpagesize() PAGESIZE
12349 # endif /* PAGESIZE */
12350 # endif /* no NBPC */
12351 # endif /* no NBPG */
12352 # endif /* no EXEC_PAGESIZE */
12353 # else /* no HAVE_SYS_PARAM_H */
12354 # define getpagesize() 8192 /* punt totally */
12355 # endif /* no HAVE_SYS_PARAM_H */
12356 # endif /* no _SC_PAGESIZE */
12358 #endif /* no HAVE_GETPAGESIZE */
12363 char *data, *data2, *data3;
12367 pagesize = getpagesize ();
12369 /* First, make a file with some known garbage in it. */
12370 data = (char *) malloc (pagesize);
12373 for (i = 0; i < pagesize; ++i)
12374 *(data + i) = rand ();
12376 fd = creat ("conftest.mmap", 0600);
12379 if (write (fd, data, pagesize) != pagesize)
12383 /* Next, try to mmap the file at a fixed address which already has
12384 something else allocated at it. If we can, also make sure that
12385 we see the same garbage. */
12386 fd = open ("conftest.mmap", O_RDWR);
12389 data2 = (char *) malloc (2 * pagesize);
12392 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12393 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12394 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12396 for (i = 0; i < pagesize; ++i)
12397 if (*(data + i) != *(data2 + i))
12400 /* Finally, make sure that changes to the mapped area do not
12401 percolate back to the file as seen by read(). (This is a bug on
12402 some variants of i386 svr4.0.) */
12403 for (i = 0; i < pagesize; ++i)
12404 *(data2 + i) = *(data2 + i) + 1;
12405 data3 = (char *) malloc (pagesize);
12408 if (read (fd, data3, pagesize) != pagesize)
12410 for (i = 0; i < pagesize; ++i)
12411 if (*(data + i) != *(data3 + i))
12417 rm -f conftest
$ac_exeext
12418 if { (ac_try
="$ac_link"
12419 case "(($ac_try" in
12420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_link") 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12430 *) ac_try_echo
=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_func_mmap_fixed_mapped
=yes
12439 echo "$as_me: program exited with status $ac_status" >&5
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.
$ac_ext >&5
12443 ( exit $ac_status )
12444 ac_cv_func_mmap_fixed_mapped
=no
12446 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12452 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12453 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12455 cat >>confdefs.h
<<\_ACEOF
12456 #define HAVE_MMAP 1
12460 rm -f conftest.mmap
12464 for ac_header
in sys
/select.h sys
/socket.h
12466 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12467 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12470 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 ac_res
=`eval echo '${'$as_ac_Header'}'`
12474 { echo "$as_me:$LINENO: result: $ac_res" >&5
12475 echo "${ECHO_T}$ac_res" >&6; }
12477 # Is the header compilable?
12478 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12480 cat >conftest.
$ac_ext <<_ACEOF
12483 cat confdefs.h
>>conftest.
$ac_ext
12484 cat >>conftest.
$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 $ac_includes_default
12487 #include <$ac_header>
12489 rm -f conftest.
$ac_objext
12490 if { (ac_try
="$ac_compile"
12491 case "(($ac_try" in
12492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_compile") 2>conftest.er1
12498 grep -v '^ *+' conftest.er1 >conftest.err
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } && {
12503 test -z "$ac_c_werror_flag" ||
12504 test ! -s conftest.err
12505 } && test -s conftest.$ac_objext; then
12506 ac_header_compiler=yes
12508 echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 ac_header_compiler=no
12514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12516 echo "${ECHO_T}$ac_header_compiler" >&6; }
12518 # Is the header present?
12519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12521 cat >conftest.$ac_ext <<_ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include <$ac_header>
12529 if { (ac_try="$ac_cpp conftest.$ac_ext"
12530 case "(($ac_try" in
12531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12532 *) ac_try_echo
=$ac_try;;
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12537 grep -v '^ *+' conftest.er1
>conftest.err
12539 cat conftest.err
>&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } >/dev
/null
&& {
12542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12543 test ! -s conftest.err
12545 ac_header_preproc
=yes
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.
$ac_ext >&5
12550 ac_header_preproc
=no
12553 rm -f conftest.err conftest.
$ac_ext
12554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12555 echo "${ECHO_T}$ac_header_preproc" >&6; }
12557 # So? What about this header?
12558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12564 ac_header_preproc
=yes
12567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12584 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 eval "$as_ac_Header=\$ac_header_preproc"
12589 ac_res
=`eval echo '${'$as_ac_Header'}'`
12590 { echo "$as_me:$LINENO: result: $ac_res" >&5
12591 echo "${ECHO_T}$ac_res" >&6; }
12594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12595 cat >>confdefs.h
<<_ACEOF
12596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12603 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12604 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12605 if test "${ac_cv_func_select_args+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
12609 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12610 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
12611 cat >conftest.
$ac_ext <<_ACEOF
12614 cat confdefs.h
>>conftest.
$ac_ext
12615 cat >>conftest.
$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 $ac_includes_default
12618 #ifdef HAVE_SYS_SELECT_H
12619 # include <sys/select.h>
12621 #ifdef HAVE_SYS_SOCKET_H
12622 # include <sys/socket.h>
12628 extern int select ($ac_arg1,
12629 $ac_arg234, $ac_arg234, $ac_arg234,
12635 rm -f conftest.
$ac_objext
12636 if { (ac_try
="$ac_compile"
12637 case "(($ac_try" in
12638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_compile") 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && {
12649 test -z "$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12651 } && test -s conftest.$ac_objext; then
12652 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 # Provide a safe default value.
12665 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12668 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12669 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12670 ac_save_IFS=$IFS; IFS=','
12671 set dummy `echo "$ac_cv_func_select_args" |
sed 's/\*/\*/g'`
12675 cat >>confdefs.h <<_ACEOF
12676 #define SELECT_TYPE_ARG1 $1
12680 cat >>confdefs.h <<_ACEOF
12681 #define SELECT_TYPE_ARG234 ($2)
12685 cat >>confdefs.h <<_ACEOF
12686 #define SELECT_TYPE_ARG5 ($3)
12691 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12692 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12693 if test "$ac_cv_prog_cc_c89" != no; then
12694 { echo "$as_me:$LINENO: result: yes" >&5
12695 echo "${ECHO_T}yes" >&6; }
12697 cat >>confdefs.h <<\_ACEOF
12698 #define PROTOTYPES 1
12702 cat >>confdefs.h <<\_ACEOF
12703 #define __PROTOTYPES 1
12707 { echo "$as_me:$LINENO: result: no" >&5
12708 echo "${ECHO_T}no" >&6; }
12711 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12712 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12713 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 ac_cv_func_setvbuf_reversed=no
12717 cat >conftest.$ac_ext <<_ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12725 int (setvbuf) (FILE *, int, char *, size_t);
12730 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (ac_try="$ac_link"
12737 case "(($ac_try" in
12738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12739 *) ac_try_echo
=$ac_try;;
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_link") 2>conftest.er1
12744 grep -v '^ *+' conftest.er1
>conftest.err
12746 cat conftest.err
>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_c_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest
$ac_exeext &&
12752 $as_test_x conftest
$ac_exeext; then
12753 cat >conftest.
$ac_ext <<_ACEOF
12756 cat confdefs.h
>>conftest.
$ac_ext
12757 cat >>conftest.
$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12761 int (setvbuf) (FILE *, int, char *, size_t);
12766 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12771 rm -f conftest.
$ac_objext conftest
$ac_exeext
12772 if { (ac_try
="$ac_link"
12773 case "(($ac_try" in
12774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_link") 2>conftest.er1
12780 grep -v '^ *+' conftest.er1 >conftest.err
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } && {
12785 test -z "$ac_c_werror_flag" ||
12786 test ! -s conftest.err
12787 } && test -s conftest$ac_exeext &&
12788 $as_test_x conftest$ac_exeext; then
12789 # It compiles and links either way, so it must not be declared
12790 # with a prototype and most likely this is a K&R C compiler.
12792 if test "$cross_compiling" = yes; then
12793 : # Assume setvbuf is not reversed when cross-compiling.
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 $ac_includes_default
12805 /* This call has the arguments reversed.
12806 A reversed system may check and see that the address of buf
12807 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12809 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12812 return 0; /* Non-reversed systems SEGV here. */
12817 rm -f conftest$ac_exeext
12818 if { (ac_try="$ac_link"
12819 case "(($ac_try" in
12820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12821 *) ac_try_echo
=$ac_try;;
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_link") 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12828 { (case "(($ac_try" in
12829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_cv_func_setvbuf_reversed=yes
12839 echo "$as_me: program exited with status $ac_status" >&5
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12848 ac_cv_func_setvbuf_reversed=yes
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12857 conftest$ac_exeext conftest.$ac_ext
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12866 conftest$ac_exeext conftest.$ac_ext
12868 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12869 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12870 if test $ac_cv_func_setvbuf_reversed = yes; then
12872 cat >>confdefs.h <<\_ACEOF
12873 #define SETVBUF_REVERSED 1
12878 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12879 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12880 if test "${ac_cv_type_signal+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 cat >conftest.$ac_ext <<_ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 #include <sys/types.h>
12890 #include <signal.h>
12895 return *(signal (0, 0)) (0) == 1;
12900 rm -f conftest.$ac_objext
12901 if { (ac_try="$ac_compile"
12902 case "(($ac_try" in
12903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12904 *) ac_try_echo
=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_compile") 2>conftest.er1
12909 grep -v '^ *+' conftest.er1
>conftest.err
12911 cat conftest.err
>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && {
12914 test -z "$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 } && test -s conftest.
$ac_objext; then
12917 ac_cv_type_signal
=int
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.
$ac_ext >&5
12922 ac_cv_type_signal
=void
12925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12927 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12928 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12930 cat >>confdefs.h
<<_ACEOF
12931 #define RETSIGTYPE $ac_cv_type_signal
12935 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12936 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12937 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 rm -f conftest.sym conftest.
file
12941 echo >conftest.
file
12942 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
12943 if test "$cross_compiling" = yes; then
12944 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12946 cat >conftest.
$ac_ext <<_ACEOF
12949 cat confdefs.h
>>conftest.
$ac_ext
12950 cat >>conftest.
$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 $ac_includes_default
12957 /* Linux will dereference the symlink and fail.
12958 That is better in the sense that it means we will not
12959 have to compile and use the lstat wrapper. */
12960 return lstat ("conftest.sym/", &sbuf) == 0;
12965 rm -f conftest
$ac_exeext
12966 if { (ac_try
="$ac_link"
12967 case "(($ac_try" in
12968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_link") 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12976 { (case "(($ac_try" in
12977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12978 *) ac_try_echo
=$ac_try;;
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_try") 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
12987 echo "$as_me: program exited with status $ac_status" >&5
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.
$ac_ext >&5
12991 ( exit $ac_status )
12992 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12999 # If the `ln -s' command failed, then we probably don't even
13000 # have an lstat function.
13001 ac_cv_func_lstat_dereferences_slashed_symlink
=no
13003 rm -f conftest.sym conftest.
file
13006 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13007 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13009 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13011 cat >>confdefs.h
<<_ACEOF
13012 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13016 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
13017 case " $LIBOBJS " in
13018 *" lstat.$ac_objext "* ) ;;
13019 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
13025 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13026 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13027 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 if test "$cross_compiling" = yes; then
13031 ac_cv_func_stat_empty_string_bug
=yes
13033 cat >conftest.
$ac_ext <<_ACEOF
13036 cat confdefs.h
>>conftest.
$ac_ext
13037 cat >>conftest.
$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13039 $ac_includes_default
13044 return stat ("", &sbuf) == 0;
13049 rm -f conftest
$ac_exeext
13050 if { (ac_try
="$ac_link"
13051 case "(($ac_try" in
13052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_link") 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13062 *) ac_try_echo
=$ac_try;;
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_cv_func_stat_empty_string_bug
=no
13071 echo "$as_me: program exited with status $ac_status" >&5
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.
$ac_ext >&5
13075 ( exit $ac_status )
13076 ac_cv_func_stat_empty_string_bug
=yes
13078 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13083 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13084 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13085 if test $ac_cv_func_stat_empty_string_bug = yes; then
13086 case " $LIBOBJS " in
13087 *" stat.$ac_objext "* ) ;;
13088 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
13093 cat >>confdefs.h
<<_ACEOF
13094 #define HAVE_STAT_EMPTY_STRING_BUG 1
13099 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13100 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13101 if test "${ac_cv_func_strcoll_works+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 if test "$cross_compiling" = yes; then
13105 ac_cv_func_strcoll_works
=no
13107 cat >conftest.
$ac_ext <<_ACEOF
13110 cat confdefs.h
>>conftest.
$ac_ext
13111 cat >>conftest.
$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13117 return (strcoll ("abc", "def") >= 0 ||
13118 strcoll ("ABC", "DEF") >= 0 ||
13119 strcoll ("123", "456") >= 0)
13124 rm -f conftest
$ac_exeext
13125 if { (ac_try
="$ac_link"
13126 case "(($ac_try" in
13127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_link") 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13135 { (case "(($ac_try" in
13136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13137 *) ac_try_echo
=$ac_try;;
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_try") 2>&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13144 ac_cv_func_strcoll_works
=yes
13146 echo "$as_me: program exited with status $ac_status" >&5
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.
$ac_ext >&5
13150 ( exit $ac_status )
13151 ac_cv_func_strcoll_works
=no
13153 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13158 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13159 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13160 if test $ac_cv_func_strcoll_works = yes; then
13162 cat >>confdefs.h
<<\_ACEOF
13163 #define HAVE_STRCOLL 1
13169 for ac_func
in strftime
13171 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13174 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 cat >conftest.
$ac_ext <<_ACEOF
13180 cat confdefs.h
>>conftest.
$ac_ext
13181 cat >>conftest.
$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13185 #define $ac_func innocuous_$ac_func
13187 /* System header to define __stub macros and hopefully few prototypes,
13188 which can conflict with char $ac_func (); below.
13189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13190 <limits.h> exists even on freestanding compilers. */
13193 # include <limits.h>
13195 # include <assert.h>
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13207 /* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210 #if defined __stub_$ac_func || defined __stub___$ac_func
13217 return $ac_func ();
13222 rm -f conftest.
$ac_objext conftest
$ac_exeext
13223 if { (ac_try
="$ac_link"
13224 case "(($ac_try" in
13225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_link") 2>conftest.er1
13231 grep -v '^ *+' conftest.er1 >conftest.err
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } && {
13236 test -z "$ac_c_werror_flag" ||
13237 test ! -s conftest.err
13238 } && test -s conftest$ac_exeext &&
13239 $as_test_x conftest$ac_exeext; then
13240 eval "$as_ac_var=yes"
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 eval "$as_ac_var=no"
13248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13249 conftest$ac_exeext conftest.$ac_ext
13251 ac_res=`eval echo '${'$as_ac_var'}'`
13252 { echo "$as_me:$LINENO: result: $ac_res" >&5
13253 echo "${ECHO_T}$ac_res" >&6; }
13254 if test `eval echo '${'$as_ac_var'}'` = yes; then
13255 cat >>confdefs.h <<_ACEOF
13256 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13260 # strftime is in -lintl on SCO UNIX.
13261 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13262 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13263 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 ac_check_lib_save_LIBS=$LIBS
13267 LIBS="-lintl $LIBS"
13268 cat >conftest.$ac_ext <<_ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13275 /* Override any GCC internal prototype to avoid an error.
13276 Use char because int might match the return type of a GCC
13277 builtin and then its argument prototype would still apply. */
13285 return strftime ();
13290 rm -f conftest.$ac_objext conftest$ac_exeext
13291 if { (ac_try="$ac_link"
13292 case "(($ac_try" in
13293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13294 *) ac_try_echo
=$ac_try;;
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_link") 2>conftest.er1
13299 grep -v '^ *+' conftest.er1
>conftest.err
13301 cat conftest.err
>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } && {
13304 test -z "$ac_c_werror_flag" ||
13305 test ! -s conftest.err
13306 } && test -s conftest
$ac_exeext &&
13307 $as_test_x conftest
$ac_exeext; then
13308 ac_cv_lib_intl_strftime
=yes
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.
$ac_ext >&5
13313 ac_cv_lib_intl_strftime
=no
13316 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13317 conftest
$ac_exeext conftest.
$ac_ext
13318 LIBS
=$ac_check_lib_save_LIBS
13320 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13321 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13322 if test $ac_cv_lib_intl_strftime = yes; then
13323 cat >>confdefs.h
<<\_ACEOF
13324 #define HAVE_STRFTIME 1
13327 LIBS
="-lintl $LIBS"
13333 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13334 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13335 if test "${ac_cv_func_strnlen_working+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 if test "$cross_compiling" = yes; then
13339 ac_cv_func_strnlen_working
=no
13341 cat >conftest.
$ac_ext <<_ACEOF
13344 cat confdefs.h
>>conftest.
$ac_ext
13345 cat >>conftest.
$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 $ac_includes_default
13353 #define S_LEN (sizeof S - 1)
13355 /* At least one implementation is buggy: that of AIX 4.3 would
13356 give strnlen (S, 1) == 3. */
13359 for (i = 0; i < S_LEN + 1; ++i)
13361 int expected = i <= S_LEN ? i : S_LEN;
13362 if (strnlen (S, i) != expected)
13371 rm -f conftest
$ac_exeext
13372 if { (ac_try
="$ac_link"
13373 case "(($ac_try" in
13374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_link") 2>&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13384 *) ac_try_echo
=$ac_try;;
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_func_strnlen_working
=yes
13393 echo "$as_me: program exited with status $ac_status" >&5
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.
$ac_ext >&5
13397 ( exit $ac_status )
13398 ac_cv_func_strnlen_working
=no
13400 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13405 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13406 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13407 test $ac_cv_func_strnlen_working = no
&& case " $LIBOBJS " in
13408 *" strnlen.$ac_objext "* ) ;;
13409 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
13414 { echo "$as_me:$LINENO: checking for working strtod" >&5
13415 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13416 if test "${ac_cv_func_strtod+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 if test "$cross_compiling" = yes; then
13420 ac_cv_func_strtod
=no
13422 cat >conftest.
$ac_ext <<_ACEOF
13425 cat confdefs.h
>>conftest.
$ac_ext
13426 cat >>conftest.
$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13429 $ac_includes_default
13437 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13438 char *string = " +69";
13441 value = strtod (string, &term);
13442 if (value != 69 || term != (string + 4))
13447 /* Under Solaris 2.4, strtod returns the wrong value for the
13448 terminating character under some conditions. */
13449 char *string = "NaN";
13451 strtod (string, &term);
13452 if (term != string && *(term - 1) == 0)
13459 rm -f conftest
$ac_exeext
13460 if { (ac_try
="$ac_link"
13461 case "(($ac_try" in
13462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_link") 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13470 { (case "(($ac_try" in
13471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13472 *) ac_try_echo
=$ac_try;;
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_try") 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 ac_cv_func_strtod
=yes
13481 echo "$as_me: program exited with status $ac_status" >&5
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.
$ac_ext >&5
13485 ( exit $ac_status )
13486 ac_cv_func_strtod
=no
13488 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13493 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13494 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13495 if test $ac_cv_func_strtod = no
; then
13496 case " $LIBOBJS " in
13497 *" strtod.$ac_objext "* ) ;;
13498 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
13502 { echo "$as_me:$LINENO: checking for pow" >&5
13503 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13504 if test "${ac_cv_func_pow+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13507 cat >conftest.
$ac_ext <<_ACEOF
13510 cat confdefs.h
>>conftest.
$ac_ext
13511 cat >>conftest.
$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13515 #define pow innocuous_pow
13517 /* System header to define __stub macros and hopefully few prototypes,
13518 which can conflict with char pow (); below.
13519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13520 <limits.h> exists even on freestanding compilers. */
13523 # include <limits.h>
13525 # include <assert.h>
13530 /* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13537 /* The GNU C library defines this for functions which it implements
13538 to always fail with ENOSYS. Some functions are actually named
13539 something starting with __ and the normal name is an alias. */
13540 #if defined __stub_pow || defined __stub___pow
13552 rm -f conftest.
$ac_objext conftest
$ac_exeext
13553 if { (ac_try
="$ac_link"
13554 case "(($ac_try" in
13555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_link") 2>conftest.er1
13561 grep -v '^ *+' conftest.er1 >conftest.err
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } && {
13566 test -z "$ac_c_werror_flag" ||
13567 test ! -s conftest.err
13568 } && test -s conftest$ac_exeext &&
13569 $as_test_x conftest$ac_exeext; then
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13579 conftest$ac_exeext conftest.$ac_ext
13581 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13582 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13584 if test $ac_cv_func_pow = no; then
13585 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13586 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13587 if test "${ac_cv_lib_m_pow+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 ac_check_lib_save_LIBS=$LIBS
13592 cat >conftest.$ac_ext <<_ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13599 /* Override any GCC internal prototype to avoid an error.
13600 Use char because int might match the return type of a GCC
13601 builtin and then its argument prototype would still apply. */
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (ac_try="$ac_link"
13616 case "(($ac_try" in
13617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13618 *) ac_try_echo
=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_link") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1
>conftest.err
13625 cat conftest.err
>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } && {
13628 test -z "$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13630 } && test -s conftest
$ac_exeext &&
13631 $as_test_x conftest
$ac_exeext; then
13632 ac_cv_lib_m_pow
=yes
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.
$ac_ext >&5
13640 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13641 conftest
$ac_exeext conftest.
$ac_ext
13642 LIBS
=$ac_check_lib_save_LIBS
13644 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13645 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13646 if test $ac_cv_lib_m_pow = yes; then
13649 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13650 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13665 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
13666 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
13667 if test "${ac_cv_func_utime_null+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 rm -f conftest.data
; >conftest.data
13671 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13672 if test "$cross_compiling" = yes; then
13673 ac_cv_func_utime_null
=no
13675 cat >conftest.
$ac_ext <<_ACEOF
13678 cat confdefs.h
>>conftest.
$ac_ext
13679 cat >>conftest.
$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 $ac_includes_default
13682 #ifdef HAVE_UTIME_H
13683 # include <utime.h>
13689 return ! (stat ("conftest.data", &s) == 0
13690 && utime ("conftest.data", 0) == 0
13691 && stat ("conftest.data", &t) == 0
13692 && t.st_mtime >= s.st_mtime
13693 && t.st_mtime - s.st_mtime < 120);
13698 rm -f conftest
$ac_exeext
13699 if { (ac_try
="$ac_link"
13700 case "(($ac_try" in
13701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_link") 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13711 *) ac_try_echo
=$ac_try;;
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 ac_cv_func_utime_null
=yes
13720 echo "$as_me: program exited with status $ac_status" >&5
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.
$ac_ext >&5
13724 ( exit $ac_status )
13725 ac_cv_func_utime_null
=no
13727 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
13733 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
13734 if test $ac_cv_func_utime_null = yes; then
13736 cat >>confdefs.h
<<\_ACEOF
13737 #define HAVE_UTIME_NULL 1
13741 rm -f conftest.data
13744 for ac_func
in vprintf
13746 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13749 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 cat >conftest.
$ac_ext <<_ACEOF
13755 cat confdefs.h
>>conftest.
$ac_ext
13756 cat >>conftest.
$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13760 #define $ac_func innocuous_$ac_func
13762 /* System header to define __stub macros and hopefully few prototypes,
13763 which can conflict with char $ac_func (); below.
13764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13765 <limits.h> exists even on freestanding compilers. */
13768 # include <limits.h>
13770 # include <assert.h>
13775 /* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
13782 /* The GNU C library defines this for functions which it implements
13783 to always fail with ENOSYS. Some functions are actually named
13784 something starting with __ and the normal name is an alias. */
13785 #if defined __stub_$ac_func || defined __stub___$ac_func
13792 return $ac_func ();
13797 rm -f conftest.
$ac_objext conftest
$ac_exeext
13798 if { (ac_try
="$ac_link"
13799 case "(($ac_try" in
13800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_link") 2>conftest.er1
13806 grep -v '^ *+' conftest.er1 >conftest.err
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest$ac_exeext &&
13814 $as_test_x conftest$ac_exeext; then
13815 eval "$as_ac_var=yes"
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 eval "$as_ac_var=no"
13823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13824 conftest$ac_exeext conftest.$ac_ext
13826 ac_res=`eval echo '${'$as_ac_var'}'`
13827 { echo "$as_me:$LINENO: result: $ac_res" >&5
13828 echo "${ECHO_T}$ac_res" >&6; }
13829 if test `eval echo '${'$as_ac_var'}'` = yes; then
13830 cat >>confdefs.h <<_ACEOF
13831 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13834 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13835 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13836 if test "${ac_cv_func__doprnt+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 cat >conftest.$ac_ext <<_ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13845 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13847 #define _doprnt innocuous__doprnt
13849 /* System header to define __stub macros and hopefully few prototypes,
13850 which can conflict with char _doprnt (); below.
13851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13852 <limits.h> exists even on freestanding compilers. */
13855 # include <limits.h>
13857 # include <assert.h>
13862 /* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply. */
13869 /* The GNU C library defines this for functions which it implements
13870 to always fail with ENOSYS. Some functions are actually named
13871 something starting with __ and the normal name is an alias. */
13872 #if defined __stub__doprnt || defined __stub____doprnt
13884 rm -f conftest.$ac_objext conftest$ac_exeext
13885 if { (ac_try="$ac_link"
13886 case "(($ac_try" in
13887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13888 *) ac_try_echo
=$ac_try;;
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_link") 2>conftest.er1
13893 grep -v '^ *+' conftest.er1
>conftest.err
13895 cat conftest.err
>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && {
13898 test -z "$ac_c_werror_flag" ||
13899 test ! -s conftest.err
13900 } && test -s conftest
$ac_exeext &&
13901 $as_test_x conftest
$ac_exeext; then
13902 ac_cv_func__doprnt
=yes
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.
$ac_ext >&5
13907 ac_cv_func__doprnt
=no
13910 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13911 conftest
$ac_exeext conftest.
$ac_ext
13913 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13914 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13915 if test $ac_cv_func__doprnt = yes; then
13917 cat >>confdefs.h
<<\_ACEOF
13918 #define HAVE_DOPRNT 1
13974 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 strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
13976 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13979 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 cat >conftest.
$ac_ext <<_ACEOF
13985 cat confdefs.h
>>conftest.
$ac_ext
13986 cat >>conftest.
$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13990 #define $ac_func innocuous_$ac_func
13992 /* System header to define __stub macros and hopefully few prototypes,
13993 which can conflict with char $ac_func (); below.
13994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13995 <limits.h> exists even on freestanding compilers. */
13998 # include <limits.h>
14000 # include <assert.h>
14005 /* Override any GCC internal prototype to avoid an error.
14006 Use char because int might match the return type of a GCC
14007 builtin and then its argument prototype would still apply. */
14012 /* The GNU C library defines this for functions which it implements
14013 to always fail with ENOSYS. Some functions are actually named
14014 something starting with __ and the normal name is an alias. */
14015 #if defined __stub_$ac_func || defined __stub___$ac_func
14022 return $ac_func ();
14027 rm -f conftest.
$ac_objext conftest
$ac_exeext
14028 if { (ac_try
="$ac_link"
14029 case "(($ac_try" in
14030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14031 *) ac_try_echo=$ac_try;;
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034 (eval "$ac_link") 2>conftest.er1
14036 grep -v '^ *+' conftest.er1 >conftest.err
14038 cat conftest.err >&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest$ac_exeext &&
14044 $as_test_x conftest$ac_exeext; then
14045 eval "$as_ac_var=yes"
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 eval "$as_ac_var=no"
14053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14054 conftest$ac_exeext conftest.$ac_ext
14056 ac_res=`eval echo '${'$as_ac_var'}'`
14057 { echo "$as_me:$LINENO: result: $ac_res" >&5
14058 echo "${ECHO_T}$ac_res" >&6; }
14059 if test `eval echo '${'$as_ac_var'}'` = yes; then
14060 cat >>confdefs.h <<_ACEOF
14061 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14068 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14069 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14070 cat >conftest.$ac_ext <<_ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14080 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14085 rm -f conftest.$ac_objext conftest$ac_exeext
14086 if { (ac_try="$ac_link"
14087 case "(($ac_try" in
14088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14089 *) ac_try_echo
=$ac_try;;
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_link") 2>conftest.er1
14094 grep -v '^ *+' conftest.er1
>conftest.err
14096 cat conftest.err
>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } && {
14099 test -z "$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14101 } && test -s conftest
$ac_exeext &&
14102 $as_test_x conftest
$ac_exeext; then
14103 { echo "$as_me:$LINENO: result: yes" >&5
14104 echo "${ECHO_T}yes" >&6; }
14106 cat >>confdefs.h
<<\_ACEOF
14107 #define HAVE_GCC_ATOMICS 1
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.
$ac_ext >&5
14114 { echo "$as_me:$LINENO: result: no" >&5
14115 echo "${ECHO_T}no" >&6; }
14119 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14120 conftest
$ac_exeext conftest.
$ac_ext
14123 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14124 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14125 cat >conftest.
$ac_ext <<_ACEOF
14128 cat confdefs.h
>>conftest.
$ac_ext
14129 cat >>conftest.
$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 static int __attribute__((pure)) test(void) {}
14140 rm -f conftest.
$ac_objext
14141 if { (ac_try
="$ac_compile"
14142 case "(($ac_try" in
14143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_compile") 2>conftest.er1
14149 grep -v '^ *+' conftest.er1 >conftest.err
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } && {
14154 test -z "$ac_c_werror_flag" ||
14155 test ! -s conftest.err
14156 } && test -s conftest.$ac_objext; then
14157 { echo "$as_me:$LINENO: result: yes" >&5
14158 echo "${ECHO_T}yes" >&6; }
14160 cat >>confdefs.h <<_ACEOF
14161 #define HAVE_ATTRIBUTE_pure 1
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14168 { echo "$as_me:$LINENO: result: no" >&5
14169 echo "${ECHO_T}no" >&6; }
14172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14176 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14177 cat >conftest.$ac_ext <<_ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14183 static int __attribute__((malloc)) test(void) {}
14192 rm -f conftest.$ac_objext
14193 if { (ac_try="$ac_compile"
14194 case "(($ac_try" in
14195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14196 *) ac_try_echo
=$ac_try;;
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_compile") 2>conftest.er1
14201 grep -v '^ *+' conftest.er1
>conftest.err
14203 cat conftest.err
>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && {
14206 test -z "$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 } && test -s conftest.
$ac_objext; then
14209 { echo "$as_me:$LINENO: result: yes" >&5
14210 echo "${ECHO_T}yes" >&6; }
14212 cat >>confdefs.h
<<_ACEOF
14213 #define HAVE_ATTRIBUTE_malloc 1
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.
$ac_ext >&5
14220 { echo "$as_me:$LINENO: result: no" >&5
14221 echo "${ECHO_T}no" >&6; }
14224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14227 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
14228 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
14229 cat >conftest.
$ac_ext <<_ACEOF
14232 cat confdefs.h
>>conftest.
$ac_ext
14233 cat >>conftest.
$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 static int __attribute__((const)) test(void) {}
14244 rm -f conftest.
$ac_objext
14245 if { (ac_try
="$ac_compile"
14246 case "(($ac_try" in
14247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_compile") 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest.$ac_objext; then
14261 { echo "$as_me:$LINENO: result: yes" >&5
14262 echo "${ECHO_T}yes" >&6; }
14264 cat >>confdefs.h <<_ACEOF
14265 #define HAVE_ATTRIBUTE_const 1
14269 echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14272 { echo "$as_me:$LINENO: result: no" >&5
14273 echo "${ECHO_T}no" >&6; }
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
14280 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
14281 cat >conftest.$ac_ext <<_ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 static int __attribute__((unused)) test(void) {}
14296 rm -f conftest.$ac_objext
14297 if { (ac_try="$ac_compile"
14298 case "(($ac_try" in
14299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14300 *) ac_try_echo
=$ac_try;;
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_compile") 2>conftest.er1
14305 grep -v '^ *+' conftest.er1
>conftest.err
14307 cat conftest.err
>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } && {
14310 test -z "$ac_c_werror_flag" ||
14311 test ! -s conftest.err
14312 } && test -s conftest.
$ac_objext; then
14313 { echo "$as_me:$LINENO: result: yes" >&5
14314 echo "${ECHO_T}yes" >&6; }
14316 cat >>confdefs.h
<<_ACEOF
14317 #define HAVE_ATTRIBUTE_unused 1
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.
$ac_ext >&5
14324 { echo "$as_me:$LINENO: result: no" >&5
14325 echo "${ECHO_T}no" >&6; }
14328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14331 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
14332 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
14333 cat >conftest.
$ac_ext <<_ACEOF
14336 cat confdefs.h
>>conftest.
$ac_ext
14337 cat >>conftest.
$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 static int __attribute__((always_inline)) test(void) {}
14348 rm -f conftest.
$ac_objext
14349 if { (ac_try
="$ac_compile"
14350 case "(($ac_try" in
14351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_compile") 2>conftest.er1
14357 grep -v '^ *+' conftest.er1 >conftest.err
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } && {
14362 test -z "$ac_c_werror_flag" ||
14363 test ! -s conftest.err
14364 } && test -s conftest.$ac_objext; then
14365 { echo "$as_me:$LINENO: result: yes" >&5
14366 echo "${ECHO_T}yes" >&6; }
14368 cat >>confdefs.h <<_ACEOF
14369 #define HAVE_ATTRIBUTE_always_inline 1
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 { echo "$as_me:$LINENO: result: no" >&5
14377 echo "${ECHO_T}no" >&6; }
14380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14383 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
14384 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
14385 saved_CFLAGS="${CFLAGS}"
14386 CFLAGS="${CFLAGS} -ffunction-sections"
14387 cat >conftest.$ac_ext <<_ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14402 rm -f conftest.$ac_objext
14403 if { (ac_try="$ac_compile"
14404 case "(($ac_try" in
14405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14406 *) ac_try_echo
=$ac_try;;
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_compile") 2>conftest.er1
14411 grep -v '^ *+' conftest.er1
>conftest.err
14413 cat conftest.err
>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } && {
14416 test -z "$ac_c_werror_flag" ||
14417 test ! -s conftest.err
14418 } && test -s conftest.
$ac_objext; then
14419 { echo "$as_me:$LINENO: result: yes" >&5
14420 echo "${ECHO_T}yes" >&6; }
14421 saved_LDFLAGS
="${LDFLAGS}"
14422 LDFLAGS
="${LDFLAGS} -Wl,--gc-sections"
14423 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
14424 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
14425 cat >conftest.
$ac_ext <<_ACEOF
14428 cat confdefs.h
>>conftest.
$ac_ext
14429 cat >>conftest.
$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14440 rm -f conftest.
$ac_objext conftest
$ac_exeext
14441 if { (ac_try
="$ac_link"
14442 case "(($ac_try" in
14443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_link") 2>conftest.er1
14449 grep -v '^ *+' conftest.er1 >conftest.err
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest$ac_exeext &&
14457 $as_test_x conftest$ac_exeext; then
14458 { echo "$as_me:$LINENO: result: yes" >&5
14459 echo "${ECHO_T}yes" >&6; }
14460 GC_CFLAGS="-ffunction-sections"
14461 GC_LDFLAGS="-Wl,--gc-sections"
14463 echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14466 { echo "$as_me:$LINENO: result: no" >&5
14467 echo "${ECHO_T}no" >&6; }
14471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14472 conftest$ac_exeext conftest.$ac_ext
14473 LDFLAGS="${saved_LDFLAGS}"
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 { echo "$as_me:$LINENO: result: no" >&5
14479 echo "${ECHO_T}no" >&6; }
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484 CFLAGS="${saved_CFLAGS}"
14488 { echo "$as_me:$LINENO: checking for res_ninit" >&5
14489 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
14490 cat >conftest.$ac_ext <<_ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 #include <resolv.h>
14500 int foo = res_ninit(NULL);
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (ac_try="$ac_link"
14507 case "(($ac_try" in
14508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14509 *) ac_try_echo
=$ac_try;;
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_link") 2>conftest.er1
14514 grep -v '^ *+' conftest.er1
>conftest.err
14516 cat conftest.err
>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && {
14519 test -z "$ac_c_werror_flag" ||
14520 test ! -s conftest.err
14521 } && test -s conftest
$ac_exeext &&
14522 $as_test_x conftest
$ac_exeext; then
14523 { echo "$as_me:$LINENO: result: yes" >&5
14524 echo "${ECHO_T}yes" >&6; }
14526 cat >>confdefs.h
<<\_ACEOF
14527 #define HAVE_RES_NINIT 1
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.
$ac_ext >&5
14534 { echo "$as_me:$LINENO: result: no" >&5
14535 echo "${ECHO_T}no" >&6; }
14539 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14540 conftest
$ac_exeext conftest.
$ac_ext
14542 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
14543 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
14544 cat >conftest.
$ac_ext <<_ACEOF
14547 cat confdefs.h
>>conftest.
$ac_ext
14548 cat >>conftest.
$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14554 int foo = RTLD_NOLOAD;
14559 rm -f conftest.
$ac_objext conftest
$ac_exeext
14560 if { (ac_try
="$ac_link"
14561 case "(($ac_try" in
14562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_link") 2>conftest.er1
14568 grep -v '^ *+' conftest.er1 >conftest.err
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } && {
14573 test -z "$ac_c_werror_flag" ||
14574 test ! -s conftest.err
14575 } && test -s conftest$ac_exeext &&
14576 $as_test_x conftest$ac_exeext; then
14577 { echo "$as_me:$LINENO: result: yes" >&5
14578 echo "${ECHO_T}yes" >&6; }
14580 cat >>confdefs.h <<\_ACEOF
14581 #define HAVE_RTLD_NOLOAD 1
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14588 { echo "$as_me:$LINENO: result: no" >&5
14589 echo "${ECHO_T}no" >&6; }
14593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14594 conftest$ac_exeext conftest.$ac_ext
14596 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
14597 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
14598 cat >conftest.$ac_ext <<_ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */
14604 #include <netinet/in.h>
14608 int foo = IP_MTU_DISCOVER;
14613 rm -f conftest.$ac_objext conftest$ac_exeext
14614 if { (ac_try="$ac_link"
14615 case "(($ac_try" in
14616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14617 *) ac_try_echo
=$ac_try;;
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_link") 2>conftest.er1
14622 grep -v '^ *+' conftest.er1
>conftest.err
14624 cat conftest.err
>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } && {
14627 test -z "$ac_c_werror_flag" ||
14628 test ! -s conftest.err
14629 } && test -s conftest
$ac_exeext &&
14630 $as_test_x conftest
$ac_exeext; then
14631 { echo "$as_me:$LINENO: result: yes" >&5
14632 echo "${ECHO_T}yes" >&6; }
14634 cat >>confdefs.h
<<\_ACEOF
14635 #define HAVE_IP_MTU_DISCOVER 1
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.
$ac_ext >&5
14642 { echo "$as_me:$LINENO: result: no" >&5
14643 echo "${ECHO_T}no" >&6; }
14647 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14648 conftest
$ac_exeext conftest.
$ac_ext
14650 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14651 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14652 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14653 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14657 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14659 # Is the header compilable?
14660 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
14661 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
14662 cat >conftest.
$ac_ext <<_ACEOF
14665 cat confdefs.h
>>conftest.
$ac_ext
14666 cat >>conftest.
$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 $ac_includes_default
14669 #include <libkern/OSAtomic.h>
14671 rm -f conftest.
$ac_objext
14672 if { (ac_try
="$ac_compile"
14673 case "(($ac_try" in
14674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_compile") 2>conftest.er1
14680 grep -v '^ *+' conftest.er1 >conftest.err
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } && {
14685 test -z "$ac_c_werror_flag" ||
14686 test ! -s conftest.err
14687 } && test -s conftest.$ac_objext; then
14688 ac_header_compiler=yes
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 ac_header_compiler=no
14696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14698 echo "${ECHO_T}$ac_header_compiler" >&6; }
14700 # Is the header present?
14701 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
14702 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
14703 cat >conftest.$ac_ext <<_ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709 #include <libkern/OSAtomic.h>
14711 if { (ac_try="$ac_cpp conftest.$ac_ext"
14712 case "(($ac_try" in
14713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14714 *) ac_try_echo
=$ac_try;;
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14719 grep -v '^ *+' conftest.er1
>conftest.err
14721 cat conftest.err
>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } >/dev
/null
&& {
14724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14725 test ! -s conftest.err
14727 ac_header_preproc
=yes
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.
$ac_ext >&5
14732 ac_header_preproc
=no
14735 rm -f conftest.err conftest.
$ac_ext
14736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14737 echo "${ECHO_T}$ac_header_preproc" >&6; }
14739 # So? What about this header?
14740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14742 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
14743 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
14745 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
14746 ac_header_preproc
=yes
14749 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
14750 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
14752 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
14754 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
14755 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
14756 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
14757 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
14758 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
14760 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
14764 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14765 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14766 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 ac_cv_header_libkern_OSAtomic_h
=$ac_header_preproc
14771 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14772 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14775 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
14777 cat >>confdefs.h
<<_ACEOF
14778 #define HAVE_OSX_ATOMICS 1
14785 { echo "$as_me:$LINENO: checking for int" >&5
14786 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14787 if test "${ac_cv_type_int+set}" = set; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 cat >conftest.
$ac_ext <<_ACEOF
14793 cat confdefs.h
>>conftest.
$ac_ext
14794 cat >>conftest.
$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 $ac_includes_default
14797 typedef int ac__type_new_;
14801 if ((ac__type_new_ *) 0)
14803 if (sizeof (ac__type_new_))
14809 rm -f conftest.
$ac_objext
14810 if { (ac_try
="$ac_compile"
14811 case "(($ac_try" in
14812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_compile") 2>conftest.er1
14818 grep -v '^ *+' conftest.er1 >conftest.err
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest.$ac_objext; then
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14837 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14839 # The cast to long int works around a bug in the HP C Compiler
14840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14841 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
14842 # This bug is HP SR number 8606223364.
14843 { echo "$as_me:$LINENO: checking size of int" >&5
14844 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14845 if test "${ac_cv_sizeof_int+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 if test "$cross_compiling" = yes; then
14849 # Depending upon the size, compute the lo and hi bounds.
14850 cat >conftest.$ac_ext <<_ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856 $ac_includes_default
14857 typedef int ac__type_sizeof_;
14861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14868 rm -f conftest.$ac_objext
14869 if { (ac_try="$ac_compile"
14870 case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_compile") 2>conftest.er1
14877 grep -v '^
*+' conftest.er1 >conftest.err
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && {
14882 test -z "$ac_c_werror_flag" ||
14883 test ! -s conftest.err
14884 } && test -s conftest.$ac_objext; then
14887 cat >conftest.$ac_ext <<_ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14893 $ac_includes_default
14894 typedef int ac__type_sizeof_;
14898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14905 rm -f conftest.$ac_objext
14906 if { (ac_try="$ac_compile"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_compile") 2>conftest.er1
14914 grep -v '^
*+' conftest.er1 >conftest.err
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } && {
14919 test -z "$ac_c_werror_flag" ||
14920 test ! -s conftest.err
14921 } && test -s conftest.$ac_objext; then
14922 ac_hi=$ac_mid; break
14924 echo "$as_me: failed program was:" >&5
14925 sed 's
/^
/|
/' conftest.$ac_ext >&5
14927 ac_lo=`expr $ac_mid + 1`
14928 if test $ac_lo -le $ac_mid; then
14932 ac_mid=`expr 2 '*' $ac_mid + 1`
14935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14938 echo "$as_me: failed program was:" >&5
14939 sed 's
/^
/|
/' conftest.$ac_ext >&5
14941 cat >conftest.$ac_ext <<_ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 $ac_includes_default
14948 typedef int ac__type_sizeof_;
14952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14959 rm -f conftest.$ac_objext
14960 if { (ac_try="$ac_compile"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_compile") 2>conftest.er1
14968 grep -v '^
*+' conftest.er1 >conftest.err
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } && {
14973 test -z "$ac_c_werror_flag" ||
14974 test ! -s conftest.err
14975 } && test -s conftest.$ac_objext; then
14978 cat >conftest.$ac_ext <<_ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 $ac_includes_default
14985 typedef int ac__type_sizeof_;
14989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14996 rm -f conftest.$ac_objext
14997 if { (ac_try="$ac_compile"
14998 case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_compile") 2>conftest.er1
15005 grep -v '^
*+' conftest.er1 >conftest.err
15007 cat conftest.err >&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } && {
15010 test -z "$ac_c_werror_flag" ||
15011 test ! -s conftest.err
15012 } && test -s conftest.$ac_objext; then
15013 ac_lo=$ac_mid; break
15015 echo "$as_me: failed program was:" >&5
15016 sed 's
/^
/|
/' conftest.$ac_ext >&5
15018 ac_hi=`expr '(' $ac_mid ')' - 1`
15019 if test $ac_mid -le $ac_hi; then
15023 ac_mid=`expr 2 '*' $ac_mid`
15026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029 echo "$as_me: failed program was:" >&5
15030 sed 's
/^
/|
/' conftest.$ac_ext >&5
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 # Binary search between lo and hi bounds.
15040 while test "x$ac_lo" != "x$ac_hi"; do
15041 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15042 cat >conftest.$ac_ext <<_ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 $ac_includes_default
15049 typedef int ac__type_sizeof_;
15053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15060 rm -f conftest.$ac_objext
15061 if { (ac_try="$ac_compile"
15062 case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_compile") 2>conftest.er1
15069 grep -v '^
*+' conftest.er1 >conftest.err
15071 cat conftest.err >&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } && {
15074 test -z "$ac_c_werror_flag" ||
15075 test ! -s conftest.err
15076 } && test -s conftest.$ac_objext; then
15079 echo "$as_me: failed program was:" >&5
15080 sed 's
/^
/|
/' conftest.$ac_ext >&5
15082 ac_lo=`expr '(' $ac_mid ')' + 1`
15085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15088 ?*) ac_cv_sizeof_int=$ac_lo;;
15089 '') if test "$ac_cv_type_int" = yes; then
15090 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15091 See \`config.log' for more details.
" >&5
15092 echo "$as_me: error
: cannot compute sizeof
(int
)
15093 See \
`config.log' for more details." >&2;}
15094 { (exit 77); exit 77; }; }
15100 cat >conftest.$ac_ext <<_ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106 $ac_includes_default
15107 typedef int ac__type_sizeof_;
15108 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15109 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15111 #include <stdlib.h>
15116 FILE *f = fopen ("conftest.val", "w");
15119 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15121 long int i = longval ();
15122 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15124 fprintf (f, "%ld\n", i);
15128 unsigned long int i = ulongval ();
15129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15131 fprintf (f, "%lu\n", i);
15133 return ferror (f) || fclose (f) != 0;
15139 rm -f conftest$ac_exeext
15140 if { (ac_try="$ac_link"
15141 case "(($ac_try" in
15142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15143 *) ac_try_echo
=$ac_try;;
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_link") 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15150 { (case "(($ac_try" in
15151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_try") 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_sizeof_int=`cat conftest.val
`
15161 echo "$as_me: program exited with status $ac_status" >&5
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ( exit $ac_status )
15166 if test "$ac_cv_type_int" = yes; then
15167 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15168 See \`config.log
' for more details." >&5
15169 echo "$as_me: error: cannot compute sizeof (int)
15170 See \`config.log' for more details.
" >&2;}
15171 { (exit 77); exit 77; }; }
15176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15180 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
15181 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15185 cat >>confdefs.h <<_ACEOF
15186 #define SIZEOF_INT $ac_cv_sizeof_int
15191 # do the package library checks now
15194 if test "${USE_ALSA}" != "no
"; then
15196 if test "x
${ALSA_DIR}" != "x
"; then
15197 if test -d ${ALSA_DIR}/lib; then
15198 pbxlibdir="-L${ALSA_DIR}/lib
"
15200 pbxlibdir="-L${ALSA_DIR}"
15203 { echo "$as_me:$LINENO: checking
for snd_spcm_init
in -lasound" >&5
15204 echo $ECHO_N "checking
for snd_spcm_init
in -lasound...
$ECHO_C" >&6; }
15205 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15206 echo $ECHO_N "(cached
) $ECHO_C" >&6
15208 ac_check_lib_save_LIBS=$LIBS
15209 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15210 cat >conftest.$ac_ext <<_ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15217 /* Override any GCC internal prototype to avoid an error.
15218 Use char because int might match the return type of a GCC
15219 builtin and then its argument prototype would still apply. */
15223 char snd_spcm_init ();
15227 return snd_spcm_init ();
15232 rm -f conftest.$ac_objext conftest$ac_exeext
15233 if { (ac_try="$ac_link"
15234 case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15239 (eval "$ac_link") 2>conftest.er1
15241 grep -v '^ *+' conftest.er1 >conftest.err
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15245 (exit $ac_status); } && {
15246 test -z "$ac_c_werror_flag" ||
15247 test ! -s conftest.err
15248 } && test -s conftest$ac_exeext &&
15249 $as_test_x conftest$ac_exeext; then
15250 ac_cv_lib_asound_snd_spcm_init=yes
15252 echo "$as_me: failed program was
:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_cv_lib_asound_snd_spcm_init=no
15258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15259 conftest$ac_exeext conftest.$ac_ext
15260 LIBS=$ac_check_lib_save_LIBS
15262 { echo "$as_me:$LINENO: result
: $ac_cv_lib_asound_snd_spcm_init" >&5
15263 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15264 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15271 if test "${AST_ALSA_FOUND}" = "yes"; then
15272 ALSA_LIB="-lasound -lm -ldl"
15273 ALSA_HEADER_FOUND="1"
15274 if test "x
${ALSA_DIR}" != "x
"; then
15275 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15276 ALSA_INCLUDE="-I${ALSA_DIR}/include
"
15277 if test "xalsa
/asoundlib.h
" != "x
" ; then
15278 as_ac_Header=`echo "ac_cv_header_
${ALSA_DIR}/include
/alsa
/asoundlib.h
" | $as_tr_sh`
15279 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15280 { echo "$as_me:$LINENO: checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h
" >&5
15281 echo $ECHO_N "checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h...
$ECHO_C" >&6; }
15282 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15283 echo $ECHO_N "(cached
) $ECHO_C" >&6
15285 ac_res=`eval echo '${'$as_ac_Header'}'`
15286 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15287 echo "${ECHO_T}$ac_res" >&6; }
15289 # Is the header compilable?
15290 { echo "$as_me:$LINENO: checking
${ALSA_DIR}/include
/alsa
/asoundlib.h usability
" >&5
15291 echo $ECHO_N "checking
${ALSA_DIR}/include
/alsa
/asoundlib.h usability...
$ECHO_C" >&6; }
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 $ac_includes_default
15299 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15301 rm -f conftest.$ac_objext
15302 if { (ac_try="$ac_compile"
15303 case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_compile") 2>conftest.er1
15310 grep -v '^ *+' conftest.er1 >conftest.err
15312 cat conftest.err >&5
15313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15314 (exit $ac_status); } && {
15315 test -z "$ac_c_werror_flag" ||
15316 test ! -s conftest.err
15317 } && test -s conftest.$ac_objext; then
15318 ac_header_compiler=yes
15320 echo "$as_me: failed program was
:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 ac_header_compiler=no
15326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15327 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15328 echo "${ECHO_T}$ac_header_compiler" >&6; }
15330 # Is the header present?
15331 { echo "$as_me:$LINENO: checking
${ALSA_DIR}/include
/alsa
/asoundlib.h presence
" >&5
15332 echo $ECHO_N "checking
${ALSA_DIR}/include
/alsa
/asoundlib.h presence...
$ECHO_C" >&6; }
15333 cat >conftest.$ac_ext <<_ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15341 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15349 grep -v '^ *+' conftest.er1 >conftest.err
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15353 (exit $ac_status); } >/dev/null && {
15354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15355 test ! -s conftest.err
15357 ac_header_preproc=yes
15359 echo "$as_me: failed program was
:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 ac_header_preproc=no
15365 rm -f conftest.err conftest.$ac_ext
15366 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15367 echo "${ECHO_T}$ac_header_preproc" >&6; }
15369 # So? What about this header?
15370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15372 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15373 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15374 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: proceeding with the compiler
's result" >&5
15375 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result
" >&2;}
15376 ac_header_preproc=yes
15379 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: present but cannot be compiled
" >&5
15380 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: present but cannot be compiled
" >&2;}
15381 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&5
15382 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&2;}
15383 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: see the Autoconf documentation
" >&5
15384 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: see the Autoconf documentation
" >&2;}
15385 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15386 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15387 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&5
15388 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result
" >&2;}
15389 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&5
15390 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&2;}
15394 { echo "$as_me:$LINENO: checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h
" >&5
15395 echo $ECHO_N "checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h...
$ECHO_C" >&6; }
15396 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15397 echo $ECHO_N "(cached
) $ECHO_C" >&6
15399 eval "$as_ac_Header=\
$ac_header_preproc"
15401 ac_res=`eval echo '${'$as_ac_Header'}'`
15402 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15403 echo "${ECHO_T}$ac_res" >&6; }
15406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15407 ALSA_HEADER_FOUND=1
15409 ALSA_HEADER_FOUND=0
15415 if test "xalsa
/asoundlib.h
" != "x
" ; then
15416 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15417 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
15418 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
15419 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15420 echo $ECHO_N "(cached
) $ECHO_C" >&6
15422 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
15423 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15425 # Is the header compilable?
15426 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h usability
" >&5
15427 echo $ECHO_N "checking alsa
/asoundlib.h usability...
$ECHO_C" >&6; }
15428 cat >conftest.$ac_ext <<_ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15434 $ac_includes_default
15435 #include <alsa/asoundlib.h>
15437 rm -f conftest.$ac_objext
15438 if { (ac_try="$ac_compile"
15439 case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_compile") 2>conftest.er1
15446 grep -v '^ *+' conftest.er1 >conftest.err
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15450 (exit $ac_status); } && {
15451 test -z "$ac_c_werror_flag" ||
15452 test ! -s conftest.err
15453 } && test -s conftest.$ac_objext; then
15454 ac_header_compiler=yes
15456 echo "$as_me: failed program was
:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15459 ac_header_compiler=no
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15464 echo "${ECHO_T}$ac_header_compiler" >&6; }
15466 # Is the header present?
15467 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h presence
" >&5
15468 echo $ECHO_N "checking alsa
/asoundlib.h presence...
$ECHO_C" >&6; }
15469 cat >conftest.$ac_ext <<_ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15475 #include <alsa/asoundlib.h>
15477 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15485 grep -v '^ *+' conftest.er1 >conftest.err
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15489 (exit $ac_status); } >/dev/null && {
15490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15491 test ! -s conftest.err
15493 ac_header_preproc=yes
15495 echo "$as_me: failed program was
:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 ac_header_preproc=no
15501 rm -f conftest.err conftest.$ac_ext
15502 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15503 echo "${ECHO_T}$ac_header_preproc" >&6; }
15505 # So? What about this header?
15506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15508 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15509 echo "$as_me: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15510 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the compiler
's result" >&5
15511 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result
" >&2;}
15512 ac_header_preproc=yes
15515 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&5
15516 echo "$as_me: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&2;}
15517 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&5
15518 echo "$as_me: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&2;}
15519 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&5
15520 echo "$as_me: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&2;}
15521 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15522 echo "$as_me: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15523 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&5
15524 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result
" >&2;}
15525 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&5
15526 echo "$as_me: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&2;}
15530 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
15531 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
15532 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15533 echo $ECHO_N "(cached
) $ECHO_C" >&6
15535 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
15537 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
15538 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15541 if test $ac_cv_header_alsa_asoundlib_h = yes; then
15542 ALSA_HEADER_FOUND=1
15544 ALSA_HEADER_FOUND=0
15550 if test "x
${ALSA_HEADER_FOUND}" = "x0
" ; then
15551 if test ! -z "${ALSA_MANDATORY}" ;
15553 { echo "$as_me:$LINENO: ***" >&5
15554 echo "$as_me: ***" >&6;}
15555 { echo "$as_me:$LINENO: *** It appears that you
do not have the asound development package installed.
" >&5
15556 echo "$as_me: *** It appears that you
do not have the asound development package installed.
" >&6;}
15557 { echo "$as_me:$LINENO: *** Please
install it to include
${ALSA_DESCRIP} support
, or re-run configure
" >&5
15558 echo "$as_me: *** Please
install it to include
${ALSA_DESCRIP} support
, or re-run configure
" >&6;}
15559 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ALSA_OPTION}" >&5
15560 echo "$as_me: *** without explicitly specifying
--with-${ALSA_OPTION}" >&6;}
15569 cat >>confdefs.h <<_ACEOF
15570 #define HAVE_ALSA 1
15574 elif test ! -z "${ALSA_MANDATORY}";
15576 { echo "$as_me:$LINENO: ***" >&5
15577 echo "$as_me: ***" >&6;}
15578 { echo "$as_me:$LINENO: *** The
${ALSA_DESCRIP} installation on this system appears to be broken.
" >&5
15579 echo "$as_me: *** The
${ALSA_DESCRIP} installation on this system appears to be broken.
" >&6;}
15580 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
15581 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
15582 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ALSA_OPTION}" >&5
15583 echo "$as_me: *** without explicitly specifying
--with-${ALSA_OPTION}" >&6;}
15590 if test "${USE_CURSES}" != "no
"; then
15592 if test "x
${CURSES_DIR}" != "x
"; then
15593 if test -d ${CURSES_DIR}/lib; then
15594 pbxlibdir="-L${CURSES_DIR}/lib
"
15596 pbxlibdir="-L${CURSES_DIR}"
15599 { echo "$as_me:$LINENO: checking
for initscr
in -lcurses" >&5
15600 echo $ECHO_N "checking
for initscr
in -lcurses...
$ECHO_C" >&6; }
15601 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15602 echo $ECHO_N "(cached
) $ECHO_C" >&6
15604 ac_check_lib_save_LIBS=$LIBS
15605 LIBS="-lcurses ${pbxlibdir} $LIBS"
15606 cat >conftest.$ac_ext <<_ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15613 /* Override any GCC internal prototype to avoid an error.
15614 Use char because int might match the return type of a GCC
15615 builtin and then its argument prototype would still apply. */
15628 rm -f conftest.$ac_objext conftest$ac_exeext
15629 if { (ac_try="$ac_link"
15630 case "(($ac_try" in
15631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632 *) ac_try_echo=$ac_try;;
15634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15635 (eval "$ac_link") 2>conftest.er1
15637 grep -v '^ *+' conftest.er1 >conftest.err
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15641 (exit $ac_status); } && {
15642 test -z "$ac_c_werror_flag" ||
15643 test ! -s conftest.err
15644 } && test -s conftest$ac_exeext &&
15645 $as_test_x conftest$ac_exeext; then
15646 ac_cv_lib_curses_initscr=yes
15648 echo "$as_me: failed program was
:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 ac_cv_lib_curses_initscr=no
15654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15655 conftest$ac_exeext conftest.$ac_ext
15656 LIBS=$ac_check_lib_save_LIBS
15658 { echo "$as_me:$LINENO: result
: $ac_cv_lib_curses_initscr" >&5
15659 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
15660 if test $ac_cv_lib_curses_initscr = yes; then
15661 AST_CURSES_FOUND=yes
15663 AST_CURSES_FOUND=no
15667 if test "${AST_CURSES_FOUND}" = "yes"; then
15668 CURSES_LIB="-lcurses "
15669 CURSES_HEADER_FOUND="1"
15670 if test "x
${CURSES_DIR}" != "x
"; then
15671 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
15672 CURSES_INCLUDE="-I${CURSES_DIR}/include
"
15673 if test "xcurses.h
" != "x
" ; then
15674 as_ac_Header=`echo "ac_cv_header_
${CURSES_DIR}/include
/curses.h
" | $as_tr_sh`
15675 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15676 { echo "$as_me:$LINENO: checking
for ${CURSES_DIR}/include
/curses.h
" >&5
15677 echo $ECHO_N "checking
for ${CURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
15678 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15679 echo $ECHO_N "(cached
) $ECHO_C" >&6
15681 ac_res=`eval echo '${'$as_ac_Header'}'`
15682 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15683 echo "${ECHO_T}$ac_res" >&6; }
15685 # Is the header compilable?
15686 { echo "$as_me:$LINENO: checking
${CURSES_DIR}/include
/curses.h usability
" >&5
15687 echo $ECHO_N "checking
${CURSES_DIR}/include
/curses.h usability...
$ECHO_C" >&6; }
15688 cat >conftest.$ac_ext <<_ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15694 $ac_includes_default
15695 #include <${CURSES_DIR}/include/curses.h>
15697 rm -f conftest.$ac_objext
15698 if { (ac_try="$ac_compile"
15699 case "(($ac_try" in
15700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701 *) ac_try_echo=$ac_try;;
15703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_compile") 2>conftest.er1
15706 grep -v '^ *+' conftest.er1 >conftest.err
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15710 (exit $ac_status); } && {
15711 test -z "$ac_c_werror_flag" ||
15712 test ! -s conftest.err
15713 } && test -s conftest.$ac_objext; then
15714 ac_header_compiler=yes
15716 echo "$as_me: failed program was
:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 ac_header_compiler=no
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15724 echo "${ECHO_T}$ac_header_compiler" >&6; }
15726 # Is the header present?
15727 { echo "$as_me:$LINENO: checking
${CURSES_DIR}/include
/curses.h presence
" >&5
15728 echo $ECHO_N "checking
${CURSES_DIR}/include
/curses.h presence...
$ECHO_C" >&6; }
15729 cat >conftest.$ac_ext <<_ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15735 #include <${CURSES_DIR}/include/curses.h>
15737 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15738 case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15745 grep -v '^ *+' conftest.er1 >conftest.err
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15749 (exit $ac_status); } >/dev/null && {
15750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15751 test ! -s conftest.err
15753 ac_header_preproc=yes
15755 echo "$as_me: failed program was
:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 ac_header_preproc=no
15761 rm -f conftest.err conftest.$ac_ext
15762 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15763 echo "${ECHO_T}$ac_header_preproc" >&6; }
15765 # So? What about this header?
15766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15768 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15769 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15770 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: proceeding with the compiler
's result" >&5
15771 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result
" >&2;}
15772 ac_header_preproc=yes
15775 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&5
15776 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&2;}
15777 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&5
15778 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&2;}
15779 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&5
15780 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&2;}
15781 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15782 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15783 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: proceeding with the preprocessor
's result" >&5
15784 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result
" >&2;}
15785 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&5
15786 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&2;}
15790 { echo "$as_me:$LINENO: checking
for ${CURSES_DIR}/include
/curses.h
" >&5
15791 echo $ECHO_N "checking
for ${CURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
15792 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15793 echo $ECHO_N "(cached
) $ECHO_C" >&6
15795 eval "$as_ac_Header=\
$ac_header_preproc"
15797 ac_res=`eval echo '${'$as_ac_Header'}'`
15798 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15799 echo "${ECHO_T}$ac_res" >&6; }
15802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15803 CURSES_HEADER_FOUND=1
15805 CURSES_HEADER_FOUND=0
15811 if test "xcurses.h
" != "x
" ; then
15812 if test "${ac_cv_header_curses_h+set}" = set; then
15813 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
15814 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
15815 if test "${ac_cv_header_curses_h+set}" = set; then
15816 echo $ECHO_N "(cached
) $ECHO_C" >&6
15818 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
15819 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15821 # Is the header compilable?
15822 { echo "$as_me:$LINENO: checking curses.h usability
" >&5
15823 echo $ECHO_N "checking curses.h usability...
$ECHO_C" >&6; }
15824 cat >conftest.$ac_ext <<_ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h. */
15830 $ac_includes_default
15831 #include <curses.h>
15833 rm -f conftest.$ac_objext
15834 if { (ac_try="$ac_compile"
15835 case "(($ac_try" in
15836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837 *) ac_try_echo=$ac_try;;
15839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15840 (eval "$ac_compile") 2>conftest.er1
15842 grep -v '^ *+' conftest.er1 >conftest.err
15844 cat conftest.err >&5
15845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15846 (exit $ac_status); } && {
15847 test -z "$ac_c_werror_flag" ||
15848 test ! -s conftest.err
15849 } && test -s conftest.$ac_objext; then
15850 ac_header_compiler=yes
15852 echo "$as_me: failed program was
:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 ac_header_compiler=no
15858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15860 echo "${ECHO_T}$ac_header_compiler" >&6; }
15862 # Is the header present?
15863 { echo "$as_me:$LINENO: checking curses.h presence
" >&5
15864 echo $ECHO_N "checking curses.h presence...
$ECHO_C" >&6; }
15865 cat >conftest.$ac_ext <<_ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871 #include <curses.h>
15873 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15874 case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15879 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15881 grep -v '^ *+' conftest.er1 >conftest.err
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15885 (exit $ac_status); } >/dev/null && {
15886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15887 test ! -s conftest.err
15889 ac_header_preproc=yes
15891 echo "$as_me: failed program was
:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15894 ac_header_preproc=no
15897 rm -f conftest.err conftest.$ac_ext
15898 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15899 echo "${ECHO_T}$ac_header_preproc" >&6; }
15901 # So? What about this header?
15902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15904 { echo "$as_me:$LINENO: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15905 echo "$as_me: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15906 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the compiler
's result" >&5
15907 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result
" >&2;}
15908 ac_header_preproc=yes
15911 { echo "$as_me:$LINENO: WARNING
: curses.h
: present but cannot be compiled
" >&5
15912 echo "$as_me: WARNING
: curses.h
: present but cannot be compiled
" >&2;}
15913 { echo "$as_me:$LINENO: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&5
15914 echo "$as_me: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&2;}
15915 { echo "$as_me:$LINENO: WARNING
: curses.h
: see the Autoconf documentation
" >&5
15916 echo "$as_me: WARNING
: curses.h
: see the Autoconf documentation
" >&2;}
15917 { echo "$as_me:$LINENO: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15918 echo "$as_me: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15919 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&5
15920 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result
" >&2;}
15921 { echo "$as_me:$LINENO: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&5
15922 echo "$as_me: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&2;}
15926 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
15927 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
15928 if test "${ac_cv_header_curses_h+set}" = set; then
15929 echo $ECHO_N "(cached
) $ECHO_C" >&6
15931 ac_cv_header_curses_h=$ac_header_preproc
15933 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
15934 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15937 if test $ac_cv_header_curses_h = yes; then
15938 CURSES_HEADER_FOUND=1
15940 CURSES_HEADER_FOUND=0
15946 if test "x
${CURSES_HEADER_FOUND}" = "x0
" ; then
15947 if test ! -z "${CURSES_MANDATORY}" ;
15949 { echo "$as_me:$LINENO: ***" >&5
15950 echo "$as_me: ***" >&6;}
15951 { echo "$as_me:$LINENO: *** It appears that you
do not have the curses development package installed.
" >&5
15952 echo "$as_me: *** It appears that you
do not have the curses development package installed.
" >&6;}
15953 { echo "$as_me:$LINENO: *** Please
install it to include
${CURSES_DESCRIP} support
, or re-run configure
" >&5
15954 echo "$as_me: *** Please
install it to include
${CURSES_DESCRIP} support
, or re-run configure
" >&6;}
15955 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${CURSES_OPTION}" >&5
15956 echo "$as_me: *** without explicitly specifying
--with-${CURSES_OPTION}" >&6;}
15965 cat >>confdefs.h <<_ACEOF
15966 #define HAVE_CURSES 1
15970 elif test ! -z "${CURSES_MANDATORY}";
15972 { echo "$as_me:$LINENO: ***" >&5
15973 echo "$as_me: ***" >&6;}
15974 { echo "$as_me:$LINENO: *** The
${CURSES_DESCRIP} installation on this system appears to be broken.
" >&5
15975 echo "$as_me: *** The
${CURSES_DESCRIP} installation on this system appears to be broken.
" >&6;}
15976 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
15977 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
15978 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${CURSES_OPTION}" >&5
15979 echo "$as_me: *** without explicitly specifying
--with-${CURSES_OPTION}" >&6;}
15988 if test "${USE_GSM}" != "no
"; then
15989 if test "${GSM_DIR}" = "internal
"; then
15991 elif test "${GSM_DIR}" != ""; then
15994 if test "${GSM_SYSTEM}" = "yes"; then
15996 if test "x
${GSM_DIR}" != "x
"; then
15997 if test -d ${GSM_DIR}/lib; then
15998 gsmlibdir="-L${GSM_DIR}/lib
"
16000 gsmlibdir="-L${GSM_DIR}"
16003 { echo "$as_me:$LINENO: checking
for gsm_create
in -lgsm" >&5
16004 echo $ECHO_N "checking
for gsm_create
in -lgsm...
$ECHO_C" >&6; }
16005 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16006 echo $ECHO_N "(cached
) $ECHO_C" >&6
16008 ac_check_lib_save_LIBS=$LIBS
16009 LIBS="-lgsm ${gsmlibdir} $LIBS"
16010 cat >conftest.$ac_ext <<_ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16017 /* Override any GCC internal prototype to avoid an error.
16018 Use char because int might match the return type of a GCC
16019 builtin and then its argument prototype would still apply. */
16023 char gsm_create ();
16027 return gsm_create ();
16032 rm -f conftest.$ac_objext conftest$ac_exeext
16033 if { (ac_try="$ac_link"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_link") 2>conftest.er1
16041 grep -v '^ *+' conftest.er1 >conftest.err
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16045 (exit $ac_status); } && {
16046 test -z "$ac_c_werror_flag" ||
16047 test ! -s conftest.err
16048 } && test -s conftest$ac_exeext &&
16049 $as_test_x conftest$ac_exeext; then
16050 ac_cv_lib_gsm_gsm_create=yes
16052 echo "$as_me: failed program was
:" >&5
16053 sed 's/^/| /' conftest.$ac_ext >&5
16055 ac_cv_lib_gsm_gsm_create=no
16058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16059 conftest$ac_exeext conftest.$ac_ext
16060 LIBS=$ac_check_lib_save_LIBS
16062 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gsm_gsm_create" >&5
16063 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16064 if test $ac_cv_lib_gsm_gsm_create = yes; then
16066 cat >>confdefs.h <<_ACEOF
16072 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16074 if test "x
${GSM_DIR}" != "x
"; then
16075 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
16076 GSM_INCLUDE="-I${GSM_DIR}/include
"
16082 if test "${GSM_INTERNAL}" = "yes"; then
16088 if test "${USE_IKSEMEL}" != "no
"; then
16090 if test "x
${IKSEMEL_DIR}" != "x
"; then
16091 if test -d ${IKSEMEL_DIR}/lib; then
16092 pbxlibdir="-L${IKSEMEL_DIR}/lib
"
16094 pbxlibdir="-L${IKSEMEL_DIR}"
16097 { echo "$as_me:$LINENO: checking
for iks_start_sasl
in -liksemel" >&5
16098 echo $ECHO_N "checking
for iks_start_sasl
in -liksemel...
$ECHO_C" >&6; }
16099 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16100 echo $ECHO_N "(cached
) $ECHO_C" >&6
16102 ac_check_lib_save_LIBS=$LIBS
16103 LIBS="-liksemel ${pbxlibdir} $LIBS"
16104 cat >conftest.$ac_ext <<_ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16111 /* Override any GCC internal prototype to avoid an error.
16112 Use char because int might match the return type of a GCC
16113 builtin and then its argument prototype would still apply. */
16117 char iks_start_sasl ();
16121 return iks_start_sasl ();
16126 rm -f conftest.$ac_objext conftest$ac_exeext
16127 if { (ac_try="$ac_link"
16128 case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_link") 2>conftest.er1
16135 grep -v '^ *+' conftest.er1 >conftest.err
16137 cat conftest.err >&5
16138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16139 (exit $ac_status); } && {
16140 test -z "$ac_c_werror_flag" ||
16141 test ! -s conftest.err
16142 } && test -s conftest$ac_exeext &&
16143 $as_test_x conftest$ac_exeext; then
16144 ac_cv_lib_iksemel_iks_start_sasl=yes
16146 echo "$as_me: failed program was
:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 ac_cv_lib_iksemel_iks_start_sasl=no
16152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16153 conftest$ac_exeext conftest.$ac_ext
16154 LIBS=$ac_check_lib_save_LIBS
16156 { echo "$as_me:$LINENO: result
: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16157 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16158 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16159 AST_IKSEMEL_FOUND=yes
16161 AST_IKSEMEL_FOUND=no
16165 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16166 IKSEMEL_LIB="-liksemel "
16167 IKSEMEL_HEADER_FOUND="1"
16168 if test "x
${IKSEMEL_DIR}" != "x
"; then
16169 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16170 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include
"
16171 if test "xiksemel.h
" != "x
" ; then
16172 as_ac_Header=`echo "ac_cv_header_
${IKSEMEL_DIR}/include
/iksemel.h
" | $as_tr_sh`
16173 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16174 { echo "$as_me:$LINENO: checking
for ${IKSEMEL_DIR}/include
/iksemel.h
" >&5
16175 echo $ECHO_N "checking
for ${IKSEMEL_DIR}/include
/iksemel.h...
$ECHO_C" >&6; }
16176 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16177 echo $ECHO_N "(cached
) $ECHO_C" >&6
16179 ac_res=`eval echo '${'$as_ac_Header'}'`
16180 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16181 echo "${ECHO_T}$ac_res" >&6; }
16183 # Is the header compilable?
16184 { echo "$as_me:$LINENO: checking
${IKSEMEL_DIR}/include
/iksemel.h usability
" >&5
16185 echo $ECHO_N "checking
${IKSEMEL_DIR}/include
/iksemel.h usability...
$ECHO_C" >&6; }
16186 cat >conftest.$ac_ext <<_ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 $ac_includes_default
16193 #include <${IKSEMEL_DIR}/include/iksemel.h>
16195 rm -f conftest.$ac_objext
16196 if { (ac_try="$ac_compile"
16197 case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_compile") 2>conftest.er1
16204 grep -v '^ *+' conftest.er1 >conftest.err
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16208 (exit $ac_status); } && {
16209 test -z "$ac_c_werror_flag" ||
16210 test ! -s conftest.err
16211 } && test -s conftest.$ac_objext; then
16212 ac_header_compiler=yes
16214 echo "$as_me: failed program was
:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16217 ac_header_compiler=no
16220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16221 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16222 echo "${ECHO_T}$ac_header_compiler" >&6; }
16224 # Is the header present?
16225 { echo "$as_me:$LINENO: checking
${IKSEMEL_DIR}/include
/iksemel.h presence
" >&5
16226 echo $ECHO_N "checking
${IKSEMEL_DIR}/include
/iksemel.h presence...
$ECHO_C" >&6; }
16227 cat >conftest.$ac_ext <<_ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16233 #include <${IKSEMEL_DIR}/include/iksemel.h>
16235 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16236 case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16243 grep -v '^ *+' conftest.er1 >conftest.err
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16247 (exit $ac_status); } >/dev/null && {
16248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16249 test ! -s conftest.err
16251 ac_header_preproc=yes
16253 echo "$as_me: failed program was
:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16256 ac_header_preproc=no
16259 rm -f conftest.err conftest.$ac_ext
16260 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16261 echo "${ECHO_T}$ac_header_preproc" >&6; }
16263 # So? What about this header?
16264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16266 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16267 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16268 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: proceeding with the compiler
's result" >&5
16269 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result
" >&2;}
16270 ac_header_preproc=yes
16273 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: present but cannot be compiled
" >&5
16274 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: present but cannot be compiled
" >&2;}
16275 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: check
for missing prerequisite headers?
" >&5
16276 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: check
for missing prerequisite headers?
" >&2;}
16277 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: see the Autoconf documentation
" >&5
16278 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: see the Autoconf documentation
" >&2;}
16279 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16280 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16281 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: proceeding with the preprocessor
's result" >&5
16282 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result
" >&2;}
16283 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: in the future
, the compiler will take precedence
" >&5
16284 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: in the future
, the compiler will take precedence
" >&2;}
16288 { echo "$as_me:$LINENO: checking
for ${IKSEMEL_DIR}/include
/iksemel.h
" >&5
16289 echo $ECHO_N "checking
for ${IKSEMEL_DIR}/include
/iksemel.h...
$ECHO_C" >&6; }
16290 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16291 echo $ECHO_N "(cached
) $ECHO_C" >&6
16293 eval "$as_ac_Header=\
$ac_header_preproc"
16295 ac_res=`eval echo '${'$as_ac_Header'}'`
16296 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16297 echo "${ECHO_T}$ac_res" >&6; }
16300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16301 IKSEMEL_HEADER_FOUND=1
16303 IKSEMEL_HEADER_FOUND=0
16309 if test "xiksemel.h
" != "x
" ; then
16310 if test "${ac_cv_header_iksemel_h+set}" = set; then
16311 { echo "$as_me:$LINENO: checking
for iksemel.h
" >&5
16312 echo $ECHO_N "checking
for iksemel.h...
$ECHO_C" >&6; }
16313 if test "${ac_cv_header_iksemel_h+set}" = set; then
16314 echo $ECHO_N "(cached
) $ECHO_C" >&6
16316 { echo "$as_me:$LINENO: result
: $ac_cv_header_iksemel_h" >&5
16317 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16319 # Is the header compilable?
16320 { echo "$as_me:$LINENO: checking iksemel.h usability
" >&5
16321 echo $ECHO_N "checking iksemel.h usability...
$ECHO_C" >&6; }
16322 cat >conftest.$ac_ext <<_ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 $ac_includes_default
16329 #include <iksemel.h>
16331 rm -f conftest.$ac_objext
16332 if { (ac_try="$ac_compile"
16333 case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_compile") 2>conftest.er1
16340 grep -v '^ *+' conftest.er1 >conftest.err
16342 cat conftest.err >&5
16343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16344 (exit $ac_status); } && {
16345 test -z "$ac_c_werror_flag" ||
16346 test ! -s conftest.err
16347 } && test -s conftest.$ac_objext; then
16348 ac_header_compiler=yes
16350 echo "$as_me: failed program was
:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 ac_header_compiler=no
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16358 echo "${ECHO_T}$ac_header_compiler" >&6; }
16360 # Is the header present?
16361 { echo "$as_me:$LINENO: checking iksemel.h presence
" >&5
16362 echo $ECHO_N "checking iksemel.h presence...
$ECHO_C" >&6; }
16363 cat >conftest.$ac_ext <<_ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 #include <iksemel.h>
16371 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16372 case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16379 grep -v '^ *+' conftest.er1 >conftest.err
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16383 (exit $ac_status); } >/dev/null && {
16384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16387 ac_header_preproc=yes
16389 echo "$as_me: failed program was
:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16392 ac_header_preproc=no
16395 rm -f conftest.err conftest.$ac_ext
16396 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16397 echo "${ECHO_T}$ac_header_preproc" >&6; }
16399 # So? What about this header?
16400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16402 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16403 echo "$as_me: WARNING
: iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16404 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: proceeding with the compiler
's result" >&5
16405 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result
" >&2;}
16406 ac_header_preproc=yes
16409 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: present but cannot be compiled
" >&5
16410 echo "$as_me: WARNING
: iksemel.h
: present but cannot be compiled
" >&2;}
16411 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: check
for missing prerequisite headers?
" >&5
16412 echo "$as_me: WARNING
: iksemel.h
: check
for missing prerequisite headers?
" >&2;}
16413 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: see the Autoconf documentation
" >&5
16414 echo "$as_me: WARNING
: iksemel.h
: see the Autoconf documentation
" >&2;}
16415 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16416 echo "$as_me: WARNING
: iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16417 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: proceeding with the preprocessor
's result" >&5
16418 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result
" >&2;}
16419 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: in the future
, the compiler will take precedence
" >&5
16420 echo "$as_me: WARNING
: iksemel.h
: in the future
, the compiler will take precedence
" >&2;}
16424 { echo "$as_me:$LINENO: checking
for iksemel.h
" >&5
16425 echo $ECHO_N "checking
for iksemel.h...
$ECHO_C" >&6; }
16426 if test "${ac_cv_header_iksemel_h+set}" = set; then
16427 echo $ECHO_N "(cached
) $ECHO_C" >&6
16429 ac_cv_header_iksemel_h=$ac_header_preproc
16431 { echo "$as_me:$LINENO: result
: $ac_cv_header_iksemel_h" >&5
16432 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16435 if test $ac_cv_header_iksemel_h = yes; then
16436 IKSEMEL_HEADER_FOUND=1
16438 IKSEMEL_HEADER_FOUND=0
16444 if test "x
${IKSEMEL_HEADER_FOUND}" = "x0
" ; then
16445 if test ! -z "${IKSEMEL_MANDATORY}" ;
16447 { echo "$as_me:$LINENO: ***" >&5
16448 echo "$as_me: ***" >&6;}
16449 { echo "$as_me:$LINENO: *** It appears that you
do not have the iksemel development package installed.
" >&5
16450 echo "$as_me: *** It appears that you
do not have the iksemel development package installed.
" >&6;}
16451 { echo "$as_me:$LINENO: *** Please
install it to include
${IKSEMEL_DESCRIP} support
, or re-run configure
" >&5
16452 echo "$as_me: *** Please
install it to include
${IKSEMEL_DESCRIP} support
, or re-run configure
" >&6;}
16453 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&5
16454 echo "$as_me: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&6;}
16463 cat >>confdefs.h <<_ACEOF
16464 #define HAVE_IKSEMEL 1
16468 elif test ! -z "${IKSEMEL_MANDATORY}";
16470 { echo "$as_me:$LINENO: ***" >&5
16471 echo "$as_me: ***" >&6;}
16472 { echo "$as_me:$LINENO: *** The
${IKSEMEL_DESCRIP} installation on this system appears to be broken.
" >&5
16473 echo "$as_me: *** The
${IKSEMEL_DESCRIP} installation on this system appears to be broken.
" >&6;}
16474 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
16475 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
16476 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&5
16477 echo "$as_me: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&6;}
16483 if test "${PBX_IKSEMEL}" = 1; then
16485 if test "${USE_GNUTLS}" != "no
"; then
16487 if test "x
${GNUTLS_DIR}" != "x
"; then
16488 if test -d ${GNUTLS_DIR}/lib; then
16489 pbxlibdir="-L${GNUTLS_DIR}/lib
"
16491 pbxlibdir="-L${GNUTLS_DIR}"
16494 { echo "$as_me:$LINENO: checking
for gnutls_bye
in -lgnutls" >&5
16495 echo $ECHO_N "checking
for gnutls_bye
in -lgnutls...
$ECHO_C" >&6; }
16496 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
16497 echo $ECHO_N "(cached
) $ECHO_C" >&6
16499 ac_check_lib_save_LIBS=$LIBS
16500 LIBS="-lgnutls ${pbxlibdir} $LIBS"
16501 cat >conftest.$ac_ext <<_ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16508 /* Override any GCC internal prototype to avoid an error.
16509 Use char because int might match the return type of a GCC
16510 builtin and then its argument prototype would still apply. */
16514 char gnutls_bye ();
16518 return gnutls_bye ();
16523 rm -f conftest.$ac_objext conftest$ac_exeext
16524 if { (ac_try="$ac_link"
16525 case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_link") 2>conftest.er1
16532 grep -v '^ *+' conftest.er1 >conftest.err
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16536 (exit $ac_status); } && {
16537 test -z "$ac_c_werror_flag" ||
16538 test ! -s conftest.err
16539 } && test -s conftest$ac_exeext &&
16540 $as_test_x conftest$ac_exeext; then
16541 ac_cv_lib_gnutls_gnutls_bye=yes
16543 echo "$as_me: failed program was
:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ac_cv_lib_gnutls_gnutls_bye=no
16549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16550 conftest$ac_exeext conftest.$ac_ext
16551 LIBS=$ac_check_lib_save_LIBS
16553 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gnutls_gnutls_bye" >&5
16554 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
16555 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
16556 AST_GNUTLS_FOUND=yes
16558 AST_GNUTLS_FOUND=no
16562 if test "${AST_GNUTLS_FOUND}" = "yes"; then
16563 GNUTLS_LIB="-lgnutls "
16564 GNUTLS_HEADER_FOUND="1"
16565 if test "x
${GNUTLS_DIR}" != "x
"; then
16566 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
16567 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include
"
16568 if test "x
" != "x
" ; then
16569 as_ac_Header=`echo "ac_cv_header_
${GNUTLS_DIR}/include
/" | $as_tr_sh`
16570 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16571 { echo "$as_me:$LINENO: checking
for ${GNUTLS_DIR}/include
/" >&5
16572 echo $ECHO_N "checking
for ${GNUTLS_DIR}/include
/...
$ECHO_C" >&6; }
16573 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16574 echo $ECHO_N "(cached
) $ECHO_C" >&6
16576 ac_res=`eval echo '${'$as_ac_Header'}'`
16577 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16578 echo "${ECHO_T}$ac_res" >&6; }
16580 # Is the header compilable?
16581 { echo "$as_me:$LINENO: checking
${GNUTLS_DIR}/include
/ usability
" >&5
16582 echo $ECHO_N "checking
${GNUTLS_DIR}/include
/ usability...
$ECHO_C" >&6; }
16583 cat >conftest.$ac_ext <<_ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h. */
16589 $ac_includes_default
16590 #include <${GNUTLS_DIR}/include/>
16592 rm -f conftest.$ac_objext
16593 if { (ac_try="$ac_compile"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_compile") 2>conftest.er1
16601 grep -v '^ *+' conftest.er1 >conftest.err
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16605 (exit $ac_status); } && {
16606 test -z "$ac_c_werror_flag" ||
16607 test ! -s conftest.err
16608 } && test -s conftest.$ac_objext; then
16609 ac_header_compiler=yes
16611 echo "$as_me: failed program was
:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 ac_header_compiler=no
16617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16619 echo "${ECHO_T}$ac_header_compiler" >&6; }
16621 # Is the header present?
16622 { echo "$as_me:$LINENO: checking
${GNUTLS_DIR}/include
/ presence
" >&5
16623 echo $ECHO_N "checking
${GNUTLS_DIR}/include
/ presence...
$ECHO_C" >&6; }
16624 cat >conftest.$ac_ext <<_ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 #include <${GNUTLS_DIR}/include/>
16632 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16640 grep -v '^ *+' conftest.er1 >conftest.err
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16644 (exit $ac_status); } >/dev/null && {
16645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16646 test ! -s conftest.err
16648 ac_header_preproc=yes
16650 echo "$as_me: failed program was
:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 ac_header_preproc=no
16656 rm -f conftest.err conftest.$ac_ext
16657 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16658 echo "${ECHO_T}$ac_header_preproc" >&6; }
16660 # So? What about this header?
16661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16663 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&5
16664 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16665 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: proceeding with the compiler
's result" >&5
16666 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result
" >&2;}
16667 ac_header_preproc=yes
16670 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: present but cannot be compiled
" >&5
16671 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: present but cannot be compiled
" >&2;}
16672 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: check
for missing prerequisite headers?
" >&5
16673 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: check
for missing prerequisite headers?
" >&2;}
16674 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: see the Autoconf documentation
" >&5
16675 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: see the Autoconf documentation
" >&2;}
16676 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&5
16677 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&2;}
16678 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: proceeding with the preprocessor
's result" >&5
16679 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result
" >&2;}
16680 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: in the future
, the compiler will take precedence
" >&5
16681 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: in the future
, the compiler will take precedence
" >&2;}
16685 { echo "$as_me:$LINENO: checking
for ${GNUTLS_DIR}/include
/" >&5
16686 echo $ECHO_N "checking
for ${GNUTLS_DIR}/include
/...
$ECHO_C" >&6; }
16687 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16688 echo $ECHO_N "(cached
) $ECHO_C" >&6
16690 eval "$as_ac_Header=\
$ac_header_preproc"
16692 ac_res=`eval echo '${'$as_ac_Header'}'`
16693 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16694 echo "${ECHO_T}$ac_res" >&6; }
16697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16698 GNUTLS_HEADER_FOUND=1
16700 GNUTLS_HEADER_FOUND=0
16706 if test "x
" != "x
" ; then
16707 if test "${ac_cv_header_+set}" = set; then
16708 { echo "$as_me:$LINENO: checking
for " >&5
16709 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
16710 if test "${ac_cv_header_+set}" = set; then
16711 echo $ECHO_N "(cached
) $ECHO_C" >&6
16713 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
16714 echo "${ECHO_T}$ac_cv_header_" >&6; }
16716 # Is the header compilable?
16717 { echo "$as_me:$LINENO: checking usability
" >&5
16718 echo $ECHO_N "checking usability...
$ECHO_C" >&6; }
16719 cat >conftest.$ac_ext <<_ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16725 $ac_includes_default
16728 rm -f conftest.$ac_objext
16729 if { (ac_try="$ac_compile"
16730 case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_compile") 2>conftest.er1
16737 grep -v '^ *+' conftest.er1 >conftest.err
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
16744 } && test -s conftest.$ac_objext; then
16745 ac_header_compiler=yes
16747 echo "$as_me: failed program was
:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16750 ac_header_compiler=no
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16754 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16755 echo "${ECHO_T}$ac_header_compiler" >&6; }
16757 # Is the header present?
16758 { echo "$as_me:$LINENO: checking presence
" >&5
16759 echo $ECHO_N "checking presence...
$ECHO_C" >&6; }
16760 cat >conftest.$ac_ext <<_ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16768 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16769 case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16773 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16776 grep -v '^ *+' conftest.er1 >conftest.err
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16780 (exit $ac_status); } >/dev/null && {
16781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16782 test ! -s conftest.err
16784 ac_header_preproc=yes
16786 echo "$as_me: failed program was
:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ac_header_preproc=no
16792 rm -f conftest.err conftest.$ac_ext
16793 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16794 echo "${ECHO_T}$ac_header_preproc" >&6; }
16796 # So? What about this header?
16797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16799 { echo "$as_me:$LINENO: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&5
16800 echo "$as_me: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16801 { echo "$as_me:$LINENO: WARNING
: : proceeding with the compiler
's result" >&5
16802 echo "$as_me: WARNING: : proceeding with the compiler's result
" >&2;}
16803 ac_header_preproc=yes
16806 { echo "$as_me:$LINENO: WARNING
: : present but cannot be compiled
" >&5
16807 echo "$as_me: WARNING
: : present but cannot be compiled
" >&2;}
16808 { echo "$as_me:$LINENO: WARNING
: : check
for missing prerequisite headers?
" >&5
16809 echo "$as_me: WARNING
: : check
for missing prerequisite headers?
" >&2;}
16810 { echo "$as_me:$LINENO: WARNING
: : see the Autoconf documentation
" >&5
16811 echo "$as_me: WARNING
: : see the Autoconf documentation
" >&2;}
16812 { echo "$as_me:$LINENO: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&5
16813 echo "$as_me: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&2;}
16814 { echo "$as_me:$LINENO: WARNING
: : proceeding with the preprocessor
's result" >&5
16815 echo "$as_me: WARNING: : proceeding with the preprocessor's result
" >&2;}
16816 { echo "$as_me:$LINENO: WARNING
: : in the future
, the compiler will take precedence
" >&5
16817 echo "$as_me: WARNING
: : in the future
, the compiler will take precedence
" >&2;}
16821 { echo "$as_me:$LINENO: checking
for " >&5
16822 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
16823 if test "${ac_cv_header_+set}" = set; then
16824 echo $ECHO_N "(cached
) $ECHO_C" >&6
16826 ac_cv_header_=$ac_header_preproc
16828 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
16829 echo "${ECHO_T}$ac_cv_header_" >&6; }
16832 if test $ac_cv_header_ = yes; then
16833 GNUTLS_HEADER_FOUND=1
16835 GNUTLS_HEADER_FOUND=0
16841 if test "x
${GNUTLS_HEADER_FOUND}" = "x0
" ; then
16842 if test ! -z "${GNUTLS_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 gnutls development package installed.
" >&5
16847 echo "$as_me: *** It appears that you
do not have the gnutls development package installed.
" >&6;}
16848 { echo "$as_me:$LINENO: *** Please
install it to include
${GNUTLS_DESCRIP} support
, or re-run configure
" >&5
16849 echo "$as_me: *** Please
install it to include
${GNUTLS_DESCRIP} support
, or re-run configure
" >&6;}
16850 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&5
16851 echo "$as_me: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&6;}
16860 cat >>confdefs.h <<_ACEOF
16861 #define HAVE_GNUTLS 1
16865 elif test ! -z "${GNUTLS_MANDATORY}";
16867 { echo "$as_me:$LINENO: ***" >&5
16868 echo "$as_me: ***" >&6;}
16869 { echo "$as_me:$LINENO: *** The
${GNUTLS_DESCRIP} installation on this system appears to be broken.
" >&5
16870 echo "$as_me: *** The
${GNUTLS_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-${GNUTLS_OPTION}" >&5
16874 echo "$as_me: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&6;}
16879 if test "${PBX_GNUTLS}" = 1; then
16880 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
16884 if test "${USE_IMAP_TK}" != "no
"; then
16885 if test "${IMAP_TK_DIR}" = ""; then
16886 IMAP_TK_DIR=`pwd`"/..
/imap-2004g
"
16888 { echo "$as_me:$LINENO: checking
for UW IMAP Toolkit c-client library
" >&5
16889 echo $ECHO_N "checking
for UW IMAP Toolkit c-client library...
$ECHO_C" >&6; }
16890 saved_cppflags="${CPPFLAGS}"
16891 saved_libs="${LIBS}"
16892 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
16893 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
16895 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client
"
16896 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
16897 cat >conftest.$ac_ext <<_ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 #include "c-client.h"
16904 void mm_searched (MAILSTREAM *stream,unsigned long number)
16907 void mm_exists (MAILSTREAM *stream,unsigned long number)
16910 void mm_expunged (MAILSTREAM *stream,unsigned long number)
16913 void mm_flags (MAILSTREAM *stream,unsigned long number)
16916 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
16919 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16922 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16925 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
16928 void mm_log (char *string,long errflg)
16931 void mm_dlog (char *string)
16934 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
16937 void mm_critical (MAILSTREAM *stream)
16940 void mm_nocritical (MAILSTREAM *stream)
16943 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
16946 void mm_fatal (char *string)
16953 MAILSTREAM *foo = mail_open(NULL, "", 0);
16960 rm -f conftest.$ac_objext conftest$ac_exeext
16961 if { (ac_try="$ac_link"
16962 case "(($ac_try" in
16963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16964 *) ac_try_echo
=$ac_try;;
16966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967 (eval "$ac_link") 2>conftest.er1
16969 grep -v '^ *+' conftest.er1
>conftest.err
16971 cat conftest.err
>&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } && {
16974 test -z "$ac_c_werror_flag" ||
16975 test ! -s conftest.err
16976 } && test -s conftest
$ac_exeext &&
16977 $as_test_x conftest
$ac_exeext; then
16978 ac_cv_imap_tk
="yes"
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.
$ac_ext >&5
16987 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16988 conftest
$ac_exeext conftest.
$ac_ext
16989 if test "${ac_cv_imap_tk}" = "yes"; then
16990 cat >conftest.
$ac_ext <<_ACEOF
16993 cat confdefs.h
>>conftest.
$ac_ext
16994 cat >>conftest.
$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 #include "c-client.h"
16997 void mm_searched (MAILSTREAM *stream,unsigned long number)
17000 void mm_exists (MAILSTREAM *stream,unsigned long number)
17003 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17006 void mm_flags (MAILSTREAM *stream,unsigned long number)
17009 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17012 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17015 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17018 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17021 void mm_log (char *string,long errflg)
17024 void mm_dlog (char *string)
17027 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17030 void mm_critical (MAILSTREAM *stream)
17033 void mm_nocritical (MAILSTREAM *stream)
17036 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17039 void mm_fatal (char *string)
17046 long check = mail_expunge_full(NULL, "", 0);
17053 rm -f conftest.
$ac_objext conftest
$ac_exeext
17054 if { (ac_try
="$ac_link"
17055 case "(($ac_try" in
17056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_link") 2>conftest.er1
17062 grep -v '^ *+' conftest.er1 >conftest.err
17064 cat conftest.err >&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } && {
17067 test -z "$ac_c_werror_flag" ||
17068 test ! -s conftest.err
17069 } && test -s conftest$ac_exeext &&
17070 $as_test_x conftest$ac_exeext; then
17071 ac_cv_imap_tk2006="yes"
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 ac_cv_imap_tk2006="no"
17080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17081 conftest$ac_exeext conftest.$ac_ext
17083 CPPFLAGS="${saved_cppflags}"
17084 LIBS="${saved_libs}"
17085 if test "${ac_cv_imap_tk}" = "yes"; then
17086 { echo "$as_me:$LINENO: result: yes" >&5
17087 echo "${ECHO_T}yes" >&6; }
17088 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17089 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_IMAP_TK 1
17096 if test "${ac_cv_imap_tk2006}" = "yes"; then
17098 cat >>confdefs.h <<\_ACEOF
17099 #define HAVE_IMAP_TK2006 1
17103 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17104 { echo "$as_me:$LINENO: result: no" >&5
17105 echo "${ECHO_T}no" >&6; }
17106 { echo "$as_me:$LINENO: ***" >&5
17107 echo "$as_me: ***" >&6;}
17108 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
17109 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
17110 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17111 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17112 { echo "$as_me:$LINENO: *** including --without-imap." >&5
17113 echo "$as_me: *** including --without-imap." >&6;}
17116 { echo "$as_me:$LINENO: result: no" >&5
17117 echo "${ECHO_T}no" >&6; }
17122 ac_cpp='$CXXCPP $CPPFLAGS'
17123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17128 if test "${USE_KDE}" != "no"; then
17129 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
17130 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
17131 saved_libs="${LIBS}"
17132 saved_cppflags="${CPPFLAGS}"
17133 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
17134 if test -d ${KDE_DIR}/lib; then
17135 kdelibdir="${KDE_DIR}/lib"
17137 kdelibdir="${KDE_DIR}"
17139 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17142 cat >conftest.$ac_ext <<_ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17148 #include "kcrash.h"
17152 KCrash::defaultCrashHandler(1);
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17162 *) ac_try_echo
=$ac_try;;
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17167 grep -v '^ *+' conftest.er1
>conftest.err
17169 cat conftest.err
>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } && {
17172 test -z "$ac_cxx_werror_flag" ||
17173 test ! -s conftest.err
17174 } && test -s conftest
$ac_exeext &&
17175 $as_test_x conftest
$ac_exeext; then
17176 ac_cv_lib_kde_crash
="yes"
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.
$ac_ext >&5
17181 ac_cv_lib_kde_crash
="no"
17184 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17185 conftest
$ac_exeext conftest.
$ac_ext
17187 LIBS
="${saved_libs}"
17188 CPPFLAGS
="${saved_cppflags}"
17190 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17191 { echo "$as_me:$LINENO: result: yes" >&5
17192 echo "${ECHO_T}yes" >&6; }
17193 KDE_LIB
="-lkdecore -lkdeui"
17194 if test "${KDE_DIR}" != ""; then
17195 KDE_LIB
="-L${kdelibdir} ${KDE_LIB}"
17196 KDE_INCLUDE
="-I${KDE_DIR}/include"
17200 cat >>confdefs.h
<<\_ACEOF
17201 #define HAVE_LIBKDE 1
17204 elif test ! -z "${KDE_MANDATORY}"; then
17205 { echo "$as_me:$LINENO: result: no" >&5
17206 echo "${ECHO_T}no" >&6; }
17207 { echo "$as_me:$LINENO: ***" >&5
17208 echo "$as_me: ***" >&6;}
17209 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
17210 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
17211 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17212 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17213 { echo "$as_me:$LINENO: *** including --without-kde." >&5
17214 echo "$as_me: *** including --without-kde." >&6;}
17217 { echo "$as_me:$LINENO: result: no" >&5
17218 echo "${ECHO_T}no" >&6; }
17221 if test "${PBX_KDE}" = 1; then
17222 if test -n "$ac_tool_prefix"; then
17223 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
17224 set dummy
${ac_tool_prefix}kdeinit
; ac_word
=$2
17225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17227 if test "${ac_cv_path_KDEINIT+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17232 ac_cv_path_KDEINIT
="$KDEINIT" # Let the user override the test with a path.
17235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17236 for as_dir
in $PATH
17239 test -z "$as_dir" && as_dir
=.
17240 for ac_exec_ext
in '' $ac_executable_extensions; do
17241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17242 ac_cv_path_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
17243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17253 KDEINIT
=$ac_cv_path_KDEINIT
17254 if test -n "$KDEINIT"; then
17255 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
17256 echo "${ECHO_T}$KDEINIT" >&6; }
17258 { echo "$as_me:$LINENO: result: no" >&5
17259 echo "${ECHO_T}no" >&6; }
17264 if test -z "$ac_cv_path_KDEINIT"; then
17265 ac_pt_KDEINIT
=$KDEINIT
17266 # Extract the first word of "kdeinit", so it can be a program name with args.
17267 set dummy kdeinit
; ac_word
=$2
17268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17270 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 case $ac_pt_KDEINIT in
17275 ac_cv_path_ac_pt_KDEINIT
="$ac_pt_KDEINIT" # Let the user override the test with a path.
17278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17279 for as_dir
in $PATH
17282 test -z "$as_dir" && as_dir
=.
17283 for ac_exec_ext
in '' $ac_executable_extensions; do
17284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17285 ac_cv_path_ac_pt_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
17286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17296 ac_pt_KDEINIT
=$ac_cv_path_ac_pt_KDEINIT
17297 if test -n "$ac_pt_KDEINIT"; then
17298 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
17299 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17301 { echo "$as_me:$LINENO: result: no" >&5
17302 echo "${ECHO_T}no" >&6; }
17305 if test "x$ac_pt_KDEINIT" = x
; then
17308 case $cross_compiling:$ac_tool_warned in
17310 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17311 whose name does not start with the host triplet. If you think this
17312 configuration is useful to you, please write to autoconf@gnu.org." >&5
17313 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17314 whose name does not start with the host triplet. If you think this
17315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17316 ac_tool_warned
=yes ;;
17318 KDEINIT
=$ac_pt_KDEINIT
17321 KDEINIT
="$ac_cv_path_KDEINIT"
17324 if test ! x
"${KDEINIT}" = xNo
; then
17325 KDEDIR
=$
(${DIRNAME} ${KDEINIT})
17326 KDEDIR
=$
(${DIRNAME} ${KDEDIR})
17332 ac_cpp
='$CPP $CPPFLAGS'
17333 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17334 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17335 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17339 if test "${USE_MISDN}" != "no"; then
17341 if test "x${MISDN_DIR}" != "x"; then
17342 if test -d ${MISDN_DIR}/lib
; then
17343 pbxlibdir
="-L${MISDN_DIR}/lib"
17345 pbxlibdir
="-L${MISDN_DIR}"
17348 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
17349 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
17350 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17353 ac_check_lib_save_LIBS
=$LIBS
17354 LIBS
="-lmISDN ${pbxlibdir} $LIBS"
17355 cat >conftest.
$ac_ext <<_ACEOF
17358 cat confdefs.h
>>conftest.
$ac_ext
17359 cat >>conftest.
$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17368 char mISDN_open ();
17372 return mISDN_open ();
17377 rm -f conftest.
$ac_objext conftest
$ac_exeext
17378 if { (ac_try
="$ac_link"
17379 case "(($ac_try" in
17380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_link") 2>conftest.er1
17386 grep -v '^ *+' conftest.er1 >conftest.err
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } && {
17391 test -z "$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17393 } && test -s conftest$ac_exeext &&
17394 $as_test_x conftest$ac_exeext; then
17395 ac_cv_lib_mISDN_mISDN_open=yes
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17400 ac_cv_lib_mISDN_mISDN_open=no
17403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17404 conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17407 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
17408 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
17409 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
17410 AST_MISDN_FOUND=yes
17416 if test "${AST_MISDN_FOUND}" = "yes"; then
17417 MISDN_LIB="-lmISDN "
17418 MISDN_HEADER_FOUND="1"
17419 if test "x${MISDN_DIR}" != "x"; then
17420 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
17421 MISDN_INCLUDE="-I${MISDN_DIR}/include"
17422 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17423 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" |
$as_tr_sh`
17424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17425 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17426 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 ac_res=`eval echo '${'$as_ac_Header'}'`
17431 { echo "$as_me:$LINENO: result: $ac_res" >&5
17432 echo "${ECHO_T}$ac_res" >&6; }
17434 # Is the header compilable?
17435 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
17436 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17437 cat >conftest.$ac_ext <<_ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17443 $ac_includes_default
17444 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17446 rm -f conftest.$ac_objext
17447 if { (ac_try="$ac_compile"
17448 case "(($ac_try" in
17449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17450 *) ac_try_echo
=$ac_try;;
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_compile") 2>conftest.er1
17455 grep -v '^ *+' conftest.er1
>conftest.err
17457 cat conftest.err
>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } && {
17460 test -z "$ac_c_werror_flag" ||
17461 test ! -s conftest.err
17462 } && test -s conftest.
$ac_objext; then
17463 ac_header_compiler
=yes
17465 echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.
$ac_ext >&5
17468 ac_header_compiler
=no
17471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17473 echo "${ECHO_T}$ac_header_compiler" >&6; }
17475 # Is the header present?
17476 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
17477 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17478 cat >conftest.
$ac_ext <<_ACEOF
17481 cat confdefs.h
>>conftest.
$ac_ext
17482 cat >>conftest.
$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17484 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17486 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17487 case "(($ac_try" in
17488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17494 grep -v '^ *+' conftest.er1 >conftest.err
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } >/dev/null && {
17499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17502 ac_header_preproc=yes
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_header_preproc=no
17510 rm -f conftest.err conftest.$ac_ext
17511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17512 echo "${ECHO_T}$ac_header_preproc" >&6; }
17514 # So? What about this header?
17515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17517 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17518 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17519 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17520 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17521 ac_header_preproc=yes
17524 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17525 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17526 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17527 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17528 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17529 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17530 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17531 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17532 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17533 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17534 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17535 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17539 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17540 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 eval "$as_ac_Header=\$ac_header_preproc"
17546 ac_res=`eval echo '${'$as_ac_Header'}'`
17547 { echo "$as_me:$LINENO: result: $ac_res" >&5
17548 echo "${ECHO_T}$ac_res" >&6; }
17551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17552 MISDN_HEADER_FOUND=1
17554 MISDN_HEADER_FOUND=0
17560 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17561 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17562 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17563 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17564 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17568 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17570 # Is the header compilable?
17571 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
17572 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17573 cat >conftest.$ac_ext <<_ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 $ac_includes_default
17580 #include <mISDNuser/mISDNlib.h>
17582 rm -f conftest.$ac_objext
17583 if { (ac_try="$ac_compile"
17584 case "(($ac_try" in
17585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17586 *) ac_try_echo
=$ac_try;;
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_compile") 2>conftest.er1
17591 grep -v '^ *+' conftest.er1
>conftest.err
17593 cat conftest.err
>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } && {
17596 test -z "$ac_c_werror_flag" ||
17597 test ! -s conftest.err
17598 } && test -s conftest.
$ac_objext; then
17599 ac_header_compiler
=yes
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.
$ac_ext >&5
17604 ac_header_compiler
=no
17607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17609 echo "${ECHO_T}$ac_header_compiler" >&6; }
17611 # Is the header present?
17612 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
17613 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17614 cat >conftest.
$ac_ext <<_ACEOF
17617 cat confdefs.h
>>conftest.
$ac_ext
17618 cat >>conftest.
$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 #include <mISDNuser/mISDNlib.h>
17622 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17623 case "(($ac_try" in
17624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17630 grep -v '^ *+' conftest.er1 >conftest.err
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } >/dev/null && {
17635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17636 test ! -s conftest.err
17638 ac_header_preproc=yes
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 ac_header_preproc=no
17646 rm -f conftest.err conftest.$ac_ext
17647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17648 echo "${ECHO_T}$ac_header_preproc" >&6; }
17650 # So? What about this header?
17651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17653 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17654 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17655 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17656 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17657 ac_header_preproc=yes
17660 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17661 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17662 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17663 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17664 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17665 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17666 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17667 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17668 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17669 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17670 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17671 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17675 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17676 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17677 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
17682 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17683 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17686 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
17687 MISDN_HEADER_FOUND=1
17689 MISDN_HEADER_FOUND=0
17695 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
17696 if test ! -z "${MISDN_MANDATORY}" ;
17698 { echo "$as_me:$LINENO: ***" >&5
17699 echo "$as_me: ***" >&6;}
17700 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
17701 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
17702 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
17703 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
17704 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17705 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17714 cat >>confdefs.h <<_ACEOF
17715 #define HAVE_MISDN 1
17719 elif test ! -z "${MISDN_MANDATORY}";
17721 { echo "$as_me:$LINENO: ***" >&5
17722 echo "$as_me: ***" >&6;}
17723 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
17724 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
17725 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17726 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17727 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17728 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17734 if test "${PBX_MISDN}" = 1; then
17736 if test "${USE_ISDNNET}" != "no"; then
17738 if test "x${ISDNNET_DIR}" != "x"; then
17739 if test -d ${ISDNNET_DIR}/lib; then
17740 pbxlibdir="-L${ISDNNET_DIR}/lib"
17742 pbxlibdir="-L${ISDNNET_DIR}"
17745 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
17746 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
17747 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 ac_check_lib_save_LIBS=$LIBS
17751 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
17752 cat >conftest.$ac_ext <<_ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17759 /* Override any GCC internal prototype to avoid an error.
17760 Use char because int might match the return type of a GCC
17761 builtin and then its argument prototype would still apply. */
17765 char init_manager ();
17769 return init_manager ();
17774 rm -f conftest.$ac_objext conftest$ac_exeext
17775 if { (ac_try="$ac_link"
17776 case "(($ac_try" in
17777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17778 *) ac_try_echo
=$ac_try;;
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_link") 2>conftest.er1
17783 grep -v '^ *+' conftest.er1
>conftest.err
17785 cat conftest.err
>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } && {
17788 test -z "$ac_c_werror_flag" ||
17789 test ! -s conftest.err
17790 } && test -s conftest
$ac_exeext &&
17791 $as_test_x conftest
$ac_exeext; then
17792 ac_cv_lib_isdnnet_init_manager
=yes
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.
$ac_ext >&5
17797 ac_cv_lib_isdnnet_init_manager
=no
17800 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17801 conftest
$ac_exeext conftest.
$ac_ext
17802 LIBS
=$ac_check_lib_save_LIBS
17804 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
17805 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
17806 if test $ac_cv_lib_isdnnet_init_manager = yes; then
17807 AST_ISDNNET_FOUND
=yes
17809 AST_ISDNNET_FOUND
=no
17813 if test "${AST_ISDNNET_FOUND}" = "yes"; then
17814 ISDNNET_LIB
="-lisdnnet -lmISDN -lpthread"
17815 ISDNNET_HEADER_FOUND
="1"
17816 if test "x${ISDNNET_DIR}" != "x"; then
17817 ISDNNET_LIB
="${pbxlibdir} ${ISDNNET_LIB}"
17818 ISDNNET_INCLUDE
="-I${ISDNNET_DIR}/include"
17819 if test "xmISDNuser/isdn_net.h" != "x" ; then
17820 as_ac_Header
=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
17821 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17822 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
17823 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17824 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17825 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 ac_res
=`eval echo '${'$as_ac_Header'}'`
17828 { echo "$as_me:$LINENO: result: $ac_res" >&5
17829 echo "${ECHO_T}$ac_res" >&6; }
17831 # Is the header compilable?
17832 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
17833 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
17834 cat >conftest.
$ac_ext <<_ACEOF
17837 cat confdefs.h
>>conftest.
$ac_ext
17838 cat >>conftest.
$ac_ext <<_ACEOF
17839 /* end confdefs.h. */
17840 $ac_includes_default
17841 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
17843 rm -f conftest.
$ac_objext
17844 if { (ac_try
="$ac_compile"
17845 case "(($ac_try" in
17846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_compile") 2>conftest.er1
17852 grep -v '^ *+' conftest.er1 >conftest.err
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } && {
17857 test -z "$ac_c_werror_flag" ||
17858 test ! -s conftest.err
17859 } && test -s conftest.$ac_objext; then
17860 ac_header_compiler=yes
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 ac_header_compiler=no
17868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17870 echo "${ECHO_T}$ac_header_compiler" >&6; }
17872 # Is the header present?
17873 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
17874 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
17875 cat >conftest.$ac_ext <<_ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
17883 if { (ac_try="$ac_cpp conftest.$ac_ext"
17884 case "(($ac_try" in
17885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17886 *) ac_try_echo
=$ac_try;;
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17891 grep -v '^ *+' conftest.er1
>conftest.err
17893 cat conftest.err
>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } >/dev
/null
&& {
17896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17899 ac_header_preproc
=yes
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.
$ac_ext >&5
17904 ac_header_preproc
=no
17907 rm -f conftest.err conftest.
$ac_ext
17908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17909 echo "${ECHO_T}$ac_header_preproc" >&6; }
17911 # So? What about this header?
17912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17914 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
17915 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17916 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
17917 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
17918 ac_header_preproc
=yes
17921 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
17922 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
17923 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
17924 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
17925 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
17926 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
17927 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
17928 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
17929 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
17930 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
17931 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
17932 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
17936 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
17937 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17938 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 eval "$as_ac_Header=\$ac_header_preproc"
17943 ac_res
=`eval echo '${'$as_ac_Header'}'`
17944 { echo "$as_me:$LINENO: result: $ac_res" >&5
17945 echo "${ECHO_T}$ac_res" >&6; }
17948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17949 ISDNNET_HEADER_FOUND
=1
17951 ISDNNET_HEADER_FOUND
=0
17957 if test "xmISDNuser/isdn_net.h" != "x" ; then
17958 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
17959 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
17960 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17961 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
17965 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
17967 # Is the header compilable?
17968 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
17969 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
17970 cat >conftest.
$ac_ext <<_ACEOF
17973 cat confdefs.h
>>conftest.
$ac_ext
17974 cat >>conftest.
$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17976 $ac_includes_default
17977 #include <mISDNuser/isdn_net.h>
17979 rm -f conftest.
$ac_objext
17980 if { (ac_try
="$ac_compile"
17981 case "(($ac_try" in
17982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_compile") 2>conftest.er1
17988 grep -v '^ *+' conftest.er1 >conftest.err
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } && {
17993 test -z "$ac_c_werror_flag" ||
17994 test ! -s conftest.err
17995 } && test -s conftest.$ac_objext; then
17996 ac_header_compiler=yes
17998 echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18001 ac_header_compiler=no
18004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18006 echo "${ECHO_T}$ac_header_compiler" >&6; }
18008 # Is the header present?
18009 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
18010 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18011 cat >conftest.$ac_ext <<_ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 #include <mISDNuser/isdn_net.h>
18019 if { (ac_try="$ac_cpp conftest.$ac_ext"
18020 case "(($ac_try" in
18021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18022 *) ac_try_echo
=$ac_try;;
18024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18027 grep -v '^ *+' conftest.er1
>conftest.err
18029 cat conftest.err
>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } >/dev
/null
&& {
18032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18033 test ! -s conftest.err
18035 ac_header_preproc
=yes
18037 echo "$as_me: failed program was:" >&5
18038 sed 's/^/| /' conftest.
$ac_ext >&5
18040 ac_header_preproc
=no
18043 rm -f conftest.err conftest.
$ac_ext
18044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18045 echo "${ECHO_T}$ac_header_preproc" >&6; }
18047 # So? What about this header?
18048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18050 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18051 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18052 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18053 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18054 ac_header_preproc
=yes
18057 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18058 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18059 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18060 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18061 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18062 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18063 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18064 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18065 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18066 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18067 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18068 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18072 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18073 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18074 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18077 ac_cv_header_mISDNuser_isdn_net_h
=$ac_header_preproc
18079 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18080 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18083 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18084 ISDNNET_HEADER_FOUND
=1
18086 ISDNNET_HEADER_FOUND
=0
18092 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
18093 if test ! -z "${ISDNNET_MANDATORY}" ;
18095 { echo "$as_me:$LINENO: ***" >&5
18096 echo "$as_me: ***" >&6;}
18097 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
18098 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
18099 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
18100 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
18101 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18102 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18111 cat >>confdefs.h
<<_ACEOF
18112 #define HAVE_ISDNNET 1
18116 elif test ! -z "${ISDNNET_MANDATORY}";
18118 { echo "$as_me:$LINENO: ***" >&5
18119 echo "$as_me: ***" >&6;}
18120 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
18121 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
18122 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18123 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18124 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18125 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18131 if test "${USE_SUPPSERV}" != "no"; then
18133 if test "x${SUPPSERV_DIR}" != "x"; then
18134 if test -d ${SUPPSERV_DIR}/lib
; then
18135 pbxlibdir
="-L${SUPPSERV_DIR}/lib"
18137 pbxlibdir
="-L${SUPPSERV_DIR}"
18140 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
18141 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
18142 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18143 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 ac_check_lib_save_LIBS
=$LIBS
18146 LIBS
="-lsuppserv ${pbxlibdir} $LIBS"
18147 cat >conftest.
$ac_ext <<_ACEOF
18150 cat confdefs.h
>>conftest.
$ac_ext
18151 cat >>conftest.
$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18154 /* Override any GCC internal prototype to avoid an error.
18155 Use char because int might match the return type of a GCC
18156 builtin and then its argument prototype would still apply. */
18164 return encodeFac ();
18169 rm -f conftest.
$ac_objext conftest
$ac_exeext
18170 if { (ac_try
="$ac_link"
18171 case "(($ac_try" in
18172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_link") 2>conftest.er1
18178 grep -v '^ *+' conftest.er1 >conftest.err
18180 cat conftest.err >&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } && {
18183 test -z "$ac_c_werror_flag" ||
18184 test ! -s conftest.err
18185 } && test -s conftest$ac_exeext &&
18186 $as_test_x conftest$ac_exeext; then
18187 ac_cv_lib_suppserv_encodeFac=yes
18189 echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18192 ac_cv_lib_suppserv_encodeFac=no
18195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18196 conftest$ac_exeext conftest.$ac_ext
18197 LIBS=$ac_check_lib_save_LIBS
18199 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
18200 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18201 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18202 AST_SUPPSERV_FOUND=yes
18204 AST_SUPPSERV_FOUND=no
18208 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18209 SUPPSERV_LIB="-lsuppserv "
18210 SUPPSERV_HEADER_FOUND="1"
18211 if test "x${SUPPSERV_DIR}" != "x"; then
18212 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18213 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
18214 if test "xmISDNuser/suppserv.h" != "x" ; then
18215 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" |
$as_tr_sh`
18216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18217 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18218 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18220 echo $ECHO_N "(cached) $ECHO_C" >&6
18222 ac_res=`eval echo '${'$as_ac_Header'}'`
18223 { echo "$as_me:$LINENO: result: $ac_res" >&5
18224 echo "${ECHO_T}$ac_res" >&6; }
18226 # Is the header compilable?
18227 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
18228 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18229 cat >conftest.$ac_ext <<_ACEOF
18232 cat confdefs.h >>conftest.$ac_ext
18233 cat >>conftest.$ac_ext <<_ACEOF
18234 /* end confdefs.h. */
18235 $ac_includes_default
18236 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18238 rm -f conftest.$ac_objext
18239 if { (ac_try="$ac_compile"
18240 case "(($ac_try" in
18241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18242 *) ac_try_echo
=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_compile") 2>conftest.er1
18247 grep -v '^ *+' conftest.er1
>conftest.err
18249 cat conftest.err
>&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest.
$ac_objext; then
18255 ac_header_compiler
=yes
18257 echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.
$ac_ext >&5
18260 ac_header_compiler
=no
18263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18265 echo "${ECHO_T}$ac_header_compiler" >&6; }
18267 # Is the header present?
18268 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
18269 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18270 cat >conftest.
$ac_ext <<_ACEOF
18273 cat confdefs.h
>>conftest.
$ac_ext
18274 cat >>conftest.
$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18278 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18279 case "(($ac_try" in
18280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18281 *) ac_try_echo=$ac_try;;
18283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18286 grep -v '^ *+' conftest.er1 >conftest.err
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } >/dev/null && {
18291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18292 test ! -s conftest.err
18294 ac_header_preproc=yes
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18299 ac_header_preproc=no
18302 rm -f conftest.err conftest.$ac_ext
18303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18304 echo "${ECHO_T}$ac_header_preproc" >&6; }
18306 # So? What about this header?
18307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18309 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18310 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18311 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18312 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18313 ac_header_preproc=yes
18316 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
18317 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18318 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18319 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18320 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18321 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18322 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18323 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18324 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18325 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18326 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18327 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18331 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18332 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 eval "$as_ac_Header=\$ac_header_preproc"
18338 ac_res=`eval echo '${'$as_ac_Header'}'`
18339 { echo "$as_me:$LINENO: result: $ac_res" >&5
18340 echo "${ECHO_T}$ac_res" >&6; }
18343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18344 SUPPSERV_HEADER_FOUND=1
18346 SUPPSERV_HEADER_FOUND=0
18352 if test "xmISDNuser/suppserv.h" != "x" ; then
18353 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18354 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18355 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18356 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18357 echo $ECHO_N "(cached) $ECHO_C" >&6
18359 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18360 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18362 # Is the header compilable?
18363 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
18364 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18365 cat >conftest.$ac_ext <<_ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 $ac_includes_default
18372 #include <mISDNuser/suppserv.h>
18374 rm -f conftest.$ac_objext
18375 if { (ac_try="$ac_compile"
18376 case "(($ac_try" in
18377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18378 *) ac_try_echo
=$ac_try;;
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_compile") 2>conftest.er1
18383 grep -v '^ *+' conftest.er1
>conftest.err
18385 cat conftest.err
>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } && {
18388 test -z "$ac_c_werror_flag" ||
18389 test ! -s conftest.err
18390 } && test -s conftest.
$ac_objext; then
18391 ac_header_compiler
=yes
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.
$ac_ext >&5
18396 ac_header_compiler
=no
18399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18401 echo "${ECHO_T}$ac_header_compiler" >&6; }
18403 # Is the header present?
18404 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
18405 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18406 cat >conftest.
$ac_ext <<_ACEOF
18409 cat confdefs.h
>>conftest.
$ac_ext
18410 cat >>conftest.
$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18412 #include <mISDNuser/suppserv.h>
18414 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18415 case "(($ac_try" in
18416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18422 grep -v '^ *+' conftest.er1 >conftest.err
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } >/dev/null && {
18427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18428 test ! -s conftest.err
18430 ac_header_preproc=yes
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 ac_header_preproc=no
18438 rm -f conftest.err conftest.$ac_ext
18439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18440 echo "${ECHO_T}$ac_header_preproc" >&6; }
18442 # So? What about this header?
18443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18445 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18446 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18447 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18448 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18449 ac_header_preproc=yes
18452 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
18453 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18454 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18455 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18456 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18457 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18458 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18459 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18460 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18461 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18462 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18463 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18467 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18468 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18469 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
18472 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
18474 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18475 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18478 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
18479 SUPPSERV_HEADER_FOUND=1
18481 SUPPSERV_HEADER_FOUND=0
18487 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
18488 if test ! -z "${SUPPSERV_MANDATORY}" ;
18490 { echo "$as_me:$LINENO: ***" >&5
18491 echo "$as_me: ***" >&6;}
18492 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
18493 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
18494 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
18495 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
18496 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18497 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18501 SUPPSERV_INCLUDE=""
18506 cat >>confdefs.h <<_ACEOF
18507 #define HAVE_SUPPSERV 1
18511 elif test ! -z "${SUPPSERV_MANDATORY}";
18513 { echo "$as_me:$LINENO: ***" >&5
18514 echo "$as_me: ***" >&6;}
18515 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
18516 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
18517 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18518 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18519 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18520 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18528 if test "${USE_NBS}" != "no"; then
18530 if test "x${NBS_DIR}" != "x"; then
18531 if test -d ${NBS_DIR}/lib; then
18532 pbxlibdir="-L${NBS_DIR}/lib"
18534 pbxlibdir="-L${NBS_DIR}"
18537 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
18538 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
18539 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
18542 ac_check_lib_save_LIBS=$LIBS
18543 LIBS="-lnbs ${pbxlibdir} $LIBS"
18544 cat >conftest.$ac_ext <<_ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18551 /* Override any GCC internal prototype to avoid an error.
18552 Use char because int might match the return type of a GCC
18553 builtin and then its argument prototype would still apply. */
18557 char nbs_connect ();
18561 return nbs_connect ();
18566 rm -f conftest.$ac_objext conftest$ac_exeext
18567 if { (ac_try="$ac_link"
18568 case "(($ac_try" in
18569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18570 *) ac_try_echo
=$ac_try;;
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_link") 2>conftest.er1
18575 grep -v '^ *+' conftest.er1
>conftest.err
18577 cat conftest.err
>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } && {
18580 test -z "$ac_c_werror_flag" ||
18581 test ! -s conftest.err
18582 } && test -s conftest
$ac_exeext &&
18583 $as_test_x conftest
$ac_exeext; then
18584 ac_cv_lib_nbs_nbs_connect
=yes
18586 echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.
$ac_ext >&5
18589 ac_cv_lib_nbs_nbs_connect
=no
18592 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18593 conftest
$ac_exeext conftest.
$ac_ext
18594 LIBS
=$ac_check_lib_save_LIBS
18596 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
18597 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
18598 if test $ac_cv_lib_nbs_nbs_connect = yes; then
18605 if test "${AST_NBS_FOUND}" = "yes"; then
18607 NBS_HEADER_FOUND
="1"
18608 if test "x${NBS_DIR}" != "x"; then
18609 NBS_LIB
="${pbxlibdir} ${NBS_LIB}"
18610 NBS_INCLUDE
="-I${NBS_DIR}/include"
18611 if test "xnbs.h" != "x" ; then
18612 as_ac_Header
=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
18613 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18614 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18615 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
18616 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 ac_res
=`eval echo '${'$as_ac_Header'}'`
18620 { echo "$as_me:$LINENO: result: $ac_res" >&5
18621 echo "${ECHO_T}$ac_res" >&6; }
18623 # Is the header compilable?
18624 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
18625 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
18626 cat >conftest.
$ac_ext <<_ACEOF
18629 cat confdefs.h
>>conftest.
$ac_ext
18630 cat >>conftest.
$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 $ac_includes_default
18633 #include <${NBS_DIR}/include/nbs.h>
18635 rm -f conftest.
$ac_objext
18636 if { (ac_try
="$ac_compile"
18637 case "(($ac_try" in
18638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_compile") 2>conftest.er1
18644 grep -v '^ *+' conftest.er1 >conftest.err
18646 cat conftest.err >&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } && {
18649 test -z "$ac_c_werror_flag" ||
18650 test ! -s conftest.err
18651 } && test -s conftest.$ac_objext; then
18652 ac_header_compiler=yes
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18657 ac_header_compiler=no
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18662 echo "${ECHO_T}$ac_header_compiler" >&6; }
18664 # Is the header present?
18665 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
18666 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
18667 cat >conftest.$ac_ext <<_ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673 #include <${NBS_DIR}/include/nbs.h>
18675 if { (ac_try="$ac_cpp conftest.$ac_ext"
18676 case "(($ac_try" in
18677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18678 *) ac_try_echo
=$ac_try;;
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18683 grep -v '^ *+' conftest.er1
>conftest.err
18685 cat conftest.err
>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } >/dev
/null
&& {
18688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18689 test ! -s conftest.err
18691 ac_header_preproc
=yes
18693 echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.
$ac_ext >&5
18696 ac_header_preproc
=no
18699 rm -f conftest.err conftest.
$ac_ext
18700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18701 echo "${ECHO_T}$ac_header_preproc" >&6; }
18703 # So? What about this header?
18704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18706 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
18707 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18708 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
18709 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
18710 ac_header_preproc
=yes
18713 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
18714 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
18716 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
18717 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
18718 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
18719 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
18720 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
18721 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
18722 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
18723 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
18724 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
18728 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18729 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
18730 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18733 eval "$as_ac_Header=\$ac_header_preproc"
18735 ac_res
=`eval echo '${'$as_ac_Header'}'`
18736 { echo "$as_me:$LINENO: result: $ac_res" >&5
18737 echo "${ECHO_T}$ac_res" >&6; }
18740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18749 if test "xnbs.h" != "x" ; then
18750 if test "${ac_cv_header_nbs_h+set}" = set; then
18751 { echo "$as_me:$LINENO: checking for nbs.h" >&5
18752 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
18753 if test "${ac_cv_header_nbs_h+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
18757 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
18759 # Is the header compilable?
18760 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
18761 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
18762 cat >conftest.
$ac_ext <<_ACEOF
18765 cat confdefs.h
>>conftest.
$ac_ext
18766 cat >>conftest.
$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 $ac_includes_default
18771 rm -f conftest.
$ac_objext
18772 if { (ac_try
="$ac_compile"
18773 case "(($ac_try" in
18774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_compile") 2>conftest.er1
18780 grep -v '^ *+' conftest.er1 >conftest.err
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } && {
18785 test -z "$ac_c_werror_flag" ||
18786 test ! -s conftest.err
18787 } && test -s conftest.$ac_objext; then
18788 ac_header_compiler=yes
18790 echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18793 ac_header_compiler=no
18796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18798 echo "${ECHO_T}$ac_header_compiler" >&6; }
18800 # Is the header present?
18801 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
18802 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
18803 cat >conftest.$ac_ext <<_ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18811 if { (ac_try="$ac_cpp conftest.$ac_ext"
18812 case "(($ac_try" in
18813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18814 *) ac_try_echo
=$ac_try;;
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18819 grep -v '^ *+' conftest.er1
>conftest.err
18821 cat conftest.err
>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } >/dev
/null
&& {
18824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18825 test ! -s conftest.err
18827 ac_header_preproc
=yes
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.
$ac_ext >&5
18832 ac_header_preproc
=no
18835 rm -f conftest.err conftest.
$ac_ext
18836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18837 echo "${ECHO_T}$ac_header_preproc" >&6; }
18839 # So? What about this header?
18840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18842 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
18843 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18844 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
18845 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
18846 ac_header_preproc
=yes
18849 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
18850 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
18851 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
18852 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
18853 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
18854 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
18855 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
18856 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
18857 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
18858 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
18859 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
18860 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
18864 { echo "$as_me:$LINENO: checking for nbs.h" >&5
18865 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
18866 if test "${ac_cv_header_nbs_h+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18869 ac_cv_header_nbs_h
=$ac_header_preproc
18871 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
18872 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
18875 if test $ac_cv_header_nbs_h = yes; then
18884 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
18885 if test ! -z "${NBS_MANDATORY}" ;
18887 { echo "$as_me:$LINENO: ***" >&5
18888 echo "$as_me: ***" >&6;}
18889 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
18890 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
18891 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
18892 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
18893 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
18894 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
18903 cat >>confdefs.h
<<_ACEOF
18908 elif test ! -z "${NBS_MANDATORY}";
18910 { echo "$as_me:$LINENO: ***" >&5
18911 echo "$as_me: ***" >&6;}
18912 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
18913 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
18914 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18915 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18916 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
18917 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
18924 if test "${USE_NCURSES}" != "no"; then
18926 if test "x${NCURSES_DIR}" != "x"; then
18927 if test -d ${NCURSES_DIR}/lib
; then
18928 pbxlibdir
="-L${NCURSES_DIR}/lib"
18930 pbxlibdir
="-L${NCURSES_DIR}"
18933 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
18934 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
18935 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18938 ac_check_lib_save_LIBS
=$LIBS
18939 LIBS
="-lncurses ${pbxlibdir} $LIBS"
18940 cat >conftest.
$ac_ext <<_ACEOF
18943 cat confdefs.h
>>conftest.
$ac_ext
18944 cat >>conftest.
$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18947 /* Override any GCC internal prototype to avoid an error.
18948 Use char because int might match the return type of a GCC
18949 builtin and then its argument prototype would still apply. */
18962 rm -f conftest.
$ac_objext conftest
$ac_exeext
18963 if { (ac_try
="$ac_link"
18964 case "(($ac_try" in
18965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_link") 2>conftest.er1
18971 grep -v '^ *+' conftest.er1 >conftest.err
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } && {
18976 test -z "$ac_c_werror_flag" ||
18977 test ! -s conftest.err
18978 } && test -s conftest$ac_exeext &&
18979 $as_test_x conftest$ac_exeext; then
18980 ac_cv_lib_ncurses_initscr=yes
18982 echo "$as_me: failed program was:" >&5
18983 sed 's/^/| /' conftest.$ac_ext >&5
18985 ac_cv_lib_ncurses_initscr=no
18988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18989 conftest$ac_exeext conftest.$ac_ext
18990 LIBS=$ac_check_lib_save_LIBS
18992 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
18993 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
18994 if test $ac_cv_lib_ncurses_initscr = yes; then
18995 AST_NCURSES_FOUND=yes
18997 AST_NCURSES_FOUND=no
19001 if test "${AST_NCURSES_FOUND}" = "yes"; then
19002 NCURSES_LIB="-lncurses "
19003 NCURSES_HEADER_FOUND="1"
19004 if test "x${NCURSES_DIR}" != "x"; then
19005 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19006 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
19007 if test "xcurses.h" != "x" ; then
19008 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" |
$as_tr_sh`
19009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19010 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19011 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19015 ac_res=`eval echo '${'$as_ac_Header'}'`
19016 { echo "$as_me:$LINENO: result: $ac_res" >&5
19017 echo "${ECHO_T}$ac_res" >&6; }
19019 # Is the header compilable?
19020 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
19021 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
19022 cat >conftest.$ac_ext <<_ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h. */
19028 $ac_includes_default
19029 #include <${NCURSES_DIR}/include/curses.h>
19031 rm -f conftest.$ac_objext
19032 if { (ac_try="$ac_compile"
19033 case "(($ac_try" in
19034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19035 *) ac_try_echo
=$ac_try;;
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_compile") 2>conftest.er1
19040 grep -v '^ *+' conftest.er1
>conftest.err
19042 cat conftest.err
>&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest.
$ac_objext; then
19048 ac_header_compiler
=yes
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.
$ac_ext >&5
19053 ac_header_compiler
=no
19056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19058 echo "${ECHO_T}$ac_header_compiler" >&6; }
19060 # Is the header present?
19061 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
19062 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
19063 cat >conftest.
$ac_ext <<_ACEOF
19066 cat confdefs.h
>>conftest.
$ac_ext
19067 cat >>conftest.
$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19069 #include <${NCURSES_DIR}/include/curses.h>
19071 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19072 case "(($ac_try" in
19073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } >/dev/null && {
19084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19085 test ! -s conftest.err
19087 ac_header_preproc=yes
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 ac_header_preproc=no
19095 rm -f conftest.err conftest.$ac_ext
19096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19097 echo "${ECHO_T}$ac_header_preproc" >&6; }
19099 # So? What about this header?
19100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19102 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19103 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19104 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
19105 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
19106 ac_header_preproc=yes
19109 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
19110 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
19111 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
19112 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
19113 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
19114 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
19115 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
19116 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19117 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
19118 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
19119 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
19120 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
19124 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19125 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 eval "$as_ac_Header=\$ac_header_preproc"
19131 ac_res=`eval echo '${'$as_ac_Header'}'`
19132 { echo "$as_me:$LINENO: result: $ac_res" >&5
19133 echo "${ECHO_T}$ac_res" >&6; }
19136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19137 NCURSES_HEADER_FOUND=1
19139 NCURSES_HEADER_FOUND=0
19145 if test "xcurses.h" != "x" ; then
19146 if test "${ac_cv_header_curses_h+set}" = set; then
19147 { echo "$as_me:$LINENO: checking for curses.h" >&5
19148 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19149 if test "${ac_cv_header_curses_h+set}" = set; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19153 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19155 # Is the header compilable?
19156 { echo "$as_me:$LINENO: checking curses.h usability" >&5
19157 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
19158 cat >conftest.$ac_ext <<_ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 $ac_includes_default
19165 #include <curses.h>
19167 rm -f conftest.$ac_objext
19168 if { (ac_try="$ac_compile"
19169 case "(($ac_try" in
19170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19171 *) ac_try_echo
=$ac_try;;
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_compile") 2>conftest.er1
19176 grep -v '^ *+' conftest.er1
>conftest.err
19178 cat conftest.err
>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } && {
19181 test -z "$ac_c_werror_flag" ||
19182 test ! -s conftest.err
19183 } && test -s conftest.
$ac_objext; then
19184 ac_header_compiler
=yes
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.
$ac_ext >&5
19189 ac_header_compiler
=no
19192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19194 echo "${ECHO_T}$ac_header_compiler" >&6; }
19196 # Is the header present?
19197 { echo "$as_me:$LINENO: checking curses.h presence" >&5
19198 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
19199 cat >conftest.
$ac_ext <<_ACEOF
19202 cat confdefs.h
>>conftest.
$ac_ext
19203 cat >>conftest.
$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19205 #include <curses.h>
19207 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19208 case "(($ac_try" in
19209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19215 grep -v '^ *+' conftest.er1 >conftest.err
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } >/dev/null && {
19220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19221 test ! -s conftest.err
19223 ac_header_preproc=yes
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19228 ac_header_preproc=no
19231 rm -f conftest.err conftest.$ac_ext
19232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19233 echo "${ECHO_T}$ac_header_preproc" >&6; }
19235 # So? What about this header?
19236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19238 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19239 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19240 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19241 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19242 ac_header_preproc=yes
19245 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19246 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19247 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19248 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19249 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19250 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19251 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19252 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19253 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19254 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19255 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19256 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19260 { echo "$as_me:$LINENO: checking for curses.h" >&5
19261 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19262 if test "${ac_cv_header_curses_h+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19265 ac_cv_header_curses_h=$ac_header_preproc
19267 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19268 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19271 if test $ac_cv_header_curses_h = yes; then
19272 NCURSES_HEADER_FOUND=1
19274 NCURSES_HEADER_FOUND=0
19280 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
19281 if test ! -z "${NCURSES_MANDATORY}" ;
19283 { echo "$as_me:$LINENO: ***" >&5
19284 echo "$as_me: ***" >&6;}
19285 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
19286 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
19287 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
19288 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
19289 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19290 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19299 cat >>confdefs.h <<_ACEOF
19300 #define HAVE_NCURSES 1
19304 elif test ! -z "${NCURSES_MANDATORY}";
19306 { echo "$as_me:$LINENO: ***" >&5
19307 echo "$as_me: ***" >&6;}
19308 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
19309 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19310 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19311 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19312 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19313 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19320 if test "${USE_NETSNMP}" != "no"; then
19321 if test "x${NETSNMP_DIR}" != "x"; then
19322 if test -n "$ac_tool_prefix"; then
19323 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19324 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19327 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19330 case $NETSNMP_CONFIG in
19332 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19336 for as_dir in ${NETSNMP_DIR}/bin
19339 test -z "$as_dir" && as_dir=.
19340 for ac_exec_ext in '' $ac_executable_extensions; do
19341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19342 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19353 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19354 if test -n "$NETSNMP_CONFIG"; then
19355 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19356 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19358 { echo "$as_me:$LINENO: result: no" >&5
19359 echo "${ECHO_T}no" >&6; }
19364 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19365 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19366 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19367 set dummy net-snmp-config; ac_word=$2
19368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19370 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 case $ac_pt_NETSNMP_CONFIG in
19375 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19379 for as_dir in ${NETSNMP_DIR}/bin
19382 test -z "$as_dir" && as_dir=.
19383 for ac_exec_ext in '' $ac_executable_extensions; do
19384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19385 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19396 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19397 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19398 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19399 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19401 { echo "$as_me:$LINENO: result: no" >&5
19402 echo "${ECHO_T}no" >&6; }
19405 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19406 NETSNMP_CONFIG="No"
19408 case $cross_compiling:$ac_tool_warned in
19410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19411 whose name does not start with the host triplet. If you think this
19412 configuration is useful to you, please write to autoconf@gnu.org." >&5
19413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19414 whose name does not start with the host triplet. If you think this
19415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19416 ac_tool_warned=yes ;;
19418 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19421 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19424 if test x"${NETSNMP_CONFIG}" = xNo; then
19425 { echo "$as_me:$LINENO: ***" >&5
19426 echo "$as_me: ***" >&6;}
19427 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
19428 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
19429 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
19430 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
19431 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19432 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19433 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19434 echo "$as_me: *** including --without-netsnmp" >&6;}
19438 if test -n "$ac_tool_prefix"; then
19439 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19440 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19443 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19446 case $NETSNMP_CONFIG in
19448 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19452 for as_dir in $PATH
19455 test -z "$as_dir" && as_dir=.
19456 for ac_exec_ext in '' $ac_executable_extensions; do
19457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19458 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19469 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19470 if test -n "$NETSNMP_CONFIG"; then
19471 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19472 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19474 { echo "$as_me:$LINENO: result: no" >&5
19475 echo "${ECHO_T}no" >&6; }
19480 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19481 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19482 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19483 set dummy net-snmp-config; ac_word=$2
19484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19486 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 case $ac_pt_NETSNMP_CONFIG in
19491 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19495 for as_dir in $PATH
19498 test -z "$as_dir" && as_dir=.
19499 for ac_exec_ext in '' $ac_executable_extensions; do
19500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19501 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19512 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19513 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19514 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19515 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19517 { echo "$as_me:$LINENO: result: no" >&5
19518 echo "${ECHO_T}no" >&6; }
19521 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19522 NETSNMP_CONFIG="No"
19524 case $cross_compiling:$ac_tool_warned in
19526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19527 whose name does not start with the host triplet. If you think this
19528 configuration is useful to you, please write to autoconf@gnu.org." >&5
19529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19530 whose name does not start with the host triplet. If you think this
19531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19532 ac_tool_warned=yes ;;
19534 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19537 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19542 if test x"${NETSNMP_CONFIG}" != xNo; then
19543 NETSNMP_libs=`net-snmp-config
--agent-libs`
19545 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
19546 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
19547 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 ac_check_lib_save_LIBS=$LIBS
19551 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
19552 cat >conftest.$ac_ext <<_ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19559 /* Override any GCC internal prototype to avoid an error.
19560 Use char because int might match the return type of a GCC
19561 builtin and then its argument prototype would still apply. */
19565 char snmp_register_callback ();
19569 return snmp_register_callback ();
19574 rm -f conftest.$ac_objext conftest$ac_exeext
19575 if { (ac_try="$ac_link"
19576 case "(($ac_try" in
19577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19578 *) ac_try_echo
=$ac_try;;
19580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581 (eval "$ac_link") 2>conftest.er1
19583 grep -v '^ *+' conftest.er1
>conftest.err
19585 cat conftest.err
>&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); } && {
19588 test -z "$ac_c_werror_flag" ||
19589 test ! -s conftest.err
19590 } && test -s conftest
$ac_exeext &&
19591 $as_test_x conftest
$ac_exeext; then
19592 ac_cv_lib_netsnmp_snmp_register_callback
=yes
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.
$ac_ext >&5
19597 ac_cv_lib_netsnmp_snmp_register_callback
=no
19600 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19601 conftest
$ac_exeext conftest.
$ac_ext
19602 LIBS
=$ac_check_lib_save_LIBS
19604 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
19605 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
19606 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
19608 cat >>confdefs.h
<<_ACEOF
19609 #define HAVE_NETSNMP 1
19615 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
19616 NETSNMP_LIB
="${NETSNMP_libs}"
19618 elif test ! -z "${NETSNMP_MANDATORY}";
19620 { echo "$as_me:$LINENO: ***" >&5
19621 echo "$as_me: ***" >&6;}
19622 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
19623 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
19624 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19625 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19626 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19627 echo "$as_me: *** including --without-netsnmp" >&6;}
19630 elif test ! -z "${NETSNMP_MANDATORY}";
19632 { echo "$as_me:$LINENO: ***" >&5
19633 echo "$as_me: ***" >&6;}
19634 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
19635 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
19636 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19637 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19638 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19639 echo "$as_me: *** including --without-netsnmp" >&6;}
19644 if test "${USE_NEWT}" != "no"; then
19646 if test "x${NEWT_DIR}" != "x"; then
19647 if test -d ${NEWT_DIR}/lib
; then
19648 pbxlibdir
="-L${NEWT_DIR}/lib"
19650 pbxlibdir
="-L${NEWT_DIR}"
19653 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
19654 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
19655 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 ac_check_lib_save_LIBS
=$LIBS
19659 LIBS
="-lnewt ${pbxlibdir} $LIBS"
19660 cat >conftest.
$ac_ext <<_ACEOF
19663 cat confdefs.h
>>conftest.
$ac_ext
19664 cat >>conftest.
$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19667 /* Override any GCC internal prototype to avoid an error.
19668 Use char because int might match the return type of a GCC
19669 builtin and then its argument prototype would still apply. */
19677 return newtBell ();
19682 rm -f conftest.
$ac_objext conftest
$ac_exeext
19683 if { (ac_try
="$ac_link"
19684 case "(($ac_try" in
19685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_link") 2>conftest.er1
19691 grep -v '^ *+' conftest.er1 >conftest.err
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest$ac_exeext &&
19699 $as_test_x conftest$ac_exeext; then
19700 ac_cv_lib_newt_newtBell=yes
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 ac_cv_lib_newt_newtBell=no
19708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19709 conftest$ac_exeext conftest.$ac_ext
19710 LIBS=$ac_check_lib_save_LIBS
19712 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
19713 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
19714 if test $ac_cv_lib_newt_newtBell = yes; then
19721 if test "${AST_NEWT_FOUND}" = "yes"; then
19723 NEWT_HEADER_FOUND="1"
19724 if test "x${NEWT_DIR}" != "x"; then
19725 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
19726 NEWT_INCLUDE="-I${NEWT_DIR}/include"
19727 if test "xnewt.h" != "x" ; then
19728 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" |
$as_tr_sh`
19729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19730 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
19731 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
19732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 ac_res=`eval echo '${'$as_ac_Header'}'`
19736 { echo "$as_me:$LINENO: result: $ac_res" >&5
19737 echo "${ECHO_T}$ac_res" >&6; }
19739 # Is the header compilable?
19740 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
19741 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
19742 cat >conftest.$ac_ext <<_ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 $ac_includes_default
19749 #include <${NEWT_DIR}/include/newt.h>
19751 rm -f conftest.$ac_objext
19752 if { (ac_try="$ac_compile"
19753 case "(($ac_try" in
19754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19755 *) ac_try_echo
=$ac_try;;
19757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758 (eval "$ac_compile") 2>conftest.er1
19760 grep -v '^ *+' conftest.er1
>conftest.err
19762 cat conftest.err
>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } && {
19765 test -z "$ac_c_werror_flag" ||
19766 test ! -s conftest.err
19767 } && test -s conftest.
$ac_objext; then
19768 ac_header_compiler
=yes
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.
$ac_ext >&5
19773 ac_header_compiler
=no
19776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19778 echo "${ECHO_T}$ac_header_compiler" >&6; }
19780 # Is the header present?
19781 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
19782 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
19783 cat >conftest.
$ac_ext <<_ACEOF
19786 cat confdefs.h
>>conftest.
$ac_ext
19787 cat >>conftest.
$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789 #include <${NEWT_DIR}/include/newt.h>
19791 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19792 case "(($ac_try" in
19793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19799 grep -v '^ *+' conftest.er1 >conftest.err
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } >/dev/null && {
19804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19805 test ! -s conftest.err
19807 ac_header_preproc=yes
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19812 ac_header_preproc=no
19815 rm -f conftest.err conftest.$ac_ext
19816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19817 echo "${ECHO_T}$ac_header_preproc" >&6; }
19819 # So? What about this header?
19820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19822 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
19823 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
19825 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
19826 ac_header_preproc=yes
19829 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
19830 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
19831 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
19832 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
19833 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
19834 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
19836 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
19838 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
19840 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
19844 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
19845 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
19846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19849 eval "$as_ac_Header=\$ac_header_preproc"
19851 ac_res=`eval echo '${'$as_ac_Header'}'`
19852 { echo "$as_me:$LINENO: result: $ac_res" >&5
19853 echo "${ECHO_T}$ac_res" >&6; }
19856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19857 NEWT_HEADER_FOUND=1
19859 NEWT_HEADER_FOUND=0
19865 if test "xnewt.h" != "x" ; then
19866 if test "${ac_cv_header_newt_h+set}" = set; then
19867 { echo "$as_me:$LINENO: checking for newt.h" >&5
19868 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
19869 if test "${ac_cv_header_newt_h+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
19873 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
19875 # Is the header compilable?
19876 { echo "$as_me:$LINENO: checking newt.h usability" >&5
19877 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
19878 cat >conftest.$ac_ext <<_ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19884 $ac_includes_default
19887 rm -f conftest.$ac_objext
19888 if { (ac_try="$ac_compile"
19889 case "(($ac_try" in
19890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19891 *) ac_try_echo
=$ac_try;;
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_compile") 2>conftest.er1
19896 grep -v '^ *+' conftest.er1
>conftest.err
19898 cat conftest.err
>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } && {
19901 test -z "$ac_c_werror_flag" ||
19902 test ! -s conftest.err
19903 } && test -s conftest.
$ac_objext; then
19904 ac_header_compiler
=yes
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.
$ac_ext >&5
19909 ac_header_compiler
=no
19912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19914 echo "${ECHO_T}$ac_header_compiler" >&6; }
19916 # Is the header present?
19917 { echo "$as_me:$LINENO: checking newt.h presence" >&5
19918 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
19919 cat >conftest.
$ac_ext <<_ACEOF
19922 cat confdefs.h
>>conftest.
$ac_ext
19923 cat >>conftest.
$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19927 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19928 case "(($ac_try" in
19929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19935 grep -v '^ *+' conftest.er1 >conftest.err
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } >/dev/null && {
19940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19941 test ! -s conftest.err
19943 ac_header_preproc=yes
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 ac_header_preproc=no
19951 rm -f conftest.err conftest.$ac_ext
19952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19953 echo "${ECHO_T}$ac_header_preproc" >&6; }
19955 # So? What about this header?
19956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19958 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
19959 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19960 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
19961 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
19962 ac_header_preproc=yes
19965 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
19966 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
19967 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
19968 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
19969 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
19970 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
19972 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
19973 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
19974 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
19975 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
19976 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
19980 { echo "$as_me:$LINENO: checking for newt.h" >&5
19981 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
19982 if test "${ac_cv_header_newt_h+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 ac_cv_header_newt_h=$ac_header_preproc
19987 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
19988 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
19991 if test $ac_cv_header_newt_h = yes; then
19992 NEWT_HEADER_FOUND=1
19994 NEWT_HEADER_FOUND=0
20000 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
20001 if test ! -z "${NEWT_MANDATORY}" ;
20003 { echo "$as_me:$LINENO: ***" >&5
20004 echo "$as_me: ***" >&6;}
20005 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
20006 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
20007 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
20008 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
20009 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20010 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20019 cat >>confdefs.h <<_ACEOF
20020 #define HAVE_NEWT 1
20024 elif test ! -z "${NEWT_MANDATORY}";
20026 { echo "$as_me:$LINENO: ***" >&5
20027 echo "$as_me: ***" >&6;}
20028 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
20029 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
20030 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20031 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20032 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20033 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20040 if test "${USE_UNIXODBC}" != "no"; then
20042 if test "x${UNIXODBC_DIR}" != "x"; then
20043 if test -d ${UNIXODBC_DIR}/lib; then
20044 pbxlibdir="-L${UNIXODBC_DIR}/lib"
20046 pbxlibdir="-L${UNIXODBC_DIR}"
20049 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
20050 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
20051 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20054 ac_check_lib_save_LIBS=$LIBS
20055 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20056 cat >conftest.$ac_ext <<_ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20063 /* Override any GCC internal prototype to avoid an error.
20064 Use char because int might match the return type of a GCC
20065 builtin and then its argument prototype would still apply. */
20069 char SQLConnect ();
20073 return SQLConnect ();
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20082 *) ac_try_echo
=$ac_try;;
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_link") 2>conftest.er1
20087 grep -v '^ *+' conftest.er1
>conftest.err
20089 cat conftest.err
>&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && {
20092 test -z "$ac_c_werror_flag" ||
20093 test ! -s conftest.err
20094 } && test -s conftest
$ac_exeext &&
20095 $as_test_x conftest
$ac_exeext; then
20096 ac_cv_lib_odbc_SQLConnect
=yes
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.
$ac_ext >&5
20101 ac_cv_lib_odbc_SQLConnect
=no
20104 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20105 conftest
$ac_exeext conftest.
$ac_ext
20106 LIBS
=$ac_check_lib_save_LIBS
20108 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
20109 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
20110 if test $ac_cv_lib_odbc_SQLConnect = yes; then
20111 AST_UNIXODBC_FOUND
=yes
20113 AST_UNIXODBC_FOUND
=no
20117 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
20118 UNIXODBC_LIB
="-lodbc -lltdl"
20119 UNIXODBC_HEADER_FOUND
="1"
20120 if test "x${UNIXODBC_DIR}" != "x"; then
20121 UNIXODBC_LIB
="${pbxlibdir} ${UNIXODBC_LIB}"
20122 UNIXODBC_INCLUDE
="-I${UNIXODBC_DIR}/include"
20123 if test "xsql.h" != "x" ; then
20124 as_ac_Header
=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
20125 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20126 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20127 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20128 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
20131 ac_res
=`eval echo '${'$as_ac_Header'}'`
20132 { echo "$as_me:$LINENO: result: $ac_res" >&5
20133 echo "${ECHO_T}$ac_res" >&6; }
20135 # Is the header compilable?
20136 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
20137 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
20138 cat >conftest.
$ac_ext <<_ACEOF
20141 cat confdefs.h
>>conftest.
$ac_ext
20142 cat >>conftest.
$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20144 $ac_includes_default
20145 #include <${UNIXODBC_DIR}/include/sql.h>
20147 rm -f conftest.
$ac_objext
20148 if { (ac_try
="$ac_compile"
20149 case "(($ac_try" in
20150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_compile") 2>conftest.er1
20156 grep -v '^ *+' conftest.er1 >conftest.err
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } && {
20161 test -z "$ac_c_werror_flag" ||
20162 test ! -s conftest.err
20163 } && test -s conftest.$ac_objext; then
20164 ac_header_compiler=yes
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 ac_header_compiler=no
20172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20174 echo "${ECHO_T}$ac_header_compiler" >&6; }
20176 # Is the header present?
20177 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
20178 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
20179 cat >conftest.$ac_ext <<_ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20185 #include <${UNIXODBC_DIR}/include/sql.h>
20187 if { (ac_try="$ac_cpp conftest.$ac_ext"
20188 case "(($ac_try" in
20189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20190 *) ac_try_echo
=$ac_try;;
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20195 grep -v '^ *+' conftest.er1
>conftest.err
20197 cat conftest.err
>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } >/dev
/null
&& {
20200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20201 test ! -s conftest.err
20203 ac_header_preproc
=yes
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.
$ac_ext >&5
20208 ac_header_preproc
=no
20211 rm -f conftest.err conftest.
$ac_ext
20212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20213 echo "${ECHO_T}$ac_header_preproc" >&6; }
20215 # So? What about this header?
20216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20218 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20219 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
20221 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
20222 ac_header_preproc
=yes
20225 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
20226 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
20228 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
20230 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
20232 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20233 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
20234 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
20235 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
20236 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
20240 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20241 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20242 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20245 eval "$as_ac_Header=\$ac_header_preproc"
20247 ac_res
=`eval echo '${'$as_ac_Header'}'`
20248 { echo "$as_me:$LINENO: result: $ac_res" >&5
20249 echo "${ECHO_T}$ac_res" >&6; }
20252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20253 UNIXODBC_HEADER_FOUND
=1
20255 UNIXODBC_HEADER_FOUND
=0
20261 if test "xsql.h" != "x" ; then
20262 if test "${ac_cv_header_sql_h+set}" = set; then
20263 { echo "$as_me:$LINENO: checking for sql.h" >&5
20264 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20265 if test "${ac_cv_header_sql_h+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20269 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20271 # Is the header compilable?
20272 { echo "$as_me:$LINENO: checking sql.h usability" >&5
20273 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
20274 cat >conftest.
$ac_ext <<_ACEOF
20277 cat confdefs.h
>>conftest.
$ac_ext
20278 cat >>conftest.
$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 $ac_includes_default
20283 rm -f conftest.
$ac_objext
20284 if { (ac_try
="$ac_compile"
20285 case "(($ac_try" in
20286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_compile") 2>conftest.er1
20292 grep -v '^ *+' conftest.er1 >conftest.err
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } && {
20297 test -z "$ac_c_werror_flag" ||
20298 test ! -s conftest.err
20299 } && test -s conftest.$ac_objext; then
20300 ac_header_compiler=yes
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 ac_header_compiler=no
20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20310 echo "${ECHO_T}$ac_header_compiler" >&6; }
20312 # Is the header present?
20313 { echo "$as_me:$LINENO: checking sql.h presence" >&5
20314 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20323 if { (ac_try="$ac_cpp conftest.$ac_ext"
20324 case "(($ac_try" in
20325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20326 *) ac_try_echo
=$ac_try;;
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20331 grep -v '^ *+' conftest.er1
>conftest.err
20333 cat conftest.err
>&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } >/dev
/null
&& {
20336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20339 ac_header_preproc
=yes
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.
$ac_ext >&5
20344 ac_header_preproc
=no
20347 rm -f conftest.err conftest.
$ac_ext
20348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20349 echo "${ECHO_T}$ac_header_preproc" >&6; }
20351 # So? What about this header?
20352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20354 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20355 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
20357 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
20358 ac_header_preproc
=yes
20361 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
20362 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
20363 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
20364 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
20365 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
20366 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
20367 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
20368 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20369 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
20370 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
20372 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
20376 { echo "$as_me:$LINENO: checking for sql.h" >&5
20377 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20378 if test "${ac_cv_header_sql_h+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 ac_cv_header_sql_h
=$ac_header_preproc
20383 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20384 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20387 if test $ac_cv_header_sql_h = yes; then
20388 UNIXODBC_HEADER_FOUND
=1
20390 UNIXODBC_HEADER_FOUND
=0
20396 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
20397 if test ! -z "${UNIXODBC_MANDATORY}" ;
20399 { echo "$as_me:$LINENO: ***" >&5
20400 echo "$as_me: ***" >&6;}
20401 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
20402 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
20403 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
20404 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
20405 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20406 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20410 UNIXODBC_INCLUDE
=""
20415 cat >>confdefs.h
<<_ACEOF
20416 #define HAVE_UNIXODBC 1
20420 elif test ! -z "${UNIXODBC_MANDATORY}";
20422 { echo "$as_me:$LINENO: ***" >&5
20423 echo "$as_me: ***" >&6;}
20424 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
20425 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
20426 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20427 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20428 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20429 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20436 if test "${USE_OGG}" != "no"; then
20438 if test "x${OGG_DIR}" != "x"; then
20439 if test -d ${OGG_DIR}/lib
; then
20440 pbxlibdir
="-L${OGG_DIR}/lib"
20442 pbxlibdir
="-L${OGG_DIR}"
20445 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
20446 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
20447 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
20448 echo $ECHO_N "(cached) $ECHO_C" >&6
20450 ac_check_lib_save_LIBS
=$LIBS
20451 LIBS
="-logg ${pbxlibdir} $LIBS"
20452 cat >conftest.
$ac_ext <<_ACEOF
20455 cat confdefs.h
>>conftest.
$ac_ext
20456 cat >>conftest.
$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20459 /* Override any GCC internal prototype to avoid an error.
20460 Use char because int might match the return type of a GCC
20461 builtin and then its argument prototype would still apply. */
20465 char ogg_sync_init ();
20469 return ogg_sync_init ();
20474 rm -f conftest.
$ac_objext conftest
$ac_exeext
20475 if { (ac_try
="$ac_link"
20476 case "(($ac_try" in
20477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_link") 2>conftest.er1
20483 grep -v '^ *+' conftest.er1 >conftest.err
20485 cat conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } && {
20488 test -z "$ac_c_werror_flag" ||
20489 test ! -s conftest.err
20490 } && test -s conftest$ac_exeext &&
20491 $as_test_x conftest$ac_exeext; then
20492 ac_cv_lib_ogg_ogg_sync_init=yes
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_cv_lib_ogg_ogg_sync_init=no
20500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20501 conftest$ac_exeext conftest.$ac_ext
20502 LIBS=$ac_check_lib_save_LIBS
20504 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
20505 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
20506 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
20513 if test "${AST_OGG_FOUND}" = "yes"; then
20515 OGG_HEADER_FOUND="1"
20516 if test "x${OGG_DIR}" != "x"; then
20517 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
20518 OGG_INCLUDE="-I${OGG_DIR}/include"
20519 if test "x" != "x" ; then
20520 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" |
$as_tr_sh`
20521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20522 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
20523 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
20524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 ac_res=`eval echo '${'$as_ac_Header'}'`
20528 { echo "$as_me:$LINENO: result: $ac_res" >&5
20529 echo "${ECHO_T}$ac_res" >&6; }
20531 # Is the header compilable?
20532 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
20533 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
20534 cat >conftest.$ac_ext <<_ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 $ac_includes_default
20541 #include <${OGG_DIR}/include/>
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20547 *) ac_try_echo
=$ac_try;;
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_compile") 2>conftest.er1
20552 grep -v '^ *+' conftest.er1
>conftest.err
20554 cat conftest.err
>&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest.
$ac_objext; then
20560 ac_header_compiler
=yes
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.
$ac_ext >&5
20565 ac_header_compiler
=no
20568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20570 echo "${ECHO_T}$ac_header_compiler" >&6; }
20572 # Is the header present?
20573 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
20574 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
20575 cat >conftest.
$ac_ext <<_ACEOF
20578 cat confdefs.h
>>conftest.
$ac_ext
20579 cat >>conftest.
$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 #include <${OGG_DIR}/include/>
20583 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20584 case "(($ac_try" in
20585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20591 grep -v '^ *+' conftest.er1 >conftest.err
20593 cat conftest.err >&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } >/dev/null && {
20596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20597 test ! -s conftest.err
20599 ac_header_preproc=yes
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20604 ac_header_preproc=no
20607 rm -f conftest.err conftest.$ac_ext
20608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20609 echo "${ECHO_T}$ac_header_preproc" >&6; }
20611 # So? What about this header?
20612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20614 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
20615 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
20616 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
20617 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
20618 ac_header_preproc=yes
20621 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
20622 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
20623 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
20624 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
20626 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
20627 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
20628 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
20629 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
20630 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
20631 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
20632 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
20636 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
20637 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
20638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20641 eval "$as_ac_Header=\$ac_header_preproc"
20643 ac_res=`eval echo '${'$as_ac_Header'}'`
20644 { echo "$as_me:$LINENO: result: $ac_res" >&5
20645 echo "${ECHO_T}$ac_res" >&6; }
20648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20657 if test "x" != "x" ; then
20658 if test "${ac_cv_header_+set}" = set; then
20659 { echo "$as_me:$LINENO: checking for " >&5
20660 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20661 if test "${ac_cv_header_+set}" = set; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20664 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20665 echo "${ECHO_T}$ac_cv_header_" >&6; }
20667 # Is the header compilable?
20668 { echo "$as_me:$LINENO: checking usability" >&5
20669 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20670 cat >conftest.$ac_ext <<_ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 $ac_includes_default
20679 rm -f conftest.$ac_objext
20680 if { (ac_try="$ac_compile"
20681 case "(($ac_try" in
20682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20683 *) ac_try_echo
=$ac_try;;
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_compile") 2>conftest.er1
20688 grep -v '^ *+' conftest.er1
>conftest.err
20690 cat conftest.err
>&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } && {
20693 test -z "$ac_c_werror_flag" ||
20694 test ! -s conftest.err
20695 } && test -s conftest.
$ac_objext; then
20696 ac_header_compiler
=yes
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.
$ac_ext >&5
20701 ac_header_compiler
=no
20704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20706 echo "${ECHO_T}$ac_header_compiler" >&6; }
20708 # Is the header present?
20709 { echo "$as_me:$LINENO: checking presence" >&5
20710 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20711 cat >conftest.
$ac_ext <<_ACEOF
20714 cat confdefs.h
>>conftest.
$ac_ext
20715 cat >>conftest.
$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20719 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20720 case "(($ac_try" in
20721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20727 grep -v '^ *+' conftest.er1 >conftest.err
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } >/dev/null && {
20732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20735 ac_header_preproc=yes
20737 echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20740 ac_header_preproc=no
20743 rm -f conftest.err conftest.$ac_ext
20744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20745 echo "${ECHO_T}$ac_header_preproc" >&6; }
20747 # So? What about this header?
20748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20750 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20751 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20753 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20754 ac_header_preproc=yes
20757 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20758 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20759 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20760 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20761 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20762 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20763 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20764 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20765 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20766 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20767 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20768 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20772 { echo "$as_me:$LINENO: checking for " >&5
20773 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20774 if test "${ac_cv_header_+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20777 ac_cv_header_=$ac_header_preproc
20779 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20780 echo "${ECHO_T}$ac_cv_header_" >&6; }
20783 if test $ac_cv_header_ = yes; then
20792 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
20793 if test ! -z "${OGG_MANDATORY}" ;
20795 { echo "$as_me:$LINENO: ***" >&5
20796 echo "$as_me: ***" >&6;}
20797 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
20798 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
20799 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
20800 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
20801 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
20802 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
20811 cat >>confdefs.h <<_ACEOF
20816 elif test ! -z "${OGG_MANDATORY}";
20818 { echo "$as_me:$LINENO: ***" >&5
20819 echo "$as_me: ***" >&6;}
20820 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
20821 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
20822 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20823 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20824 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
20825 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
20832 if test "${USE_OSPTK}" != "no"; then
20834 if test "x${OSPTK_DIR}" != "x"; then
20835 if test -d ${OSPTK_DIR}/lib; then
20836 pbxlibdir="-L${OSPTK_DIR}/lib"
20838 pbxlibdir="-L${OSPTK_DIR}"
20841 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
20842 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
20843 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 ac_check_lib_save_LIBS=$LIBS
20847 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
20848 cat >conftest.$ac_ext <<_ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20855 /* Override any GCC internal prototype to avoid an error.
20856 Use char because int might match the return type of a GCC
20857 builtin and then its argument prototype would still apply. */
20861 char OSPPCryptoDecrypt ();
20865 return OSPPCryptoDecrypt ();
20870 rm -f conftest.$ac_objext conftest$ac_exeext
20871 if { (ac_try="$ac_link"
20872 case "(($ac_try" in
20873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20874 *) ac_try_echo
=$ac_try;;
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_link") 2>conftest.er1
20879 grep -v '^ *+' conftest.er1
>conftest.err
20881 cat conftest.err
>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } && {
20884 test -z "$ac_c_werror_flag" ||
20885 test ! -s conftest.err
20886 } && test -s conftest
$ac_exeext &&
20887 $as_test_x conftest
$ac_exeext; then
20888 ac_cv_lib_osptk_OSPPCryptoDecrypt
=yes
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.
$ac_ext >&5
20893 ac_cv_lib_osptk_OSPPCryptoDecrypt
=no
20896 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20897 conftest
$ac_exeext conftest.
$ac_ext
20898 LIBS
=$ac_check_lib_save_LIBS
20900 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
20901 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
20902 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
20903 AST_OSPTK_FOUND
=yes
20909 if test "${AST_OSPTK_FOUND}" = "yes"; then
20910 OSPTK_LIB
="-losptk -lcrypto -lssl"
20911 OSPTK_HEADER_FOUND
="1"
20912 if test "x${OSPTK_DIR}" != "x"; then
20913 OSPTK_LIB
="${pbxlibdir} ${OSPTK_LIB}"
20914 OSPTK_INCLUDE
="-I${OSPTK_DIR}/include"
20915 if test "xosp/osp.h" != "x" ; then
20916 as_ac_Header
=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
20917 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20918 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
20919 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
20920 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20921 echo $ECHO_N "(cached) $ECHO_C" >&6
20923 ac_res
=`eval echo '${'$as_ac_Header'}'`
20924 { echo "$as_me:$LINENO: result: $ac_res" >&5
20925 echo "${ECHO_T}$ac_res" >&6; }
20927 # Is the header compilable?
20928 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
20929 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
20930 cat >conftest.
$ac_ext <<_ACEOF
20933 cat confdefs.h
>>conftest.
$ac_ext
20934 cat >>conftest.
$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20936 $ac_includes_default
20937 #include <${OSPTK_DIR}/include/osp/osp.h>
20939 rm -f conftest.
$ac_objext
20940 if { (ac_try
="$ac_compile"
20941 case "(($ac_try" in
20942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_compile") 2>conftest.er1
20948 grep -v '^ *+' conftest.er1 >conftest.err
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } && {
20953 test -z "$ac_c_werror_flag" ||
20954 test ! -s conftest.err
20955 } && test -s conftest.$ac_objext; then
20956 ac_header_compiler=yes
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20961 ac_header_compiler=no
20964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20966 echo "${ECHO_T}$ac_header_compiler" >&6; }
20968 # Is the header present?
20969 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
20970 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
20971 cat >conftest.$ac_ext <<_ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 #include <${OSPTK_DIR}/include/osp/osp.h>
20979 if { (ac_try="$ac_cpp conftest.$ac_ext"
20980 case "(($ac_try" in
20981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20982 *) ac_try_echo
=$ac_try;;
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20987 grep -v '^ *+' conftest.er1
>conftest.err
20989 cat conftest.err
>&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } >/dev
/null
&& {
20992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20993 test ! -s conftest.err
20995 ac_header_preproc
=yes
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.
$ac_ext >&5
21000 ac_header_preproc
=no
21003 rm -f conftest.err conftest.
$ac_ext
21004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21005 echo "${ECHO_T}$ac_header_preproc" >&6; }
21007 # So? What about this header?
21008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21010 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21011 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21012 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
21013 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
21014 ac_header_preproc
=yes
21017 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
21018 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
21019 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
21020 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
21021 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
21022 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
21023 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21024 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21025 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
21026 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
21027 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
21028 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
21032 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21033 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21034 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 eval "$as_ac_Header=\$ac_header_preproc"
21039 ac_res
=`eval echo '${'$as_ac_Header'}'`
21040 { echo "$as_me:$LINENO: result: $ac_res" >&5
21041 echo "${ECHO_T}$ac_res" >&6; }
21044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21045 OSPTK_HEADER_FOUND
=1
21047 OSPTK_HEADER_FOUND
=0
21053 if test "xosp/osp.h" != "x" ; then
21054 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21055 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21056 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21057 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21061 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21063 # Is the header compilable?
21064 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
21065 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
21066 cat >conftest.
$ac_ext <<_ACEOF
21069 cat confdefs.h
>>conftest.
$ac_ext
21070 cat >>conftest.
$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21072 $ac_includes_default
21073 #include <osp/osp.h>
21075 rm -f conftest.
$ac_objext
21076 if { (ac_try
="$ac_compile"
21077 case "(($ac_try" in
21078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_compile") 2>conftest.er1
21084 grep -v '^ *+' conftest.er1 >conftest.err
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest.$ac_objext; then
21092 ac_header_compiler=yes
21094 echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 ac_header_compiler=no
21100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21102 echo "${ECHO_T}$ac_header_compiler" >&6; }
21104 # Is the header present?
21105 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
21106 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
21107 cat >conftest.$ac_ext <<_ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 #include <osp/osp.h>
21115 if { (ac_try="$ac_cpp conftest.$ac_ext"
21116 case "(($ac_try" in
21117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21118 *) ac_try_echo
=$ac_try;;
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21123 grep -v '^ *+' conftest.er1
>conftest.err
21125 cat conftest.err
>&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } >/dev
/null
&& {
21128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21129 test ! -s conftest.err
21131 ac_header_preproc
=yes
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.
$ac_ext >&5
21136 ac_header_preproc
=no
21139 rm -f conftest.err conftest.
$ac_ext
21140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21141 echo "${ECHO_T}$ac_header_preproc" >&6; }
21143 # So? What about this header?
21144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21146 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21147 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
21149 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
21150 ac_header_preproc
=yes
21153 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
21154 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
21156 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
21158 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21160 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
21162 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
21163 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
21164 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
21168 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21169 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21170 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21173 ac_cv_header_osp_osp_h
=$ac_header_preproc
21175 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21176 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21179 if test $ac_cv_header_osp_osp_h = yes; then
21180 OSPTK_HEADER_FOUND
=1
21182 OSPTK_HEADER_FOUND
=0
21188 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
21189 if test ! -z "${OSPTK_MANDATORY}" ;
21191 { echo "$as_me:$LINENO: ***" >&5
21192 echo "$as_me: ***" >&6;}
21193 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
21194 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
21195 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
21196 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
21197 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21198 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21207 cat >>confdefs.h
<<_ACEOF
21208 #define HAVE_OSPTK 1
21212 elif test ! -z "${OSPTK_MANDATORY}";
21214 { echo "$as_me:$LINENO: ***" >&5
21215 echo "$as_me: ***" >&6;}
21216 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
21217 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
21218 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21219 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21220 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21221 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21228 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21229 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21230 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21231 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21234 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21235 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21237 # Is the header compilable?
21238 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
21239 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
21240 cat >conftest.
$ac_ext <<_ACEOF
21243 cat confdefs.h
>>conftest.
$ac_ext
21244 cat >>conftest.
$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21246 $ac_includes_default
21247 #include <linux/soundcard.h>
21249 rm -f conftest.
$ac_objext
21250 if { (ac_try
="$ac_compile"
21251 case "(($ac_try" in
21252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_compile") 2>conftest.er1
21258 grep -v '^ *+' conftest.er1 >conftest.err
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } && {
21263 test -z "$ac_c_werror_flag" ||
21264 test ! -s conftest.err
21265 } && test -s conftest.$ac_objext; then
21266 ac_header_compiler=yes
21268 echo "$as_me: failed program was:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21271 ac_header_compiler=no
21274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21276 echo "${ECHO_T}$ac_header_compiler" >&6; }
21278 # Is the header present?
21279 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
21280 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
21281 cat >conftest.$ac_ext <<_ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 #include <linux/soundcard.h>
21289 if { (ac_try="$ac_cpp conftest.$ac_ext"
21290 case "(($ac_try" in
21291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21292 *) ac_try_echo
=$ac_try;;
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21297 grep -v '^ *+' conftest.er1
>conftest.err
21299 cat conftest.err
>&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } >/dev
/null
&& {
21302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21305 ac_header_preproc
=yes
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.
$ac_ext >&5
21310 ac_header_preproc
=no
21313 rm -f conftest.err conftest.
$ac_ext
21314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21315 echo "${ECHO_T}$ac_header_preproc" >&6; }
21317 # So? What about this header?
21318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21320 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21321 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
21323 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
21324 ac_header_preproc
=yes
21327 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
21328 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
21329 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
21330 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
21331 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
21332 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
21333 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21334 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
21336 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
21338 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
21342 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21343 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21344 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21347 ac_cv_header_linux_soundcard_h
=$ac_header_preproc
21349 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21350 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21353 if test $ac_cv_header_linux_soundcard_h = yes; then
21357 cat >>confdefs.h
<<_ACEOF
21365 if test "$PBX_OSS" = "0"; then
21366 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21367 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21368 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21369 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21370 echo $ECHO_N "(cached) $ECHO_C" >&6
21372 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21373 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21375 # Is the header compilable?
21376 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
21377 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
21378 cat >conftest.
$ac_ext <<_ACEOF
21381 cat confdefs.h
>>conftest.
$ac_ext
21382 cat >>conftest.
$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21384 $ac_includes_default
21385 #include <sys/soundcard.h>
21387 rm -f conftest.
$ac_objext
21388 if { (ac_try
="$ac_compile"
21389 case "(($ac_try" in
21390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_compile") 2>conftest.er1
21396 grep -v '^ *+' conftest.er1 >conftest.err
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && {
21401 test -z "$ac_c_werror_flag" ||
21402 test ! -s conftest.err
21403 } && test -s conftest.$ac_objext; then
21404 ac_header_compiler=yes
21406 echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21409 ac_header_compiler=no
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21414 echo "${ECHO_T}$ac_header_compiler" >&6; }
21416 # Is the header present?
21417 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
21418 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
21419 cat >conftest.$ac_ext <<_ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21425 #include <sys/soundcard.h>
21427 if { (ac_try="$ac_cpp conftest.$ac_ext"
21428 case "(($ac_try" in
21429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21430 *) ac_try_echo
=$ac_try;;
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21435 grep -v '^ *+' conftest.er1
>conftest.err
21437 cat conftest.err
>&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } >/dev
/null
&& {
21440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21443 ac_header_preproc
=yes
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.
$ac_ext >&5
21448 ac_header_preproc
=no
21451 rm -f conftest.err conftest.
$ac_ext
21452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21453 echo "${ECHO_T}$ac_header_preproc" >&6; }
21455 # So? What about this header?
21456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21458 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21459 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
21461 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
21462 ac_header_preproc
=yes
21465 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
21466 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
21467 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
21468 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
21470 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
21471 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21472 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21473 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
21474 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
21475 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
21476 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
21480 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21481 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21482 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21485 ac_cv_header_sys_soundcard_h
=$ac_header_preproc
21487 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21488 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21491 if test $ac_cv_header_sys_soundcard_h = yes; then
21495 cat >>confdefs.h
<<_ACEOF
21504 if test "$PBX_OSS" = "0"; then
21506 if test "${USE_OSS}" != "no"; then
21508 if test "x${OSS_DIR}" != "x"; then
21509 if test -d ${OSS_DIR}/lib
; then
21510 pbxlibdir
="-L${OSS_DIR}/lib"
21512 pbxlibdir
="-L${OSS_DIR}"
21515 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
21516 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
21517 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21520 ac_check_lib_save_LIBS
=$LIBS
21521 LIBS
="-lossaudio ${pbxlibdir} $LIBS"
21522 cat >conftest.
$ac_ext <<_ACEOF
21525 cat confdefs.h
>>conftest.
$ac_ext
21526 cat >>conftest.
$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21529 /* Override any GCC internal prototype to avoid an error.
21530 Use char because int might match the return type of a GCC
21531 builtin and then its argument prototype would still apply. */
21535 char oss_ioctl_mixer ();
21539 return oss_ioctl_mixer ();
21544 rm -f conftest.
$ac_objext conftest
$ac_exeext
21545 if { (ac_try
="$ac_link"
21546 case "(($ac_try" in
21547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_link") 2>conftest.er1
21553 grep -v '^ *+' conftest.er1 >conftest.err
21555 cat conftest.err >&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && {
21558 test -z "$ac_c_werror_flag" ||
21559 test ! -s conftest.err
21560 } && test -s conftest$ac_exeext &&
21561 $as_test_x conftest$ac_exeext; then
21562 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
21564 echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21567 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
21570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21571 conftest$ac_exeext conftest.$ac_ext
21572 LIBS=$ac_check_lib_save_LIBS
21574 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
21575 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
21576 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
21583 if test "${AST_OSS_FOUND}" = "yes"; then
21584 OSS_LIB="-lossaudio "
21585 OSS_HEADER_FOUND="1"
21586 if test "x${OSS_DIR}" != "x"; then
21587 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
21588 OSS_INCLUDE="-I${OSS_DIR}/include"
21589 if test "xsoundcard.h" != "x" ; then
21590 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" |
$as_tr_sh`
21591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21592 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
21593 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
21594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21597 ac_res=`eval echo '${'$as_ac_Header'}'`
21598 { echo "$as_me:$LINENO: result: $ac_res" >&5
21599 echo "${ECHO_T}$ac_res" >&6; }
21601 # Is the header compilable?
21602 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
21603 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
21604 cat >conftest.$ac_ext <<_ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 $ac_includes_default
21611 #include <${OSS_DIR}/include/soundcard.h>
21613 rm -f conftest.$ac_objext
21614 if { (ac_try="$ac_compile"
21615 case "(($ac_try" in
21616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21617 *) ac_try_echo
=$ac_try;;
21619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21620 (eval "$ac_compile") 2>conftest.er1
21622 grep -v '^ *+' conftest.er1
>conftest.err
21624 cat conftest.err
>&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } && {
21627 test -z "$ac_c_werror_flag" ||
21628 test ! -s conftest.err
21629 } && test -s conftest.
$ac_objext; then
21630 ac_header_compiler
=yes
21632 echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.
$ac_ext >&5
21635 ac_header_compiler
=no
21638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21640 echo "${ECHO_T}$ac_header_compiler" >&6; }
21642 # Is the header present?
21643 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
21644 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
21645 cat >conftest.
$ac_ext <<_ACEOF
21648 cat confdefs.h
>>conftest.
$ac_ext
21649 cat >>conftest.
$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 #include <${OSS_DIR}/include/soundcard.h>
21653 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21654 case "(($ac_try" in
21655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21661 grep -v '^ *+' conftest.er1 >conftest.err
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } >/dev/null && {
21666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21669 ac_header_preproc=yes
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 ac_header_preproc=no
21677 rm -f conftest.err conftest.$ac_ext
21678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21679 echo "${ECHO_T}$ac_header_preproc" >&6; }
21681 # So? What about this header?
21682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21684 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21685 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21686 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
21687 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
21688 ac_header_preproc=yes
21691 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
21692 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
21693 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
21694 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
21695 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
21696 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
21697 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21698 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21699 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
21700 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
21701 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
21702 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
21706 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
21707 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
21708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21711 eval "$as_ac_Header=\$ac_header_preproc"
21713 ac_res=`eval echo '${'$as_ac_Header'}'`
21714 { echo "$as_me:$LINENO: result: $ac_res" >&5
21715 echo "${ECHO_T}$ac_res" >&6; }
21718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21727 if test "xsoundcard.h" != "x" ; then
21728 if test "${ac_cv_header_soundcard_h+set}" = set; then
21729 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
21730 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
21731 if test "${ac_cv_header_soundcard_h+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
21735 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
21737 # Is the header compilable?
21738 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
21739 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
21740 cat >conftest.$ac_ext <<_ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 $ac_includes_default
21747 #include <soundcard.h>
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21753 *) ac_try_echo
=$ac_try;;
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_compile") 2>conftest.er1
21758 grep -v '^ *+' conftest.er1
>conftest.err
21760 cat conftest.err
>&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } && {
21763 test -z "$ac_c_werror_flag" ||
21764 test ! -s conftest.err
21765 } && test -s conftest.
$ac_objext; then
21766 ac_header_compiler
=yes
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.
$ac_ext >&5
21771 ac_header_compiler
=no
21774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21776 echo "${ECHO_T}$ac_header_compiler" >&6; }
21778 # Is the header present?
21779 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
21780 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
21781 cat >conftest.
$ac_ext <<_ACEOF
21784 cat confdefs.h
>>conftest.
$ac_ext
21785 cat >>conftest.
$ac_ext <<_ACEOF
21786 /* end confdefs.h. */
21787 #include <soundcard.h>
21789 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21790 case "(($ac_try" in
21791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21797 grep -v '^ *+' conftest.er1 >conftest.err
21799 cat conftest.err >&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } >/dev/null && {
21802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21803 test ! -s conftest.err
21805 ac_header_preproc=yes
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ac_header_preproc=no
21813 rm -f conftest.err conftest.$ac_ext
21814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21815 echo "${ECHO_T}$ac_header_preproc" >&6; }
21817 # So? What about this header?
21818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21820 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21821 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21822 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
21823 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
21824 ac_header_preproc=yes
21827 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
21828 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
21829 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
21830 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
21831 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
21832 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
21833 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21834 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21835 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
21836 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
21837 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
21838 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
21842 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
21843 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
21844 if test "${ac_cv_header_soundcard_h+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21847 ac_cv_header_soundcard_h=$ac_header_preproc
21849 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
21850 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
21853 if test $ac_cv_header_soundcard_h = yes; then
21862 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
21863 if test ! -z "${OSS_MANDATORY}" ;
21865 { echo "$as_me:$LINENO: ***" >&5
21866 echo "$as_me: ***" >&6;}
21867 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
21868 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
21869 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
21870 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
21871 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
21872 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
21881 cat >>confdefs.h <<_ACEOF
21886 elif test ! -z "${OSS_MANDATORY}";
21888 { echo "$as_me:$LINENO: ***" >&5
21889 echo "$as_me: ***" >&6;}
21890 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
21891 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
21892 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21893 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21894 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
21895 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
21903 if test "${USE_PGSQL}" != "no"; then
21904 if test "x${PGSQL_DIR}" != "x"; then
21905 if test -n "$ac_tool_prefix"; then
21906 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
21907 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
21908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21910 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
21911 echo $ECHO_N "(cached) $ECHO_C" >&6
21915 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
21918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21919 for as_dir in ${PGSQL_DIR}/bin
21922 test -z "$as_dir" && as_dir=.
21923 for ac_exec_ext in '' $ac_executable_extensions; do
21924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21925 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21936 PG_CONFIG=$ac_cv_path_PG_CONFIG
21937 if test -n "$PG_CONFIG"; then
21938 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
21939 echo "${ECHO_T}$PG_CONFIG" >&6; }
21941 { echo "$as_me:$LINENO: result: no" >&5
21942 echo "${ECHO_T}no" >&6; }
21947 if test -z "$ac_cv_path_PG_CONFIG"; then
21948 ac_pt_PG_CONFIG=$PG_CONFIG
21949 # Extract the first word of "pg_config", so it can be a program name with args.
21950 set dummy pg_config; ac_word=$2
21951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21953 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 case $ac_pt_PG_CONFIG in
21958 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
21961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21962 for as_dir in ${PGSQL_DIR}/bin
21965 test -z "$as_dir" && as_dir=.
21966 for ac_exec_ext in '' $ac_executable_extensions; do
21967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21968 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21979 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
21980 if test -n "$ac_pt_PG_CONFIG"; then
21981 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
21982 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
21984 { echo "$as_me:$LINENO: result: no" >&5
21985 echo "${ECHO_T}no" >&6; }
21988 if test "x$ac_pt_PG_CONFIG" = x; then
21991 case $cross_compiling:$ac_tool_warned in
21993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21994 whose name does not start with the host triplet. If you think this
21995 configuration is useful to you, please write to autoconf@gnu.org." >&5
21996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21997 whose name does not start with the host triplet. If you think this
21998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21999 ac_tool_warned=yes ;;
22001 PG_CONFIG=$ac_pt_PG_CONFIG
22004 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22007 if test x"${PG_CONFIG}" = xNo; then
22008 { echo "$as_me:$LINENO: ***" >&5
22009 echo "$as_me: ***" >&6;}
22010 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
22011 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
22012 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
22013 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
22014 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22015 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22016 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22017 echo "$as_me: *** including --without-postgres" >&6;}
22021 if test -n "$ac_tool_prefix"; then
22022 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22023 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22026 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22027 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22035 for as_dir in $PATH
22038 test -z "$as_dir" && as_dir=.
22039 for ac_exec_ext in '' $ac_executable_extensions; do
22040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22041 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22052 PG_CONFIG=$ac_cv_path_PG_CONFIG
22053 if test -n "$PG_CONFIG"; then
22054 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22055 echo "${ECHO_T}$PG_CONFIG" >&6; }
22057 { echo "$as_me:$LINENO: result: no" >&5
22058 echo "${ECHO_T}no" >&6; }
22063 if test -z "$ac_cv_path_PG_CONFIG"; then
22064 ac_pt_PG_CONFIG=$PG_CONFIG
22065 # Extract the first word of "pg_config", so it can be a program name with args.
22066 set dummy pg_config; ac_word=$2
22067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22069 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22070 echo $ECHO_N "(cached) $ECHO_C" >&6
22072 case $ac_pt_PG_CONFIG in
22074 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22078 for as_dir in $PATH
22081 test -z "$as_dir" && as_dir=.
22082 for ac_exec_ext in '' $ac_executable_extensions; do
22083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22084 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22095 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22096 if test -n "$ac_pt_PG_CONFIG"; then
22097 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22098 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22100 { echo "$as_me:$LINENO: result: no" >&5
22101 echo "${ECHO_T}no" >&6; }
22104 if test "x$ac_pt_PG_CONFIG" = x; then
22107 case $cross_compiling:$ac_tool_warned in
22109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22110 whose name does not start with the host triplet. If you think this
22111 configuration is useful to you, please write to autoconf@gnu.org." >&5
22112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22113 whose name does not start with the host triplet. If you think this
22114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22115 ac_tool_warned=yes ;;
22117 PG_CONFIG=$ac_pt_PG_CONFIG
22120 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22125 if test "${PG_CONFIG}" != No; then
22126 PGSQL_libdir=`pg_config
--libdir`
22127 PGSQL_includedir=`pg_config
--includedir`
22129 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
22130 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
22131 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
22132 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 ac_check_lib_save_LIBS=$LIBS
22135 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
22136 cat >conftest.$ac_ext <<_ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22143 /* Override any GCC internal prototype to avoid an error.
22144 Use char because int might match the return type of a GCC
22145 builtin and then its argument prototype would still apply. */
22158 rm -f conftest.$ac_objext conftest$ac_exeext
22159 if { (ac_try="$ac_link"
22160 case "(($ac_try" in
22161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22162 *) ac_try_echo
=$ac_try;;
22164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22165 (eval "$ac_link") 2>conftest.er1
22167 grep -v '^ *+' conftest.er1
>conftest.err
22169 cat conftest.err
>&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); } && {
22172 test -z "$ac_c_werror_flag" ||
22173 test ! -s conftest.err
22174 } && test -s conftest
$ac_exeext &&
22175 $as_test_x conftest
$ac_exeext; then
22176 ac_cv_lib_pq_PQexec
=yes
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.
$ac_ext >&5
22181 ac_cv_lib_pq_PQexec
=no
22184 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22185 conftest
$ac_exeext conftest.
$ac_ext
22186 LIBS
=$ac_check_lib_save_LIBS
22188 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
22189 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
22190 if test $ac_cv_lib_pq_PQexec = yes; then
22192 cat >>confdefs.h
<<_ACEOF
22193 #define HAVE_PGSQL 1
22199 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
22200 PGSQL_LIB
="-L${PGSQL_libdir} -lpq -lz"
22201 PGSQL_INCLUDE
="-I${PGSQL_includedir}"
22203 elif test ! -z "${PGSQL_MANDATORY}";
22205 { echo "$as_me:$LINENO: ***" >&5
22206 echo "$as_me: ***" >&6;}
22207 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22208 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22209 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22210 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22211 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22212 echo "$as_me: *** including --without-postgres" >&6;}
22215 elif test ! -z "${PGSQL_MANDATORY}";
22217 { echo "$as_me:$LINENO: ***" >&5
22218 echo "$as_me: ***" >&6;}
22219 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22220 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22221 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22222 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22223 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22224 echo "$as_me: *** including --without-postgres" >&6;}
22229 if test "${USE_POPT}" != "no"; then
22231 if test "x${POPT_DIR}" != "x"; then
22232 if test -d ${POPT_DIR}/lib
; then
22233 pbxlibdir
="-L${POPT_DIR}/lib"
22235 pbxlibdir
="-L${POPT_DIR}"
22238 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
22239 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
22240 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22243 ac_check_lib_save_LIBS
=$LIBS
22244 LIBS
="-lpopt ${pbxlibdir} $LIBS"
22245 cat >conftest.
$ac_ext <<_ACEOF
22248 cat confdefs.h
>>conftest.
$ac_ext
22249 cat >>conftest.
$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22252 /* Override any GCC internal prototype to avoid an error.
22253 Use char because int might match the return type of a GCC
22254 builtin and then its argument prototype would still apply. */
22258 char poptStrerror ();
22262 return poptStrerror ();
22267 rm -f conftest.
$ac_objext conftest
$ac_exeext
22268 if { (ac_try
="$ac_link"
22269 case "(($ac_try" in
22270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_link") 2>conftest.er1
22276 grep -v '^ *+' conftest.er1 >conftest.err
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); } && {
22281 test -z "$ac_c_werror_flag" ||
22282 test ! -s conftest.err
22283 } && test -s conftest$ac_exeext &&
22284 $as_test_x conftest$ac_exeext; then
22285 ac_cv_lib_popt_poptStrerror=yes
22287 echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22290 ac_cv_lib_popt_poptStrerror=no
22293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22294 conftest$ac_exeext conftest.$ac_ext
22295 LIBS=$ac_check_lib_save_LIBS
22297 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
22298 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
22299 if test $ac_cv_lib_popt_poptStrerror = yes; then
22306 if test "${AST_POPT_FOUND}" = "yes"; then
22308 POPT_HEADER_FOUND="1"
22309 if test "x${POPT_DIR}" != "x"; then
22310 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
22311 POPT_INCLUDE="-I${POPT_DIR}/include"
22312 if test "xpopt.h" != "x" ; then
22313 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" |
$as_tr_sh`
22314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22315 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22316 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 ac_res=`eval echo '${'$as_ac_Header'}'`
22321 { echo "$as_me:$LINENO: result: $ac_res" >&5
22322 echo "${ECHO_T}$ac_res" >&6; }
22324 # Is the header compilable?
22325 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
22326 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
22327 cat >conftest.$ac_ext <<_ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h. */
22333 $ac_includes_default
22334 #include <${POPT_DIR}/include/popt.h>
22336 rm -f conftest.$ac_objext
22337 if { (ac_try="$ac_compile"
22338 case "(($ac_try" in
22339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22340 *) ac_try_echo
=$ac_try;;
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_compile") 2>conftest.er1
22345 grep -v '^ *+' conftest.er1
>conftest.err
22347 cat conftest.err
>&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest.
$ac_objext; then
22353 ac_header_compiler
=yes
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.
$ac_ext >&5
22358 ac_header_compiler
=no
22361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22363 echo "${ECHO_T}$ac_header_compiler" >&6; }
22365 # Is the header present?
22366 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
22367 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
22368 cat >conftest.
$ac_ext <<_ACEOF
22371 cat confdefs.h
>>conftest.
$ac_ext
22372 cat >>conftest.
$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 #include <${POPT_DIR}/include/popt.h>
22376 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22377 case "(($ac_try" in
22378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22379 *) ac_try_echo=$ac_try;;
22381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22384 grep -v '^ *+' conftest.er1 >conftest.err
22386 cat conftest.err >&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } >/dev/null && {
22389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22392 ac_header_preproc=yes
22394 echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 ac_header_preproc=no
22400 rm -f conftest.err conftest.$ac_ext
22401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22402 echo "${ECHO_T}$ac_header_preproc" >&6; }
22404 # So? What about this header?
22405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22407 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22408 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22409 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
22410 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
22411 ac_header_preproc=yes
22414 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
22415 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
22416 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
22417 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
22418 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
22419 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
22420 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
22421 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22422 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
22423 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
22424 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
22425 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
22429 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22430 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22434 eval "$as_ac_Header=\$ac_header_preproc"
22436 ac_res=`eval echo '${'$as_ac_Header'}'`
22437 { echo "$as_me:$LINENO: result: $ac_res" >&5
22438 echo "${ECHO_T}$ac_res" >&6; }
22441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22442 POPT_HEADER_FOUND=1
22444 POPT_HEADER_FOUND=0
22450 if test "xpopt.h" != "x" ; then
22451 if test "${ac_cv_header_popt_h+set}" = set; then
22452 { echo "$as_me:$LINENO: checking for popt.h" >&5
22453 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
22454 if test "${ac_cv_header_popt_h+set}" = set; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22457 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
22458 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
22460 # Is the header compilable?
22461 { echo "$as_me:$LINENO: checking popt.h usability" >&5
22462 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
22463 cat >conftest.$ac_ext <<_ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 $ac_includes_default
22472 rm -f conftest.$ac_objext
22473 if { (ac_try="$ac_compile"
22474 case "(($ac_try" in
22475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22476 *) ac_try_echo
=$ac_try;;
22478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479 (eval "$ac_compile") 2>conftest.er1
22481 grep -v '^ *+' conftest.er1
>conftest.err
22483 cat conftest.err
>&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } && {
22486 test -z "$ac_c_werror_flag" ||
22487 test ! -s conftest.err
22488 } && test -s conftest.
$ac_objext; then
22489 ac_header_compiler
=yes
22491 echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.
$ac_ext >&5
22494 ac_header_compiler
=no
22497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22499 echo "${ECHO_T}$ac_header_compiler" >&6; }
22501 # Is the header present?
22502 { echo "$as_me:$LINENO: checking popt.h presence" >&5
22503 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
22504 cat >conftest.
$ac_ext <<_ACEOF
22507 cat confdefs.h
>>conftest.
$ac_ext
22508 cat >>conftest.
$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22512 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22513 case "(($ac_try" in
22514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22515 *) ac_try_echo=$ac_try;;
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22520 grep -v '^ *+' conftest.er1 >conftest.err
22522 cat conftest.err >&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } >/dev/null && {
22525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22526 test ! -s conftest.err
22528 ac_header_preproc=yes
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22533 ac_header_preproc=no
22536 rm -f conftest.err conftest.$ac_ext
22537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22538 echo "${ECHO_T}$ac_header_preproc" >&6; }
22540 # So? What about this header?
22541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22543 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22544 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22545 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
22546 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
22547 ac_header_preproc=yes
22550 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
22551 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
22552 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
22553 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
22554 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
22555 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
22556 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
22557 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22558 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
22559 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
22560 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
22561 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
22565 { echo "$as_me:$LINENO: checking for popt.h" >&5
22566 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
22567 if test "${ac_cv_header_popt_h+set}" = set; then
22568 echo $ECHO_N "(cached) $ECHO_C" >&6
22570 ac_cv_header_popt_h=$ac_header_preproc
22572 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
22573 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
22576 if test $ac_cv_header_popt_h = yes; then
22577 POPT_HEADER_FOUND=1
22579 POPT_HEADER_FOUND=0
22585 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
22586 if test ! -z "${POPT_MANDATORY}" ;
22588 { echo "$as_me:$LINENO: ***" >&5
22589 echo "$as_me: ***" >&6;}
22590 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
22591 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
22592 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
22593 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
22594 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
22595 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
22604 cat >>confdefs.h <<_ACEOF
22605 #define HAVE_POPT 1
22609 elif test ! -z "${POPT_MANDATORY}";
22611 { echo "$as_me:$LINENO: ***" >&5
22612 echo "$as_me: ***" >&6;}
22613 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
22614 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
22615 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22616 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22617 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
22618 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
22625 if test "${USE_PRI}" != "no"; then
22627 if test "x${PRI_DIR}" != "x"; then
22628 if test -d ${PRI_DIR}/lib; then
22629 pbxlibdir="-L${PRI_DIR}/lib"
22631 pbxlibdir="-L${PRI_DIR}"
22634 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
22635 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
22636 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
22637 echo $ECHO_N "(cached) $ECHO_C" >&6
22639 ac_check_lib_save_LIBS=$LIBS
22640 LIBS="-lpri ${pbxlibdir} $LIBS"
22641 cat >conftest.$ac_ext <<_ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22648 /* Override any GCC internal prototype to avoid an error.
22649 Use char because int might match the return type of a GCC
22650 builtin and then its argument prototype would still apply. */
22658 return pri_call ();
22663 rm -f conftest.$ac_objext conftest$ac_exeext
22664 if { (ac_try="$ac_link"
22665 case "(($ac_try" in
22666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22667 *) ac_try_echo
=$ac_try;;
22669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22670 (eval "$ac_link") 2>conftest.er1
22672 grep -v '^ *+' conftest.er1
>conftest.err
22674 cat conftest.err
>&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } && {
22677 test -z "$ac_c_werror_flag" ||
22678 test ! -s conftest.err
22679 } && test -s conftest
$ac_exeext &&
22680 $as_test_x conftest
$ac_exeext; then
22681 ac_cv_lib_pri_pri_call
=yes
22683 echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.
$ac_ext >&5
22686 ac_cv_lib_pri_pri_call
=no
22689 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22690 conftest
$ac_exeext conftest.
$ac_ext
22691 LIBS
=$ac_check_lib_save_LIBS
22693 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
22694 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
22695 if test $ac_cv_lib_pri_pri_call = yes; then
22702 if test "${AST_PRI_FOUND}" = "yes"; then
22704 PRI_HEADER_FOUND
="1"
22705 if test "x${PRI_DIR}" != "x"; then
22706 PRI_LIB
="${pbxlibdir} ${PRI_LIB}"
22707 PRI_INCLUDE
="-I${PRI_DIR}/include"
22708 if test "xlibpri.h" != "x" ; then
22709 as_ac_Header
=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
22710 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22711 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
22712 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
22713 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22716 ac_res
=`eval echo '${'$as_ac_Header'}'`
22717 { echo "$as_me:$LINENO: result: $ac_res" >&5
22718 echo "${ECHO_T}$ac_res" >&6; }
22720 # Is the header compilable?
22721 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
22722 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
22723 cat >conftest.
$ac_ext <<_ACEOF
22726 cat confdefs.h
>>conftest.
$ac_ext
22727 cat >>conftest.
$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 $ac_includes_default
22730 #include <${PRI_DIR}/include/libpri.h>
22732 rm -f conftest.
$ac_objext
22733 if { (ac_try
="$ac_compile"
22734 case "(($ac_try" in
22735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22736 *) ac_try_echo=$ac_try;;
22738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22739 (eval "$ac_compile") 2>conftest.er1
22741 grep -v '^ *+' conftest.er1 >conftest.err
22743 cat conftest.err >&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); } && {
22746 test -z "$ac_c_werror_flag" ||
22747 test ! -s conftest.err
22748 } && test -s conftest.$ac_objext; then
22749 ac_header_compiler=yes
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22754 ac_header_compiler=no
22757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22759 echo "${ECHO_T}$ac_header_compiler" >&6; }
22761 # Is the header present?
22762 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
22763 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
22764 cat >conftest.$ac_ext <<_ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22770 #include <${PRI_DIR}/include/libpri.h>
22772 if { (ac_try="$ac_cpp conftest.$ac_ext"
22773 case "(($ac_try" in
22774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22775 *) ac_try_echo
=$ac_try;;
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22780 grep -v '^ *+' conftest.er1
>conftest.err
22782 cat conftest.err
>&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } >/dev
/null
&& {
22785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22786 test ! -s conftest.err
22788 ac_header_preproc
=yes
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.
$ac_ext >&5
22793 ac_header_preproc
=no
22796 rm -f conftest.err conftest.
$ac_ext
22797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22798 echo "${ECHO_T}$ac_header_preproc" >&6; }
22800 # So? What about this header?
22801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22803 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
22804 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22805 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
22806 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
22807 ac_header_preproc
=yes
22810 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
22811 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
22812 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
22813 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
22814 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
22815 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
22816 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
22817 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
22818 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
22819 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
22820 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
22821 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
22825 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
22826 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
22827 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 eval "$as_ac_Header=\$ac_header_preproc"
22832 ac_res
=`eval echo '${'$as_ac_Header'}'`
22833 { echo "$as_me:$LINENO: result: $ac_res" >&5
22834 echo "${ECHO_T}$ac_res" >&6; }
22837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22846 if test "xlibpri.h" != "x" ; then
22847 if test "${ac_cv_header_libpri_h+set}" = set; then
22848 { echo "$as_me:$LINENO: checking for libpri.h" >&5
22849 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
22850 if test "${ac_cv_header_libpri_h+set}" = set; then
22851 echo $ECHO_N "(cached) $ECHO_C" >&6
22853 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
22854 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
22856 # Is the header compilable?
22857 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
22858 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
22859 cat >conftest.
$ac_ext <<_ACEOF
22862 cat confdefs.h
>>conftest.
$ac_ext
22863 cat >>conftest.
$ac_ext <<_ACEOF
22864 /* end confdefs.h. */
22865 $ac_includes_default
22866 #include <libpri.h>
22868 rm -f conftest.
$ac_objext
22869 if { (ac_try
="$ac_compile"
22870 case "(($ac_try" in
22871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22872 *) ac_try_echo=$ac_try;;
22874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875 (eval "$ac_compile") 2>conftest.er1
22877 grep -v '^ *+' conftest.er1 >conftest.err
22879 cat conftest.err >&5
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); } && {
22882 test -z "$ac_c_werror_flag" ||
22883 test ! -s conftest.err
22884 } && test -s conftest.$ac_objext; then
22885 ac_header_compiler=yes
22887 echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22890 ac_header_compiler=no
22893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22895 echo "${ECHO_T}$ac_header_compiler" >&6; }
22897 # Is the header present?
22898 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
22899 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
22900 cat >conftest.$ac_ext <<_ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h. */
22906 #include <libpri.h>
22908 if { (ac_try="$ac_cpp conftest.$ac_ext"
22909 case "(($ac_try" in
22910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22911 *) ac_try_echo
=$ac_try;;
22913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22916 grep -v '^ *+' conftest.er1
>conftest.err
22918 cat conftest.err
>&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } >/dev
/null
&& {
22921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22922 test ! -s conftest.err
22924 ac_header_preproc
=yes
22926 echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.
$ac_ext >&5
22929 ac_header_preproc
=no
22932 rm -f conftest.err conftest.
$ac_ext
22933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22934 echo "${ECHO_T}$ac_header_preproc" >&6; }
22936 # So? What about this header?
22937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22939 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
22940 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22941 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
22942 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
22943 ac_header_preproc
=yes
22946 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
22947 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
22948 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
22949 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
22950 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
22951 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
22952 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
22953 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
22954 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
22955 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
22956 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
22957 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
22961 { echo "$as_me:$LINENO: checking for libpri.h" >&5
22962 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
22963 if test "${ac_cv_header_libpri_h+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22966 ac_cv_header_libpri_h
=$ac_header_preproc
22968 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
22969 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
22972 if test $ac_cv_header_libpri_h = yes; then
22981 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
22982 if test ! -z "${PRI_MANDATORY}" ;
22984 { echo "$as_me:$LINENO: ***" >&5
22985 echo "$as_me: ***" >&6;}
22986 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
22987 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
22988 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
22989 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
22990 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
22991 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23000 cat >>confdefs.h
<<_ACEOF
23005 elif test ! -z "${PRI_MANDATORY}";
23007 { echo "$as_me:$LINENO: ***" >&5
23008 echo "$as_me: ***" >&6;}
23009 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
23010 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
23011 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23012 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23013 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23014 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23020 if test "${USE_PWLIB}" != "no"; then
23021 if test ! -z "${PWLIB_DIR}"; then
23022 PWLIBDIR
="${PWLIB_DIR}"
23027 if test "${PWLIBDIR:-unset}" != "unset" ; then
23028 as_ac_File
=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
23029 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
23030 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
23031 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
23034 test "$cross_compiling" = yes &&
23035 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23036 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23037 { (exit 1); exit 1; }; }
23038 if test -r "${PWLIBDIR}/version.h"; then
23039 eval "$as_ac_File=yes"
23041 eval "$as_ac_File=no"
23044 ac_res
=`eval echo '${'$as_ac_File'}'`
23045 { echo "$as_me:$LINENO: result: $ac_res" >&5
23046 echo "${ECHO_T}$ac_res" >&6; }
23047 if test `eval echo '${'$as_ac_File'}'` = yes; then
23052 if test "${HAS_PWLIB:-unset}" = "unset" ; then
23053 if test "${OPENH323DIR:-unset}" != "unset"; then
23054 as_ac_File
=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
23055 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
23056 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
23057 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23060 test "$cross_compiling" = yes &&
23061 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23062 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23063 { (exit 1); exit 1; }; }
23064 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
23065 eval "$as_ac_File=yes"
23067 eval "$as_ac_File=no"
23070 ac_res
=`eval echo '${'$as_ac_File'}'`
23071 { echo "$as_me:$LINENO: result: $ac_res" >&5
23072 echo "${ECHO_T}$ac_res" >&6; }
23073 if test `eval echo '${'$as_ac_File'}'` = yes; then
23078 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23079 PWLIBDIR
="${OPENH323DIR}/../pwlib"
23081 as_ac_File
=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
23082 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
23083 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
23084 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23087 test "$cross_compiling" = yes &&
23088 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23089 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23090 { (exit 1); exit 1; }; }
23091 if test -r "${HOME}/pwlib/include/ptlib.h"; then
23092 eval "$as_ac_File=yes"
23094 eval "$as_ac_File=no"
23097 ac_res
=`eval echo '${'$as_ac_File'}'`
23098 { echo "$as_me:$LINENO: result: $ac_res" >&5
23099 echo "${ECHO_T}$ac_res" >&6; }
23100 if test `eval echo '${'$as_ac_File'}'` = yes; then
23104 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23105 PWLIBDIR
="${HOME}/pwlib"
23107 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
23108 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
23109 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
23110 echo $ECHO_N "(cached) $ECHO_C" >&6
23112 test "$cross_compiling" = yes &&
23113 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23114 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23115 { (exit 1); exit 1; }; }
23116 if test -r "/usr/local/include/ptlib.h"; then
23117 ac_cv_file__usr_local_include_ptlib_h
=yes
23119 ac_cv_file__usr_local_include_ptlib_h
=no
23122 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
23123 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
23124 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
23128 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23129 # Extract the first word of "ptlib-config", so it can be a program name with args.
23130 set dummy ptlib-config
; ac_word
=$2
23131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23133 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23134 echo $ECHO_N "(cached) $ECHO_C" >&6
23136 case $PTLIB_CONFIG in
23138 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
23141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23142 for as_dir
in /usr
/local
/bin
23145 test -z "$as_dir" && as_dir
=.
23146 for ac_exec_ext
in '' $ac_executable_extensions; do
23147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23148 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
23149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23159 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
23160 if test -n "$PTLIB_CONFIG"; then
23161 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23162 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23164 { echo "$as_me:$LINENO: result: no" >&5
23165 echo "${ECHO_T}no" >&6; }
23169 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
23170 # Extract the first word of "ptlib-config", so it can be a program name with args.
23171 set dummy ptlib-config
; ac_word
=$2
23172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23174 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23177 case $PTLIB_CONFIG in
23179 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
23182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23183 for as_dir
in /usr
/local
/share
/pwlib
/make
23186 test -z "$as_dir" && as_dir
=.
23187 for ac_exec_ext
in '' $ac_executable_extensions; do
23188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23189 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
23190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23200 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
23201 if test -n "$PTLIB_CONFIG"; then
23202 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23203 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23205 { echo "$as_me:$LINENO: result: no" >&5
23206 echo "${ECHO_T}no" >&6; }
23211 PWLIB_INCDIR
="/usr/local/include"
23212 PWLIB_LIBDIR
="/usr/local/lib"
23214 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
23215 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
23216 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
23217 echo $ECHO_N "(cached) $ECHO_C" >&6
23219 test "$cross_compiling" = yes &&
23220 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23221 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23222 { (exit 1); exit 1; }; }
23223 if test -r "/usr/include/ptlib.h"; then
23224 ac_cv_file__usr_include_ptlib_h
=yes
23226 ac_cv_file__usr_include_ptlib_h
=no
23229 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
23230 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
23231 if test $ac_cv_file__usr_include_ptlib_h = yes; then
23235 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23236 # Extract the first word of "ptlib-config", so it can be a program name with args.
23237 set dummy ptlib-config
; ac_word
=$2
23238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23240 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23243 case $PTLIB_CONFIG in
23245 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
23248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23249 for as_dir
in /usr
/share
/pwlib
/make
23252 test -z "$as_dir" && as_dir
=.
23253 for ac_exec_ext
in '' $ac_executable_extensions; do
23254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23255 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
23256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23266 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
23267 if test -n "$PTLIB_CONFIG"; then
23268 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23269 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23271 { echo "$as_me:$LINENO: result: no" >&5
23272 echo "${ECHO_T}no" >&6; }
23276 PWLIB_INCDIR
="/usr/include"
23277 PWLIB_LIBDIR
="/usr/lib"
23284 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
23285 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
23289 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23290 if test "${PWLIBDIR:-unset}" = "unset" ; then
23291 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
23292 PWLIBDIR
=`$PTLIB_CONFIG --prefix`
23294 echo "Cannot find ptlib-config - please install and try again"
23299 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
23300 PWLIBDIR
="/usr/share/pwlib"
23301 PWLIB_INCDIR
="/usr/include"
23302 PWLIB_LIBDIR
="/usr/lib"
23304 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
23305 PWLIBDIR
="/usr/local/share/pwlib"
23306 PWLIB_INCDIR
="/usr/local/include"
23307 PWLIB_LIBDIR
="/usr/local/lib"
23310 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
23311 PWLIB_INCDIR
="${PWLIBDIR}/include"
23313 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
23314 PWLIB_LIBDIR
="${PWLIBDIR}/lib"
23323 if test "${HAS_PWLIB:-unset}" != "unset"; then
23324 PWLIB_VERSION
=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
23325 PWLIB_MAJOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f1 -d.`
23326 PWLIB_MINOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f2 -d.`
23327 PWLIB_BUILD_NUMBER
=`echo ${PWLIB_VERSION} | cut -f3 -d.`
23328 let PWLIB_VER
=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
23329 let PWLIB_REQ
=1*10000+9*100+2
23331 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
23332 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23333 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
23334 { echo "$as_me:$LINENO: result: no" >&5
23335 echo "${ECHO_T}no" >&6; }
23338 { echo "$as_me:$LINENO: result: yes" >&5
23339 echo "${ECHO_T}yes" >&6; }
23344 if test "${HAS_PWLIB:-unset}" != "unset"; then
23348 linux
*) PWLIB_OSTYPE
=linux
;
23350 freebsd
* ) PWLIB_OSTYPE
=FreeBSD
;
23352 openbsd
* ) PWLIB_OSTYPE
=OpenBSD
;
23353 ENDLDLIBS
="-lossaudio" ;
23355 netbsd
* ) PWLIB_OSTYPE
=NetBSD
;
23356 ENDLDLIBS
="-lossaudio" ;
23358 solaris
* | sunos
* ) PWLIB_OSTYPE
=solaris
;
23360 darwin
* ) PWLIB_OSTYPE
=Darwin
;
23362 beos
*) PWLIB_OSTYPE
=beos
;
23363 STDCCFLAGS
="$STDCCFLAGS -D__BEOS__"
23365 cygwin
*) PWLIB_OSTYPE
=cygwin
;
23367 mingw
*) PWLIB_OSTYPE
=mingw
;
23368 STDCCFLAGS
="$STDCCFLAGS -mms-bitfields" ;
23369 ENDLDLIBS
="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
23371 * ) PWLIB_OSTYPE
="$host_os" ;
23372 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
23373 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
23378 case "$host_cpu" in
23379 x86 | i686 | i586 | i486 | i386
) PWLIB_MACHTYPE
=x86
23382 x86_64
) PWLIB_MACHTYPE
=x86_64
;
23387 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7
) PWLIB_MACHTYPE
=alpha
;
23391 sparc
) PWLIB_MACHTYPE
=sparc
;
23394 powerpc
) PWLIB_MACHTYPE
=ppc
;
23397 ppc
) PWLIB_MACHTYPE
=ppc
;
23400 powerpc64
) PWLIB_MACHTYPE
=ppc64
;
23405 ppc64
) PWLIB_MACHTYPE
=ppc64
;
23410 ia64
) PWLIB_MACHTYPE
=ia64
;
23414 s390x
) PWLIB_MACHTYPE
=s390x
;
23419 s390
) PWLIB_MACHTYPE
=s390
;
23422 * ) PWLIB_MACHTYPE
="$host_cpu";
23423 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
23424 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
23427 PWLIB_PLATFORM
="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
23432 PLATFORM_PWLIB
="pt_${PWLIB_PLATFORM}_r"
23435 if test "${HAS_PWLIB:-unset}" != "unset"; then
23436 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
23437 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
23439 saved_cppflags
="${CPPFLAGS}"
23440 saved_libs
="${LIBS}"
23441 LIBS
="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
23442 CPPFLAGS
="${CPPFLAGS} -I${PWLIB_INCDIR} "
23445 ac_cpp
='$CXXCPP $CPPFLAGS'
23446 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23447 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23448 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23451 cat >conftest.
$ac_ext <<_ACEOF
23454 cat confdefs.h
>>conftest.
$ac_ext
23455 cat >>conftest.
$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23461 BOOL q = PTime::IsDaylightSavings();
23466 rm -f conftest.
$ac_objext conftest
$ac_exeext
23467 if { (ac_try
="$ac_link"
23468 case "(($ac_try" in
23469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23470 *) ac_try_echo=$ac_try;;
23472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23473 (eval "$ac_link") 2>conftest.er1
23475 grep -v '^ *+' conftest.er1 >conftest.err
23477 cat conftest.err >&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); } && {
23480 test -z "$ac_cxx_werror_flag" ||
23481 test ! -s conftest.err
23482 } && test -s conftest$ac_exeext &&
23483 $as_test_x conftest$ac_exeext; then
23484 { echo "$as_me:$LINENO: result: yes" >&5
23485 echo "${ECHO_T}yes" >&6; }
23486 ac_cv_lib_PWLIB="yes"
23489 echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23492 { echo "$as_me:$LINENO: result: no" >&5
23493 echo "${ECHO_T}no" >&6; }
23494 ac_cv_lib_PWLIB="no"
23499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23500 conftest$ac_exeext conftest.$ac_ext
23503 ac_cpp='$CPP $CPPFLAGS'
23504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23509 LIBS="${saved_libs}"
23510 CPPFLAGS="${saved_cppflags}"
23512 if test "${ac_cv_lib_PWLIB}" = "yes"; then
23513 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
23514 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
23516 PWLIB_LIB="-l${PLATFORM_PWLIB}"
23518 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
23519 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
23523 cat >>confdefs.h <<\_ACEOF
23524 #define HAVE_PWLIB 1
23533 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
23534 { echo "$as_me:$LINENO: ***" >&5
23535 echo "$as_me: ***" >&6;}
23536 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
23537 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
23538 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23539 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23540 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
23541 echo "$as_me: *** including --without-pwlib" >&6;}
23545 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
23546 if test ! -z "${OPENH323_DIR}"; then
23547 OPENH323DIR="${OPENH323_DIR}"
23552 if test "${OPENH323DIR:-unset}" != "unset" ; then
23553 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" |
$as_tr_sh`
23554 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
23555 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
23556 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23559 test "$cross_compiling" = yes &&
23560 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23561 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23562 { (exit 1); exit 1; }; }
23563 if test -r "${OPENH323DIR}/version.h"; then
23564 eval "$as_ac_File=yes"
23566 eval "$as_ac_File=no"
23569 ac_res=`eval echo '${'$as_ac_File'}'`
23570 { echo "$as_me:$LINENO: result: $ac_res" >&5
23571 echo "${ECHO_T}$ac_res" >&6; }
23572 if test `eval echo '${'$as_ac_File'}'` = yes; then
23577 if test "${HAS_OPENH323:-unset}" = "unset" ; then
23578 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" |
$as_tr_sh`
23579 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
23580 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
23581 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23582 echo $ECHO_N "(cached) $ECHO_C" >&6
23584 test "$cross_compiling" = yes &&
23585 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23586 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23587 { (exit 1); exit 1; }; }
23588 if test -r "${PWLIBDIR}/../openh323/version.h"; then
23589 eval "$as_ac_File=yes"
23591 eval "$as_ac_File=no"
23594 ac_res=`eval echo '${'$as_ac_File'}'`
23595 { echo "$as_me:$LINENO: result: $ac_res" >&5
23596 echo "${ECHO_T}$ac_res" >&6; }
23597 if test `eval echo '${'$as_ac_File'}'` = yes; then
23598 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
23601 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23602 OPENH323DIR="${PWLIBDIR}/../openh323"
23603 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" |
$as_tr_sh`
23604 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
23605 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
23606 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
23609 test "$cross_compiling" = yes &&
23610 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23611 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23612 { (exit 1); exit 1; }; }
23613 if test -r "${OPENH323DIR}/include/h323.h"; then
23614 eval "$as_ac_File=yes"
23616 eval "$as_ac_File=no"
23619 ac_res=`eval echo '${'$as_ac_File'}'`
23620 { echo "$as_me:$LINENO: result: $ac_res" >&5
23621 echo "${ECHO_T}$ac_res" >&6; }
23622 if test `eval echo '${'$as_ac_File'}'` = yes; then
23625 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
23629 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" |
$as_tr_sh`
23630 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
23631 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
23632 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23633 echo $ECHO_N "(cached) $ECHO_C" >&6
23635 test "$cross_compiling" = yes &&
23636 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23637 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23638 { (exit 1); exit 1; }; }
23639 if test -r "${HOME}/openh323/include/h323.h"; then
23640 eval "$as_ac_File=yes"
23642 eval "$as_ac_File=no"
23645 ac_res=`eval echo '${'$as_ac_File'}'`
23646 { echo "$as_me:$LINENO: result: $ac_res" >&5
23647 echo "${ECHO_T}$ac_res" >&6; }
23648 if test `eval echo '${'$as_ac_File'}'` = yes; then
23652 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23653 OPENH323DIR="${HOME}/openh323"
23655 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
23656 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
23657 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
23658 echo $ECHO_N "(cached) $ECHO_C" >&6
23660 test "$cross_compiling" = yes &&
23661 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23662 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23663 { (exit 1); exit 1; }; }
23664 if test -r "/usr/local/include/openh323/h323.h"; then
23665 ac_cv_file__usr_local_include_openh323_h323_h=yes
23667 ac_cv_file__usr_local_include_openh323_h323_h=no
23670 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
23671 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
23672 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
23676 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23677 OPENH323DIR="/usr/local/share/openh323"
23678 OPENH323_INCDIR="/usr/local/include/openh323"
23679 OPENH323_LIBDIR="/usr/local/lib"
23681 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
23682 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
23683 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23686 test "$cross_compiling" = yes &&
23687 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23688 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23689 { (exit 1); exit 1; }; }
23690 if test -r "/usr/include/openh323/h323.h"; then
23691 ac_cv_file__usr_include_openh323_h323_h=yes
23693 ac_cv_file__usr_include_openh323_h323_h=no
23696 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
23697 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
23698 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
23702 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23703 OPENH323DIR="/usr/share/openh323"
23704 OPENH323_INCDIR="/usr/include/openh323"
23705 OPENH323_LIBDIR="/usr/lib"
23712 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23713 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
23714 OPENH323_INCDIR="${OPENH323DIR}/include"
23716 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
23717 OPENH323_LIBDIR="${OPENH323DIR}/lib"
23726 if test "${HAS_OPENH323:-unset}" != "unset"; then
23727 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut
-f2 -d ' ' |
sed -e 's/"//g'`
23728 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f1 -d.
`
23729 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f2 -d.
`
23730 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut
-f3 -d.
`
23731 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
23732 let OPENH323_REQ=1*10000+17*100+3
23734 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
23735 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23736 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
23737 { echo "$as_me:$LINENO: result: no" >&5
23738 echo "${ECHO_T}no" >&6; }
23741 { echo "$as_me:$LINENO: result: yes" >&5
23742 echo "${ECHO_T}yes" >&6; }
23747 if test "${HAS_OPENH323:-unset}" != "unset"; then
23748 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
23749 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
23751 files=`ls -l ${OPENH323_LIBDIR}/libh323_
${PWLIB_PLATFORM}_
*.so
*`
23753 if test -n "$files"; then
23754 for f in $files; do
23755 if test -f $f -a ! -L $f; then
23756 libfile=`basename $f`
23761 if test "${libfile:-unset}" != "unset"; then
23762 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
23764 case "${OPENH323_SUFFIX}" in
23766 OPENH323_BUILD="notrace";;
23768 OPENH323_BUILD="opt";;
23770 OPENH323_BUILD="debug";;
23772 OPENH323_BUILD="notrace";;
23774 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
23775 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
23781 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
23783 if test "${HAS_OPENH323:-unset}" != "unset"; then
23784 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
23785 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
23787 saved_cppflags="${CPPFLAGS}"
23788 saved_libs="${LIBS}"
23789 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
23790 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
23793 ac_cpp='$CXXCPP $CPPFLAGS'
23794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23799 cat >conftest.$ac_ext <<_ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23807 #include "h323ep.h"
23811 H323EndPoint ep = H323EndPoint();
23816 rm -f conftest.$ac_objext conftest$ac_exeext
23817 if { (ac_try="$ac_link"
23818 case "(($ac_try" in
23819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23820 *) ac_try_echo
=$ac_try;;
23822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23823 (eval "$ac_link") 2>conftest.er1
23825 grep -v '^ *+' conftest.er1
>conftest.err
23827 cat conftest.err
>&5
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); } && {
23830 test -z "$ac_cxx_werror_flag" ||
23831 test ! -s conftest.err
23832 } && test -s conftest
$ac_exeext &&
23833 $as_test_x conftest
$ac_exeext; then
23834 { echo "$as_me:$LINENO: result: yes" >&5
23835 echo "${ECHO_T}yes" >&6; }
23836 ac_cv_lib_OPENH323
="yes"
23839 echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.
$ac_ext >&5
23842 { echo "$as_me:$LINENO: result: no" >&5
23843 echo "${ECHO_T}no" >&6; }
23844 ac_cv_lib_OPENH323
="no"
23849 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23850 conftest
$ac_exeext conftest.
$ac_ext
23853 ac_cpp
='$CPP $CPPFLAGS'
23854 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23855 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23856 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23859 LIBS
="${saved_libs}"
23860 CPPFLAGS
="${saved_cppflags}"
23862 if test "${ac_cv_lib_OPENH323}" = "yes"; then
23863 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
23864 OPENH323_LIB
="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
23866 OPENH323_LIB
="-l${PLATFORM_OPENH323}"
23868 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
23869 OPENH323_INCLUDE
="-I${OPENH323_INCDIR}"
23873 cat >>confdefs.h
<<\_ACEOF
23874 #define HAVE_OPENH323 1
23881 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
23882 { echo "$as_me:$LINENO: ***" >&5
23883 echo "$as_me: ***" >&6;}
23884 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
23885 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
23886 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23887 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23888 { echo "$as_me:$LINENO: *** including --without-h323" >&5
23889 echo "$as_me: *** including --without-h323" >&6;}
23895 ac_cpp
='$CXXCPP $CPPFLAGS'
23896 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23897 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23898 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23901 if test "${USE_QT}" != "no"; then
23902 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
23903 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
23904 saved_libs
="${LIBS}"
23905 saved_cppflags
="${CPPFLAGS}"
23906 if test "x${QT_DIR}" != "x"; then
23907 LIBS
="${LIBS} -L${QT_DIR}/lib"
23908 CPPFLAGS
="${CPPFLAGS} -I${QT_DIR}/include"
23910 LIBS
="${LIBS} -lqt"
23912 cat >conftest.
$ac_ext <<_ACEOF
23916 cat confdefs.h
>>conftest.
$ac_ext
23917 cat >>conftest.
$ac_ext <<_ACEOF
23918 /* end confdefs.h. */
23919 #include <qt3/qdatetime.h>
23929 rm -f conftest.
$ac_objext conftest
$ac_exeext
23930 if { (ac_try
="$ac_link"
23931 case "(($ac_try" in
23932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23933 *) ac_try_echo=$ac_try;;
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936 (eval "$ac_link") 2>conftest.er1
23938 grep -v '^ *+' conftest.er1 >conftest.err
23940 cat conftest.err >&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_cxx_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest$ac_exeext &&
23946 $as_test_x conftest$ac_exeext; then
23947 ac_cv_lib_qt_qt_date="yes"
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 ac_cv_lib_qt_qt_date="no"
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956 conftest$ac_exeext conftest.$ac_ext
23957 LIBS="${saved_libs}"
23958 CPPFLAGS="${saved_cppflags}"
23960 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
23961 saved_libs="${LIBS}"
23962 saved_cppflags="${CPPFLAGS}"
23963 if test "x${QT_DIR}" != "x"; then
23964 LIBS="${LIBS} -L${QT_DIR}/lib"
23965 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
23967 LIBS="${LIBS} -lqt-mt"
23969 cat >conftest.$ac_ext <<_ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23976 #include <qt3/qdatetime.h>
23986 rm -f conftest.$ac_objext conftest$ac_exeext
23987 if { (ac_try="$ac_link"
23988 case "(($ac_try" in
23989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23990 *) ac_try_echo
=$ac_try;;
23992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23993 (eval "$ac_link") 2>conftest.er1
23995 grep -v '^ *+' conftest.er1
>conftest.err
23997 cat conftest.err
>&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_cxx_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest
$ac_exeext &&
24003 $as_test_x conftest
$ac_exeext; then
24004 ac_cv_lib_qt_qt_date
="yes"
24006 echo "$as_me: failed program was:" >&5
24007 sed 's/^/| /' conftest.
$ac_ext >&5
24009 ac_cv_lib_qt_qt_date
="no"
24012 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24013 conftest
$ac_exeext conftest.
$ac_ext
24014 LIBS
="${saved_libs}"
24015 CPPFLAGS
="${saved_cppflags}"
24018 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24019 { echo "$as_me:$LINENO: result: yes" >&5
24020 echo "${ECHO_T}yes" >&6; }
24022 { echo "$as_me:$LINENO: result: no" >&5
24023 echo "${ECHO_T}no" >&6; }
24026 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24027 QT_LIB
="-l${qtlib}"
24028 if test "${QT_DIR}" != ""; then
24029 QT_LIB
="-L${QT_DIR}/lib ${QT_LIB}"
24030 QT_INCLUDE
="-I${QT_DIR}/include"
24034 cat >>confdefs.h
<<\_ACEOF
24038 if test -n "$ac_tool_prefix"; then
24039 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
24040 set dummy
${ac_tool_prefix}moc
; ac_word
=$2
24041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24043 if test "${ac_cv_path_QTMOC+set}" = set; then
24044 echo $ECHO_N "(cached) $ECHO_C" >&6
24048 ac_cv_path_QTMOC
="$QTMOC" # Let the user override the test with a path.
24051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24052 for as_dir
in $PATH
24055 test -z "$as_dir" && as_dir
=.
24056 for ac_exec_ext
in '' $ac_executable_extensions; do
24057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24058 ac_cv_path_QTMOC
="$as_dir/$ac_word$ac_exec_ext"
24059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24069 QTMOC
=$ac_cv_path_QTMOC
24070 if test -n "$QTMOC"; then
24071 { echo "$as_me:$LINENO: result: $QTMOC" >&5
24072 echo "${ECHO_T}$QTMOC" >&6; }
24074 { echo "$as_me:$LINENO: result: no" >&5
24075 echo "${ECHO_T}no" >&6; }
24080 if test -z "$ac_cv_path_QTMOC"; then
24082 # Extract the first word of "moc", so it can be a program name with args.
24083 set dummy moc
; ac_word
=$2
24084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24086 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
24087 echo $ECHO_N "(cached) $ECHO_C" >&6
24089 case $ac_pt_QTMOC in
24091 ac_cv_path_ac_pt_QTMOC
="$ac_pt_QTMOC" # Let the user override the test with a path.
24094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24095 for as_dir
in $PATH
24098 test -z "$as_dir" && as_dir
=.
24099 for ac_exec_ext
in '' $ac_executable_extensions; do
24100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24101 ac_cv_path_ac_pt_QTMOC
="$as_dir/$ac_word$ac_exec_ext"
24102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24112 ac_pt_QTMOC
=$ac_cv_path_ac_pt_QTMOC
24113 if test -n "$ac_pt_QTMOC"; then
24114 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
24115 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
24117 { echo "$as_me:$LINENO: result: no" >&5
24118 echo "${ECHO_T}no" >&6; }
24121 if test "x$ac_pt_QTMOC" = x
; then
24124 case $cross_compiling:$ac_tool_warned in
24126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24127 whose name does not start with the host triplet. If you think this
24128 configuration is useful to you, please write to autoconf@gnu.org." >&5
24129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24130 whose name does not start with the host triplet. If you think this
24131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24132 ac_tool_warned
=yes ;;
24137 QTMOC
="$ac_cv_path_QTMOC"
24140 elif test ! -z "${QT_MANDATORY}";
24142 { echo "$as_me:$LINENO: ***" >&5
24143 echo "$as_me: ***" >&6;}
24144 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
24145 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
24146 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24147 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24148 { echo "$as_me:$LINENO: *** including --without-qt." >&5
24149 echo "$as_me: *** including --without-qt." >&6;}
24155 ac_cpp
='$CPP $CPPFLAGS'
24156 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24157 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24158 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24162 if test "${USE_RADIUS}" != "no"; then
24164 if test "x${RADIUS_DIR}" != "x"; then
24165 if test -d ${RADIUS_DIR}/lib
; then
24166 pbxlibdir
="-L${RADIUS_DIR}/lib"
24168 pbxlibdir
="-L${RADIUS_DIR}"
24171 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
24172 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
24173 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24176 ac_check_lib_save_LIBS
=$LIBS
24177 LIBS
="-lradiusclient-ng ${pbxlibdir} $LIBS"
24178 cat >conftest.
$ac_ext <<_ACEOF
24181 cat confdefs.h
>>conftest.
$ac_ext
24182 cat >>conftest.
$ac_ext <<_ACEOF
24183 /* end confdefs.h. */
24185 /* Override any GCC internal prototype to avoid an error.
24186 Use char because int might match the return type of a GCC
24187 builtin and then its argument prototype would still apply. */
24191 char rc_read_config ();
24195 return rc_read_config ();
24200 rm -f conftest.
$ac_objext conftest
$ac_exeext
24201 if { (ac_try
="$ac_link"
24202 case "(($ac_try" in
24203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24204 *) ac_try_echo=$ac_try;;
24206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24207 (eval "$ac_link") 2>conftest.er1
24209 grep -v '^ *+' conftest.er1 >conftest.err
24211 cat conftest.err >&5
24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); } && {
24214 test -z "$ac_c_werror_flag" ||
24215 test ! -s conftest.err
24216 } && test -s conftest$ac_exeext &&
24217 $as_test_x conftest$ac_exeext; then
24218 ac_cv_lib_radiusclient_ng_rc_read_config=yes
24220 echo "$as_me: failed program was:" >&5
24221 sed 's/^/| /' conftest.$ac_ext >&5
24223 ac_cv_lib_radiusclient_ng_rc_read_config=no
24226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24227 conftest$ac_exeext conftest.$ac_ext
24228 LIBS=$ac_check_lib_save_LIBS
24230 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
24231 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
24232 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
24233 AST_RADIUS_FOUND=yes
24235 AST_RADIUS_FOUND=no
24239 if test "${AST_RADIUS_FOUND}" = "yes"; then
24240 RADIUS_LIB="-lradiusclient-ng "
24241 RADIUS_HEADER_FOUND="1"
24242 if test "x${RADIUS_DIR}" != "x"; then
24243 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
24244 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
24245 if test "xradiusclient-ng.h" != "x" ; then
24246 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" |
$as_tr_sh`
24247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24248 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24249 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24251 echo $ECHO_N "(cached) $ECHO_C" >&6
24253 ac_res=`eval echo '${'$as_ac_Header'}'`
24254 { echo "$as_me:$LINENO: result: $ac_res" >&5
24255 echo "${ECHO_T}$ac_res" >&6; }
24257 # Is the header compilable?
24258 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
24259 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
24260 cat >conftest.$ac_ext <<_ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24266 $ac_includes_default
24267 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24269 rm -f conftest.$ac_objext
24270 if { (ac_try="$ac_compile"
24271 case "(($ac_try" in
24272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24273 *) ac_try_echo
=$ac_try;;
24275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24276 (eval "$ac_compile") 2>conftest.er1
24278 grep -v '^ *+' conftest.er1
>conftest.err
24280 cat conftest.err
>&5
24281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); } && {
24283 test -z "$ac_c_werror_flag" ||
24284 test ! -s conftest.err
24285 } && test -s conftest.
$ac_objext; then
24286 ac_header_compiler
=yes
24288 echo "$as_me: failed program was:" >&5
24289 sed 's/^/| /' conftest.
$ac_ext >&5
24291 ac_header_compiler
=no
24294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24296 echo "${ECHO_T}$ac_header_compiler" >&6; }
24298 # Is the header present?
24299 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
24300 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
24301 cat >conftest.
$ac_ext <<_ACEOF
24304 cat confdefs.h
>>conftest.
$ac_ext
24305 cat >>conftest.
$ac_ext <<_ACEOF
24306 /* end confdefs.h. */
24307 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24309 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24310 case "(($ac_try" in
24311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24317 grep -v '^ *+' conftest.er1 >conftest.err
24319 cat conftest.err >&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } >/dev/null && {
24322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24323 test ! -s conftest.err
24325 ac_header_preproc=yes
24327 echo "$as_me: failed program was:" >&5
24328 sed 's/^/| /' conftest.$ac_ext >&5
24330 ac_header_preproc=no
24333 rm -f conftest.err conftest.$ac_ext
24334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24335 echo "${ECHO_T}$ac_header_preproc" >&6; }
24337 # So? What about this header?
24338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24340 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24341 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24342 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
24343 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24344 ac_header_preproc=yes
24347 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
24348 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
24349 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
24350 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24351 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
24352 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
24353 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24354 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24355 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24356 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24357 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24358 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24362 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24363 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24365 echo $ECHO_N "(cached) $ECHO_C" >&6
24367 eval "$as_ac_Header=\$ac_header_preproc"
24369 ac_res=`eval echo '${'$as_ac_Header'}'`
24370 { echo "$as_me:$LINENO: result: $ac_res" >&5
24371 echo "${ECHO_T}$ac_res" >&6; }
24374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24375 RADIUS_HEADER_FOUND=1
24377 RADIUS_HEADER_FOUND=0
24383 if test "xradiusclient-ng.h" != "x" ; then
24384 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24385 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24386 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24387 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24390 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24391 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24393 # Is the header compilable?
24394 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
24395 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
24396 cat >conftest.$ac_ext <<_ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h. */
24402 $ac_includes_default
24403 #include <radiusclient-ng.h>
24405 rm -f conftest.$ac_objext
24406 if { (ac_try="$ac_compile"
24407 case "(($ac_try" in
24408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24409 *) ac_try_echo
=$ac_try;;
24411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24412 (eval "$ac_compile") 2>conftest.er1
24414 grep -v '^ *+' conftest.er1
>conftest.err
24416 cat conftest.err
>&5
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); } && {
24419 test -z "$ac_c_werror_flag" ||
24420 test ! -s conftest.err
24421 } && test -s conftest.
$ac_objext; then
24422 ac_header_compiler
=yes
24424 echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.
$ac_ext >&5
24427 ac_header_compiler
=no
24430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24432 echo "${ECHO_T}$ac_header_compiler" >&6; }
24434 # Is the header present?
24435 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
24436 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
24437 cat >conftest.
$ac_ext <<_ACEOF
24440 cat confdefs.h
>>conftest.
$ac_ext
24441 cat >>conftest.
$ac_ext <<_ACEOF
24442 /* end confdefs.h. */
24443 #include <radiusclient-ng.h>
24445 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24446 case "(($ac_try" in
24447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24448 *) ac_try_echo=$ac_try;;
24450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24453 grep -v '^ *+' conftest.er1 >conftest.err
24455 cat conftest.err >&5
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); } >/dev/null && {
24458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24459 test ! -s conftest.err
24461 ac_header_preproc=yes
24463 echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24466 ac_header_preproc=no
24469 rm -f conftest.err conftest.$ac_ext
24470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24471 echo "${ECHO_T}$ac_header_preproc" >&6; }
24473 # So? What about this header?
24474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24476 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24477 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24478 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
24479 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24480 ac_header_preproc=yes
24483 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
24484 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
24485 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
24486 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24487 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
24488 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
24489 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24490 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24491 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24492 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24493 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24494 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24498 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24499 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24500 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24501 echo $ECHO_N "(cached) $ECHO_C" >&6
24503 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
24505 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24506 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24509 if test $ac_cv_header_radiusclient_ng_h = yes; then
24510 RADIUS_HEADER_FOUND=1
24512 RADIUS_HEADER_FOUND=0
24518 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
24519 if test ! -z "${RADIUS_MANDATORY}" ;
24521 { echo "$as_me:$LINENO: ***" >&5
24522 echo "$as_me: ***" >&6;}
24523 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
24524 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
24525 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
24526 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
24527 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
24528 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
24537 cat >>confdefs.h <<_ACEOF
24538 #define HAVE_RADIUS 1
24542 elif test ! -z "${RADIUS_MANDATORY}";
24544 { echo "$as_me:$LINENO: ***" >&5
24545 echo "$as_me: ***" >&6;}
24546 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
24547 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
24548 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24549 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24550 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
24551 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
24558 if test "${USE_SPEEX}" != "no"; then
24560 if test "x${SPEEX_DIR}" != "x"; then
24561 if test -d ${SPEEX_DIR}/lib; then
24562 pbxlibdir="-L${SPEEX_DIR}/lib"
24564 pbxlibdir="-L${SPEEX_DIR}"
24567 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
24568 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
24569 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
24570 echo $ECHO_N "(cached) $ECHO_C" >&6
24572 ac_check_lib_save_LIBS=$LIBS
24573 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
24574 cat >conftest.$ac_ext <<_ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h. */
24581 /* Override any GCC internal prototype to avoid an error.
24582 Use char because int might match the return type of a GCC
24583 builtin and then its argument prototype would still apply. */
24587 char speex_encode ();
24591 return speex_encode ();
24596 rm -f conftest.$ac_objext conftest$ac_exeext
24597 if { (ac_try="$ac_link"
24598 case "(($ac_try" in
24599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24600 *) ac_try_echo
=$ac_try;;
24602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603 (eval "$ac_link") 2>conftest.er1
24605 grep -v '^ *+' conftest.er1
>conftest.err
24607 cat conftest.err
>&5
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); } && {
24610 test -z "$ac_c_werror_flag" ||
24611 test ! -s conftest.err
24612 } && test -s conftest
$ac_exeext &&
24613 $as_test_x conftest
$ac_exeext; then
24614 ac_cv_lib_speex_speex_encode
=yes
24616 echo "$as_me: failed program was:" >&5
24617 sed 's/^/| /' conftest.
$ac_ext >&5
24619 ac_cv_lib_speex_speex_encode
=no
24622 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24623 conftest
$ac_exeext conftest.
$ac_ext
24624 LIBS
=$ac_check_lib_save_LIBS
24626 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
24627 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
24628 if test $ac_cv_lib_speex_speex_encode = yes; then
24629 AST_SPEEX_FOUND
=yes
24635 if test "${AST_SPEEX_FOUND}" = "yes"; then
24636 SPEEX_LIB
="-lspeex -lm"
24637 SPEEX_HEADER_FOUND
="1"
24638 if test "x${SPEEX_DIR}" != "x"; then
24639 SPEEX_LIB
="${pbxlibdir} ${SPEEX_LIB}"
24640 SPEEX_INCLUDE
="-I${SPEEX_DIR}/include"
24641 if test "xspeex/speex.h" != "x" ; then
24642 as_ac_Header
=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
24643 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24644 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
24645 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
24646 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24647 echo $ECHO_N "(cached) $ECHO_C" >&6
24649 ac_res
=`eval echo '${'$as_ac_Header'}'`
24650 { echo "$as_me:$LINENO: result: $ac_res" >&5
24651 echo "${ECHO_T}$ac_res" >&6; }
24653 # Is the header compilable?
24654 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
24655 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
24656 cat >conftest.
$ac_ext <<_ACEOF
24659 cat confdefs.h
>>conftest.
$ac_ext
24660 cat >>conftest.
$ac_ext <<_ACEOF
24661 /* end confdefs.h. */
24662 $ac_includes_default
24663 #include <${SPEEX_DIR}/include/speex/speex.h>
24665 rm -f conftest.
$ac_objext
24666 if { (ac_try
="$ac_compile"
24667 case "(($ac_try" in
24668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_compile") 2>conftest.er1
24674 grep -v '^ *+' conftest.er1 >conftest.err
24676 cat conftest.err >&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); } && {
24679 test -z "$ac_c_werror_flag" ||
24680 test ! -s conftest.err
24681 } && test -s conftest.$ac_objext; then
24682 ac_header_compiler=yes
24684 echo "$as_me: failed program was:" >&5
24685 sed 's/^/| /' conftest.$ac_ext >&5
24687 ac_header_compiler=no
24690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24692 echo "${ECHO_T}$ac_header_compiler" >&6; }
24694 # Is the header present?
24695 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
24696 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
24697 cat >conftest.$ac_ext <<_ACEOF
24700 cat confdefs.h >>conftest.$ac_ext
24701 cat >>conftest.$ac_ext <<_ACEOF
24702 /* end confdefs.h. */
24703 #include <${SPEEX_DIR}/include/speex/speex.h>
24705 if { (ac_try="$ac_cpp conftest.$ac_ext"
24706 case "(($ac_try" in
24707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24708 *) ac_try_echo
=$ac_try;;
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24713 grep -v '^ *+' conftest.er1
>conftest.err
24715 cat conftest.err
>&5
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } >/dev
/null
&& {
24718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24719 test ! -s conftest.err
24721 ac_header_preproc
=yes
24723 echo "$as_me: failed program was:" >&5
24724 sed 's/^/| /' conftest.
$ac_ext >&5
24726 ac_header_preproc
=no
24729 rm -f conftest.err conftest.
$ac_ext
24730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24731 echo "${ECHO_T}$ac_header_preproc" >&6; }
24733 # So? What about this header?
24734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24736 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24737 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24738 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
24739 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
24740 ac_header_preproc
=yes
24743 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
24744 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
24745 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
24746 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
24747 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
24748 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
24749 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
24750 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
24752 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
24753 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
24754 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
24758 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
24759 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
24760 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24761 echo $ECHO_N "(cached) $ECHO_C" >&6
24763 eval "$as_ac_Header=\$ac_header_preproc"
24765 ac_res
=`eval echo '${'$as_ac_Header'}'`
24766 { echo "$as_me:$LINENO: result: $ac_res" >&5
24767 echo "${ECHO_T}$ac_res" >&6; }
24770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24771 SPEEX_HEADER_FOUND
=1
24773 SPEEX_HEADER_FOUND
=0
24779 if test "xspeex/speex.h" != "x" ; then
24780 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24781 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
24782 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
24783 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24786 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
24787 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
24789 # Is the header compilable?
24790 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
24791 echo $ECHO_N "checking speex/speex.h usability... $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 $ac_includes_default
24799 #include <speex/speex.h>
24801 rm -f conftest.
$ac_objext
24802 if { (ac_try
="$ac_compile"
24803 case "(($ac_try" in
24804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808 (eval "$ac_compile") 2>conftest.er1
24810 grep -v '^ *+' conftest.er1 >conftest.err
24812 cat conftest.err >&5
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); } && {
24815 test -z "$ac_c_werror_flag" ||
24816 test ! -s conftest.err
24817 } && test -s conftest.$ac_objext; then
24818 ac_header_compiler=yes
24820 echo "$as_me: failed program was:" >&5
24821 sed 's/^/| /' conftest.$ac_ext >&5
24823 ac_header_compiler=no
24826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24828 echo "${ECHO_T}$ac_header_compiler" >&6; }
24830 # Is the header present?
24831 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
24832 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
24833 cat >conftest.$ac_ext <<_ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h. */
24839 #include <speex/speex.h>
24841 if { (ac_try="$ac_cpp conftest.$ac_ext"
24842 case "(($ac_try" in
24843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24844 *) ac_try_echo
=$ac_try;;
24846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24849 grep -v '^ *+' conftest.er1
>conftest.err
24851 cat conftest.err
>&5
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); } >/dev
/null
&& {
24854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24855 test ! -s conftest.err
24857 ac_header_preproc
=yes
24859 echo "$as_me: failed program was:" >&5
24860 sed 's/^/| /' conftest.
$ac_ext >&5
24862 ac_header_preproc
=no
24865 rm -f conftest.err conftest.
$ac_ext
24866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24867 echo "${ECHO_T}$ac_header_preproc" >&6; }
24869 # So? What about this header?
24870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24872 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24873 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24874 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
24875 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
24876 ac_header_preproc
=yes
24879 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
24880 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
24881 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
24882 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
24883 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
24884 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
24885 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
24886 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24887 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
24888 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
24889 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
24890 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
24894 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
24895 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
24896 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24897 echo $ECHO_N "(cached) $ECHO_C" >&6
24899 ac_cv_header_speex_speex_h
=$ac_header_preproc
24901 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
24902 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
24905 if test $ac_cv_header_speex_speex_h = yes; then
24906 SPEEX_HEADER_FOUND
=1
24908 SPEEX_HEADER_FOUND
=0
24914 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
24915 if test ! -z "${SPEEX_MANDATORY}" ;
24917 { echo "$as_me:$LINENO: ***" >&5
24918 echo "$as_me: ***" >&6;}
24919 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
24920 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
24921 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
24922 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
24923 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
24924 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
24933 cat >>confdefs.h
<<_ACEOF
24934 #define HAVE_SPEEX 1
24938 elif test ! -z "${SPEEX_MANDATORY}";
24940 { echo "$as_me:$LINENO: ***" >&5
24941 echo "$as_me: ***" >&6;}
24942 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
24943 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
24944 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24945 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24946 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
24947 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
24954 if test "${USE_SQLITE}" != "no"; then
24956 if test "x${SQLITE_DIR}" != "x"; then
24957 if test -d ${SQLITE_DIR}/lib
; then
24958 pbxlibdir
="-L${SQLITE_DIR}/lib"
24960 pbxlibdir
="-L${SQLITE_DIR}"
24963 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
24964 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
24965 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
24966 echo $ECHO_N "(cached) $ECHO_C" >&6
24968 ac_check_lib_save_LIBS
=$LIBS
24969 LIBS
="-lsqlite ${pbxlibdir} $LIBS"
24970 cat >conftest.
$ac_ext <<_ACEOF
24973 cat confdefs.h
>>conftest.
$ac_ext
24974 cat >>conftest.
$ac_ext <<_ACEOF
24975 /* end confdefs.h. */
24977 /* Override any GCC internal prototype to avoid an error.
24978 Use char because int might match the return type of a GCC
24979 builtin and then its argument prototype would still apply. */
24983 char sqlite_exec ();
24987 return sqlite_exec ();
24992 rm -f conftest.
$ac_objext conftest
$ac_exeext
24993 if { (ac_try
="$ac_link"
24994 case "(($ac_try" in
24995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_link") 2>conftest.er1
25001 grep -v '^ *+' conftest.er1 >conftest.err
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && {
25006 test -z "$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25008 } && test -s conftest$ac_exeext &&
25009 $as_test_x conftest$ac_exeext; then
25010 ac_cv_lib_sqlite_sqlite_exec=yes
25012 echo "$as_me: failed program was:" >&5
25013 sed 's/^/| /' conftest.$ac_ext >&5
25015 ac_cv_lib_sqlite_sqlite_exec=no
25018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25019 conftest$ac_exeext conftest.$ac_ext
25020 LIBS=$ac_check_lib_save_LIBS
25022 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
25023 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
25024 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
25025 AST_SQLITE_FOUND=yes
25027 AST_SQLITE_FOUND=no
25031 if test "${AST_SQLITE_FOUND}" = "yes"; then
25032 SQLITE_LIB="-lsqlite "
25033 SQLITE_HEADER_FOUND="1"
25034 if test "x${SQLITE_DIR}" != "x"; then
25035 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
25036 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
25037 if test "xsqlite.h" != "x" ; then
25038 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" |
$as_tr_sh`
25039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25040 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25041 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25043 echo $ECHO_N "(cached) $ECHO_C" >&6
25045 ac_res=`eval echo '${'$as_ac_Header'}'`
25046 { echo "$as_me:$LINENO: result: $ac_res" >&5
25047 echo "${ECHO_T}$ac_res" >&6; }
25049 # Is the header compilable?
25050 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
25051 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
25052 cat >conftest.$ac_ext <<_ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25058 $ac_includes_default
25059 #include <${SQLITE_DIR}/include/sqlite.h>
25061 rm -f conftest.$ac_objext
25062 if { (ac_try="$ac_compile"
25063 case "(($ac_try" in
25064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25065 *) ac_try_echo
=$ac_try;;
25067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25068 (eval "$ac_compile") 2>conftest.er1
25070 grep -v '^ *+' conftest.er1
>conftest.err
25072 cat conftest.err
>&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); } && {
25075 test -z "$ac_c_werror_flag" ||
25076 test ! -s conftest.err
25077 } && test -s conftest.
$ac_objext; then
25078 ac_header_compiler
=yes
25080 echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.
$ac_ext >&5
25083 ac_header_compiler
=no
25086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25088 echo "${ECHO_T}$ac_header_compiler" >&6; }
25090 # Is the header present?
25091 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
25092 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
25093 cat >conftest.
$ac_ext <<_ACEOF
25096 cat confdefs.h
>>conftest.
$ac_ext
25097 cat >>conftest.
$ac_ext <<_ACEOF
25098 /* end confdefs.h. */
25099 #include <${SQLITE_DIR}/include/sqlite.h>
25101 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25102 case "(($ac_try" in
25103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25104 *) ac_try_echo=$ac_try;;
25106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25109 grep -v '^ *+' conftest.er1 >conftest.err
25111 cat conftest.err >&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } >/dev/null && {
25114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25115 test ! -s conftest.err
25117 ac_header_preproc=yes
25119 echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25122 ac_header_preproc=no
25125 rm -f conftest.err conftest.$ac_ext
25126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25127 echo "${ECHO_T}$ac_header_preproc" >&6; }
25129 # So? What about this header?
25130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25132 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25133 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25134 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
25135 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
25136 ac_header_preproc=yes
25139 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
25140 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
25141 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
25142 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
25143 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
25144 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
25145 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25146 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25147 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
25148 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
25149 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
25150 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
25154 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25155 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25157 echo $ECHO_N "(cached) $ECHO_C" >&6
25159 eval "$as_ac_Header=\$ac_header_preproc"
25161 ac_res=`eval echo '${'$as_ac_Header'}'`
25162 { echo "$as_me:$LINENO: result: $ac_res" >&5
25163 echo "${ECHO_T}$ac_res" >&6; }
25166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25167 SQLITE_HEADER_FOUND=1
25169 SQLITE_HEADER_FOUND=0
25175 if test "xsqlite.h" != "x" ; then
25176 if test "${ac_cv_header_sqlite_h+set}" = set; then
25177 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25178 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25179 if test "${ac_cv_header_sqlite_h+set}" = set; then
25180 echo $ECHO_N "(cached) $ECHO_C" >&6
25182 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25183 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25185 # Is the header compilable?
25186 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
25187 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
25188 cat >conftest.$ac_ext <<_ACEOF
25191 cat confdefs.h >>conftest.$ac_ext
25192 cat >>conftest.$ac_ext <<_ACEOF
25193 /* end confdefs.h. */
25194 $ac_includes_default
25195 #include <sqlite.h>
25197 rm -f conftest.$ac_objext
25198 if { (ac_try="$ac_compile"
25199 case "(($ac_try" in
25200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25201 *) ac_try_echo
=$ac_try;;
25203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25204 (eval "$ac_compile") 2>conftest.er1
25206 grep -v '^ *+' conftest.er1
>conftest.err
25208 cat conftest.err
>&5
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } && {
25211 test -z "$ac_c_werror_flag" ||
25212 test ! -s conftest.err
25213 } && test -s conftest.
$ac_objext; then
25214 ac_header_compiler
=yes
25216 echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.
$ac_ext >&5
25219 ac_header_compiler
=no
25222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25224 echo "${ECHO_T}$ac_header_compiler" >&6; }
25226 # Is the header present?
25227 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
25228 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
25229 cat >conftest.
$ac_ext <<_ACEOF
25232 cat confdefs.h
>>conftest.
$ac_ext
25233 cat >>conftest.
$ac_ext <<_ACEOF
25234 /* end confdefs.h. */
25235 #include <sqlite.h>
25237 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25238 case "(($ac_try" in
25239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25240 *) ac_try_echo=$ac_try;;
25242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25245 grep -v '^ *+' conftest.er1 >conftest.err
25247 cat conftest.err >&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } >/dev/null && {
25250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25251 test ! -s conftest.err
25253 ac_header_preproc=yes
25255 echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25258 ac_header_preproc=no
25261 rm -f conftest.err conftest.$ac_ext
25262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25263 echo "${ECHO_T}$ac_header_preproc" >&6; }
25265 # So? What about this header?
25266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25268 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25269 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25270 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
25271 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
25272 ac_header_preproc=yes
25275 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
25276 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
25277 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
25278 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
25279 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
25280 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
25281 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25282 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25283 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
25284 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
25285 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
25286 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
25290 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25291 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25292 if test "${ac_cv_header_sqlite_h+set}" = set; then
25293 echo $ECHO_N "(cached) $ECHO_C" >&6
25295 ac_cv_header_sqlite_h=$ac_header_preproc
25297 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25298 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25301 if test $ac_cv_header_sqlite_h = yes; then
25302 SQLITE_HEADER_FOUND=1
25304 SQLITE_HEADER_FOUND=0
25310 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
25311 if test ! -z "${SQLITE_MANDATORY}" ;
25313 { echo "$as_me:$LINENO: ***" >&5
25314 echo "$as_me: ***" >&6;}
25315 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
25316 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
25317 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
25318 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
25319 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25320 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25329 cat >>confdefs.h <<_ACEOF
25330 #define HAVE_SQLITE 1
25334 elif test ! -z "${SQLITE_MANDATORY}";
25336 { echo "$as_me:$LINENO: ***" >&5
25337 echo "$as_me: ***" >&6;}
25338 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
25339 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
25340 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25341 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25342 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25343 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25350 if test "${USE_OPENSSL}" != "no"; then
25352 if test "x${OPENSSL_DIR}" != "x"; then
25353 if test -d ${OPENSSL_DIR}/lib; then
25354 pbxlibdir="-L${OPENSSL_DIR}/lib"
25356 pbxlibdir="-L${OPENSSL_DIR}"
25359 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
25360 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
25361 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
25362 echo $ECHO_N "(cached) $ECHO_C" >&6
25364 ac_check_lib_save_LIBS=$LIBS
25365 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
25366 cat >conftest.$ac_ext <<_ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h. */
25373 /* Override any GCC internal prototype to avoid an error.
25374 Use char because int might match the return type of a GCC
25375 builtin and then its argument prototype would still apply. */
25379 char ssl2_connect ();
25383 return ssl2_connect ();
25388 rm -f conftest.$ac_objext conftest$ac_exeext
25389 if { (ac_try="$ac_link"
25390 case "(($ac_try" in
25391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25392 *) ac_try_echo
=$ac_try;;
25394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25395 (eval "$ac_link") 2>conftest.er1
25397 grep -v '^ *+' conftest.er1
>conftest.err
25399 cat conftest.err
>&5
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); } && {
25402 test -z "$ac_c_werror_flag" ||
25403 test ! -s conftest.err
25404 } && test -s conftest
$ac_exeext &&
25405 $as_test_x conftest
$ac_exeext; then
25406 ac_cv_lib_ssl_ssl2_connect
=yes
25408 echo "$as_me: failed program was:" >&5
25409 sed 's/^/| /' conftest.
$ac_ext >&5
25411 ac_cv_lib_ssl_ssl2_connect
=no
25414 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25415 conftest
$ac_exeext conftest.
$ac_ext
25416 LIBS
=$ac_check_lib_save_LIBS
25418 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
25419 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
25420 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
25421 AST_OPENSSL_FOUND
=yes
25423 AST_OPENSSL_FOUND
=no
25427 if test "${AST_OPENSSL_FOUND}" = "yes"; then
25428 OPENSSL_LIB
="-lssl -lcrypto"
25429 OPENSSL_HEADER_FOUND
="1"
25430 if test "x${OPENSSL_DIR}" != "x"; then
25431 OPENSSL_LIB
="${pbxlibdir} ${OPENSSL_LIB}"
25432 OPENSSL_INCLUDE
="-I${OPENSSL_DIR}/include"
25433 if test "xopenssl/ssl.h" != "x" ; then
25434 as_ac_Header
=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
25435 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25436 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
25437 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
25438 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25439 echo $ECHO_N "(cached) $ECHO_C" >&6
25441 ac_res
=`eval echo '${'$as_ac_Header'}'`
25442 { echo "$as_me:$LINENO: result: $ac_res" >&5
25443 echo "${ECHO_T}$ac_res" >&6; }
25445 # Is the header compilable?
25446 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
25447 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
25448 cat >conftest.
$ac_ext <<_ACEOF
25451 cat confdefs.h
>>conftest.
$ac_ext
25452 cat >>conftest.
$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25454 $ac_includes_default
25455 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
25457 rm -f conftest.
$ac_objext
25458 if { (ac_try
="$ac_compile"
25459 case "(($ac_try" in
25460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25461 *) ac_try_echo=$ac_try;;
25463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25464 (eval "$ac_compile") 2>conftest.er1
25466 grep -v '^ *+' conftest.er1 >conftest.err
25468 cat conftest.err >&5
25469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); } && {
25471 test -z "$ac_c_werror_flag" ||
25472 test ! -s conftest.err
25473 } && test -s conftest.$ac_objext; then
25474 ac_header_compiler=yes
25476 echo "$as_me: failed program was:" >&5
25477 sed 's/^/| /' conftest.$ac_ext >&5
25479 ac_header_compiler=no
25482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25484 echo "${ECHO_T}$ac_header_compiler" >&6; }
25486 # Is the header present?
25487 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
25488 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
25489 cat >conftest.$ac_ext <<_ACEOF
25492 cat confdefs.h >>conftest.$ac_ext
25493 cat >>conftest.$ac_ext <<_ACEOF
25494 /* end confdefs.h. */
25495 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
25497 if { (ac_try="$ac_cpp conftest.$ac_ext"
25498 case "(($ac_try" in
25499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25500 *) ac_try_echo
=$ac_try;;
25502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25505 grep -v '^ *+' conftest.er1
>conftest.err
25507 cat conftest.err
>&5
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); } >/dev
/null
&& {
25510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25511 test ! -s conftest.err
25513 ac_header_preproc
=yes
25515 echo "$as_me: failed program was:" >&5
25516 sed 's/^/| /' conftest.
$ac_ext >&5
25518 ac_header_preproc
=no
25521 rm -f conftest.err conftest.
$ac_ext
25522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25523 echo "${ECHO_T}$ac_header_preproc" >&6; }
25525 # So? What about this header?
25526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25528 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25529 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
25531 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
25532 ac_header_preproc
=yes
25535 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
25536 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
25537 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
25538 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
25539 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
25540 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
25541 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
25542 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25543 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
25544 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
25545 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
25546 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
25550 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
25551 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
25552 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25553 echo $ECHO_N "(cached) $ECHO_C" >&6
25555 eval "$as_ac_Header=\$ac_header_preproc"
25557 ac_res
=`eval echo '${'$as_ac_Header'}'`
25558 { echo "$as_me:$LINENO: result: $ac_res" >&5
25559 echo "${ECHO_T}$ac_res" >&6; }
25562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25563 OPENSSL_HEADER_FOUND
=1
25565 OPENSSL_HEADER_FOUND
=0
25571 if test "xopenssl/ssl.h" != "x" ; then
25572 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25573 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
25574 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
25575 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25576 echo $ECHO_N "(cached) $ECHO_C" >&6
25578 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
25579 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
25581 # Is the header compilable?
25582 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
25583 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
25584 cat >conftest.
$ac_ext <<_ACEOF
25587 cat confdefs.h
>>conftest.
$ac_ext
25588 cat >>conftest.
$ac_ext <<_ACEOF
25589 /* end confdefs.h. */
25590 $ac_includes_default
25591 #include <openssl/ssl.h>
25593 rm -f conftest.
$ac_objext
25594 if { (ac_try
="$ac_compile"
25595 case "(($ac_try" in
25596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25597 *) ac_try_echo=$ac_try;;
25599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25600 (eval "$ac_compile") 2>conftest.er1
25602 grep -v '^ *+' conftest.er1 >conftest.err
25604 cat conftest.err >&5
25605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606 (exit $ac_status); } && {
25607 test -z "$ac_c_werror_flag" ||
25608 test ! -s conftest.err
25609 } && test -s conftest.$ac_objext; then
25610 ac_header_compiler=yes
25612 echo "$as_me: failed program was:" >&5
25613 sed 's/^/| /' conftest.$ac_ext >&5
25615 ac_header_compiler=no
25618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25620 echo "${ECHO_T}$ac_header_compiler" >&6; }
25622 # Is the header present?
25623 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
25624 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
25625 cat >conftest.$ac_ext <<_ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h. */
25631 #include <openssl/ssl.h>
25633 if { (ac_try="$ac_cpp conftest.$ac_ext"
25634 case "(($ac_try" in
25635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25636 *) ac_try_echo
=$ac_try;;
25638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25641 grep -v '^ *+' conftest.er1
>conftest.err
25643 cat conftest.err
>&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); } >/dev
/null
&& {
25646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25647 test ! -s conftest.err
25649 ac_header_preproc
=yes
25651 echo "$as_me: failed program was:" >&5
25652 sed 's/^/| /' conftest.
$ac_ext >&5
25654 ac_header_preproc
=no
25657 rm -f conftest.err conftest.
$ac_ext
25658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25659 echo "${ECHO_T}$ac_header_preproc" >&6; }
25661 # So? What about this header?
25662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25664 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25665 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25666 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
25667 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
25668 ac_header_preproc
=yes
25671 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
25672 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
25673 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
25674 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
25675 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
25676 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
25677 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
25678 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25679 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
25680 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
25681 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
25682 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
25686 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
25687 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
25688 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25689 echo $ECHO_N "(cached) $ECHO_C" >&6
25691 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
25693 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
25694 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
25697 if test $ac_cv_header_openssl_ssl_h = yes; then
25698 OPENSSL_HEADER_FOUND
=1
25700 OPENSSL_HEADER_FOUND
=0
25706 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
25707 if test ! -z "${OPENSSL_MANDATORY}" ;
25709 { echo "$as_me:$LINENO: ***" >&5
25710 echo "$as_me: ***" >&6;}
25711 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
25712 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
25713 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
25714 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
25715 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
25716 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
25725 cat >>confdefs.h
<<_ACEOF
25726 #define HAVE_OPENSSL 1
25730 elif test ! -z "${OPENSSL_MANDATORY}";
25732 { echo "$as_me:$LINENO: ***" >&5
25733 echo "$as_me: ***" >&6;}
25734 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
25735 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
25736 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25737 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25738 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
25739 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
25746 if test "${USE_FREETDS}" != "no"; then
25748 if test "x${FREETDS_DIR}" != "x"; then
25749 if test -d ${FREETDS_DIR}/lib
; then
25750 pbxlibdir
="-L${FREETDS_DIR}/lib"
25752 pbxlibdir
="-L${FREETDS_DIR}"
25755 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
25756 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
25757 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
25758 echo $ECHO_N "(cached) $ECHO_C" >&6
25760 ac_check_lib_save_LIBS
=$LIBS
25761 LIBS
="-ltds ${pbxlibdir} $LIBS"
25762 cat >conftest.
$ac_ext <<_ACEOF
25765 cat confdefs.h
>>conftest.
$ac_ext
25766 cat >>conftest.
$ac_ext <<_ACEOF
25767 /* end confdefs.h. */
25769 /* Override any GCC internal prototype to avoid an error.
25770 Use char because int might match the return type of a GCC
25771 builtin and then its argument prototype would still apply. */
25775 char tds_version ();
25779 return tds_version ();
25784 rm -f conftest.
$ac_objext conftest
$ac_exeext
25785 if { (ac_try
="$ac_link"
25786 case "(($ac_try" in
25787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25788 *) ac_try_echo=$ac_try;;
25790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25791 (eval "$ac_link") 2>conftest.er1
25793 grep -v '^ *+' conftest.er1 >conftest.err
25795 cat conftest.err >&5
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); } && {
25798 test -z "$ac_c_werror_flag" ||
25799 test ! -s conftest.err
25800 } && test -s conftest$ac_exeext &&
25801 $as_test_x conftest$ac_exeext; then
25802 ac_cv_lib_tds_tds_version=yes
25804 echo "$as_me: failed program was:" >&5
25805 sed 's/^/| /' conftest.$ac_ext >&5
25807 ac_cv_lib_tds_tds_version=no
25810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25811 conftest$ac_exeext conftest.$ac_ext
25812 LIBS=$ac_check_lib_save_LIBS
25814 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
25815 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
25816 if test $ac_cv_lib_tds_tds_version = yes; then
25817 AST_FREETDS_FOUND=yes
25819 AST_FREETDS_FOUND=no
25823 if test "${AST_FREETDS_FOUND}" = "yes"; then
25824 FREETDS_LIB="-ltds "
25825 FREETDS_HEADER_FOUND="1"
25826 if test "x${FREETDS_DIR}" != "x"; then
25827 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
25828 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
25829 if test "xtds.h" != "x" ; then
25830 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" |
$as_tr_sh`
25831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25832 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
25833 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
25834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25837 ac_res=`eval echo '${'$as_ac_Header'}'`
25838 { echo "$as_me:$LINENO: result: $ac_res" >&5
25839 echo "${ECHO_T}$ac_res" >&6; }
25841 # Is the header compilable?
25842 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
25843 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 $ac_includes_default
25851 #include <${FREETDS_DIR}/include/tds.h>
25853 rm -f conftest.$ac_objext
25854 if { (ac_try="$ac_compile"
25855 case "(($ac_try" in
25856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25857 *) ac_try_echo
=$ac_try;;
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860 (eval "$ac_compile") 2>conftest.er1
25862 grep -v '^ *+' conftest.er1
>conftest.err
25864 cat conftest.err
>&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } && {
25867 test -z "$ac_c_werror_flag" ||
25868 test ! -s conftest.err
25869 } && test -s conftest.
$ac_objext; then
25870 ac_header_compiler
=yes
25872 echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.
$ac_ext >&5
25875 ac_header_compiler
=no
25878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25880 echo "${ECHO_T}$ac_header_compiler" >&6; }
25882 # Is the header present?
25883 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
25884 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
25885 cat >conftest.
$ac_ext <<_ACEOF
25888 cat confdefs.h
>>conftest.
$ac_ext
25889 cat >>conftest.
$ac_ext <<_ACEOF
25890 /* end confdefs.h. */
25891 #include <${FREETDS_DIR}/include/tds.h>
25893 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25894 case "(($ac_try" in
25895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25896 *) ac_try_echo=$ac_try;;
25898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25901 grep -v '^ *+' conftest.er1 >conftest.err
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } >/dev/null && {
25906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25907 test ! -s conftest.err
25909 ac_header_preproc=yes
25911 echo "$as_me: failed program was:" >&5
25912 sed 's/^/| /' conftest.$ac_ext >&5
25914 ac_header_preproc=no
25917 rm -f conftest.err conftest.$ac_ext
25918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25919 echo "${ECHO_T}$ac_header_preproc" >&6; }
25921 # So? What about this header?
25922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25924 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
25925 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25926 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
25927 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
25928 ac_header_preproc=yes
25931 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
25932 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
25933 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
25934 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
25935 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
25936 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
25937 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
25938 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
25939 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
25940 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
25941 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
25942 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
25946 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
25947 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
25948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25949 echo $ECHO_N "(cached) $ECHO_C" >&6
25951 eval "$as_ac_Header=\$ac_header_preproc"
25953 ac_res=`eval echo '${'$as_ac_Header'}'`
25954 { echo "$as_me:$LINENO: result: $ac_res" >&5
25955 echo "${ECHO_T}$ac_res" >&6; }
25958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25959 FREETDS_HEADER_FOUND=1
25961 FREETDS_HEADER_FOUND=0
25967 if test "xtds.h" != "x" ; then
25968 if test "${ac_cv_header_tds_h+set}" = set; then
25969 { echo "$as_me:$LINENO: checking for tds.h" >&5
25970 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
25971 if test "${ac_cv_header_tds_h+set}" = set; then
25972 echo $ECHO_N "(cached) $ECHO_C" >&6
25974 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
25975 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
25977 # Is the header compilable?
25978 { echo "$as_me:$LINENO: checking tds.h usability" >&5
25979 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
25980 cat >conftest.$ac_ext <<_ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h. */
25986 $ac_includes_default
25989 rm -f conftest.$ac_objext
25990 if { (ac_try="$ac_compile"
25991 case "(($ac_try" in
25992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25993 *) ac_try_echo
=$ac_try;;
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996 (eval "$ac_compile") 2>conftest.er1
25998 grep -v '^ *+' conftest.er1
>conftest.err
26000 cat conftest.err
>&5
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); } && {
26003 test -z "$ac_c_werror_flag" ||
26004 test ! -s conftest.err
26005 } && test -s conftest.
$ac_objext; then
26006 ac_header_compiler
=yes
26008 echo "$as_me: failed program was:" >&5
26009 sed 's/^/| /' conftest.
$ac_ext >&5
26011 ac_header_compiler
=no
26014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26016 echo "${ECHO_T}$ac_header_compiler" >&6; }
26018 # Is the header present?
26019 { echo "$as_me:$LINENO: checking tds.h presence" >&5
26020 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
26021 cat >conftest.
$ac_ext <<_ACEOF
26024 cat confdefs.h
>>conftest.
$ac_ext
26025 cat >>conftest.
$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26029 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26030 case "(($ac_try" in
26031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26032 *) ac_try_echo=$ac_try;;
26034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26037 grep -v '^ *+' conftest.er1 >conftest.err
26039 cat conftest.err >&5
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); } >/dev/null && {
26042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26043 test ! -s conftest.err
26045 ac_header_preproc=yes
26047 echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26050 ac_header_preproc=no
26053 rm -f conftest.err conftest.$ac_ext
26054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26055 echo "${ECHO_T}$ac_header_preproc" >&6; }
26057 # So? What about this header?
26058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26060 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26061 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26062 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
26063 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
26064 ac_header_preproc=yes
26067 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
26068 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
26069 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
26070 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
26071 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
26072 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
26073 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
26074 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26075 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
26076 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
26077 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
26078 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
26082 { echo "$as_me:$LINENO: checking for tds.h" >&5
26083 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26084 if test "${ac_cv_header_tds_h+set}" = set; then
26085 echo $ECHO_N "(cached) $ECHO_C" >&6
26087 ac_cv_header_tds_h=$ac_header_preproc
26089 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26090 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26093 if test $ac_cv_header_tds_h = yes; then
26094 FREETDS_HEADER_FOUND=1
26096 FREETDS_HEADER_FOUND=0
26102 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
26103 if test ! -z "${FREETDS_MANDATORY}" ;
26105 { echo "$as_me:$LINENO: ***" >&5
26106 echo "$as_me: ***" >&6;}
26107 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
26108 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
26109 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
26110 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
26111 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26112 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26121 cat >>confdefs.h <<_ACEOF
26122 #define HAVE_FREETDS 1
26126 elif test ! -z "${FREETDS_MANDATORY}";
26128 { echo "$as_me:$LINENO: ***" >&5
26129 echo "$as_me: ***" >&6;}
26130 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
26131 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
26132 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26133 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26134 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26135 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26140 if test "${PBX_FREETDS}" != "0";
26142 case `grep TDS_VERSION_NO
${FREETDS_DIR:-/usr/include}/tdsver.h
` in
26144 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
26147 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
26150 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
26153 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
26159 if test "${USE_TERMCAP}" != "no"; then
26161 if test "x${TERMCAP_DIR}" != "x"; then
26162 if test -d ${TERMCAP_DIR}/lib; then
26163 pbxlibdir="-L${TERMCAP_DIR}/lib"
26165 pbxlibdir="-L${TERMCAP_DIR}"
26168 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26169 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
26170 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26171 echo $ECHO_N "(cached) $ECHO_C" >&6
26173 ac_check_lib_save_LIBS=$LIBS
26174 LIBS="-ltermcap ${pbxlibdir} $LIBS"
26175 cat >conftest.$ac_ext <<_ACEOF
26178 cat confdefs.h >>conftest.$ac_ext
26179 cat >>conftest.$ac_ext <<_ACEOF
26180 /* end confdefs.h. */
26182 /* Override any GCC internal prototype to avoid an error.
26183 Use char because int might match the return type of a GCC
26184 builtin and then its argument prototype would still apply. */
26197 rm -f conftest.$ac_objext conftest$ac_exeext
26198 if { (ac_try="$ac_link"
26199 case "(($ac_try" in
26200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26201 *) ac_try_echo
=$ac_try;;
26203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26204 (eval "$ac_link") 2>conftest.er1
26206 grep -v '^ *+' conftest.er1
>conftest.err
26208 cat conftest.err
>&5
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } && {
26211 test -z "$ac_c_werror_flag" ||
26212 test ! -s conftest.err
26213 } && test -s conftest
$ac_exeext &&
26214 $as_test_x conftest
$ac_exeext; then
26215 ac_cv_lib_termcap_tgetent
=yes
26217 echo "$as_me: failed program was:" >&5
26218 sed 's/^/| /' conftest.
$ac_ext >&5
26220 ac_cv_lib_termcap_tgetent
=no
26223 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26224 conftest
$ac_exeext conftest.
$ac_ext
26225 LIBS
=$ac_check_lib_save_LIBS
26227 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26228 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
26229 if test $ac_cv_lib_termcap_tgetent = yes; then
26230 AST_TERMCAP_FOUND
=yes
26232 AST_TERMCAP_FOUND
=no
26236 if test "${AST_TERMCAP_FOUND}" = "yes"; then
26237 TERMCAP_LIB
="-ltermcap "
26238 TERMCAP_HEADER_FOUND
="1"
26239 if test "x${TERMCAP_DIR}" != "x"; then
26240 TERMCAP_LIB
="${pbxlibdir} ${TERMCAP_LIB}"
26241 TERMCAP_INCLUDE
="-I${TERMCAP_DIR}/include"
26242 if test "x" != "x" ; then
26243 as_ac_Header
=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
26244 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26245 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26246 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26247 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26248 echo $ECHO_N "(cached) $ECHO_C" >&6
26250 ac_res
=`eval echo '${'$as_ac_Header'}'`
26251 { echo "$as_me:$LINENO: result: $ac_res" >&5
26252 echo "${ECHO_T}$ac_res" >&6; }
26254 # Is the header compilable?
26255 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
26256 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
26257 cat >conftest.
$ac_ext <<_ACEOF
26260 cat confdefs.h
>>conftest.
$ac_ext
26261 cat >>conftest.
$ac_ext <<_ACEOF
26262 /* end confdefs.h. */
26263 $ac_includes_default
26264 #include <${TERMCAP_DIR}/include/>
26266 rm -f conftest.
$ac_objext
26267 if { (ac_try
="$ac_compile"
26268 case "(($ac_try" in
26269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26270 *) ac_try_echo=$ac_try;;
26272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26273 (eval "$ac_compile") 2>conftest.er1
26275 grep -v '^ *+' conftest.er1 >conftest.err
26277 cat conftest.err >&5
26278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); } && {
26280 test -z "$ac_c_werror_flag" ||
26281 test ! -s conftest.err
26282 } && test -s conftest.$ac_objext; then
26283 ac_header_compiler=yes
26285 echo "$as_me: failed program was:" >&5
26286 sed 's/^/| /' conftest.$ac_ext >&5
26288 ac_header_compiler=no
26291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26293 echo "${ECHO_T}$ac_header_compiler" >&6; }
26295 # Is the header present?
26296 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
26297 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
26298 cat >conftest.$ac_ext <<_ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h. */
26304 #include <${TERMCAP_DIR}/include/>
26306 if { (ac_try="$ac_cpp conftest.$ac_ext"
26307 case "(($ac_try" in
26308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26309 *) ac_try_echo
=$ac_try;;
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26314 grep -v '^ *+' conftest.er1
>conftest.err
26316 cat conftest.err
>&5
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); } >/dev
/null
&& {
26319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26320 test ! -s conftest.err
26322 ac_header_preproc
=yes
26324 echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.
$ac_ext >&5
26327 ac_header_preproc
=no
26330 rm -f conftest.err conftest.
$ac_ext
26331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26332 echo "${ECHO_T}$ac_header_preproc" >&6; }
26334 # So? What about this header?
26335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26337 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26338 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26339 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
26340 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
26341 ac_header_preproc
=yes
26344 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
26345 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
26346 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
26347 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
26348 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
26349 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
26350 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26351 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26352 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
26353 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26354 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
26355 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26359 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26360 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26361 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 eval "$as_ac_Header=\$ac_header_preproc"
26366 ac_res
=`eval echo '${'$as_ac_Header'}'`
26367 { echo "$as_me:$LINENO: result: $ac_res" >&5
26368 echo "${ECHO_T}$ac_res" >&6; }
26371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26372 TERMCAP_HEADER_FOUND
=1
26374 TERMCAP_HEADER_FOUND
=0
26380 if test "x" != "x" ; then
26381 if test "${ac_cv_header_+set}" = set; then
26382 { echo "$as_me:$LINENO: checking for " >&5
26383 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26384 if test "${ac_cv_header_+set}" = set; then
26385 echo $ECHO_N "(cached) $ECHO_C" >&6
26387 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26388 echo "${ECHO_T}$ac_cv_header_" >&6; }
26390 # Is the header compilable?
26391 { echo "$as_me:$LINENO: checking usability" >&5
26392 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26393 cat >conftest.
$ac_ext <<_ACEOF
26396 cat confdefs.h
>>conftest.
$ac_ext
26397 cat >>conftest.
$ac_ext <<_ACEOF
26398 /* end confdefs.h. */
26399 $ac_includes_default
26402 rm -f conftest.
$ac_objext
26403 if { (ac_try
="$ac_compile"
26404 case "(($ac_try" in
26405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26406 *) ac_try_echo=$ac_try;;
26408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26409 (eval "$ac_compile") 2>conftest.er1
26411 grep -v '^ *+' conftest.er1 >conftest.err
26413 cat conftest.err >&5
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); } && {
26416 test -z "$ac_c_werror_flag" ||
26417 test ! -s conftest.err
26418 } && test -s conftest.$ac_objext; then
26419 ac_header_compiler=yes
26421 echo "$as_me: failed program was:" >&5
26422 sed 's/^/| /' conftest.$ac_ext >&5
26424 ac_header_compiler=no
26427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26429 echo "${ECHO_T}$ac_header_compiler" >&6; }
26431 # Is the header present?
26432 { echo "$as_me:$LINENO: checking presence" >&5
26433 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26434 cat >conftest.$ac_ext <<_ACEOF
26437 cat confdefs.h >>conftest.$ac_ext
26438 cat >>conftest.$ac_ext <<_ACEOF
26439 /* end confdefs.h. */
26442 if { (ac_try="$ac_cpp conftest.$ac_ext"
26443 case "(($ac_try" in
26444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26445 *) ac_try_echo
=$ac_try;;
26447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26450 grep -v '^ *+' conftest.er1
>conftest.err
26452 cat conftest.err
>&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); } >/dev
/null
&& {
26455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26456 test ! -s conftest.err
26458 ac_header_preproc
=yes
26460 echo "$as_me: failed program was:" >&5
26461 sed 's/^/| /' conftest.
$ac_ext >&5
26463 ac_header_preproc
=no
26466 rm -f conftest.err conftest.
$ac_ext
26467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26468 echo "${ECHO_T}$ac_header_preproc" >&6; }
26470 # So? What about this header?
26471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26473 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26474 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26475 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26476 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26477 ac_header_preproc
=yes
26480 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26481 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26482 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26483 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26484 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26485 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26486 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26487 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26488 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26489 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26490 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26491 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26495 { echo "$as_me:$LINENO: checking for " >&5
26496 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26497 if test "${ac_cv_header_+set}" = set; then
26498 echo $ECHO_N "(cached) $ECHO_C" >&6
26500 ac_cv_header_
=$ac_header_preproc
26502 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26503 echo "${ECHO_T}$ac_cv_header_" >&6; }
26506 if test $ac_cv_header_ = yes; then
26507 TERMCAP_HEADER_FOUND
=1
26509 TERMCAP_HEADER_FOUND
=0
26515 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
26516 if test ! -z "${TERMCAP_MANDATORY}" ;
26518 { echo "$as_me:$LINENO: ***" >&5
26519 echo "$as_me: ***" >&6;}
26520 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
26521 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
26522 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
26523 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
26524 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
26525 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
26534 cat >>confdefs.h
<<_ACEOF
26535 #define HAVE_TERMCAP 1
26539 elif test ! -z "${TERMCAP_MANDATORY}";
26541 { echo "$as_me:$LINENO: ***" >&5
26542 echo "$as_me: ***" >&6;}
26543 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
26544 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
26545 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26546 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26547 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
26548 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
26555 if test "${USE_TINFO}" != "no"; then
26557 if test "x${TINFO_DIR}" != "x"; then
26558 if test -d ${TINFO_DIR}/lib
; then
26559 pbxlibdir
="-L${TINFO_DIR}/lib"
26561 pbxlibdir
="-L${TINFO_DIR}"
26564 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
26565 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
26566 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26567 echo $ECHO_N "(cached) $ECHO_C" >&6
26569 ac_check_lib_save_LIBS
=$LIBS
26570 LIBS
="-ltinfo ${pbxlibdir} $LIBS"
26571 cat >conftest.
$ac_ext <<_ACEOF
26574 cat confdefs.h
>>conftest.
$ac_ext
26575 cat >>conftest.
$ac_ext <<_ACEOF
26576 /* end confdefs.h. */
26578 /* Override any GCC internal prototype to avoid an error.
26579 Use char because int might match the return type of a GCC
26580 builtin and then its argument prototype would still apply. */
26593 rm -f conftest.
$ac_objext conftest
$ac_exeext
26594 if { (ac_try
="$ac_link"
26595 case "(($ac_try" in
26596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26597 *) ac_try_echo=$ac_try;;
26599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26600 (eval "$ac_link") 2>conftest.er1
26602 grep -v '^ *+' conftest.er1 >conftest.err
26604 cat conftest.err >&5
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); } && {
26607 test -z "$ac_c_werror_flag" ||
26608 test ! -s conftest.err
26609 } && test -s conftest$ac_exeext &&
26610 $as_test_x conftest$ac_exeext; then
26611 ac_cv_lib_tinfo_tgetent=yes
26613 echo "$as_me: failed program was:" >&5
26614 sed 's/^/| /' conftest.$ac_ext >&5
26616 ac_cv_lib_tinfo_tgetent=no
26619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26620 conftest$ac_exeext conftest.$ac_ext
26621 LIBS=$ac_check_lib_save_LIBS
26623 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
26624 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
26625 if test $ac_cv_lib_tinfo_tgetent = yes; then
26626 AST_TINFO_FOUND=yes
26632 if test "${AST_TINFO_FOUND}" = "yes"; then
26633 TINFO_LIB="-ltinfo "
26634 TINFO_HEADER_FOUND="1"
26635 if test "x${TINFO_DIR}" != "x"; then
26636 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
26637 TINFO_INCLUDE="-I${TINFO_DIR}/include"
26638 if test "x" != "x" ; then
26639 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" |
$as_tr_sh`
26640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26641 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
26642 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
26643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26644 echo $ECHO_N "(cached) $ECHO_C" >&6
26646 ac_res=`eval echo '${'$as_ac_Header'}'`
26647 { echo "$as_me:$LINENO: result: $ac_res" >&5
26648 echo "${ECHO_T}$ac_res" >&6; }
26650 # Is the header compilable?
26651 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
26652 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
26653 cat >conftest.$ac_ext <<_ACEOF
26656 cat confdefs.h >>conftest.$ac_ext
26657 cat >>conftest.$ac_ext <<_ACEOF
26658 /* end confdefs.h. */
26659 $ac_includes_default
26660 #include <${TINFO_DIR}/include/>
26662 rm -f conftest.$ac_objext
26663 if { (ac_try="$ac_compile"
26664 case "(($ac_try" in
26665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26666 *) ac_try_echo
=$ac_try;;
26668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26669 (eval "$ac_compile") 2>conftest.er1
26671 grep -v '^ *+' conftest.er1
>conftest.err
26673 cat conftest.err
>&5
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); } && {
26676 test -z "$ac_c_werror_flag" ||
26677 test ! -s conftest.err
26678 } && test -s conftest.
$ac_objext; then
26679 ac_header_compiler
=yes
26681 echo "$as_me: failed program was:" >&5
26682 sed 's/^/| /' conftest.
$ac_ext >&5
26684 ac_header_compiler
=no
26687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26689 echo "${ECHO_T}$ac_header_compiler" >&6; }
26691 # Is the header present?
26692 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
26693 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
26694 cat >conftest.
$ac_ext <<_ACEOF
26697 cat confdefs.h
>>conftest.
$ac_ext
26698 cat >>conftest.
$ac_ext <<_ACEOF
26699 /* end confdefs.h. */
26700 #include <${TINFO_DIR}/include/>
26702 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26703 case "(($ac_try" in
26704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26705 *) ac_try_echo=$ac_try;;
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26710 grep -v '^ *+' conftest.er1 >conftest.err
26712 cat conftest.err >&5
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); } >/dev/null && {
26715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26716 test ! -s conftest.err
26718 ac_header_preproc=yes
26720 echo "$as_me: failed program was:" >&5
26721 sed 's/^/| /' conftest.$ac_ext >&5
26723 ac_header_preproc=no
26726 rm -f conftest.err conftest.$ac_ext
26727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26728 echo "${ECHO_T}$ac_header_preproc" >&6; }
26730 # So? What about this header?
26731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26733 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26734 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26735 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
26736 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
26737 ac_header_preproc=yes
26740 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
26741 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
26742 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
26743 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
26744 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
26745 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
26746 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26747 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26748 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
26749 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26750 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
26751 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26755 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
26756 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
26757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26760 eval "$as_ac_Header=\$ac_header_preproc"
26762 ac_res=`eval echo '${'$as_ac_Header'}'`
26763 { echo "$as_me:$LINENO: result: $ac_res" >&5
26764 echo "${ECHO_T}$ac_res" >&6; }
26767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26768 TINFO_HEADER_FOUND=1
26770 TINFO_HEADER_FOUND=0
26776 if test "x" != "x" ; then
26777 if test "${ac_cv_header_+set}" = set; then
26778 { echo "$as_me:$LINENO: checking for " >&5
26779 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26780 if test "${ac_cv_header_+set}" = set; then
26781 echo $ECHO_N "(cached) $ECHO_C" >&6
26783 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26784 echo "${ECHO_T}$ac_cv_header_" >&6; }
26786 # Is the header compilable?
26787 { echo "$as_me:$LINENO: checking usability" >&5
26788 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26789 cat >conftest.$ac_ext <<_ACEOF
26792 cat confdefs.h >>conftest.$ac_ext
26793 cat >>conftest.$ac_ext <<_ACEOF
26794 /* end confdefs.h. */
26795 $ac_includes_default
26798 rm -f conftest.$ac_objext
26799 if { (ac_try="$ac_compile"
26800 case "(($ac_try" in
26801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26802 *) ac_try_echo
=$ac_try;;
26804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26805 (eval "$ac_compile") 2>conftest.er1
26807 grep -v '^ *+' conftest.er1
>conftest.err
26809 cat conftest.err
>&5
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); } && {
26812 test -z "$ac_c_werror_flag" ||
26813 test ! -s conftest.err
26814 } && test -s conftest.
$ac_objext; then
26815 ac_header_compiler
=yes
26817 echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.
$ac_ext >&5
26820 ac_header_compiler
=no
26823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26825 echo "${ECHO_T}$ac_header_compiler" >&6; }
26827 # Is the header present?
26828 { echo "$as_me:$LINENO: checking presence" >&5
26829 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26830 cat >conftest.
$ac_ext <<_ACEOF
26833 cat confdefs.h
>>conftest.
$ac_ext
26834 cat >>conftest.
$ac_ext <<_ACEOF
26835 /* end confdefs.h. */
26838 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26839 case "(($ac_try" in
26840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26841 *) ac_try_echo=$ac_try;;
26843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26846 grep -v '^ *+' conftest.er1 >conftest.err
26848 cat conftest.err >&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); } >/dev/null && {
26851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26852 test ! -s conftest.err
26854 ac_header_preproc=yes
26856 echo "$as_me: failed program was:" >&5
26857 sed 's/^/| /' conftest.$ac_ext >&5
26859 ac_header_preproc=no
26862 rm -f conftest.err conftest.$ac_ext
26863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26864 echo "${ECHO_T}$ac_header_preproc" >&6; }
26866 # So? What about this header?
26867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26869 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26870 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26872 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26873 ac_header_preproc=yes
26876 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26877 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26878 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26879 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26880 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26881 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26882 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26883 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26884 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26885 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26886 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26887 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26891 { echo "$as_me:$LINENO: checking for " >&5
26892 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26893 if test "${ac_cv_header_+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26896 ac_cv_header_=$ac_header_preproc
26898 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26899 echo "${ECHO_T}$ac_cv_header_" >&6; }
26902 if test $ac_cv_header_ = yes; then
26903 TINFO_HEADER_FOUND=1
26905 TINFO_HEADER_FOUND=0
26911 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
26912 if test ! -z "${TINFO_MANDATORY}" ;
26914 { echo "$as_me:$LINENO: ***" >&5
26915 echo "$as_me: ***" >&6;}
26916 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
26917 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
26918 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
26919 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
26920 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
26921 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
26930 cat >>confdefs.h <<_ACEOF
26931 #define HAVE_TINFO 1
26935 elif test ! -z "${TINFO_MANDATORY}";
26937 { echo "$as_me:$LINENO: ***" >&5
26938 echo "$as_me: ***" >&6;}
26939 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
26940 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
26941 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26942 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26943 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
26944 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
26950 if test "${host_os}" != "linux-gnu" ; then
26951 tonezone_extra="-lm"
26955 if test "${USE_TONEZONE}" != "no"; then
26957 if test "x${TONEZONE_DIR}" != "x"; then
26958 if test -d ${TONEZONE_DIR}/lib; then
26959 pbxlibdir="-L${TONEZONE_DIR}/lib"
26961 pbxlibdir="-L${TONEZONE_DIR}"
26964 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
26965 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
26966 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
26967 echo $ECHO_N "(cached) $ECHO_C" >&6
26969 ac_check_lib_save_LIBS=$LIBS
26970 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
26971 cat >conftest.$ac_ext <<_ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h. */
26978 /* Override any GCC internal prototype to avoid an error.
26979 Use char because int might match the return type of a GCC
26980 builtin and then its argument prototype would still apply. */
26984 char tone_zone_find ();
26988 return tone_zone_find ();
26993 rm -f conftest.$ac_objext conftest$ac_exeext
26994 if { (ac_try="$ac_link"
26995 case "(($ac_try" in
26996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26997 *) ac_try_echo
=$ac_try;;
26999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27000 (eval "$ac_link") 2>conftest.er1
27002 grep -v '^ *+' conftest.er1
>conftest.err
27004 cat conftest.err
>&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } && {
27007 test -z "$ac_c_werror_flag" ||
27008 test ! -s conftest.err
27009 } && test -s conftest
$ac_exeext &&
27010 $as_test_x conftest
$ac_exeext; then
27011 ac_cv_lib_tonezone_tone_zone_find
=yes
27013 echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.
$ac_ext >&5
27016 ac_cv_lib_tonezone_tone_zone_find
=no
27019 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27020 conftest
$ac_exeext conftest.
$ac_ext
27021 LIBS
=$ac_check_lib_save_LIBS
27023 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
27024 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
27025 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
27026 AST_TONEZONE_FOUND
=yes
27028 AST_TONEZONE_FOUND
=no
27032 if test "${AST_TONEZONE_FOUND}" = "yes"; then
27033 TONEZONE_LIB
="-ltonezone ${tonezone_extra}"
27034 TONEZONE_HEADER_FOUND
="1"
27035 if test "x${TONEZONE_DIR}" != "x"; then
27036 TONEZONE_LIB
="${pbxlibdir} ${TONEZONE_LIB}"
27037 TONEZONE_INCLUDE
="-I${TONEZONE_DIR}/include"
27038 if test "xzaptel/tonezone.h" != "x" ; then
27039 as_ac_Header
=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
27040 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27041 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27042 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27043 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27044 echo $ECHO_N "(cached) $ECHO_C" >&6
27046 ac_res
=`eval echo '${'$as_ac_Header'}'`
27047 { echo "$as_me:$LINENO: result: $ac_res" >&5
27048 echo "${ECHO_T}$ac_res" >&6; }
27050 # Is the header compilable?
27051 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
27052 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
27053 cat >conftest.
$ac_ext <<_ACEOF
27056 cat confdefs.h
>>conftest.
$ac_ext
27057 cat >>conftest.
$ac_ext <<_ACEOF
27058 /* end confdefs.h. */
27059 $ac_includes_default
27060 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27062 rm -f conftest.
$ac_objext
27063 if { (ac_try
="$ac_compile"
27064 case "(($ac_try" in
27065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27066 *) ac_try_echo=$ac_try;;
27068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27069 (eval "$ac_compile") 2>conftest.er1
27071 grep -v '^ *+' conftest.er1 >conftest.err
27073 cat conftest.err >&5
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); } && {
27076 test -z "$ac_c_werror_flag" ||
27077 test ! -s conftest.err
27078 } && test -s conftest.$ac_objext; then
27079 ac_header_compiler=yes
27081 echo "$as_me: failed program was:" >&5
27082 sed 's/^/| /' conftest.$ac_ext >&5
27084 ac_header_compiler=no
27087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27089 echo "${ECHO_T}$ac_header_compiler" >&6; }
27091 # Is the header present?
27092 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
27093 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
27094 cat >conftest.$ac_ext <<_ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h. */
27100 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27102 if { (ac_try="$ac_cpp conftest.$ac_ext"
27103 case "(($ac_try" in
27104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27105 *) ac_try_echo
=$ac_try;;
27107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27110 grep -v '^ *+' conftest.er1
>conftest.err
27112 cat conftest.err
>&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } >/dev
/null
&& {
27115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27116 test ! -s conftest.err
27118 ac_header_preproc
=yes
27120 echo "$as_me: failed program was:" >&5
27121 sed 's/^/| /' conftest.
$ac_ext >&5
27123 ac_header_preproc
=no
27126 rm -f conftest.err conftest.
$ac_ext
27127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27128 echo "${ECHO_T}$ac_header_preproc" >&6; }
27130 # So? What about this header?
27131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27133 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27134 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27135 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
27136 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27137 ac_header_preproc
=yes
27140 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
27141 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
27142 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27143 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27144 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
27145 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27146 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27147 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27148 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27149 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27150 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27151 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27155 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27156 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27157 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27158 echo $ECHO_N "(cached) $ECHO_C" >&6
27160 eval "$as_ac_Header=\$ac_header_preproc"
27162 ac_res
=`eval echo '${'$as_ac_Header'}'`
27163 { echo "$as_me:$LINENO: result: $ac_res" >&5
27164 echo "${ECHO_T}$ac_res" >&6; }
27167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27168 TONEZONE_HEADER_FOUND
=1
27170 TONEZONE_HEADER_FOUND
=0
27176 if test "xzaptel/tonezone.h" != "x" ; then
27177 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27178 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27179 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27180 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27183 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27184 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27186 # Is the header compilable?
27187 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
27188 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
27189 cat >conftest.
$ac_ext <<_ACEOF
27192 cat confdefs.h
>>conftest.
$ac_ext
27193 cat >>conftest.
$ac_ext <<_ACEOF
27194 /* end confdefs.h. */
27195 $ac_includes_default
27196 #include <zaptel/tonezone.h>
27198 rm -f conftest.
$ac_objext
27199 if { (ac_try
="$ac_compile"
27200 case "(($ac_try" in
27201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27202 *) ac_try_echo=$ac_try;;
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205 (eval "$ac_compile") 2>conftest.er1
27207 grep -v '^ *+' conftest.er1 >conftest.err
27209 cat conftest.err >&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); } && {
27212 test -z "$ac_c_werror_flag" ||
27213 test ! -s conftest.err
27214 } && test -s conftest.$ac_objext; then
27215 ac_header_compiler=yes
27217 echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27220 ac_header_compiler=no
27223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27225 echo "${ECHO_T}$ac_header_compiler" >&6; }
27227 # Is the header present?
27228 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
27229 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
27230 cat >conftest.$ac_ext <<_ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h. */
27236 #include <zaptel/tonezone.h>
27238 if { (ac_try="$ac_cpp conftest.$ac_ext"
27239 case "(($ac_try" in
27240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27241 *) ac_try_echo
=$ac_try;;
27243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27246 grep -v '^ *+' conftest.er1
>conftest.err
27248 cat conftest.err
>&5
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); } >/dev
/null
&& {
27251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27252 test ! -s conftest.err
27254 ac_header_preproc
=yes
27256 echo "$as_me: failed program was:" >&5
27257 sed 's/^/| /' conftest.
$ac_ext >&5
27259 ac_header_preproc
=no
27262 rm -f conftest.err conftest.
$ac_ext
27263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27264 echo "${ECHO_T}$ac_header_preproc" >&6; }
27266 # So? What about this header?
27267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27269 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27270 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27271 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
27272 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27273 ac_header_preproc
=yes
27276 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
27277 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
27278 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27279 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27280 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
27281 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27282 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27283 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27284 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27285 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27286 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27287 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27291 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27292 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27293 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27294 echo $ECHO_N "(cached) $ECHO_C" >&6
27296 ac_cv_header_zaptel_tonezone_h
=$ac_header_preproc
27298 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27299 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27302 if test $ac_cv_header_zaptel_tonezone_h = yes; then
27303 TONEZONE_HEADER_FOUND
=1
27305 TONEZONE_HEADER_FOUND
=0
27311 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
27312 if test ! -z "${TONEZONE_MANDATORY}" ;
27314 { echo "$as_me:$LINENO: ***" >&5
27315 echo "$as_me: ***" >&6;}
27316 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
27317 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
27318 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
27319 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
27320 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27321 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27325 TONEZONE_INCLUDE
=""
27330 cat >>confdefs.h
<<_ACEOF
27331 #define HAVE_TONEZONE 1
27335 elif test ! -z "${TONEZONE_MANDATORY}";
27337 { echo "$as_me:$LINENO: ***" >&5
27338 echo "$as_me: ***" >&6;}
27339 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
27340 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
27341 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27342 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27343 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27344 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27351 if test "${USE_VORBIS}" != "no"; then
27353 if test "x${VORBIS_DIR}" != "x"; then
27354 if test -d ${VORBIS_DIR}/lib
; then
27355 pbxlibdir
="-L${VORBIS_DIR}/lib"
27357 pbxlibdir
="-L${VORBIS_DIR}"
27360 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
27361 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
27362 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
27363 echo $ECHO_N "(cached) $ECHO_C" >&6
27365 ac_check_lib_save_LIBS
=$LIBS
27366 LIBS
="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
27367 cat >conftest.
$ac_ext <<_ACEOF
27370 cat confdefs.h
>>conftest.
$ac_ext
27371 cat >>conftest.
$ac_ext <<_ACEOF
27372 /* end confdefs.h. */
27374 /* Override any GCC internal prototype to avoid an error.
27375 Use char because int might match the return type of a GCC
27376 builtin and then its argument prototype would still apply. */
27380 char vorbis_info_init ();
27384 return vorbis_info_init ();
27389 rm -f conftest.
$ac_objext conftest
$ac_exeext
27390 if { (ac_try
="$ac_link"
27391 case "(($ac_try" in
27392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_link") 2>conftest.er1
27398 grep -v '^ *+' conftest.er1 >conftest.err
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } && {
27403 test -z "$ac_c_werror_flag" ||
27404 test ! -s conftest.err
27405 } && test -s conftest$ac_exeext &&
27406 $as_test_x conftest$ac_exeext; then
27407 ac_cv_lib_vorbis_vorbis_info_init=yes
27409 echo "$as_me: failed program was:" >&5
27410 sed 's/^/| /' conftest.$ac_ext >&5
27412 ac_cv_lib_vorbis_vorbis_info_init=no
27415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27416 conftest$ac_exeext conftest.$ac_ext
27417 LIBS=$ac_check_lib_save_LIBS
27419 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
27420 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
27421 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
27422 AST_VORBIS_FOUND=yes
27424 AST_VORBIS_FOUND=no
27428 if test "${AST_VORBIS_FOUND}" = "yes"; then
27429 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
27430 VORBIS_HEADER_FOUND="1"
27431 if test "x${VORBIS_DIR}" != "x"; then
27432 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
27433 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
27434 if test "xvorbis/codec.h" != "x" ; then
27435 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" |
$as_tr_sh`
27436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27437 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
27438 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
27439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27440 echo $ECHO_N "(cached) $ECHO_C" >&6
27442 ac_res=`eval echo '${'$as_ac_Header'}'`
27443 { echo "$as_me:$LINENO: result: $ac_res" >&5
27444 echo "${ECHO_T}$ac_res" >&6; }
27446 # Is the header compilable?
27447 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
27448 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
27449 cat >conftest.$ac_ext <<_ACEOF
27452 cat confdefs.h >>conftest.$ac_ext
27453 cat >>conftest.$ac_ext <<_ACEOF
27454 /* end confdefs.h. */
27455 $ac_includes_default
27456 #include <${VORBIS_DIR}/include/vorbis/codec.h>
27458 rm -f conftest.$ac_objext
27459 if { (ac_try="$ac_compile"
27460 case "(($ac_try" in
27461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27462 *) ac_try_echo
=$ac_try;;
27464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27465 (eval "$ac_compile") 2>conftest.er1
27467 grep -v '^ *+' conftest.er1
>conftest.err
27469 cat conftest.err
>&5
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); } && {
27472 test -z "$ac_c_werror_flag" ||
27473 test ! -s conftest.err
27474 } && test -s conftest.
$ac_objext; then
27475 ac_header_compiler
=yes
27477 echo "$as_me: failed program was:" >&5
27478 sed 's/^/| /' conftest.
$ac_ext >&5
27480 ac_header_compiler
=no
27483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27485 echo "${ECHO_T}$ac_header_compiler" >&6; }
27487 # Is the header present?
27488 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
27489 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
27490 cat >conftest.
$ac_ext <<_ACEOF
27493 cat confdefs.h
>>conftest.
$ac_ext
27494 cat >>conftest.
$ac_ext <<_ACEOF
27495 /* end confdefs.h. */
27496 #include <${VORBIS_DIR}/include/vorbis/codec.h>
27498 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27499 case "(($ac_try" in
27500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27501 *) ac_try_echo=$ac_try;;
27503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27506 grep -v '^ *+' conftest.er1 >conftest.err
27508 cat conftest.err >&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); } >/dev/null && {
27511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27512 test ! -s conftest.err
27514 ac_header_preproc=yes
27516 echo "$as_me: failed program was:" >&5
27517 sed 's/^/| /' conftest.$ac_ext >&5
27519 ac_header_preproc=no
27522 rm -f conftest.err conftest.$ac_ext
27523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27524 echo "${ECHO_T}$ac_header_preproc" >&6; }
27526 # So? What about this header?
27527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27529 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
27530 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27531 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
27532 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
27533 ac_header_preproc=yes
27536 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
27537 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
27538 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
27539 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
27540 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
27541 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
27542 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
27543 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
27544 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
27545 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
27546 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
27547 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
27551 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
27552 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
27553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27554 echo $ECHO_N "(cached) $ECHO_C" >&6
27556 eval "$as_ac_Header=\$ac_header_preproc"
27558 ac_res=`eval echo '${'$as_ac_Header'}'`
27559 { echo "$as_me:$LINENO: result: $ac_res" >&5
27560 echo "${ECHO_T}$ac_res" >&6; }
27563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27564 VORBIS_HEADER_FOUND=1
27566 VORBIS_HEADER_FOUND=0
27572 if test "xvorbis/codec.h" != "x" ; then
27573 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27574 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
27575 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
27576 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27577 echo $ECHO_N "(cached) $ECHO_C" >&6
27579 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
27580 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
27582 # Is the header compilable?
27583 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
27584 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
27585 cat >conftest.$ac_ext <<_ACEOF
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h. */
27591 $ac_includes_default
27592 #include <vorbis/codec.h>
27594 rm -f conftest.$ac_objext
27595 if { (ac_try="$ac_compile"
27596 case "(($ac_try" in
27597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27598 *) ac_try_echo
=$ac_try;;
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_compile") 2>conftest.er1
27603 grep -v '^ *+' conftest.er1
>conftest.err
27605 cat conftest.err
>&5
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); } && {
27608 test -z "$ac_c_werror_flag" ||
27609 test ! -s conftest.err
27610 } && test -s conftest.
$ac_objext; then
27611 ac_header_compiler
=yes
27613 echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.
$ac_ext >&5
27616 ac_header_compiler
=no
27619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27621 echo "${ECHO_T}$ac_header_compiler" >&6; }
27623 # Is the header present?
27624 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
27625 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
27626 cat >conftest.
$ac_ext <<_ACEOF
27629 cat confdefs.h
>>conftest.
$ac_ext
27630 cat >>conftest.
$ac_ext <<_ACEOF
27631 /* end confdefs.h. */
27632 #include <vorbis/codec.h>
27634 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27635 case "(($ac_try" in
27636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27637 *) ac_try_echo=$ac_try;;
27639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27642 grep -v '^ *+' conftest.er1 >conftest.err
27644 cat conftest.err >&5
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); } >/dev/null && {
27647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27648 test ! -s conftest.err
27650 ac_header_preproc=yes
27652 echo "$as_me: failed program was:" >&5
27653 sed 's/^/| /' conftest.$ac_ext >&5
27655 ac_header_preproc=no
27658 rm -f conftest.err conftest.$ac_ext
27659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27660 echo "${ECHO_T}$ac_header_preproc" >&6; }
27662 # So? What about this header?
27663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27665 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
27666 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27667 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
27668 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
27669 ac_header_preproc=yes
27672 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
27673 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
27674 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
27675 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
27676 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
27677 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
27678 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
27679 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
27680 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
27681 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
27682 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
27683 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
27687 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
27688 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
27689 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27690 echo $ECHO_N "(cached) $ECHO_C" >&6
27692 ac_cv_header_vorbis_codec_h=$ac_header_preproc
27694 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
27695 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
27698 if test $ac_cv_header_vorbis_codec_h = yes; then
27699 VORBIS_HEADER_FOUND=1
27701 VORBIS_HEADER_FOUND=0
27707 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
27708 if test ! -z "${VORBIS_MANDATORY}" ;
27710 { echo "$as_me:$LINENO: ***" >&5
27711 echo "$as_me: ***" >&6;}
27712 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
27713 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
27714 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
27715 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
27716 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
27717 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
27726 cat >>confdefs.h <<_ACEOF
27727 #define HAVE_VORBIS 1
27731 elif test ! -z "${VORBIS_MANDATORY}";
27733 { echo "$as_me:$LINENO: ***" >&5
27734 echo "$as_me: ***" >&6;}
27735 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
27736 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
27737 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27738 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27739 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
27740 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
27747 ac_cpp='$CXXCPP $CPPFLAGS'
27748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27753 if test "${USE_VPB}" != "no"; then
27754 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
27755 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
27756 saved_libs="${LIBS}"
27757 saved_cppflags="${CPPFLAGS}"
27758 if test "x${VPB_DIR}" != "x"; then
27759 if test -d ${VPB_DIR}/lib; then
27760 vpblibdir=${VPB_DIR}/lib
27762 vpblibdir=${VPB_DIR}
27764 LIBS="${LIBS} -L${vpblibdir}"
27765 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
27767 LIBS="${LIBS} -lvpb -lpthread"
27768 cat >conftest.$ac_ext <<_ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775 #include <vpbapi.h>
27779 int q = vpb_open(0,0);
27785 rm -f conftest.$ac_objext conftest$ac_exeext
27786 if { (ac_try="$ac_link"
27787 case "(($ac_try" in
27788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27789 *) ac_try_echo
=$ac_try;;
27791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27792 (eval "$ac_link") 2>conftest.er1
27794 grep -v '^ *+' conftest.er1
>conftest.err
27796 cat conftest.err
>&5
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); } && {
27799 test -z "$ac_cxx_werror_flag" ||
27800 test ! -s conftest.err
27801 } && test -s conftest
$ac_exeext &&
27802 $as_test_x conftest
$ac_exeext; then
27803 { echo "$as_me:$LINENO: result: yes" >&5
27804 echo "${ECHO_T}yes" >&6; }
27805 ac_cv_lib_vpb_vpb_open
="yes"
27808 echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.
$ac_ext >&5
27811 { echo "$as_me:$LINENO: result: no" >&5
27812 echo "${ECHO_T}no" >&6; }
27813 ac_cv_lib_vpb_vpb_open
="no"
27818 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27819 conftest
$ac_exeext conftest.
$ac_ext
27820 LIBS
="${saved_libs}"
27821 CPPFLAGS
="${saved_cppflags}"
27822 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
27824 if test "${VPB_DIR}" != ""; then
27825 VPB_LIB
="-L${vpblibdir} ${VPB_LIB}"
27826 VPB_INCLUDE
="-I${VPB_DIR}/include"
27830 cat >>confdefs.h
<<\_ACEOF
27834 elif test ! -z "${VPB_MANDATORY}"; then
27835 { echo "$as_me:$LINENO: ***" >&5
27836 echo "$as_me: ***" >&6;}
27837 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
27838 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
27839 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27840 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27841 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
27842 echo "$as_me: *** including --without-vpb." >&6;}
27848 ac_cpp
='$CPP $CPPFLAGS'
27849 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27850 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27851 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27855 if test "${USE_ZLIB}" != "no"; then
27857 if test "x${ZLIB_DIR}" != "x"; then
27858 if test -d ${ZLIB_DIR}/lib
; then
27859 pbxlibdir
="-L${ZLIB_DIR}/lib"
27861 pbxlibdir
="-L${ZLIB_DIR}"
27864 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
27865 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
27866 if test "${ac_cv_lib_z_compress+set}" = set; then
27867 echo $ECHO_N "(cached) $ECHO_C" >&6
27869 ac_check_lib_save_LIBS
=$LIBS
27870 LIBS
="-lz ${pbxlibdir} $LIBS"
27871 cat >conftest.
$ac_ext <<_ACEOF
27874 cat confdefs.h
>>conftest.
$ac_ext
27875 cat >>conftest.
$ac_ext <<_ACEOF
27876 /* end confdefs.h. */
27878 /* Override any GCC internal prototype to avoid an error.
27879 Use char because int might match the return type of a GCC
27880 builtin and then its argument prototype would still apply. */
27888 return compress ();
27893 rm -f conftest.
$ac_objext conftest
$ac_exeext
27894 if { (ac_try
="$ac_link"
27895 case "(($ac_try" in
27896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27897 *) ac_try_echo=$ac_try;;
27899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27900 (eval "$ac_link") 2>conftest.er1
27902 grep -v '^ *+' conftest.er1 >conftest.err
27904 cat conftest.err >&5
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); } && {
27907 test -z "$ac_c_werror_flag" ||
27908 test ! -s conftest.err
27909 } && test -s conftest$ac_exeext &&
27910 $as_test_x conftest$ac_exeext; then
27911 ac_cv_lib_z_compress=yes
27913 echo "$as_me: failed program was:" >&5
27914 sed 's/^/| /' conftest.$ac_ext >&5
27916 ac_cv_lib_z_compress=no
27919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27920 conftest$ac_exeext conftest.$ac_ext
27921 LIBS=$ac_check_lib_save_LIBS
27923 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
27924 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
27925 if test $ac_cv_lib_z_compress = yes; then
27932 if test "${AST_ZLIB_FOUND}" = "yes"; then
27934 ZLIB_HEADER_FOUND="1"
27935 if test "x${ZLIB_DIR}" != "x"; then
27936 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
27937 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
27938 if test "xzlib.h" != "x" ; then
27939 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" |
$as_tr_sh`
27940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27941 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
27942 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
27943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27944 echo $ECHO_N "(cached) $ECHO_C" >&6
27946 ac_res=`eval echo '${'$as_ac_Header'}'`
27947 { echo "$as_me:$LINENO: result: $ac_res" >&5
27948 echo "${ECHO_T}$ac_res" >&6; }
27950 # Is the header compilable?
27951 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
27952 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.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 <${ZLIB_DIR}/include/zlib.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 ${ZLIB_DIR}/include/zlib.h presence" >&5
27993 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.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 <${ZLIB_DIR}/include/zlib.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: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28034 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28035 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
28036 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
28037 ac_header_preproc=yes
28040 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
28041 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
28042 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
28043 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
28044 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
28045 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
28046 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28047 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28048 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
28049 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
28050 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
28051 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
28055 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28056 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28058 echo $ECHO_N "(cached) $ECHO_C" >&6
28060 eval "$as_ac_Header=\$ac_header_preproc"
28062 ac_res=`eval echo '${'$as_ac_Header'}'`
28063 { echo "$as_me:$LINENO: result: $ac_res" >&5
28064 echo "${ECHO_T}$ac_res" >&6; }
28067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28068 ZLIB_HEADER_FOUND=1
28070 ZLIB_HEADER_FOUND=0
28076 if test "xzlib.h" != "x" ; then
28077 if test "${ac_cv_header_zlib_h+set}" = set; then
28078 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28079 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28080 if test "${ac_cv_header_zlib_h+set}" = set; then
28081 echo $ECHO_N "(cached) $ECHO_C" >&6
28083 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28084 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28086 # Is the header compilable?
28087 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28088 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28089 cat >conftest.$ac_ext <<_ACEOF
28092 cat confdefs.h >>conftest.$ac_ext
28093 cat >>conftest.$ac_ext <<_ACEOF
28094 /* end confdefs.h. */
28095 $ac_includes_default
28098 rm -f conftest.$ac_objext
28099 if { (ac_try="$ac_compile"
28100 case "(($ac_try" in
28101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28102 *) ac_try_echo
=$ac_try;;
28104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28105 (eval "$ac_compile") 2>conftest.er1
28107 grep -v '^ *+' conftest.er1
>conftest.err
28109 cat conftest.err
>&5
28110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); } && {
28112 test -z "$ac_c_werror_flag" ||
28113 test ! -s conftest.err
28114 } && test -s conftest.
$ac_objext; then
28115 ac_header_compiler
=yes
28117 echo "$as_me: failed program was:" >&5
28118 sed 's/^/| /' conftest.
$ac_ext >&5
28120 ac_header_compiler
=no
28123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28125 echo "${ECHO_T}$ac_header_compiler" >&6; }
28127 # Is the header present?
28128 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28129 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28130 cat >conftest.
$ac_ext <<_ACEOF
28133 cat confdefs.h
>>conftest.
$ac_ext
28134 cat >>conftest.
$ac_ext <<_ACEOF
28135 /* end confdefs.h. */
28138 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28139 case "(($ac_try" in
28140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28141 *) ac_try_echo=$ac_try;;
28143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28146 grep -v '^ *+' conftest.er1 >conftest.err
28148 cat conftest.err >&5
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); } >/dev/null && {
28151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28152 test ! -s conftest.err
28154 ac_header_preproc=yes
28156 echo "$as_me: failed program was:" >&5
28157 sed 's/^/| /' conftest.$ac_ext >&5
28159 ac_header_preproc=no
28162 rm -f conftest.err conftest.$ac_ext
28163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28164 echo "${ECHO_T}$ac_header_preproc" >&6; }
28166 # So? What about this header?
28167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28169 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28170 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28171 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28172 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28173 ac_header_preproc=yes
28176 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28177 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28178 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
28179 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
28180 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28181 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28182 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28183 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28184 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28185 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28186 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28187 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28191 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28192 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28193 if test "${ac_cv_header_zlib_h+set}" = set; then
28194 echo $ECHO_N "(cached) $ECHO_C" >&6
28196 ac_cv_header_zlib_h=$ac_header_preproc
28198 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28199 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28202 if test $ac_cv_header_zlib_h = yes; then
28203 ZLIB_HEADER_FOUND=1
28205 ZLIB_HEADER_FOUND=0
28211 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
28212 if test ! -z "${ZLIB_MANDATORY}" ;
28214 { echo "$as_me:$LINENO: ***" >&5
28215 echo "$as_me: ***" >&6;}
28216 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
28217 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
28218 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
28219 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
28220 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28221 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28230 cat >>confdefs.h <<_ACEOF
28231 #define HAVE_ZLIB 1
28235 elif test ! -z "${ZLIB_MANDATORY}";
28237 { echo "$as_me:$LINENO: ***" >&5
28238 echo "$as_me: ***" >&6;}
28239 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
28240 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
28241 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28242 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28243 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28244 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28250 if test "${USE_ZAPTEL}" != "no"; then
28251 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel.h" >&5
28252 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel.h... $ECHO_C" >&6; }
28253 saved_cppflags="${CPPFLAGS}"
28254 if test "x${ZAPTEL_DIR}" != "x"; then
28255 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28257 cat >conftest.$ac_ext <<_ACEOF
28261 cat confdefs.h >>conftest.$ac_ext
28262 cat >>conftest.$ac_ext <<_ACEOF
28263 /* end confdefs.h. */
28264 #include <zaptel/zaptel.h>
28268 int foo = ZT_TONE_DTMF_BASE;
28274 rm -f conftest.$ac_objext
28275 if { (ac_try="$ac_compile"
28276 case "(($ac_try" in
28277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28278 *) ac_try_echo
=$ac_try;;
28280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28281 (eval "$ac_compile") 2>conftest.er1
28283 grep -v '^ *+' conftest.er1
>conftest.err
28285 cat conftest.err
>&5
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); } && {
28288 test -z "$ac_c_werror_flag" ||
28289 test ! -s conftest.err
28290 } && test -s conftest.
$ac_objext; then
28291 { echo "$as_me:$LINENO: result: yes" >&5
28292 echo "${ECHO_T}yes" >&6; }
28293 ac_cv_zaptel_h
="yes"
28296 echo "$as_me: failed program was:" >&5
28297 sed 's/^/| /' conftest.
$ac_ext >&5
28299 { echo "$as_me:$LINENO: result: no" >&5
28300 echo "${ECHO_T}no" >&6; }
28301 ac_cv_zaptel_h
="no"
28306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28307 CPPFLAGS
="${saved_cppflags}"
28308 if test "${ac_cv_zaptel_h}" = "yes"; then
28309 if test "${ZAPTEL_DIR}" != ""; then
28310 ZAPTEL_INCLUDE
="-I${ZAPTEL_DIR}/include"
28314 cat >>confdefs.h
<<\_ACEOF
28315 #define HAVE_ZAPTEL 1
28318 elif test ! -z "${ZAPTEL_MANDATORY}";
28320 { echo "$as_me:$LINENO: ***" >&5
28321 echo "$as_me: ***" >&6;}
28322 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
28323 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
28324 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28325 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28326 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
28327 echo "$as_me: *** including --without-zaptel." >&6;}
28332 if test "${USE_ZAPTEL}" != "no"; then
28333 if test "${PBX_ZAPTEL}" != "1"; then
28334 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel.h" >&5
28335 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel.h... $ECHO_C" >&6; }
28336 saved_cppflags
="${CPPFLAGS}"
28337 if test "x${ZAPTEL_DIR}" != "x"; then
28338 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28340 cat >conftest.
$ac_ext <<_ACEOF
28344 cat confdefs.h
>>conftest.
$ac_ext
28345 cat >>conftest.
$ac_ext <<_ACEOF
28346 /* end confdefs.h. */
28347 #include <zaptel.h>
28351 int foo = ZT_DIAL_OP_CANCEL;
28357 rm -f conftest.
$ac_objext
28358 if { (ac_try
="$ac_compile"
28359 case "(($ac_try" in
28360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28361 *) ac_try_echo=$ac_try;;
28363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_compile") 2>conftest.er1
28366 grep -v '^ *+' conftest.er1 >conftest.err
28368 cat conftest.err >&5
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); } && {
28371 test -z "$ac_c_werror_flag" ||
28372 test ! -s conftest.err
28373 } && test -s conftest.$ac_objext; then
28374 { echo "$as_me:$LINENO: result: yes" >&5
28375 echo "${ECHO_T}yes" >&6; }
28376 ac_cv_zaptel_h="yes"
28379 echo "$as_me: failed program was:" >&5
28380 sed 's/^/| /' conftest.$ac_ext >&5
28382 { echo "$as_me:$LINENO: result: no" >&5
28383 echo "${ECHO_T}no" >&6; }
28384 ac_cv_zaptel_h="no"
28389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28390 CPPFLAGS="${saved_cppflags}"
28391 if test "${ac_cv_zaptel_h}" = "yes"; then
28392 { echo "$as_me:$LINENO: ***" >&5
28393 echo "$as_me: ***" >&6;}
28394 { echo "$as_me:$LINENO: *** The Zaptel installation on this system is too old" >&5
28395 echo "$as_me: *** The Zaptel installation on this system is too old" >&6;}
28396 { echo "$as_me:$LINENO: *** to be useable with this version of Asterisk." >&5
28397 echo "$as_me: *** to be useable with this version of Asterisk." >&6;}
28398 { echo "$as_me:$LINENO: *** Either upgrade your Zaptel installation, or run configure" >&5
28399 echo "$as_me: *** Either upgrade your Zaptel installation, or run configure" >&6;}
28400 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
28401 echo "$as_me: *** including --without-zaptel." >&6;}
28408 if test "x$TERMCAP_LIB" != "x" ; then
28409 EDITLINE_LIB="$TERMCAP_LIB"
28410 elif test "x$TINFO_LIB" != "x" ; then
28411 EDITLINE_LIB="$TINFO_LIB"
28412 elif test "x$CURSES_LIB" != "x" ; then
28413 EDITLINE_LIB="$CURSES_LIB"
28414 elif test "x$NCURSES_LIB" != "x" ; then
28415 EDITLINE_LIB="$NCURSES_LIB"
28417 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
28418 echo "$as_me: error: *** termcap support not found" >&2;}
28419 { (exit 1); exit 1; }; }
28423 if test "${ac_cv_header_h323_h+set}" = set; then
28424 { echo "$as_me:$LINENO: checking for h323.h" >&5
28425 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
28426 if test "${ac_cv_header_h323_h+set}" = set; then
28427 echo $ECHO_N "(cached) $ECHO_C" >&6
28429 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
28430 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
28432 # Is the header compilable?
28433 { echo "$as_me:$LINENO: checking h323.h usability" >&5
28434 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
28435 cat >conftest.$ac_ext <<_ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h. */
28441 $ac_includes_default
28444 rm -f conftest.$ac_objext
28445 if { (ac_try="$ac_compile"
28446 case "(($ac_try" in
28447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28448 *) ac_try_echo
=$ac_try;;
28450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28451 (eval "$ac_compile") 2>conftest.er1
28453 grep -v '^ *+' conftest.er1
>conftest.err
28455 cat conftest.err
>&5
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); } && {
28458 test -z "$ac_c_werror_flag" ||
28459 test ! -s conftest.err
28460 } && test -s conftest.
$ac_objext; then
28461 ac_header_compiler
=yes
28463 echo "$as_me: failed program was:" >&5
28464 sed 's/^/| /' conftest.
$ac_ext >&5
28466 ac_header_compiler
=no
28469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28471 echo "${ECHO_T}$ac_header_compiler" >&6; }
28473 # Is the header present?
28474 { echo "$as_me:$LINENO: checking h323.h presence" >&5
28475 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
28476 cat >conftest.
$ac_ext <<_ACEOF
28479 cat confdefs.h
>>conftest.
$ac_ext
28480 cat >>conftest.
$ac_ext <<_ACEOF
28481 /* end confdefs.h. */
28484 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28485 case "(($ac_try" in
28486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28492 grep -v '^ *+' conftest.er1 >conftest.err
28494 cat conftest.err >&5
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); } >/dev/null && {
28497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28498 test ! -s conftest.err
28500 ac_header_preproc=yes
28502 echo "$as_me: failed program was:" >&5
28503 sed 's/^/| /' conftest.$ac_ext >&5
28505 ac_header_preproc=no
28508 rm -f conftest.err conftest.$ac_ext
28509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28510 echo "${ECHO_T}$ac_header_preproc" >&6; }
28512 # So? What about this header?
28513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28515 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28516 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28517 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
28518 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
28519 ac_header_preproc=yes
28522 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
28523 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
28524 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
28525 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
28526 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
28527 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
28528 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
28529 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28530 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
28531 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
28532 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
28533 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
28537 { echo "$as_me:$LINENO: checking for h323.h" >&5
28538 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
28539 if test "${ac_cv_header_h323_h+set}" = set; then
28540 echo $ECHO_N "(cached) $ECHO_C" >&6
28542 ac_cv_header_h323_h=$ac_header_preproc
28544 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
28545 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
28548 if test $ac_cv_header_h323_h = yes; then
28557 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
28558 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
28559 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
28560 echo $ECHO_N "(cached) $ECHO_C" >&6
28562 cat >conftest.$ac_ext <<_ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h. */
28569 #include <linux/version.h>
28570 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
28571 #include <linux/compiler.h>
28575 #include <linux/ixjuser.h>
28577 rm -f conftest.$ac_objext
28578 if { (ac_try="$ac_compile"
28579 case "(($ac_try" in
28580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28581 *) ac_try_echo
=$ac_try;;
28583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584 (eval "$ac_compile") 2>conftest.er1
28586 grep -v '^ *+' conftest.er1
>conftest.err
28588 cat conftest.err
>&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } && {
28591 test -z "$ac_c_werror_flag" ||
28592 test ! -s conftest.err
28593 } && test -s conftest.
$ac_objext; then
28594 ac_cv_header_linux_ixjuser_h
=yes
28596 echo "$as_me: failed program was:" >&5
28597 sed 's/^/| /' conftest.
$ac_ext >&5
28599 ac_cv_header_linux_ixjuser_h
=no
28602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28604 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
28605 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
28606 if test $ac_cv_header_linux_ixjuser_h = yes; then
28616 if test -n "$ac_tool_prefix"; then
28617 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
28618 set dummy
${ac_tool_prefix}gtk-config
; ac_word
=$2
28619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28621 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
28622 echo $ECHO_N "(cached) $ECHO_C" >&6
28624 if test -n "$GTKCONFIG"; then
28625 ac_cv_prog_GTKCONFIG
="$GTKCONFIG" # Let the user override the test.
28627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28628 for as_dir
in $PATH
28631 test -z "$as_dir" && as_dir
=.
28632 for ac_exec_ext
in '' $ac_executable_extensions; do
28633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28634 ac_cv_prog_GTKCONFIG
="${ac_tool_prefix}gtk-config"
28635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28644 GTKCONFIG
=$ac_cv_prog_GTKCONFIG
28645 if test -n "$GTKCONFIG"; then
28646 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
28647 echo "${ECHO_T}$GTKCONFIG" >&6; }
28649 { echo "$as_me:$LINENO: result: no" >&5
28650 echo "${ECHO_T}no" >&6; }
28655 if test -z "$ac_cv_prog_GTKCONFIG"; then
28656 ac_ct_GTKCONFIG
=$GTKCONFIG
28657 # Extract the first word of "gtk-config", so it can be a program name with args.
28658 set dummy gtk-config
; ac_word
=$2
28659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28661 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
28662 echo $ECHO_N "(cached) $ECHO_C" >&6
28664 if test -n "$ac_ct_GTKCONFIG"; then
28665 ac_cv_prog_ac_ct_GTKCONFIG
="$ac_ct_GTKCONFIG" # Let the user override the test.
28667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28668 for as_dir
in $PATH
28671 test -z "$as_dir" && as_dir
=.
28672 for ac_exec_ext
in '' $ac_executable_extensions; do
28673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28674 ac_cv_prog_ac_ct_GTKCONFIG
="gtk-config"
28675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28684 ac_ct_GTKCONFIG
=$ac_cv_prog_ac_ct_GTKCONFIG
28685 if test -n "$ac_ct_GTKCONFIG"; then
28686 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
28687 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
28689 { echo "$as_me:$LINENO: result: no" >&5
28690 echo "${ECHO_T}no" >&6; }
28693 if test "x$ac_ct_GTKCONFIG" = x
; then
28696 case $cross_compiling:$ac_tool_warned in
28698 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28699 whose name does not start with the host triplet. If you think this
28700 configuration is useful to you, please write to autoconf@gnu.org." >&5
28701 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28702 whose name does not start with the host triplet. If you think this
28703 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28704 ac_tool_warned
=yes ;;
28706 GTKCONFIG
=$ac_ct_GTKCONFIG
28709 GTKCONFIG
="$ac_cv_prog_GTKCONFIG"
28712 if test ! "x${GTKCONFIG}" = xNo
; then
28713 GTK_INCLUDE
=$
(${GTKCONFIG} --cflags gthread
)
28714 GTK_LIB
=$
(${GTKCONFIG} --libs gthread
)
28717 cat >>confdefs.h
<<\_ACEOF
28726 if test "${USE_CURL}" != "no"; then
28727 if test -n "$ac_tool_prefix"; then
28728 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
28729 set dummy
${ac_tool_prefix}curl-config
; ac_word
=$2
28730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28732 if test "${ac_cv_path_CURL+set}" = set; then
28733 echo $ECHO_N "(cached) $ECHO_C" >&6
28737 ac_cv_path_CURL
="$CURL" # Let the user override the test with a path.
28740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28741 for as_dir
in $PATH
28744 test -z "$as_dir" && as_dir
=.
28745 for ac_exec_ext
in '' $ac_executable_extensions; do
28746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28747 ac_cv_path_CURL
="$as_dir/$ac_word$ac_exec_ext"
28748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28758 CURL
=$ac_cv_path_CURL
28759 if test -n "$CURL"; then
28760 { echo "$as_me:$LINENO: result: $CURL" >&5
28761 echo "${ECHO_T}$CURL" >&6; }
28763 { echo "$as_me:$LINENO: result: no" >&5
28764 echo "${ECHO_T}no" >&6; }
28769 if test -z "$ac_cv_path_CURL"; then
28771 # Extract the first word of "curl-config", so it can be a program name with args.
28772 set dummy curl-config
; ac_word
=$2
28773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28775 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
28776 echo $ECHO_N "(cached) $ECHO_C" >&6
28778 case $ac_pt_CURL in
28780 ac_cv_path_ac_pt_CURL
="$ac_pt_CURL" # Let the user override the test with a path.
28783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28784 for as_dir
in $PATH
28787 test -z "$as_dir" && as_dir
=.
28788 for ac_exec_ext
in '' $ac_executable_extensions; do
28789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28790 ac_cv_path_ac_pt_CURL
="$as_dir/$ac_word$ac_exec_ext"
28791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28801 ac_pt_CURL
=$ac_cv_path_ac_pt_CURL
28802 if test -n "$ac_pt_CURL"; then
28803 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
28804 echo "${ECHO_T}$ac_pt_CURL" >&6; }
28806 { echo "$as_me:$LINENO: result: no" >&5
28807 echo "${ECHO_T}no" >&6; }
28810 if test "x$ac_pt_CURL" = x
; then
28813 case $cross_compiling:$ac_tool_warned in
28815 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28816 whose name does not start with the host triplet. If you think this
28817 configuration is useful to you, please write to autoconf@gnu.org." >&5
28818 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28819 whose name does not start with the host triplet. If you think this
28820 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28821 ac_tool_warned
=yes ;;
28826 CURL
="$ac_cv_path_CURL"
28829 if test ! x
"${CURL}" = xNo
; then
28830 # check for version
28831 if test $
(printf "%d" 0x$
(curl-config
--vernum)) -ge $
(printf "%d" 0x070907); then
28832 CURL_INCLUDE
=$
(${CURL} --cflags)
28833 CURL_LIB
=$
(${CURL} --libs)
28836 cat >>confdefs.h
<<\_ACEOF
28837 #define HAVE_CURL 1
28844 ac_config_files
="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
28846 cat >confcache
<<\_ACEOF
28847 # This file is a shell script that caches the results of configure
28848 # tests run on this system so they can be shared between configure
28849 # scripts and configure runs, see configure's option --config-cache.
28850 # It is not useful on other systems. If it contains results you don't
28851 # want to keep, you may remove or edit it.
28853 # config.status only pays attention to the cache file if you give it
28854 # the --recheck option to rerun configure.
28856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28858 # following values.
28862 # The following way of writing the cache mishandles newlines in values,
28863 # but we know of no workaround that is simple, portable, and efficient.
28864 # So, we kill variables containing newlines.
28865 # Ultrix sh set writes to stderr and can't be redirected directly,
28866 # and sets the high bit in the cache file unless we assign to the vars.
28868 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28869 eval ac_val
=\$
$ac_var
28873 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28874 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28877 _ | IFS | as_nl
) ;; #(
28878 *) $as_unset $ac_var ;;
28884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28885 *${as_nl}ac_space
=\
*)
28886 # `set' does not quote correctly, so add quotes (double-quote
28887 # substitution turns \\\\ into \\, and sed turns \\ into \).
28890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28893 # `set' quotes correctly as required by POSIX, so do not add quotes.
28894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28907 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28908 if test -w "$cache_file"; then
28909 test "x$cache_file" != "x/dev/null" &&
28910 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28911 echo "$as_me: updating cache $cache_file" >&6;}
28912 cat confcache
>$cache_file
28914 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28915 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28920 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28921 # Let make expand exec_prefix.
28922 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28924 DEFS
=-DHAVE_CONFIG_H
28928 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28929 # 1. Remove the extension, and $U if already installed.
28930 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28931 ac_i
=`echo "$ac_i" | sed "$ac_script"`
28932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28933 # will be set to the directory where LIBOBJS objects are built.
28934 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28935 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28937 LIBOBJS
=$ac_libobjs
28939 LTLIBOBJS
=$ac_ltlibobjs
28943 : ${CONFIG_STATUS=./config.status}
28944 ac_clean_files_save
=$ac_clean_files
28945 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28946 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28947 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28948 cat >$CONFIG_STATUS <<_ACEOF
28950 # Generated by $as_me.
28951 # Run this file to recreate the current configuration.
28952 # Compiler output produced by configure, useful for debugging
28953 # configure, is in config.log if it exists.
28956 ac_cs_recheck=false
28958 SHELL=\${CONFIG_SHELL-$SHELL}
28961 cat >>$CONFIG_STATUS <<\_ACEOF
28962 ## --------------------- ##
28963 ## M4sh Initialization. ##
28964 ## --------------------- ##
28966 # Be more Bourne compatible
28967 DUALCASE
=1; export DUALCASE
# for MKS sh
28968 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
28971 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28972 # is contrary to our usage. Disable this feature.
28973 alias -g '${1+"$@"}'='"$@"'
28974 setopt NO_GLOB_SUBST
28976 case `(set -o) 2>/dev/null` in
28977 *posix
*) set -o posix
;;
28986 # Avoid depending upon Character Ranges.
28987 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28988 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28989 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28990 as_cr_digits
='0123456789'
28991 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28993 # The user is always right.
28994 if test "${PATH_SEPARATOR+set}" != set; then
28995 echo "#! /bin/sh" >conf$$.sh
28996 echo "exit 0" >>conf$$.sh
28998 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
29006 # Support unset when possible.
29007 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
29015 # We need space, tab and new line, in precisely that order. Quoting is
29016 # there to prevent editors from complaining about space-tab.
29017 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29018 # splitting by setting IFS to empty value.)
29023 # Find who we are. Look in the path if we contain no directory separator.
29025 *[\\/]* ) as_myself
=$0 ;;
29026 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29027 for as_dir
in $PATH
29030 test -z "$as_dir" && as_dir
=.
29031 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
29037 # We did not find ourselves, most probably we were run as `sh COMMAND'
29038 # in which case we are not to be found in the path.
29039 if test "x$as_myself" = x
; then
29042 if test ! -f "$as_myself"; then
29043 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29044 { (exit 1); exit 1; }
29047 # Work around bugs in pre-3.0 UWIN ksh.
29048 for as_var
in ENV MAIL MAILPATH
29049 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
29057 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29058 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29059 LC_TELEPHONE LC_TIME
29061 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29062 eval $as_var=C
; export $as_var
29064 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
29068 # Required to use basename.
29069 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29070 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29076 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29077 as_basename
=basename
29083 # Name of the executable.
29084 as_me
=`$as_basename -- "$0" ||
29085 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29086 X"$0" : 'X\(//\)$' \| \
29087 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29089 sed '/^.*\/\([^/][^/]*\)\/*$/{
29108 as_lineno_1
=$LINENO
29109 as_lineno_2
=$LINENO
29110 test "x$as_lineno_1" != "x$as_lineno_2" &&
29111 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
29113 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29114 # uniformly replaced by the line number. The first 'sed' inserts a
29115 # line-number line after each line using $LINENO; the second 'sed'
29116 # does the real work. The second script uses 'N' to pair each
29117 # line-number line with the line containing $LINENO, and appends
29118 # trailing '-' during substitution so that $LINENO is not a special
29119 # case at line end.
29120 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29121 # scripts with optimization help from Paolo Bonzini. Blame Lee
29122 # E. McMahon (1931-1989) for sed's syntax. :-)
29134 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29137 ' >$as_me.lineno
&&
29138 chmod +x
"$as_me.lineno" ||
29139 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29140 { (exit 1); exit 1; }; }
29142 # Don't try to exec as it changes $[0], causing all sort of problems
29143 # (the dirname of $[0] is not the place where we might find the
29144 # original and so on. Autoconf is especially sensitive to this).
29145 .
"./$as_me.lineno"
29146 # Exit status is that of the last command.
29151 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29157 ECHO_C
= ECHO_N
= ECHO_T
=
29158 case `echo -n x` in
29160 case `echo 'x\c'` in
29161 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29168 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29169 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29175 rm -f conf$$ conf$$.exe conf$$.
file
29176 if test -d conf$$.dir
; then
29177 rm -f conf$$.dir
/conf$$.
file
29183 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29185 # ... but there are two gotchas:
29186 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29187 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29188 # In both cases, we have to default to `cp -p'.
29189 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29191 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29196 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29197 rmdir conf$$.dir
2>/dev
/null
29199 if mkdir
-p .
2>/dev
/null
; then
29202 test -d .
/-p && rmdir .
/-p
29206 if test -x / >/dev
/null
2>&1; then
29207 as_test_x
='test -x'
29209 if ls -dL / >/dev
/null
2>&1; then
29216 if test -d "$1"; then
29222 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29223 ???[sx]*):;;*)false;;esac;fi
29227 as_executable_p
=$as_test_x
29229 # Sed expression to map a string onto a valid CPP name.
29230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29232 # Sed expression to map a string onto a valid variable name.
29233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29238 # Save the log message, to keep $[0] and so on meaningful, and to
29239 # report actual input values of CONFIG_FILES etc. instead of their
29240 # values after options handling.
29242 This file was extended by $as_me, which was
29243 generated by GNU Autoconf 2.61. Invocation command line was
29245 CONFIG_FILES = $CONFIG_FILES
29246 CONFIG_HEADERS = $CONFIG_HEADERS
29247 CONFIG_LINKS = $CONFIG_LINKS
29248 CONFIG_COMMANDS = $CONFIG_COMMANDS
29251 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29256 cat >>$CONFIG_STATUS <<_ACEOF
29257 # Files that config.status was made for.
29258 config_files="$ac_config_files"
29259 config_headers="$ac_config_headers"
29263 cat >>$CONFIG_STATUS <<\_ACEOF
29265 \`$as_me' instantiates files from templates according to the
29266 current configuration.
29268 Usage: $0 [OPTIONS] [FILE]...
29270 -h, --help print this help, then exit
29271 -V, --version print version number and configuration settings, then exit
29272 -q, --quiet do not print progress messages
29273 -d, --debug don't remove temporary files
29274 --recheck update $as_me by reconfiguring in the same conditions
29275 --file=FILE[:TEMPLATE]
29276 instantiate the configuration file FILE
29277 --header=FILE[:TEMPLATE]
29278 instantiate the configuration header FILE
29280 Configuration files:
29283 Configuration headers:
29286 Report bugs to <bug-autoconf@gnu.org>."
29289 cat >>$CONFIG_STATUS <<_ACEOF
29292 configured by $0, generated by GNU Autoconf 2.61,
29293 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29295 Copyright (C) 2006 Free Software Foundation, Inc.
29296 This config.status script is free software; the Free Software Foundation
29297 gives unlimited permission to copy, distribute and modify it."
29304 cat >>$CONFIG_STATUS <<\_ACEOF
29305 # If no file are specified by the user, then we need to provide default
29306 # value. By we need to know if files were specified by the user.
29312 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29313 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29324 # Handling of the options.
29325 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29327 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29328 echo "$ac_cs_version"; exit ;;
29329 --debug |
--debu |
--deb |
--de |
--d |
-d )
29331 --file |
--fil |
--fi |
--f )
29333 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
29334 ac_need_defaults
=false
;;
29335 --header |
--heade |
--head |
--hea )
29337 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
29338 ac_need_defaults
=false
;;
29340 # Conflict between --help and --header
29341 { echo "$as_me: error: ambiguous option: $1
29342 Try \`$0 --help' for more information." >&2
29343 { (exit 1); exit 1; }; };;
29344 --help |
--hel |
-h )
29345 echo "$ac_cs_usage"; exit ;;
29346 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29347 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29350 # This is an error.
29351 -*) { echo "$as_me: error: unrecognized option: $1
29352 Try \`$0 --help' for more information." >&2
29353 { (exit 1); exit 1; }; } ;;
29355 *) ac_config_targets
="$ac_config_targets $1"
29356 ac_need_defaults
=false
;;
29362 ac_configure_extra_args
=
29364 if $ac_cs_silent; then
29366 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29370 cat >>$CONFIG_STATUS <<_ACEOF
29371 if \$ac_cs_recheck; then
29372 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29373 CONFIG_SHELL=$SHELL
29374 export CONFIG_SHELL
29375 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29379 cat >>$CONFIG_STATUS <<\_ACEOF
29383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29384 ## Running $as_me. ##
29390 cat >>$CONFIG_STATUS <<_ACEOF
29393 cat >>$CONFIG_STATUS <<\_ACEOF
29395 # Handling of arguments.
29396 for ac_config_target
in $ac_config_targets
29398 case $ac_config_target in
29399 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
29400 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
29401 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
29402 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
29404 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29405 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29406 { (exit 1); exit 1; }; };;
29411 # If the user did not use the arguments to specify the items to instantiate,
29412 # then the envvar interface is used. Set only those that are not.
29413 # We use the long form for the default assignment because of an extremely
29414 # bizarre bug on SunOS 4.1.3.
29415 if $ac_need_defaults; then
29416 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29417 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29420 # Have a temporary directory for convenience. Make it in the build tree
29421 # simply because there is no reason against having it here, and in addition,
29422 # creating and moving files from /tmp can sometimes cause problems.
29423 # Hook for its removal unless debugging.
29424 # Note that there is a small window in which the directory will not be cleaned:
29425 # after its creation but before its name has been assigned to `$tmp'.
29429 trap 'exit_status=$?
29430 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29432 trap '{ (exit 1); exit 1; }' 1 2 13 15
29434 # Create a (secure) tmp directory for tmp files.
29437 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29438 test -n "$tmp" && test -d "$tmp"
29441 tmp
=.
/conf$$
-$RANDOM
29442 (umask 077 && mkdir
"$tmp")
29445 echo "$me: cannot create a temporary directory in ." >&2
29446 { (exit 1); exit 1; }
29450 # Set up the sed scripts for CONFIG_FILES section.
29453 # No need to generate the scripts if there are no CONFIG_FILES.
29454 # This happens for instance when ./config.status config.h
29455 if test -n "$CONFIG_FILES"; then
29462 for ac_last_try
in false false false false false
:; do
29463 cat >conf$
$subs.
sed <<_ACEOF
29464 SHELL!$SHELL$ac_delim
29465 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29466 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29467 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29468 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29469 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29470 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29471 exec_prefix!$exec_prefix$ac_delim
29472 prefix!$prefix$ac_delim
29473 program_transform_name!$program_transform_name$ac_delim
29474 bindir!$bindir$ac_delim
29475 sbindir!$sbindir$ac_delim
29476 libexecdir!$libexecdir$ac_delim
29477 datarootdir!$datarootdir$ac_delim
29478 datadir!$datadir$ac_delim
29479 sysconfdir!$sysconfdir$ac_delim
29480 sharedstatedir!$sharedstatedir$ac_delim
29481 localstatedir!$localstatedir$ac_delim
29482 includedir!$includedir$ac_delim
29483 oldincludedir!$oldincludedir$ac_delim
29484 docdir!$docdir$ac_delim
29485 infodir!$infodir$ac_delim
29486 htmldir!$htmldir$ac_delim
29487 dvidir!$dvidir$ac_delim
29488 pdfdir!$pdfdir$ac_delim
29489 psdir!$psdir$ac_delim
29490 libdir!$libdir$ac_delim
29491 localedir!$localedir$ac_delim
29492 mandir!$mandir$ac_delim
29493 DEFS!$DEFS$ac_delim
29494 ECHO_C!$ECHO_C$ac_delim
29495 ECHO_N!$ECHO_N$ac_delim
29496 ECHO_T!$ECHO_T$ac_delim
29497 LIBS!$LIBS$ac_delim
29498 build_alias!$build_alias$ac_delim
29499 host_alias!$host_alias$ac_delim
29500 target_alias!$target_alias$ac_delim
29501 build!$build$ac_delim
29502 build_cpu!$build_cpu$ac_delim
29503 build_vendor!$build_vendor$ac_delim
29504 build_os!$build_os$ac_delim
29505 host!$host$ac_delim
29506 host_cpu!$host_cpu$ac_delim
29507 host_vendor!$host_vendor$ac_delim
29508 host_os!$host_os$ac_delim
29510 CFLAGS!$CFLAGS$ac_delim
29511 LDFLAGS!$LDFLAGS$ac_delim
29512 CPPFLAGS!$CPPFLAGS$ac_delim
29513 ac_ct_CC!$ac_ct_CC$ac_delim
29514 EXEEXT!$EXEEXT$ac_delim
29515 OBJEXT!$OBJEXT$ac_delim
29517 GREP!$GREP$ac_delim
29518 EGREP!$EGREP$ac_delim
29519 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
29520 BUILD_CPU!$BUILD_CPU$ac_delim
29521 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
29522 BUILD_OS!$BUILD_OS$ac_delim
29523 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
29524 HOST_CPU!$HOST_CPU$ac_delim
29525 HOST_VENDOR!$HOST_VENDOR$ac_delim
29526 HOST_OS!$HOST_OS$ac_delim
29527 OSARCH!$OSARCH$ac_delim
29528 UNAME!$UNAME$ac_delim
29529 PBX_OSREV!$PBX_OSREV$ac_delim
29532 RANLIB!$RANLIB$ac_delim
29534 CXXFLAGS!$CXXFLAGS$ac_delim
29535 ac_ct_CXX!$ac_ct_CXX$ac_delim
29536 CXXCPP!$CXXCPP$ac_delim
29539 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29540 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29541 INSTALL_DATA!$INSTALL_DATA$ac_delim
29542 LN_S!$LN_S$ac_delim
29543 GNU_MAKE!$GNU_MAKE$ac_delim
29544 GNU_LD!$GNU_LD$ac_delim
29545 FIND!$FIND$ac_delim
29546 COMPRESS!$COMPRESS$ac_delim
29547 BASENAME!$BASENAME$ac_delim
29549 DIRNAME!$DIRNAME$ac_delim
29552 STRIP!$STRIP$ac_delim
29553 WGET!$WGET$ac_delim
29554 FETCH!$FETCH$ac_delim
29555 DOWNLOAD!$DOWNLOAD$ac_delim
29556 AST_DEVMODE!$AST_DEVMODE$ac_delim
29557 ALSA_LIB!$ALSA_LIB$ac_delim
29558 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
29559 PBX_ALSA!$PBX_ALSA$ac_delim
29560 CURL_LIB!$CURL_LIB$ac_delim
29563 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29565 elif $ac_last_try; then
29566 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29567 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29568 { (exit 1); exit 1; }; }
29570 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
29574 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29575 if test -n "$ac_eof"; then
29576 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
29577 ac_eof
=`expr $ac_eof + 1`
29580 cat >>$CONFIG_STATUS <<_ACEOF
29581 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29585 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29586 s/^/s,@/; s/!/@,|#_!!_#|/
29589 s/'"$ac_delim"'$/,g/; t
29591 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29592 ' >>$CONFIG_STATUS <conf$
$subs.
sed
29593 rm -f conf$
$subs.
sed
29594 cat >>$CONFIG_STATUS <<_ACEOF
29600 for ac_last_try
in false false false false false
:; do
29601 cat >conf$
$subs.
sed <<_ACEOF
29602 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
29603 PBX_CURL!$PBX_CURL$ac_delim
29604 CURSES_LIB!$CURSES_LIB$ac_delim
29605 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
29606 PBX_CURSES!$PBX_CURSES$ac_delim
29607 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
29608 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
29609 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
29610 GSM_LIB!$GSM_LIB$ac_delim
29611 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
29612 PBX_GSM!$PBX_GSM$ac_delim
29613 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
29614 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
29615 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
29616 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
29617 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
29618 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
29619 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
29620 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
29621 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
29622 KDE_LIB!$KDE_LIB$ac_delim
29623 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
29624 PBX_KDE!$PBX_KDE$ac_delim
29625 MISDN_LIB!$MISDN_LIB$ac_delim
29626 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
29627 PBX_MISDN!$PBX_MISDN$ac_delim
29628 NBS_LIB!$NBS_LIB$ac_delim
29629 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
29630 PBX_NBS!$PBX_NBS$ac_delim
29631 NCURSES_LIB!$NCURSES_LIB$ac_delim
29632 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
29633 PBX_NCURSES!$PBX_NCURSES$ac_delim
29634 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
29635 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
29636 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
29637 NEWT_LIB!$NEWT_LIB$ac_delim
29638 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
29639 PBX_NEWT!$PBX_NEWT$ac_delim
29640 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
29641 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
29642 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
29643 OGG_LIB!$OGG_LIB$ac_delim
29644 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
29645 PBX_OGG!$PBX_OGG$ac_delim
29646 OSPTK_LIB!$OSPTK_LIB$ac_delim
29647 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
29648 PBX_OSPTK!$PBX_OSPTK$ac_delim
29649 OSS_LIB!$OSS_LIB$ac_delim
29650 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
29651 PBX_OSS!$PBX_OSS$ac_delim
29652 POPT_LIB!$POPT_LIB$ac_delim
29653 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
29654 PBX_POPT!$PBX_POPT$ac_delim
29655 PGSQL_LIB!$PGSQL_LIB$ac_delim
29656 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
29657 PBX_PGSQL!$PBX_PGSQL$ac_delim
29658 PRI_LIB!$PRI_LIB$ac_delim
29659 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
29660 PBX_PRI!$PBX_PRI$ac_delim
29661 PWLIB_LIB!$PWLIB_LIB$ac_delim
29662 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
29663 PBX_PWLIB!$PBX_PWLIB$ac_delim
29664 OPENH323_LIB!$OPENH323_LIB$ac_delim
29665 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
29666 PBX_OPENH323!$PBX_OPENH323$ac_delim
29667 QT_LIB!$QT_LIB$ac_delim
29668 QT_INCLUDE!$QT_INCLUDE$ac_delim
29669 PBX_QT!$PBX_QT$ac_delim
29670 RADIUS_LIB!$RADIUS_LIB$ac_delim
29671 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
29672 PBX_RADIUS!$PBX_RADIUS$ac_delim
29673 SPEEX_LIB!$SPEEX_LIB$ac_delim
29674 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
29675 PBX_SPEEX!$PBX_SPEEX$ac_delim
29676 SQLITE_LIB!$SQLITE_LIB$ac_delim
29677 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
29678 PBX_SQLITE!$PBX_SQLITE$ac_delim
29679 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
29680 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
29681 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
29682 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
29683 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
29684 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
29685 FREETDS_LIB!$FREETDS_LIB$ac_delim
29686 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
29687 PBX_FREETDS!$PBX_FREETDS$ac_delim
29688 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
29689 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
29690 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
29691 TINFO_LIB!$TINFO_LIB$ac_delim
29692 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
29693 PBX_TINFO!$PBX_TINFO$ac_delim
29694 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
29695 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
29696 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
29697 VORBIS_LIB!$VORBIS_LIB$ac_delim
29698 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
29701 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29703 elif $ac_last_try; then
29704 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29705 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29706 { (exit 1); exit 1; }; }
29708 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
29712 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29713 if test -n "$ac_eof"; then
29714 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
29715 ac_eof
=`expr $ac_eof + 1`
29718 cat >>$CONFIG_STATUS <<_ACEOF
29719 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29723 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29724 s/^/s,@/; s/!/@,|#_!!_#|/
29727 s/'"$ac_delim"'$/,g/; t
29729 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29730 ' >>$CONFIG_STATUS <conf$
$subs.
sed
29731 rm -f conf$
$subs.
sed
29732 cat >>$CONFIG_STATUS <<_ACEOF
29738 for ac_last_try
in false false false false false
:; do
29739 cat >conf$
$subs.
sed <<_ACEOF
29740 PBX_VORBIS!$PBX_VORBIS$ac_delim
29741 VPB_LIB!$VPB_LIB$ac_delim
29742 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
29743 PBX_VPB!$PBX_VPB$ac_delim
29744 ZLIB_LIB!$ZLIB_LIB$ac_delim
29745 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
29746 PBX_ZLIB!$PBX_ZLIB$ac_delim
29747 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
29748 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
29749 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
29750 ALLOCA!$ALLOCA$ac_delim
29751 LIBOBJS!$LIBOBJS$ac_delim
29752 POW_LIB!$POW_LIB$ac_delim
29753 GC_CFLAGS!$GC_CFLAGS$ac_delim
29754 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
29755 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
29756 KDEINIT!$KDEINIT$ac_delim
29757 KDEDIR!$KDEDIR$ac_delim
29758 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
29759 PG_CONFIG!$PG_CONFIG$ac_delim
29760 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
29761 PWLIBDIR!$PWLIBDIR$ac_delim
29762 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
29763 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
29764 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
29765 OPENH323DIR!$OPENH323DIR$ac_delim
29766 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
29767 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
29768 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
29769 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
29770 QTMOC!$QTMOC$ac_delim
29771 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
29772 PBX_H323!$PBX_H323$ac_delim
29773 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
29774 GTKCONFIG!$GTKCONFIG$ac_delim
29775 PBX_GTK!$PBX_GTK$ac_delim
29776 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
29777 GTK_LIB!$GTK_LIB$ac_delim
29778 CURL!$CURL$ac_delim
29779 LTLIBOBJS!$LTLIBOBJS$ac_delim
29782 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
29784 elif $ac_last_try; then
29785 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29786 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29787 { (exit 1); exit 1; }; }
29789 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
29793 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29794 if test -n "$ac_eof"; then
29795 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
29796 ac_eof
=`expr $ac_eof + 1`
29799 cat >>$CONFIG_STATUS <<_ACEOF
29800 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
29801 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29804 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29805 s/^/s,@/; s/!/@,|#_!!_#|/
29808 s/'"$ac_delim"'$/,g/; t
29810 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29811 ' >>$CONFIG_STATUS <conf$
$subs.
sed
29812 rm -f conf$
$subs.
sed
29813 cat >>$CONFIG_STATUS <<_ACEOF
29820 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29821 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29822 # trailing colons and then remove the whole line if VPATH becomes empty
29823 # (actually we leave an empty line to preserve line numbers).
29824 if test "x$srcdir" = x.
; then
29825 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
29826 s/:*\$(srcdir):*/:/
29827 s/:*\${srcdir}:*/:/
29829 s/^\([^=]*=[ ]*\):*/\1/
29835 cat >>$CONFIG_STATUS <<\_ACEOF
29836 fi # test -n "$CONFIG_FILES"
29839 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
29842 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29844 case $ac_mode$ac_tag in
29846 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29847 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29848 { (exit 1); exit 1; }; };;
29849 :[FH
]-) ac_tag
=-:-;;
29850 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29867 -) ac_f
="$tmp/stdin";;
29868 *) # Look for the file first in the build tree, then in the source tree
29869 # (if the path is not absolute). The absolute path cannot be DOS-style,
29870 # because $ac_f cannot contain `:'.
29874 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29876 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29877 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29878 { (exit 1); exit 1; }; };;
29880 ac_file_inputs
="$ac_file_inputs $ac_f"
29883 # Let's still pretend it is `configure' which instantiates (i.e., don't
29884 # use $as_me), people would be surprised to read:
29885 # /* config.h. Generated by config.status. */
29886 configure_input
="Generated from "`IFS=:
29887 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29888 if test x
"$ac_file" != x-
; then
29889 configure_input
="$ac_file. $configure_input"
29890 { echo "$as_me:$LINENO: creating $ac_file" >&5
29891 echo "$as_me: creating $ac_file" >&6;}
29895 *:-:* |
*:-) cat >"$tmp/stdin";;
29900 ac_dir
=`$as_dirname -- "$ac_file" ||
29901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29902 X"$ac_file" : 'X\(//\)[^/]' \| \
29903 X"$ac_file" : 'X\(//\)$' \| \
29904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29910 /^X\(\/\/\)[^/].*/{
29925 -*) as_dir
=.
/$as_dir;;
29927 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
29931 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29932 *) as_qdir
=$as_dir;;
29934 as_dirs
="'$as_qdir' $as_dirs"
29935 as_dir
=`$as_dirname -- "$as_dir" ||
29936 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29937 X"$as_dir" : 'X\(//\)[^/]' \| \
29938 X"$as_dir" : 'X\(//\)$' \| \
29939 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29945 /^X\(\/\/\)[^/].*/{
29958 test -d "$as_dir" && break
29960 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29961 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29962 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29963 { (exit 1); exit 1; }; }; }
29967 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29969 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29970 # A ".." for each directory in $ac_dir_suffix.
29971 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29972 case $ac_top_builddir_sub in
29973 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29974 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29977 ac_abs_top_builddir
=$ac_pwd
29978 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29979 # for backward compatibility:
29980 ac_top_builddir
=$ac_top_build_prefix
29983 .
) # We are building in place.
29985 ac_top_srcdir
=$ac_top_builddir_sub
29986 ac_abs_top_srcdir
=$ac_pwd ;;
29987 [\\/]* | ?
:[\\/]* ) # Absolute name.
29988 ac_srcdir
=$srcdir$ac_dir_suffix;
29989 ac_top_srcdir
=$srcdir
29990 ac_abs_top_srcdir
=$srcdir ;;
29991 *) # Relative name.
29992 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29993 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29994 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29996 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30006 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30007 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30011 cat >>$CONFIG_STATUS <<\_ACEOF
30012 # If the template does not know about datarootdir, expand it.
30013 # FIXME: This hack should be removed a few years after 2.60.
30014 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30016 case `sed -n '/datarootdir/ {
30025 ' $ac_file_inputs` in
30026 *datarootdir
*) ac_datarootdir_seen
=yes;;
30027 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30028 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30029 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30031 cat >>$CONFIG_STATUS <<_ACEOF
30032 ac_datarootdir_hack='
30033 s&@datadir@&$datadir&g
30034 s&@docdir@&$docdir&g
30035 s&@infodir@&$infodir&g
30036 s&@localedir@&$localedir&g
30037 s&@mandir@&$mandir&g
30038 s&\\\${datarootdir}&$datarootdir&g' ;;
30042 # Neutralize VPATH when `$srcdir' = `.'.
30043 # Shell code in configure.ac might set extrasub.
30044 # FIXME: do we really want to maintain this feature?
30045 cat >>$CONFIG_STATUS <<_ACEOF
30049 cat >>$CONFIG_STATUS <<\_ACEOF
30051 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30052 s
&@configure_input@
&$configure_input&;t t
30053 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30054 s
&@srcdir@
&$ac_srcdir&;t t
30055 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30056 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30057 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30058 s
&@builddir@
&$ac_builddir&;t t
30059 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30060 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30061 s
&@INSTALL@
&$ac_INSTALL&;t t
30062 $ac_datarootdir_hack
30063 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
30065 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30066 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30067 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30068 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30069 which seems to be undefined. Please make sure it is defined." >&5
30070 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30071 which seems to be undefined. Please make sure it is defined." >&2;}
30075 -) cat "$tmp/out"; rm -f "$tmp/out";;
30076 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30085 # Transform confdefs.h into a sed script `conftest.defines', that
30086 # substitutes the proper values into config.h.in to produce config.h.
30087 rm -f conftest.defines conftest.
tail
30088 # First, append a space to every undef/define line, to ease matching.
30089 echo 's/$/ /' >conftest.defines
30090 # Then, protect against being on the right side of a sed subst, or in
30091 # an unquoted here document, in config.status. If some macros were
30092 # called several times there might be several #defines for the same
30093 # symbol, which is useless. But do not sort them, since the last
30094 # AC_DEFINE must be honored.
30095 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
30096 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30097 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30098 # PARAMS is the parameter list in the macro definition--in most cases, it's
30099 # just an empty string.
30100 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30101 ac_dB
='\\)[ (].*,\\1define\\2'
30109 s/^[ ]*#[ ]*define[ ][ ]*//
30114 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30115 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30116 ' >>conftest.defines
30118 # Remove the space that was appended to ease matching.
30119 # Then replace #undef with comments. This is necessary, for
30120 # example, in the case of _POSIX_SOURCE, which is predefined and required
30121 # on some systems where configure will not decide to define it.
30122 # (The regexp can be short, since the line contains either #define or #undef.)
30124 s,^[ #]*u.*,/* & */,' >>conftest.defines
30126 # Break up conftest.defines:
30127 ac_max_sed_lines
=50
30129 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30130 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30131 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30133 ac_in
='$ac_file_inputs'
30134 ac_out
='"$tmp/out1"'
30135 ac_nxt
='"$tmp/out2"'
30139 # Write a here document:
30140 cat >>$CONFIG_STATUS <<_ACEOF
30141 # First, check the format of the line:
30142 cat >"\$tmp/defines.sed" <<\\CEOF
30143 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30144 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30148 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
30150 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30151 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
30152 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
30153 grep . conftest.
tail >/dev
/null ||
break
30154 rm -f conftest.defines
30155 mv conftest.
tail conftest.defines
30157 rm -f conftest.defines conftest.
tail
30159 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30160 cat >>$CONFIG_STATUS <<\_ACEOF
30161 if test x
"$ac_file" != x-
; then
30162 echo "/* $configure_input */" >"$tmp/config.h"
30163 cat "$ac_result" >>"$tmp/config.h"
30164 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
30165 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30166 echo "$as_me: $ac_file is unchanged" >&6;}
30169 mv "$tmp/config.h" $ac_file
30172 echo "/* $configure_input */"
30184 { (exit 0); exit 0; }
30186 chmod +x
$CONFIG_STATUS
30187 ac_clean_files
=$ac_clean_files_save
30190 # configure is writing to config.log, and then calls config.status.
30191 # config.status does its own redirection, appending to config.log.
30192 # Unfortunately, on DOS this fails, as config.log is still kept open
30193 # by configure, so config.status won't be able to write to it; its
30194 # output is simply discarded. So we exec the FD to /dev/null,
30195 # effectively closing config.log, so it can be properly (re)opened and
30196 # appended to by config.status. When coming back to configure, we
30197 # need to make the FD available again.
30198 if test "$no_create" != yes; then
30200 ac_config_status_args
=
30201 test "$silent" = yes &&
30202 ac_config_status_args
="$ac_config_status_args --quiet"
30204 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30206 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30207 # would make configure fail if this is the last instruction.
30208 $ac_cs_success ||
{ (exit 1); exit 1; }
30212 if test "x${silent}" != "xyes" ; then
30214 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
30215 echo " .\$7\$7.. .7\$\$7:. "
30216 echo " .\$\$:. ,\$7.7 "
30217 echo " .\$7. 7\$\$\$\$ .\$\$77 "
30218 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
30219 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
30220 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
30221 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
30222 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
30223 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
30224 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
30225 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
30226 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
30227 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
30228 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
30229 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
30230 echo " \$\$\$\$\$ \$\$\$ "
30231 echo " \$\$\$\$7. \$\$ (TM) "
30232 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
30233 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
30234 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
30238 { echo "$as_me:$LINENO: Package configured for: " >&5
30239 echo "$as_me: Package configured for: " >&6;}
30240 { echo "$as_me:$LINENO: OS type : $host_os" >&5
30241 echo "$as_me: OS type : $host_os" >&6;}
30242 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
30243 echo "$as_me: Host CPU : $host_cpu" >&6;}
30244 if test "${cross_compiling}" = "yes"; then
30245 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
30246 echo "$as_me: Cross Compilation = YES" >&6;}