2 # From configure.ac Revision: 46253 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60a.
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 Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
27 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
28 DUALCASE
=1; export DUALCASE
# for MKS sh
32 # Avoid depending upon Character Ranges.
33 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits
='0123456789'
37 as_cr_alnum
=$as_cr_Letters$as_cr_digits
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
44 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
52 # Support unset when possible.
53 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
69 # Find who we are. Look in the path if we contain no directory separator.
71 *[\\/]* ) as_myself
=$0 ;;
72 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
76 test -z "$as_dir" && as_dir
=.
77 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x
; then
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var
in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C
; export $as_var
110 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
114 # Required to use basename.
115 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
122 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 # Name of the executable.
130 as_me
=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
153 if test "x$CONFIG_SHELL" = x
; then
154 if (eval ":") 2>/dev
/null
; then
160 if test $as_have_required = yes && (eval ":
170 as_func_ret_success () {
173 as_func_ret_failure () {
178 if as_func_success; then
182 echo as_func_success failed.
185 if as_func_failure; then
187 echo as_func_failure succeeded.
190 if as_func_ret_success; then
194 echo as_func_ret_success failed.
197 if as_func_ret_failure; then
199 echo as_func_ret_failure succeeded.
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 echo positional parameters were not saved.
209 test \$exitcode = 0) || { (exit 1); exit 1; }
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev
/null
; then
220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
221 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir
=.
227 for as_base
in sh bash ksh sh5
; do
228 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
235 for as_shell
in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
250 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
251 DUALCASE
=1; export DUALCASE
# for MKS sh
256 CONFIG_SHELL
=$as_shell
258 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
268 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
270 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
271 DUALCASE
=1; export DUALCASE
# for MKS sh
283 as_func_ret_success
() {
286 as_func_ret_failure
() {
291 if as_func_success
; then
295 echo as_func_success failed.
298 if as_func_failure
; then
300 echo as_func_failure succeeded.
303 if as_func_ret_success
; then
307 echo as_func_ret_success failed.
310 if as_func_ret_failure
; then
312 echo as_func_ret_failure succeeded.
315 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
319 echo positional parameters were not saved.
322 test $exitcode = 0) ||
{ (exit 1); exit 1; }
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
339 if test "x$CONFIG_SHELL" != x
; then
340 for as_var
in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 if test $as_have_required = no
; then
349 echo This
script requires a shell
more modern than all the
350 echo shells that I found on your system. Please
install a
351 echo modern shell
, or manually run the
script under such a
352 echo shell
if you
do have one.
353 { (exit 1); exit 1; }
363 (eval "as_func_return () {
372 as_func_ret_success () {
375 as_func_ret_failure () {
380 if as_func_success; then
384 echo as_func_success failed.
387 if as_func_failure; then
389 echo as_func_failure succeeded.
392 if as_func_ret_success; then
396 echo as_func_ret_success failed.
399 if as_func_ret_failure; then
401 echo as_func_ret_failure succeeded.
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 echo positional parameters were not saved.
411 test \$exitcode = 0") ||
{
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system
,
414 echo including any error possibly output before this
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x
"$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
463 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
469 ECHO_C
= ECHO_N
= ECHO_T
=
473 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
480 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
487 rm -f conf$$ conf$$.exe conf$$.
file
488 if test -d conf$$.dir
; then
489 rm -f conf$$.dir
/conf$$.
file
495 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
503 elif ln conf$$.
file conf$$
2>/dev
/null
; then
508 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
509 rmdir conf$$.dir
2>/dev
/null
511 if mkdir
-p .
2>/dev
/null
; then
514 test -d .
/-p && rmdir .
/-p
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.
file <<_ASEOF
525 if test -x conf$$.
file >/dev
/null
2>&1; then
526 as_executable_p
="test -x"
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 exec 7<&0 </dev
/null
6>&1
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix
=/usr
/local
552 ac_config_libobj_dir
=.
558 SHELL
=${CONFIG_SHELL-/bin/sh}
560 # Identity of this package.
567 ac_unique_file
="asterisk"
568 ac_unique_file
="main/asterisk.c"
569 # Factoring default headers for most tests.
570 ac_includes_default
="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
614 program_transform_name
834 ac_precious_vars
='build_alias
848 # Initialize some variables set by options.
850 ac_init_version
=false
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
860 program_transform_name
=s
,x
,x
,
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir
='${exec_prefix}/bin'
875 sbindir
='${exec_prefix}/sbin'
876 libexecdir
='${exec_prefix}/libexec'
877 datarootdir
='${prefix}/share'
878 datadir
='${datarootdir}'
879 sysconfdir
='${prefix}/etc'
880 sharedstatedir
='${prefix}/com'
881 localstatedir
='${prefix}/var'
882 includedir
='${prefix}/include'
883 oldincludedir
='/usr/include'
884 docdir
='${datarootdir}/doc/${PACKAGE}'
885 infodir
='${datarootdir}/info'
890 libdir
='${exec_prefix}/lib'
891 localedir
='${datarootdir}/locale'
892 mandir
='${datarootdir}/man'
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\
$ac_option
906 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 # Accept the important Cygnus configure options, so we can diagnose typos.
912 case $ac_dashdash$ac_option in
916 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
918 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
921 -build |
--build |
--buil |
--bui |
--bu)
922 ac_prev
=build_alias
;;
923 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
924 build_alias
=$ac_optarg ;;
926 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
927 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
928 ac_prev
=cache_file
;;
929 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
930 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
931 cache_file
=$ac_optarg ;;
934 cache_file
=config.cache
;;
936 -datadir |
--datadir |
--datadi |
--datad)
938 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
939 datadir
=$ac_optarg ;;
941 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
942 |
--dataroo |
--dataro |
--datar)
943 ac_prev
=datarootdir
;;
944 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
945 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
946 datarootdir
=$ac_optarg ;;
948 -disable-* |
--disable-*)
949 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953 { (exit 1); exit 1; }; }
954 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
955 eval enable_
$ac_feature=no
;;
957 -docdir |
--docdir |
--docdi |
--doc |
--do)
959 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
962 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
964 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
967 -enable-* |
--enable-*)
968 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
971 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
972 { (exit 1); exit 1; }; }
973 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
974 eval enable_
$ac_feature=\
$ac_optarg ;;
976 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
977 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
978 |
--exec |
--exe |
--ex)
979 ac_prev
=exec_prefix
;;
980 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
981 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
982 |
--exec=* |
--exe=* |
--ex=*)
983 exec_prefix
=$ac_optarg ;;
985 -gas |
--gas |
--ga |
--g)
986 # Obsolete; use --with-gas.
989 -help |
--help |
--hel |
--he |
-h)
991 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
992 ac_init_help
=recursive
;;
993 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
994 ac_init_help
=short
;;
996 -host |
--host |
--hos |
--ho)
997 ac_prev
=host_alias
;;
998 -host=* |
--host=* |
--hos=* |
--ho=*)
999 host_alias
=$ac_optarg ;;
1001 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1003 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1005 htmldir
=$ac_optarg ;;
1007 -includedir |
--includedir |
--includedi |
--included |
--include \
1008 |
--includ |
--inclu |
--incl |
--inc)
1009 ac_prev
=includedir
;;
1010 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1011 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1012 includedir
=$ac_optarg ;;
1014 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1016 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1017 infodir
=$ac_optarg ;;
1019 -libdir |
--libdir |
--libdi |
--libd)
1021 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1022 libdir
=$ac_optarg ;;
1024 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1025 |
--libexe |
--libex |
--libe)
1026 ac_prev
=libexecdir
;;
1027 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1028 |
--libexe=* |
--libex=* |
--libe=*)
1029 libexecdir
=$ac_optarg ;;
1031 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1032 ac_prev
=localedir
;;
1033 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1034 localedir
=$ac_optarg ;;
1036 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1037 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1038 ac_prev
=localstatedir
;;
1039 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1040 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1041 localstatedir
=$ac_optarg ;;
1043 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1045 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1046 mandir
=$ac_optarg ;;
1048 -nfp |
--nfp |
--nf)
1049 # Obsolete; use --without-fp.
1052 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1053 |
--no-cr |
--no-c |
-n)
1056 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1057 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1060 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1061 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1062 |
--oldin |
--oldi |
--old |
--ol |
--o)
1063 ac_prev
=oldincludedir
;;
1064 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1065 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1066 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1067 oldincludedir
=$ac_optarg ;;
1069 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1071 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1072 prefix
=$ac_optarg ;;
1074 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1075 |
--program-pre |
--program-pr |
--program-p)
1076 ac_prev
=program_prefix
;;
1077 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1078 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1079 program_prefix
=$ac_optarg ;;
1081 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1082 |
--program-suf |
--program-su |
--program-s)
1083 ac_prev
=program_suffix
;;
1084 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1085 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1086 program_suffix
=$ac_optarg ;;
1088 -program-transform-name |
--program-transform-name \
1089 |
--program-transform-nam |
--program-transform-na \
1090 |
--program-transform-n |
--program-transform- \
1091 |
--program-transform |
--program-transfor \
1092 |
--program-transfo |
--program-transf \
1093 |
--program-trans |
--program-tran \
1094 |
--progr-tra |
--program-tr |
--program-t)
1095 ac_prev
=program_transform_name
;;
1096 -program-transform-name=* |
--program-transform-name=* \
1097 |
--program-transform-nam=* |
--program-transform-na=* \
1098 |
--program-transform-n=* |
--program-transform-=* \
1099 |
--program-transform=* |
--program-transfor=* \
1100 |
--program-transfo=* |
--program-transf=* \
1101 |
--program-trans=* |
--program-tran=* \
1102 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1103 program_transform_name
=$ac_optarg ;;
1105 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1107 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1108 pdfdir
=$ac_optarg ;;
1110 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1112 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1115 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1116 |
-silent |
--silent |
--silen |
--sile |
--sil)
1119 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1121 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1123 sbindir
=$ac_optarg ;;
1125 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1126 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1127 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1129 ac_prev
=sharedstatedir
;;
1130 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1131 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1132 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1134 sharedstatedir
=$ac_optarg ;;
1136 -site |
--site |
--sit)
1138 -site=* |
--site=* |
--sit=*)
1141 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1143 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1144 srcdir
=$ac_optarg ;;
1146 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1147 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1148 ac_prev
=sysconfdir
;;
1149 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1150 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1151 sysconfdir
=$ac_optarg ;;
1153 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1154 ac_prev
=target_alias
;;
1155 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1156 target_alias
=$ac_optarg ;;
1158 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1161 -version |
--version |
--versio |
--versi |
--vers |
-V)
1162 ac_init_version
=: ;;
1165 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1168 { echo "$as_me: error: invalid package name: $ac_package" >&2
1169 { (exit 1); exit 1; }; }
1170 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1171 eval with_
$ac_package=\
$ac_optarg ;;
1173 -without-* |
--without-*)
1174 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1177 { echo "$as_me: error: invalid package name: $ac_package" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1180 eval with_
$ac_package=no
;;
1183 # Obsolete; use --with-x.
1186 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1187 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1188 ac_prev
=x_includes
;;
1189 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1190 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1191 x_includes
=$ac_optarg ;;
1193 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1194 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1195 ac_prev
=x_libraries
;;
1196 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1197 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1198 x_libraries
=$ac_optarg ;;
1200 -*) { echo "$as_me: error: unrecognized option: $ac_option
1201 Try \`$0 --help' for more information." >&2
1202 { (exit 1); exit 1; }; }
1206 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1209 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1210 { (exit 1); exit 1; }; }
1211 eval $ac_envvar=\
$ac_optarg
1212 export $ac_envvar ;;
1215 # FIXME: should be removed in autoconf 3.0.
1216 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1218 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1225 if test -n "$ac_prev"; then
1226 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1227 { echo "$as_me: error: missing argument to $ac_option" >&2
1228 { (exit 1); exit 1; }; }
1231 # Be sure to have absolute directory names.
1232 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val
=\$
$ac_var
1239 [\\/$
]* | ?
:[\\/]* ) continue;;
1240 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1242 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1243 { (exit 1); exit 1; }; }
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1251 target
=$target_alias
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x
; then
1255 if test "x$build_alias" = x
; then
1256 cross_compiling
=maybe
1257 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1258 If a cross compiler is detected then cross compile mode will be used." >&2
1259 elif test "x$build_alias" != "x$host_alias"; then
1265 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1267 test "$silent" = yes && exec 6>/dev
/null
1270 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di
=`ls -di .` &&
1272 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1273 { echo "$as_me: error: Working directory cannot be determined" >&2
1274 { (exit 1); exit 1; }; }
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 { echo "$as_me: error: pwd does not report name of working directory" >&2
1277 { (exit 1); exit 1; }; }
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted
=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir
=`$as_dirname -- "$0" ||
1285 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$0" : 'X\(//\)[^/]' \| \
1287 X"$0" : 'X\(//\)$' \| \
1288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1312 ac_srcdir_defaulted
=no
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1316 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1317 { (exit 1); exit 1; }; }
1319 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1322 { (exit 1); exit 1; }; }
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1332 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 for ac_var
in $ac_precious_vars; do
1335 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1337 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1348 \`configure' configures this package to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1406 --build=BUILD configure
for building on BUILD
[guessed
]
1407 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1411 if test -n "$ac_init_help"; then
1416 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1417 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1418 --enable-dev-mode Turn on developer mode
1419 --disable-largefile omit support
for large files
1422 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1423 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1424 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1425 --with-curl=PATH use cURL files
in PATH
1426 --with-curses=PATH use curses files
in PATH
1427 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1429 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1430 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1431 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1432 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1433 --with-kde=PATH use KDE files
in PATH
1434 --with-misdn=PATH use mISDN User Library files
in PATH
1435 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1436 --with-ncurses=PATH use ncurses files
in PATH
1437 --with-netsnmp=PATH use Net-SNMP files
in PATH
1438 --with-newt=PATH use newt files
in PATH
1439 --with-odbc=PATH use unixODBC files
in PATH
1440 --with-ogg=PATH use OGG files
in PATH
1441 --with-osptk=PATH use OSP Toolkit files
in PATH
1442 --with-oss=PATH use Open Sound System files
in PATH
1443 --with-popt=PATH use popt files
in PATH
1444 --with-postgres=PATH use PostgreSQL files
in PATH
1445 --with-pri=PATH use ISDN PRI files
in PATH
1446 --with-pwlib=PATH use PWlib files
in PATH
1447 --with-h323=PATH use OpenH323 files
in PATH
1448 --with-qt=PATH use Qt files
in PATH
1449 --with-radius=PATH use Radius Client files
in PATH
1450 --with-speex=PATH use Speex files
in PATH
1451 --with-sqlite=PATH use SQLite files
in PATH
1452 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1453 --with-ssl=PATH use OpenSSL files
in PATH
1454 --with-tds=PATH use FreeTDS files
in PATH
1455 --with-termcap=PATH use Termcap files
in PATH
1456 --with-tinfo=PATH use Term Info files
in PATH
1457 --with-tonezone=PATH use tonezone files
in PATH
1458 --with-vorbis=PATH use Vorbis files
in PATH
1459 --with-vpb=PATH use Voicetronix API files
in PATH
1460 --with-z=PATH use zlib files
in PATH
1461 --with-zaptel=PATH use Zaptel files
in PATH
1463 Some influential environment variables
:
1464 CC C compiler
command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1467 nonstandard directory
<lib dir
>
1468 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1469 you have headers
in a nonstandard directory
<include dir
>
1470 CXX C
++ compiler
command
1471 CXXFLAGS C
++ compiler flags
1473 CXXCPP C
++ preprocessor
1475 Use these variables to override the choices made by
`configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" || continue
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1505 .) # We are building in place.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1529 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1539 generated by GNU Autoconf 2.60a
1541 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1542 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1550 cat >config.log <<_ACEOF
1551 This file contains any messages produced by compilers while
1552 running configure, to aid debugging if configure makes a mistake.
1554 It was created by $as_me, which was
1555 generated by GNU Autoconf 2.60a. Invocation command line was
1567 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1568 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1569 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1570 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1571 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1573 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1574 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1576 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1577 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1578 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1579 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1580 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1581 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1582 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 test -z "$as_dir" && as_dir=.
1591 echo "PATH: $as_dir"
1607 # Keep a trace of the command line.
1608 # Strip out --no-create and --no-recursion so they do not pile up.
1609 # Strip out --silent because we don't want to record it for future runs.
1610 # Also quote any args containing shell meta-characters.
1611 # Make two passes to allow for proper duplicate-argument suppression.
1615 ac_must_keep_next=false
1621 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1623 | -silent | --silent | --silen | --sile | --sil)
1626 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1629 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1631 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1632 if test $ac_must_keep_next = true; then
1633 ac_must_keep_next=false # Got value, back to normal.
1636 *=* | --config-cache | -C | -disable-* | --disable-* \
1637 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1638 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1639 | -with-* | --with-* | -without-* | --without-* | --x)
1640 case "$ac_configure_args0 " in
1641 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1644 -* ) ac_must_keep_next=true ;;
1647 ac_configure_args="$ac_configure_args '$ac_arg'"
1652 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1653 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1655 # When interrupted or exit'd, cleanup temporary files, and complete
1656 # config.log. We remove comments because anyway the quotes in there
1657 # would cause problems or look ugly.
1658 # WARNING: Use '\'' to represent an apostrophe within the trap.
1659 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1660 trap 'exit_status=$?
1661 # Save into config.log some information that might help in debugging.
1666 ## ---------------- ##
1667 ## Cache variables. ##
1668 ## ---------------- ##
1671 # The following way of writing the cache mishandles newlines in values,
1673 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1674 eval ac_val=\$$ac_var
1678 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1679 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1682 _ | IFS | as_nl) ;; #(
1683 *) $as_unset $ac_var ;;
1688 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1689 *${as_nl}ac_space=\ *)
1691 "s/'\''/'\''\\\\'\'''\''/g;
1692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1695 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1703 ## ----------------- ##
1704 ## Output variables. ##
1705 ## ----------------- ##
1708 for ac_var in $ac_subst_vars
1710 eval ac_val=\$$ac_var
1712 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1714 echo "$ac_var='\''$ac_val'\''"
1718 if test -n "$ac_subst_files"; then
1720 ## ------------------- ##
1721 ## File substitutions. ##
1722 ## ------------------- ##
1725 for ac_var in $ac_subst_files
1727 eval ac_val=\$$ac_var
1729 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731 echo "$ac_var='\''$ac_val'\''"
1736 if test -s confdefs.h; then
1746 test "$ac_signal" != 0 &&
1747 echo "$as_me: caught signal $ac_signal"
1748 echo "$as_me: exit $exit_status"
1750 rm -f core *.core core.conftest.* &&
1751 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1754 for ac_signal in 1 2 13 15; do
1755 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1759 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1760 rm -f -r conftest* confdefs.h
1762 # Predefined preprocessor variables.
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_NAME "$PACKAGE_NAME"
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_STRING "$PACKAGE_STRING"
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1789 # Let the site file select an alternate cache file if it wants to.
1790 # Prefer explicitly selected file to automatically selected ones.
1791 if test -n "$CONFIG_SITE"; then
1792 set x "$CONFIG_SITE"
1793 elif test "x$prefix" != xNONE; then
1794 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1796 set x "$ac_default_prefix/share/config.site" \
1797 "$ac_default_prefix/etc/config.site"
1802 if test -r "$ac_site_file"; then
1803 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1804 echo "$as_me: loading site script $ac_site_file" >&6;}
1805 sed 's/^/| /' "$ac_site_file" >&5
1810 if test -r "$cache_file"; then
1811 # Some versions of bash will fail to source /dev/null (special
1812 # files actually), so we avoid doing that.
1813 if test -f "$cache_file"; then
1814 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1815 echo "$as_me: loading cache $cache_file" >&6;}
1817 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1818 *) . "./$cache_file";;
1822 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1823 echo "$as_me: creating cache $cache_file" >&6;}
1827 # Check that the precious variables saved in the cache have kept the same
1829 ac_cache_corrupted=false
1830 for ac_var in $ac_precious_vars; do
1831 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1832 eval ac_new_set=\$ac_env_${ac_var}_set
1833 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1834 eval ac_new_val=\$ac_env_${ac_var}_value
1835 case $ac_old_set,$ac_new_set in
1837 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1838 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1839 ac_cache_corrupted=: ;;
1841 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1842 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1846 if test "x$ac_old_val" != "x$ac_new_val"; then
1847 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1848 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1849 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1850 echo "$as_me: former value
: $ac_old_val" >&2;}
1851 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1852 echo "$as_me: current value
: $ac_new_val" >&2;}
1853 ac_cache_corrupted=:
1856 # Pass precious variables to config.status.
1857 if test "$ac_new_set" = set; then
1859 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1860 *) ac_arg=$ac_var=$ac_new_val ;;
1862 case " $ac_configure_args " in
1863 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1864 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1868 if $ac_cache_corrupted; then
1869 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1870 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1871 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1872 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1873 { (exit 1); exit 1; }; }
1893 ac_cpp='$CPP $CPPFLAGS'
1894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900 # cross-compile macros
1902 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1903 if test -f "$ac_dir/install-sh"; then
1905 ac_install_sh="$ac_aux_dir/install-sh -c"
1907 elif test -f "$ac_dir/install.sh"; then
1909 ac_install_sh="$ac_aux_dir/install.sh -c"
1911 elif test -f "$ac_dir/shtool"; then
1913 ac_install_sh="$ac_aux_dir/shtool install -c"
1917 if test -z "$ac_aux_dir"; then
1918 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1919 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1920 { (exit 1); exit 1; }; }
1923 # These three variables are undocumented and unsupported,
1924 # and are intended to be withdrawn in a future Autoconf release.
1925 # They can cause serious problems if a builder's source tree is in a directory
1926 # whose full name contains unusual characters.
1927 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1928 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1929 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1932 # Make sure we can run config.sub.
1933 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1934 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1935 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1936 { (exit 1); exit 1; }; }
1938 { echo "$as_me:$LINENO: checking build system type" >&5
1939 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1940 if test "${ac_cv_build+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 ac_build_alias=$build_alias
1944 test "x$ac_build_alias" = x &&
1945 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1946 test "x$ac_build_alias" = x &&
1947 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1948 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1949 { (exit 1); exit 1; }; }
1950 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1951 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1952 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1953 { (exit 1); exit 1; }; }
1956 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1957 echo "${ECHO_T}$ac_cv_build" >&6; }
1958 case $ac_cv_build in
1960 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1961 echo "$as_me: error: invalid value of canonical build" >&2;}
1962 { (exit 1); exit 1; }; };;
1965 ac_save_IFS=$IFS; IFS='-'
1971 # Remember, the first character of IFS is used to create $*,
1972 # except with old shells:
1975 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1978 { echo "$as_me:$LINENO: checking host system type" >&5
1979 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1980 if test "${ac_cv_host+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 if test "x$host_alias" = x; then
1984 ac_cv_host=$ac_cv_build
1986 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1987 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1988 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1989 { (exit 1); exit 1; }; }
1993 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1994 echo "${ECHO_T}$ac_cv_host" >&6; }
1997 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1998 echo "$as_me: error: invalid value of canonical host" >&2;}
1999 { (exit 1); exit 1; }; };;
2002 ac_save_IFS=$IFS; IFS='-'
2008 # Remember, the first character of IFS is used to create $*,
2009 # except with old shells:
2012 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2016 # check existence of the package
2019 # specify output header file
2020 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2026 case "${host_os}" in
2028 ac_default_prefix=/usr/local
2031 ac_default_prefix=/usr
2032 if test ${sysconfdir} = '${prefix}/etc'; then
2035 if test ${mandir} = '${prefix}/man'; then
2036 mandir=/usr/share/man
2041 if test ${localstatedir} = '${prefix}/var'; then
2045 BUILD_PLATFORM=${build}
2046 BUILD_CPU=${build_cpu}
2047 BUILD_VENDOR=${build_vendor}
2048 BUILD_OS=${build_os}
2055 HOST_PLATFORM=${host}
2056 HOST_CPU=${host_cpu}
2057 HOST_VENDOR=${host_vendor}
2065 case "${host_os}" in
2086 if test -n "$ac_tool_prefix"; then
2087 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2088 set dummy ${ac_tool_prefix}uname; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_path_UNAME+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2106 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 UNAME=$ac_cv_path_UNAME
2118 if test -n "$UNAME"; then
2119 { echo "$as_me:$LINENO: result: $UNAME" >&5
2120 echo "${ECHO_T}$UNAME" >&6; }
2122 { echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6; }
2128 if test -z "$ac_cv_path_UNAME"; then
2130 # Extract the first word of "uname", so it can be a program name with args.
2131 set dummy uname; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 case $ac_pt_UNAME in
2139 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2149 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2161 if test -n "$ac_pt_UNAME"; then
2162 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2163 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2165 { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2169 if test "x$ac_pt_UNAME" = x; then
2172 case $cross_compiling:$ac_tool_warned in
2174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2175 whose name does not start with the host triplet. If you think this
2176 configuration is useful to you, please write to autoconf@gnu.org." >&5
2177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2178 whose name does not start with the host triplet. If you think this
2179 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2180 ac_tool_warned=yes ;;
2185 UNAME="$ac_cv_path_UNAME"
2188 if test ! x"${UNAME}" = xNo; then
2189 PBX_OSREV=$(${UNAME} -r)
2193 # This needs to be before any macros that use the C compiler
2195 cat >>confdefs.h <<\_ACEOF
2196 #define _GNU_SOURCE 1
2207 # cross-compile checks
2208 if test "${cross_compiling}" = "yes";
2210 if test -n "$ac_tool_prefix"; then
2211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2212 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 if test -n "$CC"; then
2219 ac_cv_prog_CC="$CC" # Let the user override the test.
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 if test -n "$CC"; then
2240 { echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6; }
2243 { echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6; }
2249 if test -z "$ac_cv_prog_CC"; then
2251 # Extract the first word of "gcc", so it can be a program name with args.
2252 set dummy gcc; ac_word=$2
2253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 if test -n "$ac_ct_CC"; then
2259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2268 ac_cv_prog_ac_ct_CC="gcc"
2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2279 if test -n "$ac_ct_CC"; then
2280 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2281 echo "${ECHO_T}$ac_ct_CC" >&6; }
2283 { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2287 if test "x$ac_ct_CC" = x; then
2290 case $cross_compiling:$ac_tool_warned in
2292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2293 whose name does not start with the host triplet. If you think this
2294 configuration is useful to you, please write to autoconf@gnu.org." >&5
2295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2296 whose name does not start with the host triplet. If you think this
2297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2298 ac_tool_warned=yes ;;
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2308 set dummy ${ac_tool_prefix}g++; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_CXX+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 if test -n "$CXX"; then
2315 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 if test -n "$CXX"; then
2336 { echo "$as_me:$LINENO: result: $CXX" >&5
2337 echo "${ECHO_T}$CXX" >&6; }
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2345 if test -z "$ac_cv_prog_CXX"; then
2347 # Extract the first word of "g++", so it can be a program name with args.
2348 set dummy g++; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$ac_ct_CXX"; then
2355 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_ac_ct_CXX="g++"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2375 if test -n "$ac_ct_CXX"; then
2376 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2377 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2383 if test "x$ac_ct_CXX" = x; then
2386 case $cross_compiling:$ac_tool_warned in
2388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet. If you think this
2390 configuration is useful to you, please write to autoconf@gnu.org." >&5
2391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2392 whose name does not start with the host triplet. If you think this
2393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2394 ac_tool_warned=yes ;;
2399 CXX="$ac_cv_prog_CXX"
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}ld; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_LD+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$LD"; then
2411 ac_cv_prog_LD="$LD" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_LD="${ac_tool_prefix}ld"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 if test -n "$LD"; then
2432 { echo "$as_me:$LINENO: result: $LD" >&5
2433 echo "${ECHO_T}$LD" >&6; }
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2441 if test -z "$ac_cv_prog_LD"; then
2443 # Extract the first word of "ld", so it can be a program name with args.
2444 set dummy ld; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 if test -n "$ac_ct_LD"; then
2451 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_ac_ct_LD="ld"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2471 if test -n "$ac_ct_LD"; then
2472 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2473 echo "${ECHO_T}$ac_ct_LD" >&6; }
2475 { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2479 if test "x$ac_ct_LD" = x; then
2482 case $cross_compiling:$ac_tool_warned in
2484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2485 whose name does not start with the host triplet. If you think this
2486 configuration is useful to you, please write to autoconf@gnu.org." >&5
2487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet. If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2490 ac_tool_warned=yes ;;
2498 if test -n "$ac_tool_prefix"; then
2499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_RANLIB+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$RANLIB"; then
2507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 RANLIB=$ac_cv_prog_RANLIB
2527 if test -n "$RANLIB"; then
2528 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2529 echo "${ECHO_T}$RANLIB" >&6; }
2531 { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2537 if test -z "$ac_cv_prog_RANLIB"; then
2538 ac_ct_RANLIB=$RANLIB
2539 # Extract the first word of "ranlib", so it can be a program name with args.
2540 set dummy ranlib; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 if test -n "$ac_ct_RANLIB"; then
2547 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_ac_ct_RANLIB="ranlib"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2567 if test -n "$ac_ct_RANLIB"; then
2568 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2569 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2571 { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2575 if test "x$ac_ct_RANLIB" = x; then
2578 case $cross_compiling:$ac_tool_warned in
2580 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2581 whose name does not start with the host triplet. If you think this
2582 configuration is useful to you, please write to autoconf@gnu.org." >&5
2583 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2584 whose name does not start with the host triplet. If you think this
2585 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2586 ac_tool_warned=yes ;;
2588 RANLIB=$ac_ct_RANLIB
2591 RANLIB="$ac_cv_prog_RANLIB"
2594 if test -n "$ac_tool_prefix"; then
2595 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2596 set dummy ${ac_tool_prefix}ar; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_AR+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 if test -n "$AR"; then
2603 ac_cv_prog_AR="$AR" # Let the user override the test.
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_AR="${ac_tool_prefix}ar"
2613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 if test -n "$AR"; then
2624 { echo "$as_me:$LINENO: result: $AR" >&5
2625 echo "${ECHO_T}$AR" >&6; }
2627 { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2633 if test -z "$ac_cv_prog_AR"; then
2635 # Extract the first word of "ar", so it can be a program name with args.
2636 set dummy ar; ac_word=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$ac_ct_AR"; then
2643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_ac_ct_AR="ar"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2663 if test -n "$ac_ct_AR"; then
2664 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2665 echo "${ECHO_T}$ac_ct_AR" >&6; }
2667 { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2671 if test "x$ac_ct_AR" = x; then
2674 case $cross_compiling:$ac_tool_warned in
2676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&5
2679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2682 ac_tool_warned=yes ;;
2692 # Checks for programs.
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2703 if test "${ac_cv_prog_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2716 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 if test -n "$CC"; then
2728 { echo "$as_me:$LINENO: result: $CC" >&5
2729 echo "${ECHO_T}$CC" >&6; }
2731 { echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6; }
2737 if test -z "$ac_cv_prog_CC"; then
2739 # Extract the first word of "gcc", so it can be a program name with args.
2740 set dummy gcc; ac_word=$2
2741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 if test -n "$ac_ct_CC"; then
2747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_ac_ct_CC="gcc"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2767 if test -n "$ac_ct_CC"; then
2768 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2769 echo "${ECHO_T}$ac_ct_CC" >&6; }
2771 { echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6; }
2775 if test "x$ac_ct_CC" = x; then
2778 case $cross_compiling:$ac_tool_warned in
2780 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2781 whose name does not start with the host triplet. If you think this
2782 configuration is useful to you, please write to autoconf@gnu.org." >&5
2783 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2784 whose name does not start with the host triplet. If you think this
2785 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2786 ac_tool_warned=yes ;;
2794 if test -z "$CC"; then
2795 if test -n "$ac_tool_prefix"; then
2796 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2797 set dummy ${ac_tool_prefix}cc; ac_word=$2
2798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2800 if test "${ac_cv_prog_CC+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 test -z "$as_dir" && as_dir=.
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2813 ac_cv_prog_CC="${ac_tool_prefix}cc"
2814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 if test -n "$CC"; then
2825 { echo "$as_me:$LINENO: result: $CC" >&5
2826 echo "${ECHO_T}$CC" >&6; }
2828 { echo "$as_me:$LINENO: result: no" >&5
2829 echo "${ECHO_T}no" >&6; }
2835 if test -z "$CC"; then
2836 # Extract the first word of "cc", so it can be a program name with args.
2837 set dummy cc; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2855 ac_prog_rejected=yes
2859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 if test $ac_prog_rejected = yes; then
2867 # We found a bogon in the path, so make sure we never use it.
2868 set dummy $ac_cv_prog_CC
2870 if test $# != 0; then
2871 # We chose a different compiler from the bogus one.
2872 # However, it has the same basename, so the bogon will be chosen
2873 # first if we set CC to just the basename; use the full file name.
2875 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2881 if test -n "$CC"; then
2882 { echo "$as_me:$LINENO: result: $CC" >&5
2883 echo "${ECHO_T}$CC" >&6; }
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2891 if test -z "$CC"; then
2892 if test -n "$ac_tool_prefix"; then
2893 for ac_prog in cl.exe
2895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 if test -n "$CC"; then
2924 { echo "$as_me:$LINENO: result: $CC" >&5
2925 echo "${ECHO_T}$CC" >&6; }
2927 { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2932 test -n "$CC" && break
2935 if test -z "$CC"; then
2937 for ac_prog in cl.exe
2939 # Extract the first word of "$ac_prog", so it can be a program name with args.
2940 set dummy $ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 if test -n "$ac_ct_CC"; then
2947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_ac_ct_CC="$ac_prog"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2967 if test -n "$ac_ct_CC"; then
2968 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2969 echo "${ECHO_T}$ac_ct_CC" >&6; }
2971 { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2976 test -n "$ac_ct_CC" && break
2979 if test "x$ac_ct_CC" = x; then
2982 case $cross_compiling:$ac_tool_warned in
2984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2985 whose name does not start with the host triplet. If you think this
2986 configuration is useful to you, please write to autoconf@gnu.org." >&5
2987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2988 whose name does not start with the host triplet. If you think this
2989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2990 ac_tool_warned=yes ;;
2999 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3000 See \`config.log
' for more details." >&5
3001 echo "$as_me: error: no acceptable C compiler found in \$PATH
3002 See \`config.log' for more details.
" >&2;}
3003 { (exit 1); exit 1; }; }
3005 # Provide some information about the compiler.
3006 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
3007 ac_compiler=`set X $ac_compile; echo $2`
3008 { (ac_try="$ac_compiler --version >&5"
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_compiler --version >&5") 2>&5
3016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3017 (exit $ac_status); }
3018 { (ac_try="$ac_compiler -v >&5"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compiler -v >&5") 2>&5
3026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3027 (exit $ac_status); }
3028 { (ac_try="$ac_compiler -V >&5"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compiler -V >&5") 2>&5
3036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3037 (exit $ac_status); }
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3054 ac_clean_files_save=$ac_clean_files
3055 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
3056 # Try to create an executable without -o first, disregard a.out.
3057 # It will help us diagnose broken compilers, and finding out an intuition
3059 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
3060 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
3061 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3063 # List of possible output files, starting from the most likely.
3064 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3065 # only as a last resort. b.out is created by i960 compilers.
3066 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3068 # The IRIX 6 linker writes into existing files which may not be
3069 # executable, retaining their permissions. Remove them first so a
3070 # subsequent execution test works.
3072 for ac_file in $ac_files
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3076 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3081 if { (ac_try="$ac_link_default"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_link_default") 2>&5
3089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3090 (exit $ac_status); }; then
3091 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3092 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3093 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3094 # so that the user can short-circuit this test for compilers unknown to
3096 for ac_file in $ac_files ''
3098 test -f "$ac_file" || continue
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3103 # We found the default executable, but exeext='' is most
3107 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3111 # We set ac_cv_exeext here because the later test for it is not
3112 # safe: cross compilers may not add the suffix if given an `-o'
3113 # argument, so we may need to know it at that point already.
3114 # Even if this section looks crufty: it has the advantage of
3121 test "$ac_cv_exeext" = no && ac_cv_exeext=
3127 { echo "$as_me:$LINENO: result
: $ac_file" >&5
3128 echo "${ECHO_T}$ac_file" >&6; }
3129 if test -z "$ac_file"; then
3130 echo "$as_me: failed program was
:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3134 See \
`config.log' for more details." >&5
3135 echo "$as_me: error: C compiler cannot create executables
3136 See \`config.log
' for more details." >&2;}
3137 { (exit 77); exit 77; }; }
3140 ac_exeext=$ac_cv_exeext
3142 # Check that the compiler produces executables we can run. If not, either
3143 # the compiler is broken, or we cross compile.
3144 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3145 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3146 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3147 # If not cross compiling, check that we can run a simple program.
3148 if test "$cross_compiling" != yes; then
3149 if { ac_try='.
/$ac_file'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3161 if test "$cross_compiling" = maybe; then
3164 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3165 If you meant to cross compile, use \`--host'.
3166 See \
`config.log' for more details." >&5
3167 echo "$as_me: error: cannot run C compiled programs.
3168 If you meant to cross compile, use \`--host'.
3169 See \`config.log' for more details.
" >&2;}
3170 { (exit 1); exit 1; }; }
3174 { echo "$as_me:$LINENO: result
: yes" >&5
3175 echo "${ECHO_T}yes" >&6; }
3177 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3178 ac_clean_files=$ac_clean_files_save
3179 # Check that the compiler produces executables we can run. If not, either
3180 # the compiler is broken, or we cross compile.
3181 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3182 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3183 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3184 echo "${ECHO_T}$cross_compiling" >&6; }
3186 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3187 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3188 if { (ac_try="$ac_link"
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_link") 2>&5
3196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3197 (exit $ac_status); }; then
3198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200 # work properly (i.e., refer to `conftest.exe'), while it won't with
3202 for ac_file in conftest.exe conftest conftest.*; do
3203 test -f "$ac_file" || continue
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3213 See \
`config.log' for more details." >&5
3214 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3215 See \`config.log
' for more details." >&2;}
3216 { (exit 1); exit 1; }; }
3219 rm -f conftest$ac_cv_exeext
3220 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3221 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3223 rm -f conftest.$ac_ext
3224 EXEEXT=$ac_cv_exeext
3226 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3227 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3228 if test "${ac_cv_objext+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3246 rm -f conftest.o conftest.obj
3247 if { (ac_try="$ac_compile"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_compile") 2>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; then
3257 for ac_file in conftest.o conftest.obj conftest.*; do
3258 test -f "$ac_file" || continue;
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3261 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3266 echo "$as_me: failed program was:" >&5
3267 sed 's
/^
/|
/' conftest.$ac_ext >&5
3269 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3270 See \`config.log' for more details.
" >&5
3271 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3272 See \
`config.log' for more details." >&2;}
3273 { (exit 1); exit 1; }; }
3276 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3278 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3279 echo "${ECHO_T}$ac_cv_objext" >&6; }
3280 OBJEXT=$ac_cv_objext
3282 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3283 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3284 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 cat >conftest.$ac_ext <<_ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3305 rm -f conftest.$ac_objext
3306 if { (ac_try="$ac_compile"
3308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3309 *) ac_try_echo
=$ac_try;;
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3314 grep -v '^ *+' conftest.er1
>conftest.err
3316 cat conftest.err
>&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } &&
3319 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3320 { (case "(($ac_try" in
3321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_try") 2>&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; } &&
3329 { ac_try='test -s conftest.$ac_objext'
3330 { (case "(($ac_try" in
3331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3332 *) ac_try_echo
=$ac_try;;
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_try") 2>&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.
$ac_ext >&5
3347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3348 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3351 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3352 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3353 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3354 ac_test_CFLAGS
=${CFLAGS+set}
3355 ac_save_CFLAGS
=$CFLAGS
3356 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3357 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3358 if test "${ac_cv_prog_cc_g+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 ac_save_c_werror_flag
=$ac_c_werror_flag
3362 ac_c_werror_flag
=yes
3365 cat >conftest.
$ac_ext <<_ACEOF
3368 cat confdefs.h
>>conftest.
$ac_ext
3369 cat >>conftest.
$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3380 rm -f conftest.
$ac_objext
3381 if { (ac_try
="$ac_compile"
3383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_compile") 2>conftest.er1
3389 grep -v '^ *+' conftest.er1 >conftest.err
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } &&
3394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3395 { (case "(($ac_try" in
3396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3397 *) ac_try_echo
=$ac_try;;
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_try") 2>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; } &&
3404 { ac_try
='test -s conftest.$ac_objext'
3405 { (case "(($ac_try" in
3406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_try") 2>&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; }; then
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3439 *) ac_try_echo
=$ac_try;;
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_compile") 2>conftest.er1
3444 grep -v '^ *+' conftest.er1
>conftest.err
3446 cat conftest.err
>&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } &&
3449 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3450 { (case "(($ac_try" in
3451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_try") 2>&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (case "(($ac_try" in
3461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3462 *) ac_try_echo
=$ac_try;;
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_try") 2>&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.
$ac_ext >&5
3474 ac_c_werror_flag
=$ac_save_c_werror_flag
3476 cat >conftest.
$ac_ext <<_ACEOF
3479 cat confdefs.h
>>conftest.
$ac_ext
3480 cat >>conftest.
$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3491 rm -f conftest.
$ac_objext
3492 if { (ac_try
="$ac_compile"
3494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_compile") 2>conftest.er1
3500 grep -v '^ *+' conftest.er1 >conftest.err
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } &&
3505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3506 { (case "(($ac_try" in
3507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3508 *) ac_try_echo
=$ac_try;;
3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511 (eval "$ac_try") 2>&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try
='test -s conftest.$ac_objext'
3516 { (case "(($ac_try" in
3517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_try") 2>&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 ac_c_werror_flag=$ac_save_c_werror_flag
3542 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3543 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3544 if test "$ac_test_CFLAGS" = set; then
3545 CFLAGS=$ac_save_CFLAGS
3546 elif test $ac_cv_prog_cc_g = yes; then
3547 if test "$GCC" = yes; then
3553 if test "$GCC" = yes; then
3559 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3560 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3561 if test "${ac_cv_prog_cc_c89+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 ac_cv_prog_cc_c89=no
3566 cat >conftest.$ac_ext <<_ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3574 #include <sys/types.h>
3575 #include <sys/stat.h>
3576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3577 struct buf { int x; };
3578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3579 static char *e (p, i)
3585 static char *f (char * (*g) (char **, int), char **p, ...)
3590 s = g (p, va_arg (v,int));
3595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3596 function prototypes and stuff, but not '\xHH' hex character constants.
3597 These don't provoke an error unfortunately, instead are silently treated
3598 as 'x'. The following induces an error, until -std is added to get
3599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3600 array size at least. It's necessary to write '\x00'==0 to get something
3601 that's true only with -std. */
3602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3605 inside strings and character constants. */
3607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3609 int test (int i, double x);
3610 struct s1 {int (*f) (int a);};
3611 struct s2 {int (*f) (double a);};
3612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3626 CC="$ac_save_CC $ac_arg"
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3631 *) ac_try_echo
=$ac_try;;
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634 (eval "$ac_compile") 2>conftest.er1
3636 grep -v '^ *+' conftest.er1
>conftest.err
3638 cat conftest.err
>&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3642 { (case "(($ac_try" in
3643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647 (eval "$ac_try") 2>&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; } &&
3651 { ac_try='test -s conftest.$ac_objext'
3652 { (case "(($ac_try" in
3653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3654 *) ac_try_echo
=$ac_try;;
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_try") 2>&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3661 ac_cv_prog_cc_c89
=$ac_arg
3663 echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.
$ac_ext >&5
3669 rm -f core conftest.err conftest.
$ac_objext
3670 test "x$ac_cv_prog_cc_c89" != "xno" && break
3672 rm -f conftest.
$ac_ext
3677 case "x$ac_cv_prog_cc_c89" in
3679 { echo "$as_me:$LINENO: result: none needed" >&5
3680 echo "${ECHO_T}none needed" >&6; } ;;
3682 { echo "$as_me:$LINENO: result: unsupported" >&5
3683 echo "${ECHO_T}unsupported" >&6; } ;;
3685 CC
="$CC $ac_cv_prog_cc_c89"
3686 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3687 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3692 ac_cpp
='$CPP $CPPFLAGS'
3693 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3698 ac_cpp
='$CXXCPP $CPPFLAGS'
3699 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3702 if test -z "$CXX"; then
3703 if test -n "$CCC"; then
3706 if test -n "$ac_tool_prefix"; then
3707 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3710 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3713 if test "${ac_cv_prog_CXX+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 if test -n "$CXX"; then
3717 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir
=.
3724 for ac_exec_ext
in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3726 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 if test -n "$CXX"; then
3738 { echo "$as_me:$LINENO: result: $CXX" >&5
3739 echo "${ECHO_T}$CXX" >&6; }
3741 { echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; }
3746 test -n "$CXX" && break
3749 if test -z "$CXX"; then
3751 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3753 # Extract the first word of "$ac_prog", so it can be a program name with args.
3754 set dummy
$ac_prog; ac_word
=$2
3755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3757 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test -n "$ac_ct_CXX"; then
3761 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3767 test -z "$as_dir" && as_dir
=.
3768 for ac_exec_ext
in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3770 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3781 if test -n "$ac_ct_CXX"; then
3782 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3783 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3785 { echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6; }
3790 test -n "$ac_ct_CXX" && break
3793 if test "x$ac_ct_CXX" = x
; then
3796 case $cross_compiling:$ac_tool_warned in
3798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3799 whose name does not start with the host triplet. If you think this
3800 configuration is useful to you, please write to autoconf@gnu.org." >&5
3801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3802 whose name does not start with the host triplet. If you think this
3803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3804 ac_tool_warned
=yes ;;
3812 # Provide some information about the compiler.
3813 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3814 ac_compiler
=`set X $ac_compile; echo $2`
3815 { (ac_try
="$ac_compiler --version >&5"
3817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_compiler --version >&5") 2>&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }
3825 { (ac_try="$ac_compiler -v >&5"
3827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3828 *) ac_try_echo
=$ac_try;;
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_compiler -v >&5") 2>&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }
3835 { (ac_try
="$ac_compiler -V >&5"
3837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841 (eval "$ac_compiler -V >&5") 2>&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }
3846 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3847 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3848 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 cat >conftest.$ac_ext <<_ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3869 rm -f conftest.$ac_objext
3870 if { (ac_try="$ac_compile"
3872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3873 *) ac_try_echo
=$ac_try;;
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_compile") 2>conftest.er1
3878 grep -v '^ *+' conftest.er1
>conftest.err
3880 cat conftest.err
>&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } &&
3883 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3884 { (case "(($ac_try" in
3885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_try") 2>&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; } &&
3893 { ac_try='test -s conftest.$ac_objext'
3894 { (case "(($ac_try" in
3895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3896 *) ac_try_echo
=$ac_try;;
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899 (eval "$ac_try") 2>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.
$ac_ext >&5
3911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3912 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3915 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3916 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3917 GXX
=`test $ac_compiler_gnu = yes && echo yes`
3918 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3919 ac_save_CXXFLAGS
=$CXXFLAGS
3920 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3921 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3922 if test "${ac_cv_prog_cxx_g+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3926 ac_cxx_werror_flag
=yes
3929 cat >conftest.
$ac_ext <<_ACEOF
3932 cat confdefs.h
>>conftest.
$ac_ext
3933 cat >>conftest.
$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3944 rm -f conftest.
$ac_objext
3945 if { (ac_try
="$ac_compile"
3947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_compile") 2>conftest.er1
3953 grep -v '^ *+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3959 { (case "(($ac_try" in
3960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3961 *) ac_try_echo
=$ac_try;;
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_try") 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; } &&
3968 { ac_try
='test -s conftest.$ac_objext'
3969 { (case "(($ac_try" in
3970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_try") 2>&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 ac_cv_prog_cxx_g=yes
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3984 cat >conftest.$ac_ext <<_ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3999 rm -f conftest.$ac_objext
4000 if { (ac_try="$ac_compile"
4002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4003 *) ac_try_echo
=$ac_try;;
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_compile") 2>conftest.er1
4008 grep -v '^ *+' conftest.er1
>conftest.err
4010 cat conftest.err
>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4014 { (case "(($ac_try" in
4015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_try") 2>&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; } &&
4023 { ac_try='test -s conftest.$ac_objext'
4024 { (case "(($ac_try" in
4025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4026 *) ac_try_echo
=$ac_try;;
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_try") 2>&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.
$ac_ext >&5
4038 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4040 cat >conftest.
$ac_ext <<_ACEOF
4043 cat confdefs.h
>>conftest.
$ac_ext
4044 cat >>conftest.
$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4055 rm -f conftest.
$ac_objext
4056 if { (ac_try
="$ac_compile"
4058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4070 { (case "(($ac_try" in
4071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4072 *) ac_try_echo
=$ac_try;;
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_try") 2>&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; } &&
4079 { ac_try
='test -s conftest.$ac_objext'
4080 { (case "(($ac_try" in
4081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_try") 2>&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 ac_cv_prog_cxx_g=yes
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4106 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4107 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4108 if test "$ac_test_CXXFLAGS" = set; then
4109 CXXFLAGS=$ac_save_CXXFLAGS
4110 elif test $ac_cv_prog_cxx_g = yes; then
4111 if test "$GXX" = yes; then
4117 if test "$GXX" = yes; then
4124 ac_cpp='$CPP $CPPFLAGS'
4125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4135 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4136 # On Suns, sometimes $CPP names a directory.
4137 if test -n "$CPP" && test -d "$CPP"; then
4140 if test -z "$CPP"; then
4141 if test "${ac_cv_prog_CPP+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 # Double quotes because CPP needs to be expanded
4145 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4148 for ac_c_preproc_warn_flag in '' yes
4150 # Use a header file that comes with gcc, so configuring glibc
4151 # with a fresh cross-compiler works.
4152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4153 # <limits.h> exists even on freestanding compilers.
4154 # On the NeXT, cc -E runs the code through the compiler's parser,
4155 # not just through cpp. "Syntax error" is here to catch this case.
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4163 # include <limits.h>
4165 # include <assert.h>
4169 if { (ac_try="$ac_cpp conftest.$ac_ext"
4171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4172 *) ac_try_echo
=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4177 grep -v '^ *+' conftest.er1
>conftest.err
4179 cat conftest.err
>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev
/null
; then
4182 if test -s conftest.err
; then
4183 ac_cpp_err
=$ac_c_preproc_warn_flag
4184 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4191 if test -z "$ac_cpp_err"; then
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.
$ac_ext >&5
4197 # Broken: fails on valid input.
4201 rm -f conftest.err conftest.
$ac_ext
4203 # OK, works on sane cases. Now check whether nonexistent headers
4204 # can be detected and how.
4205 cat >conftest.
$ac_ext <<_ACEOF
4208 cat confdefs.h
>>conftest.
$ac_ext
4209 cat >>conftest.
$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 #include <ac_nonexistent.h>
4213 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1 >conftest.err
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } >/dev/null; then
4226 if test -s conftest.err; then
4227 ac_cpp_err=$ac_c_preproc_warn_flag
4228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4235 if test -z "$ac_cpp_err"; then
4236 # Broken: success on invalid input.
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 # Passes both tests.
4247 rm -f conftest.err conftest.$ac_ext
4250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251 rm -f conftest.err conftest.
$ac_ext
4252 if $ac_preproc_ok; then
4264 { echo "$as_me:$LINENO: result: $CPP" >&5
4265 echo "${ECHO_T}$CPP" >&6; }
4267 for ac_c_preproc_warn_flag
in '' yes
4269 # Use a header file that comes with gcc, so configuring glibc
4270 # with a fresh cross-compiler works.
4271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4272 # <limits.h> exists even on freestanding compilers.
4273 # On the NeXT, cc -E runs the code through the compiler's parser,
4274 # not just through cpp. "Syntax error" is here to catch this case.
4275 cat >conftest.
$ac_ext <<_ACEOF
4278 cat confdefs.h
>>conftest.
$ac_ext
4279 cat >>conftest.
$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4282 # include <limits.h>
4284 # include <assert.h>
4288 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4296 grep -v '^ *+' conftest.er1 >conftest.err
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } >/dev/null; then
4301 if test -s conftest.err; then
4302 ac_cpp_err=$ac_c_preproc_warn_flag
4303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4310 if test -z "$ac_cpp_err"; then
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4316 # Broken: fails on valid input.
4320 rm -f conftest.err conftest.$ac_ext
4322 # OK, works on sane cases. Now check whether nonexistent headers
4323 # can be detected and how.
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <ac_nonexistent.h>
4332 if { (ac_try="$ac_cpp conftest.$ac_ext"
4334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4335 *) ac_try_echo
=$ac_try;;
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4340 grep -v '^ *+' conftest.er1
>conftest.err
4342 cat conftest.err
>&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } >/dev
/null
; then
4345 if test -s conftest.err
; then
4346 ac_cpp_err
=$ac_c_preproc_warn_flag
4347 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4354 if test -z "$ac_cpp_err"; then
4355 # Broken: success on invalid input.
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.
$ac_ext >&5
4361 # Passes both tests.
4366 rm -f conftest.err conftest.
$ac_ext
4369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4370 rm -f conftest.err conftest.
$ac_ext
4371 if $ac_preproc_ok; then
4374 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4375 See \`config.log' for more details." >&5
4376 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4377 See \`config.log' for more details." >&2;}
4378 { (exit 1); exit 1; }; }
4382 ac_cpp
='$CPP $CPPFLAGS'
4383 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4388 ac_cpp
='$CXXCPP $CPPFLAGS'
4389 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4392 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4393 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4394 if test -z "$CXXCPP"; then
4395 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 # Double quotes because CXXCPP needs to be expanded
4399 for CXXCPP
in "$CXX -E" "/lib/cpp"
4402 for ac_cxx_preproc_warn_flag
in '' yes
4404 # Use a header file that comes with gcc, so configuring glibc
4405 # with a fresh cross-compiler works.
4406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4407 # <limits.h> exists even on freestanding compilers.
4408 # On the NeXT, cc -E runs the code through the compiler's parser,
4409 # not just through cpp. "Syntax error" is here to catch this case.
4410 cat >conftest.
$ac_ext <<_ACEOF
4413 cat confdefs.h
>>conftest.
$ac_ext
4414 cat >>conftest.
$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4417 # include <limits.h>
4419 # include <assert.h>
4423 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } >/dev/null; then
4436 if test -s conftest.err; then
4437 ac_cpp_err=$ac_cxx_preproc_warn_flag
4438 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4445 if test -z "$ac_cpp_err"; then
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 # Broken: fails on valid input.
4455 rm -f conftest.err conftest.$ac_ext
4457 # OK, works on sane cases. Now check whether nonexistent headers
4458 # can be detected and how.
4459 cat >conftest.$ac_ext <<_ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <ac_nonexistent.h>
4467 if { (ac_try="$ac_cpp conftest.$ac_ext"
4469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4470 *) ac_try_echo
=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4475 grep -v '^ *+' conftest.er1
>conftest.err
4477 cat conftest.err
>&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } >/dev
/null
; then
4480 if test -s conftest.err
; then
4481 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4482 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
4489 if test -z "$ac_cpp_err"; then
4490 # Broken: success on invalid input.
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.
$ac_ext >&5
4496 # Passes both tests.
4501 rm -f conftest.err conftest.
$ac_ext
4504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4505 rm -f conftest.err conftest.
$ac_ext
4506 if $ac_preproc_ok; then
4511 ac_cv_prog_CXXCPP
=$CXXCPP
4514 CXXCPP
=$ac_cv_prog_CXXCPP
4516 ac_cv_prog_CXXCPP
=$CXXCPP
4518 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4519 echo "${ECHO_T}$CXXCPP" >&6; }
4521 for ac_cxx_preproc_warn_flag
in '' yes
4523 # Use a header file that comes with gcc, so configuring glibc
4524 # with a fresh cross-compiler works.
4525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526 # <limits.h> exists even on freestanding compilers.
4527 # On the NeXT, cc -E runs the code through the compiler's parser,
4528 # not just through cpp. "Syntax error" is here to catch this case.
4529 cat >conftest.
$ac_ext <<_ACEOF
4532 cat confdefs.h
>>conftest.
$ac_ext
4533 cat >>conftest.
$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4536 # include <limits.h>
4538 # include <assert.h>
4542 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4550 grep -v '^ *+' conftest.er1 >conftest.err
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } >/dev/null; then
4555 if test -s conftest.err; then
4556 ac_cpp_err=$ac_cxx_preproc_warn_flag
4557 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4564 if test -z "$ac_cpp_err"; then
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 # Broken: fails on valid input.
4574 rm -f conftest.err conftest.$ac_ext
4576 # OK, works on sane cases. Now check whether nonexistent headers
4577 # can be detected and how.
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 #include <ac_nonexistent.h>
4586 if { (ac_try="$ac_cpp conftest.$ac_ext"
4588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4589 *) ac_try_echo
=$ac_try;;
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4594 grep -v '^ *+' conftest.er1
>conftest.err
4596 cat conftest.err
>&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } >/dev
/null
; then
4599 if test -s conftest.err
; then
4600 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4601 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
4608 if test -z "$ac_cpp_err"; then
4609 # Broken: success on invalid input.
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.
$ac_ext >&5
4615 # Passes both tests.
4620 rm -f conftest.err conftest.
$ac_ext
4623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4624 rm -f conftest.err conftest.
$ac_ext
4625 if $ac_preproc_ok; then
4628 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4629 See \`config.log' for more details." >&5
4630 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4631 See \`config.log' for more details." >&2;}
4632 { (exit 1); exit 1; }; }
4636 ac_cpp
='$CPP $CPPFLAGS'
4637 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4641 for ac_prog
in gawk mawk nawk
awk
4643 # Extract the first word of "$ac_prog", so it can be a program name with args.
4644 set dummy
$ac_prog; ac_word
=$2
4645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647 if test "${ac_cv_prog_AWK+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 if test -n "$AWK"; then
4651 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir
=.
4658 for ac_exec_ext
in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_AWK
="$ac_prog"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 if test -n "$AWK"; then
4672 { echo "$as_me:$LINENO: result: $AWK" >&5
4673 echo "${ECHO_T}$AWK" >&6; }
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4680 test -n "$AWK" && break
4683 # Find a good install program. We prefer a C program (faster),
4684 # so one script is as good as another. But avoid the broken or
4685 # incompatible versions:
4686 # SysV /etc/install, /usr/sbin/install
4687 # SunOS /usr/etc/install
4688 # IRIX /sbin/install
4690 # AmigaOS /C/install, which installs bootblocks on floppy discs
4691 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4694 # OS/2's system install, which has a completely different semantic
4695 # ./install, which can be erroneously created by make from ./install.sh.
4696 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4697 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4698 if test -z "$INSTALL"; then
4699 if test "${ac_cv_path_install+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir
=.
4707 # Account for people who put trailing slashes in PATH elements.
4709 .
/ | .
// |
/cC
/* | \
4710 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4711 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4714 # OSF1 and SCO ODT 3.0 have their own names for install.
4715 # Don't use installbsd from OSF since it installs stuff as root
4717 for ac_prog
in ginstall scoinst
install; do
4718 for ac_exec_ext
in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4720 if test $ac_prog = install &&
4721 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4722 # AIX install. It has an incompatible calling convention.
4724 elif test $ac_prog = install &&
4725 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4726 # program-specific install script used by HP pwplus--don't use.
4729 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4742 if test "${ac_cv_path_install+set}" = set; then
4743 INSTALL
=$ac_cv_path_install
4745 # As a last resort, use the slow shell script. Don't cache a
4746 # value for INSTALL within a source directory, because that will
4747 # break other packages using the cache if that directory is
4748 # removed, or if the value is a relative name.
4749 INSTALL
=$ac_install_sh
4752 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4753 echo "${ECHO_T}$INSTALL" >&6; }
4755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4756 # It thinks the first close brace ends the variable substitution.
4757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4761 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4763 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4764 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4766 if test "$LN_S" = "ln -s"; then
4767 { echo "$as_me:$LINENO: result: yes" >&5
4768 echo "${ECHO_T}yes" >&6; }
4770 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4771 echo "${ECHO_T}no, using $LN_S" >&6; }
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4776 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_prog_RANLIB+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 if test -n "$RANLIB"; then
4783 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir
=.
4790 for ac_exec_ext
in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 RANLIB
=$ac_cv_prog_RANLIB
4803 if test -n "$RANLIB"; then
4804 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4805 echo "${ECHO_T}$RANLIB" >&6; }
4807 { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4813 if test -z "$ac_cv_prog_RANLIB"; then
4814 ac_ct_RANLIB
=$RANLIB
4815 # Extract the first word of "ranlib", so it can be a program name with args.
4816 set dummy ranlib
; ac_word
=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$ac_ct_RANLIB"; then
4823 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir
=.
4830 for ac_exec_ext
in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4843 if test -n "$ac_ct_RANLIB"; then
4844 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4845 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4847 { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4851 if test "x$ac_ct_RANLIB" = x
; then
4854 case $cross_compiling:$ac_tool_warned in
4856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4857 whose name does not start with the host triplet. If you think this
4858 configuration is useful to you, please write to autoconf@gnu.org." >&5
4859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4860 whose name does not start with the host triplet. If you think this
4861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4862 ac_tool_warned
=yes ;;
4864 RANLIB
=$ac_ct_RANLIB
4867 RANLIB
="$ac_cv_prog_RANLIB"
4870 { echo "$as_me:$LINENO: checking for GNU make" >&5
4871 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
4872 if test "${GNU_MAKE+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 GNU_MAKE
='Not Found' ;
4876 GNU_MAKE_VERSION_MAJOR
=0 ;
4877 GNU_MAKE_VERSION_MINOR
=0 ;
4878 for a
in make gmake gnumake
; do
4879 if test -z "$a" ; then continue ; fi ;
4880 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
4882 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
4883 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
4889 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
4890 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
4891 if test "x$GNU_MAKE" = "xNot Found" ; then
4892 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
4893 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
4894 { (exit 1); exit 1; }; }
4900 # Extract the first word of "grep", so it can be a program name with args.
4901 set dummy
grep; ac_word
=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_path_GREP+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
4912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir
=.
4917 for ac_exec_ext
in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
4931 GREP
=$ac_cv_path_GREP
4932 if test -n "$GREP"; then
4933 { echo "$as_me:$LINENO: result: $GREP" >&5
4934 echo "${ECHO_T}$GREP" >&6; }
4936 { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4941 # Extract the first word of "ar", so it can be a program name with args.
4942 set dummy
ar; ac_word
=$2
4943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4945 if test "${ac_cv_path_AR+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
4953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4957 test -z "$as_dir" && as_dir
=.
4958 for ac_exec_ext
in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 test -z "$ac_cv_path_AR" && ac_cv_path_AR
=":"
4973 if test -n "$AR"; then
4974 { echo "$as_me:$LINENO: result: $AR" >&5
4975 echo "${ECHO_T}$AR" >&6; }
4977 { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4982 # Extract the first word of "find", so it can be a program name with args.
4983 set dummy
find; ac_word
=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_path_FIND+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
4994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4998 test -z "$as_dir" && as_dir
=.
4999 for ac_exec_ext
in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
5002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
5013 FIND
=$ac_cv_path_FIND
5014 if test -n "$FIND"; then
5015 { echo "$as_me:$LINENO: result: $FIND" >&5
5016 echo "${ECHO_T}$FIND" >&6; }
5018 { echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6; }
5023 # Extract the first word of "compress", so it can be a program name with args.
5024 set dummy
compress; ac_word
=$2
5025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027 if test "${ac_cv_path_COMPRESS+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
5035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5039 test -z "$as_dir" && as_dir
=.
5040 for ac_exec_ext
in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
5043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
5054 COMPRESS
=$ac_cv_path_COMPRESS
5055 if test -n "$COMPRESS"; then
5056 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
5057 echo "${ECHO_T}$COMPRESS" >&6; }
5059 { echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6; }
5064 # Extract the first word of "basename", so it can be a program name with args.
5065 set dummy
basename; ac_word
=$2
5066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5068 if test "${ac_cv_path_BASENAME+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
5076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir
=.
5081 for ac_exec_ext
in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
5084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
5095 BASENAME
=$ac_cv_path_BASENAME
5096 if test -n "$BASENAME"; then
5097 { echo "$as_me:$LINENO: result: $BASENAME" >&5
5098 echo "${ECHO_T}$BASENAME" >&6; }
5100 { echo "$as_me:$LINENO: result: no" >&5
5101 echo "${ECHO_T}no" >&6; }
5105 # Extract the first word of "id", so it can be a program name with args.
5106 set dummy id
; ac_word
=$2
5107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5109 if test "${ac_cv_path_ID+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
5117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5121 test -z "$as_dir" && as_dir
=.
5122 for ac_exec_ext
in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
5125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
5137 if test -n "$ID"; then
5138 { echo "$as_me:$LINENO: result: $ID" >&5
5139 echo "${ECHO_T}$ID" >&6; }
5141 { echo "$as_me:$LINENO: result: no" >&5
5142 echo "${ECHO_T}no" >&6; }
5146 # Extract the first word of "dirname", so it can be a program name with args.
5147 set dummy
dirname; ac_word
=$2
5148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5150 if test "${ac_cv_path_DIRNAME+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
5158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5162 test -z "$as_dir" && as_dir
=.
5163 for ac_exec_ext
in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
5166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
5177 DIRNAME
=$ac_cv_path_DIRNAME
5178 if test -n "$DIRNAME"; then
5179 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5180 echo "${ECHO_T}$DIRNAME" >&6; }
5182 { echo "$as_me:$LINENO: result: no" >&5
5183 echo "${ECHO_T}no" >&6; }
5187 # Extract the first word of "sh", so it can be a program name with args.
5188 set dummy sh
; ac_word
=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_SHELL+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
5199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir
=.
5204 for ac_exec_ext
in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
5218 SHELL
=$ac_cv_path_SHELL
5219 if test -n "$SHELL"; then
5220 { echo "$as_me:$LINENO: result: $SHELL" >&5
5221 echo "${ECHO_T}$SHELL" >&6; }
5223 { echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6; }
5228 # Extract the first word of "ln", so it can be a program name with args.
5229 set dummy
ln; ac_word
=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_path_LN+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
5240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5244 test -z "$as_dir" && as_dir
=.
5245 for ac_exec_ext
in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
5260 if test -n "$LN"; then
5261 { echo "$as_me:$LINENO: result: $LN" >&5
5262 echo "${ECHO_T}$LN" >&6; }
5264 { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5269 # Extract the first word of "dot", so it can be a program name with args.
5270 set dummy dot
; ac_word
=$2
5271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5273 if test "${ac_cv_path_DOT+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
5281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5285 test -z "$as_dir" && as_dir
=.
5286 for ac_exec_ext
in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
5301 if test -n "$DOT"; then
5302 { echo "$as_me:$LINENO: result: $DOT" >&5
5303 echo "${ECHO_T}$DOT" >&6; }
5305 { echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6; }
5312 ac_cpp
='$CPP $CPPFLAGS'
5313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5318 # Check whether --enable-dev-mode was given.
5319 if test "${enable_dev_mode+set}" = set; then
5320 enableval
=$enable_dev_mode; case "${enableval}" in
5321 y|ye|
yes) AST_DEVMODE
=yes ;;
5322 n|no
) AST_DEVMODE
=no
;;
5323 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
5324 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
5325 { (exit 1); exit 1; }; } ;;
5331 # package option names should be in alphabetical order
5332 # by the --with option name, to make things easier for the users :-)
5335 ALSA_DESCRIP
="Advanced Linux Sound Architecture"
5336 ALSA_OPTION
="asound"
5338 # Check whether --with-asound was given.
5339 if test "${with_asound+set}" = set; then
5340 withval
=$with_asound;
5346 ALSA_MANDATORY
="yes"
5349 ALSA_DIR
="${withval}"
5350 ALSA_MANDATORY
="yes"
5365 # Check whether --with-curl was given.
5366 if test "${with_curl+set}" = set; then
5373 CURL_MANDATORY
="yes"
5376 CURL_DIR
="${withval}"
5377 CURL_MANDATORY
="yes"
5389 CURSES_DESCRIP
="curses"
5390 CURSES_OPTION
="curses"
5392 # Check whether --with-curses was given.
5393 if test "${with_curses+set}" = set; then
5394 withval
=$with_curses;
5400 CURSES_MANDATORY
="yes"
5403 CURSES_DIR
="${withval}"
5404 CURSES_MANDATORY
="yes"
5416 GNUTLS_DESCRIP
="GNU TLS support (used for iksemel only)"
5417 GNUTLS_OPTION
="gnutls"
5419 # Check whether --with-gnutls was given.
5420 if test "${with_gnutls+set}" = set; then
5421 withval
=$with_gnutls;
5427 GNUTLS_MANDATORY
="yes"
5430 GNUTLS_DIR
="${withval}"
5431 GNUTLS_MANDATORY
="yes"
5446 # Check whether --with-gsm was given.
5447 if test "${with_gsm+set}" = set; then
5457 GSM_DIR
="${withval}"
5470 IKSEMEL_DESCRIP
="Iksemel Jabber Library"
5471 IKSEMEL_OPTION
="iksemel"
5473 # Check whether --with-iksemel was given.
5474 if test "${with_iksemel+set}" = set; then
5475 withval
=$with_iksemel;
5481 IKSEMEL_MANDATORY
="yes"
5484 IKSEMEL_DIR
="${withval}"
5485 IKSEMEL_MANDATORY
="yes"
5497 IMAP_TK_DESCRIP
="UW IMAP Toolkit"
5498 IMAP_TK_OPTION
="imap"
5500 # Check whether --with-imap was given.
5501 if test "${with_imap+set}" = set; then
5508 IMAP_TK_MANDATORY
="yes"
5511 IMAP_TK_DIR
="${withval}"
5512 IMAP_TK_MANDATORY
="yes"
5524 ISDNNET_DESCRIP
="ISDN4Linux Library"
5525 ISDNNET_OPTION
="isdnnet"
5527 # Check whether --with-isdnnet was given.
5528 if test "${with_isdnnet+set}" = set; then
5529 withval
=$with_isdnnet;
5535 ISDNNET_MANDATORY
="yes"
5538 ISDNNET_DIR
="${withval}"
5539 ISDNNET_MANDATORY
="yes"
5554 # Check whether --with-kde was given.
5555 if test "${with_kde+set}" = set; then
5565 KDE_DIR
="${withval}"
5578 MISDN_DESCRIP
="mISDN User Library"
5579 MISDN_OPTION
="misdn"
5581 # Check whether --with-misdn was given.
5582 if test "${with_misdn+set}" = set; then
5583 withval
=$with_misdn;
5589 MISDN_MANDATORY
="yes"
5592 MISDN_DIR
="${withval}"
5593 MISDN_MANDATORY
="yes"
5605 NBS_DESCRIP
="Network Broadcast Sound"
5608 # Check whether --with-nbs was given.
5609 if test "${with_nbs+set}" = set; then
5619 NBS_DIR
="${withval}"
5632 NCURSES_DESCRIP
="ncurses"
5633 NCURSES_OPTION
="ncurses"
5635 # Check whether --with-ncurses was given.
5636 if test "${with_ncurses+set}" = set; then
5637 withval
=$with_ncurses;
5643 NCURSES_MANDATORY
="yes"
5646 NCURSES_DIR
="${withval}"
5647 NCURSES_MANDATORY
="yes"
5659 NETSNMP_DESCRIP
="Net-SNMP"
5660 NETSNMP_OPTION
="netsnmp"
5662 # Check whether --with-netsnmp was given.
5663 if test "${with_netsnmp+set}" = set; then
5664 withval
=$with_netsnmp;
5670 NETSNMP_MANDATORY
="yes"
5673 NETSNMP_DIR
="${withval}"
5674 NETSNMP_MANDATORY
="yes"
5689 # Check whether --with-newt was given.
5690 if test "${with_newt+set}" = set; then
5697 NEWT_MANDATORY
="yes"
5700 NEWT_DIR
="${withval}"
5701 NEWT_MANDATORY
="yes"
5713 UNIXODBC_DESCRIP
="unixODBC"
5714 UNIXODBC_OPTION
="odbc"
5716 # Check whether --with-odbc was given.
5717 if test "${with_odbc+set}" = set; then
5724 UNIXODBC_MANDATORY
="yes"
5727 UNIXODBC_DIR
="${withval}"
5728 UNIXODBC_MANDATORY
="yes"
5743 # Check whether --with-ogg was given.
5744 if test "${with_ogg+set}" = set; then
5754 OGG_DIR
="${withval}"
5767 OSPTK_DESCRIP
="OSP Toolkit"
5768 OSPTK_OPTION
="osptk"
5770 # Check whether --with-osptk was given.
5771 if test "${with_osptk+set}" = set; then
5772 withval
=$with_osptk;
5778 OSPTK_MANDATORY
="yes"
5781 OSPTK_DIR
="${withval}"
5782 OSPTK_MANDATORY
="yes"
5794 OSS_DESCRIP
="Open Sound System"
5797 # Check whether --with-oss was given.
5798 if test "${with_oss+set}" = set; then
5808 OSS_DIR
="${withval}"
5824 # Check whether --with-popt was given.
5825 if test "${with_popt+set}" = set; then
5832 POPT_MANDATORY
="yes"
5835 POPT_DIR
="${withval}"
5836 POPT_MANDATORY
="yes"
5848 PGSQL_DESCRIP
="PostgreSQL"
5849 PGSQL_OPTION
="postgres"
5851 # Check whether --with-postgres was given.
5852 if test "${with_postgres+set}" = set; then
5853 withval
=$with_postgres;
5859 PGSQL_MANDATORY
="yes"
5862 PGSQL_DIR
="${withval}"
5863 PGSQL_MANDATORY
="yes"
5875 PRI_DESCRIP
="ISDN PRI"
5878 # Check whether --with-pri was given.
5879 if test "${with_pri+set}" = set; then
5889 PRI_DIR
="${withval}"
5902 PWLIB_DESCRIP
="PWlib"
5903 PWLIB_OPTION
="pwlib"
5905 # Check whether --with-pwlib was given.
5906 if test "${with_pwlib+set}" = set; then
5907 withval
=$with_pwlib;
5913 PWLIB_MANDATORY
="yes"
5916 PWLIB_DIR
="${withval}"
5917 PWLIB_MANDATORY
="yes"
5929 OPENH323_DESCRIP
="OpenH323"
5930 OPENH323_OPTION
="h323"
5932 # Check whether --with-h323 was given.
5933 if test "${with_h323+set}" = set; then
5940 OPENH323_MANDATORY
="yes"
5943 OPENH323_DIR
="${withval}"
5944 OPENH323_MANDATORY
="yes"
5959 # Check whether --with-qt was given.
5960 if test "${with_qt+set}" = set; then
5983 RADIUS_DESCRIP
="Radius Client"
5984 RADIUS_OPTION
="radius"
5986 # Check whether --with-radius was given.
5987 if test "${with_radius+set}" = set; then
5988 withval
=$with_radius;
5994 RADIUS_MANDATORY
="yes"
5997 RADIUS_DIR
="${withval}"
5998 RADIUS_MANDATORY
="yes"
6010 SPEEX_DESCRIP
="Speex"
6011 SPEEX_OPTION
="speex"
6013 # Check whether --with-speex was given.
6014 if test "${with_speex+set}" = set; then
6015 withval
=$with_speex;
6021 SPEEX_MANDATORY
="yes"
6024 SPEEX_DIR
="${withval}"
6025 SPEEX_MANDATORY
="yes"
6037 SQLITE_DESCRIP
="SQLite"
6038 SQLITE_OPTION
="sqlite"
6040 # Check whether --with-sqlite was given.
6041 if test "${with_sqlite+set}" = set; then
6042 withval
=$with_sqlite;
6048 SQLITE_MANDATORY
="yes"
6051 SQLITE_DIR
="${withval}"
6052 SQLITE_MANDATORY
="yes"
6064 SUPPSERV_DESCRIP
="mISDN Supplemental Services"
6065 SUPPSERV_OPTION
="suppserv"
6067 # Check whether --with-suppserv was given.
6068 if test "${with_suppserv+set}" = set; then
6069 withval
=$with_suppserv;
6075 SUPPSERV_MANDATORY
="yes"
6078 SUPPSERV_DIR
="${withval}"
6079 SUPPSERV_MANDATORY
="yes"
6091 OPENSSL_DESCRIP
="OpenSSL"
6092 OPENSSL_OPTION
="ssl"
6094 # Check whether --with-ssl was given.
6095 if test "${with_ssl+set}" = set; then
6102 OPENSSL_MANDATORY
="yes"
6105 OPENSSL_DIR
="${withval}"
6106 OPENSSL_MANDATORY
="yes"
6118 FREETDS_DESCRIP
="FreeTDS"
6119 FREETDS_OPTION
="tds"
6121 # Check whether --with-tds was given.
6122 if test "${with_tds+set}" = set; then
6129 FREETDS_MANDATORY
="yes"
6132 FREETDS_DIR
="${withval}"
6133 FREETDS_MANDATORY
="yes"
6145 TERMCAP_DESCRIP
="Termcap"
6146 TERMCAP_OPTION
="termcap"
6148 # Check whether --with-termcap was given.
6149 if test "${with_termcap+set}" = set; then
6150 withval
=$with_termcap;
6156 TERMCAP_MANDATORY
="yes"
6159 TERMCAP_DIR
="${withval}"
6160 TERMCAP_MANDATORY
="yes"
6172 TINFO_DESCRIP
="Term Info"
6173 TINFO_OPTION
="tinfo"
6175 # Check whether --with-tinfo was given.
6176 if test "${with_tinfo+set}" = set; then
6177 withval
=$with_tinfo;
6183 TINFO_MANDATORY
="yes"
6186 TINFO_DIR
="${withval}"
6187 TINFO_MANDATORY
="yes"
6199 TONEZONE_DESCRIP
="tonezone"
6200 TONEZONE_OPTION
="tonezone"
6202 # Check whether --with-tonezone was given.
6203 if test "${with_tonezone+set}" = set; then
6204 withval
=$with_tonezone;
6210 TONEZONE_MANDATORY
="yes"
6213 TONEZONE_DIR
="${withval}"
6214 TONEZONE_MANDATORY
="yes"
6226 VORBIS_DESCRIP
="Vorbis"
6227 VORBIS_OPTION
="vorbis"
6229 # Check whether --with-vorbis was given.
6230 if test "${with_vorbis+set}" = set; then
6231 withval
=$with_vorbis;
6237 VORBIS_MANDATORY
="yes"
6240 VORBIS_DIR
="${withval}"
6241 VORBIS_MANDATORY
="yes"
6253 VPB_DESCRIP
="Voicetronix API"
6256 # Check whether --with-vpb was given.
6257 if test "${with_vpb+set}" = set; then
6267 VPB_DIR
="${withval}"
6283 # Check whether --with-z was given.
6284 if test "${with_z+set}" = set; then
6291 ZLIB_MANDATORY
="yes"
6294 ZLIB_DIR
="${withval}"
6295 ZLIB_MANDATORY
="yes"
6307 ZAPTEL_DESCRIP
="Zaptel"
6308 ZAPTEL_OPTION
="zaptel"
6310 # Check whether --with-zaptel was given.
6311 if test "${with_zaptel+set}" = set; then
6312 withval
=$with_zaptel;
6318 ZAPTEL_MANDATORY
="yes"
6321 ZAPTEL_DIR
="${withval}"
6322 ZAPTEL_MANDATORY
="yes"
6334 # check for basic system features and functionality before
6335 # checking for package libraries
6339 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6340 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6341 if test "${ac_cv_path_GREP+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 # Extract the first word of "grep ggrep" to use in msg output
6345 if test -z "$GREP"; then
6346 set dummy
grep ggrep
; ac_prog_name
=$2
6347 if test "${ac_cv_path_GREP+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 ac_path_GREP_found
=false
6351 # Loop through the user's path and test for each of PROGNAME-LIST
6352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6353 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6356 test -z "$as_dir" && as_dir
=.
6357 for ac_prog
in grep ggrep
; do
6358 for ac_exec_ext
in '' $ac_executable_extensions; do
6359 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6360 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
6361 # Check for GNU ac_path_GREP and select it if it is found.
6362 # Check for GNU $ac_path_GREP
6363 case `"$ac_path_GREP" --version 2>&1` in
6365 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6368 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6371 cat "conftest.in" "conftest.in" >"conftest.tmp"
6372 mv "conftest.tmp" "conftest.in"
6373 cp "conftest.in" "conftest.nl"
6374 echo 'GREP' >> "conftest.nl"
6375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6376 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6377 ac_count
=`expr $ac_count + 1`
6378 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6379 # Best one so far, save it but keep looking for a better one
6380 ac_cv_path_GREP
="$ac_path_GREP"
6381 ac_path_GREP_max
=$ac_count
6383 # 10*(2^10) chars as input seems more than enough
6384 test $ac_count -gt 10 && break
6386 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6390 $ac_path_GREP_found && break 3
6400 GREP
="$ac_cv_path_GREP"
6401 if test -z "$GREP"; then
6402 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6403 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6404 { (exit 1); exit 1; }; }
6408 ac_cv_path_GREP
=$GREP
6413 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6414 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6415 GREP
="$ac_cv_path_GREP"
6418 { echo "$as_me:$LINENO: checking for egrep" >&5
6419 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6420 if test "${ac_cv_path_EGREP+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6424 then ac_cv_path_EGREP
="$GREP -E"
6426 # Extract the first word of "egrep" to use in msg output
6427 if test -z "$EGREP"; then
6428 set dummy
egrep; ac_prog_name
=$2
6429 if test "${ac_cv_path_EGREP+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 ac_path_EGREP_found
=false
6433 # Loop through the user's path and test for each of PROGNAME-LIST
6434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6435 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6438 test -z "$as_dir" && as_dir
=.
6439 for ac_prog
in egrep; do
6440 for ac_exec_ext
in '' $ac_executable_extensions; do
6441 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6442 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
6443 # Check for GNU ac_path_EGREP and select it if it is found.
6444 # Check for GNU $ac_path_EGREP
6445 case `"$ac_path_EGREP" --version 2>&1` in
6447 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6450 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6453 cat "conftest.in" "conftest.in" >"conftest.tmp"
6454 mv "conftest.tmp" "conftest.in"
6455 cp "conftest.in" "conftest.nl"
6456 echo 'EGREP' >> "conftest.nl"
6457 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6458 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6459 ac_count
=`expr $ac_count + 1`
6460 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6461 # Best one so far, save it but keep looking for a better one
6462 ac_cv_path_EGREP
="$ac_path_EGREP"
6463 ac_path_EGREP_max
=$ac_count
6465 # 10*(2^10) chars as input seems more than enough
6466 test $ac_count -gt 10 && break
6468 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6472 $ac_path_EGREP_found && break 3
6482 EGREP
="$ac_cv_path_EGREP"
6483 if test -z "$EGREP"; then
6484 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6485 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6486 { (exit 1); exit 1; }; }
6490 ac_cv_path_EGREP
=$EGREP
6496 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6497 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6498 EGREP
="$ac_cv_path_EGREP"
6501 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6502 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6503 if test "${ac_cv_header_stdc+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 cat >conftest.
$ac_ext <<_ACEOF
6509 cat confdefs.h
>>conftest.
$ac_ext
6510 cat >>conftest.
$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6525 rm -f conftest.
$ac_objext
6526 if { (ac_try
="$ac_compile"
6528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_compile") 2>conftest.er1
6534 grep -v '^ *+' conftest.er1 >conftest.err
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6540 { (case "(($ac_try" in
6541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6542 *) ac_try_echo
=$ac_try;;
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_try") 2>&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; } &&
6549 { ac_try
='test -s conftest.$ac_objext'
6550 { (case "(($ac_try" in
6551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_try") 2>&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6559 ac_cv_header_stdc=yes
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 ac_cv_header_stdc=no
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 if test $ac_cv_header_stdc = yes; then
6570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6571 cat >conftest.$ac_ext <<_ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6581 $EGREP "memchr" >/dev/null 2>&1; then
6584 ac_cv_header_stdc=no
6590 if test $ac_cv_header_stdc = yes; then
6591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6592 cat >conftest.$ac_ext <<_ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6602 $EGREP "free" >/dev/null 2>&1; then
6605 ac_cv_header_stdc=no
6611 if test $ac_cv_header_stdc = yes; then
6612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6613 if test "$cross_compiling" = yes; then
6616 cat >conftest.$ac_ext <<_ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6624 #if ((' ' & 0x0FF) == 0x020)
6625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6628 # define ISLOWER(c) \
6629 (('a' <= (c) && (c) <= 'i') \
6630 || ('j' <= (c) && (c) <= 'r') \
6631 || ('s' <= (c) && (c) <= 'z'))
6632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6640 for (i = 0; i < 256; i++)
6641 if (XOR (islower (i), ISLOWER (i))
6642 || toupper (i) != TOUPPER (i))
6647 rm -f conftest$ac_exeext
6648 if { (ac_try="$ac_link"
6650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6651 *) ac_try_echo
=$ac_try;;
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_link") 2>&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6658 { (case "(($ac_try" in
6659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_try") 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6669 echo "$as_me: program exited with status $ac_status" >&5
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6674 ac_cv_header_stdc=no
6676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6682 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6683 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6684 if test $ac_cv_header_stdc = yes; then
6686 cat >>confdefs.h <<\_ACEOF
6687 #define STDC_HEADERS 1
6692 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6702 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6703 inttypes.h stdint.h unistd.h
6705 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 cat >conftest.$ac_ext <<_ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 $ac_includes_default
6719 #include <$ac_header>
6721 rm -f conftest.$ac_objext
6722 if { (ac_try="$ac_compile"
6724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6725 *) ac_try_echo
=$ac_try;;
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 (eval "$ac_compile") 2>conftest.er1
6730 grep -v '^ *+' conftest.er1
>conftest.err
6732 cat conftest.err
>&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } &&
6735 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6736 { (case "(($ac_try" in
6737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6741 (eval "$ac_try") 2>&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; } &&
6745 { ac_try='test -s conftest.$ac_objext'
6746 { (case "(($ac_try" in
6747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6748 *) ac_try_echo
=$ac_try;;
6750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6751 (eval "$ac_try") 2>&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 eval "$as_ac_Header=yes"
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.
$ac_ext >&5
6760 eval "$as_ac_Header=no"
6763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6765 ac_res
=`eval echo '${'$as_ac_Header'}'`
6766 { echo "$as_me:$LINENO: result: $ac_res" >&5
6767 echo "${ECHO_T}$ac_res" >&6; }
6768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6769 cat >>confdefs.h
<<_ACEOF
6770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6778 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6779 # for constant arguments. Useless!
6780 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6781 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6782 if test "${ac_cv_working_alloca_h+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 cat >conftest.
$ac_ext <<_ACEOF
6788 cat confdefs.h
>>conftest.
$ac_ext
6789 cat >>conftest.
$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6795 char *p = (char *) alloca (2 * sizeof (int));
6801 rm -f conftest.
$ac_objext conftest
$ac_exeext
6802 if { (ac_try
="$ac_link"
6804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6808 (eval "$ac_link") 2>conftest.er1
6810 grep -v '^ *+' conftest.er1 >conftest.err
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6816 { (case "(($ac_try" in
6817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6818 *) ac_try_echo
=$ac_try;;
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_try") 2>&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try
='test -s conftest$ac_exeext'
6826 { (case "(($ac_try" in
6827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_try") 2>&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835 ac_cv_working_alloca_h=yes
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 ac_cv_working_alloca_h=no
6843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6844 conftest$ac_exeext conftest.$ac_ext
6846 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6847 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6848 if test $ac_cv_working_alloca_h = yes; then
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_ALLOCA_H 1
6856 { echo "$as_me:$LINENO: checking for alloca" >&5
6857 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6858 if test "${ac_cv_func_alloca_works+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 cat >conftest.$ac_ext <<_ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6868 # define alloca __builtin_alloca
6871 # include <malloc.h>
6872 # define alloca _alloca
6874 # ifdef HAVE_ALLOCA_H
6875 # include <alloca.h>
6880 # ifndef alloca /* predefined by HP cc +Olibcalls */
6891 char *p = (char *) alloca (1);
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (ac_try="$ac_link"
6900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6901 *) ac_try_echo
=$ac_try;;
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_link") 2>conftest.er1
6906 grep -v '^ *+' conftest.er1
>conftest.err
6908 cat conftest.err
>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6912 { (case "(($ac_try" in
6913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_try") 2>&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; } &&
6921 { ac_try='test -s conftest$ac_exeext'
6922 { (case "(($ac_try" in
6923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6924 *) ac_try_echo
=$ac_try;;
6926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6927 (eval "$ac_try") 2>&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; }; then
6931 ac_cv_func_alloca_works
=yes
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.
$ac_ext >&5
6936 ac_cv_func_alloca_works
=no
6939 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6940 conftest
$ac_exeext conftest.
$ac_ext
6942 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6943 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6945 if test $ac_cv_func_alloca_works = yes; then
6947 cat >>confdefs.h
<<\_ACEOF
6948 #define HAVE_ALLOCA 1
6952 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6953 # that cause trouble. Some versions do not even contain alloca or
6954 # contain a buggy version. If you still want to use their alloca,
6955 # use ar to extract alloca.o from them instead of compiling alloca.c.
6957 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6959 cat >>confdefs.h
<<\_ACEOF
6964 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6965 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6966 if test "${ac_cv_os_cray+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 cat >conftest.
$ac_ext <<_ACEOF
6972 cat confdefs.h
>>conftest.
$ac_ext
6973 cat >>conftest.
$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #if defined CRAY && ! defined CRAY2
6982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6983 $EGREP "webecray" >/dev
/null
2>&1; then
6991 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6992 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6993 if test $ac_cv_os_cray = yes; then
6994 for ac_func
in _getb67 GETB67 getb67
; do
6995 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6998 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 cat >conftest.
$ac_ext <<_ACEOF
7004 cat confdefs.h
>>conftest.
$ac_ext
7005 cat >>conftest.
$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7009 #define $ac_func innocuous_$ac_func
7011 /* System header to define __stub macros and hopefully few prototypes,
7012 which can conflict with char $ac_func (); below.
7013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014 <limits.h> exists even on freestanding compilers. */
7017 # include <limits.h>
7019 # include <assert.h>
7024 /* Override any GCC internal prototype to avoid an error.
7025 Use char because int might match the return type of a GCC
7026 builtin and then its argument prototype would still apply. */
7031 /* The GNU C library defines this for functions which it implements
7032 to always fail with ENOSYS. Some functions are actually named
7033 something starting with __ and the normal name is an alias. */
7034 #if defined __stub_$ac_func || defined __stub___$ac_func
7046 rm -f conftest.
$ac_objext conftest
$ac_exeext
7047 if { (ac_try
="$ac_link"
7049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_link") 2>conftest.er1
7055 grep -v '^ *+' conftest.er1 >conftest.err
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } &&
7060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7061 { (case "(($ac_try" in
7062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7063 *) ac_try_echo
=$ac_try;;
7065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_try") 2>&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try
='test -s conftest$ac_exeext'
7071 { (case "(($ac_try" in
7072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7073 *) ac_try_echo=$ac_try;;
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076 (eval "$ac_try") 2>&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 eval "$as_ac_var=yes"
7082 echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7085 eval "$as_ac_var=no"
7088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7089 conftest$ac_exeext conftest.$ac_ext
7091 ac_res=`eval echo '${'$as_ac_var'}'`
7092 { echo "$as_me:$LINENO: result: $ac_res" >&5
7093 echo "${ECHO_T}$ac_res" >&6; }
7094 if test `eval echo '${'$as_ac_var'}'` = yes; then
7096 cat >>confdefs.h <<_ACEOF
7097 #define CRAY_STACKSEG_END $ac_func
7106 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7107 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7108 if test "${ac_cv_c_stack_direction+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 if test "$cross_compiling" = yes; then
7112 ac_cv_c_stack_direction=0
7114 cat >conftest.$ac_ext <<_ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7120 $ac_includes_default
7122 find_stack_direction ()
7124 static char *addr = 0;
7129 return find_stack_direction ();
7132 return (&dummy > addr) ? 1 : -1;
7138 return find_stack_direction () < 0;
7141 rm -f conftest$ac_exeext
7142 if { (ac_try="$ac_link"
7144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7145 *) ac_try_echo
=$ac_try;;
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148 (eval "$ac_link") 2>&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7152 { (case "(($ac_try" in
7153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7154 *) ac_try_echo=$ac_try;;
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157 (eval "$ac_try") 2>&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_c_stack_direction=1
7163 echo "$as_me: program exited with status $ac_status" >&5
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7168 ac_cv_c_stack_direction=-1
7170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7175 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7176 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7178 cat >>confdefs.h <<_ACEOF
7179 #define STACK_DIRECTION $ac_cv_c_stack_direction
7191 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7192 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
7193 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7194 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 cat >conftest.$ac_ext <<_ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 #include <sys/types.h>
7216 rm -f conftest.$ac_objext
7217 if { (ac_try="$ac_compile"
7219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7220 *) ac_try_echo
=$ac_try;;
7222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7223 (eval "$ac_compile") 2>conftest.er1
7225 grep -v '^ *+' conftest.er1
>conftest.err
7227 cat conftest.err
>&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } &&
7230 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7231 { (case "(($ac_try" in
7232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_try") 2>&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try='test -s conftest.$ac_objext'
7241 { (case "(($ac_try" in
7242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7243 *) ac_try_echo
=$ac_try;;
7245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246 (eval "$ac_try") 2>&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 eval "$as_ac_Header=yes"
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.
$ac_ext >&5
7255 eval "$as_ac_Header=no"
7258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7260 ac_res
=`eval echo '${'$as_ac_Header'}'`
7261 { echo "$as_me:$LINENO: result: $ac_res" >&5
7262 echo "${ECHO_T}$ac_res" >&6; }
7263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7264 cat >>confdefs.h
<<_ACEOF
7265 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7268 ac_header_dirent
=$ac_hdr; break
7272 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7273 if test $ac_header_dirent = dirent.h
; then
7274 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7275 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7276 if test "${ac_cv_search_opendir+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 ac_func_search_save_LIBS
=$LIBS
7280 cat >conftest.
$ac_ext <<_ACEOF
7283 cat confdefs.h
>>conftest.
$ac_ext
7284 cat >>conftest.
$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7287 /* Override any GCC internal prototype to avoid an error.
7288 Use char because int might match the return type of a GCC
7289 builtin and then its argument prototype would still apply. */
7302 for ac_lib
in '' dir
; do
7303 if test -z "$ac_lib"; then
7304 ac_res
="none required"
7307 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7309 rm -f conftest.
$ac_objext conftest
$ac_exeext
7310 if { (ac_try
="$ac_link"
7312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7313 *) ac_try_echo=$ac_try;;
7315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7316 (eval "$ac_link") 2>conftest.er1
7318 grep -v '^ *+' conftest.er1 >conftest.err
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7324 { (case "(($ac_try" in
7325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7326 *) ac_try_echo
=$ac_try;;
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329 (eval "$ac_try") 2>&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; } &&
7333 { ac_try
='test -s conftest$ac_exeext'
7334 { (case "(($ac_try" in
7335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7336 *) ac_try_echo=$ac_try;;
7338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7339 (eval "$ac_try") 2>&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_cv_search_opendir=$ac_res
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7353 if test "${ac_cv_search_opendir+set}" = set; then
7357 if test "${ac_cv_search_opendir+set}" = set; then
7360 ac_cv_search_opendir=no
7363 LIBS=$ac_func_search_save_LIBS
7365 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7366 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7367 ac_res=$ac_cv_search_opendir
7368 if test "$ac_res" != no; then
7369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7374 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7376 if test "${ac_cv_search_opendir+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_func_search_save_LIBS=$LIBS
7380 cat >conftest.$ac_ext <<_ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7387 /* Override any GCC internal prototype to avoid an error.
7388 Use char because int might match the return type of a GCC
7389 builtin and then its argument prototype would still apply. */
7402 for ac_lib in '' x; do
7403 if test -z "$ac_lib"; then
7404 ac_res="none required"
7407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7409 rm -f conftest.$ac_objext conftest$ac_exeext
7410 if { (ac_try="$ac_link"
7412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7413 *) ac_try_echo
=$ac_try;;
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_link") 2>conftest.er1
7418 grep -v '^ *+' conftest.er1
>conftest.err
7420 cat conftest.err
>&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7424 { (case "(($ac_try" in
7425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7426 *) ac_try_echo=$ac_try;;
7428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429 (eval "$ac_try") 2>&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; } &&
7433 { ac_try='test -s conftest$ac_exeext'
7434 { (case "(($ac_try" in
7435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7436 *) ac_try_echo
=$ac_try;;
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_try") 2>&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; }; then
7443 ac_cv_search_opendir
=$ac_res
7445 echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.
$ac_ext >&5
7451 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7453 if test "${ac_cv_search_opendir+set}" = set; then
7457 if test "${ac_cv_search_opendir+set}" = set; then
7460 ac_cv_search_opendir
=no
7463 LIBS
=$ac_func_search_save_LIBS
7465 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7466 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7467 ac_res
=$ac_cv_search_opendir
7468 if test "$ac_res" != no
; then
7469 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7475 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7476 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7477 if test "${ac_cv_header_stdc+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 cat >conftest.
$ac_ext <<_ACEOF
7483 cat confdefs.h
>>conftest.
$ac_ext
7484 cat >>conftest.
$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7499 rm -f conftest.
$ac_objext
7500 if { (ac_try
="$ac_compile"
7502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_compile") 2>conftest.er1
7508 grep -v '^ *+' conftest.er1 >conftest.err
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7514 { (case "(($ac_try" in
7515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7516 *) ac_try_echo
=$ac_try;;
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_try") 2>&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try
='test -s conftest.$ac_objext'
7524 { (case "(($ac_try" in
7525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7526 *) ac_try_echo=$ac_try;;
7528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529 (eval "$ac_try") 2>&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 ac_cv_header_stdc=yes
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_cv_header_stdc=no
7541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 if test $ac_cv_header_stdc = yes; then
7544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7545 cat >conftest.$ac_ext <<_ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7555 $EGREP "memchr" >/dev/null 2>&1; then
7558 ac_cv_header_stdc=no
7564 if test $ac_cv_header_stdc = yes; then
7565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7566 cat >conftest.$ac_ext <<_ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7576 $EGREP "free" >/dev/null 2>&1; then
7579 ac_cv_header_stdc=no
7585 if test $ac_cv_header_stdc = yes; then
7586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7587 if test "$cross_compiling" = yes; then
7590 cat >conftest.$ac_ext <<_ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h. */
7598 #if ((' ' & 0x0FF) == 0x020)
7599 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7600 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7602 # define ISLOWER(c) \
7603 (('a' <= (c) && (c) <= 'i') \
7604 || ('j' <= (c) && (c) <= 'r') \
7605 || ('s' <= (c) && (c) <= 'z'))
7606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7614 for (i = 0; i < 256; i++)
7615 if (XOR (islower (i), ISLOWER (i))
7616 || toupper (i) != TOUPPER (i))
7621 rm -f conftest$ac_exeext
7622 if { (ac_try="$ac_link"
7624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7625 *) ac_try_echo
=$ac_try;;
7627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628 (eval "$ac_link") 2>&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7632 { (case "(($ac_try" in
7633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637 (eval "$ac_try") 2>&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7643 echo "$as_me: program exited with status $ac_status" >&5
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7648 ac_cv_header_stdc=no
7650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7656 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7657 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7658 if test $ac_cv_header_stdc = yes; then
7660 cat >>confdefs.h <<\_ACEOF
7661 #define STDC_HEADERS 1
7666 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7667 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7668 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 cat >conftest.$ac_ext <<_ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 #include <sys/types.h>
7678 #include <sys/wait.h>
7680 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7683 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7691 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7700 *) ac_try_echo
=$ac_try;;
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7705 grep -v '^ *+' conftest.er1
>conftest.err
7707 cat conftest.err
>&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7711 { (case "(($ac_try" in
7712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716 (eval "$ac_try") 2>&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest.$ac_objext'
7721 { (case "(($ac_try" in
7722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7723 *) ac_try_echo
=$ac_try;;
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_try") 2>&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 ac_cv_header_sys_wait_h
=yes
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.
$ac_ext >&5
7735 ac_cv_header_sys_wait_h
=no
7738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7740 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7741 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7742 if test $ac_cv_header_sys_wait_h = yes; then
7744 cat >>confdefs.h
<<\_ACEOF
7745 #define HAVE_SYS_WAIT_H 1
7773 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
7775 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7776 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7779 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 ac_res
=`eval echo '${'$as_ac_Header'}'`
7783 { echo "$as_me:$LINENO: result: $ac_res" >&5
7784 echo "${ECHO_T}$ac_res" >&6; }
7786 # Is the header compilable?
7787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7789 cat >conftest.
$ac_ext <<_ACEOF
7792 cat confdefs.h
>>conftest.
$ac_ext
7793 cat >>conftest.
$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 $ac_includes_default
7796 #include <$ac_header>
7798 rm -f conftest.
$ac_objext
7799 if { (ac_try
="$ac_compile"
7801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_compile") 2>conftest.er1
7807 grep -v '^ *+' conftest.er1 >conftest.err
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7813 { (case "(($ac_try" in
7814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7815 *) ac_try_echo
=$ac_try;;
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818 (eval "$ac_try") 2>&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; } &&
7822 { ac_try
='test -s conftest.$ac_objext'
7823 { (case "(($ac_try" in
7824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_try") 2>&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_header_compiler=yes
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ac_header_compiler=no
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842 echo "${ECHO_T}$ac_header_compiler" >&6; }
7844 # Is the header present?
7845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7847 cat >conftest.$ac_ext <<_ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 #include <$ac_header>
7855 if { (ac_try="$ac_cpp conftest.$ac_ext"
7857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7858 *) ac_try_echo
=$ac_try;;
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7863 grep -v '^ *+' conftest.er1
>conftest.err
7865 cat conftest.err
>&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } >/dev
/null
; then
7868 if test -s conftest.err
; then
7869 ac_cpp_err
=$ac_c_preproc_warn_flag
7870 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7877 if test -z "$ac_cpp_err"; then
7878 ac_header_preproc
=yes
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.
$ac_ext >&5
7883 ac_header_preproc
=no
7886 rm -f conftest.err conftest.
$ac_ext
7887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7888 echo "${ECHO_T}$ac_header_preproc" >&6; }
7890 # So? What about this header?
7891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7897 ac_header_preproc
=yes
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7917 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 eval "$as_ac_Header=\$ac_header_preproc"
7922 ac_res
=`eval echo '${'$as_ac_Header'}'`
7923 { echo "$as_me:$LINENO: result: $ac_res" >&5
7924 echo "${ECHO_T}$ac_res" >&6; }
7927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7928 cat >>confdefs.h
<<_ACEOF
7929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7937 # Check whether --enable-largefile was given.
7938 if test "${enable_largefile+set}" = set; then
7939 enableval
=$enable_largefile;
7942 if test "$enable_largefile" != no
; then
7944 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
7945 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
7946 if test "${ac_cv_sys_largefile_CC+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 ac_cv_sys_largefile_CC
=no
7950 if test "$GCC" != yes; then
7953 # IRIX 6.2 and later do not support large files by default,
7954 # so use the C compiler's -n32 option if that helps.
7955 cat >conftest.
$ac_ext <<_ACEOF
7958 cat confdefs.h
>>conftest.
$ac_ext
7959 cat >>conftest.
$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 #include <sys/types.h>
7962 /* Check that off_t can represent 2**63 - 1 correctly.
7963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7964 since some C++ compilers masquerading as C compilers
7965 incorrectly reject 9223372036854775807. */
7966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7968 && LARGE_OFF_T % 2147483647 == 1)
7978 rm -f conftest.
$ac_objext
7979 if { (ac_try
="$ac_compile"
7981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7987 grep -v '^ *+' conftest.er1 >conftest.err
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } &&
7992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7993 { (case "(($ac_try" in
7994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7995 *) ac_try_echo
=$ac_try;;
7997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7998 (eval "$ac_try") 2>&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try
='test -s conftest.$ac_objext'
8003 { (case "(($ac_try" in
8004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_try") 2>&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8020 rm -f core conftest.err conftest.$ac_objext
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8026 *) ac_try_echo
=$ac_try;;
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8031 grep -v '^ *+' conftest.er1
>conftest.err
8033 cat conftest.err
>&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037 { (case "(($ac_try" in
8038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_try") 2>&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest.$ac_objext'
8047 { (case "(($ac_try" in
8048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8049 *) ac_try_echo
=$ac_try;;
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_try") 2>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8056 ac_cv_sys_largefile_CC
=' -n32'; break
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.
$ac_ext >&5
8064 rm -f core conftest.err conftest.
$ac_objext
8068 rm -f conftest.
$ac_ext
8071 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8072 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
8073 if test "$ac_cv_sys_largefile_CC" != no
; then
8074 CC
=$CC$ac_cv_sys_largefile_CC
8077 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8078 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
8079 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 ac_cv_sys_file_offset_bits
=no
8084 cat >conftest.
$ac_ext <<_ACEOF
8087 cat confdefs.h
>>conftest.
$ac_ext
8088 cat >>conftest.
$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 #include <sys/types.h>
8091 /* Check that off_t can represent 2**63 - 1 correctly.
8092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8093 since some C++ compilers masquerading as C compilers
8094 incorrectly reject 9223372036854775807. */
8095 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8097 && LARGE_OFF_T % 2147483647 == 1)
8107 rm -f conftest.
$ac_objext
8108 if { (ac_try
="$ac_compile"
8110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8124 *) ac_try_echo
=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; } &&
8131 { ac_try
='test -s conftest.$ac_objext'
8132 { (case "(($ac_try" in
8133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 cat >conftest.$ac_ext <<_ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8156 #define _FILE_OFFSET_BITS 64
8157 #include <sys/types.h>
8158 /* Check that off_t can represent 2**63 - 1 correctly.
8159 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8160 since some C++ compilers masquerading as C compilers
8161 incorrectly reject 9223372036854775807. */
8162 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8163 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8164 && LARGE_OFF_T % 2147483647 == 1)
8174 rm -f conftest.$ac_objext
8175 if { (ac_try="$ac_compile"
8177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8178 *) ac_try_echo
=$ac_try;;
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_compile") 2>conftest.er1
8183 grep -v '^ *+' conftest.er1
>conftest.err
8185 cat conftest.err
>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8189 { (case "(($ac_try" in
8190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_try") 2>&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; } &&
8198 { ac_try='test -s conftest.$ac_objext'
8199 { (case "(($ac_try" in
8200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8201 *) ac_try_echo
=$ac_try;;
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_try") 2>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 ac_cv_sys_file_offset_bits
=64; break
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.
$ac_ext >&5
8216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8220 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8221 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
8222 if test "$ac_cv_sys_file_offset_bits" != no
; then
8224 cat >>confdefs.h
<<_ACEOF
8225 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8230 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8231 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
8232 if test "${ac_cv_sys_large_files+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 ac_cv_sys_large_files
=no
8237 cat >conftest.
$ac_ext <<_ACEOF
8240 cat confdefs.h
>>conftest.
$ac_ext
8241 cat >>conftest.
$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 #include <sys/types.h>
8244 /* Check that off_t can represent 2**63 - 1 correctly.
8245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8246 since some C++ compilers masquerading as C compilers
8247 incorrectly reject 9223372036854775807. */
8248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8250 && LARGE_OFF_T % 2147483647 == 1)
8260 rm -f conftest.
$ac_objext
8261 if { (ac_try
="$ac_compile"
8263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_compile") 2>conftest.er1
8269 grep -v '^ *+' conftest.er1 >conftest.err
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8275 { (case "(($ac_try" in
8276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8277 *) ac_try_echo
=$ac_try;;
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_try") 2>&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try
='test -s conftest.$ac_objext'
8285 { (case "(($ac_try" in
8286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_try") 2>&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303 cat >conftest.$ac_ext <<_ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8309 #define _LARGE_FILES 1
8310 #include <sys/types.h>
8311 /* Check that off_t can represent 2**63 - 1 correctly.
8312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8313 since some C++ compilers masquerading as C compilers
8314 incorrectly reject 9223372036854775807. */
8315 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8317 && LARGE_OFF_T % 2147483647 == 1)
8327 rm -f conftest.$ac_objext
8328 if { (ac_try="$ac_compile"
8330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8331 *) ac_try_echo
=$ac_try;;
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_compile") 2>conftest.er1
8336 grep -v '^ *+' conftest.er1
>conftest.err
8338 cat conftest.err
>&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8342 { (case "(($ac_try" in
8343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_try") 2>&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; } &&
8351 { ac_try='test -s conftest.$ac_objext'
8352 { (case "(($ac_try" in
8353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8354 *) ac_try_echo
=$ac_try;;
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_try") 2>&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 ac_cv_sys_large_files
=1; break
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.
$ac_ext >&5
8369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8373 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8374 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
8375 if test "$ac_cv_sys_large_files" != no
; then
8377 cat >>confdefs.h
<<_ACEOF
8378 #define _LARGE_FILES $ac_cv_sys_large_files
8386 # Checks for typedefs, structures, and compiler characteristics.
8387 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8388 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
8389 if test "${ac_cv_header_stdbool_h+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 cat >conftest.
$ac_ext <<_ACEOF
8395 cat confdefs.h
>>conftest.
$ac_ext
8396 cat >>conftest.
$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8399 #include <stdbool.h>
8401 "error: bool is not defined"
8404 "error: false is not defined"
8407 "error: false is not 0"
8410 "error: true is not defined"
8413 "error: true is not 1"
8415 #ifndef __bool_true_false_are_defined
8416 "error: __bool_true_false_are_defined is not defined"
8419 struct s { _Bool s: 1; _Bool t; } s;
8421 char a[true == 1 ? 1 : -1];
8422 char b[false == 0 ? 1 : -1];
8423 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8424 char d[(bool) 0.5 == true ? 1 : -1];
8426 char f[(_Bool) 0.0 == false ? 1 : -1];
8428 char h[sizeof (_Bool)];
8430 enum { j = false, k = true, l = false * true, m = true * 256 };
8432 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8433 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8434 # if defined __xlc__ || defined __GNUC__
8435 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8436 reported by James Lemley on 2005-10-05; see
8437 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8438 This test is not quite right, since xlc is allowed to
8439 reject this program, as the initializer for xlcbug is
8440 not one of the forms that C requires support for.
8441 However, doing the test right would require a runtime
8442 test, and that would make cross-compilation harder.
8443 Let us hope that IBM fixes the xlc bug, and also adds
8444 support for this kind of constant expression. In the
8445 meantime, this test will reject xlc, which is OK, since
8446 our stdbool.h substitute should suffice. We also test
8447 this with GCC, where it should work, to detect more
8448 quickly whether someone messes up the test in the
8450 char digs[] = "0123456789";
8451 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8453 /* Catch a bug in an HP-UX C compiler. See
8454 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8455 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8466 /* Refer to every declared value, to avoid compiler optimizations. */
8467 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8468 + !m + !n + !o + !p + !q + !pq);
8474 rm -f conftest.
$ac_objext
8475 if { (ac_try
="$ac_compile"
8477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8483 grep -v '^ *+' conftest.er1 >conftest.err
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8489 { (case "(($ac_try" in
8490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8491 *) ac_try_echo
=$ac_try;;
8493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8494 (eval "$ac_try") 2>&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try
='test -s conftest.$ac_objext'
8499 { (case "(($ac_try" in
8500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504 (eval "$ac_try") 2>&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
8508 ac_cv_header_stdbool_h=yes
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8513 ac_cv_header_stdbool_h=no
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8519 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
8520 { echo "$as_me:$LINENO: checking for _Bool" >&5
8521 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
8522 if test "${ac_cv_type__Bool+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 cat >conftest.$ac_ext <<_ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 $ac_includes_default
8532 typedef _Bool ac__type_new_;
8536 if ((ac__type_new_ *) 0)
8538 if (sizeof (ac__type_new_))
8544 rm -f conftest.$ac_objext
8545 if { (ac_try="$ac_compile"
8547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8548 *) ac_try_echo
=$ac_try;;
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551 (eval "$ac_compile") 2>conftest.er1
8553 grep -v '^ *+' conftest.er1
>conftest.err
8555 cat conftest.err
>&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8559 { (case "(($ac_try" in
8560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564 (eval "$ac_try") 2>&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; } &&
8568 { ac_try='test -s conftest.$ac_objext'
8569 { (case "(($ac_try" in
8570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8571 *) ac_try_echo
=$ac_try;;
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_try") 2>&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 ac_cv_type__Bool
=yes
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.
$ac_ext >&5
8586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8588 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8589 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
8590 if test $ac_cv_type__Bool = yes; then
8592 cat >>confdefs.h
<<_ACEOF
8593 #define HAVE__BOOL 1
8599 if test $ac_cv_header_stdbool_h = yes; then
8601 cat >>confdefs.h
<<\_ACEOF
8602 #define HAVE_STDBOOL_H 1
8607 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8608 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8609 if test "${ac_cv_c_const+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 cat >conftest.
$ac_ext <<_ACEOF
8615 cat confdefs.h
>>conftest.
$ac_ext
8616 cat >>conftest.
$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8622 /* FIXME: Include the comments suggested by Paul. */
8624 /* Ultrix mips cc rejects this. */
8625 typedef int charset[2];
8627 /* SunOS 4.1.1 cc rejects this. */
8628 char const *const *pcpcc;
8630 /* NEC SVR4.0.2 mips cc rejects this. */
8631 struct point {int x, y;};
8632 static struct point const zero = {0,0};
8633 /* AIX XL C 1.02.0.0 rejects this.
8634 It does not let you subtract one const X* pointer from another in
8635 an arm of an if-expression whose if-part is not a constant
8637 const char *g = "string";
8638 pcpcc = &g + (g ? g-g : 0);
8639 /* HPUX 7.0 cc rejects these. */
8641 ppc = (char**) pcpcc;
8642 pcpcc = (char const *const *) ppc;
8643 { /* SCO 3.2v4 cc rejects this. */
8645 char const *s = 0 ? (char *) 0 : (char const *) 0;
8650 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8652 const int *foo = &x[0];
8655 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8656 typedef const int *iptr;
8660 { /* AIX XL C 1.02.0.0 rejects this saying
8661 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8662 struct s { int j; const int *ap[3]; };
8663 struct s *b; b->j = 5;
8665 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8669 return !cs[0] && !zero.x;
8676 rm -f conftest.
$ac_objext
8677 if { (ac_try
="$ac_compile"
8679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683 (eval "$ac_compile") 2>conftest.er1
8685 grep -v '^ *+' conftest.er1 >conftest.err
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } &&
8690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8691 { (case "(($ac_try" in
8692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8693 *) ac_try_echo
=$ac_try;;
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_try") 2>&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try
='test -s conftest.$ac_objext'
8701 { (case "(($ac_try" in
8702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_try") 2>&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8721 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8722 if test $ac_cv_c_const = no; then
8724 cat >>confdefs.h <<\_ACEOF
8730 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8731 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8732 if test "${ac_cv_type_uid_t+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 cat >conftest.$ac_ext <<_ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 #include <sys/types.h>
8744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8745 $EGREP "uid_t" >/dev/null 2>&1; then
8746 ac_cv_type_uid_t=yes
8753 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8754 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
8755 if test $ac_cv_type_uid_t = no; then
8757 cat >>confdefs.h <<\_ACEOF
8762 cat >>confdefs.h <<\_ACEOF
8768 { echo "$as_me:$LINENO: checking for inline" >&5
8769 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8770 if test "${ac_cv_c_inline+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 for ac_kw in inline __inline__ __inline; do
8775 cat >conftest.$ac_ext <<_ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8783 static $ac_kw foo_t static_foo () {return 0; }
8784 $ac_kw foo_t foo () {return 0; }
8788 rm -f conftest.$ac_objext
8789 if { (ac_try="$ac_compile"
8791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8792 *) ac_try_echo
=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_compile") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1
>conftest.err
8799 cat conftest.err
>&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8803 { (case "(($ac_try" in
8804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_try") 2>&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest.$ac_objext'
8813 { (case "(($ac_try" in
8814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8815 *) ac_try_echo
=$ac_try;;
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_try") 2>&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_cv_c_inline
=$ac_kw
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.
$ac_ext >&5
8830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8831 test "$ac_cv_c_inline" != no
&& break
8835 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8836 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8839 case $ac_cv_c_inline in
8842 case $ac_cv_c_inline in
8844 *) ac_val
=$ac_cv_c_inline;;
8846 cat >>confdefs.h
<<_ACEOF
8848 #define inline $ac_val
8854 { echo "$as_me:$LINENO: checking for mode_t" >&5
8855 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8856 if test "${ac_cv_type_mode_t+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 cat >conftest.
$ac_ext <<_ACEOF
8862 cat confdefs.h
>>conftest.
$ac_ext
8863 cat >>conftest.
$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 $ac_includes_default
8866 typedef mode_t ac__type_new_;
8870 if ((ac__type_new_ *) 0)
8872 if (sizeof (ac__type_new_))
8878 rm -f conftest.
$ac_objext
8879 if { (ac_try
="$ac_compile"
8881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8887 grep -v '^ *+' conftest.er1 >conftest.err
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8893 { (case "(($ac_try" in
8894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8895 *) ac_try_echo
=$ac_try;;
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_try") 2>&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try
='test -s conftest.$ac_objext'
8903 { (case "(($ac_try" in
8904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8905 *) ac_try_echo=$ac_try;;
8907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908 (eval "$ac_try") 2>&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 ac_cv_type_mode_t=yes
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 ac_cv_type_mode_t=no
8920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8923 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8924 if test $ac_cv_type_mode_t = yes; then
8928 cat >>confdefs.h <<_ACEOF
8934 { echo "$as_me:$LINENO: checking for off_t" >&5
8935 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8936 if test "${ac_cv_type_off_t+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 cat >conftest.$ac_ext <<_ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 $ac_includes_default
8946 typedef off_t ac__type_new_;
8950 if ((ac__type_new_ *) 0)
8952 if (sizeof (ac__type_new_))
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 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973 { (case "(($ac_try" in
8974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest.$ac_objext'
8983 { (case "(($ac_try" in
8984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8985 *) ac_try_echo
=$ac_try;;
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_try") 2>&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_type_off_t
=yes
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.
$ac_ext >&5
9000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9002 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9003 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9004 if test $ac_cv_type_off_t = yes; then
9008 cat >>confdefs.h
<<_ACEOF
9009 #define off_t long int
9014 { echo "$as_me:$LINENO: checking for pid_t" >&5
9015 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9016 if test "${ac_cv_type_pid_t+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 cat >conftest.
$ac_ext <<_ACEOF
9022 cat confdefs.h
>>conftest.
$ac_ext
9023 cat >>conftest.
$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 $ac_includes_default
9026 typedef pid_t ac__type_new_;
9030 if ((ac__type_new_ *) 0)
9032 if (sizeof (ac__type_new_))
9038 rm -f conftest.
$ac_objext
9039 if { (ac_try
="$ac_compile"
9041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_compile") 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9053 { (case "(($ac_try" in
9054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9055 *) ac_try_echo
=$ac_try;;
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_try") 2>&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try
='test -s conftest.$ac_objext'
9063 { (case "(($ac_try" in
9064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068 (eval "$ac_try") 2>&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_type_pid_t=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9083 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
9084 if test $ac_cv_type_pid_t = yes; then
9088 cat >>confdefs.h <<_ACEOF
9094 { echo "$as_me:$LINENO: checking for size_t" >&5
9095 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9096 if test "${ac_cv_type_size_t+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 typedef size_t ac__type_new_;
9110 if ((ac__type_new_ *) 0)
9112 if (sizeof (ac__type_new_))
9118 rm -f conftest.$ac_objext
9119 if { (ac_try="$ac_compile"
9121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9122 *) ac_try_echo
=$ac_try;;
9124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125 (eval "$ac_compile") 2>conftest.er1
9127 grep -v '^ *+' conftest.er1
>conftest.err
9129 cat conftest.err
>&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9133 { (case "(($ac_try" in
9134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_try") 2>&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest.$ac_objext'
9143 { (case "(($ac_try" in
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_try") 2>&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_type_size_t
=yes
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.
$ac_ext >&5
9157 ac_cv_type_size_t
=no
9160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9162 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9163 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9164 if test $ac_cv_type_size_t = yes; then
9168 cat >>confdefs.h
<<_ACEOF
9169 #define size_t unsigned int
9174 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9175 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
9176 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 cat >conftest.
$ac_ext <<_ACEOF
9182 cat confdefs.h
>>conftest.
$ac_ext
9183 cat >>conftest.
$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9185 $ac_includes_default
9189 static struct stat ac_aggr;
9190 if (ac_aggr.st_blksize)
9196 rm -f conftest.
$ac_objext
9197 if { (ac_try
="$ac_compile"
9199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203 (eval "$ac_compile") 2>conftest.er1
9205 grep -v '^ *+' conftest.er1 >conftest.err
9207 cat conftest.err >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } &&
9210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9211 { (case "(($ac_try" in
9212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9213 *) ac_try_echo
=$ac_try;;
9215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9216 (eval "$ac_try") 2>&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; } &&
9220 { ac_try
='test -s conftest.$ac_objext'
9221 { (case "(($ac_try" in
9222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_try") 2>&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
9230 ac_cv_member_struct_stat_st_blksize=yes
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9235 cat >conftest.$ac_ext <<_ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241 $ac_includes_default
9245 static struct stat ac_aggr;
9246 if (sizeof ac_aggr.st_blksize)
9252 rm -f conftest.$ac_objext
9253 if { (ac_try="$ac_compile"
9255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9256 *) ac_try_echo
=$ac_try;;
9258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9259 (eval "$ac_compile") 2>conftest.er1
9261 grep -v '^ *+' conftest.er1
>conftest.err
9263 cat conftest.err
>&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9267 { (case "(($ac_try" in
9268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272 (eval "$ac_try") 2>&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; } &&
9276 { ac_try='test -s conftest.$ac_objext'
9277 { (case "(($ac_try" in
9278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9279 *) ac_try_echo
=$ac_try;;
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282 (eval "$ac_try") 2>&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9286 ac_cv_member_struct_stat_st_blksize
=yes
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.
$ac_ext >&5
9291 ac_cv_member_struct_stat_st_blksize
=no
9294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9299 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9300 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
9301 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9303 cat >>confdefs.h
<<_ACEOF
9304 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9310 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9311 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9312 if test "${ac_cv_header_time+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 cat >conftest.
$ac_ext <<_ACEOF
9318 cat confdefs.h
>>conftest.
$ac_ext
9319 cat >>conftest.
$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9321 #include <sys/types.h>
9322 #include <sys/time.h>
9328 if ((struct tm *) 0)
9334 rm -f conftest.
$ac_objext
9335 if { (ac_try
="$ac_compile"
9337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_compile") 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9349 { (case "(($ac_try" in
9350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9351 *) ac_try_echo
=$ac_try;;
9353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354 (eval "$ac_try") 2>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; } &&
9358 { ac_try
='test -s conftest.$ac_objext'
9359 { (case "(($ac_try" in
9360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_try") 2>&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9368 ac_cv_header_time=yes
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9373 ac_cv_header_time=no
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9378 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9379 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9380 if test $ac_cv_header_time = yes; then
9382 cat >>confdefs.h <<\_ACEOF
9383 #define TIME_WITH_SYS_TIME 1
9388 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9389 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9390 if test "${ac_cv_struct_tm+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 #include <sys/types.h>
9405 struct tm *tp; tp->tm_sec;
9410 rm -f conftest.$ac_objext
9411 if { (ac_try="$ac_compile"
9413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9414 *) ac_try_echo
=$ac_try;;
9416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9417 (eval "$ac_compile") 2>conftest.er1
9419 grep -v '^ *+' conftest.er1
>conftest.err
9421 cat conftest.err
>&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } &&
9424 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9425 { (case "(($ac_try" in
9426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9430 (eval "$ac_try") 2>&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; } &&
9434 { ac_try='test -s conftest.$ac_objext'
9435 { (case "(($ac_try" in
9436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9437 *) ac_try_echo
=$ac_try;;
9439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9440 (eval "$ac_try") 2>&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9444 ac_cv_struct_tm
=time.h
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.
$ac_ext >&5
9449 ac_cv_struct_tm
=sys
/time.h
9452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9454 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9455 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9456 if test $ac_cv_struct_tm = sys
/time.h
; then
9458 cat >>confdefs.h
<<\_ACEOF
9459 #define TM_IN_SYS_TIME 1
9464 { echo "$as_me:$LINENO: checking for working volatile" >&5
9465 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9466 if test "${ac_cv_c_volatile+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 cat >conftest.
$ac_ext <<_ACEOF
9472 cat confdefs.h
>>conftest.
$ac_ext
9473 cat >>conftest.
$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9481 int * volatile y = (int *) 0;
9487 rm -f conftest.
$ac_objext
9488 if { (ac_try
="$ac_compile"
9490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_compile") 2>conftest.er1
9496 grep -v '^ *+' conftest.er1 >conftest.err
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9502 { (case "(($ac_try" in
9503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9504 *) ac_try_echo
=$ac_try;;
9506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_try") 2>&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try
='test -s conftest.$ac_objext'
9512 { (case "(($ac_try" in
9513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_try") 2>&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_c_volatile=yes
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9532 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9533 if test $ac_cv_c_volatile = no; then
9535 cat >>confdefs.h <<\_ACEOF
9541 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9542 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9543 if test "${ac_cv_type_ptrdiff_t+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 ptrdiff_t 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 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9580 { (case "(($ac_try" in
9581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_try") 2>&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; } &&
9589 { ac_try='test -s conftest.$ac_objext'
9590 { (case "(($ac_try" in
9591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9592 *) ac_try_echo
=$ac_try;;
9594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595 (eval "$ac_try") 2>&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 ac_cv_type_ptrdiff_t
=yes
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.
$ac_ext >&5
9604 ac_cv_type_ptrdiff_t
=no
9607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9609 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9610 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9611 if test $ac_cv_type_ptrdiff_t = yes; then
9613 cat >>confdefs.h
<<_ACEOF
9614 #define HAVE_PTRDIFF_T 1
9621 # Checks for library functions.
9623 for ac_header
in unistd.h
9625 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9626 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9629 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9632 ac_res
=`eval echo '${'$as_ac_Header'}'`
9633 { echo "$as_me:$LINENO: result: $ac_res" >&5
9634 echo "${ECHO_T}$ac_res" >&6; }
9636 # Is the header compilable?
9637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9639 cat >conftest.
$ac_ext <<_ACEOF
9642 cat confdefs.h
>>conftest.
$ac_ext
9643 cat >>conftest.
$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9645 $ac_includes_default
9646 #include <$ac_header>
9648 rm -f conftest.
$ac_objext
9649 if { (ac_try
="$ac_compile"
9651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_compile") 2>conftest.er1
9657 grep -v '^ *+' conftest.er1 >conftest.err
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9663 { (case "(($ac_try" in
9664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9665 *) ac_try_echo
=$ac_try;;
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668 (eval "$ac_try") 2>&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; } &&
9672 { ac_try
='test -s conftest.$ac_objext'
9673 { (case "(($ac_try" in
9674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_try") 2>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 ac_header_compiler=yes
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 ac_header_compiler=no
9690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9692 echo "${ECHO_T}$ac_header_compiler" >&6; }
9694 # Is the header present?
9695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 #include <$ac_header>
9705 if { (ac_try="$ac_cpp conftest.$ac_ext"
9707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9708 *) ac_try_echo
=$ac_try;;
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9713 grep -v '^ *+' conftest.er1
>conftest.err
9715 cat conftest.err
>&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } >/dev
/null
; then
9718 if test -s conftest.err
; then
9719 ac_cpp_err
=$ac_c_preproc_warn_flag
9720 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9727 if test -z "$ac_cpp_err"; then
9728 ac_header_preproc
=yes
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.
$ac_ext >&5
9733 ac_header_preproc
=no
9736 rm -f conftest.err conftest.
$ac_ext
9737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9738 echo "${ECHO_T}$ac_header_preproc" >&6; }
9740 # So? What about this header?
9741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9747 ac_header_preproc
=yes
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9767 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 eval "$as_ac_Header=\$ac_header_preproc"
9772 ac_res
=`eval echo '${'$as_ac_Header'}'`
9773 { echo "$as_me:$LINENO: result: $ac_res" >&5
9774 echo "${ECHO_T}$ac_res" >&6; }
9777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9778 cat >>confdefs.h
<<_ACEOF
9779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9786 { echo "$as_me:$LINENO: checking for working chown" >&5
9787 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
9788 if test "${ac_cv_func_chown_works+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 if test "$cross_compiling" = yes; then
9792 ac_cv_func_chown_works
=no
9794 cat >conftest.
$ac_ext <<_ACEOF
9797 cat confdefs.h
>>conftest.
$ac_ext
9798 cat >>conftest.
$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 $ac_includes_default
9806 char *f = "conftest.chown";
9807 struct stat before, after;
9809 if (creat (f, 0600) < 0)
9811 if (stat (f, &before) < 0)
9813 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
9815 if (stat (f, &after) < 0)
9817 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
9823 rm -f conftest
$ac_exeext
9824 if { (ac_try
="$ac_link"
9826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_link") 2>&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9834 { (case "(($ac_try" in
9835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9836 *) ac_try_echo
=$ac_try;;
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_try") 2>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 ac_cv_func_chown_works
=yes
9845 echo "$as_me: program exited with status $ac_status" >&5
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.
$ac_ext >&5
9850 ac_cv_func_chown_works
=no
9852 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9856 rm -f conftest.chown
9859 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
9860 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
9861 if test $ac_cv_func_chown_works = yes; then
9863 cat >>confdefs.h
<<\_ACEOF
9864 #define HAVE_CHOWN 1
9869 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9870 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
9871 if test "${ac_cv_func_closedir_void+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 if test "$cross_compiling" = yes; then
9875 ac_cv_func_closedir_void
=yes
9877 cat >conftest.
$ac_ext <<_ACEOF
9880 cat confdefs.h
>>conftest.
$ac_ext
9881 cat >>conftest.
$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 $ac_includes_default
9884 #include <$ac_header_dirent>
9892 return closedir (opendir (".")) != 0;
9897 rm -f conftest
$ac_exeext
9898 if { (ac_try
="$ac_link"
9900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_link") 2>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9908 { (case "(($ac_try" in
9909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9910 *) ac_try_echo
=$ac_try;;
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_try") 2>&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 ac_cv_func_closedir_void
=no
9919 echo "$as_me: program exited with status $ac_status" >&5
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.
$ac_ext >&5
9924 ac_cv_func_closedir_void
=yes
9926 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9931 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9932 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
9933 if test $ac_cv_func_closedir_void = yes; then
9935 cat >>confdefs.h
<<\_ACEOF
9936 #define CLOSEDIR_VOID 1
9941 { echo "$as_me:$LINENO: checking for error_at_line" >&5
9942 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
9943 if test "${ac_cv_lib_error_at_line+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 cat >conftest.
$ac_ext <<_ACEOF
9949 cat confdefs.h
>>conftest.
$ac_ext
9950 cat >>conftest.
$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9956 error_at_line (0, 0, "", 0, "");
9961 rm -f conftest.
$ac_objext conftest
$ac_exeext
9962 if { (ac_try
="$ac_link"
9964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_link") 2>conftest.er1
9970 grep -v '^ *+' conftest.er1 >conftest.err
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9976 { (case "(($ac_try" in
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_try") 2>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; } &&
9985 { ac_try
='test -s conftest$ac_exeext'
9986 { (case "(($ac_try" in
9987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_try") 2>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_cv_lib_error_at_line=yes
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_cv_lib_error_at_line=no
10003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10004 conftest$ac_exeext conftest.$ac_ext
10006 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10007 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10008 if test $ac_cv_lib_error_at_line = no; then
10009 case " $LIBOBJS " in
10010 *" error.$ac_objext "* ) ;;
10011 *) LIBOBJS="$LIBOBJS error.$ac_objext"
10018 for ac_header in vfork.h
10020 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 ac_res=`eval echo '${'$as_ac_Header'}'`
10028 { echo "$as_me:$LINENO: result: $ac_res" >&5
10029 echo "${ECHO_T}$ac_res" >&6; }
10031 # Is the header compilable?
10032 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10034 cat >conftest.$ac_ext <<_ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 $ac_includes_default
10041 #include <$ac_header>
10043 rm -f conftest.$ac_objext
10044 if { (ac_try="$ac_compile"
10045 case "(($ac_try" in
10046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10047 *) ac_try_echo
=$ac_try;;
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_compile") 2>conftest.er1
10052 grep -v '^ *+' conftest.er1
>conftest.err
10054 cat conftest.err
>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10058 { (case "(($ac_try" in
10059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_try") 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try='test -s conftest.$ac_objext'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10070 *) ac_try_echo
=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_header_compiler
=yes
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.
$ac_ext >&5
10082 ac_header_compiler
=no
10085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10087 echo "${ECHO_T}$ac_header_compiler" >&6; }
10089 # Is the header present?
10090 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10092 cat >conftest.
$ac_ext <<_ACEOF
10095 cat confdefs.h
>>conftest.
$ac_ext
10096 cat >>conftest.
$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 #include <$ac_header>
10100 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10101 case "(($ac_try" in
10102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10103 *) ac_try_echo=$ac_try;;
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10108 grep -v '^ *+' conftest.er1 >conftest.err
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } >/dev/null; then
10113 if test -s conftest.err; then
10114 ac_cpp_err=$ac_c_preproc_warn_flag
10115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10122 if test -z "$ac_cpp_err"; then
10123 ac_header_preproc=yes
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_header_preproc=no
10131 rm -f conftest.err conftest.$ac_ext
10132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10133 echo "${ECHO_T}$ac_header_preproc" >&6; }
10135 # So? What about this header?
10136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10142 ac_header_preproc=yes
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 eval "$as_ac_Header=\$ac_header_preproc"
10167 ac_res=`eval echo '${'$as_ac_Header'}'`
10168 { echo "$as_me:$LINENO: result: $ac_res" >&5
10169 echo "${ECHO_T}$ac_res" >&6; }
10172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10173 cat >>confdefs.h <<_ACEOF
10174 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10183 for ac_func in fork vfork
10185 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 cat >conftest.$ac_ext <<_ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10199 #define $ac_func innocuous_$ac_func
10201 /* System header to define __stub macros and hopefully few prototypes,
10202 which can conflict with char $ac_func (); below.
10203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204 <limits.h> exists even on freestanding compilers. */
10207 # include <limits.h>
10209 # include <assert.h>
10214 /* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
10221 /* The GNU C library defines this for functions which it implements
10222 to always fail with ENOSYS. Some functions are actually named
10223 something starting with __ and the normal name is an alias. */
10224 #if defined __stub_$ac_func || defined __stub___$ac_func
10231 return $ac_func ();
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10240 *) ac_try_echo
=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>conftest.er1
10245 grep -v '^ *+' conftest.er1
>conftest.err
10247 cat conftest.err
>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } &&
10250 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10251 { (case "(($ac_try" in
10252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_try") 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try='test -s conftest$ac_exeext'
10261 { (case "(($ac_try" in
10262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10263 *) ac_try_echo
=$ac_try;;
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_try") 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 eval "$as_ac_var=yes"
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.
$ac_ext >&5
10275 eval "$as_ac_var=no"
10278 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10279 conftest
$ac_exeext conftest.
$ac_ext
10281 ac_res
=`eval echo '${'$as_ac_var'}'`
10282 { echo "$as_me:$LINENO: result: $ac_res" >&5
10283 echo "${ECHO_T}$ac_res" >&6; }
10284 if test `eval echo '${'$as_ac_var'}'` = yes; then
10285 cat >>confdefs.h
<<_ACEOF
10286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10292 if test "x$ac_cv_func_fork" = xyes
; then
10293 { echo "$as_me:$LINENO: checking for working fork" >&5
10294 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
10295 if test "${ac_cv_func_fork_works+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 if test "$cross_compiling" = yes; then
10299 ac_cv_func_fork_works
=cross
10301 cat >conftest.
$ac_ext <<_ACEOF
10304 cat confdefs.h
>>conftest.
$ac_ext
10305 cat >>conftest.
$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 $ac_includes_default
10312 /* By Ruediger Kuhlmann. */
10313 return fork () < 0;
10319 rm -f conftest
$ac_exeext
10320 if { (ac_try
="$ac_link"
10321 case "(($ac_try" in
10322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_link") 2>&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10330 { (case "(($ac_try" in
10331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10332 *) ac_try_echo
=$ac_try;;
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_try") 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_cv_func_fork_works
=yes
10341 echo "$as_me: program exited with status $ac_status" >&5
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.
$ac_ext >&5
10345 ( exit $ac_status )
10346 ac_cv_func_fork_works
=no
10348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10353 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10354 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
10357 ac_cv_func_fork_works
=$ac_cv_func_fork
10359 if test "x$ac_cv_func_fork_works" = xcross
; then
10361 *-*-amigaos* |
*-*-msdosdjgpp* |
*-*-uclinux* )
10362 # Override, as these systems have only a dummy fork() stub
10363 ac_cv_func_fork_works
=no
10366 ac_cv_func_fork_works
=yes
10369 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10370 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10372 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10373 if test "x$ac_cv_func_vfork" = xyes
; then
10374 { echo "$as_me:$LINENO: checking for working vfork" >&5
10375 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
10376 if test "${ac_cv_func_vfork_works+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 if test "$cross_compiling" = yes; then
10380 ac_cv_func_vfork_works
=cross
10382 cat >conftest.
$ac_ext <<_ACEOF
10385 cat confdefs.h
>>conftest.
$ac_ext
10386 cat >>conftest.
$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10388 /* Thanks to Paul Eggert for this test. */
10389 $ac_includes_default
10390 #include <sys/wait.h>
10391 #ifdef HAVE_VFORK_H
10392 # include <vfork.h>
10394 /* On some sparc systems, changes by the child to local and incoming
10395 argument registers are propagated back to the parent. The compiler
10396 is told about this with #include <vfork.h>, but some compilers
10397 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10398 static variable whose address is put into a register that is
10399 clobbered by the vfork. */
10402 sparc_address_test (int arg)
10404 sparc_address_test (arg) int arg;
10407 static pid_t child;
10425 pid_t parent = getpid ();
10428 sparc_address_test (0);
10433 /* Here is another test for sparc vfork register problems. This
10434 test uses lots of local variables, at least as many local
10435 variables as main has allocated so far including compiler
10436 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10437 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10438 reuse the register of parent for one of the local variables,
10439 since it will think that parent can't possibly be used any more
10440 in this routine. Assigning to the local variable will thus
10441 munge parent in the parent process. */
10443 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10444 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10445 /* Convince the compiler that p..p7 are live; otherwise, it might
10446 use the same hardware register for all 8 local variables. */
10447 if (p != p1 || p != p2 || p != p3 || p != p4
10448 || p != p5 || p != p6 || p != p7)
10451 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10452 from child file descriptors. If the child closes a descriptor
10453 before it execs or exits, this munges the parent's descriptor
10454 as well. Test for this by closing stdout in the child. */
10455 _exit(close(fileno(stdout)) != 0);
10460 while (wait(&status) != child)
10463 /* Was there some problem with vforking? */
10466 /* Did the child fail? (This shouldn't happen.) */
10469 /* Did the vfork/compiler bug occur? */
10470 || parent != getpid()
10472 /* Did the file descriptor bug occur? */
10473 || fstat(fileno(stdout), &st) != 0
10478 rm -f conftest
$ac_exeext
10479 if { (ac_try
="$ac_link"
10480 case "(($ac_try" in
10481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_link") 2>&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10489 { (case "(($ac_try" in
10490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10491 *) ac_try_echo
=$ac_try;;
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_try") 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; }; then
10498 ac_cv_func_vfork_works
=yes
10500 echo "$as_me: program exited with status $ac_status" >&5
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.
$ac_ext >&5
10504 ( exit $ac_status )
10505 ac_cv_func_vfork_works
=no
10507 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10512 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10513 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10516 if test "x$ac_cv_func_fork_works" = xcross
; then
10517 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10518 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10519 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10522 if test "x$ac_cv_func_vfork_works" = xyes
; then
10524 cat >>confdefs.h
<<\_ACEOF
10525 #define HAVE_WORKING_VFORK 1
10530 cat >>confdefs.h
<<\_ACEOF
10535 if test "x$ac_cv_func_fork_works" = xyes
; then
10537 cat >>confdefs.h
<<\_ACEOF
10538 #define HAVE_WORKING_FORK 1
10543 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10544 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
10545 if test "${ac_cv_sys_largefile_source+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 ac_cv_sys_largefile_source
=no
10550 cat >conftest.
$ac_ext <<_ACEOF
10553 cat confdefs.h
>>conftest.
$ac_ext
10554 cat >>conftest.
$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10565 rm -f conftest.
$ac_objext
10566 if { (ac_try
="$ac_compile"
10567 case "(($ac_try" in
10568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_compile") 2>conftest.er1
10574 grep -v '^ *+' conftest.er1 >conftest.err
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } &&
10579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10580 { (case "(($ac_try" in
10581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10582 *) ac_try_echo
=$ac_try;;
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_try") 2>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; } &&
10589 { ac_try
='test -s conftest.$ac_objext'
10590 { (case "(($ac_try" in
10591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_try") 2>&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608 cat >conftest.$ac_ext <<_ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #define _LARGEFILE_SOURCE 1
10624 rm -f conftest.$ac_objext
10625 if { (ac_try="$ac_compile"
10626 case "(($ac_try" in
10627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10628 *) ac_try_echo
=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_compile") 2>conftest.er1
10633 grep -v '^ *+' conftest.er1
>conftest.err
10635 cat conftest.err
>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (case "(($ac_try" in
10640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (case "(($ac_try" in
10650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10651 *) ac_try_echo
=$ac_try;;
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_cv_sys_largefile_source
=1; break
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.
$ac_ext >&5
10666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10670 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
10671 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
10672 if test "$ac_cv_sys_largefile_source" != no
; then
10674 cat >>confdefs.h
<<_ACEOF
10675 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10681 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10682 # in glibc 2.1.3, but that breaks too many other things.
10683 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10684 { echo "$as_me:$LINENO: checking for fseeko" >&5
10685 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
10686 if test "${ac_cv_func_fseeko+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 cat >conftest.
$ac_ext <<_ACEOF
10692 cat confdefs.h
>>conftest.
$ac_ext
10693 cat >>conftest.
$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10699 return fseeko && fseeko (stdin, 0, 0);
10704 rm -f conftest.
$ac_objext conftest
$ac_exeext
10705 if { (ac_try
="$ac_link"
10706 case "(($ac_try" in
10707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_link") 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10719 { (case "(($ac_try" in
10720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10721 *) ac_try_echo
=$ac_try;;
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_try") 2>&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try
='test -s conftest$ac_exeext'
10729 { (case "(($ac_try" in
10730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_func_fseeko=yes
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ac_cv_func_fseeko=no
10746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10747 conftest$ac_exeext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
10750 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
10751 if test $ac_cv_func_fseeko = yes; then
10753 cat >>confdefs.h <<\_ACEOF
10754 #define HAVE_FSEEKO 1
10759 if test $ac_cv_c_compiler_gnu = yes; then
10760 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10761 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
10762 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 ac_pattern="Autoconf.*'x'"
10766 cat >conftest.$ac_ext <<_ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10776 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10777 ac_cv_prog_gcc_traditional=yes
10779 ac_cv_prog_gcc_traditional=no
10784 if test $ac_cv_prog_gcc_traditional = no; then
10785 cat >conftest.$ac_ext <<_ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 #include <termio.h>
10794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10795 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10796 ac_cv_prog_gcc_traditional=yes
10802 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10803 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
10804 if test $ac_cv_prog_gcc_traditional = yes; then
10805 CC="$CC -traditional"
10809 # XXX: these are commented out until we determine whether it matters if our malloc()
10810 # acts exactly like glibc's or not
10813 { echo "$as_me:$LINENO: checking for working memcmp" >&5
10814 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
10815 if test "${ac_cv_func_memcmp_working+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 if test "$cross_compiling" = yes; then
10819 ac_cv_func_memcmp_working=no
10821 cat >conftest.$ac_ext <<_ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 $ac_includes_default
10832 /* Some versions of memcmp are not 8-bit clean. */
10833 char c0 = '\100', c1 = '\200', c2 = '\201';
10834 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10837 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10838 or more and with at least one buffer not starting on a 4-byte boundary.
10839 William Lewis provided this test program. */
10844 for (i = 0; i < 4; i++)
10848 strcpy (a, "--------01111111");
10849 strcpy (b, "--------10000000");
10850 if (memcmp (a, b, 16) >= 0)
10860 rm -f conftest$ac_exeext
10861 if { (ac_try="$ac_link"
10862 case "(($ac_try" in
10863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10864 *) ac_try_echo
=$ac_try;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_link") 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10871 { (case "(($ac_try" in
10872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_try") 2>&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; }; then
10880 ac_cv_func_memcmp_working=yes
10882 echo "$as_me: program exited with status $ac_status" >&5
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ( exit $ac_status )
10887 ac_cv_func_memcmp_working=no
10889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10894 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10895 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
10896 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10897 *" memcmp.$ac_objext "* ) ;;
10898 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10906 for ac_header in stdlib.h sys/time.h unistd.h
10908 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 ac_res=`eval echo '${'$as_ac_Header'}'`
10916 { echo "$as_me:$LINENO: result: $ac_res" >&5
10917 echo "${ECHO_T}$ac_res" >&6; }
10919 # Is the header compilable?
10920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10922 cat >conftest.$ac_ext <<_ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 $ac_includes_default
10929 #include <$ac_header>
10931 rm -f conftest.$ac_objext
10932 if { (ac_try="$ac_compile"
10933 case "(($ac_try" in
10934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10935 *) ac_try_echo
=$ac_try;;
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_compile") 2>conftest.er1
10940 grep -v '^ *+' conftest.er1
>conftest.err
10942 cat conftest.err
>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10946 { (case "(($ac_try" in
10947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_try") 2>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest.$ac_objext'
10956 { (case "(($ac_try" in
10957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10958 *) ac_try_echo
=$ac_try;;
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_try") 2>&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_header_compiler
=yes
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.
$ac_ext >&5
10970 ac_header_compiler
=no
10973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10975 echo "${ECHO_T}$ac_header_compiler" >&6; }
10977 # Is the header present?
10978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10980 cat >conftest.
$ac_ext <<_ACEOF
10983 cat confdefs.h
>>conftest.
$ac_ext
10984 cat >>conftest.
$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 #include <$ac_header>
10988 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10989 case "(($ac_try" in
10990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10996 grep -v '^ *+' conftest.er1 >conftest.err
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } >/dev/null; then
11001 if test -s conftest.err; then
11002 ac_cpp_err=$ac_c_preproc_warn_flag
11003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11010 if test -z "$ac_cpp_err"; then
11011 ac_header_preproc=yes
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_header_preproc=no
11019 rm -f conftest.err conftest.$ac_ext
11020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11021 echo "${ECHO_T}$ac_header_preproc" >&6; }
11023 # So? What about this header?
11024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11030 ac_header_preproc=yes
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11053 eval "$as_ac_Header=\$ac_header_preproc"
11055 ac_res=`eval echo '${'$as_ac_Header'}'`
11056 { echo "$as_me:$LINENO: result: $ac_res" >&5
11057 echo "${ECHO_T}$ac_res" >&6; }
11060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11061 cat >>confdefs.h <<_ACEOF
11062 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11070 for ac_func in alarm
11072 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 cat >conftest.$ac_ext <<_ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11086 #define $ac_func innocuous_$ac_func
11088 /* System header to define __stub macros and hopefully few prototypes,
11089 which can conflict with char $ac_func (); below.
11090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11091 <limits.h> exists even on freestanding compilers. */
11094 # include <limits.h>
11096 # include <assert.h>
11101 /* Override any GCC internal prototype to avoid an error.
11102 Use char because int might match the return type of a GCC
11103 builtin and then its argument prototype would still apply. */
11108 /* The GNU C library defines this for functions which it implements
11109 to always fail with ENOSYS. Some functions are actually named
11110 something starting with __ and the normal name is an alias. */
11111 #if defined __stub_$ac_func || defined __stub___$ac_func
11118 return $ac_func ();
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (ac_try="$ac_link"
11125 case "(($ac_try" in
11126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11127 *) ac_try_echo
=$ac_try;;
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_link") 2>conftest.er1
11132 grep -v '^ *+' conftest.er1
>conftest.err
11134 cat conftest.err
>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11138 { (case "(($ac_try" in
11139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_try") 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; } &&
11147 { ac_try='test -s conftest$ac_exeext'
11148 { (case "(($ac_try" in
11149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11150 *) ac_try_echo
=$ac_try;;
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_try") 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 eval "$as_ac_var=yes"
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.
$ac_ext >&5
11162 eval "$as_ac_var=no"
11165 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11166 conftest
$ac_exeext conftest.
$ac_ext
11168 ac_res
=`eval echo '${'$as_ac_var'}'`
11169 { echo "$as_me:$LINENO: result: $ac_res" >&5
11170 echo "${ECHO_T}$ac_res" >&6; }
11171 if test `eval echo '${'$as_ac_var'}'` = yes; then
11172 cat >>confdefs.h
<<_ACEOF
11173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11179 { echo "$as_me:$LINENO: checking for working mktime" >&5
11180 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
11181 if test "${ac_cv_func_working_mktime+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 if test "$cross_compiling" = yes; then
11185 ac_cv_func_working_mktime
=no
11187 cat >conftest.
$ac_ext <<_ACEOF
11190 cat confdefs.h
>>conftest.
$ac_ext
11191 cat >>conftest.
$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 /* Test program from Paul Eggert and Tony Leneis. */
11194 #ifdef TIME_WITH_SYS_TIME
11195 # include <sys/time.h>
11198 # ifdef HAVE_SYS_TIME_H
11199 # include <sys/time.h>
11205 #ifdef HAVE_STDLIB_H
11206 # include <stdlib.h>
11209 #ifdef HAVE_UNISTD_H
11210 # include <unistd.h>
11214 # define alarm(X) /* empty */
11217 /* Work around redefinition to rpl_putenv by other config tests. */
11220 static time_t time_t_max;
11221 static time_t time_t_min;
11223 /* Values we'll use to set the TZ environment variable. */
11224 static char *tz_strings[] = {
11225 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11226 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11228 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11230 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11231 Based on a problem report from Andreas Jaeger. */
11233 spring_forward_gap ()
11235 /* glibc (up to about 1998-10-07) failed this test. */
11238 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11239 instead of "TZ=America/Vancouver" in order to detect the bug even
11240 on systems that don't support the Olson extension, or don't have the
11241 full zoneinfo tables installed. */
11242 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11251 return mktime (&tm) != (time_t) -1;
11259 return ! (lt = localtime (&now)) || mktime (lt) == now;
11266 return (mktime_test1 (now)
11267 && mktime_test1 ((time_t) (time_t_max - now))
11268 && mktime_test1 ((time_t) (time_t_min + now)));
11274 /* Based on code from Ariel Faigon. */
11284 return tm.tm_mon == 2 && tm.tm_mday == 31;
11293 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11294 now = mktime (&tm);
11295 if (now != (time_t) -1)
11297 struct tm *lt = localtime (&now);
11299 && lt->tm_year == tm.tm_year
11300 && lt->tm_mon == tm.tm_mon
11301 && lt->tm_mday == tm.tm_mday
11302 && lt->tm_hour == tm.tm_hour
11303 && lt->tm_min == tm.tm_min
11304 && lt->tm_sec == tm.tm_sec
11305 && lt->tm_yday == tm.tm_yday
11306 && lt->tm_wday == tm.tm_wday
11307 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11308 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11320 /* This test makes some buggy mktime implementations loop.
11321 Give up after 60 seconds; a mktime slower than that
11322 isn't worth using anyway. */
11325 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11328 if ((time_t) -1 < 0)
11329 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11331 delta = time_t_max / 997; /* a suitable prime number */
11332 for (i = 0; i < N_STRINGS; i++)
11335 putenv (tz_strings[i]);
11337 for (t = 0; t <= time_t_max - delta; t += delta)
11338 if (! mktime_test (t))
11340 if (! (mktime_test ((time_t) 1)
11341 && mktime_test ((time_t) (60 * 60))
11342 && mktime_test ((time_t) (60 * 60 * 24))))
11345 for (j = 1; 0 < j; j *= 2)
11346 if (! bigtime_test (j))
11348 if (! bigtime_test (j - 1))
11351 return ! (irix_6_4_bug () && spring_forward_gap ());
11354 rm -f conftest
$ac_exeext
11355 if { (ac_try
="$ac_link"
11356 case "(($ac_try" in
11357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_link") 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11365 { (case "(($ac_try" in
11366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11367 *) ac_try_echo
=$ac_try;;
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_try") 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; }; then
11374 ac_cv_func_working_mktime
=yes
11376 echo "$as_me: program exited with status $ac_status" >&5
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.
$ac_ext >&5
11380 ( exit $ac_status )
11381 ac_cv_func_working_mktime
=no
11383 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11388 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11389 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
11390 if test $ac_cv_func_working_mktime = no
; then
11391 case " $LIBOBJS " in
11392 *" mktime.$ac_objext "* ) ;;
11393 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11401 for ac_header
in stdlib.h unistd.h
11403 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11404 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11407 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 ac_res
=`eval echo '${'$as_ac_Header'}'`
11411 { echo "$as_me:$LINENO: result: $ac_res" >&5
11412 echo "${ECHO_T}$ac_res" >&6; }
11414 # Is the header compilable?
11415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11417 cat >conftest.
$ac_ext <<_ACEOF
11420 cat confdefs.h
>>conftest.
$ac_ext
11421 cat >>conftest.
$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 $ac_includes_default
11424 #include <$ac_header>
11426 rm -f conftest.
$ac_objext
11427 if { (ac_try
="$ac_compile"
11428 case "(($ac_try" in
11429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_compile") 2>conftest.er1
11435 grep -v '^ *+' conftest.er1 >conftest.err
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
11440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11441 { (case "(($ac_try" in
11442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11443 *) ac_try_echo
=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_try") 2>&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; } &&
11450 { ac_try
='test -s conftest.$ac_objext'
11451 { (case "(($ac_try" in
11452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_try") 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 ac_header_compiler=yes
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11465 ac_header_compiler=no
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11470 echo "${ECHO_T}$ac_header_compiler" >&6; }
11472 # Is the header present?
11473 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11475 cat >conftest.$ac_ext <<_ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11481 #include <$ac_header>
11483 if { (ac_try="$ac_cpp conftest.$ac_ext"
11484 case "(($ac_try" in
11485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11486 *) ac_try_echo
=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11491 grep -v '^ *+' conftest.er1
>conftest.err
11493 cat conftest.err
>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } >/dev
/null
; then
11496 if test -s conftest.err
; then
11497 ac_cpp_err
=$ac_c_preproc_warn_flag
11498 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11505 if test -z "$ac_cpp_err"; then
11506 ac_header_preproc
=yes
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.
$ac_ext >&5
11511 ac_header_preproc
=no
11514 rm -f conftest.err conftest.
$ac_ext
11515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11516 echo "${ECHO_T}$ac_header_preproc" >&6; }
11518 # So? What about this header?
11519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11525 ac_header_preproc
=yes
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 eval "$as_ac_Header=\$ac_header_preproc"
11550 ac_res
=`eval echo '${'$as_ac_Header'}'`
11551 { echo "$as_me:$LINENO: result: $ac_res" >&5
11552 echo "${ECHO_T}$ac_res" >&6; }
11555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11556 cat >>confdefs.h
<<_ACEOF
11557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565 for ac_func
in getpagesize
11567 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11570 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 cat >conftest.
$ac_ext <<_ACEOF
11576 cat confdefs.h
>>conftest.
$ac_ext
11577 cat >>conftest.
$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11581 #define $ac_func innocuous_$ac_func
11583 /* System header to define __stub macros and hopefully few prototypes,
11584 which can conflict with char $ac_func (); below.
11585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11586 <limits.h> exists even on freestanding compilers. */
11589 # include <limits.h>
11591 # include <assert.h>
11596 /* Override any GCC internal prototype to avoid an error.
11597 Use char because int might match the return type of a GCC
11598 builtin and then its argument prototype would still apply. */
11603 /* The GNU C library defines this for functions which it implements
11604 to always fail with ENOSYS. Some functions are actually named
11605 something starting with __ and the normal name is an alias. */
11606 #if defined __stub_$ac_func || defined __stub___$ac_func
11613 return $ac_func ();
11618 rm -f conftest.
$ac_objext conftest
$ac_exeext
11619 if { (ac_try
="$ac_link"
11620 case "(($ac_try" in
11621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_link") 2>conftest.er1
11627 grep -v '^ *+' conftest.er1 >conftest.err
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11633 { (case "(($ac_try" in
11634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11635 *) ac_try_echo
=$ac_try;;
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_try") 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try
='test -s conftest$ac_exeext'
11643 { (case "(($ac_try" in
11644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_try") 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 eval "$as_ac_var=yes"
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11657 eval "$as_ac_var=no"
11660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11661 conftest$ac_exeext conftest.$ac_ext
11663 ac_res=`eval echo '${'$as_ac_var'}'`
11664 { echo "$as_me:$LINENO: result: $ac_res" >&5
11665 echo "${ECHO_T}$ac_res" >&6; }
11666 if test `eval echo '${'$as_ac_var'}'` = yes; then
11667 cat >>confdefs.h <<_ACEOF
11668 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11674 { echo "$as_me:$LINENO: checking for working mmap" >&5
11675 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
11676 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 if test "$cross_compiling" = yes; then
11680 ac_cv_func_mmap_fixed_mapped=no
11682 cat >conftest.$ac_ext <<_ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11688 $ac_includes_default
11689 /* malloc might have been renamed as rpl_malloc. */
11692 /* Thanks to Mike Haertel and Jim Avera for this test.
11693 Here is a matrix of mmap possibilities:
11694 mmap private not fixed
11695 mmap private fixed at somewhere currently unmapped
11696 mmap private fixed at somewhere already mapped
11697 mmap shared not fixed
11698 mmap shared fixed at somewhere currently unmapped
11699 mmap shared fixed at somewhere already mapped
11700 For private mappings, we should verify that changes cannot be read()
11701 back from the file, nor mmap's back from the file at a different
11702 address. (There have been systems where private was not correctly
11703 implemented like the infamous i386 svr4.0, and systems where the
11704 VM page cache was not coherent with the file system buffer cache
11705 like early versions of FreeBSD and possibly contemporary NetBSD.)
11706 For shared mappings, we should conversely verify that changes get
11707 propagated back to all the places they're supposed to be.
11709 Grep wants private fixed already mapped.
11710 The main things grep needs to know about mmap are:
11711 * does it exist and is it safe to write into the mmap'd area
11712 * how to use it (BSD variants) */
11715 #include <sys/mman.h>
11717 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11721 /* This mess was copied from the GNU getpagesize.h. */
11722 #ifndef HAVE_GETPAGESIZE
11723 /* Assume that all systems that can run configure have sys/param.h. */
11724 # ifndef HAVE_SYS_PARAM_H
11725 # define HAVE_SYS_PARAM_H 1
11728 # ifdef _SC_PAGESIZE
11729 # define getpagesize() sysconf(_SC_PAGESIZE)
11730 # else /* no _SC_PAGESIZE */
11731 # ifdef HAVE_SYS_PARAM_H
11732 # include <sys/param.h>
11733 # ifdef EXEC_PAGESIZE
11734 # define getpagesize() EXEC_PAGESIZE
11735 # else /* no EXEC_PAGESIZE */
11737 # define getpagesize() NBPG * CLSIZE
11740 # endif /* no CLSIZE */
11741 # else /* no NBPG */
11743 # define getpagesize() NBPC
11744 # else /* no NBPC */
11746 # define getpagesize() PAGESIZE
11747 # endif /* PAGESIZE */
11748 # endif /* no NBPC */
11749 # endif /* no NBPG */
11750 # endif /* no EXEC_PAGESIZE */
11751 # else /* no HAVE_SYS_PARAM_H */
11752 # define getpagesize() 8192 /* punt totally */
11753 # endif /* no HAVE_SYS_PARAM_H */
11754 # endif /* no _SC_PAGESIZE */
11756 #endif /* no HAVE_GETPAGESIZE */
11761 char *data, *data2, *data3;
11765 pagesize = getpagesize ();
11767 /* First, make a file with some known garbage in it. */
11768 data = (char *) malloc (pagesize);
11771 for (i = 0; i < pagesize; ++i)
11772 *(data + i) = rand ();
11774 fd = creat ("conftest.mmap", 0600);
11777 if (write (fd, data, pagesize) != pagesize)
11781 /* Next, try to mmap the file at a fixed address which already has
11782 something else allocated at it. If we can, also make sure that
11783 we see the same garbage. */
11784 fd = open ("conftest.mmap", O_RDWR);
11787 data2 = (char *) malloc (2 * pagesize);
11790 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11791 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11792 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11794 for (i = 0; i < pagesize; ++i)
11795 if (*(data + i) != *(data2 + i))
11798 /* Finally, make sure that changes to the mapped area do not
11799 percolate back to the file as seen by read(). (This is a bug on
11800 some variants of i386 svr4.0.) */
11801 for (i = 0; i < pagesize; ++i)
11802 *(data2 + i) = *(data2 + i) + 1;
11803 data3 = (char *) malloc (pagesize);
11806 if (read (fd, data3, pagesize) != pagesize)
11808 for (i = 0; i < pagesize; ++i)
11809 if (*(data + i) != *(data3 + i))
11815 rm -f conftest$ac_exeext
11816 if { (ac_try="$ac_link"
11817 case "(($ac_try" in
11818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11819 *) ac_try_echo
=$ac_try;;
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_link") 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11826 { (case "(($ac_try" in
11827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_try") 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_cv_func_mmap_fixed_mapped=yes
11837 echo "$as_me: program exited with status $ac_status" >&5
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ( exit $ac_status )
11842 ac_cv_func_mmap_fixed_mapped=no
11844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11849 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11850 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
11851 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11853 cat >>confdefs.h <<\_ACEOF
11854 #define HAVE_MMAP 1
11858 rm -f conftest.mmap
11862 for ac_header in sys/select.h sys/socket.h
11864 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 ac_res=`eval echo '${'$as_ac_Header'}'`
11872 { echo "$as_me:$LINENO: result: $ac_res" >&5
11873 echo "${ECHO_T}$ac_res" >&6; }
11875 # Is the header compilable?
11876 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11878 cat >conftest.$ac_ext <<_ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11884 $ac_includes_default
11885 #include <$ac_header>
11887 rm -f conftest.$ac_objext
11888 if { (ac_try="$ac_compile"
11889 case "(($ac_try" in
11890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11891 *) ac_try_echo
=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_compile") 2>conftest.er1
11896 grep -v '^ *+' conftest.er1
>conftest.err
11898 cat conftest.err
>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
11901 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11902 { (case "(($ac_try" in
11903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_try") 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; } &&
11911 { ac_try='test -s conftest.$ac_objext'
11912 { (case "(($ac_try" in
11913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11914 *) ac_try_echo
=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_try") 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 ac_header_compiler
=yes
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.
$ac_ext >&5
11926 ac_header_compiler
=no
11929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11931 echo "${ECHO_T}$ac_header_compiler" >&6; }
11933 # Is the header present?
11934 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11936 cat >conftest.
$ac_ext <<_ACEOF
11939 cat confdefs.h
>>conftest.
$ac_ext
11940 cat >>conftest.
$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11942 #include <$ac_header>
11944 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11945 case "(($ac_try" in
11946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11952 grep -v '^ *+' conftest.er1 >conftest.err
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } >/dev/null; then
11957 if test -s conftest.err; then
11958 ac_cpp_err=$ac_c_preproc_warn_flag
11959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11966 if test -z "$ac_cpp_err"; then
11967 ac_header_preproc=yes
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 ac_header_preproc=no
11975 rm -f conftest.err conftest.$ac_ext
11976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11977 echo "${ECHO_T}$ac_header_preproc" >&6; }
11979 # So? What about this header?
11980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11986 ac_header_preproc=yes
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 eval "$as_ac_Header=\$ac_header_preproc"
12011 ac_res=`eval echo '${'$as_ac_Header'}'`
12012 { echo "$as_me:$LINENO: result: $ac_res" >&5
12013 echo "${ECHO_T}$ac_res" >&6; }
12016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12017 cat >>confdefs.h <<_ACEOF
12018 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12025 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12026 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12027 if test "${ac_cv_func_select_args+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12031 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12032 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12033 cat >conftest.$ac_ext <<_ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 $ac_includes_default
12040 #ifdef HAVE_SYS_SELECT_H
12041 # include <sys/select.h>
12043 #ifdef HAVE_SYS_SOCKET_H
12044 # include <sys/socket.h>
12050 extern int select ($ac_arg1,
12051 $ac_arg234, $ac_arg234, $ac_arg234,
12057 rm -f conftest.$ac_objext
12058 if { (ac_try="$ac_compile"
12059 case "(($ac_try" in
12060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12061 *) ac_try_echo
=$ac_try;;
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_compile") 2>conftest.er1
12066 grep -v '^ *+' conftest.er1
>conftest.err
12068 cat conftest.err
>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12072 { (case "(($ac_try" in
12073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_try") 2>&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; } &&
12081 { ac_try='test -s conftest.$ac_objext'
12082 { (case "(($ac_try" in
12083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12084 *) ac_try_echo
=$ac_try;;
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_try") 2>&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; }; then
12091 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12093 echo "$as_me: failed program was:" >&5
12094 sed 's/^/| /' conftest.
$ac_ext >&5
12099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12103 # Provide a safe default value.
12104 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12107 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12108 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12109 ac_save_IFS
=$IFS; IFS
=','
12110 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12114 cat >>confdefs.h
<<_ACEOF
12115 #define SELECT_TYPE_ARG1 $1
12119 cat >>confdefs.h
<<_ACEOF
12120 #define SELECT_TYPE_ARG234 ($2)
12124 cat >>confdefs.h
<<_ACEOF
12125 #define SELECT_TYPE_ARG5 ($3)
12130 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12131 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12132 if test "$ac_cv_prog_cc_c89" != no
; then
12133 { echo "$as_me:$LINENO: result: yes" >&5
12134 echo "${ECHO_T}yes" >&6; }
12136 cat >>confdefs.h
<<\_ACEOF
12137 #define PROTOTYPES 1
12141 cat >>confdefs.h
<<\_ACEOF
12142 #define __PROTOTYPES 1
12146 { echo "$as_me:$LINENO: result: no" >&5
12147 echo "${ECHO_T}no" >&6; }
12150 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12151 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12152 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 ac_cv_func_setvbuf_reversed
=no
12156 cat >conftest.
$ac_ext <<_ACEOF
12159 cat confdefs.h
>>conftest.
$ac_ext
12160 cat >>conftest.
$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12164 int (setvbuf) (FILE *, int, char *, size_t);
12169 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12174 rm -f conftest.
$ac_objext conftest
$ac_exeext
12175 if { (ac_try
="$ac_link"
12176 case "(($ac_try" in
12177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_link") 2>conftest.er1
12183 grep -v '^ *+' conftest.er1 >conftest.err
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12189 { (case "(($ac_try" in
12190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12191 *) ac_try_echo
=$ac_try;;
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_try") 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; } &&
12198 { ac_try
='test -s conftest$ac_exeext'
12199 { (case "(($ac_try" in
12200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_try") 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 cat >conftest.$ac_ext <<_ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12216 int (setvbuf) (FILE *, int, char *, size_t);
12221 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (ac_try="$ac_link"
12228 case "(($ac_try" in
12229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12230 *) ac_try_echo
=$ac_try;;
12232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12233 (eval "$ac_link") 2>conftest.er1
12235 grep -v '^ *+' conftest.er1
>conftest.err
12237 cat conftest.err
>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } &&
12240 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12241 { (case "(($ac_try" in
12242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_try") 2>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; } &&
12250 { ac_try='test -s conftest$ac_exeext'
12251 { (case "(($ac_try" in
12252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12253 *) ac_try_echo
=$ac_try;;
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_try") 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 # It compiles and links either way, so it must not be declared
12261 # with a prototype and most likely this is a K&R C compiler.
12263 if test "$cross_compiling" = yes; then
12264 : # Assume setvbuf is not reversed when cross-compiling.
12266 cat >conftest.
$ac_ext <<_ACEOF
12269 cat confdefs.h
>>conftest.
$ac_ext
12270 cat >>conftest.
$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 $ac_includes_default
12276 /* This call has the arguments reversed.
12277 A reversed system may check and see that the address of buf
12278 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12280 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12283 return 0; /* Non-reversed systems SEGV here. */
12288 rm -f conftest
$ac_exeext
12289 if { (ac_try
="$ac_link"
12290 case "(($ac_try" in
12291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_link") 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12301 *) ac_try_echo
=$ac_try;;
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_cv_func_setvbuf_reversed
=yes
12310 echo "$as_me: program exited with status $ac_status" >&5
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.
$ac_ext >&5
12315 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12319 ac_cv_func_setvbuf_reversed
=yes
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.
$ac_ext >&5
12327 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12328 conftest
$ac_exeext conftest.
$ac_ext
12330 echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.
$ac_ext >&5
12336 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12337 conftest
$ac_exeext conftest.
$ac_ext
12339 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12340 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12341 if test $ac_cv_func_setvbuf_reversed = yes; then
12343 cat >>confdefs.h
<<\_ACEOF
12344 #define SETVBUF_REVERSED 1
12349 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12350 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12351 if test "${ac_cv_type_signal+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 cat >conftest.
$ac_ext <<_ACEOF
12357 cat confdefs.h
>>conftest.
$ac_ext
12358 cat >>conftest.
$ac_ext <<_ACEOF
12359 /* end confdefs.h. */
12360 #include <sys/types.h>
12361 #include <signal.h>
12366 return *(signal (0, 0)) (0) == 1;
12371 rm -f conftest.
$ac_objext
12372 if { (ac_try
="$ac_compile"
12373 case "(($ac_try" in
12374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_compile") 2>conftest.er1
12380 grep -v '^ *+' conftest.er1 >conftest.err
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12386 { (case "(($ac_try" in
12387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12388 *) ac_try_echo
=$ac_try;;
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_try") 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try
='test -s conftest.$ac_objext'
12396 { (case "(($ac_try" in
12397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_try") 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; }; then
12405 ac_cv_type_signal=int
12407 echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12410 ac_cv_type_signal=void
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12415 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12416 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12418 cat >>confdefs.h <<_ACEOF
12419 #define RETSIGTYPE $ac_cv_type_signal
12423 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12424 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12425 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 rm -f conftest.sym conftest.file
12429 echo >conftest.file
12430 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12431 if test "$cross_compiling" = yes; then
12432 ac_cv_func_lstat_dereferences_slashed_symlink=no
12434 cat >conftest.$ac_ext <<_ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 $ac_includes_default
12445 /* Linux will dereference the symlink and fail.
12446 That is better in the sense that it means we will not
12447 have to compile and use the lstat wrapper. */
12448 return lstat ("conftest.sym/", &sbuf) == 0;
12453 rm -f conftest$ac_exeext
12454 if { (ac_try="$ac_link"
12455 case "(($ac_try" in
12456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12457 *) ac_try_echo
=$ac_try;;
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_link") 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12464 { (case "(($ac_try" in
12465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_try") 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12475 echo "$as_me: program exited with status $ac_status" >&5
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 ( exit $ac_status )
12480 ac_cv_func_lstat_dereferences_slashed_symlink=no
12482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12487 # If the `ln -s' command failed, then we probably don't even
12488 # have an lstat function.
12489 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12491 rm -f conftest.sym conftest.
file
12494 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12495 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12497 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12499 cat >>confdefs.h
<<_ACEOF
12500 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12504 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
12505 case " $LIBOBJS " in
12506 *" lstat.$ac_objext "* ) ;;
12507 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
12513 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12514 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
12515 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 if test "$cross_compiling" = yes; then
12519 ac_cv_func_stat_empty_string_bug
=yes
12521 cat >conftest.
$ac_ext <<_ACEOF
12524 cat confdefs.h
>>conftest.
$ac_ext
12525 cat >>conftest.
$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 $ac_includes_default
12532 return stat ("", &sbuf) == 0;
12537 rm -f conftest
$ac_exeext
12538 if { (ac_try
="$ac_link"
12539 case "(($ac_try" in
12540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_link") 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12548 { (case "(($ac_try" in
12549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12550 *) ac_try_echo
=$ac_try;;
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_try") 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_func_stat_empty_string_bug
=no
12559 echo "$as_me: program exited with status $ac_status" >&5
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.
$ac_ext >&5
12563 ( exit $ac_status )
12564 ac_cv_func_stat_empty_string_bug
=yes
12566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12571 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12572 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
12573 if test $ac_cv_func_stat_empty_string_bug = yes; then
12574 case " $LIBOBJS " in
12575 *" stat.$ac_objext "* ) ;;
12576 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
12581 cat >>confdefs.h
<<_ACEOF
12582 #define HAVE_STAT_EMPTY_STRING_BUG 1
12587 { echo "$as_me:$LINENO: checking for working strcoll" >&5
12588 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
12589 if test "${ac_cv_func_strcoll_works+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 if test "$cross_compiling" = yes; then
12593 ac_cv_func_strcoll_works
=no
12595 cat >conftest.
$ac_ext <<_ACEOF
12598 cat confdefs.h
>>conftest.
$ac_ext
12599 cat >>conftest.
$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 $ac_includes_default
12605 return (strcoll ("abc", "def") >= 0 ||
12606 strcoll ("ABC", "DEF") >= 0 ||
12607 strcoll ("123", "456") >= 0)
12612 rm -f conftest
$ac_exeext
12613 if { (ac_try
="$ac_link"
12614 case "(($ac_try" in
12615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_link") 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12623 { (case "(($ac_try" in
12624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12625 *) ac_try_echo
=$ac_try;;
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_try") 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 ac_cv_func_strcoll_works
=yes
12634 echo "$as_me: program exited with status $ac_status" >&5
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.
$ac_ext >&5
12638 ( exit $ac_status )
12639 ac_cv_func_strcoll_works
=no
12641 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12646 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12647 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
12648 if test $ac_cv_func_strcoll_works = yes; then
12650 cat >>confdefs.h
<<\_ACEOF
12651 #define HAVE_STRCOLL 1
12657 for ac_func
in strftime
12659 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12662 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 cat >conftest.
$ac_ext <<_ACEOF
12668 cat confdefs.h
>>conftest.
$ac_ext
12669 cat >>conftest.
$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12673 #define $ac_func innocuous_$ac_func
12675 /* System header to define __stub macros and hopefully few prototypes,
12676 which can conflict with char $ac_func (); below.
12677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12678 <limits.h> exists even on freestanding compilers. */
12681 # include <limits.h>
12683 # include <assert.h>
12688 /* Override any GCC internal prototype to avoid an error.
12689 Use char because int might match the return type of a GCC
12690 builtin and then its argument prototype would still apply. */
12695 /* The GNU C library defines this for functions which it implements
12696 to always fail with ENOSYS. Some functions are actually named
12697 something starting with __ and the normal name is an alias. */
12698 #if defined __stub_$ac_func || defined __stub___$ac_func
12705 return $ac_func ();
12710 rm -f conftest.
$ac_objext conftest
$ac_exeext
12711 if { (ac_try
="$ac_link"
12712 case "(($ac_try" in
12713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_link") 2>conftest.er1
12719 grep -v '^ *+' conftest.er1 >conftest.err
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12725 { (case "(($ac_try" in
12726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12727 *) ac_try_echo
=$ac_try;;
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_try") 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } &&
12734 { ac_try
='test -s conftest$ac_exeext'
12735 { (case "(($ac_try" in
12736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_try") 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 eval "$as_ac_var=yes"
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 eval "$as_ac_var=no"
12752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12753 conftest$ac_exeext conftest.$ac_ext
12755 ac_res=`eval echo '${'$as_ac_var'}'`
12756 { echo "$as_me:$LINENO: result: $ac_res" >&5
12757 echo "${ECHO_T}$ac_res" >&6; }
12758 if test `eval echo '${'$as_ac_var'}'` = yes; then
12759 cat >>confdefs.h <<_ACEOF
12760 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12764 # strftime is in -lintl on SCO UNIX.
12765 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12766 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
12767 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 ac_check_lib_save_LIBS=$LIBS
12771 LIBS="-lintl $LIBS"
12772 cat >conftest.$ac_ext <<_ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12779 /* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12789 return strftime ();
12794 rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (ac_try="$ac_link"
12796 case "(($ac_try" in
12797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12798 *) ac_try_echo
=$ac_try;;
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_link") 2>conftest.er1
12803 grep -v '^ *+' conftest.er1
>conftest.err
12805 cat conftest.err
>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12809 { (case "(($ac_try" in
12810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_try") 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_cv_lib_intl_strftime
=yes
12830 echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.
$ac_ext >&5
12833 ac_cv_lib_intl_strftime
=no
12836 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12837 conftest
$ac_exeext conftest.
$ac_ext
12838 LIBS
=$ac_check_lib_save_LIBS
12840 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12841 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
12842 if test $ac_cv_lib_intl_strftime = yes; then
12843 cat >>confdefs.h
<<\_ACEOF
12844 #define HAVE_STRFTIME 1
12847 LIBS
="-lintl $LIBS"
12853 { echo "$as_me:$LINENO: checking for working strnlen" >&5
12854 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
12855 if test "${ac_cv_func_strnlen_working+set}" = set; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 if test "$cross_compiling" = yes; then
12859 ac_cv_func_strnlen_working
=no
12861 cat >conftest.
$ac_ext <<_ACEOF
12864 cat confdefs.h
>>conftest.
$ac_ext
12865 cat >>conftest.
$ac_ext <<_ACEOF
12866 /* end confdefs.h. */
12867 $ac_includes_default
12873 #define S_LEN (sizeof S - 1)
12875 /* At least one implementation is buggy: that of AIX 4.3 would
12876 give strnlen (S, 1) == 3. */
12879 for (i = 0; i < S_LEN + 1; ++i)
12881 int expected = i <= S_LEN ? i : S_LEN;
12882 if (strnlen (S, i) != expected)
12891 rm -f conftest
$ac_exeext
12892 if { (ac_try
="$ac_link"
12893 case "(($ac_try" in
12894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898 (eval "$ac_link") 2>&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_cv_func_strnlen_working
=yes
12913 echo "$as_me: program exited with status $ac_status" >&5
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.
$ac_ext >&5
12917 ( exit $ac_status )
12918 ac_cv_func_strnlen_working
=no
12920 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12925 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
12926 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
12927 test $ac_cv_func_strnlen_working = no
&& case " $LIBOBJS " in
12928 *" strnlen.$ac_objext "* ) ;;
12929 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
12934 { echo "$as_me:$LINENO: checking for working strtod" >&5
12935 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
12936 if test "${ac_cv_func_strtod+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 if test "$cross_compiling" = yes; then
12940 ac_cv_func_strtod
=no
12942 cat >conftest.
$ac_ext <<_ACEOF
12945 cat confdefs.h
>>conftest.
$ac_ext
12946 cat >>conftest.
$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12949 $ac_includes_default
12957 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12958 char *string = " +69";
12961 value = strtod (string, &term);
12962 if (value != 69 || term != (string + 4))
12967 /* Under Solaris 2.4, strtod returns the wrong value for the
12968 terminating character under some conditions. */
12969 char *string = "NaN";
12971 strtod (string, &term);
12972 if (term != string && *(term - 1) == 0)
12979 rm -f conftest
$ac_exeext
12980 if { (ac_try
="$ac_link"
12981 case "(($ac_try" in
12982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_link") 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12990 { (case "(($ac_try" in
12991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12992 *) ac_try_echo
=$ac_try;;
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_try") 2>&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
12999 ac_cv_func_strtod
=yes
13001 echo "$as_me: program exited with status $ac_status" >&5
13002 echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.
$ac_ext >&5
13005 ( exit $ac_status )
13006 ac_cv_func_strtod
=no
13008 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13013 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13014 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13015 if test $ac_cv_func_strtod = no
; then
13016 case " $LIBOBJS " in
13017 *" strtod.$ac_objext "* ) ;;
13018 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
13022 { echo "$as_me:$LINENO: checking for pow" >&5
13023 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13024 if test "${ac_cv_func_pow+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 cat >conftest.
$ac_ext <<_ACEOF
13030 cat confdefs.h
>>conftest.
$ac_ext
13031 cat >>conftest.
$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13035 #define pow innocuous_pow
13037 /* System header to define __stub macros and hopefully few prototypes,
13038 which can conflict with char pow (); below.
13039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13040 <limits.h> exists even on freestanding compilers. */
13043 # include <limits.h>
13045 # include <assert.h>
13050 /* Override any GCC internal prototype to avoid an error.
13051 Use char because int might match the return type of a GCC
13052 builtin and then its argument prototype would still apply. */
13057 /* The GNU C library defines this for functions which it implements
13058 to always fail with ENOSYS. Some functions are actually named
13059 something starting with __ and the normal name is an alias. */
13060 #if defined __stub_pow || defined __stub___pow
13072 rm -f conftest.
$ac_objext conftest
$ac_exeext
13073 if { (ac_try
="$ac_link"
13074 case "(($ac_try" in
13075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_link") 2>conftest.er1
13081 grep -v '^ *+' conftest.er1 >conftest.err
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13089 *) ac_try_echo
=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try
='test -s conftest$ac_exeext'
13097 { (case "(($ac_try" in
13098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_try") 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13115 conftest$ac_exeext conftest.$ac_ext
13117 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13118 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13120 if test $ac_cv_func_pow = no; then
13121 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13122 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13123 if test "${ac_cv_lib_m_pow+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 ac_check_lib_save_LIBS=$LIBS
13128 cat >conftest.$ac_ext <<_ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13150 rm -f conftest.$ac_objext conftest$ac_exeext
13151 if { (ac_try="$ac_link"
13152 case "(($ac_try" in
13153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13154 *) ac_try_echo
=$ac_try;;
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_link") 2>conftest.er1
13159 grep -v '^ *+' conftest.er1
>conftest.err
13161 cat conftest.err
>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13165 { (case "(($ac_try" in
13166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_try") 2>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; } &&
13174 { ac_try='test -s conftest$ac_exeext'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13177 *) ac_try_echo
=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 ac_cv_lib_m_pow
=yes
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.
$ac_ext >&5
13192 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13193 conftest
$ac_exeext conftest.
$ac_ext
13194 LIBS
=$ac_check_lib_save_LIBS
13196 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13197 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13198 if test $ac_cv_lib_m_pow = yes; then
13201 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13202 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13209 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
13210 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
13211 if test "${ac_cv_func_utime_null+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 rm -f conftest.data
; >conftest.data
13215 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13216 if test "$cross_compiling" = yes; then
13217 ac_cv_func_utime_null
=no
13219 cat >conftest.
$ac_ext <<_ACEOF
13222 cat confdefs.h
>>conftest.
$ac_ext
13223 cat >>conftest.
$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 $ac_includes_default
13230 return ! (stat ("conftest.data", &s) == 0
13231 && utime ("conftest.data", 0) == 0
13232 && stat ("conftest.data", &t) == 0
13233 && t.st_mtime >= s.st_mtime
13234 && t.st_mtime - s.st_mtime < 120);
13239 rm -f conftest
$ac_exeext
13240 if { (ac_try
="$ac_link"
13241 case "(($ac_try" in
13242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_link") 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13252 *) ac_try_echo
=$ac_try;;
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_func_utime_null
=yes
13261 echo "$as_me: program exited with status $ac_status" >&5
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.
$ac_ext >&5
13265 ( exit $ac_status )
13266 ac_cv_func_utime_null
=no
13268 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13273 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
13274 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
13275 if test $ac_cv_func_utime_null = yes; then
13277 cat >>confdefs.h
<<\_ACEOF
13278 #define HAVE_UTIME_NULL 1
13282 rm -f conftest.data
13285 for ac_func
in vprintf
13287 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13290 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 cat >conftest.
$ac_ext <<_ACEOF
13296 cat confdefs.h
>>conftest.
$ac_ext
13297 cat >>conftest.
$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13301 #define $ac_func innocuous_$ac_func
13303 /* System header to define __stub macros and hopefully few prototypes,
13304 which can conflict with char $ac_func (); below.
13305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13306 <limits.h> exists even on freestanding compilers. */
13309 # include <limits.h>
13311 # include <assert.h>
13316 /* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13323 /* The GNU C library defines this for functions which it implements
13324 to always fail with ENOSYS. Some functions are actually named
13325 something starting with __ and the normal name is an alias. */
13326 #if defined __stub_$ac_func || defined __stub___$ac_func
13333 return $ac_func ();
13338 rm -f conftest.
$ac_objext conftest
$ac_exeext
13339 if { (ac_try
="$ac_link"
13340 case "(($ac_try" in
13341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_link") 2>conftest.er1
13347 grep -v '^ *+' conftest.er1 >conftest.err
13349 cat conftest.err >&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); } &&
13352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13353 { (case "(($ac_try" in
13354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13355 *) ac_try_echo
=$ac_try;;
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_try") 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; } &&
13362 { ac_try
='test -s conftest$ac_exeext'
13363 { (case "(($ac_try" in
13364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_try") 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 eval "$as_ac_var=yes"
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13377 eval "$as_ac_var=no"
13380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13381 conftest$ac_exeext conftest.$ac_ext
13383 ac_res=`eval echo '${'$as_ac_var'}'`
13384 { echo "$as_me:$LINENO: result: $ac_res" >&5
13385 echo "${ECHO_T}$ac_res" >&6; }
13386 if test `eval echo '${'$as_ac_var'}'` = yes; then
13387 cat >>confdefs.h <<_ACEOF
13388 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13391 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13392 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13393 if test "${ac_cv_func__doprnt+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13396 cat >conftest.$ac_ext <<_ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13404 #define _doprnt innocuous__doprnt
13406 /* System header to define __stub macros and hopefully few prototypes,
13407 which can conflict with char _doprnt (); below.
13408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13409 <limits.h> exists even on freestanding compilers. */
13412 # include <limits.h>
13414 # include <assert.h>
13419 /* Override any GCC internal prototype to avoid an error.
13420 Use char because int might match the return type of a GCC
13421 builtin and then its argument prototype would still apply. */
13426 /* The GNU C library defines this for functions which it implements
13427 to always fail with ENOSYS. Some functions are actually named
13428 something starting with __ and the normal name is an alias. */
13429 #if defined __stub__doprnt || defined __stub____doprnt
13441 rm -f conftest.$ac_objext conftest$ac_exeext
13442 if { (ac_try="$ac_link"
13443 case "(($ac_try" in
13444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13445 *) ac_try_echo
=$ac_try;;
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_link") 2>conftest.er1
13450 grep -v '^ *+' conftest.er1
>conftest.err
13452 cat conftest.err
>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13456 { (case "(($ac_try" in
13457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_try") 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; } &&
13465 { ac_try='test -s conftest$ac_exeext'
13466 { (case "(($ac_try" in
13467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13468 *) ac_try_echo
=$ac_try;;
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_try") 2>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 ac_cv_func__doprnt
=yes
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.
$ac_ext >&5
13480 ac_cv_func__doprnt
=no
13483 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13484 conftest
$ac_exeext conftest.
$ac_ext
13486 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13487 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13488 if test $ac_cv_func__doprnt = yes; then
13490 cat >>confdefs.h
<<\_ACEOF
13491 #define HAVE_DOPRNT 1
13547 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
13549 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13552 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 cat >conftest.
$ac_ext <<_ACEOF
13558 cat confdefs.h
>>conftest.
$ac_ext
13559 cat >>conftest.
$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13563 #define $ac_func innocuous_$ac_func
13565 /* System header to define __stub macros and hopefully few prototypes,
13566 which can conflict with char $ac_func (); below.
13567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13568 <limits.h> exists even on freestanding compilers. */
13571 # include <limits.h>
13573 # include <assert.h>
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13585 /* The GNU C library defines this for functions which it implements
13586 to always fail with ENOSYS. Some functions are actually named
13587 something starting with __ and the normal name is an alias. */
13588 #if defined __stub_$ac_func || defined __stub___$ac_func
13595 return $ac_func ();
13600 rm -f conftest.
$ac_objext conftest
$ac_exeext
13601 if { (ac_try
="$ac_link"
13602 case "(($ac_try" in
13603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_link") 2>conftest.er1
13609 grep -v '^ *+' conftest.er1 >conftest.err
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
13614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13615 { (case "(($ac_try" in
13616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13617 *) ac_try_echo
=$ac_try;;
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_try") 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try
='test -s conftest$ac_exeext'
13625 { (case "(($ac_try" in
13626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_try") 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
13634 eval "$as_ac_var=yes"
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13639 eval "$as_ac_var=no"
13642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13643 conftest$ac_exeext conftest.$ac_ext
13645 ac_res=`eval echo '${'$as_ac_var'}'`
13646 { echo "$as_me:$LINENO: result: $ac_res" >&5
13647 echo "${ECHO_T}$ac_res" >&6; }
13648 if test `eval echo '${'$as_ac_var'}'` = yes; then
13649 cat >>confdefs.h <<_ACEOF
13650 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13657 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
13658 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13669 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
13674 rm -f conftest.$ac_objext conftest$ac_exeext
13675 if { (ac_try="$ac_link"
13676 case "(($ac_try" in
13677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13678 *) ac_try_echo
=$ac_try;;
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_link") 2>conftest.er1
13683 grep -v '^ *+' conftest.er1
>conftest.err
13685 cat conftest.err
>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
13688 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13689 { (case "(($ac_try" in
13690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_try") 2>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; } &&
13698 { ac_try='test -s conftest$ac_exeext'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13701 *) ac_try_echo
=$ac_try;;
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_try") 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }; then
13708 { echo "$as_me:$LINENO: result: yes" >&5
13709 echo "${ECHO_T}yes" >&6; }
13711 cat >>confdefs.h
<<\_ACEOF
13712 #define HAVE_GCC_ATOMICS 1
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.
$ac_ext >&5
13719 { echo "$as_me:$LINENO: result: no" >&5
13720 echo "${ECHO_T}no" >&6; }
13724 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13725 conftest
$ac_exeext conftest.
$ac_ext
13728 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
13729 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
13730 cat >conftest.
$ac_ext <<_ACEOF
13733 cat confdefs.h
>>conftest.
$ac_ext
13734 cat >>conftest.
$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 static int __attribute__((pure)) test(void) {}
13745 rm -f conftest.
$ac_objext
13746 if { (ac_try
="$ac_compile"
13747 case "(($ac_try" in
13748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_compile") 2>conftest.er1
13754 grep -v '^ *+' conftest.er1 >conftest.err
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } &&
13759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13762 *) ac_try_echo
=$ac_try;;
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; } &&
13769 { ac_try
='test -s conftest.$ac_objext'
13770 { (case "(($ac_try" in
13771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_try") 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 { echo "$as_me:$LINENO: result: yes" >&5
13780 echo "${ECHO_T}yes" >&6; }
13782 cat >>confdefs.h <<_ACEOF
13783 #define HAVE_ATTRIBUTE_pure 1
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 { echo "$as_me:$LINENO: result: no" >&5
13791 echo "${ECHO_T}no" >&6; }
13794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
13798 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
13799 cat >conftest.$ac_ext <<_ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 static int __attribute__((malloc)) test(void) {}
13814 rm -f conftest.$ac_objext
13815 if { (ac_try="$ac_compile"
13816 case "(($ac_try" in
13817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13818 *) ac_try_echo
=$ac_try;;
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_compile") 2>conftest.er1
13823 grep -v '^ *+' conftest.er1
>conftest.err
13825 cat conftest.err
>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
13828 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13829 { (case "(($ac_try" in
13830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_try") 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; } &&
13838 { ac_try='test -s conftest.$ac_objext'
13839 { (case "(($ac_try" in
13840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13841 *) ac_try_echo
=$ac_try;;
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_try") 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 { echo "$as_me:$LINENO: result: yes" >&5
13849 echo "${ECHO_T}yes" >&6; }
13851 cat >>confdefs.h
<<_ACEOF
13852 #define HAVE_ATTRIBUTE_malloc 1
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.
$ac_ext >&5
13859 { echo "$as_me:$LINENO: result: no" >&5
13860 echo "${ECHO_T}no" >&6; }
13863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13866 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
13867 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
13868 cat >conftest.
$ac_ext <<_ACEOF
13871 cat confdefs.h
>>conftest.
$ac_ext
13872 cat >>conftest.
$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 static int __attribute__((const)) test(void) {}
13883 rm -f conftest.
$ac_objext
13884 if { (ac_try
="$ac_compile"
13885 case "(($ac_try" in
13886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890 (eval "$ac_compile") 2>conftest.er1
13892 grep -v '^ *+' conftest.er1 >conftest.err
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } &&
13897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13898 { (case "(($ac_try" in
13899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13900 *) ac_try_echo
=$ac_try;;
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_try") 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; } &&
13907 { ac_try
='test -s conftest.$ac_objext'
13908 { (case "(($ac_try" in
13909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_try") 2>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917 { echo "$as_me:$LINENO: result: yes" >&5
13918 echo "${ECHO_T}yes" >&6; }
13920 cat >>confdefs.h <<_ACEOF
13921 #define HAVE_ATTRIBUTE_const 1
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13928 { echo "$as_me:$LINENO: result: no" >&5
13929 echo "${ECHO_T}no" >&6; }
13932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
13936 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 static int __attribute__((unused)) test(void) {}
13952 rm -f conftest.$ac_objext
13953 if { (ac_try="$ac_compile"
13954 case "(($ac_try" in
13955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13956 *) ac_try_echo
=$ac_try;;
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959 (eval "$ac_compile") 2>conftest.er1
13961 grep -v '^ *+' conftest.er1
>conftest.err
13963 cat conftest.err
>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } &&
13966 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13967 { (case "(($ac_try" in
13968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_try") 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; } &&
13976 { ac_try='test -s conftest.$ac_objext'
13977 { (case "(($ac_try" in
13978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13979 *) ac_try_echo
=$ac_try;;
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_try") 2>&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13986 { echo "$as_me:$LINENO: result: yes" >&5
13987 echo "${ECHO_T}yes" >&6; }
13989 cat >>confdefs.h
<<_ACEOF
13990 #define HAVE_ATTRIBUTE_unused 1
13994 echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.
$ac_ext >&5
13997 { echo "$as_me:$LINENO: result: no" >&5
13998 echo "${ECHO_T}no" >&6; }
14001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14004 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
14005 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
14006 cat >conftest.
$ac_ext <<_ACEOF
14009 cat confdefs.h
>>conftest.
$ac_ext
14010 cat >>conftest.
$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012 static int __attribute__((always_inline)) test(void) {}
14021 rm -f conftest.
$ac_objext
14022 if { (ac_try
="$ac_compile"
14023 case "(($ac_try" in
14024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_compile") 2>conftest.er1
14030 grep -v '^ *+' conftest.er1 >conftest.err
14032 cat conftest.err >&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } &&
14035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14036 { (case "(($ac_try" in
14037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14038 *) ac_try_echo
=$ac_try;;
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_try") 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; } &&
14045 { ac_try
='test -s conftest.$ac_objext'
14046 { (case "(($ac_try" in
14047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14048 *) ac_try_echo=$ac_try;;
14050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14051 (eval "$ac_try") 2>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 { echo "$as_me:$LINENO: result: yes" >&5
14056 echo "${ECHO_T}yes" >&6; }
14058 cat >>confdefs.h <<_ACEOF
14059 #define HAVE_ATTRIBUTE_always_inline 1
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14066 { echo "$as_me:$LINENO: result: no" >&5
14067 echo "${ECHO_T}no" >&6; }
14070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
14074 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
14075 saved_CFLAGS="${CFLAGS}"
14076 CFLAGS="${CFLAGS} -ffunction-sections"
14077 cat >conftest.$ac_ext <<_ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14092 rm -f conftest.$ac_objext
14093 if { (ac_try="$ac_compile"
14094 case "(($ac_try" in
14095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14096 *) ac_try_echo
=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_compile") 2>conftest.er1
14101 grep -v '^ *+' conftest.er1
>conftest.err
14103 cat conftest.err
>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14107 { (case "(($ac_try" in
14108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest.$ac_objext'
14117 { (case "(($ac_try" in
14118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14119 *) ac_try_echo
=$ac_try;;
14121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_try") 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 { echo "$as_me:$LINENO: result: yes" >&5
14127 echo "${ECHO_T}yes" >&6; }
14128 saved_LDFLAGS
="${LDFLAGS}"
14129 LDFLAGS
="${LDFLAGS} -Wl,--gc-sections"
14130 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
14131 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
14132 cat >conftest.
$ac_ext <<_ACEOF
14135 cat confdefs.h
>>conftest.
$ac_ext
14136 cat >>conftest.
$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14147 rm -f conftest.
$ac_objext conftest
$ac_exeext
14148 if { (ac_try
="$ac_link"
14149 case "(($ac_try" in
14150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_link") 2>conftest.er1
14156 grep -v '^ *+' conftest.er1 >conftest.err
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14162 { (case "(($ac_try" in
14163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14164 *) ac_try_echo
=$ac_try;;
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_try") 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try
='test -s conftest$ac_exeext'
14172 { (case "(($ac_try" in
14173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14177 (eval "$ac_try") 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 { echo "$as_me:$LINENO: result: yes" >&5
14182 echo "${ECHO_T}yes" >&6; }
14183 GC_CFLAGS="-ffunction-sections"
14184 GC_LDFLAGS="-Wl,--gc-sections"
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 { echo "$as_me:$LINENO: result: no" >&5
14190 echo "${ECHO_T}no" >&6; }
14194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14195 conftest$ac_exeext conftest.$ac_ext
14196 LDFLAGS="${saved_LDFLAGS}"
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 { echo "$as_me:$LINENO: result: no" >&5
14202 echo "${ECHO_T}no" >&6; }
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207 CFLAGS="${saved_CFLAGS}"
14211 { echo "$as_me:$LINENO: checking for res_ninit" >&5
14212 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
14213 cat >conftest.$ac_ext <<_ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 #include <resolv.h>
14223 int foo = res_ninit(NULL);
14228 rm -f conftest.$ac_objext conftest$ac_exeext
14229 if { (ac_try="$ac_link"
14230 case "(($ac_try" in
14231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14232 *) ac_try_echo
=$ac_try;;
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_link") 2>conftest.er1
14237 grep -v '^ *+' conftest.er1
>conftest.err
14239 cat conftest.err
>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14243 { (case "(($ac_try" in
14244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14245 *) ac_try_echo=$ac_try;;
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248 (eval "$ac_try") 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } &&
14252 { ac_try='test -s conftest$ac_exeext'
14253 { (case "(($ac_try" in
14254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14255 *) ac_try_echo
=$ac_try;;
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_try") 2>&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14262 { echo "$as_me:$LINENO: result: yes" >&5
14263 echo "${ECHO_T}yes" >&6; }
14265 cat >>confdefs.h
<<\_ACEOF
14266 #define HAVE_RES_NINIT 1
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.
$ac_ext >&5
14273 { echo "$as_me:$LINENO: result: no" >&5
14274 echo "${ECHO_T}no" >&6; }
14278 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14279 conftest
$ac_exeext conftest.
$ac_ext
14281 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
14282 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
14283 cat >conftest.
$ac_ext <<_ACEOF
14286 cat confdefs.h
>>conftest.
$ac_ext
14287 cat >>conftest.
$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14293 int foo = RTLD_NOLOAD;
14298 rm -f conftest.
$ac_objext conftest
$ac_exeext
14299 if { (ac_try
="$ac_link"
14300 case "(($ac_try" in
14301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_link") 2>conftest.er1
14307 grep -v '^ *+' conftest.er1 >conftest.err
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14313 { (case "(($ac_try" in
14314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14315 *) ac_try_echo
=$ac_try;;
14317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_try") 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try
='test -s conftest$ac_exeext'
14323 { (case "(($ac_try" in
14324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_try") 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 { echo "$as_me:$LINENO: result: yes" >&5
14333 echo "${ECHO_T}yes" >&6; }
14335 cat >>confdefs.h <<\_ACEOF
14336 #define HAVE_RTLD_NOLOAD 1
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 { echo "$as_me:$LINENO: result: no" >&5
14344 echo "${ECHO_T}no" >&6; }
14348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14349 conftest$ac_exeext conftest.$ac_ext
14351 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
14352 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
14353 cat >conftest.$ac_ext <<_ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14359 #include <netinet/in.h>
14363 int foo = IP_MTU_DISCOVER;
14368 rm -f conftest.$ac_objext conftest$ac_exeext
14369 if { (ac_try="$ac_link"
14370 case "(($ac_try" in
14371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14372 *) ac_try_echo
=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_link") 2>conftest.er1
14377 grep -v '^ *+' conftest.er1
>conftest.err
14379 cat conftest.err
>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383 { (case "(($ac_try" in
14384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (case "(($ac_try" in
14394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14395 *) ac_try_echo
=$ac_try;;
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_try") 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 { echo "$as_me:$LINENO: result: yes" >&5
14403 echo "${ECHO_T}yes" >&6; }
14405 cat >>confdefs.h
<<\_ACEOF
14406 #define HAVE_IP_MTU_DISCOVER 1
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.
$ac_ext >&5
14413 { echo "$as_me:$LINENO: result: no" >&5
14414 echo "${ECHO_T}no" >&6; }
14418 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14419 conftest
$ac_exeext conftest.
$ac_ext
14421 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14422 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14423 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14424 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14428 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14430 # Is the header compilable?
14431 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
14432 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
14433 cat >conftest.
$ac_ext <<_ACEOF
14436 cat confdefs.h
>>conftest.
$ac_ext
14437 cat >>conftest.
$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 $ac_includes_default
14440 #include <libkern/OSAtomic.h>
14442 rm -f conftest.
$ac_objext
14443 if { (ac_try
="$ac_compile"
14444 case "(($ac_try" in
14445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_compile") 2>conftest.er1
14451 grep -v '^ *+' conftest.er1 >conftest.err
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } &&
14456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14457 { (case "(($ac_try" in
14458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14459 *) ac_try_echo
=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_try") 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try
='test -s conftest.$ac_objext'
14467 { (case "(($ac_try" in
14468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_try") 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_header_compiler=yes
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ac_header_compiler=no
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14486 echo "${ECHO_T}$ac_header_compiler" >&6; }
14488 # Is the header present?
14489 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
14490 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
14491 cat >conftest.$ac_ext <<_ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 #include <libkern/OSAtomic.h>
14499 if { (ac_try="$ac_cpp conftest.$ac_ext"
14500 case "(($ac_try" in
14501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14502 *) ac_try_echo
=$ac_try;;
14504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14507 grep -v '^ *+' conftest.er1
>conftest.err
14509 cat conftest.err
>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } >/dev
/null
; then
14512 if test -s conftest.err
; then
14513 ac_cpp_err
=$ac_c_preproc_warn_flag
14514 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14521 if test -z "$ac_cpp_err"; then
14522 ac_header_preproc
=yes
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.
$ac_ext >&5
14527 ac_header_preproc
=no
14530 rm -f conftest.err conftest.
$ac_ext
14531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14532 echo "${ECHO_T}$ac_header_preproc" >&6; }
14534 # So? What about this header?
14535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14537 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
14538 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14539 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
14540 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
14541 ac_header_preproc
=yes
14544 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
14545 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
14546 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
14547 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
14549 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
14551 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
14553 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
14555 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
14559 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14560 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14561 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 ac_cv_header_libkern_OSAtomic_h
=$ac_header_preproc
14566 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14567 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14570 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
14572 cat >>confdefs.h
<<_ACEOF
14573 #define HAVE_OSX_ATOMICS 1
14580 { echo "$as_me:$LINENO: checking for int" >&5
14581 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14582 if test "${ac_cv_type_int+set}" = set; then
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 cat >conftest.
$ac_ext <<_ACEOF
14588 cat confdefs.h
>>conftest.
$ac_ext
14589 cat >>conftest.
$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591 $ac_includes_default
14592 typedef int ac__type_new_;
14596 if ((ac__type_new_ *) 0)
14598 if (sizeof (ac__type_new_))
14604 rm -f conftest.
$ac_objext
14605 if { (ac_try
="$ac_compile"
14606 case "(($ac_try" in
14607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_compile") 2>conftest.er1
14613 grep -v '^ *+' conftest.er1 >conftest.err
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14621 *) ac_try_echo
=$ac_try;;
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try
='test -s conftest.$ac_objext'
14629 { (case "(($ac_try" in
14630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_try") 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14649 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14651 # The cast to long int works around a bug in the HP C Compiler
14652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14653 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
14654 # This bug is HP SR number 8606223364.
14655 { echo "$as_me:$LINENO: checking size of int" >&5
14656 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14657 if test "${ac_cv_sizeof_int+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 if test "$cross_compiling" = yes; then
14661 # Depending upon the size, compute the lo and hi bounds.
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 typedef int ac__type_sizeof_;
14674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14681 rm -f conftest.$ac_objext
14682 if { (ac_try="$ac_compile"
14683 case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_compile") 2>conftest.er1
14690 grep -v '^
*+' conftest.er1 >conftest.err
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14696 { (case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_try") 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest.
$ac_objext'
14706 { (case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_try") 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14717 cat >conftest.$ac_ext <<_ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 $ac_includes_default
14724 typedef int ac__type_sizeof_;
14729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14736 rm -f conftest.$ac_objext
14737 if { (ac_try="$ac_compile"
14738 case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_compile") 2>conftest.er1
14745 grep -v '^
*+' conftest.er1 >conftest.err
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14751 { (case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_try") 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } &&
14760 { ac_try='test -s conftest.
$ac_objext'
14761 { (case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_try") 2>&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14770 ac_hi=$ac_mid; break
14772 echo "$as_me: failed program was:" >&5
14773 sed 's
/^
/|
/' conftest.$ac_ext >&5
14775 ac_lo=`expr $ac_mid + 1`
14776 if test $ac_lo -le $ac_mid; then
14780 ac_mid=`expr 2 '*' $ac_mid + 1`
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14786 echo "$as_me: failed program was:" >&5
14787 sed 's
/^
/|
/' conftest.$ac_ext >&5
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 $ac_includes_default
14796 typedef int ac__type_sizeof_;
14801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14808 rm -f conftest.$ac_objext
14809 if { (ac_try="$ac_compile"
14810 case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_compile") 2>conftest.er1
14817 grep -v '^
*+' conftest.er1 >conftest.err
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_try") 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; } &&
14832 { ac_try='test -s conftest.
$ac_objext'
14833 { (case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_try") 2>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14844 cat >conftest.$ac_ext <<_ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14850 $ac_includes_default
14851 typedef int ac__type_sizeof_;
14856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14863 rm -f conftest.$ac_objext
14864 if { (ac_try="$ac_compile"
14865 case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_compile") 2>conftest.er1
14872 grep -v '^
*+' conftest.er1 >conftest.err
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14878 { (case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_try") 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest.
$ac_objext'
14888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_lo=$ac_mid; break
14899 echo "$as_me: failed program was:" >&5
14900 sed 's
/^
/|
/' conftest.$ac_ext >&5
14902 ac_hi=`expr '(' $ac_mid ')' - 1`
14903 if test $ac_mid -le $ac_hi; then
14907 ac_mid=`expr 2 '*' $ac_mid`
14910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913 echo "$as_me: failed program was:" >&5
14914 sed 's
/^
/|
/' conftest.$ac_ext >&5
14919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 # Binary search between lo and hi bounds.
14924 while test "x$ac_lo" != "x$ac_hi"; do
14925 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14926 cat >conftest.$ac_ext <<_ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 $ac_includes_default
14933 typedef int ac__type_sizeof_;
14938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14945 rm -f conftest.$ac_objext
14946 if { (ac_try="$ac_compile"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_compile") 2>conftest.er1
14954 grep -v '^
*+' conftest.er1 >conftest.err
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14960 { (case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_try") 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; } &&
14969 { ac_try='test -s conftest.
$ac_objext'
14970 { (case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_try") 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; }; then
14981 echo "$as_me: failed program was:" >&5
14982 sed 's
/^
/|
/' conftest.$ac_ext >&5
14984 ac_lo=`expr '(' $ac_mid ')' + 1`
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14990 ?*) ac_cv_sizeof_int=$ac_lo;;
14991 '') if test "$ac_cv_type_int" = yes; then
14992 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14993 See \`config.log' for more details.
" >&5
14994 echo "$as_me: error
: cannot compute sizeof
(int
)
14995 See \
`config.log' for more details." >&2;}
14996 { (exit 77); exit 77; }; }
15002 cat >conftest.$ac_ext <<_ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 $ac_includes_default
15009 typedef int ac__type_sizeof_;
15011 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15012 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15014 #include <stdlib.h>
15019 FILE *f = fopen ("conftest.val", "w");
15022 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15024 long int i = longval ();
15025 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15027 fprintf (f, "%ld\n", i);
15031 unsigned long int i = ulongval ();
15032 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15034 fprintf (f, "%lu\n", i);
15036 return ferror (f) || fclose (f) != 0;
15042 rm -f conftest$ac_exeext
15043 if { (ac_try="$ac_link"
15044 case "(($ac_try" in
15045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15046 *) ac_try_echo
=$ac_try;;
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_link") 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15053 { (case "(($ac_try" in
15054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_try") 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_cv_sizeof_int=`cat conftest.val
`
15064 echo "$as_me: program exited with status $ac_status" >&5
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ( exit $ac_status )
15069 if test "$ac_cv_type_int" = yes; then
15070 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15071 See \`config.log
' for more details." >&5
15072 echo "$as_me: error: cannot compute sizeof (int)
15073 See \`config.log' for more details.
" >&2;}
15074 { (exit 77); exit 77; }; }
15079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15083 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
15084 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15088 cat >>confdefs.h <<_ACEOF
15089 #define SIZEOF_INT $ac_cv_sizeof_int
15094 # do the package library checks now
15097 if test "${USE_ALSA}" != "no
"; then
15099 if test "x
${ALSA_DIR}" != "x
"; then
15100 if test -d ${ALSA_DIR}/lib; then
15101 pbxlibdir="-L${ALSA_DIR}/lib
"
15103 pbxlibdir="-L${ALSA_DIR}"
15106 { echo "$as_me:$LINENO: checking
for snd_spcm_init
in -lasound" >&5
15107 echo $ECHO_N "checking
for snd_spcm_init
in -lasound...
$ECHO_C" >&6; }
15108 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15109 echo $ECHO_N "(cached
) $ECHO_C" >&6
15111 ac_check_lib_save_LIBS=$LIBS
15112 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15113 cat >conftest.$ac_ext <<_ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15120 /* Override any GCC internal prototype to avoid an error.
15121 Use char because int might match the return type of a GCC
15122 builtin and then its argument prototype would still apply. */
15126 char snd_spcm_init ();
15130 return snd_spcm_init ();
15135 rm -f conftest.$ac_objext conftest$ac_exeext
15136 if { (ac_try="$ac_link"
15137 case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_link") 2>conftest.er1
15144 grep -v '^ *+' conftest.er1 >conftest.err
15146 cat conftest.err >&5
15147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15148 (exit $ac_status); } &&
15149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15159 { ac_try='test -s conftest$ac_exeext'
15160 { (case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_try") 2>&5
15167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ac_cv_lib_asound_snd_spcm_init=yes
15171 echo "$as_me: failed program was
:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15174 ac_cv_lib_asound_snd_spcm_init=no
15177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15178 conftest$ac_exeext conftest.$ac_ext
15179 LIBS=$ac_check_lib_save_LIBS
15181 { echo "$as_me:$LINENO: result
: $ac_cv_lib_asound_snd_spcm_init" >&5
15182 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15183 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15190 if test "${AST_ALSA_FOUND}" = "yes"; then
15191 ALSA_LIB="-lasound -lm -ldl"
15192 ALSA_HEADER_FOUND="1"
15193 if test "x
${ALSA_DIR}" != "x
"; then
15194 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15195 ALSA_INCLUDE="-I${ALSA_DIR}/include
"
15196 if test "xalsa
/asoundlib.h
" != "x
" ; then
15197 as_ac_Header=`echo "ac_cv_header_
${ALSA_DIR}/include
/alsa
/asoundlib.h
" | $as_tr_sh`
15198 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15199 { echo "$as_me:$LINENO: checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h
" >&5
15200 echo $ECHO_N "checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h...
$ECHO_C" >&6; }
15201 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15202 echo $ECHO_N "(cached
) $ECHO_C" >&6
15204 ac_res=`eval echo '${'$as_ac_Header'}'`
15205 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15206 echo "${ECHO_T}$ac_res" >&6; }
15208 # Is the header compilable?
15209 { echo "$as_me:$LINENO: checking
${ALSA_DIR}/include
/alsa
/asoundlib.h usability
" >&5
15210 echo $ECHO_N "checking
${ALSA_DIR}/include
/alsa
/asoundlib.h usability...
$ECHO_C" >&6; }
15211 cat >conftest.$ac_ext <<_ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 $ac_includes_default
15218 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15220 rm -f conftest.$ac_objext
15221 if { (ac_try="$ac_compile"
15222 case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_compile") 2>conftest.er1
15229 grep -v '^ *+' conftest.er1 >conftest.err
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15233 (exit $ac_status); } &&
15234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15235 { (case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_try") 2>&5
15242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15243 (exit $ac_status); }; } &&
15244 { ac_try='test -s conftest.$ac_objext'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
15252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15253 (exit $ac_status); }; }; then
15254 ac_header_compiler=yes
15256 echo "$as_me: failed program was
:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15259 ac_header_compiler=no
15262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15264 echo "${ECHO_T}$ac_header_compiler" >&6; }
15266 # Is the header present?
15267 { echo "$as_me:$LINENO: checking
${ALSA_DIR}/include
/alsa
/asoundlib.h presence
" >&5
15268 echo $ECHO_N "checking
${ALSA_DIR}/include
/alsa
/asoundlib.h presence...
$ECHO_C" >&6; }
15269 cat >conftest.$ac_ext <<_ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15275 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15277 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15278 case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15285 grep -v '^ *+' conftest.er1 >conftest.err
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15289 (exit $ac_status); } >/dev/null; then
15290 if test -s conftest.err; then
15291 ac_cpp_err=$ac_c_preproc_warn_flag
15292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15299 if test -z "$ac_cpp_err"; then
15300 ac_header_preproc=yes
15302 echo "$as_me: failed program was
:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 ac_header_preproc=no
15308 rm -f conftest.err conftest.$ac_ext
15309 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15310 echo "${ECHO_T}$ac_header_preproc" >&6; }
15312 # So? What about this header?
15313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15315 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15316 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15317 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: proceeding with the compiler
's result" >&5
15318 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result
" >&2;}
15319 ac_header_preproc=yes
15322 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: present but cannot be compiled
" >&5
15323 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: present but cannot be compiled
" >&2;}
15324 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&5
15325 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&2;}
15326 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: see the Autoconf documentation
" >&5
15327 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: see the Autoconf documentation
" >&2;}
15328 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15329 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15330 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&5
15331 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result
" >&2;}
15332 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&5
15333 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&2;}
15337 { echo "$as_me:$LINENO: checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h
" >&5
15338 echo $ECHO_N "checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h...
$ECHO_C" >&6; }
15339 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15340 echo $ECHO_N "(cached
) $ECHO_C" >&6
15342 eval "$as_ac_Header=\
$ac_header_preproc"
15344 ac_res=`eval echo '${'$as_ac_Header'}'`
15345 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15346 echo "${ECHO_T}$ac_res" >&6; }
15349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15350 ALSA_HEADER_FOUND=1
15352 ALSA_HEADER_FOUND=0
15358 if test "xalsa
/asoundlib.h
" != "x
" ; then
15359 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15360 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
15361 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
15362 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15363 echo $ECHO_N "(cached
) $ECHO_C" >&6
15365 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
15366 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15368 # Is the header compilable?
15369 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h usability
" >&5
15370 echo $ECHO_N "checking alsa
/asoundlib.h usability...
$ECHO_C" >&6; }
15371 cat >conftest.$ac_ext <<_ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 $ac_includes_default
15378 #include <alsa/asoundlib.h>
15380 rm -f conftest.$ac_objext
15381 if { (ac_try="$ac_compile"
15382 case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_compile") 2>conftest.er1
15389 grep -v '^ *+' conftest.er1 >conftest.err
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15395 { (case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_try") 2>&5
15402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest.$ac_objext'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_header_compiler=yes
15416 echo "$as_me: failed program was
:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15419 ac_header_compiler=no
15422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15423 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15424 echo "${ECHO_T}$ac_header_compiler" >&6; }
15426 # Is the header present?
15427 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h presence
" >&5
15428 echo $ECHO_N "checking alsa
/asoundlib.h presence...
$ECHO_C" >&6; }
15429 cat >conftest.$ac_ext <<_ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15435 #include <alsa/asoundlib.h>
15437 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15438 case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15445 grep -v '^ *+' conftest.er1 >conftest.err
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15449 (exit $ac_status); } >/dev/null; then
15450 if test -s conftest.err; then
15451 ac_cpp_err=$ac_c_preproc_warn_flag
15452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15459 if test -z "$ac_cpp_err"; then
15460 ac_header_preproc=yes
15462 echo "$as_me: failed program was
:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 ac_header_preproc=no
15468 rm -f conftest.err conftest.$ac_ext
15469 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15470 echo "${ECHO_T}$ac_header_preproc" >&6; }
15472 # So? What about this header?
15473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15475 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15476 echo "$as_me: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15477 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the compiler
's result" >&5
15478 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result
" >&2;}
15479 ac_header_preproc=yes
15482 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&5
15483 echo "$as_me: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&2;}
15484 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&5
15485 echo "$as_me: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&2;}
15486 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&5
15487 echo "$as_me: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&2;}
15488 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15489 echo "$as_me: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15490 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&5
15491 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result
" >&2;}
15492 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&5
15493 echo "$as_me: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&2;}
15497 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
15498 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
15499 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15500 echo $ECHO_N "(cached
) $ECHO_C" >&6
15502 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
15504 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
15505 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15508 if test $ac_cv_header_alsa_asoundlib_h = yes; then
15509 ALSA_HEADER_FOUND=1
15511 ALSA_HEADER_FOUND=0
15517 if test "x
${ALSA_HEADER_FOUND}" = "x0
" ; then
15518 if test ! -z "${ALSA_MANDATORY}" ;
15520 { echo "$as_me:$LINENO: ***" >&5
15521 echo "$as_me: ***" >&6;}
15522 { echo "$as_me:$LINENO: *** It appears that you
do not have the asound development package installed.
" >&5
15523 echo "$as_me: *** It appears that you
do not have the asound development package installed.
" >&6;}
15524 { echo "$as_me:$LINENO: *** Please
install it to include
${ALSA_DESCRIP} support
" >&5
15525 echo "$as_me: *** Please
install it to include
${ALSA_DESCRIP} support
" >&or re-run configure;}
15526 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ALSA_OPTION}" >&5
15527 echo "$as_me: *** without explicitly specifying
--with-${ALSA_OPTION}" >&6;}
15536 cat >>confdefs.h <<_ACEOF
15537 #define HAVE_ALSA 1
15541 elif test ! -z "${ALSA_MANDATORY}";
15543 { echo "$as_me:$LINENO: ***" >&5
15544 echo "$as_me: ***" >&6;}
15545 { echo "$as_me:$LINENO: *** The
${ALSA_DESCRIP} installation on this system appears to be broken.
" >&5
15546 echo "$as_me: *** The
${ALSA_DESCRIP} installation on this system appears to be broken.
" >&6;}
15547 { echo "$as_me:$LINENO: *** Either correct the installation
" >&5
15548 echo "$as_me: *** Either correct the installation
" >&or run configure;}
15549 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ALSA_OPTION}" >&5
15550 echo "$as_me: *** without explicitly specifying
--with-${ALSA_OPTION}" >&6;}
15557 if test "${USE_CURSES}" != "no
"; then
15559 if test "x
${CURSES_DIR}" != "x
"; then
15560 if test -d ${CURSES_DIR}/lib; then
15561 pbxlibdir="-L${CURSES_DIR}/lib
"
15563 pbxlibdir="-L${CURSES_DIR}"
15566 { echo "$as_me:$LINENO: checking
for initscr
in -lcurses" >&5
15567 echo $ECHO_N "checking
for initscr
in -lcurses...
$ECHO_C" >&6; }
15568 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15569 echo $ECHO_N "(cached
) $ECHO_C" >&6
15571 ac_check_lib_save_LIBS=$LIBS
15572 LIBS="-lcurses ${pbxlibdir} $LIBS"
15573 cat >conftest.$ac_ext <<_ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h. */
15580 /* Override any GCC internal prototype to avoid an error.
15581 Use char because int might match the return type of a GCC
15582 builtin and then its argument prototype would still apply. */
15595 rm -f conftest.$ac_objext conftest$ac_exeext
15596 if { (ac_try="$ac_link"
15597 case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15602 (eval "$ac_link") 2>conftest.er1
15604 grep -v '^ *+' conftest.er1 >conftest.err
15606 cat conftest.err >&5
15607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15610 { (case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_try") 2>&5
15617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15618 (exit $ac_status); }; } &&
15619 { ac_try='test -s conftest$ac_exeext'
15620 { (case "(($ac_try" in
15621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15624 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15625 (eval "$ac_try") 2>&5
15627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_cv_lib_curses_initscr=yes
15631 echo "$as_me: failed program was
:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15634 ac_cv_lib_curses_initscr=no
15637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15638 conftest$ac_exeext conftest.$ac_ext
15639 LIBS=$ac_check_lib_save_LIBS
15641 { echo "$as_me:$LINENO: result
: $ac_cv_lib_curses_initscr" >&5
15642 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
15643 if test $ac_cv_lib_curses_initscr = yes; then
15644 AST_CURSES_FOUND=yes
15646 AST_CURSES_FOUND=no
15650 if test "${AST_CURSES_FOUND}" = "yes"; then
15651 CURSES_LIB="-lcurses "
15652 CURSES_HEADER_FOUND="1"
15653 if test "x
${CURSES_DIR}" != "x
"; then
15654 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
15655 CURSES_INCLUDE="-I${CURSES_DIR}/include
"
15656 if test "xcurses.h
" != "x
" ; then
15657 as_ac_Header=`echo "ac_cv_header_
${CURSES_DIR}/include
/curses.h
" | $as_tr_sh`
15658 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15659 { echo "$as_me:$LINENO: checking
for ${CURSES_DIR}/include
/curses.h
" >&5
15660 echo $ECHO_N "checking
for ${CURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
15661 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15662 echo $ECHO_N "(cached
) $ECHO_C" >&6
15664 ac_res=`eval echo '${'$as_ac_Header'}'`
15665 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15666 echo "${ECHO_T}$ac_res" >&6; }
15668 # Is the header compilable?
15669 { echo "$as_me:$LINENO: checking
${CURSES_DIR}/include
/curses.h usability
" >&5
15670 echo $ECHO_N "checking
${CURSES_DIR}/include
/curses.h usability...
$ECHO_C" >&6; }
15671 cat >conftest.$ac_ext <<_ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 $ac_includes_default
15678 #include <${CURSES_DIR}/include/curses.h>
15680 rm -f conftest.$ac_objext
15681 if { (ac_try="$ac_compile"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_compile") 2>conftest.er1
15689 grep -v '^ *+' conftest.er1 >conftest.err
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15695 { (case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_try") 2>&5
15702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15703 (exit $ac_status); }; } &&
15704 { ac_try='test -s conftest.$ac_objext'
15705 { (case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15709 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_try") 2>&5
15712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15713 (exit $ac_status); }; }; 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; then
15750 if test -s conftest.err; then
15751 ac_cpp_err=$ac_c_preproc_warn_flag
15752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15759 if test -z "$ac_cpp_err"; then
15760 ac_header_preproc=yes
15762 echo "$as_me: failed program was
:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15765 ac_header_preproc=no
15768 rm -f conftest.err conftest.$ac_ext
15769 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15770 echo "${ECHO_T}$ac_header_preproc" >&6; }
15772 # So? What about this header?
15773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15775 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15776 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15777 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: proceeding with the compiler
's result" >&5
15778 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result
" >&2;}
15779 ac_header_preproc=yes
15782 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&5
15783 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&2;}
15784 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&5
15785 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&2;}
15786 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&5
15787 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&2;}
15788 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15789 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15790 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: proceeding with the preprocessor
's result" >&5
15791 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result
" >&2;}
15792 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&5
15793 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&2;}
15797 { echo "$as_me:$LINENO: checking
for ${CURSES_DIR}/include
/curses.h
" >&5
15798 echo $ECHO_N "checking
for ${CURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
15799 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15800 echo $ECHO_N "(cached
) $ECHO_C" >&6
15802 eval "$as_ac_Header=\
$ac_header_preproc"
15804 ac_res=`eval echo '${'$as_ac_Header'}'`
15805 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15806 echo "${ECHO_T}$ac_res" >&6; }
15809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15810 CURSES_HEADER_FOUND=1
15812 CURSES_HEADER_FOUND=0
15818 if test "xcurses.h
" != "x
" ; then
15819 if test "${ac_cv_header_curses_h+set}" = set; then
15820 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
15821 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
15822 if test "${ac_cv_header_curses_h+set}" = set; then
15823 echo $ECHO_N "(cached
) $ECHO_C" >&6
15825 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
15826 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15828 # Is the header compilable?
15829 { echo "$as_me:$LINENO: checking curses.h usability
" >&5
15830 echo $ECHO_N "checking curses.h usability...
$ECHO_C" >&6; }
15831 cat >conftest.$ac_ext <<_ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 $ac_includes_default
15838 #include <curses.h>
15840 rm -f conftest.$ac_objext
15841 if { (ac_try="$ac_compile"
15842 case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_compile") 2>conftest.er1
15849 grep -v '^ *+' conftest.er1 >conftest.err
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15855 { (case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15860 (eval "$ac_try") 2>&5
15862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest.$ac_objext'
15865 { (case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15869 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_try") 2>&5
15872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 ac_header_compiler=yes
15876 echo "$as_me: failed program was
:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 ac_header_compiler=no
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15884 echo "${ECHO_T}$ac_header_compiler" >&6; }
15886 # Is the header present?
15887 { echo "$as_me:$LINENO: checking curses.h presence
" >&5
15888 echo $ECHO_N "checking curses.h presence...
$ECHO_C" >&6; }
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <curses.h>
15897 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15905 grep -v '^ *+' conftest.er1 >conftest.err
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15909 (exit $ac_status); } >/dev/null; then
15910 if test -s conftest.err; then
15911 ac_cpp_err=$ac_c_preproc_warn_flag
15912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15919 if test -z "$ac_cpp_err"; then
15920 ac_header_preproc=yes
15922 echo "$as_me: failed program was
:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_header_preproc=no
15928 rm -f conftest.err conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15930 echo "${ECHO_T}$ac_header_preproc" >&6; }
15932 # So? What about this header?
15933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15935 { echo "$as_me:$LINENO: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15936 echo "$as_me: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15937 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the compiler
's result" >&5
15938 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result
" >&2;}
15939 ac_header_preproc=yes
15942 { echo "$as_me:$LINENO: WARNING
: curses.h
: present but cannot be compiled
" >&5
15943 echo "$as_me: WARNING
: curses.h
: present but cannot be compiled
" >&2;}
15944 { echo "$as_me:$LINENO: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&5
15945 echo "$as_me: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&2;}
15946 { echo "$as_me:$LINENO: WARNING
: curses.h
: see the Autoconf documentation
" >&5
15947 echo "$as_me: WARNING
: curses.h
: see the Autoconf documentation
" >&2;}
15948 { echo "$as_me:$LINENO: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15949 echo "$as_me: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15950 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&5
15951 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result
" >&2;}
15952 { echo "$as_me:$LINENO: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&5
15953 echo "$as_me: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&2;}
15957 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
15958 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
15959 if test "${ac_cv_header_curses_h+set}" = set; then
15960 echo $ECHO_N "(cached
) $ECHO_C" >&6
15962 ac_cv_header_curses_h=$ac_header_preproc
15964 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
15965 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15968 if test $ac_cv_header_curses_h = yes; then
15969 CURSES_HEADER_FOUND=1
15971 CURSES_HEADER_FOUND=0
15977 if test "x
${CURSES_HEADER_FOUND}" = "x0
" ; then
15978 if test ! -z "${CURSES_MANDATORY}" ;
15980 { echo "$as_me:$LINENO: ***" >&5
15981 echo "$as_me: ***" >&6;}
15982 { echo "$as_me:$LINENO: *** It appears that you
do not have the curses development package installed.
" >&5
15983 echo "$as_me: *** It appears that you
do not have the curses development package installed.
" >&6;}
15984 { echo "$as_me:$LINENO: *** Please
install it to include
${CURSES_DESCRIP} support
" >&5
15985 echo "$as_me: *** Please
install it to include
${CURSES_DESCRIP} support
" >&or re-run configure;}
15986 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${CURSES_OPTION}" >&5
15987 echo "$as_me: *** without explicitly specifying
--with-${CURSES_OPTION}" >&6;}
15996 cat >>confdefs.h <<_ACEOF
15997 #define HAVE_CURSES 1
16001 elif test ! -z "${CURSES_MANDATORY}";
16003 { echo "$as_me:$LINENO: ***" >&5
16004 echo "$as_me: ***" >&6;}
16005 { echo "$as_me:$LINENO: *** The
${CURSES_DESCRIP} installation on this system appears to be broken.
" >&5
16006 echo "$as_me: *** The
${CURSES_DESCRIP} installation on this system appears to be broken.
" >&6;}
16007 { echo "$as_me:$LINENO: *** Either correct the installation
" >&5
16008 echo "$as_me: *** Either correct the installation
" >&or run configure;}
16009 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${CURSES_OPTION}" >&5
16010 echo "$as_me: *** without explicitly specifying
--with-${CURSES_OPTION}" >&6;}
16019 if test "${USE_GSM}" != "no
"; then
16020 if test "${GSM_DIR}" = "internal
"; then
16022 elif test "${GSM_DIR}" != ""; then
16025 if test "${GSM_SYSTEM}" = "yes"; then
16027 if test "x
${GSM_DIR}" != "x
"; then
16028 if test -d ${GSM_DIR}/lib; then
16029 gsmlibdir="-L${GSM_DIR}/lib
"
16031 gsmlibdir="-L${GSM_DIR}"
16034 { echo "$as_me:$LINENO: checking
for gsm_create
in -lgsm" >&5
16035 echo $ECHO_N "checking
for gsm_create
in -lgsm...
$ECHO_C" >&6; }
16036 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16037 echo $ECHO_N "(cached
) $ECHO_C" >&6
16039 ac_check_lib_save_LIBS=$LIBS
16040 LIBS="-lgsm ${gsmlibdir} $LIBS"
16041 cat >conftest.$ac_ext <<_ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16048 /* Override any GCC internal prototype to avoid an error.
16049 Use char because int might match the return type of a GCC
16050 builtin and then its argument prototype would still apply. */
16054 char gsm_create ();
16058 return gsm_create ();
16063 rm -f conftest.$ac_objext conftest$ac_exeext
16064 if { (ac_try="$ac_link"
16065 case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_link") 2>conftest.er1
16072 grep -v '^ *+' conftest.er1 >conftest.err
16074 cat conftest.err >&5
16075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16076 (exit $ac_status); } &&
16077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16078 { (case "(($ac_try" in
16079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080 *) ac_try_echo=$ac_try;;
16082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16083 (eval "$ac_try") 2>&5
16085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16086 (exit $ac_status); }; } &&
16087 { ac_try='test -s conftest$ac_exeext'
16088 { (case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_try") 2>&5
16095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 ac_cv_lib_gsm_gsm_create=yes
16099 echo "$as_me: failed program was
:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16102 ac_cv_lib_gsm_gsm_create=no
16105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16106 conftest$ac_exeext conftest.$ac_ext
16107 LIBS=$ac_check_lib_save_LIBS
16109 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gsm_gsm_create" >&5
16110 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16111 if test $ac_cv_lib_gsm_gsm_create = yes; then
16113 cat >>confdefs.h <<_ACEOF
16119 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16121 if test "x
${GSM_DIR}" != "x
"; then
16122 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
16123 GSM_INCLUDE="-I${GSM_DIR}/include
"
16129 if test "${GSM_INTERNAL}" = "yes"; then
16135 if test "${USE_IKSEMEL}" != "no
"; then
16137 if test "x
${IKSEMEL_DIR}" != "x
"; then
16138 if test -d ${IKSEMEL_DIR}/lib; then
16139 pbxlibdir="-L${IKSEMEL_DIR}/lib
"
16141 pbxlibdir="-L${IKSEMEL_DIR}"
16144 { echo "$as_me:$LINENO: checking
for iks_start_sasl
in -liksemel" >&5
16145 echo $ECHO_N "checking
for iks_start_sasl
in -liksemel...
$ECHO_C" >&6; }
16146 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16147 echo $ECHO_N "(cached
) $ECHO_C" >&6
16149 ac_check_lib_save_LIBS=$LIBS
16150 LIBS="-liksemel ${pbxlibdir} $LIBS"
16151 cat >conftest.$ac_ext <<_ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16158 /* Override any GCC internal prototype to avoid an error.
16159 Use char because int might match the return type of a GCC
16160 builtin and then its argument prototype would still apply. */
16164 char iks_start_sasl ();
16168 return iks_start_sasl ();
16173 rm -f conftest.$ac_objext conftest$ac_exeext
16174 if { (ac_try="$ac_link"
16175 case "(($ac_try" in
16176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177 *) ac_try_echo=$ac_try;;
16179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16180 (eval "$ac_link") 2>conftest.er1
16182 grep -v '^ *+' conftest.er1 >conftest.err
16184 cat conftest.err >&5
16185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16188 { (case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16193 (eval "$ac_try") 2>&5
16195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16196 (exit $ac_status); }; } &&
16197 { ac_try='test -s conftest$ac_exeext'
16198 { (case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_try") 2>&5
16205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 ac_cv_lib_iksemel_iks_start_sasl=yes
16209 echo "$as_me: failed program was
:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16212 ac_cv_lib_iksemel_iks_start_sasl=no
16215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16216 conftest$ac_exeext conftest.$ac_ext
16217 LIBS=$ac_check_lib_save_LIBS
16219 { echo "$as_me:$LINENO: result
: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16220 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16221 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16222 AST_IKSEMEL_FOUND=yes
16224 AST_IKSEMEL_FOUND=no
16228 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16229 IKSEMEL_LIB="-liksemel "
16230 IKSEMEL_HEADER_FOUND="1"
16231 if test "x
${IKSEMEL_DIR}" != "x
"; then
16232 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16233 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include
"
16234 if test "xiksemel.h
" != "x
" ; then
16235 as_ac_Header=`echo "ac_cv_header_
${IKSEMEL_DIR}/include
/iksemel.h
" | $as_tr_sh`
16236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16237 { echo "$as_me:$LINENO: checking
for ${IKSEMEL_DIR}/include
/iksemel.h
" >&5
16238 echo $ECHO_N "checking
for ${IKSEMEL_DIR}/include
/iksemel.h...
$ECHO_C" >&6; }
16239 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16240 echo $ECHO_N "(cached
) $ECHO_C" >&6
16242 ac_res=`eval echo '${'$as_ac_Header'}'`
16243 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16244 echo "${ECHO_T}$ac_res" >&6; }
16246 # Is the header compilable?
16247 { echo "$as_me:$LINENO: checking
${IKSEMEL_DIR}/include
/iksemel.h usability
" >&5
16248 echo $ECHO_N "checking
${IKSEMEL_DIR}/include
/iksemel.h usability...
$ECHO_C" >&6; }
16249 cat >conftest.$ac_ext <<_ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 $ac_includes_default
16256 #include <${IKSEMEL_DIR}/include/iksemel.h>
16258 rm -f conftest.$ac_objext
16259 if { (ac_try="$ac_compile"
16260 case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_compile") 2>conftest.er1
16267 grep -v '^ *+' conftest.er1 >conftest.err
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16271 (exit $ac_status); } &&
16272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16273 { (case "(($ac_try" in
16274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275 *) ac_try_echo=$ac_try;;
16277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16278 (eval "$ac_try") 2>&5
16280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (case "(($ac_try" in
16284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16288 (eval "$ac_try") 2>&5
16290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 ac_header_compiler=yes
16294 echo "$as_me: failed program was
:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16297 ac_header_compiler=no
16300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16302 echo "${ECHO_T}$ac_header_compiler" >&6; }
16304 # Is the header present?
16305 { echo "$as_me:$LINENO: checking
${IKSEMEL_DIR}/include
/iksemel.h presence
" >&5
16306 echo $ECHO_N "checking
${IKSEMEL_DIR}/include
/iksemel.h presence...
$ECHO_C" >&6; }
16307 cat >conftest.$ac_ext <<_ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #include <${IKSEMEL_DIR}/include/iksemel.h>
16315 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16316 case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16323 grep -v '^ *+' conftest.er1 >conftest.err
16325 cat conftest.err >&5
16326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16327 (exit $ac_status); } >/dev/null; then
16328 if test -s conftest.err; then
16329 ac_cpp_err=$ac_c_preproc_warn_flag
16330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16337 if test -z "$ac_cpp_err"; then
16338 ac_header_preproc=yes
16340 echo "$as_me: failed program was
:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16343 ac_header_preproc=no
16346 rm -f conftest.err conftest.$ac_ext
16347 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16348 echo "${ECHO_T}$ac_header_preproc" >&6; }
16350 # So? What about this header?
16351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16353 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16354 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16355 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: proceeding with the compiler
's result" >&5
16356 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result
" >&2;}
16357 ac_header_preproc=yes
16360 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: present but cannot be compiled
" >&5
16361 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: present but cannot be compiled
" >&2;}
16362 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: check
for missing prerequisite headers?
" >&5
16363 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: check
for missing prerequisite headers?
" >&2;}
16364 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: see the Autoconf documentation
" >&5
16365 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: see the Autoconf documentation
" >&2;}
16366 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16367 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16368 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: proceeding with the preprocessor
's result" >&5
16369 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result
" >&2;}
16370 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: in the future
, the compiler will take precedence
" >&5
16371 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: in the future
, the compiler will take precedence
" >&2;}
16375 { echo "$as_me:$LINENO: checking
for ${IKSEMEL_DIR}/include
/iksemel.h
" >&5
16376 echo $ECHO_N "checking
for ${IKSEMEL_DIR}/include
/iksemel.h...
$ECHO_C" >&6; }
16377 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16378 echo $ECHO_N "(cached
) $ECHO_C" >&6
16380 eval "$as_ac_Header=\
$ac_header_preproc"
16382 ac_res=`eval echo '${'$as_ac_Header'}'`
16383 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16384 echo "${ECHO_T}$ac_res" >&6; }
16387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16388 IKSEMEL_HEADER_FOUND=1
16390 IKSEMEL_HEADER_FOUND=0
16396 if test "xiksemel.h
" != "x
" ; then
16397 if test "${ac_cv_header_iksemel_h+set}" = set; then
16398 { echo "$as_me:$LINENO: checking
for iksemel.h
" >&5
16399 echo $ECHO_N "checking
for iksemel.h...
$ECHO_C" >&6; }
16400 if test "${ac_cv_header_iksemel_h+set}" = set; then
16401 echo $ECHO_N "(cached
) $ECHO_C" >&6
16403 { echo "$as_me:$LINENO: result
: $ac_cv_header_iksemel_h" >&5
16404 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16406 # Is the header compilable?
16407 { echo "$as_me:$LINENO: checking iksemel.h usability
" >&5
16408 echo $ECHO_N "checking iksemel.h usability...
$ECHO_C" >&6; }
16409 cat >conftest.$ac_ext <<_ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16415 $ac_includes_default
16416 #include <iksemel.h>
16418 rm -f conftest.$ac_objext
16419 if { (ac_try="$ac_compile"
16420 case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_compile") 2>conftest.er1
16427 grep -v '^ *+' conftest.er1 >conftest.err
16429 cat conftest.err >&5
16430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16431 (exit $ac_status); } &&
16432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16433 { (case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_try") 2>&5
16440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16441 (exit $ac_status); }; } &&
16442 { ac_try='test -s conftest.$ac_objext'
16443 { (case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_try") 2>&5
16450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16451 (exit $ac_status); }; }; then
16452 ac_header_compiler=yes
16454 echo "$as_me: failed program was
:" >&5
16455 sed 's/^/| /' conftest.$ac_ext >&5
16457 ac_header_compiler=no
16460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16461 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16462 echo "${ECHO_T}$ac_header_compiler" >&6; }
16464 # Is the header present?
16465 { echo "$as_me:$LINENO: checking iksemel.h presence
" >&5
16466 echo $ECHO_N "checking iksemel.h presence...
$ECHO_C" >&6; }
16467 cat >conftest.$ac_ext <<_ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16473 #include <iksemel.h>
16475 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16476 case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16481 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16483 grep -v '^ *+' conftest.er1 >conftest.err
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16487 (exit $ac_status); } >/dev/null; then
16488 if test -s conftest.err; then
16489 ac_cpp_err=$ac_c_preproc_warn_flag
16490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16497 if test -z "$ac_cpp_err"; then
16498 ac_header_preproc=yes
16500 echo "$as_me: failed program was
:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 ac_header_preproc=no
16506 rm -f conftest.err conftest.$ac_ext
16507 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16508 echo "${ECHO_T}$ac_header_preproc" >&6; }
16510 # So? What about this header?
16511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16513 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16514 echo "$as_me: WARNING
: iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16515 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: proceeding with the compiler
's result" >&5
16516 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result
" >&2;}
16517 ac_header_preproc=yes
16520 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: present but cannot be compiled
" >&5
16521 echo "$as_me: WARNING
: iksemel.h
: present but cannot be compiled
" >&2;}
16522 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: check
for missing prerequisite headers?
" >&5
16523 echo "$as_me: WARNING
: iksemel.h
: check
for missing prerequisite headers?
" >&2;}
16524 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: see the Autoconf documentation
" >&5
16525 echo "$as_me: WARNING
: iksemel.h
: see the Autoconf documentation
" >&2;}
16526 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16527 echo "$as_me: WARNING
: iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16528 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: proceeding with the preprocessor
's result" >&5
16529 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result
" >&2;}
16530 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: in the future
, the compiler will take precedence
" >&5
16531 echo "$as_me: WARNING
: iksemel.h
: in the future
, the compiler will take precedence
" >&2;}
16535 { echo "$as_me:$LINENO: checking
for iksemel.h
" >&5
16536 echo $ECHO_N "checking
for iksemel.h...
$ECHO_C" >&6; }
16537 if test "${ac_cv_header_iksemel_h+set}" = set; then
16538 echo $ECHO_N "(cached
) $ECHO_C" >&6
16540 ac_cv_header_iksemel_h=$ac_header_preproc
16542 { echo "$as_me:$LINENO: result
: $ac_cv_header_iksemel_h" >&5
16543 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16546 if test $ac_cv_header_iksemel_h = yes; then
16547 IKSEMEL_HEADER_FOUND=1
16549 IKSEMEL_HEADER_FOUND=0
16555 if test "x
${IKSEMEL_HEADER_FOUND}" = "x0
" ; then
16556 if test ! -z "${IKSEMEL_MANDATORY}" ;
16558 { echo "$as_me:$LINENO: ***" >&5
16559 echo "$as_me: ***" >&6;}
16560 { echo "$as_me:$LINENO: *** It appears that you
do not have the iksemel development package installed.
" >&5
16561 echo "$as_me: *** It appears that you
do not have the iksemel development package installed.
" >&6;}
16562 { echo "$as_me:$LINENO: *** Please
install it to include
${IKSEMEL_DESCRIP} support
" >&5
16563 echo "$as_me: *** Please
install it to include
${IKSEMEL_DESCRIP} support
" >&or re-run configure;}
16564 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&5
16565 echo "$as_me: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&6;}
16574 cat >>confdefs.h <<_ACEOF
16575 #define HAVE_IKSEMEL 1
16579 elif test ! -z "${IKSEMEL_MANDATORY}";
16581 { echo "$as_me:$LINENO: ***" >&5
16582 echo "$as_me: ***" >&6;}
16583 { echo "$as_me:$LINENO: *** The
${IKSEMEL_DESCRIP} installation on this system appears to be broken.
" >&5
16584 echo "$as_me: *** The
${IKSEMEL_DESCRIP} installation on this system appears to be broken.
" >&6;}
16585 { echo "$as_me:$LINENO: *** Either correct the installation
" >&5
16586 echo "$as_me: *** Either correct the installation
" >&or run configure;}
16587 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&5
16588 echo "$as_me: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&6;}
16594 if test "${PBX_IKSEMEL}" = 1; then
16596 if test "${USE_GNUTLS}" != "no
"; then
16598 if test "x
${GNUTLS_DIR}" != "x
"; then
16599 if test -d ${GNUTLS_DIR}/lib; then
16600 pbxlibdir="-L${GNUTLS_DIR}/lib
"
16602 pbxlibdir="-L${GNUTLS_DIR}"
16605 { echo "$as_me:$LINENO: checking
for gnutls_bye
in -lgnutls" >&5
16606 echo $ECHO_N "checking
for gnutls_bye
in -lgnutls...
$ECHO_C" >&6; }
16607 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
16608 echo $ECHO_N "(cached
) $ECHO_C" >&6
16610 ac_check_lib_save_LIBS=$LIBS
16611 LIBS="-lgnutls ${pbxlibdir} $LIBS"
16612 cat >conftest.$ac_ext <<_ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16619 /* Override any GCC internal prototype to avoid an error.
16620 Use char because int might match the return type of a GCC
16621 builtin and then its argument prototype would still apply. */
16625 char gnutls_bye ();
16629 return gnutls_bye ();
16634 rm -f conftest.$ac_objext conftest$ac_exeext
16635 if { (ac_try="$ac_link"
16636 case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_link") 2>conftest.er1
16643 grep -v '^ *+' conftest.er1 >conftest.err
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16647 (exit $ac_status); } &&
16648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16649 { (case "(($ac_try" in
16650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651 *) ac_try_echo=$ac_try;;
16653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16654 (eval "$ac_try") 2>&5
16656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest$ac_exeext'
16659 { (case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_try") 2>&5
16666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_cv_lib_gnutls_gnutls_bye=yes
16670 echo "$as_me: failed program was
:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16673 ac_cv_lib_gnutls_gnutls_bye=no
16676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16677 conftest$ac_exeext conftest.$ac_ext
16678 LIBS=$ac_check_lib_save_LIBS
16680 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gnutls_gnutls_bye" >&5
16681 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
16682 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
16683 AST_GNUTLS_FOUND=yes
16685 AST_GNUTLS_FOUND=no
16689 if test "${AST_GNUTLS_FOUND}" = "yes"; then
16690 GNUTLS_LIB="-lgnutls "
16691 GNUTLS_HEADER_FOUND="1"
16692 if test "x
${GNUTLS_DIR}" != "x
"; then
16693 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
16694 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include
"
16695 if test "x
" != "x
" ; then
16696 as_ac_Header=`echo "ac_cv_header_
${GNUTLS_DIR}/include
/" | $as_tr_sh`
16697 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16698 { echo "$as_me:$LINENO: checking
for ${GNUTLS_DIR}/include
/" >&5
16699 echo $ECHO_N "checking
for ${GNUTLS_DIR}/include
/...
$ECHO_C" >&6; }
16700 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16701 echo $ECHO_N "(cached
) $ECHO_C" >&6
16703 ac_res=`eval echo '${'$as_ac_Header'}'`
16704 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16705 echo "${ECHO_T}$ac_res" >&6; }
16707 # Is the header compilable?
16708 { echo "$as_me:$LINENO: checking
${GNUTLS_DIR}/include
/ usability
" >&5
16709 echo $ECHO_N "checking
${GNUTLS_DIR}/include
/ usability...
$ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 $ac_includes_default
16717 #include <${GNUTLS_DIR}/include/>
16719 rm -f conftest.$ac_objext
16720 if { (ac_try="$ac_compile"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_compile") 2>conftest.er1
16728 grep -v '^ *+' conftest.er1 >conftest.err
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16734 { (case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_try") 2>&5
16741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16742 (exit $ac_status); }; } &&
16743 { ac_try='test -s conftest.$ac_objext'
16744 { (case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_try") 2>&5
16751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_header_compiler=yes
16755 echo "$as_me: failed program was
:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ac_header_compiler=no
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16763 echo "${ECHO_T}$ac_header_compiler" >&6; }
16765 # Is the header present?
16766 { echo "$as_me:$LINENO: checking
${GNUTLS_DIR}/include
/ presence
" >&5
16767 echo $ECHO_N "checking
${GNUTLS_DIR}/include
/ presence...
$ECHO_C" >&6; }
16768 cat >conftest.$ac_ext <<_ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 #include <${GNUTLS_DIR}/include/>
16776 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16777 case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16784 grep -v '^ *+' conftest.er1 >conftest.err
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16788 (exit $ac_status); } >/dev/null; then
16789 if test -s conftest.err; then
16790 ac_cpp_err=$ac_c_preproc_warn_flag
16791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16798 if test -z "$ac_cpp_err"; then
16799 ac_header_preproc=yes
16801 echo "$as_me: failed program was
:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16804 ac_header_preproc=no
16807 rm -f conftest.err conftest.$ac_ext
16808 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16809 echo "${ECHO_T}$ac_header_preproc" >&6; }
16811 # So? What about this header?
16812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16814 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&5
16815 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16816 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: proceeding with the compiler
's result" >&5
16817 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result
" >&2;}
16818 ac_header_preproc=yes
16821 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: present but cannot be compiled
" >&5
16822 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: present but cannot be compiled
" >&2;}
16823 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: check
for missing prerequisite headers?
" >&5
16824 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: check
for missing prerequisite headers?
" >&2;}
16825 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: see the Autoconf documentation
" >&5
16826 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: see the Autoconf documentation
" >&2;}
16827 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&5
16828 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&2;}
16829 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: proceeding with the preprocessor
's result" >&5
16830 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result
" >&2;}
16831 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: in the future
, the compiler will take precedence
" >&5
16832 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: in the future
, the compiler will take precedence
" >&2;}
16836 { echo "$as_me:$LINENO: checking
for ${GNUTLS_DIR}/include
/" >&5
16837 echo $ECHO_N "checking
for ${GNUTLS_DIR}/include
/...
$ECHO_C" >&6; }
16838 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16839 echo $ECHO_N "(cached
) $ECHO_C" >&6
16841 eval "$as_ac_Header=\
$ac_header_preproc"
16843 ac_res=`eval echo '${'$as_ac_Header'}'`
16844 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16845 echo "${ECHO_T}$ac_res" >&6; }
16848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16849 GNUTLS_HEADER_FOUND=1
16851 GNUTLS_HEADER_FOUND=0
16857 if test "x
" != "x
" ; then
16858 if test "${ac_cv_header_+set}" = set; then
16859 { echo "$as_me:$LINENO: checking
for " >&5
16860 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
16861 if test "${ac_cv_header_+set}" = set; then
16862 echo $ECHO_N "(cached
) $ECHO_C" >&6
16864 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
16865 echo "${ECHO_T}$ac_cv_header_" >&6; }
16867 # Is the header compilable?
16868 { echo "$as_me:$LINENO: checking usability
" >&5
16869 echo $ECHO_N "checking usability...
$ECHO_C" >&6; }
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 $ac_includes_default
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_compile") 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_header_compiler=yes
16915 echo "$as_me: failed program was
:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ac_header_compiler=no
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16923 echo "${ECHO_T}$ac_header_compiler" >&6; }
16925 # Is the header present?
16926 { echo "$as_me:$LINENO: checking presence
" >&5
16927 echo $ECHO_N "checking presence...
$ECHO_C" >&6; }
16928 cat >conftest.$ac_ext <<_ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16936 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16937 case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16944 grep -v '^ *+' conftest.er1 >conftest.err
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16948 (exit $ac_status); } >/dev/null; then
16949 if test -s conftest.err; then
16950 ac_cpp_err=$ac_c_preproc_warn_flag
16951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16958 if test -z "$ac_cpp_err"; then
16959 ac_header_preproc=yes
16961 echo "$as_me: failed program was
:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_header_preproc=no
16967 rm -f conftest.err conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16969 echo "${ECHO_T}$ac_header_preproc" >&6; }
16971 # So? What about this header?
16972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16974 { echo "$as_me:$LINENO: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&5
16975 echo "$as_me: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16976 { echo "$as_me:$LINENO: WARNING
: : proceeding with the compiler
's result" >&5
16977 echo "$as_me: WARNING: : proceeding with the compiler's result
" >&2;}
16978 ac_header_preproc=yes
16981 { echo "$as_me:$LINENO: WARNING
: : present but cannot be compiled
" >&5
16982 echo "$as_me: WARNING
: : present but cannot be compiled
" >&2;}
16983 { echo "$as_me:$LINENO: WARNING
: : check
for missing prerequisite headers?
" >&5
16984 echo "$as_me: WARNING
: : check
for missing prerequisite headers?
" >&2;}
16985 { echo "$as_me:$LINENO: WARNING
: : see the Autoconf documentation
" >&5
16986 echo "$as_me: WARNING
: : see the Autoconf documentation
" >&2;}
16987 { echo "$as_me:$LINENO: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&5
16988 echo "$as_me: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&2;}
16989 { echo "$as_me:$LINENO: WARNING
: : proceeding with the preprocessor
's result" >&5
16990 echo "$as_me: WARNING: : proceeding with the preprocessor's result
" >&2;}
16991 { echo "$as_me:$LINENO: WARNING
: : in the future
, the compiler will take precedence
" >&5
16992 echo "$as_me: WARNING
: : in the future
, the compiler will take precedence
" >&2;}
16996 { echo "$as_me:$LINENO: checking
for " >&5
16997 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
16998 if test "${ac_cv_header_+set}" = set; then
16999 echo $ECHO_N "(cached
) $ECHO_C" >&6
17001 ac_cv_header_=$ac_header_preproc
17003 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
17004 echo "${ECHO_T}$ac_cv_header_" >&6; }
17007 if test $ac_cv_header_ = yes; then
17008 GNUTLS_HEADER_FOUND=1
17010 GNUTLS_HEADER_FOUND=0
17016 if test "x
${GNUTLS_HEADER_FOUND}" = "x0
" ; then
17017 if test ! -z "${GNUTLS_MANDATORY}" ;
17019 { echo "$as_me:$LINENO: ***" >&5
17020 echo "$as_me: ***" >&6;}
17021 { echo "$as_me:$LINENO: *** It appears that you
do not have the gnutls development package installed.
" >&5
17022 echo "$as_me: *** It appears that you
do not have the gnutls development package installed.
" >&6;}
17023 { echo "$as_me:$LINENO: *** Please
install it to include
${GNUTLS_DESCRIP} support
" >&5
17024 echo "$as_me: *** Please
install it to include
${GNUTLS_DESCRIP} support
" >&or re-run configure;}
17025 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&5
17026 echo "$as_me: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&6;}
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_GNUTLS 1
17040 elif test ! -z "${GNUTLS_MANDATORY}";
17042 { echo "$as_me:$LINENO: ***" >&5
17043 echo "$as_me: ***" >&6;}
17044 { echo "$as_me:$LINENO: *** The
${GNUTLS_DESCRIP} installation on this system appears to be broken.
" >&5
17045 echo "$as_me: *** The
${GNUTLS_DESCRIP} installation on this system appears to be broken.
" >&6;}
17046 { echo "$as_me:$LINENO: *** Either correct the installation
" >&5
17047 echo "$as_me: *** Either correct the installation
" >&or run configure;}
17048 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&5
17049 echo "$as_me: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&6;}
17054 if test "${PBX_GNUTLS}" = 1; then
17055 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
17059 if test "${USE_IMAP_TK}" != "no
"; then
17060 if test "${IMAP_TK_DIR}" = ""; then
17061 IMAP_TK_DIR=`pwd`"/..
/imap-2004g
"
17063 { echo "$as_me:$LINENO: checking
for UW IMAP Toolkit c-client library
" >&5
17064 echo $ECHO_N "checking
for UW IMAP Toolkit c-client library...
$ECHO_C" >&6; }
17065 saved_cppflags="${CPPFLAGS}"
17066 saved_libs="${LIBS}"
17067 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
17068 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
17070 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client
"
17071 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17072 cat >conftest.$ac_ext <<_ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 #include "c-client.h"
17079 void mm_searched (MAILSTREAM *stream,unsigned long number)
17082 void mm_exists (MAILSTREAM *stream,unsigned long number)
17085 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17088 void mm_flags (MAILSTREAM *stream,unsigned long number)
17091 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17094 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17097 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17100 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17103 void mm_log (char *string,long errflg)
17106 void mm_dlog (char *string)
17109 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17112 void mm_critical (MAILSTREAM *stream)
17115 void mm_nocritical (MAILSTREAM *stream)
17118 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17121 void mm_fatal (char *string)
17128 MAILSTREAM *foo = mail_open(NULL, "", 0);
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17139 *) ac_try_echo
=$ac_try;;
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_link") 2>conftest.er1
17144 grep -v '^ *+' conftest.er1
>conftest.err
17146 cat conftest.err
>&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150 { (case "(($ac_try" in
17151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_try") 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 ac_cv_imap_tk
="yes"
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.
$ac_ext >&5
17178 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17179 conftest
$ac_exeext conftest.
$ac_ext
17180 if test "${ac_cv_imap_tk}" = "yes"; then
17181 cat >conftest.
$ac_ext <<_ACEOF
17184 cat confdefs.h
>>conftest.
$ac_ext
17185 cat >>conftest.
$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #include "c-client.h"
17188 void mm_searched (MAILSTREAM *stream,unsigned long number)
17191 void mm_exists (MAILSTREAM *stream,unsigned long number)
17194 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17197 void mm_flags (MAILSTREAM *stream,unsigned long number)
17200 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17203 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17206 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17209 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17212 void mm_log (char *string,long errflg)
17215 void mm_dlog (char *string)
17218 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17221 void mm_critical (MAILSTREAM *stream)
17224 void mm_nocritical (MAILSTREAM *stream)
17227 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17230 void mm_fatal (char *string)
17237 long check = mail_expunge_full(NULL, "", 0);
17244 rm -f conftest.
$ac_objext conftest
$ac_exeext
17245 if { (ac_try
="$ac_link"
17246 case "(($ac_try" in
17247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_link") 2>conftest.er1
17253 grep -v '^ *+' conftest.er1 >conftest.err
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17259 { (case "(($ac_try" in
17260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17261 *) ac_try_echo
=$ac_try;;
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_try") 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; } &&
17268 { ac_try
='test -s conftest$ac_exeext'
17269 { (case "(($ac_try" in
17270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_try") 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
17278 ac_cv_imap_tk2006="yes"
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17283 ac_cv_imap_tk2006="no"
17287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17288 conftest$ac_exeext conftest.$ac_ext
17290 CPPFLAGS="${saved_cppflags}"
17291 LIBS="${saved_libs}"
17292 if test "${ac_cv_imap_tk}" = "yes"; then
17293 { echo "$as_me:$LINENO: result: yes" >&5
17294 echo "${ECHO_T}yes" >&6; }
17295 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17296 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
17299 cat >>confdefs.h <<\_ACEOF
17300 #define HAVE_IMAP_TK 1
17303 if test "${ac_cv_imap_tk2006}" = "yes"; then
17305 cat >>confdefs.h <<\_ACEOF
17306 #define HAVE_IMAP_TK2006 1
17310 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17311 { echo "$as_me:$LINENO: result: no" >&5
17312 echo "${ECHO_T}no" >&6; }
17313 { echo "$as_me:$LINENO: ***" >&5
17314 echo "$as_me: ***" >&6;}
17315 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
17316 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
17317 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
17318 echo "$as_me: *** Either correct the installation" >&or run configure;}
17319 { echo "$as_me:$LINENO: *** including --without-imap." >&5
17320 echo "$as_me: *** including --without-imap." >&6;}
17323 { echo "$as_me:$LINENO: result: no" >&5
17324 echo "${ECHO_T}no" >&6; }
17329 ac_cpp='$CXXCPP $CPPFLAGS'
17330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17335 if test "${USE_KDE}" != "no"; then
17336 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
17337 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
17338 saved_libs="${LIBS}"
17339 saved_cppflags="${CPPFLAGS}"
17340 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
17341 if test -d ${KDE_DIR}/lib; then
17342 kdelibdir="${KDE_DIR}/lib"
17344 kdelibdir="${KDE_DIR}"
17346 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17349 cat >conftest.$ac_ext <<_ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 #include "kcrash.h"
17359 KCrash::defaultCrashHandler(1);
17365 rm -f conftest.$ac_objext conftest$ac_exeext
17366 if { (ac_try="$ac_link"
17367 case "(($ac_try" in
17368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17369 *) ac_try_echo
=$ac_try;;
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_link") 2>conftest.er1
17374 grep -v '^ *+' conftest.er1
>conftest.err
17376 cat conftest.err
>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } &&
17379 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17380 { (case "(($ac_try" in
17381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_try") 2>&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest$ac_exeext'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17392 *) ac_try_echo
=$ac_try;;
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_lib_kde_crash
="yes"
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.
$ac_ext >&5
17404 ac_cv_lib_kde_crash
="no"
17407 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17408 conftest
$ac_exeext conftest.
$ac_ext
17410 LIBS
="${saved_libs}"
17411 CPPFLAGS
="${saved_cppflags}"
17413 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17414 { echo "$as_me:$LINENO: result: yes" >&5
17415 echo "${ECHO_T}yes" >&6; }
17416 KDE_LIB
="-lkdecore -lkdeui"
17417 if test "${KDE_DIR}" != ""; then
17418 KDE_LIB
="-L${kdelibdir} ${KDE_LIB}"
17419 KDE_INCLUDE
="-I${KDE_DIR}/include"
17423 cat >>confdefs.h
<<\_ACEOF
17424 #define HAVE_LIBKDE 1
17427 elif test ! -z "${KDE_MANDATORY}"; then
17428 { echo "$as_me:$LINENO: result: no" >&5
17429 echo "${ECHO_T}no" >&6; }
17430 { echo "$as_me:$LINENO: ***" >&5
17431 echo "$as_me: ***" >&6;}
17432 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
17433 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
17434 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
17435 echo "$as_me: *** Either correct the installation" >&or run configure
;}
17436 { echo "$as_me:$LINENO: *** including --without-kde." >&5
17437 echo "$as_me: *** including --without-kde." >&6;}
17440 { echo "$as_me:$LINENO: result: no" >&5
17441 echo "${ECHO_T}no" >&6; }
17444 if test "${PBX_KDE}" = 1; then
17445 if test -n "$ac_tool_prefix"; then
17446 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
17447 set dummy
${ac_tool_prefix}kdeinit
; ac_word
=$2
17448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17450 if test "${ac_cv_path_KDEINIT+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17455 ac_cv_path_KDEINIT
="$KDEINIT" # Let the user override the test with a path.
17458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17459 for as_dir
in $PATH
17462 test -z "$as_dir" && as_dir
=.
17463 for ac_exec_ext
in '' $ac_executable_extensions; do
17464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17465 ac_cv_path_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
17466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17476 KDEINIT
=$ac_cv_path_KDEINIT
17477 if test -n "$KDEINIT"; then
17478 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
17479 echo "${ECHO_T}$KDEINIT" >&6; }
17481 { echo "$as_me:$LINENO: result: no" >&5
17482 echo "${ECHO_T}no" >&6; }
17487 if test -z "$ac_cv_path_KDEINIT"; then
17488 ac_pt_KDEINIT
=$KDEINIT
17489 # Extract the first word of "kdeinit", so it can be a program name with args.
17490 set dummy kdeinit
; ac_word
=$2
17491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17493 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 case $ac_pt_KDEINIT in
17498 ac_cv_path_ac_pt_KDEINIT
="$ac_pt_KDEINIT" # Let the user override the test with a path.
17501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17502 for as_dir
in $PATH
17505 test -z "$as_dir" && as_dir
=.
17506 for ac_exec_ext
in '' $ac_executable_extensions; do
17507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17508 ac_cv_path_ac_pt_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
17509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17519 ac_pt_KDEINIT
=$ac_cv_path_ac_pt_KDEINIT
17520 if test -n "$ac_pt_KDEINIT"; then
17521 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
17522 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17524 { echo "$as_me:$LINENO: result: no" >&5
17525 echo "${ECHO_T}no" >&6; }
17528 if test "x$ac_pt_KDEINIT" = x
; then
17531 case $cross_compiling:$ac_tool_warned in
17533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17534 whose name does not start with the host triplet. If you think this
17535 configuration is useful to you, please write to autoconf@gnu.org." >&5
17536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17537 whose name does not start with the host triplet. If you think this
17538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17539 ac_tool_warned
=yes ;;
17541 KDEINIT
=$ac_pt_KDEINIT
17544 KDEINIT
="$ac_cv_path_KDEINIT"
17547 if test ! x
"${KDEINIT}" = xNo
; then
17548 KDEDIR
=$
(${DIRNAME} ${KDEINIT})
17549 KDEDIR
=$
(${DIRNAME} ${KDEDIR})
17555 ac_cpp
='$CPP $CPPFLAGS'
17556 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17557 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17558 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17562 if test "${USE_MISDN}" != "no"; then
17564 if test "x${MISDN_DIR}" != "x"; then
17565 if test -d ${MISDN_DIR}/lib
; then
17566 pbxlibdir
="-L${MISDN_DIR}/lib"
17568 pbxlibdir
="-L${MISDN_DIR}"
17571 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
17572 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
17573 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17576 ac_check_lib_save_LIBS
=$LIBS
17577 LIBS
="-lmISDN ${pbxlibdir} $LIBS"
17578 cat >conftest.
$ac_ext <<_ACEOF
17581 cat confdefs.h
>>conftest.
$ac_ext
17582 cat >>conftest.
$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17585 /* Override any GCC internal prototype to avoid an error.
17586 Use char because int might match the return type of a GCC
17587 builtin and then its argument prototype would still apply. */
17591 char mISDN_open ();
17595 return mISDN_open ();
17600 rm -f conftest.
$ac_objext conftest
$ac_exeext
17601 if { (ac_try
="$ac_link"
17602 case "(($ac_try" in
17603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_link") 2>conftest.er1
17609 grep -v '^ *+' conftest.er1 >conftest.err
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17615 { (case "(($ac_try" in
17616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17617 *) ac_try_echo
=$ac_try;;
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620 (eval "$ac_try") 2>&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try
='test -s conftest$ac_exeext'
17625 { (case "(($ac_try" in
17626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_cv_lib_mISDN_mISDN_open=yes
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 ac_cv_lib_mISDN_mISDN_open=no
17642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17643 conftest$ac_exeext conftest.$ac_ext
17644 LIBS=$ac_check_lib_save_LIBS
17646 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
17647 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
17648 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
17649 AST_MISDN_FOUND=yes
17655 if test "${AST_MISDN_FOUND}" = "yes"; then
17656 MISDN_LIB="-lmISDN "
17657 MISDN_HEADER_FOUND="1"
17658 if test "x${MISDN_DIR}" != "x"; then
17659 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
17660 MISDN_INCLUDE="-I${MISDN_DIR}/include"
17661 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17662 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" |
$as_tr_sh`
17663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17664 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17665 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 ac_res=`eval echo '${'$as_ac_Header'}'`
17670 { echo "$as_me:$LINENO: result: $ac_res" >&5
17671 echo "${ECHO_T}$ac_res" >&6; }
17673 # Is the header compilable?
17674 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
17675 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17676 cat >conftest.$ac_ext <<_ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 $ac_includes_default
17683 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17685 rm -f conftest.$ac_objext
17686 if { (ac_try="$ac_compile"
17687 case "(($ac_try" in
17688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17689 *) ac_try_echo
=$ac_try;;
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_compile") 2>conftest.er1
17694 grep -v '^ *+' conftest.er1
>conftest.err
17696 cat conftest.err
>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17700 { (case "(($ac_try" in
17701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_try") 2>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest.$ac_objext'
17710 { (case "(($ac_try" in
17711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17712 *) ac_try_echo
=$ac_try;;
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_try") 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 ac_header_compiler
=yes
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.
$ac_ext >&5
17724 ac_header_compiler
=no
17727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17729 echo "${ECHO_T}$ac_header_compiler" >&6; }
17731 # Is the header present?
17732 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
17733 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17734 cat >conftest.
$ac_ext <<_ACEOF
17737 cat confdefs.h
>>conftest.
$ac_ext
17738 cat >>conftest.
$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17742 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17743 case "(($ac_try" in
17744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17750 grep -v '^ *+' conftest.er1 >conftest.err
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } >/dev/null; then
17755 if test -s conftest.err; then
17756 ac_cpp_err=$ac_c_preproc_warn_flag
17757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17764 if test -z "$ac_cpp_err"; then
17765 ac_header_preproc=yes
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17770 ac_header_preproc=no
17773 rm -f conftest.err conftest.$ac_ext
17774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17775 echo "${ECHO_T}$ac_header_preproc" >&6; }
17777 # So? What about this header?
17778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17780 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17781 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17782 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17783 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17784 ac_header_preproc=yes
17787 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17788 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17789 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17790 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17791 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17792 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17793 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17794 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17795 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17796 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17797 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17798 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17802 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17803 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17807 eval "$as_ac_Header=\$ac_header_preproc"
17809 ac_res=`eval echo '${'$as_ac_Header'}'`
17810 { echo "$as_me:$LINENO: result: $ac_res" >&5
17811 echo "${ECHO_T}$ac_res" >&6; }
17814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17815 MISDN_HEADER_FOUND=1
17817 MISDN_HEADER_FOUND=0
17823 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17824 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17825 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17826 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17827 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17831 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17833 # Is the header compilable?
17834 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
17835 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17836 cat >conftest.$ac_ext <<_ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17842 $ac_includes_default
17843 #include <mISDNuser/mISDNlib.h>
17845 rm -f conftest.$ac_objext
17846 if { (ac_try="$ac_compile"
17847 case "(($ac_try" in
17848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17849 *) ac_try_echo
=$ac_try;;
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_compile") 2>conftest.er1
17854 grep -v '^ *+' conftest.er1
>conftest.err
17856 cat conftest.err
>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
17859 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17860 { (case "(($ac_try" in
17861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_try") 2>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest.$ac_objext'
17870 { (case "(($ac_try" in
17871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17872 *) ac_try_echo
=$ac_try;;
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_try") 2>&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; }; then
17879 ac_header_compiler
=yes
17881 echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.
$ac_ext >&5
17884 ac_header_compiler
=no
17887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17889 echo "${ECHO_T}$ac_header_compiler" >&6; }
17891 # Is the header present?
17892 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
17893 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17894 cat >conftest.
$ac_ext <<_ACEOF
17897 cat confdefs.h
>>conftest.
$ac_ext
17898 cat >>conftest.
$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 #include <mISDNuser/mISDNlib.h>
17902 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17903 case "(($ac_try" in
17904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17910 grep -v '^ *+' conftest.er1 >conftest.err
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } >/dev/null; then
17915 if test -s conftest.err; then
17916 ac_cpp_err=$ac_c_preproc_warn_flag
17917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17924 if test -z "$ac_cpp_err"; then
17925 ac_header_preproc=yes
17927 echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17930 ac_header_preproc=no
17933 rm -f conftest.err conftest.$ac_ext
17934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17935 echo "${ECHO_T}$ac_header_preproc" >&6; }
17937 # So? What about this header?
17938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17940 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17941 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17942 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17943 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17944 ac_header_preproc=yes
17947 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17948 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17949 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17950 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17951 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17952 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17953 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17954 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17955 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17956 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17957 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17958 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17962 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17963 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17964 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17967 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
17969 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17970 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17973 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
17974 MISDN_HEADER_FOUND=1
17976 MISDN_HEADER_FOUND=0
17982 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
17983 if test ! -z "${MISDN_MANDATORY}" ;
17985 { echo "$as_me:$LINENO: ***" >&5
17986 echo "$as_me: ***" >&6;}
17987 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
17988 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
17989 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support" >&5
17990 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support" >&or re-run configure;}
17991 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17992 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
18001 cat >>confdefs.h <<_ACEOF
18002 #define HAVE_MISDN 1
18006 elif test ! -z "${MISDN_MANDATORY}";
18008 { echo "$as_me:$LINENO: ***" >&5
18009 echo "$as_me: ***" >&6;}
18010 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
18011 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
18012 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
18013 echo "$as_me: *** Either correct the installation" >&or run configure;}
18014 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
18015 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
18021 if test "${PBX_MISDN}" = 1; then
18023 if test "${USE_ISDNNET}" != "no"; then
18025 if test "x${ISDNNET_DIR}" != "x"; then
18026 if test -d ${ISDNNET_DIR}/lib; then
18027 pbxlibdir="-L${ISDNNET_DIR}/lib"
18029 pbxlibdir="-L${ISDNNET_DIR}"
18032 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
18033 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
18034 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 ac_check_lib_save_LIBS=$LIBS
18038 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
18039 cat >conftest.$ac_ext <<_ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18046 /* Override any GCC internal prototype to avoid an error.
18047 Use char because int might match the return type of a GCC
18048 builtin and then its argument prototype would still apply. */
18052 char init_manager ();
18056 return init_manager ();
18061 rm -f conftest.$ac_objext conftest$ac_exeext
18062 if { (ac_try="$ac_link"
18063 case "(($ac_try" in
18064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18065 *) ac_try_echo
=$ac_try;;
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_link") 2>conftest.er1
18070 grep -v '^ *+' conftest.er1
>conftest.err
18072 cat conftest.err
>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } &&
18075 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18076 { (case "(($ac_try" in
18077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_try") 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; } &&
18085 { ac_try='test -s conftest$ac_exeext'
18086 { (case "(($ac_try" in
18087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18088 *) ac_try_echo
=$ac_try;;
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_try") 2>&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; }; then
18095 ac_cv_lib_isdnnet_init_manager
=yes
18097 echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.
$ac_ext >&5
18100 ac_cv_lib_isdnnet_init_manager
=no
18103 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18104 conftest
$ac_exeext conftest.
$ac_ext
18105 LIBS
=$ac_check_lib_save_LIBS
18107 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
18108 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
18109 if test $ac_cv_lib_isdnnet_init_manager = yes; then
18110 AST_ISDNNET_FOUND
=yes
18112 AST_ISDNNET_FOUND
=no
18116 if test "${AST_ISDNNET_FOUND}" = "yes"; then
18117 ISDNNET_LIB
="-lisdnnet -lmISDN -lpthread"
18118 ISDNNET_HEADER_FOUND
="1"
18119 if test "x${ISDNNET_DIR}" != "x"; then
18120 ISDNNET_LIB
="${pbxlibdir} ${ISDNNET_LIB}"
18121 ISDNNET_INCLUDE
="-I${ISDNNET_DIR}/include"
18122 if test "xmISDNuser/isdn_net.h" != "x" ; then
18123 as_ac_Header
=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
18124 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18125 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18126 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18127 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18130 ac_res
=`eval echo '${'$as_ac_Header'}'`
18131 { echo "$as_me:$LINENO: result: $ac_res" >&5
18132 echo "${ECHO_T}$ac_res" >&6; }
18134 # Is the header compilable?
18135 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
18136 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18137 cat >conftest.
$ac_ext <<_ACEOF
18140 cat confdefs.h
>>conftest.
$ac_ext
18141 cat >>conftest.
$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18143 $ac_includes_default
18144 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18146 rm -f conftest.
$ac_objext
18147 if { (ac_try
="$ac_compile"
18148 case "(($ac_try" in
18149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18150 *) ac_try_echo=$ac_try;;
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153 (eval "$ac_compile") 2>conftest.er1
18155 grep -v '^ *+' conftest.er1 >conftest.err
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18161 { (case "(($ac_try" in
18162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18163 *) ac_try_echo
=$ac_try;;
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_try") 2>&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try
='test -s conftest.$ac_objext'
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_try") 2>&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 ac_header_compiler=yes
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 ac_header_compiler=no
18188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18190 echo "${ECHO_T}$ac_header_compiler" >&6; }
18192 # Is the header present?
18193 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
18194 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18195 cat >conftest.$ac_ext <<_ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18203 if { (ac_try="$ac_cpp conftest.$ac_ext"
18204 case "(($ac_try" in
18205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18206 *) ac_try_echo
=$ac_try;;
18208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18211 grep -v '^ *+' conftest.er1
>conftest.err
18213 cat conftest.err
>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } >/dev
/null
; then
18216 if test -s conftest.err
; then
18217 ac_cpp_err
=$ac_c_preproc_warn_flag
18218 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18225 if test -z "$ac_cpp_err"; then
18226 ac_header_preproc
=yes
18228 echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.
$ac_ext >&5
18231 ac_header_preproc
=no
18234 rm -f conftest.err conftest.
$ac_ext
18235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18236 echo "${ECHO_T}$ac_header_preproc" >&6; }
18238 # So? What about this header?
18239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18241 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18242 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18243 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18244 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18245 ac_header_preproc
=yes
18248 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18249 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18250 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18251 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18252 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18253 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18254 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18255 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18256 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18257 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18258 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18259 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18263 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18264 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18265 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18268 eval "$as_ac_Header=\$ac_header_preproc"
18270 ac_res
=`eval echo '${'$as_ac_Header'}'`
18271 { echo "$as_me:$LINENO: result: $ac_res" >&5
18272 echo "${ECHO_T}$ac_res" >&6; }
18275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18276 ISDNNET_HEADER_FOUND
=1
18278 ISDNNET_HEADER_FOUND
=0
18284 if test "xmISDNuser/isdn_net.h" != "x" ; then
18285 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18286 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18287 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18288 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18292 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18294 # Is the header compilable?
18295 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
18296 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18297 cat >conftest.
$ac_ext <<_ACEOF
18300 cat confdefs.h
>>conftest.
$ac_ext
18301 cat >>conftest.
$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 $ac_includes_default
18304 #include <mISDNuser/isdn_net.h>
18306 rm -f conftest.
$ac_objext
18307 if { (ac_try
="$ac_compile"
18308 case "(($ac_try" in
18309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18310 *) ac_try_echo=$ac_try;;
18312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18313 (eval "$ac_compile") 2>conftest.er1
18315 grep -v '^ *+' conftest.er1 >conftest.err
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
18320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18321 { (case "(($ac_try" in
18322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18323 *) ac_try_echo
=$ac_try;;
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_try") 2>&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; } &&
18330 { ac_try
='test -s conftest.$ac_objext'
18331 { (case "(($ac_try" in
18332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_try") 2>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 ac_header_compiler=yes
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_header_compiler=no
18348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18350 echo "${ECHO_T}$ac_header_compiler" >&6; }
18352 # Is the header present?
18353 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
18354 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18355 cat >conftest.$ac_ext <<_ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h. */
18361 #include <mISDNuser/isdn_net.h>
18363 if { (ac_try="$ac_cpp conftest.$ac_ext"
18364 case "(($ac_try" in
18365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18366 *) ac_try_echo
=$ac_try;;
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18371 grep -v '^ *+' conftest.er1
>conftest.err
18373 cat conftest.err
>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } >/dev
/null
; then
18376 if test -s conftest.err
; then
18377 ac_cpp_err
=$ac_c_preproc_warn_flag
18378 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18385 if test -z "$ac_cpp_err"; then
18386 ac_header_preproc
=yes
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.
$ac_ext >&5
18391 ac_header_preproc
=no
18394 rm -f conftest.err conftest.
$ac_ext
18395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18396 echo "${ECHO_T}$ac_header_preproc" >&6; }
18398 # So? What about this header?
18399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18401 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18402 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18403 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18404 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18405 ac_header_preproc
=yes
18408 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18409 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18410 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18411 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18412 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18413 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18414 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18415 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18416 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18417 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18418 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18419 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18423 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18424 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18425 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18428 ac_cv_header_mISDNuser_isdn_net_h
=$ac_header_preproc
18430 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18431 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18434 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18435 ISDNNET_HEADER_FOUND
=1
18437 ISDNNET_HEADER_FOUND
=0
18443 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
18444 if test ! -z "${ISDNNET_MANDATORY}" ;
18446 { echo "$as_me:$LINENO: ***" >&5
18447 echo "$as_me: ***" >&6;}
18448 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
18449 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
18450 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support" >&5
18451 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support" >&or re-run configure
;}
18452 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18453 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18462 cat >>confdefs.h
<<_ACEOF
18463 #define HAVE_ISDNNET 1
18467 elif test ! -z "${ISDNNET_MANDATORY}";
18469 { echo "$as_me:$LINENO: ***" >&5
18470 echo "$as_me: ***" >&6;}
18471 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
18472 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
18473 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
18474 echo "$as_me: *** Either correct the installation" >&or run configure
;}
18475 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18476 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18482 if test "${USE_SUPPSERV}" != "no"; then
18484 if test "x${SUPPSERV_DIR}" != "x"; then
18485 if test -d ${SUPPSERV_DIR}/lib
; then
18486 pbxlibdir
="-L${SUPPSERV_DIR}/lib"
18488 pbxlibdir
="-L${SUPPSERV_DIR}"
18491 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
18492 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
18493 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 ac_check_lib_save_LIBS
=$LIBS
18497 LIBS
="-lsuppserv ${pbxlibdir} $LIBS"
18498 cat >conftest.
$ac_ext <<_ACEOF
18501 cat confdefs.h
>>conftest.
$ac_ext
18502 cat >>conftest.
$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18505 /* Override any GCC internal prototype to avoid an error.
18506 Use char because int might match the return type of a GCC
18507 builtin and then its argument prototype would still apply. */
18515 return encodeFac ();
18520 rm -f conftest.
$ac_objext conftest
$ac_exeext
18521 if { (ac_try
="$ac_link"
18522 case "(($ac_try" in
18523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_link") 2>conftest.er1
18529 grep -v '^ *+' conftest.er1 >conftest.err
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
18534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18535 { (case "(($ac_try" in
18536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18537 *) ac_try_echo
=$ac_try;;
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_try") 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } &&
18544 { ac_try
='test -s conftest$ac_exeext'
18545 { (case "(($ac_try" in
18546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_try") 2>&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_lib_suppserv_encodeFac=yes
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18559 ac_cv_lib_suppserv_encodeFac=no
18562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18563 conftest$ac_exeext conftest.$ac_ext
18564 LIBS=$ac_check_lib_save_LIBS
18566 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
18567 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18568 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18569 AST_SUPPSERV_FOUND=yes
18571 AST_SUPPSERV_FOUND=no
18575 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18576 SUPPSERV_LIB="-lsuppserv "
18577 SUPPSERV_HEADER_FOUND="1"
18578 if test "x${SUPPSERV_DIR}" != "x"; then
18579 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18580 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
18581 if test "xmISDNuser/suppserv.h" != "x" ; then
18582 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" |
$as_tr_sh`
18583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18584 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18585 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 ac_res=`eval echo '${'$as_ac_Header'}'`
18590 { echo "$as_me:$LINENO: result: $ac_res" >&5
18591 echo "${ECHO_T}$ac_res" >&6; }
18593 # Is the header compilable?
18594 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
18595 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18596 cat >conftest.$ac_ext <<_ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18602 $ac_includes_default
18603 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18605 rm -f conftest.$ac_objext
18606 if { (ac_try="$ac_compile"
18607 case "(($ac_try" in
18608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18609 *) ac_try_echo
=$ac_try;;
18611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_compile") 2>conftest.er1
18614 grep -v '^ *+' conftest.er1
>conftest.err
18616 cat conftest.err
>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } &&
18619 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18620 { (case "(($ac_try" in
18621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_try") 2>&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest.$ac_objext'
18630 { (case "(($ac_try" in
18631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18632 *) ac_try_echo
=$ac_try;;
18634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635 (eval "$ac_try") 2>&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_header_compiler
=yes
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.
$ac_ext >&5
18644 ac_header_compiler
=no
18647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18649 echo "${ECHO_T}$ac_header_compiler" >&6; }
18651 # Is the header present?
18652 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
18653 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18654 cat >conftest.
$ac_ext <<_ACEOF
18657 cat confdefs.h
>>conftest.
$ac_ext
18658 cat >>conftest.
$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18660 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18662 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18663 case "(($ac_try" in
18664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18665 *) ac_try_echo=$ac_try;;
18667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18670 grep -v '^ *+' conftest.er1 >conftest.err
18672 cat conftest.err >&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } >/dev/null; then
18675 if test -s conftest.err; then
18676 ac_cpp_err=$ac_c_preproc_warn_flag
18677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18684 if test -z "$ac_cpp_err"; then
18685 ac_header_preproc=yes
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18690 ac_header_preproc=no
18693 rm -f conftest.err conftest.$ac_ext
18694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18695 echo "${ECHO_T}$ac_header_preproc" >&6; }
18697 # So? What about this header?
18698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18700 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18701 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18702 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18703 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18704 ac_header_preproc=yes
18707 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
18708 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18709 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18710 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18711 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18712 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18713 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18714 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18716 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18717 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18718 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18722 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18723 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 eval "$as_ac_Header=\$ac_header_preproc"
18729 ac_res=`eval echo '${'$as_ac_Header'}'`
18730 { echo "$as_me:$LINENO: result: $ac_res" >&5
18731 echo "${ECHO_T}$ac_res" >&6; }
18734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18735 SUPPSERV_HEADER_FOUND=1
18737 SUPPSERV_HEADER_FOUND=0
18743 if test "xmISDNuser/suppserv.h" != "x" ; then
18744 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18745 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18746 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18747 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18748 echo $ECHO_N "(cached) $ECHO_C" >&6
18750 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18751 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18753 # Is the header compilable?
18754 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
18755 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18756 cat >conftest.$ac_ext <<_ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18762 $ac_includes_default
18763 #include <mISDNuser/suppserv.h>
18765 rm -f conftest.$ac_objext
18766 if { (ac_try="$ac_compile"
18767 case "(($ac_try" in
18768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18769 *) ac_try_echo
=$ac_try;;
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_compile") 2>conftest.er1
18774 grep -v '^ *+' conftest.er1
>conftest.err
18776 cat conftest.err
>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } &&
18779 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18780 { (case "(($ac_try" in
18781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_try") 2>&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; } &&
18789 { ac_try='test -s conftest.$ac_objext'
18790 { (case "(($ac_try" in
18791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18792 *) ac_try_echo
=$ac_try;;
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_try") 2>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18799 ac_header_compiler
=yes
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.
$ac_ext >&5
18804 ac_header_compiler
=no
18807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18809 echo "${ECHO_T}$ac_header_compiler" >&6; }
18811 # Is the header present?
18812 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
18813 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18814 cat >conftest.
$ac_ext <<_ACEOF
18817 cat confdefs.h
>>conftest.
$ac_ext
18818 cat >>conftest.
$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18820 #include <mISDNuser/suppserv.h>
18822 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18823 case "(($ac_try" in
18824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18830 grep -v '^ *+' conftest.er1 >conftest.err
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } >/dev/null; then
18835 if test -s conftest.err; then
18836 ac_cpp_err=$ac_c_preproc_warn_flag
18837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18844 if test -z "$ac_cpp_err"; then
18845 ac_header_preproc=yes
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18850 ac_header_preproc=no
18853 rm -f conftest.err conftest.$ac_ext
18854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18855 echo "${ECHO_T}$ac_header_preproc" >&6; }
18857 # So? What about this header?
18858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18860 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18861 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18862 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18863 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18864 ac_header_preproc=yes
18867 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
18868 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18869 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18870 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18872 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18874 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18875 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18876 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18877 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18878 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18882 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18883 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18884 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
18889 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18890 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18893 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
18894 SUPPSERV_HEADER_FOUND=1
18896 SUPPSERV_HEADER_FOUND=0
18902 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
18903 if test ! -z "${SUPPSERV_MANDATORY}" ;
18905 { echo "$as_me:$LINENO: ***" >&5
18906 echo "$as_me: ***" >&6;}
18907 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
18908 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
18909 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support" >&5
18910 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support" >&or re-run configure;}
18911 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18912 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18916 SUPPSERV_INCLUDE=""
18921 cat >>confdefs.h <<_ACEOF
18922 #define HAVE_SUPPSERV 1
18926 elif test ! -z "${SUPPSERV_MANDATORY}";
18928 { echo "$as_me:$LINENO: ***" >&5
18929 echo "$as_me: ***" >&6;}
18930 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
18931 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
18932 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
18933 echo "$as_me: *** Either correct the installation" >&or run configure;}
18934 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18935 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18943 if test "${USE_NBS}" != "no"; then
18945 if test "x${NBS_DIR}" != "x"; then
18946 if test -d ${NBS_DIR}/lib; then
18947 pbxlibdir="-L${NBS_DIR}/lib"
18949 pbxlibdir="-L${NBS_DIR}"
18952 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
18953 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
18954 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 ac_check_lib_save_LIBS=$LIBS
18958 LIBS="-lnbs ${pbxlibdir} $LIBS"
18959 cat >conftest.$ac_ext <<_ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18966 /* Override any GCC internal prototype to avoid an error.
18967 Use char because int might match the return type of a GCC
18968 builtin and then its argument prototype would still apply. */
18972 char nbs_connect ();
18976 return nbs_connect ();
18981 rm -f conftest.$ac_objext conftest$ac_exeext
18982 if { (ac_try="$ac_link"
18983 case "(($ac_try" in
18984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18985 *) ac_try_echo
=$ac_try;;
18987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_link") 2>conftest.er1
18990 grep -v '^ *+' conftest.er1
>conftest.err
18992 cat conftest.err
>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
18995 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18996 { (case "(($ac_try" in
18997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
19000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001 (eval "$ac_try") 2>&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try='test -s conftest$ac_exeext'
19006 { (case "(($ac_try" in
19007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19008 *) ac_try_echo
=$ac_try;;
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_try") 2>&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015 ac_cv_lib_nbs_nbs_connect
=yes
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.
$ac_ext >&5
19020 ac_cv_lib_nbs_nbs_connect
=no
19023 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19024 conftest
$ac_exeext conftest.
$ac_ext
19025 LIBS
=$ac_check_lib_save_LIBS
19027 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
19028 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
19029 if test $ac_cv_lib_nbs_nbs_connect = yes; then
19036 if test "${AST_NBS_FOUND}" = "yes"; then
19038 NBS_HEADER_FOUND
="1"
19039 if test "x${NBS_DIR}" != "x"; then
19040 NBS_LIB
="${pbxlibdir} ${NBS_LIB}"
19041 NBS_INCLUDE
="-I${NBS_DIR}/include"
19042 if test "xnbs.h" != "x" ; then
19043 as_ac_Header
=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
19044 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19045 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
19046 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
19047 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
19050 ac_res
=`eval echo '${'$as_ac_Header'}'`
19051 { echo "$as_me:$LINENO: result: $ac_res" >&5
19052 echo "${ECHO_T}$ac_res" >&6; }
19054 # Is the header compilable?
19055 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
19056 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
19057 cat >conftest.
$ac_ext <<_ACEOF
19060 cat confdefs.h
>>conftest.
$ac_ext
19061 cat >>conftest.
$ac_ext <<_ACEOF
19062 /* end confdefs.h. */
19063 $ac_includes_default
19064 #include <${NBS_DIR}/include/nbs.h>
19066 rm -f conftest.
$ac_objext
19067 if { (ac_try
="$ac_compile"
19068 case "(($ac_try" in
19069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_compile") 2>conftest.er1
19075 grep -v '^ *+' conftest.er1 >conftest.err
19077 cat conftest.err >&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } &&
19080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19081 { (case "(($ac_try" in
19082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19083 *) ac_try_echo
=$ac_try;;
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_try") 2>&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; } &&
19090 { ac_try
='test -s conftest.$ac_objext'
19091 { (case "(($ac_try" in
19092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_try") 2>&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; }; then
19100 ac_header_compiler=yes
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 ac_header_compiler=no
19108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19110 echo "${ECHO_T}$ac_header_compiler" >&6; }
19112 # Is the header present?
19113 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
19114 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
19115 cat >conftest.$ac_ext <<_ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 #include <${NBS_DIR}/include/nbs.h>
19123 if { (ac_try="$ac_cpp conftest.$ac_ext"
19124 case "(($ac_try" in
19125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19126 *) ac_try_echo
=$ac_try;;
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19131 grep -v '^ *+' conftest.er1
>conftest.err
19133 cat conftest.err
>&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } >/dev
/null
; then
19136 if test -s conftest.err
; then
19137 ac_cpp_err
=$ac_c_preproc_warn_flag
19138 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19145 if test -z "$ac_cpp_err"; then
19146 ac_header_preproc
=yes
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.
$ac_ext >&5
19151 ac_header_preproc
=no
19154 rm -f conftest.err conftest.
$ac_ext
19155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19156 echo "${ECHO_T}$ac_header_preproc" >&6; }
19158 # So? What about this header?
19159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19161 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
19162 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19163 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
19164 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
19165 ac_header_preproc
=yes
19168 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
19169 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
19170 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
19171 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
19172 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
19173 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
19174 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
19175 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
19176 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
19177 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
19178 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
19179 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
19183 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
19184 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
19185 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 eval "$as_ac_Header=\$ac_header_preproc"
19190 ac_res
=`eval echo '${'$as_ac_Header'}'`
19191 { echo "$as_me:$LINENO: result: $ac_res" >&5
19192 echo "${ECHO_T}$ac_res" >&6; }
19195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19204 if test "xnbs.h" != "x" ; then
19205 if test "${ac_cv_header_nbs_h+set}" = set; then
19206 { echo "$as_me:$LINENO: checking for nbs.h" >&5
19207 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
19208 if test "${ac_cv_header_nbs_h+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
19212 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19214 # Is the header compilable?
19215 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
19216 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
19217 cat >conftest.
$ac_ext <<_ACEOF
19220 cat confdefs.h
>>conftest.
$ac_ext
19221 cat >>conftest.
$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223 $ac_includes_default
19226 rm -f conftest.
$ac_objext
19227 if { (ac_try
="$ac_compile"
19228 case "(($ac_try" in
19229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_compile") 2>conftest.er1
19235 grep -v '^ *+' conftest.er1 >conftest.err
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
19240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19241 { (case "(($ac_try" in
19242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19243 *) ac_try_echo
=$ac_try;;
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_try") 2>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; } &&
19250 { ac_try
='test -s conftest.$ac_objext'
19251 { (case "(($ac_try" in
19252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_try") 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_header_compiler=yes
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19265 ac_header_compiler=no
19268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19270 echo "${ECHO_T}$ac_header_compiler" >&6; }
19272 # Is the header present?
19273 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
19274 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
19275 cat >conftest.$ac_ext <<_ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19283 if { (ac_try="$ac_cpp conftest.$ac_ext"
19284 case "(($ac_try" in
19285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19286 *) ac_try_echo
=$ac_try;;
19288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19291 grep -v '^ *+' conftest.er1
>conftest.err
19293 cat conftest.err
>&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } >/dev
/null
; then
19296 if test -s conftest.err
; then
19297 ac_cpp_err
=$ac_c_preproc_warn_flag
19298 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19305 if test -z "$ac_cpp_err"; then
19306 ac_header_preproc
=yes
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.
$ac_ext >&5
19311 ac_header_preproc
=no
19314 rm -f conftest.err conftest.
$ac_ext
19315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19316 echo "${ECHO_T}$ac_header_preproc" >&6; }
19318 # So? What about this header?
19319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19321 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
19322 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19323 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
19324 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
19325 ac_header_preproc
=yes
19328 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
19329 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
19330 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
19331 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
19333 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
19334 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
19335 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
19336 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
19337 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
19338 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
19339 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
19343 { echo "$as_me:$LINENO: checking for nbs.h" >&5
19344 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
19345 if test "${ac_cv_header_nbs_h+set}" = set; then
19346 echo $ECHO_N "(cached) $ECHO_C" >&6
19348 ac_cv_header_nbs_h
=$ac_header_preproc
19350 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
19351 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19354 if test $ac_cv_header_nbs_h = yes; then
19363 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
19364 if test ! -z "${NBS_MANDATORY}" ;
19366 { echo "$as_me:$LINENO: ***" >&5
19367 echo "$as_me: ***" >&6;}
19368 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
19369 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
19370 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support" >&5
19371 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support" >&or re-run configure
;}
19372 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19373 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19382 cat >>confdefs.h
<<_ACEOF
19387 elif test ! -z "${NBS_MANDATORY}";
19389 { echo "$as_me:$LINENO: ***" >&5
19390 echo "$as_me: ***" >&6;}
19391 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
19392 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
19393 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
19394 echo "$as_me: *** Either correct the installation" >&or run configure
;}
19395 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19396 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19403 if test "${USE_NCURSES}" != "no"; then
19405 if test "x${NCURSES_DIR}" != "x"; then
19406 if test -d ${NCURSES_DIR}/lib
; then
19407 pbxlibdir
="-L${NCURSES_DIR}/lib"
19409 pbxlibdir
="-L${NCURSES_DIR}"
19412 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
19413 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
19414 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19417 ac_check_lib_save_LIBS
=$LIBS
19418 LIBS
="-lncurses ${pbxlibdir} $LIBS"
19419 cat >conftest.
$ac_ext <<_ACEOF
19422 cat confdefs.h
>>conftest.
$ac_ext
19423 cat >>conftest.
$ac_ext <<_ACEOF
19424 /* end confdefs.h. */
19426 /* Override any GCC internal prototype to avoid an error.
19427 Use char because int might match the return type of a GCC
19428 builtin and then its argument prototype would still apply. */
19441 rm -f conftest.
$ac_objext conftest
$ac_exeext
19442 if { (ac_try
="$ac_link"
19443 case "(($ac_try" in
19444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_link") 2>conftest.er1
19450 grep -v '^ *+' conftest.er1 >conftest.err
19452 cat conftest.err >&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } &&
19455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19456 { (case "(($ac_try" in
19457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19458 *) ac_try_echo
=$ac_try;;
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_try") 2>&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; } &&
19465 { ac_try
='test -s conftest$ac_exeext'
19466 { (case "(($ac_try" in
19467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_try") 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; }; then
19475 ac_cv_lib_ncurses_initscr=yes
19477 echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19480 ac_cv_lib_ncurses_initscr=no
19483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19484 conftest$ac_exeext conftest.$ac_ext
19485 LIBS=$ac_check_lib_save_LIBS
19487 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
19488 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
19489 if test $ac_cv_lib_ncurses_initscr = yes; then
19490 AST_NCURSES_FOUND=yes
19492 AST_NCURSES_FOUND=no
19496 if test "${AST_NCURSES_FOUND}" = "yes"; then
19497 NCURSES_LIB="-lncurses "
19498 NCURSES_HEADER_FOUND="1"
19499 if test "x${NCURSES_DIR}" != "x"; then
19500 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19501 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
19502 if test "xcurses.h" != "x" ; then
19503 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" |
$as_tr_sh`
19504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19505 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19506 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 ac_res=`eval echo '${'$as_ac_Header'}'`
19511 { echo "$as_me:$LINENO: result: $ac_res" >&5
19512 echo "${ECHO_T}$ac_res" >&6; }
19514 # Is the header compilable?
19515 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
19516 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
19517 cat >conftest.$ac_ext <<_ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19523 $ac_includes_default
19524 #include <${NCURSES_DIR}/include/curses.h>
19526 rm -f conftest.$ac_objext
19527 if { (ac_try="$ac_compile"
19528 case "(($ac_try" in
19529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19530 *) ac_try_echo
=$ac_try;;
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_compile") 2>conftest.er1
19535 grep -v '^ *+' conftest.er1
>conftest.err
19537 cat conftest.err
>&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } &&
19540 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19541 { (case "(($ac_try" in
19542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_try") 2>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; } &&
19550 { ac_try='test -s conftest.$ac_objext'
19551 { (case "(($ac_try" in
19552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19553 *) ac_try_echo
=$ac_try;;
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_try") 2>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_header_compiler
=yes
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.
$ac_ext >&5
19565 ac_header_compiler
=no
19568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19570 echo "${ECHO_T}$ac_header_compiler" >&6; }
19572 # Is the header present?
19573 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
19574 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
19575 cat >conftest.
$ac_ext <<_ACEOF
19578 cat confdefs.h
>>conftest.
$ac_ext
19579 cat >>conftest.
$ac_ext <<_ACEOF
19580 /* end confdefs.h. */
19581 #include <${NCURSES_DIR}/include/curses.h>
19583 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19584 case "(($ac_try" in
19585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } >/dev/null; then
19596 if test -s conftest.err; then
19597 ac_cpp_err=$ac_c_preproc_warn_flag
19598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19605 if test -z "$ac_cpp_err"; then
19606 ac_header_preproc=yes
19608 echo "$as_me: failed program was:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19611 ac_header_preproc=no
19614 rm -f conftest.err conftest.$ac_ext
19615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19616 echo "${ECHO_T}$ac_header_preproc" >&6; }
19618 # So? What about this header?
19619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19621 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19622 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
19624 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
19625 ac_header_preproc=yes
19628 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
19629 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
19630 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
19631 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
19632 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
19633 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
19634 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
19635 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19636 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
19637 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
19638 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
19639 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
19643 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19644 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19648 eval "$as_ac_Header=\$ac_header_preproc"
19650 ac_res=`eval echo '${'$as_ac_Header'}'`
19651 { echo "$as_me:$LINENO: result: $ac_res" >&5
19652 echo "${ECHO_T}$ac_res" >&6; }
19655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19656 NCURSES_HEADER_FOUND=1
19658 NCURSES_HEADER_FOUND=0
19664 if test "xcurses.h" != "x" ; then
19665 if test "${ac_cv_header_curses_h+set}" = set; then
19666 { echo "$as_me:$LINENO: checking for curses.h" >&5
19667 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19668 if test "${ac_cv_header_curses_h+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19672 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19674 # Is the header compilable?
19675 { echo "$as_me:$LINENO: checking curses.h usability" >&5
19676 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
19677 cat >conftest.$ac_ext <<_ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19683 $ac_includes_default
19684 #include <curses.h>
19686 rm -f conftest.$ac_objext
19687 if { (ac_try="$ac_compile"
19688 case "(($ac_try" in
19689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19690 *) ac_try_echo
=$ac_try;;
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_compile") 2>conftest.er1
19695 grep -v '^ *+' conftest.er1
>conftest.err
19697 cat conftest.err
>&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } &&
19700 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19701 { (case "(($ac_try" in
19702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_try") 2>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try='test -s conftest.$ac_objext'
19711 { (case "(($ac_try" in
19712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19713 *) ac_try_echo
=$ac_try;;
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_try") 2>&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; }; then
19720 ac_header_compiler
=yes
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.
$ac_ext >&5
19725 ac_header_compiler
=no
19728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19730 echo "${ECHO_T}$ac_header_compiler" >&6; }
19732 # Is the header present?
19733 { echo "$as_me:$LINENO: checking curses.h presence" >&5
19734 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
19735 cat >conftest.
$ac_ext <<_ACEOF
19738 cat confdefs.h
>>conftest.
$ac_ext
19739 cat >>conftest.
$ac_ext <<_ACEOF
19740 /* end confdefs.h. */
19741 #include <curses.h>
19743 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19744 case "(($ac_try" in
19745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19751 grep -v '^ *+' conftest.er1 >conftest.err
19753 cat conftest.err >&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } >/dev/null; then
19756 if test -s conftest.err; then
19757 ac_cpp_err=$ac_c_preproc_warn_flag
19758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19765 if test -z "$ac_cpp_err"; then
19766 ac_header_preproc=yes
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19771 ac_header_preproc=no
19774 rm -f conftest.err conftest.$ac_ext
19775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19776 echo "${ECHO_T}$ac_header_preproc" >&6; }
19778 # So? What about this header?
19779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19781 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19782 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19783 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19784 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19785 ac_header_preproc=yes
19788 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19789 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19790 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19791 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19792 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19793 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19794 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19795 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19796 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19797 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19798 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19799 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19803 { echo "$as_me:$LINENO: checking for curses.h" >&5
19804 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19805 if test "${ac_cv_header_curses_h+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19808 ac_cv_header_curses_h=$ac_header_preproc
19810 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19811 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19814 if test $ac_cv_header_curses_h = yes; then
19815 NCURSES_HEADER_FOUND=1
19817 NCURSES_HEADER_FOUND=0
19823 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
19824 if test ! -z "${NCURSES_MANDATORY}" ;
19826 { echo "$as_me:$LINENO: ***" >&5
19827 echo "$as_me: ***" >&6;}
19828 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
19829 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
19830 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support" >&5
19831 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support" >&or re-run configure;}
19832 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19833 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19842 cat >>confdefs.h <<_ACEOF
19843 #define HAVE_NCURSES 1
19847 elif test ! -z "${NCURSES_MANDATORY}";
19849 { echo "$as_me:$LINENO: ***" >&5
19850 echo "$as_me: ***" >&6;}
19851 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
19852 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19853 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
19854 echo "$as_me: *** Either correct the installation" >&or run configure;}
19855 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19856 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19863 if test "${USE_NETSNMP}" != "no"; then
19864 if test "x${NETSNMP_DIR}" != "x"; then
19865 if test -n "$ac_tool_prefix"; then
19866 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19867 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19870 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19873 case $NETSNMP_CONFIG in
19875 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19879 for as_dir in ${NETSNMP_DIR}/bin
19882 test -z "$as_dir" && as_dir=.
19883 for ac_exec_ext in '' $ac_executable_extensions; do
19884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19885 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19896 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19897 if test -n "$NETSNMP_CONFIG"; then
19898 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19899 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19901 { echo "$as_me:$LINENO: result: no" >&5
19902 echo "${ECHO_T}no" >&6; }
19907 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19908 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19909 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19910 set dummy net-snmp-config; ac_word=$2
19911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19913 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 case $ac_pt_NETSNMP_CONFIG in
19918 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19922 for as_dir in ${NETSNMP_DIR}/bin
19925 test -z "$as_dir" && as_dir=.
19926 for ac_exec_ext in '' $ac_executable_extensions; do
19927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19928 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19939 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19940 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19941 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19942 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19944 { echo "$as_me:$LINENO: result: no" >&5
19945 echo "${ECHO_T}no" >&6; }
19948 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19949 NETSNMP_CONFIG="No"
19951 case $cross_compiling:$ac_tool_warned in
19953 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19954 whose name does not start with the host triplet. If you think this
19955 configuration is useful to you, please write to autoconf@gnu.org." >&5
19956 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19957 whose name does not start with the host triplet. If you think this
19958 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19959 ac_tool_warned=yes ;;
19961 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19964 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19967 if test x"${NETSNMP_CONFIG}" = xNo; then
19968 { echo "$as_me:$LINENO: ***" >&5
19969 echo "$as_me: ***" >&6;}
19970 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
19971 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
19972 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
19973 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
19974 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
19975 echo "$as_me: *** Either correct the installation" >&or run configure;}
19976 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19977 echo "$as_me: *** including --without-netsnmp" >&6;}
19981 if test -n "$ac_tool_prefix"; then
19982 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19983 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19986 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 case $NETSNMP_CONFIG in
19991 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19995 for as_dir in $PATH
19998 test -z "$as_dir" && as_dir=.
19999 for ac_exec_ext in '' $ac_executable_extensions; do
20000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20001 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20012 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
20013 if test -n "$NETSNMP_CONFIG"; then
20014 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
20015 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
20017 { echo "$as_me:$LINENO: result: no" >&5
20018 echo "${ECHO_T}no" >&6; }
20023 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
20024 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
20025 # Extract the first word of "net-snmp-config", so it can be a program name with args.
20026 set dummy net-snmp-config; ac_word=$2
20027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20029 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 case $ac_pt_NETSNMP_CONFIG in
20034 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
20037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20038 for as_dir in $PATH
20041 test -z "$as_dir" && as_dir=.
20042 for ac_exec_ext in '' $ac_executable_extensions; do
20043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20044 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20055 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
20056 if test -n "$ac_pt_NETSNMP_CONFIG"; then
20057 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
20058 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
20060 { echo "$as_me:$LINENO: result: no" >&5
20061 echo "${ECHO_T}no" >&6; }
20064 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
20065 NETSNMP_CONFIG="No"
20067 case $cross_compiling:$ac_tool_warned in
20069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20070 whose name does not start with the host triplet. If you think this
20071 configuration is useful to you, please write to autoconf@gnu.org." >&5
20072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20073 whose name does not start with the host triplet. If you think this
20074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20075 ac_tool_warned=yes ;;
20077 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
20080 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
20085 if test x"${NETSNMP_CONFIG}" != xNo; then
20086 NETSNMP_libs=`net-snmp-config
--agent-libs`
20088 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
20089 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
20090 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 ac_check_lib_save_LIBS=$LIBS
20094 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
20095 cat >conftest.$ac_ext <<_ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20102 /* Override any GCC internal prototype to avoid an error.
20103 Use char because int might match the return type of a GCC
20104 builtin and then its argument prototype would still apply. */
20108 char snmp_register_callback ();
20112 return snmp_register_callback ();
20117 rm -f conftest.$ac_objext conftest$ac_exeext
20118 if { (ac_try="$ac_link"
20119 case "(($ac_try" in
20120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20121 *) ac_try_echo
=$ac_try;;
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_link") 2>conftest.er1
20126 grep -v '^ *+' conftest.er1
>conftest.err
20128 cat conftest.err
>&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } &&
20131 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20132 { (case "(($ac_try" in
20133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20137 (eval "$ac_try") 2>&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; } &&
20141 { ac_try='test -s conftest$ac_exeext'
20142 { (case "(($ac_try" in
20143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20144 *) ac_try_echo
=$ac_try;;
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_try") 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 ac_cv_lib_netsnmp_snmp_register_callback
=yes
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.
$ac_ext >&5
20156 ac_cv_lib_netsnmp_snmp_register_callback
=no
20159 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20160 conftest
$ac_exeext conftest.
$ac_ext
20161 LIBS
=$ac_check_lib_save_LIBS
20163 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
20164 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
20165 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
20167 cat >>confdefs.h
<<_ACEOF
20168 #define HAVE_NETSNMP 1
20174 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
20175 NETSNMP_LIB
="${NETSNMP_libs}"
20177 elif test ! -z "${NETSNMP_MANDATORY}";
20179 { echo "$as_me:$LINENO: ***" >&5
20180 echo "$as_me: ***" >&6;}
20181 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
20182 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
20183 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20184 echo "$as_me: *** Either correct the installation" >&or run configure
;}
20185 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20186 echo "$as_me: *** including --without-netsnmp" >&6;}
20189 elif test ! -z "${NETSNMP_MANDATORY}";
20191 { echo "$as_me:$LINENO: ***" >&5
20192 echo "$as_me: ***" >&6;}
20193 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
20194 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
20195 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20196 echo "$as_me: *** Either correct the installation" >&or run configure
;}
20197 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20198 echo "$as_me: *** including --without-netsnmp" >&6;}
20203 if test "${USE_NEWT}" != "no"; then
20205 if test "x${NEWT_DIR}" != "x"; then
20206 if test -d ${NEWT_DIR}/lib
; then
20207 pbxlibdir
="-L${NEWT_DIR}/lib"
20209 pbxlibdir
="-L${NEWT_DIR}"
20212 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
20213 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
20214 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 ac_check_lib_save_LIBS
=$LIBS
20218 LIBS
="-lnewt ${pbxlibdir} $LIBS"
20219 cat >conftest.
$ac_ext <<_ACEOF
20222 cat confdefs.h
>>conftest.
$ac_ext
20223 cat >>conftest.
$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20226 /* Override any GCC internal prototype to avoid an error.
20227 Use char because int might match the return type of a GCC
20228 builtin and then its argument prototype would still apply. */
20236 return newtBell ();
20241 rm -f conftest.
$ac_objext conftest
$ac_exeext
20242 if { (ac_try
="$ac_link"
20243 case "(($ac_try" in
20244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_link") 2>conftest.er1
20250 grep -v '^ *+' conftest.er1 >conftest.err
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
20255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20256 { (case "(($ac_try" in
20257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20258 *) ac_try_echo
=$ac_try;;
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_try") 2>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; } &&
20265 { ac_try
='test -s conftest$ac_exeext'
20266 { (case "(($ac_try" in
20267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271 (eval "$ac_try") 2>&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; }; then
20275 ac_cv_lib_newt_newtBell=yes
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20280 ac_cv_lib_newt_newtBell=no
20283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20284 conftest$ac_exeext conftest.$ac_ext
20285 LIBS=$ac_check_lib_save_LIBS
20287 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
20288 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
20289 if test $ac_cv_lib_newt_newtBell = yes; then
20296 if test "${AST_NEWT_FOUND}" = "yes"; then
20298 NEWT_HEADER_FOUND="1"
20299 if test "x${NEWT_DIR}" != "x"; then
20300 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
20301 NEWT_INCLUDE="-I${NEWT_DIR}/include"
20302 if test "xnewt.h" != "x" ; then
20303 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" |
$as_tr_sh`
20304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20305 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
20306 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
20307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 ac_res=`eval echo '${'$as_ac_Header'}'`
20311 { echo "$as_me:$LINENO: result: $ac_res" >&5
20312 echo "${ECHO_T}$ac_res" >&6; }
20314 # Is the header compilable?
20315 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
20316 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
20317 cat >conftest.$ac_ext <<_ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20323 $ac_includes_default
20324 #include <${NEWT_DIR}/include/newt.h>
20326 rm -f conftest.$ac_objext
20327 if { (ac_try="$ac_compile"
20328 case "(($ac_try" in
20329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20330 *) ac_try_echo
=$ac_try;;
20332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333 (eval "$ac_compile") 2>conftest.er1
20335 grep -v '^ *+' conftest.er1
>conftest.err
20337 cat conftest.err
>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
20340 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20341 { (case "(($ac_try" in
20342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_try") 2>&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; } &&
20350 { ac_try='test -s conftest.$ac_objext'
20351 { (case "(($ac_try" in
20352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20353 *) ac_try_echo
=$ac_try;;
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_try") 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; }; then
20360 ac_header_compiler
=yes
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.
$ac_ext >&5
20365 ac_header_compiler
=no
20368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20370 echo "${ECHO_T}$ac_header_compiler" >&6; }
20372 # Is the header present?
20373 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
20374 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
20375 cat >conftest.
$ac_ext <<_ACEOF
20378 cat confdefs.h
>>conftest.
$ac_ext
20379 cat >>conftest.
$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20381 #include <${NEWT_DIR}/include/newt.h>
20383 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20384 case "(($ac_try" in
20385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20391 grep -v '^ *+' conftest.er1 >conftest.err
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } >/dev/null; then
20396 if test -s conftest.err; then
20397 ac_cpp_err=$ac_c_preproc_warn_flag
20398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20405 if test -z "$ac_cpp_err"; then
20406 ac_header_preproc=yes
20408 echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20411 ac_header_preproc=no
20414 rm -f conftest.err conftest.$ac_ext
20415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20416 echo "${ECHO_T}$ac_header_preproc" >&6; }
20418 # So? What about this header?
20419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20421 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20422 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20423 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
20424 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
20425 ac_header_preproc=yes
20428 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
20429 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
20431 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
20433 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
20434 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
20435 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20436 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
20437 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
20439 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
20443 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
20444 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
20445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 eval "$as_ac_Header=\$ac_header_preproc"
20450 ac_res=`eval echo '${'$as_ac_Header'}'`
20451 { echo "$as_me:$LINENO: result: $ac_res" >&5
20452 echo "${ECHO_T}$ac_res" >&6; }
20455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20456 NEWT_HEADER_FOUND=1
20458 NEWT_HEADER_FOUND=0
20464 if test "xnewt.h" != "x" ; then
20465 if test "${ac_cv_header_newt_h+set}" = set; then
20466 { echo "$as_me:$LINENO: checking for newt.h" >&5
20467 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20468 if test "${ac_cv_header_newt_h+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20472 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20474 # Is the header compilable?
20475 { echo "$as_me:$LINENO: checking newt.h usability" >&5
20476 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 $ac_includes_default
20486 rm -f conftest.$ac_objext
20487 if { (ac_try="$ac_compile"
20488 case "(($ac_try" in
20489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20490 *) ac_try_echo
=$ac_try;;
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_compile") 2>conftest.er1
20495 grep -v '^ *+' conftest.er1
>conftest.err
20497 cat conftest.err
>&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } &&
20500 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20501 { (case "(($ac_try" in
20502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_try") 2>&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try='test -s conftest.$ac_objext'
20511 { (case "(($ac_try" in
20512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20513 *) ac_try_echo
=$ac_try;;
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_try") 2>&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_header_compiler
=yes
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.
$ac_ext >&5
20525 ac_header_compiler
=no
20528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20530 echo "${ECHO_T}$ac_header_compiler" >&6; }
20532 # Is the header present?
20533 { echo "$as_me:$LINENO: checking newt.h presence" >&5
20534 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
20535 cat >conftest.
$ac_ext <<_ACEOF
20538 cat confdefs.h
>>conftest.
$ac_ext
20539 cat >>conftest.
$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20543 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20544 case "(($ac_try" in
20545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20551 grep -v '^ *+' conftest.er1 >conftest.err
20553 cat conftest.err >&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); } >/dev/null; then
20556 if test -s conftest.err; then
20557 ac_cpp_err=$ac_c_preproc_warn_flag
20558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20565 if test -z "$ac_cpp_err"; then
20566 ac_header_preproc=yes
20568 echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20571 ac_header_preproc=no
20574 rm -f conftest.err conftest.$ac_ext
20575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20576 echo "${ECHO_T}$ac_header_preproc" >&6; }
20578 # So? What about this header?
20579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20581 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20582 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
20584 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
20585 ac_header_preproc=yes
20588 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
20589 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
20590 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
20591 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
20592 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
20593 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
20594 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
20595 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20596 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
20597 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
20599 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
20603 { echo "$as_me:$LINENO: checking for newt.h" >&5
20604 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20605 if test "${ac_cv_header_newt_h+set}" = set; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 ac_cv_header_newt_h=$ac_header_preproc
20610 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20611 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20614 if test $ac_cv_header_newt_h = yes; then
20615 NEWT_HEADER_FOUND=1
20617 NEWT_HEADER_FOUND=0
20623 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
20624 if test ! -z "${NEWT_MANDATORY}" ;
20626 { echo "$as_me:$LINENO: ***" >&5
20627 echo "$as_me: ***" >&6;}
20628 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
20629 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
20630 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support" >&5
20631 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support" >&or re-run configure;}
20632 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20633 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20642 cat >>confdefs.h <<_ACEOF
20643 #define HAVE_NEWT 1
20647 elif test ! -z "${NEWT_MANDATORY}";
20649 { echo "$as_me:$LINENO: ***" >&5
20650 echo "$as_me: ***" >&6;}
20651 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
20652 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
20653 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20654 echo "$as_me: *** Either correct the installation" >&or run configure;}
20655 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20656 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20663 if test "${USE_UNIXODBC}" != "no"; then
20665 if test "x${UNIXODBC_DIR}" != "x"; then
20666 if test -d ${UNIXODBC_DIR}/lib; then
20667 pbxlibdir="-L${UNIXODBC_DIR}/lib"
20669 pbxlibdir="-L${UNIXODBC_DIR}"
20672 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
20673 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
20674 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 ac_check_lib_save_LIBS=$LIBS
20678 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20679 cat >conftest.$ac_ext <<_ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20686 /* Override any GCC internal prototype to avoid an error.
20687 Use char because int might match the return type of a GCC
20688 builtin and then its argument prototype would still apply. */
20692 char SQLConnect ();
20696 return SQLConnect ();
20701 rm -f conftest.$ac_objext conftest$ac_exeext
20702 if { (ac_try="$ac_link"
20703 case "(($ac_try" in
20704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20705 *) ac_try_echo
=$ac_try;;
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_link") 2>conftest.er1
20710 grep -v '^ *+' conftest.er1
>conftest.err
20712 cat conftest.err
>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } &&
20715 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20716 { (case "(($ac_try" in
20717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_try") 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; } &&
20725 { ac_try='test -s conftest$ac_exeext'
20726 { (case "(($ac_try" in
20727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20728 *) ac_try_echo
=$ac_try;;
20730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731 (eval "$ac_try") 2>&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; }; then
20735 ac_cv_lib_odbc_SQLConnect
=yes
20737 echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.
$ac_ext >&5
20740 ac_cv_lib_odbc_SQLConnect
=no
20743 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20744 conftest
$ac_exeext conftest.
$ac_ext
20745 LIBS
=$ac_check_lib_save_LIBS
20747 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
20748 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
20749 if test $ac_cv_lib_odbc_SQLConnect = yes; then
20750 AST_UNIXODBC_FOUND
=yes
20752 AST_UNIXODBC_FOUND
=no
20756 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
20757 UNIXODBC_LIB
="-lodbc -lltdl"
20758 UNIXODBC_HEADER_FOUND
="1"
20759 if test "x${UNIXODBC_DIR}" != "x"; then
20760 UNIXODBC_LIB
="${pbxlibdir} ${UNIXODBC_LIB}"
20761 UNIXODBC_INCLUDE
="-I${UNIXODBC_DIR}/include"
20762 if test "xsql.h" != "x" ; then
20763 as_ac_Header
=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
20764 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20765 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20766 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20767 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 ac_res
=`eval echo '${'$as_ac_Header'}'`
20771 { echo "$as_me:$LINENO: result: $ac_res" >&5
20772 echo "${ECHO_T}$ac_res" >&6; }
20774 # Is the header compilable?
20775 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
20776 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
20777 cat >conftest.
$ac_ext <<_ACEOF
20780 cat confdefs.h
>>conftest.
$ac_ext
20781 cat >>conftest.
$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20783 $ac_includes_default
20784 #include <${UNIXODBC_DIR}/include/sql.h>
20786 rm -f conftest.
$ac_objext
20787 if { (ac_try
="$ac_compile"
20788 case "(($ac_try" in
20789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793 (eval "$ac_compile") 2>conftest.er1
20795 grep -v '^ *+' conftest.er1 >conftest.err
20797 cat conftest.err >&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } &&
20800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20801 { (case "(($ac_try" in
20802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20803 *) ac_try_echo
=$ac_try;;
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_try") 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; } &&
20810 { ac_try
='test -s conftest.$ac_objext'
20811 { (case "(($ac_try" in
20812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_try") 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820 ac_header_compiler=yes
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20825 ac_header_compiler=no
20828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20830 echo "${ECHO_T}$ac_header_compiler" >&6; }
20832 # Is the header present?
20833 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
20834 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
20835 cat >conftest.$ac_ext <<_ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20841 #include <${UNIXODBC_DIR}/include/sql.h>
20843 if { (ac_try="$ac_cpp conftest.$ac_ext"
20844 case "(($ac_try" in
20845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20846 *) ac_try_echo
=$ac_try;;
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20851 grep -v '^ *+' conftest.er1
>conftest.err
20853 cat conftest.err
>&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } >/dev
/null
; then
20856 if test -s conftest.err
; then
20857 ac_cpp_err
=$ac_c_preproc_warn_flag
20858 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20865 if test -z "$ac_cpp_err"; then
20866 ac_header_preproc
=yes
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.
$ac_ext >&5
20871 ac_header_preproc
=no
20874 rm -f conftest.err conftest.
$ac_ext
20875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20876 echo "${ECHO_T}$ac_header_preproc" >&6; }
20878 # So? What about this header?
20879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20881 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20882 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20883 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
20884 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
20885 ac_header_preproc
=yes
20888 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
20889 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
20890 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
20891 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
20892 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
20893 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
20894 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
20895 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20896 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
20897 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
20898 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
20899 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
20903 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20904 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20905 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 eval "$as_ac_Header=\$ac_header_preproc"
20910 ac_res
=`eval echo '${'$as_ac_Header'}'`
20911 { echo "$as_me:$LINENO: result: $ac_res" >&5
20912 echo "${ECHO_T}$ac_res" >&6; }
20915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20916 UNIXODBC_HEADER_FOUND
=1
20918 UNIXODBC_HEADER_FOUND
=0
20924 if test "xsql.h" != "x" ; then
20925 if test "${ac_cv_header_sql_h+set}" = set; then
20926 { echo "$as_me:$LINENO: checking for sql.h" >&5
20927 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20928 if test "${ac_cv_header_sql_h+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20931 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20932 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20934 # Is the header compilable?
20935 { echo "$as_me:$LINENO: checking sql.h usability" >&5
20936 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
20937 cat >conftest.
$ac_ext <<_ACEOF
20940 cat confdefs.h
>>conftest.
$ac_ext
20941 cat >>conftest.
$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20943 $ac_includes_default
20946 rm -f conftest.
$ac_objext
20947 if { (ac_try
="$ac_compile"
20948 case "(($ac_try" in
20949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_compile") 2>conftest.er1
20955 grep -v '^ *+' conftest.er1 >conftest.err
20957 cat conftest.err >&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } &&
20960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20961 { (case "(($ac_try" in
20962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20963 *) ac_try_echo
=$ac_try;;
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_try") 2>&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; } &&
20970 { ac_try
='test -s conftest.$ac_objext'
20971 { (case "(($ac_try" in
20972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20973 *) ac_try_echo=$ac_try;;
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976 (eval "$ac_try") 2>&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ac_header_compiler=yes
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20985 ac_header_compiler=no
20988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20990 echo "${ECHO_T}$ac_header_compiler" >&6; }
20992 # Is the header present?
20993 { echo "$as_me:$LINENO: checking sql.h presence" >&5
20994 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
20995 cat >conftest.$ac_ext <<_ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21003 if { (ac_try="$ac_cpp conftest.$ac_ext"
21004 case "(($ac_try" in
21005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21006 *) ac_try_echo
=$ac_try;;
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21011 grep -v '^ *+' conftest.er1
>conftest.err
21013 cat conftest.err
>&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } >/dev
/null
; then
21016 if test -s conftest.err
; then
21017 ac_cpp_err
=$ac_c_preproc_warn_flag
21018 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21025 if test -z "$ac_cpp_err"; then
21026 ac_header_preproc
=yes
21028 echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.
$ac_ext >&5
21031 ac_header_preproc
=no
21034 rm -f conftest.err conftest.
$ac_ext
21035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21036 echo "${ECHO_T}$ac_header_preproc" >&6; }
21038 # So? What about this header?
21039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21041 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
21042 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
21044 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
21045 ac_header_preproc
=yes
21048 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
21049 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
21051 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
21052 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
21053 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
21054 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
21055 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
21056 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
21057 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
21058 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
21059 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
21063 { echo "$as_me:$LINENO: checking for sql.h" >&5
21064 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
21065 if test "${ac_cv_header_sql_h+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21068 ac_cv_header_sql_h
=$ac_header_preproc
21070 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
21071 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
21074 if test $ac_cv_header_sql_h = yes; then
21075 UNIXODBC_HEADER_FOUND
=1
21077 UNIXODBC_HEADER_FOUND
=0
21083 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
21084 if test ! -z "${UNIXODBC_MANDATORY}" ;
21086 { echo "$as_me:$LINENO: ***" >&5
21087 echo "$as_me: ***" >&6;}
21088 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
21089 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
21090 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support" >&5
21091 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support" >&or re-run configure
;}
21092 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
21093 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
21097 UNIXODBC_INCLUDE
=""
21102 cat >>confdefs.h
<<_ACEOF
21103 #define HAVE_UNIXODBC 1
21107 elif test ! -z "${UNIXODBC_MANDATORY}";
21109 { echo "$as_me:$LINENO: ***" >&5
21110 echo "$as_me: ***" >&6;}
21111 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
21112 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
21113 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
21114 echo "$as_me: *** Either correct the installation" >&or run configure
;}
21115 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
21116 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
21123 if test "${USE_OGG}" != "no"; then
21125 if test "x${OGG_DIR}" != "x"; then
21126 if test -d ${OGG_DIR}/lib
; then
21127 pbxlibdir
="-L${OGG_DIR}/lib"
21129 pbxlibdir
="-L${OGG_DIR}"
21132 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
21133 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
21134 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
21135 echo $ECHO_N "(cached) $ECHO_C" >&6
21137 ac_check_lib_save_LIBS
=$LIBS
21138 LIBS
="-logg ${pbxlibdir} $LIBS"
21139 cat >conftest.
$ac_ext <<_ACEOF
21142 cat confdefs.h
>>conftest.
$ac_ext
21143 cat >>conftest.
$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21146 /* Override any GCC internal prototype to avoid an error.
21147 Use char because int might match the return type of a GCC
21148 builtin and then its argument prototype would still apply. */
21152 char ogg_sync_init ();
21156 return ogg_sync_init ();
21161 rm -f conftest.
$ac_objext conftest
$ac_exeext
21162 if { (ac_try
="$ac_link"
21163 case "(($ac_try" in
21164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_link") 2>conftest.er1
21170 grep -v '^ *+' conftest.er1 >conftest.err
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } &&
21175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21176 { (case "(($ac_try" in
21177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21178 *) ac_try_echo
=$ac_try;;
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_try") 2>&5
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; } &&
21185 { ac_try
='test -s conftest$ac_exeext'
21186 { (case "(($ac_try" in
21187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21188 *) ac_try_echo=$ac_try;;
21190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21191 (eval "$ac_try") 2>&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21195 ac_cv_lib_ogg_ogg_sync_init=yes
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21200 ac_cv_lib_ogg_ogg_sync_init=no
21203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21204 conftest$ac_exeext conftest.$ac_ext
21205 LIBS=$ac_check_lib_save_LIBS
21207 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
21208 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
21209 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
21216 if test "${AST_OGG_FOUND}" = "yes"; then
21218 OGG_HEADER_FOUND="1"
21219 if test "x${OGG_DIR}" != "x"; then
21220 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
21221 OGG_INCLUDE="-I${OGG_DIR}/include"
21222 if test "x" != "x" ; then
21223 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" |
$as_tr_sh`
21224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21225 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
21226 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
21227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21230 ac_res=`eval echo '${'$as_ac_Header'}'`
21231 { echo "$as_me:$LINENO: result: $ac_res" >&5
21232 echo "${ECHO_T}$ac_res" >&6; }
21234 # Is the header compilable?
21235 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
21236 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
21237 cat >conftest.$ac_ext <<_ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 $ac_includes_default
21244 #include <${OGG_DIR}/include/>
21246 rm -f conftest.$ac_objext
21247 if { (ac_try="$ac_compile"
21248 case "(($ac_try" in
21249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21250 *) ac_try_echo
=$ac_try;;
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_compile") 2>conftest.er1
21255 grep -v '^ *+' conftest.er1
>conftest.err
21257 cat conftest.err
>&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } &&
21260 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21261 { (case "(($ac_try" in
21262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_try") 2>&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); }; } &&
21270 { ac_try='test -s conftest.$ac_objext'
21271 { (case "(($ac_try" in
21272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21273 *) ac_try_echo
=$ac_try;;
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_try") 2>&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; }; then
21280 ac_header_compiler
=yes
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.
$ac_ext >&5
21285 ac_header_compiler
=no
21288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21290 echo "${ECHO_T}$ac_header_compiler" >&6; }
21292 # Is the header present?
21293 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
21294 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
21295 cat >conftest.
$ac_ext <<_ACEOF
21298 cat confdefs.h
>>conftest.
$ac_ext
21299 cat >>conftest.
$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 #include <${OGG_DIR}/include/>
21303 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21304 case "(($ac_try" in
21305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21311 grep -v '^ *+' conftest.er1 >conftest.err
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } >/dev/null; then
21316 if test -s conftest.err; then
21317 ac_cpp_err=$ac_c_preproc_warn_flag
21318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21325 if test -z "$ac_cpp_err"; then
21326 ac_header_preproc=yes
21328 echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21331 ac_header_preproc=no
21334 rm -f conftest.err conftest.$ac_ext
21335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21336 echo "${ECHO_T}$ac_header_preproc" >&6; }
21338 # So? What about this header?
21339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21341 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
21342 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
21344 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
21345 ac_header_preproc=yes
21348 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
21349 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
21351 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
21353 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
21355 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
21357 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
21359 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
21363 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
21364 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
21365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 eval "$as_ac_Header=\$ac_header_preproc"
21370 ac_res=`eval echo '${'$as_ac_Header'}'`
21371 { echo "$as_me:$LINENO: result: $ac_res" >&5
21372 echo "${ECHO_T}$ac_res" >&6; }
21375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21384 if test "x" != "x" ; then
21385 if test "${ac_cv_header_+set}" = set; then
21386 { echo "$as_me:$LINENO: checking for " >&5
21387 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21388 if test "${ac_cv_header_+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21392 echo "${ECHO_T}$ac_cv_header_" >&6; }
21394 # Is the header compilable?
21395 { echo "$as_me:$LINENO: checking usability" >&5
21396 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21397 cat >conftest.$ac_ext <<_ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 $ac_includes_default
21406 rm -f conftest.$ac_objext
21407 if { (ac_try="$ac_compile"
21408 case "(($ac_try" in
21409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21410 *) ac_try_echo
=$ac_try;;
21412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_compile") 2>conftest.er1
21415 grep -v '^ *+' conftest.er1
>conftest.err
21417 cat conftest.err
>&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
21420 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21421 { (case "(($ac_try" in
21422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_try") 2>&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest.$ac_objext'
21431 { (case "(($ac_try" in
21432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21433 *) ac_try_echo
=$ac_try;;
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436 (eval "$ac_try") 2>&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; }; then
21440 ac_header_compiler
=yes
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.
$ac_ext >&5
21445 ac_header_compiler
=no
21448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21450 echo "${ECHO_T}$ac_header_compiler" >&6; }
21452 # Is the header present?
21453 { echo "$as_me:$LINENO: checking presence" >&5
21454 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21455 cat >conftest.
$ac_ext <<_ACEOF
21458 cat confdefs.h
>>conftest.
$ac_ext
21459 cat >>conftest.
$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21463 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21464 case "(($ac_try" in
21465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21471 grep -v '^ *+' conftest.er1 >conftest.err
21473 cat conftest.err >&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); } >/dev/null; then
21476 if test -s conftest.err; then
21477 ac_cpp_err=$ac_c_preproc_warn_flag
21478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21485 if test -z "$ac_cpp_err"; then
21486 ac_header_preproc=yes
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 ac_header_preproc=no
21494 rm -f conftest.err conftest.$ac_ext
21495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21496 echo "${ECHO_T}$ac_header_preproc" >&6; }
21498 # So? What about this header?
21499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21501 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21502 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21504 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21505 ac_header_preproc=yes
21508 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21509 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21511 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21513 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21515 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21517 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21519 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21523 { echo "$as_me:$LINENO: checking for " >&5
21524 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21525 if test "${ac_cv_header_+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 ac_cv_header_=$ac_header_preproc
21530 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21531 echo "${ECHO_T}$ac_cv_header_" >&6; }
21534 if test $ac_cv_header_ = yes; then
21543 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
21544 if test ! -z "${OGG_MANDATORY}" ;
21546 { echo "$as_me:$LINENO: ***" >&5
21547 echo "$as_me: ***" >&6;}
21548 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
21549 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
21550 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support" >&5
21551 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support" >&or re-run configure;}
21552 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
21553 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
21562 cat >>confdefs.h <<_ACEOF
21567 elif test ! -z "${OGG_MANDATORY}";
21569 { echo "$as_me:$LINENO: ***" >&5
21570 echo "$as_me: ***" >&6;}
21571 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
21572 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
21573 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
21574 echo "$as_me: *** Either correct the installation" >&or run configure;}
21575 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
21576 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
21583 if test "${USE_OSPTK}" != "no"; then
21585 if test "x${OSPTK_DIR}" != "x"; then
21586 if test -d ${OSPTK_DIR}/lib; then
21587 pbxlibdir="-L${OSPTK_DIR}/lib"
21589 pbxlibdir="-L${OSPTK_DIR}"
21592 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
21593 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
21594 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21597 ac_check_lib_save_LIBS=$LIBS
21598 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
21599 cat >conftest.$ac_ext <<_ACEOF
21602 cat confdefs.h >>conftest.$ac_ext
21603 cat >>conftest.$ac_ext <<_ACEOF
21604 /* end confdefs.h. */
21606 /* Override any GCC internal prototype to avoid an error.
21607 Use char because int might match the return type of a GCC
21608 builtin and then its argument prototype would still apply. */
21612 char OSPPCryptoDecrypt ();
21616 return OSPPCryptoDecrypt ();
21621 rm -f conftest.$ac_objext conftest$ac_exeext
21622 if { (ac_try="$ac_link"
21623 case "(($ac_try" in
21624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21625 *) ac_try_echo
=$ac_try;;
21627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21628 (eval "$ac_link") 2>conftest.er1
21630 grep -v '^ *+' conftest.er1
>conftest.err
21632 cat conftest.err
>&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
21635 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21636 { (case "(($ac_try" in
21637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_try") 2>&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; } &&
21645 { ac_try='test -s conftest$ac_exeext'
21646 { (case "(($ac_try" in
21647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21648 *) ac_try_echo
=$ac_try;;
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_try") 2>&5
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); }; }; then
21655 ac_cv_lib_osptk_OSPPCryptoDecrypt
=yes
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.
$ac_ext >&5
21660 ac_cv_lib_osptk_OSPPCryptoDecrypt
=no
21663 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21664 conftest
$ac_exeext conftest.
$ac_ext
21665 LIBS
=$ac_check_lib_save_LIBS
21667 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
21668 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
21669 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
21670 AST_OSPTK_FOUND
=yes
21676 if test "${AST_OSPTK_FOUND}" = "yes"; then
21677 OSPTK_LIB
="-losptk -lcrypto -lssl"
21678 OSPTK_HEADER_FOUND
="1"
21679 if test "x${OSPTK_DIR}" != "x"; then
21680 OSPTK_LIB
="${pbxlibdir} ${OSPTK_LIB}"
21681 OSPTK_INCLUDE
="-I${OSPTK_DIR}/include"
21682 if test "xosp/osp.h" != "x" ; then
21683 as_ac_Header
=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
21684 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21685 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21686 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21687 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21690 ac_res
=`eval echo '${'$as_ac_Header'}'`
21691 { echo "$as_me:$LINENO: result: $ac_res" >&5
21692 echo "${ECHO_T}$ac_res" >&6; }
21694 # Is the header compilable?
21695 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
21696 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
21697 cat >conftest.
$ac_ext <<_ACEOF
21700 cat confdefs.h
>>conftest.
$ac_ext
21701 cat >>conftest.
$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 $ac_includes_default
21704 #include <${OSPTK_DIR}/include/osp/osp.h>
21706 rm -f conftest.
$ac_objext
21707 if { (ac_try
="$ac_compile"
21708 case "(($ac_try" in
21709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_compile") 2>conftest.er1
21715 grep -v '^ *+' conftest.er1 >conftest.err
21717 cat conftest.err >&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } &&
21720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21721 { (case "(($ac_try" in
21722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21723 *) ac_try_echo
=$ac_try;;
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_try") 2>&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; } &&
21730 { ac_try
='test -s conftest.$ac_objext'
21731 { (case "(($ac_try" in
21732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736 (eval "$ac_try") 2>&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21740 ac_header_compiler=yes
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 ac_header_compiler=no
21748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21750 echo "${ECHO_T}$ac_header_compiler" >&6; }
21752 # Is the header present?
21753 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
21754 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
21755 cat >conftest.$ac_ext <<_ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 #include <${OSPTK_DIR}/include/osp/osp.h>
21763 if { (ac_try="$ac_cpp conftest.$ac_ext"
21764 case "(($ac_try" in
21765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21766 *) ac_try_echo
=$ac_try;;
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21771 grep -v '^ *+' conftest.er1
>conftest.err
21773 cat conftest.err
>&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } >/dev
/null
; then
21776 if test -s conftest.err
; then
21777 ac_cpp_err
=$ac_c_preproc_warn_flag
21778 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21785 if test -z "$ac_cpp_err"; then
21786 ac_header_preproc
=yes
21788 echo "$as_me: failed program was:" >&5
21789 sed 's/^/| /' conftest.
$ac_ext >&5
21791 ac_header_preproc
=no
21794 rm -f conftest.err conftest.
$ac_ext
21795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21796 echo "${ECHO_T}$ac_header_preproc" >&6; }
21798 # So? What about this header?
21799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21801 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21802 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
21804 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
21805 ac_header_preproc
=yes
21808 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
21809 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
21810 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
21811 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
21812 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
21813 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
21814 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21815 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21816 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
21817 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
21819 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
21823 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21824 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21825 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21826 echo $ECHO_N "(cached) $ECHO_C" >&6
21828 eval "$as_ac_Header=\$ac_header_preproc"
21830 ac_res
=`eval echo '${'$as_ac_Header'}'`
21831 { echo "$as_me:$LINENO: result: $ac_res" >&5
21832 echo "${ECHO_T}$ac_res" >&6; }
21835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21836 OSPTK_HEADER_FOUND
=1
21838 OSPTK_HEADER_FOUND
=0
21844 if test "xosp/osp.h" != "x" ; then
21845 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21846 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21847 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21848 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21851 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21852 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21854 # Is the header compilable?
21855 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
21856 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
21857 cat >conftest.
$ac_ext <<_ACEOF
21860 cat confdefs.h
>>conftest.
$ac_ext
21861 cat >>conftest.
$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 $ac_includes_default
21864 #include <osp/osp.h>
21866 rm -f conftest.
$ac_objext
21867 if { (ac_try
="$ac_compile"
21868 case "(($ac_try" in
21869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_compile") 2>conftest.er1
21875 grep -v '^ *+' conftest.er1 >conftest.err
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } &&
21880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21881 { (case "(($ac_try" in
21882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21883 *) ac_try_echo
=$ac_try;;
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_try") 2>&5
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try
='test -s conftest.$ac_objext'
21891 { (case "(($ac_try" in
21892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21893 *) ac_try_echo=$ac_try;;
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896 (eval "$ac_try") 2>&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; }; then
21900 ac_header_compiler=yes
21902 echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ac_header_compiler=no
21908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21910 echo "${ECHO_T}$ac_header_compiler" >&6; }
21912 # Is the header present?
21913 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
21914 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
21915 cat >conftest.$ac_ext <<_ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21921 #include <osp/osp.h>
21923 if { (ac_try="$ac_cpp conftest.$ac_ext"
21924 case "(($ac_try" in
21925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21926 *) ac_try_echo
=$ac_try;;
21928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21931 grep -v '^ *+' conftest.er1
>conftest.err
21933 cat conftest.err
>&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); } >/dev
/null
; then
21936 if test -s conftest.err
; then
21937 ac_cpp_err
=$ac_c_preproc_warn_flag
21938 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21945 if test -z "$ac_cpp_err"; then
21946 ac_header_preproc
=yes
21948 echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.
$ac_ext >&5
21951 ac_header_preproc
=no
21954 rm -f conftest.err conftest.
$ac_ext
21955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21956 echo "${ECHO_T}$ac_header_preproc" >&6; }
21958 # So? What about this header?
21959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21961 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21962 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21963 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
21964 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
21965 ac_header_preproc
=yes
21968 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
21969 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
21971 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
21972 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
21973 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21975 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
21977 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
21979 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
21983 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21984 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21985 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21988 ac_cv_header_osp_osp_h
=$ac_header_preproc
21990 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21991 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21994 if test $ac_cv_header_osp_osp_h = yes; then
21995 OSPTK_HEADER_FOUND
=1
21997 OSPTK_HEADER_FOUND
=0
22003 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
22004 if test ! -z "${OSPTK_MANDATORY}" ;
22006 { echo "$as_me:$LINENO: ***" >&5
22007 echo "$as_me: ***" >&6;}
22008 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
22009 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
22010 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support" >&5
22011 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support" >&or re-run configure
;}
22012 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
22013 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
22022 cat >>confdefs.h
<<_ACEOF
22023 #define HAVE_OSPTK 1
22027 elif test ! -z "${OSPTK_MANDATORY}";
22029 { echo "$as_me:$LINENO: ***" >&5
22030 echo "$as_me: ***" >&6;}
22031 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
22032 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
22033 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
22034 echo "$as_me: *** Either correct the installation" >&or run configure
;}
22035 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
22036 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
22043 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22044 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22045 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22046 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22049 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22050 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22052 # Is the header compilable?
22053 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
22054 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
22055 cat >conftest.
$ac_ext <<_ACEOF
22058 cat confdefs.h
>>conftest.
$ac_ext
22059 cat >>conftest.
$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22061 $ac_includes_default
22062 #include <linux/soundcard.h>
22064 rm -f conftest.
$ac_objext
22065 if { (ac_try
="$ac_compile"
22066 case "(($ac_try" in
22067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_compile") 2>conftest.er1
22073 grep -v '^ *+' conftest.er1 >conftest.err
22075 cat conftest.err >&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } &&
22078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22079 { (case "(($ac_try" in
22080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22081 *) ac_try_echo
=$ac_try;;
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_try") 2>&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; } &&
22088 { ac_try
='test -s conftest.$ac_objext'
22089 { (case "(($ac_try" in
22090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_try") 2>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; }; then
22098 ac_header_compiler=yes
22100 echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22103 ac_header_compiler=no
22106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22107 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22108 echo "${ECHO_T}$ac_header_compiler" >&6; }
22110 # Is the header present?
22111 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
22112 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
22113 cat >conftest.$ac_ext <<_ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22119 #include <linux/soundcard.h>
22121 if { (ac_try="$ac_cpp conftest.$ac_ext"
22122 case "(($ac_try" in
22123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22124 *) ac_try_echo
=$ac_try;;
22126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22129 grep -v '^ *+' conftest.er1
>conftest.err
22131 cat conftest.err
>&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } >/dev
/null
; then
22134 if test -s conftest.err
; then
22135 ac_cpp_err
=$ac_c_preproc_warn_flag
22136 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22143 if test -z "$ac_cpp_err"; then
22144 ac_header_preproc
=yes
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.
$ac_ext >&5
22149 ac_header_preproc
=no
22152 rm -f conftest.err conftest.
$ac_ext
22153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22154 echo "${ECHO_T}$ac_header_preproc" >&6; }
22156 # So? What about this header?
22157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22159 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22160 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
22162 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
22163 ac_header_preproc
=yes
22166 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
22167 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
22168 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
22169 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
22170 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
22171 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
22172 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22173 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22174 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
22175 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
22176 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
22177 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
22181 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22182 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22183 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22186 ac_cv_header_linux_soundcard_h
=$ac_header_preproc
22188 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22189 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22192 if test $ac_cv_header_linux_soundcard_h = yes; then
22196 cat >>confdefs.h
<<_ACEOF
22204 if test "$PBX_OSS" = "0"; then
22205 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22206 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22207 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22208 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22211 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22212 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22214 # Is the header compilable?
22215 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
22216 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
22217 cat >conftest.
$ac_ext <<_ACEOF
22220 cat confdefs.h
>>conftest.
$ac_ext
22221 cat >>conftest.
$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22223 $ac_includes_default
22224 #include <sys/soundcard.h>
22226 rm -f conftest.
$ac_objext
22227 if { (ac_try
="$ac_compile"
22228 case "(($ac_try" in
22229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22230 *) ac_try_echo=$ac_try;;
22232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22233 (eval "$ac_compile") 2>conftest.er1
22235 grep -v '^ *+' conftest.er1 >conftest.err
22237 cat conftest.err >&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } &&
22240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22241 { (case "(($ac_try" in
22242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22243 *) ac_try_echo
=$ac_try;;
22245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22246 (eval "$ac_try") 2>&5
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; } &&
22250 { ac_try
='test -s conftest.$ac_objext'
22251 { (case "(($ac_try" in
22252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22253 *) ac_try_echo=$ac_try;;
22255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22256 (eval "$ac_try") 2>&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); }; }; then
22260 ac_header_compiler=yes
22262 echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22265 ac_header_compiler=no
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22270 echo "${ECHO_T}$ac_header_compiler" >&6; }
22272 # Is the header present?
22273 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
22274 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
22275 cat >conftest.$ac_ext <<_ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22281 #include <sys/soundcard.h>
22283 if { (ac_try="$ac_cpp conftest.$ac_ext"
22284 case "(($ac_try" in
22285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22286 *) ac_try_echo
=$ac_try;;
22288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22291 grep -v '^ *+' conftest.er1
>conftest.err
22293 cat conftest.err
>&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } >/dev
/null
; then
22296 if test -s conftest.err
; then
22297 ac_cpp_err
=$ac_c_preproc_warn_flag
22298 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22305 if test -z "$ac_cpp_err"; then
22306 ac_header_preproc
=yes
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.
$ac_ext >&5
22311 ac_header_preproc
=no
22314 rm -f conftest.err conftest.
$ac_ext
22315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22316 echo "${ECHO_T}$ac_header_preproc" >&6; }
22318 # So? What about this header?
22319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22321 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22322 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22323 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
22324 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
22325 ac_header_preproc
=yes
22328 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
22329 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
22330 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
22331 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
22332 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
22333 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
22334 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22335 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22336 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
22337 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
22339 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
22343 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22344 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22345 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22348 ac_cv_header_sys_soundcard_h
=$ac_header_preproc
22350 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22351 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22354 if test $ac_cv_header_sys_soundcard_h = yes; then
22358 cat >>confdefs.h
<<_ACEOF
22367 if test "$PBX_OSS" = "0"; then
22369 if test "${USE_OSS}" != "no"; then
22371 if test "x${OSS_DIR}" != "x"; then
22372 if test -d ${OSS_DIR}/lib
; then
22373 pbxlibdir
="-L${OSS_DIR}/lib"
22375 pbxlibdir
="-L${OSS_DIR}"
22378 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
22379 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
22380 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
22381 echo $ECHO_N "(cached) $ECHO_C" >&6
22383 ac_check_lib_save_LIBS
=$LIBS
22384 LIBS
="-lossaudio ${pbxlibdir} $LIBS"
22385 cat >conftest.
$ac_ext <<_ACEOF
22388 cat confdefs.h
>>conftest.
$ac_ext
22389 cat >>conftest.
$ac_ext <<_ACEOF
22390 /* end confdefs.h. */
22392 /* Override any GCC internal prototype to avoid an error.
22393 Use char because int might match the return type of a GCC
22394 builtin and then its argument prototype would still apply. */
22398 char oss_ioctl_mixer ();
22402 return oss_ioctl_mixer ();
22407 rm -f conftest.
$ac_objext conftest
$ac_exeext
22408 if { (ac_try
="$ac_link"
22409 case "(($ac_try" in
22410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22411 *) ac_try_echo=$ac_try;;
22413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22414 (eval "$ac_link") 2>conftest.er1
22416 grep -v '^ *+' conftest.er1 >conftest.err
22418 cat conftest.err >&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); } &&
22421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22422 { (case "(($ac_try" in
22423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22424 *) ac_try_echo
=$ac_try;;
22426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427 (eval "$ac_try") 2>&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; } &&
22431 { ac_try
='test -s conftest$ac_exeext'
22432 { (case "(($ac_try" in
22433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_try") 2>&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; }; then
22441 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
22443 echo "$as_me: failed program was:" >&5
22444 sed 's/^/| /' conftest.$ac_ext >&5
22446 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
22449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22450 conftest$ac_exeext conftest.$ac_ext
22451 LIBS=$ac_check_lib_save_LIBS
22453 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
22454 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
22455 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
22462 if test "${AST_OSS_FOUND}" = "yes"; then
22463 OSS_LIB="-lossaudio "
22464 OSS_HEADER_FOUND="1"
22465 if test "x${OSS_DIR}" != "x"; then
22466 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
22467 OSS_INCLUDE="-I${OSS_DIR}/include"
22468 if test "xsoundcard.h" != "x" ; then
22469 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" |
$as_tr_sh`
22470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22471 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
22472 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
22473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22474 echo $ECHO_N "(cached) $ECHO_C" >&6
22476 ac_res=`eval echo '${'$as_ac_Header'}'`
22477 { echo "$as_me:$LINENO: result: $ac_res" >&5
22478 echo "${ECHO_T}$ac_res" >&6; }
22480 # Is the header compilable?
22481 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
22482 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
22483 cat >conftest.$ac_ext <<_ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h. */
22489 $ac_includes_default
22490 #include <${OSS_DIR}/include/soundcard.h>
22492 rm -f conftest.$ac_objext
22493 if { (ac_try="$ac_compile"
22494 case "(($ac_try" in
22495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22496 *) ac_try_echo
=$ac_try;;
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499 (eval "$ac_compile") 2>conftest.er1
22501 grep -v '^ *+' conftest.er1
>conftest.err
22503 cat conftest.err
>&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } &&
22506 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22507 { (case "(($ac_try" in
22508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512 (eval "$ac_try") 2>&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; } &&
22516 { ac_try='test -s conftest.$ac_objext'
22517 { (case "(($ac_try" in
22518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22519 *) ac_try_echo
=$ac_try;;
22521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22522 (eval "$ac_try") 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }; then
22526 ac_header_compiler
=yes
22528 echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.
$ac_ext >&5
22531 ac_header_compiler
=no
22534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22536 echo "${ECHO_T}$ac_header_compiler" >&6; }
22538 # Is the header present?
22539 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
22540 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
22541 cat >conftest.
$ac_ext <<_ACEOF
22544 cat confdefs.h
>>conftest.
$ac_ext
22545 cat >>conftest.
$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22547 #include <${OSS_DIR}/include/soundcard.h>
22549 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22550 case "(($ac_try" in
22551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22552 *) ac_try_echo=$ac_try;;
22554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22557 grep -v '^ *+' conftest.er1 >conftest.err
22559 cat conftest.err >&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } >/dev/null; then
22562 if test -s conftest.err; then
22563 ac_cpp_err=$ac_c_preproc_warn_flag
22564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22571 if test -z "$ac_cpp_err"; then
22572 ac_header_preproc=yes
22574 echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22577 ac_header_preproc=no
22580 rm -f conftest.err conftest.$ac_ext
22581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22582 echo "${ECHO_T}$ac_header_preproc" >&6; }
22584 # So? What about this header?
22585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22587 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22588 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22589 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
22590 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
22591 ac_header_preproc=yes
22594 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
22595 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
22596 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
22597 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
22598 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
22599 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
22600 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22601 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22602 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
22603 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
22604 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
22605 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
22609 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
22610 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
22611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22612 echo $ECHO_N "(cached) $ECHO_C" >&6
22614 eval "$as_ac_Header=\$ac_header_preproc"
22616 ac_res=`eval echo '${'$as_ac_Header'}'`
22617 { echo "$as_me:$LINENO: result: $ac_res" >&5
22618 echo "${ECHO_T}$ac_res" >&6; }
22621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22630 if test "xsoundcard.h" != "x" ; then
22631 if test "${ac_cv_header_soundcard_h+set}" = set; then
22632 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22633 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22634 if test "${ac_cv_header_soundcard_h+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22638 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22640 # Is the header compilable?
22641 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
22642 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
22643 cat >conftest.$ac_ext <<_ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h. */
22649 $ac_includes_default
22650 #include <soundcard.h>
22652 rm -f conftest.$ac_objext
22653 if { (ac_try="$ac_compile"
22654 case "(($ac_try" in
22655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22656 *) ac_try_echo
=$ac_try;;
22658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22659 (eval "$ac_compile") 2>conftest.er1
22661 grep -v '^ *+' conftest.er1
>conftest.err
22663 cat conftest.err
>&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } &&
22666 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22667 { (case "(($ac_try" in
22668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22669 *) ac_try_echo=$ac_try;;
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672 (eval "$ac_try") 2>&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); }; } &&
22676 { ac_try='test -s conftest.$ac_objext'
22677 { (case "(($ac_try" in
22678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22679 *) ac_try_echo
=$ac_try;;
22681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22682 (eval "$ac_try") 2>&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; }; then
22686 ac_header_compiler
=yes
22688 echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.
$ac_ext >&5
22691 ac_header_compiler
=no
22694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22696 echo "${ECHO_T}$ac_header_compiler" >&6; }
22698 # Is the header present?
22699 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
22700 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
22701 cat >conftest.
$ac_ext <<_ACEOF
22704 cat confdefs.h
>>conftest.
$ac_ext
22705 cat >>conftest.
$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22707 #include <soundcard.h>
22709 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22710 case "(($ac_try" in
22711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22717 grep -v '^ *+' conftest.er1 >conftest.err
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } >/dev/null; then
22722 if test -s conftest.err; then
22723 ac_cpp_err=$ac_c_preproc_warn_flag
22724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22731 if test -z "$ac_cpp_err"; then
22732 ac_header_preproc=yes
22734 echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22737 ac_header_preproc=no
22740 rm -f conftest.err conftest.$ac_ext
22741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22742 echo "${ECHO_T}$ac_header_preproc" >&6; }
22744 # So? What about this header?
22745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22747 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22748 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22749 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
22750 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
22751 ac_header_preproc=yes
22754 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
22755 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
22756 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
22757 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
22758 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
22759 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
22760 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22761 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22762 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
22763 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
22764 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
22765 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
22769 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22770 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22771 if test "${ac_cv_header_soundcard_h+set}" = set; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22774 ac_cv_header_soundcard_h=$ac_header_preproc
22776 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22777 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22780 if test $ac_cv_header_soundcard_h = yes; then
22789 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
22790 if test ! -z "${OSS_MANDATORY}" ;
22792 { echo "$as_me:$LINENO: ***" >&5
22793 echo "$as_me: ***" >&6;}
22794 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
22795 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
22796 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support" >&5
22797 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support" >&or re-run configure;}
22798 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22799 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22808 cat >>confdefs.h <<_ACEOF
22813 elif test ! -z "${OSS_MANDATORY}";
22815 { echo "$as_me:$LINENO: ***" >&5
22816 echo "$as_me: ***" >&6;}
22817 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
22818 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
22819 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
22820 echo "$as_me: *** Either correct the installation" >&or run configure;}
22821 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22822 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22830 if test "${USE_PGSQL}" != "no"; then
22831 if test "x${PGSQL_DIR}" != "x"; then
22832 if test -n "$ac_tool_prefix"; then
22833 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22834 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22837 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22838 echo $ECHO_N "(cached) $ECHO_C" >&6
22842 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22846 for as_dir in ${PGSQL_DIR}/bin
22849 test -z "$as_dir" && as_dir=.
22850 for ac_exec_ext in '' $ac_executable_extensions; do
22851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22852 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22863 PG_CONFIG=$ac_cv_path_PG_CONFIG
22864 if test -n "$PG_CONFIG"; then
22865 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22866 echo "${ECHO_T}$PG_CONFIG" >&6; }
22868 { echo "$as_me:$LINENO: result: no" >&5
22869 echo "${ECHO_T}no" >&6; }
22874 if test -z "$ac_cv_path_PG_CONFIG"; then
22875 ac_pt_PG_CONFIG=$PG_CONFIG
22876 # Extract the first word of "pg_config", so it can be a program name with args.
22877 set dummy pg_config; ac_word=$2
22878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22880 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22883 case $ac_pt_PG_CONFIG in
22885 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22889 for as_dir in ${PGSQL_DIR}/bin
22892 test -z "$as_dir" && as_dir=.
22893 for ac_exec_ext in '' $ac_executable_extensions; do
22894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22895 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22906 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22907 if test -n "$ac_pt_PG_CONFIG"; then
22908 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22909 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22911 { echo "$as_me:$LINENO: result: no" >&5
22912 echo "${ECHO_T}no" >&6; }
22915 if test "x$ac_pt_PG_CONFIG" = x; then
22918 case $cross_compiling:$ac_tool_warned in
22920 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22921 whose name does not start with the host triplet. If you think this
22922 configuration is useful to you, please write to autoconf@gnu.org." >&5
22923 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22924 whose name does not start with the host triplet. If you think this
22925 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22926 ac_tool_warned=yes ;;
22928 PG_CONFIG=$ac_pt_PG_CONFIG
22931 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22934 if test x"${PG_CONFIG}" = xNo; then
22935 { echo "$as_me:$LINENO: ***" >&5
22936 echo "$as_me: ***" >&6;}
22937 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
22938 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
22939 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
22940 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
22941 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
22942 echo "$as_me: *** Either correct the installation" >&or run configure;}
22943 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22944 echo "$as_me: *** including --without-postgres" >&6;}
22948 if test -n "$ac_tool_prefix"; then
22949 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22950 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22953 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22958 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22962 for as_dir in $PATH
22965 test -z "$as_dir" && as_dir=.
22966 for ac_exec_ext in '' $ac_executable_extensions; do
22967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22968 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22979 PG_CONFIG=$ac_cv_path_PG_CONFIG
22980 if test -n "$PG_CONFIG"; then
22981 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22982 echo "${ECHO_T}$PG_CONFIG" >&6; }
22984 { echo "$as_me:$LINENO: result: no" >&5
22985 echo "${ECHO_T}no" >&6; }
22990 if test -z "$ac_cv_path_PG_CONFIG"; then
22991 ac_pt_PG_CONFIG=$PG_CONFIG
22992 # Extract the first word of "pg_config", so it can be a program name with args.
22993 set dummy pg_config; ac_word=$2
22994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22996 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22997 echo $ECHO_N "(cached) $ECHO_C" >&6
22999 case $ac_pt_PG_CONFIG in
23001 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23005 for as_dir in $PATH
23008 test -z "$as_dir" && as_dir=.
23009 for ac_exec_ext in '' $ac_executable_extensions; do
23010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23011 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23022 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23023 if test -n "$ac_pt_PG_CONFIG"; then
23024 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23025 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23027 { echo "$as_me:$LINENO: result: no" >&5
23028 echo "${ECHO_T}no" >&6; }
23031 if test "x$ac_pt_PG_CONFIG" = x; then
23034 case $cross_compiling:$ac_tool_warned in
23036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23037 whose name does not start with the host triplet. If you think this
23038 configuration is useful to you, please write to autoconf@gnu.org." >&5
23039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23040 whose name does not start with the host triplet. If you think this
23041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23042 ac_tool_warned=yes ;;
23044 PG_CONFIG=$ac_pt_PG_CONFIG
23047 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23052 if test "${PG_CONFIG}" != No; then
23053 PGSQL_libdir=`pg_config
--libdir`
23054 PGSQL_includedir=`pg_config
--includedir`
23056 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
23057 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
23058 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23061 ac_check_lib_save_LIBS=$LIBS
23062 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
23063 cat >conftest.$ac_ext <<_ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h. */
23070 /* Override any GCC internal prototype to avoid an error.
23071 Use char because int might match the return type of a GCC
23072 builtin and then its argument prototype would still apply. */
23085 rm -f conftest.$ac_objext conftest$ac_exeext
23086 if { (ac_try="$ac_link"
23087 case "(($ac_try" in
23088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23089 *) ac_try_echo
=$ac_try;;
23091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23092 (eval "$ac_link") 2>conftest.er1
23094 grep -v '^ *+' conftest.er1
>conftest.err
23096 cat conftest.err
>&5
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } &&
23099 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23100 { (case "(($ac_try" in
23101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23102 *) ac_try_echo=$ac_try;;
23104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23105 (eval "$ac_try") 2>&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); }; } &&
23109 { ac_try='test -s conftest$ac_exeext'
23110 { (case "(($ac_try" in
23111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23112 *) ac_try_echo
=$ac_try;;
23114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23115 (eval "$ac_try") 2>&5
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); }; }; then
23119 ac_cv_lib_pq_PQexec
=yes
23121 echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.
$ac_ext >&5
23124 ac_cv_lib_pq_PQexec
=no
23127 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23128 conftest
$ac_exeext conftest.
$ac_ext
23129 LIBS
=$ac_check_lib_save_LIBS
23131 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
23132 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
23133 if test $ac_cv_lib_pq_PQexec = yes; then
23135 cat >>confdefs.h
<<_ACEOF
23136 #define HAVE_PGSQL 1
23142 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
23143 PGSQL_LIB
="-L${PGSQL_libdir} -lpq -lz"
23144 PGSQL_INCLUDE
="-I${PGSQL_includedir}"
23146 elif test ! -z "${PGSQL_MANDATORY}";
23148 { echo "$as_me:$LINENO: ***" >&5
23149 echo "$as_me: ***" >&6;}
23150 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23151 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23152 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23153 echo "$as_me: *** Either correct the installation" >&or run configure
;}
23154 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23155 echo "$as_me: *** including --without-postgres" >&6;}
23158 elif test ! -z "${PGSQL_MANDATORY}";
23160 { echo "$as_me:$LINENO: ***" >&5
23161 echo "$as_me: ***" >&6;}
23162 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23163 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23164 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23165 echo "$as_me: *** Either correct the installation" >&or run configure
;}
23166 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23167 echo "$as_me: *** including --without-postgres" >&6;}
23172 if test "${USE_POPT}" != "no"; then
23174 if test "x${POPT_DIR}" != "x"; then
23175 if test -d ${POPT_DIR}/lib
; then
23176 pbxlibdir
="-L${POPT_DIR}/lib"
23178 pbxlibdir
="-L${POPT_DIR}"
23181 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
23182 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
23183 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
23184 echo $ECHO_N "(cached) $ECHO_C" >&6
23186 ac_check_lib_save_LIBS
=$LIBS
23187 LIBS
="-lpopt ${pbxlibdir} $LIBS"
23188 cat >conftest.
$ac_ext <<_ACEOF
23191 cat confdefs.h
>>conftest.
$ac_ext
23192 cat >>conftest.
$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23195 /* Override any GCC internal prototype to avoid an error.
23196 Use char because int might match the return type of a GCC
23197 builtin and then its argument prototype would still apply. */
23201 char poptStrerror ();
23205 return poptStrerror ();
23210 rm -f conftest.
$ac_objext conftest
$ac_exeext
23211 if { (ac_try
="$ac_link"
23212 case "(($ac_try" in
23213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_link") 2>conftest.er1
23219 grep -v '^ *+' conftest.er1 >conftest.err
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
23224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23225 { (case "(($ac_try" in
23226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23227 *) ac_try_echo
=$ac_try;;
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_try") 2>&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; } &&
23234 { ac_try
='test -s conftest$ac_exeext'
23235 { (case "(($ac_try" in
23236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23237 *) ac_try_echo=$ac_try;;
23239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23240 (eval "$ac_try") 2>&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; }; then
23244 ac_cv_lib_popt_poptStrerror=yes
23246 echo "$as_me: failed program was:" >&5
23247 sed 's/^/| /' conftest.$ac_ext >&5
23249 ac_cv_lib_popt_poptStrerror=no
23252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23253 conftest$ac_exeext conftest.$ac_ext
23254 LIBS=$ac_check_lib_save_LIBS
23256 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
23257 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
23258 if test $ac_cv_lib_popt_poptStrerror = yes; then
23265 if test "${AST_POPT_FOUND}" = "yes"; then
23267 POPT_HEADER_FOUND="1"
23268 if test "x${POPT_DIR}" != "x"; then
23269 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
23270 POPT_INCLUDE="-I${POPT_DIR}/include"
23271 if test "xpopt.h" != "x" ; then
23272 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" |
$as_tr_sh`
23273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23274 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23275 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23277 echo $ECHO_N "(cached) $ECHO_C" >&6
23279 ac_res=`eval echo '${'$as_ac_Header'}'`
23280 { echo "$as_me:$LINENO: result: $ac_res" >&5
23281 echo "${ECHO_T}$ac_res" >&6; }
23283 # Is the header compilable?
23284 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
23285 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
23286 cat >conftest.$ac_ext <<_ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h. */
23292 $ac_includes_default
23293 #include <${POPT_DIR}/include/popt.h>
23295 rm -f conftest.$ac_objext
23296 if { (ac_try="$ac_compile"
23297 case "(($ac_try" in
23298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23299 *) ac_try_echo
=$ac_try;;
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_compile") 2>conftest.er1
23304 grep -v '^ *+' conftest.er1
>conftest.err
23306 cat conftest.err
>&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } &&
23309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23310 { (case "(($ac_try" in
23311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23312 *) ac_try_echo=$ac_try;;
23314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23315 (eval "$ac_try") 2>&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); }; } &&
23319 { ac_try='test -s conftest.$ac_objext'
23320 { (case "(($ac_try" in
23321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23322 *) ac_try_echo
=$ac_try;;
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325 (eval "$ac_try") 2>&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); }; }; then
23329 ac_header_compiler
=yes
23331 echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.
$ac_ext >&5
23334 ac_header_compiler
=no
23337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23339 echo "${ECHO_T}$ac_header_compiler" >&6; }
23341 # Is the header present?
23342 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
23343 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
23344 cat >conftest.
$ac_ext <<_ACEOF
23347 cat confdefs.h
>>conftest.
$ac_ext
23348 cat >>conftest.
$ac_ext <<_ACEOF
23349 /* end confdefs.h. */
23350 #include <${POPT_DIR}/include/popt.h>
23352 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23353 case "(($ac_try" in
23354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23360 grep -v '^ *+' conftest.er1 >conftest.err
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } >/dev/null; then
23365 if test -s conftest.err; then
23366 ac_cpp_err=$ac_c_preproc_warn_flag
23367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23374 if test -z "$ac_cpp_err"; then
23375 ac_header_preproc=yes
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23380 ac_header_preproc=no
23383 rm -f conftest.err conftest.$ac_ext
23384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23385 echo "${ECHO_T}$ac_header_preproc" >&6; }
23387 # So? What about this header?
23388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23390 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23391 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23392 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
23393 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
23394 ac_header_preproc=yes
23397 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
23398 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
23399 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
23400 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
23401 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
23402 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
23403 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
23404 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23405 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
23406 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
23407 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
23408 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
23412 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23413 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
23417 eval "$as_ac_Header=\$ac_header_preproc"
23419 ac_res=`eval echo '${'$as_ac_Header'}'`
23420 { echo "$as_me:$LINENO: result: $ac_res" >&5
23421 echo "${ECHO_T}$ac_res" >&6; }
23424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23425 POPT_HEADER_FOUND=1
23427 POPT_HEADER_FOUND=0
23433 if test "xpopt.h" != "x" ; then
23434 if test "${ac_cv_header_popt_h+set}" = set; then
23435 { echo "$as_me:$LINENO: checking for popt.h" >&5
23436 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23437 if test "${ac_cv_header_popt_h+set}" = set; then
23438 echo $ECHO_N "(cached) $ECHO_C" >&6
23440 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23441 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23443 # Is the header compilable?
23444 { echo "$as_me:$LINENO: checking popt.h usability" >&5
23445 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
23446 cat >conftest.$ac_ext <<_ACEOF
23449 cat confdefs.h >>conftest.$ac_ext
23450 cat >>conftest.$ac_ext <<_ACEOF
23451 /* end confdefs.h. */
23452 $ac_includes_default
23455 rm -f conftest.$ac_objext
23456 if { (ac_try="$ac_compile"
23457 case "(($ac_try" in
23458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23459 *) ac_try_echo
=$ac_try;;
23461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23462 (eval "$ac_compile") 2>conftest.er1
23464 grep -v '^ *+' conftest.er1
>conftest.err
23466 cat conftest.err
>&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } &&
23469 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23470 { (case "(($ac_try" in
23471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23472 *) ac_try_echo=$ac_try;;
23474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23475 (eval "$ac_try") 2>&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); }; } &&
23479 { ac_try='test -s conftest.$ac_objext'
23480 { (case "(($ac_try" in
23481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23482 *) ac_try_echo
=$ac_try;;
23484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23485 (eval "$ac_try") 2>&5
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); }; }; then
23489 ac_header_compiler
=yes
23491 echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.
$ac_ext >&5
23494 ac_header_compiler
=no
23497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23499 echo "${ECHO_T}$ac_header_compiler" >&6; }
23501 # Is the header present?
23502 { echo "$as_me:$LINENO: checking popt.h presence" >&5
23503 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
23504 cat >conftest.
$ac_ext <<_ACEOF
23507 cat confdefs.h
>>conftest.
$ac_ext
23508 cat >>conftest.
$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23512 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23513 case "(($ac_try" in
23514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23520 grep -v '^ *+' conftest.er1 >conftest.err
23522 cat conftest.err >&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } >/dev/null; then
23525 if test -s conftest.err; then
23526 ac_cpp_err=$ac_c_preproc_warn_flag
23527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23534 if test -z "$ac_cpp_err"; then
23535 ac_header_preproc=yes
23537 echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23540 ac_header_preproc=no
23543 rm -f conftest.err conftest.$ac_ext
23544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23545 echo "${ECHO_T}$ac_header_preproc" >&6; }
23547 # So? What about this header?
23548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23550 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23551 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23552 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
23553 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
23554 ac_header_preproc=yes
23557 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
23558 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
23559 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
23560 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
23561 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
23562 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
23563 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
23564 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23565 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
23566 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
23567 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
23568 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
23572 { echo "$as_me:$LINENO: checking for popt.h" >&5
23573 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23574 if test "${ac_cv_header_popt_h+set}" = set; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 ac_cv_header_popt_h=$ac_header_preproc
23579 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23580 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23583 if test $ac_cv_header_popt_h = yes; then
23584 POPT_HEADER_FOUND=1
23586 POPT_HEADER_FOUND=0
23592 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
23593 if test ! -z "${POPT_MANDATORY}" ;
23595 { echo "$as_me:$LINENO: ***" >&5
23596 echo "$as_me: ***" >&6;}
23597 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
23598 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
23599 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support" >&5
23600 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support" >&or re-run configure;}
23601 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23602 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23611 cat >>confdefs.h <<_ACEOF
23612 #define HAVE_POPT 1
23616 elif test ! -z "${POPT_MANDATORY}";
23618 { echo "$as_me:$LINENO: ***" >&5
23619 echo "$as_me: ***" >&6;}
23620 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
23621 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
23622 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23623 echo "$as_me: *** Either correct the installation" >&or run configure;}
23624 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23625 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23632 if test "${USE_PRI}" != "no"; then
23634 if test "x${PRI_DIR}" != "x"; then
23635 if test -d ${PRI_DIR}/lib; then
23636 pbxlibdir="-L${PRI_DIR}/lib"
23638 pbxlibdir="-L${PRI_DIR}"
23641 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
23642 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
23643 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23646 ac_check_lib_save_LIBS=$LIBS
23647 LIBS="-lpri ${pbxlibdir} $LIBS"
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23655 /* Override any GCC internal prototype to avoid an error.
23656 Use char because int might match the return type of a GCC
23657 builtin and then its argument prototype would still apply. */
23665 return pri_call ();
23670 rm -f conftest.$ac_objext conftest$ac_exeext
23671 if { (ac_try="$ac_link"
23672 case "(($ac_try" in
23673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23674 *) ac_try_echo
=$ac_try;;
23676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23677 (eval "$ac_link") 2>conftest.er1
23679 grep -v '^ *+' conftest.er1
>conftest.err
23681 cat conftest.err
>&5
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); } &&
23684 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23685 { (case "(($ac_try" in
23686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23687 *) ac_try_echo=$ac_try;;
23689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23690 (eval "$ac_try") 2>&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; } &&
23694 { ac_try='test -s conftest$ac_exeext'
23695 { (case "(($ac_try" in
23696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23697 *) ac_try_echo
=$ac_try;;
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700 (eval "$ac_try") 2>&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); }; }; then
23704 ac_cv_lib_pri_pri_call
=yes
23706 echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.
$ac_ext >&5
23709 ac_cv_lib_pri_pri_call
=no
23712 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23713 conftest
$ac_exeext conftest.
$ac_ext
23714 LIBS
=$ac_check_lib_save_LIBS
23716 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
23717 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
23718 if test $ac_cv_lib_pri_pri_call = yes; then
23725 if test "${AST_PRI_FOUND}" = "yes"; then
23727 PRI_HEADER_FOUND
="1"
23728 if test "x${PRI_DIR}" != "x"; then
23729 PRI_LIB
="${pbxlibdir} ${PRI_LIB}"
23730 PRI_INCLUDE
="-I${PRI_DIR}/include"
23731 if test "xlibpri.h" != "x" ; then
23732 as_ac_Header
=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
23733 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23734 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
23735 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
23736 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23739 ac_res
=`eval echo '${'$as_ac_Header'}'`
23740 { echo "$as_me:$LINENO: result: $ac_res" >&5
23741 echo "${ECHO_T}$ac_res" >&6; }
23743 # Is the header compilable?
23744 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
23745 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
23746 cat >conftest.
$ac_ext <<_ACEOF
23749 cat confdefs.h
>>conftest.
$ac_ext
23750 cat >>conftest.
$ac_ext <<_ACEOF
23751 /* end confdefs.h. */
23752 $ac_includes_default
23753 #include <${PRI_DIR}/include/libpri.h>
23755 rm -f conftest.
$ac_objext
23756 if { (ac_try
="$ac_compile"
23757 case "(($ac_try" in
23758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23762 (eval "$ac_compile") 2>conftest.er1
23764 grep -v '^ *+' conftest.er1 >conftest.err
23766 cat conftest.err >&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); } &&
23769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23770 { (case "(($ac_try" in
23771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23772 *) ac_try_echo
=$ac_try;;
23774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23775 (eval "$ac_try") 2>&5
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); }; } &&
23779 { ac_try
='test -s conftest.$ac_objext'
23780 { (case "(($ac_try" in
23781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_try") 2>&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
23789 ac_header_compiler=yes
23791 echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23794 ac_header_compiler=no
23797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23799 echo "${ECHO_T}$ac_header_compiler" >&6; }
23801 # Is the header present?
23802 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
23803 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
23804 cat >conftest.$ac_ext <<_ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h. */
23810 #include <${PRI_DIR}/include/libpri.h>
23812 if { (ac_try="$ac_cpp conftest.$ac_ext"
23813 case "(($ac_try" in
23814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23815 *) ac_try_echo
=$ac_try;;
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23820 grep -v '^ *+' conftest.er1
>conftest.err
23822 cat conftest.err
>&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); } >/dev
/null
; then
23825 if test -s conftest.err
; then
23826 ac_cpp_err
=$ac_c_preproc_warn_flag
23827 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
23834 if test -z "$ac_cpp_err"; then
23835 ac_header_preproc
=yes
23837 echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.
$ac_ext >&5
23840 ac_header_preproc
=no
23843 rm -f conftest.err conftest.
$ac_ext
23844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23845 echo "${ECHO_T}$ac_header_preproc" >&6; }
23847 # So? What about this header?
23848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23850 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23851 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23852 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
23853 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
23854 ac_header_preproc
=yes
23857 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
23858 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
23859 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
23860 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
23861 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
23862 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
23863 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23864 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23865 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
23866 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
23867 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
23868 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
23872 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
23873 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
23874 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23875 echo $ECHO_N "(cached) $ECHO_C" >&6
23877 eval "$as_ac_Header=\$ac_header_preproc"
23879 ac_res
=`eval echo '${'$as_ac_Header'}'`
23880 { echo "$as_me:$LINENO: result: $ac_res" >&5
23881 echo "${ECHO_T}$ac_res" >&6; }
23884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23893 if test "xlibpri.h" != "x" ; then
23894 if test "${ac_cv_header_libpri_h+set}" = set; then
23895 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23896 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23897 if test "${ac_cv_header_libpri_h+set}" = set; then
23898 echo $ECHO_N "(cached) $ECHO_C" >&6
23900 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23901 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23903 # Is the header compilable?
23904 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
23905 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
23906 cat >conftest.
$ac_ext <<_ACEOF
23909 cat confdefs.h
>>conftest.
$ac_ext
23910 cat >>conftest.
$ac_ext <<_ACEOF
23911 /* end confdefs.h. */
23912 $ac_includes_default
23913 #include <libpri.h>
23915 rm -f conftest.
$ac_objext
23916 if { (ac_try
="$ac_compile"
23917 case "(($ac_try" in
23918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922 (eval "$ac_compile") 2>conftest.er1
23924 grep -v '^ *+' conftest.er1 >conftest.err
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } &&
23929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23930 { (case "(($ac_try" in
23931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23932 *) ac_try_echo
=$ac_try;;
23934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23935 (eval "$ac_try") 2>&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); }; } &&
23939 { ac_try
='test -s conftest.$ac_objext'
23940 { (case "(($ac_try" in
23941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23942 *) ac_try_echo=$ac_try;;
23944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23945 (eval "$ac_try") 2>&5
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); }; }; then
23949 ac_header_compiler=yes
23951 echo "$as_me: failed program was:" >&5
23952 sed 's/^/| /' conftest.$ac_ext >&5
23954 ac_header_compiler=no
23957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23959 echo "${ECHO_T}$ac_header_compiler" >&6; }
23961 # Is the header present?
23962 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
23963 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
23964 cat >conftest.$ac_ext <<_ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h. */
23970 #include <libpri.h>
23972 if { (ac_try="$ac_cpp conftest.$ac_ext"
23973 case "(($ac_try" in
23974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23975 *) ac_try_echo
=$ac_try;;
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23980 grep -v '^ *+' conftest.er1
>conftest.err
23982 cat conftest.err
>&5
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } >/dev
/null
; then
23985 if test -s conftest.err
; then
23986 ac_cpp_err
=$ac_c_preproc_warn_flag
23987 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
23994 if test -z "$ac_cpp_err"; then
23995 ac_header_preproc
=yes
23997 echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.
$ac_ext >&5
24000 ac_header_preproc
=no
24003 rm -f conftest.err conftest.
$ac_ext
24004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24005 echo "${ECHO_T}$ac_header_preproc" >&6; }
24007 # So? What about this header?
24008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24010 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24011 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24012 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
24013 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
24014 ac_header_preproc
=yes
24017 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
24018 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
24019 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
24020 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
24021 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
24022 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
24023 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24024 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24025 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
24026 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
24027 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
24028 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
24032 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24033 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24034 if test "${ac_cv_header_libpri_h+set}" = set; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24037 ac_cv_header_libpri_h
=$ac_header_preproc
24039 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24040 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24043 if test $ac_cv_header_libpri_h = yes; then
24052 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
24053 if test ! -z "${PRI_MANDATORY}" ;
24055 { echo "$as_me:$LINENO: ***" >&5
24056 echo "$as_me: ***" >&6;}
24057 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
24058 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
24059 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support" >&5
24060 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support" >&or re-run configure
;}
24061 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24062 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24071 cat >>confdefs.h
<<_ACEOF
24076 elif test ! -z "${PRI_MANDATORY}";
24078 { echo "$as_me:$LINENO: ***" >&5
24079 echo "$as_me: ***" >&6;}
24080 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
24081 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
24082 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
24083 echo "$as_me: *** Either correct the installation" >&or run configure
;}
24084 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24085 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24091 if test "${USE_PWLIB}" != "no"; then
24092 if test ! -z "${PWLIB_DIR}"; then
24093 PWLIBDIR
="${PWLIB_DIR}"
24098 if test "${PWLIBDIR:-unset}" != "unset" ; then
24099 as_ac_File
=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
24100 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24101 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24102 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24103 echo $ECHO_N "(cached) $ECHO_C" >&6
24105 test "$cross_compiling" = yes &&
24106 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24107 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24108 { (exit 1); exit 1; }; }
24109 if test -r "${PWLIBDIR}/version.h"; then
24110 eval "$as_ac_File=yes"
24112 eval "$as_ac_File=no"
24115 ac_res
=`eval echo '${'$as_ac_File'}'`
24116 { echo "$as_me:$LINENO: result: $ac_res" >&5
24117 echo "${ECHO_T}$ac_res" >&6; }
24118 if test `eval echo '${'$as_ac_File'}'` = yes; then
24123 if test "${HAS_PWLIB:-unset}" = "unset" ; then
24124 if test "${OPENH323DIR:-unset}" != "unset"; then
24125 as_ac_File
=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
24126 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24127 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24128 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24129 echo $ECHO_N "(cached) $ECHO_C" >&6
24131 test "$cross_compiling" = yes &&
24132 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24133 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24134 { (exit 1); exit 1; }; }
24135 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
24136 eval "$as_ac_File=yes"
24138 eval "$as_ac_File=no"
24141 ac_res
=`eval echo '${'$as_ac_File'}'`
24142 { echo "$as_me:$LINENO: result: $ac_res" >&5
24143 echo "${ECHO_T}$ac_res" >&6; }
24144 if test `eval echo '${'$as_ac_File'}'` = yes; then
24149 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24150 PWLIBDIR
="${OPENH323DIR}/../pwlib"
24152 as_ac_File
=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
24153 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
24154 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
24155 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24156 echo $ECHO_N "(cached) $ECHO_C" >&6
24158 test "$cross_compiling" = yes &&
24159 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24160 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24161 { (exit 1); exit 1; }; }
24162 if test -r "${HOME}/pwlib/include/ptlib.h"; then
24163 eval "$as_ac_File=yes"
24165 eval "$as_ac_File=no"
24168 ac_res
=`eval echo '${'$as_ac_File'}'`
24169 { echo "$as_me:$LINENO: result: $ac_res" >&5
24170 echo "${ECHO_T}$ac_res" >&6; }
24171 if test `eval echo '${'$as_ac_File'}'` = yes; then
24175 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24176 PWLIBDIR
="${HOME}/pwlib"
24178 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
24179 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
24180 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
24181 echo $ECHO_N "(cached) $ECHO_C" >&6
24183 test "$cross_compiling" = yes &&
24184 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24185 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24186 { (exit 1); exit 1; }; }
24187 if test -r "/usr/local/include/ptlib.h"; then
24188 ac_cv_file__usr_local_include_ptlib_h
=yes
24190 ac_cv_file__usr_local_include_ptlib_h
=no
24193 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
24194 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
24195 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
24199 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24200 # Extract the first word of "ptlib-config", so it can be a program name with args.
24201 set dummy ptlib-config
; ac_word
=$2
24202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24204 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24205 echo $ECHO_N "(cached) $ECHO_C" >&6
24207 case $PTLIB_CONFIG in
24209 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
24212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24213 for as_dir
in /usr
/local
/bin
24216 test -z "$as_dir" && as_dir
=.
24217 for ac_exec_ext
in '' $ac_executable_extensions; do
24218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24219 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24230 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
24231 if test -n "$PTLIB_CONFIG"; then
24232 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24233 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24235 { echo "$as_me:$LINENO: result: no" >&5
24236 echo "${ECHO_T}no" >&6; }
24240 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
24241 # Extract the first word of "ptlib-config", so it can be a program name with args.
24242 set dummy ptlib-config
; ac_word
=$2
24243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24245 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24246 echo $ECHO_N "(cached) $ECHO_C" >&6
24248 case $PTLIB_CONFIG in
24250 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
24253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24254 for as_dir
in /usr
/local
/share
/pwlib
/make
24257 test -z "$as_dir" && as_dir
=.
24258 for ac_exec_ext
in '' $ac_executable_extensions; do
24259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24260 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24271 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
24272 if test -n "$PTLIB_CONFIG"; then
24273 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24274 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24276 { echo "$as_me:$LINENO: result: no" >&5
24277 echo "${ECHO_T}no" >&6; }
24282 PWLIB_INCDIR
="/usr/local/include"
24283 PWLIB_LIBDIR
="/usr/local/lib"
24285 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
24286 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
24287 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
24288 echo $ECHO_N "(cached) $ECHO_C" >&6
24290 test "$cross_compiling" = yes &&
24291 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24292 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24293 { (exit 1); exit 1; }; }
24294 if test -r "/usr/include/ptlib.h"; then
24295 ac_cv_file__usr_include_ptlib_h
=yes
24297 ac_cv_file__usr_include_ptlib_h
=no
24300 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
24301 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
24302 if test $ac_cv_file__usr_include_ptlib_h = yes; then
24306 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24307 # Extract the first word of "ptlib-config", so it can be a program name with args.
24308 set dummy ptlib-config
; ac_word
=$2
24309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24311 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24312 echo $ECHO_N "(cached) $ECHO_C" >&6
24314 case $PTLIB_CONFIG in
24316 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
24319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24320 for as_dir
in /usr
/share
/pwlib
/make
24323 test -z "$as_dir" && as_dir
=.
24324 for ac_exec_ext
in '' $ac_executable_extensions; do
24325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24326 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
24327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24337 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
24338 if test -n "$PTLIB_CONFIG"; then
24339 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24340 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24342 { echo "$as_me:$LINENO: result: no" >&5
24343 echo "${ECHO_T}no" >&6; }
24347 PWLIB_INCDIR
="/usr/include"
24348 PWLIB_LIBDIR
="/usr/lib"
24355 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
24356 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
24360 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24361 if test "${PWLIBDIR:-unset}" = "unset" ; then
24362 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
24363 PWLIBDIR
=`$PTLIB_CONFIG --prefix`
24365 echo "Cannot find ptlib-config - please install and try again"
24370 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
24371 PWLIBDIR
="/usr/share/pwlib"
24372 PWLIB_INCDIR
="/usr/include"
24373 PWLIB_LIBDIR
="/usr/lib"
24375 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
24376 PWLIBDIR
="/usr/local/share/pwlib"
24377 PWLIB_INCDIR
="/usr/local/include"
24378 PWLIB_LIBDIR
="/usr/local/lib"
24381 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
24382 PWLIB_INCDIR
="${PWLIBDIR}/include"
24384 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
24385 PWLIB_LIBDIR
="${PWLIBDIR}/lib"
24394 if test "${HAS_PWLIB:-unset}" != "unset"; then
24395 PWLIB_VERSION
=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
24396 PWLIB_MAJOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f1 -d.`
24397 PWLIB_MINOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f2 -d.`
24398 PWLIB_BUILD_NUMBER
=`echo ${PWLIB_VERSION} | cut -f3 -d.`
24399 let PWLIB_VER
=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
24400 let PWLIB_REQ
=1*10000+9*100+2
24402 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
24403 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
24404 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
24405 { echo "$as_me:$LINENO: result: no" >&5
24406 echo "${ECHO_T}no" >&6; }
24409 { echo "$as_me:$LINENO: result: yes" >&5
24410 echo "${ECHO_T}yes" >&6; }
24415 if test "${HAS_PWLIB:-unset}" != "unset"; then
24419 linux
*) PWLIB_OSTYPE
=linux
;
24421 freebsd
* ) PWLIB_OSTYPE
=FreeBSD
;
24423 openbsd
* ) PWLIB_OSTYPE
=OpenBSD
;
24424 ENDLDLIBS
="-lossaudio" ;
24426 netbsd
* ) PWLIB_OSTYPE
=NetBSD
;
24427 ENDLDLIBS
="-lossaudio" ;
24429 solaris
* | sunos
* ) PWLIB_OSTYPE
=solaris
;
24431 darwin
* ) PWLIB_OSTYPE
=Darwin
;
24433 beos
*) PWLIB_OSTYPE
=beos
;
24434 STDCCFLAGS
="$STDCCFLAGS -D__BEOS__"
24436 cygwin
*) PWLIB_OSTYPE
=cygwin
;
24438 mingw
*) PWLIB_OSTYPE
=mingw
;
24439 STDCCFLAGS
="$STDCCFLAGS -mms-bitfields" ;
24440 ENDLDLIBS
="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
24442 * ) PWLIB_OSTYPE
="$host_os" ;
24443 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
24444 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
24449 case "$host_cpu" in
24450 x86 | i686 | i586 | i486 | i386
) PWLIB_MACHTYPE
=x86
24453 x86_64
) PWLIB_MACHTYPE
=x86_64
;
24458 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7
) PWLIB_MACHTYPE
=alpha
;
24462 sparc
) PWLIB_MACHTYPE
=sparc
;
24465 powerpc
) PWLIB_MACHTYPE
=ppc
;
24468 ppc
) PWLIB_MACHTYPE
=ppc
;
24471 powerpc64
) PWLIB_MACHTYPE
=ppc64
;
24476 ppc64
) PWLIB_MACHTYPE
=ppc64
;
24481 ia64
) PWLIB_MACHTYPE
=ia64
;
24485 s390x
) PWLIB_MACHTYPE
=s390x
;
24490 s390
) PWLIB_MACHTYPE
=s390
;
24493 * ) PWLIB_MACHTYPE
="$host_cpu";
24494 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
24495 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
24498 PWLIB_PLATFORM
="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
24503 PLATFORM_PWLIB
="pt_${PWLIB_PLATFORM}_r"
24506 if test "${HAS_PWLIB:-unset}" != "unset"; then
24507 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
24508 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
24510 saved_cppflags
="${CPPFLAGS}"
24511 saved_libs
="${LIBS}"
24512 LIBS
="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
24513 CPPFLAGS
="${CPPFLAGS} -I${PWLIB_INCDIR} "
24516 ac_cpp
='$CXXCPP $CPPFLAGS'
24517 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24518 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24519 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
24522 cat >conftest.
$ac_ext <<_ACEOF
24525 cat confdefs.h
>>conftest.
$ac_ext
24526 cat >>conftest.
$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24532 BOOL q = PTime::IsDaylightSavings();
24537 rm -f conftest.
$ac_objext conftest
$ac_exeext
24538 if { (ac_try
="$ac_link"
24539 case "(($ac_try" in
24540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24541 *) ac_try_echo=$ac_try;;
24543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544 (eval "$ac_link") 2>conftest.er1
24546 grep -v '^ *+' conftest.er1 >conftest.err
24548 cat conftest.err >&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); } &&
24551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24552 { (case "(($ac_try" in
24553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24554 *) ac_try_echo
=$ac_try;;
24556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557 (eval "$ac_try") 2>&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); }; } &&
24561 { ac_try
='test -s conftest$ac_exeext'
24562 { (case "(($ac_try" in
24563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24564 *) ac_try_echo=$ac_try;;
24566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24567 (eval "$ac_try") 2>&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); }; }; then
24571 { echo "$as_me:$LINENO: result: yes" >&5
24572 echo "${ECHO_T}yes" >&6; }
24573 ac_cv_lib_PWLIB="yes"
24576 echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24579 { echo "$as_me:$LINENO: result: no" >&5
24580 echo "${ECHO_T}no" >&6; }
24581 ac_cv_lib_PWLIB="no"
24586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24587 conftest$ac_exeext conftest.$ac_ext
24590 ac_cpp='$CPP $CPPFLAGS'
24591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24596 LIBS="${saved_libs}"
24597 CPPFLAGS="${saved_cppflags}"
24599 if test "${ac_cv_lib_PWLIB}" = "yes"; then
24600 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
24601 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
24603 PWLIB_LIB="-l${PLATFORM_PWLIB}"
24605 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
24606 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
24610 cat >>confdefs.h <<\_ACEOF
24611 #define HAVE_PWLIB 1
24620 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
24621 { echo "$as_me:$LINENO: ***" >&5
24622 echo "$as_me: ***" >&6;}
24623 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
24624 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
24625 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
24626 echo "$as_me: *** Either correct the installation" >&or run configure;}
24627 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
24628 echo "$as_me: *** including --without-pwlib" >&6;}
24632 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
24633 if test ! -z "${OPENH323_DIR}"; then
24634 OPENH323DIR="${OPENH323_DIR}"
24639 if test "${OPENH323DIR:-unset}" != "unset" ; then
24640 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" |
$as_tr_sh`
24641 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
24642 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
24643 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24646 test "$cross_compiling" = yes &&
24647 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24648 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24649 { (exit 1); exit 1; }; }
24650 if test -r "${OPENH323DIR}/version.h"; then
24651 eval "$as_ac_File=yes"
24653 eval "$as_ac_File=no"
24656 ac_res=`eval echo '${'$as_ac_File'}'`
24657 { echo "$as_me:$LINENO: result: $ac_res" >&5
24658 echo "${ECHO_T}$ac_res" >&6; }
24659 if test `eval echo '${'$as_ac_File'}'` = yes; then
24664 if test "${HAS_OPENH323:-unset}" = "unset" ; then
24665 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" |
$as_tr_sh`
24666 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
24667 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
24668 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24669 echo $ECHO_N "(cached) $ECHO_C" >&6
24671 test "$cross_compiling" = yes &&
24672 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24673 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24674 { (exit 1); exit 1; }; }
24675 if test -r "${PWLIBDIR}/../openh323/version.h"; then
24676 eval "$as_ac_File=yes"
24678 eval "$as_ac_File=no"
24681 ac_res=`eval echo '${'$as_ac_File'}'`
24682 { echo "$as_me:$LINENO: result: $ac_res" >&5
24683 echo "${ECHO_T}$ac_res" >&6; }
24684 if test `eval echo '${'$as_ac_File'}'` = yes; then
24685 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
24688 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24689 OPENH323DIR="${PWLIBDIR}/../openh323"
24690 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" |
$as_tr_sh`
24691 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
24692 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
24693 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24694 echo $ECHO_N "(cached) $ECHO_C" >&6
24696 test "$cross_compiling" = yes &&
24697 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24698 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24699 { (exit 1); exit 1; }; }
24700 if test -r "${OPENH323DIR}/include/h323.h"; then
24701 eval "$as_ac_File=yes"
24703 eval "$as_ac_File=no"
24706 ac_res=`eval echo '${'$as_ac_File'}'`
24707 { echo "$as_me:$LINENO: result: $ac_res" >&5
24708 echo "${ECHO_T}$ac_res" >&6; }
24709 if test `eval echo '${'$as_ac_File'}'` = yes; then
24712 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
24716 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" |
$as_tr_sh`
24717 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
24718 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
24719 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 test "$cross_compiling" = yes &&
24723 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24724 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24725 { (exit 1); exit 1; }; }
24726 if test -r "${HOME}/openh323/include/h323.h"; then
24727 eval "$as_ac_File=yes"
24729 eval "$as_ac_File=no"
24732 ac_res=`eval echo '${'$as_ac_File'}'`
24733 { echo "$as_me:$LINENO: result: $ac_res" >&5
24734 echo "${ECHO_T}$ac_res" >&6; }
24735 if test `eval echo '${'$as_ac_File'}'` = yes; then
24739 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24740 OPENH323DIR="${HOME}/openh323"
24742 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
24743 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
24744 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
24745 echo $ECHO_N "(cached) $ECHO_C" >&6
24747 test "$cross_compiling" = yes &&
24748 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24749 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24750 { (exit 1); exit 1; }; }
24751 if test -r "/usr/local/include/openh323/h323.h"; then
24752 ac_cv_file__usr_local_include_openh323_h323_h=yes
24754 ac_cv_file__usr_local_include_openh323_h323_h=no
24757 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
24758 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
24759 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
24763 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24764 OPENH323DIR="/usr/local/share/openh323"
24765 OPENH323_INCDIR="/usr/local/include/openh323"
24766 OPENH323_LIBDIR="/usr/local/lib"
24768 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
24769 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
24770 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24773 test "$cross_compiling" = yes &&
24774 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24775 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24776 { (exit 1); exit 1; }; }
24777 if test -r "/usr/include/openh323/h323.h"; then
24778 ac_cv_file__usr_include_openh323_h323_h=yes
24780 ac_cv_file__usr_include_openh323_h323_h=no
24783 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
24784 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
24785 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
24789 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24790 OPENH323DIR="/usr/share/openh323"
24791 OPENH323_INCDIR="/usr/include/openh323"
24792 OPENH323_LIBDIR="/usr/lib"
24799 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24800 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
24801 OPENH323_INCDIR="${OPENH323DIR}/include"
24803 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
24804 OPENH323_LIBDIR="${OPENH323DIR}/lib"
24813 if test "${HAS_OPENH323:-unset}" != "unset"; then
24814 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut
-f2 -d ' ' |
sed -e 's/"//g'`
24815 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f1 -d.
`
24816 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f2 -d.
`
24817 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut
-f3 -d.
`
24818 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
24819 let OPENH323_REQ=1*10000+17*100+3
24821 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
24822 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
24823 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
24824 { echo "$as_me:$LINENO: result: no" >&5
24825 echo "${ECHO_T}no" >&6; }
24828 { echo "$as_me:$LINENO: result: yes" >&5
24829 echo "${ECHO_T}yes" >&6; }
24834 if test "${HAS_OPENH323:-unset}" != "unset"; then
24835 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
24836 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
24838 files=`ls -l ${OPENH323_LIBDIR}/libh323_
${PWLIB_PLATFORM}_
*.so
*`
24840 if test -n "$files"; then
24841 for f in $files; do
24842 if test -f $f -a ! -L $f; then
24843 libfile=`basename $f`
24848 if test "${libfile:-unset}" != "unset"; then
24849 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
24851 case "${OPENH323_SUFFIX}" in
24853 OPENH323_BUILD="notrace";;
24855 OPENH323_BUILD="opt";;
24857 OPENH323_BUILD="debug";;
24859 OPENH323_BUILD="notrace";;
24861 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
24862 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
24868 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
24870 if test "${HAS_OPENH323:-unset}" != "unset"; then
24871 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
24872 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
24874 saved_cppflags="${CPPFLAGS}"
24875 saved_libs="${LIBS}"
24876 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
24877 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
24880 ac_cpp='$CXXCPP $CPPFLAGS'
24881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24886 cat >conftest.$ac_ext <<_ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24894 #include "h323ep.h"
24898 H323EndPoint ep = H323EndPoint();
24903 rm -f conftest.$ac_objext conftest$ac_exeext
24904 if { (ac_try="$ac_link"
24905 case "(($ac_try" in
24906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24907 *) ac_try_echo
=$ac_try;;
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910 (eval "$ac_link") 2>conftest.er1
24912 grep -v '^ *+' conftest.er1
>conftest.err
24914 cat conftest.err
>&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); } &&
24917 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24918 { (case "(($ac_try" in
24919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24920 *) ac_try_echo=$ac_try;;
24922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_try") 2>&5
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); }; } &&
24927 { ac_try='test -s conftest$ac_exeext'
24928 { (case "(($ac_try" in
24929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24930 *) ac_try_echo
=$ac_try;;
24932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24933 (eval "$ac_try") 2>&5
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); }; }; then
24937 { echo "$as_me:$LINENO: result: yes" >&5
24938 echo "${ECHO_T}yes" >&6; }
24939 ac_cv_lib_OPENH323
="yes"
24942 echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.
$ac_ext >&5
24945 { echo "$as_me:$LINENO: result: no" >&5
24946 echo "${ECHO_T}no" >&6; }
24947 ac_cv_lib_OPENH323
="no"
24952 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24953 conftest
$ac_exeext conftest.
$ac_ext
24956 ac_cpp
='$CPP $CPPFLAGS'
24957 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24958 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24959 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24962 LIBS
="${saved_libs}"
24963 CPPFLAGS
="${saved_cppflags}"
24965 if test "${ac_cv_lib_OPENH323}" = "yes"; then
24966 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
24967 OPENH323_LIB
="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
24969 OPENH323_LIB
="-l${PLATFORM_OPENH323}"
24971 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
24972 OPENH323_INCLUDE
="-I${OPENH323_INCDIR}"
24976 cat >>confdefs.h
<<\_ACEOF
24977 #define HAVE_OPENH323 1
24984 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
24985 { echo "$as_me:$LINENO: ***" >&5
24986 echo "$as_me: ***" >&6;}
24987 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
24988 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
24989 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
24990 echo "$as_me: *** Either correct the installation" >&or run configure
;}
24991 { echo "$as_me:$LINENO: *** including --without-h323" >&5
24992 echo "$as_me: *** including --without-h323" >&6;}
24998 ac_cpp
='$CXXCPP $CPPFLAGS'
24999 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25000 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25001 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
25004 if test "${USE_QT}" != "no"; then
25005 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
25006 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
25007 saved_libs
="${LIBS}"
25008 saved_cppflags
="${CPPFLAGS}"
25009 if test "x${QT_DIR}" != "x"; then
25010 LIBS
="${LIBS} -L${QT_DIR}/lib"
25011 CPPFLAGS
="${CPPFLAGS} -I${QT_DIR}/include"
25013 LIBS
="${LIBS} -lqt"
25015 cat >conftest.
$ac_ext <<_ACEOF
25019 cat confdefs.h
>>conftest.
$ac_ext
25020 cat >>conftest.
$ac_ext <<_ACEOF
25021 /* end confdefs.h. */
25022 #include <qt3/qdatetime.h>
25032 rm -f conftest.
$ac_objext conftest
$ac_exeext
25033 if { (ac_try
="$ac_link"
25034 case "(($ac_try" in
25035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25036 *) ac_try_echo=$ac_try;;
25038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25039 (eval "$ac_link") 2>conftest.er1
25041 grep -v '^ *+' conftest.er1 >conftest.err
25043 cat conftest.err >&5
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); } &&
25046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25047 { (case "(($ac_try" in
25048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25049 *) ac_try_echo
=$ac_try;;
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_try") 2>&5
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); }; } &&
25056 { ac_try
='test -s conftest$ac_exeext'
25057 { (case "(($ac_try" in
25058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25059 *) ac_try_echo=$ac_try;;
25061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25062 (eval "$ac_try") 2>&5
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); }; }; then
25066 ac_cv_lib_qt_qt_date="yes"
25068 echo "$as_me: failed program was:" >&5
25069 sed 's/^/| /' conftest.$ac_ext >&5
25071 ac_cv_lib_qt_qt_date="no"
25074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25075 conftest$ac_exeext conftest.$ac_ext
25076 LIBS="${saved_libs}"
25077 CPPFLAGS="${saved_cppflags}"
25079 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
25080 saved_libs="${LIBS}"
25081 saved_cppflags="${CPPFLAGS}"
25082 if test "x${QT_DIR}" != "x"; then
25083 LIBS="${LIBS} -L${QT_DIR}/lib"
25084 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
25086 LIBS="${LIBS} -lqt-mt"
25088 cat >conftest.$ac_ext <<_ACEOF
25092 cat confdefs.h >>conftest.$ac_ext
25093 cat >>conftest.$ac_ext <<_ACEOF
25094 /* end confdefs.h. */
25095 #include <qt3/qdatetime.h>
25105 rm -f conftest.$ac_objext conftest$ac_exeext
25106 if { (ac_try="$ac_link"
25107 case "(($ac_try" in
25108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25109 *) ac_try_echo
=$ac_try;;
25111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112 (eval "$ac_link") 2>conftest.er1
25114 grep -v '^ *+' conftest.er1
>conftest.err
25116 cat conftest.err
>&5
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); } &&
25119 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25120 { (case "(($ac_try" in
25121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125 (eval "$ac_try") 2>&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }; } &&
25129 { ac_try='test -s conftest$ac_exeext'
25130 { (case "(($ac_try" in
25131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25132 *) ac_try_echo
=$ac_try;;
25134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25135 (eval "$ac_try") 2>&5
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; }; then
25139 ac_cv_lib_qt_qt_date
="yes"
25141 echo "$as_me: failed program was:" >&5
25142 sed 's/^/| /' conftest.
$ac_ext >&5
25144 ac_cv_lib_qt_qt_date
="no"
25147 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25148 conftest
$ac_exeext conftest.
$ac_ext
25149 LIBS
="${saved_libs}"
25150 CPPFLAGS
="${saved_cppflags}"
25153 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
25154 { echo "$as_me:$LINENO: result: yes" >&5
25155 echo "${ECHO_T}yes" >&6; }
25157 { echo "$as_me:$LINENO: result: no" >&5
25158 echo "${ECHO_T}no" >&6; }
25161 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
25162 QT_LIB
="-l${qtlib}"
25163 if test "${QT_DIR}" != ""; then
25164 QT_LIB
="-L${QT_DIR}/lib ${QT_LIB}"
25165 QT_INCLUDE
="-I${QT_DIR}/include"
25169 cat >>confdefs.h
<<\_ACEOF
25173 if test -n "$ac_tool_prefix"; then
25174 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
25175 set dummy
${ac_tool_prefix}moc
; ac_word
=$2
25176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25178 if test "${ac_cv_path_QTMOC+set}" = set; then
25179 echo $ECHO_N "(cached) $ECHO_C" >&6
25183 ac_cv_path_QTMOC
="$QTMOC" # Let the user override the test with a path.
25186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25187 for as_dir
in $PATH
25190 test -z "$as_dir" && as_dir
=.
25191 for ac_exec_ext
in '' $ac_executable_extensions; do
25192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25193 ac_cv_path_QTMOC
="$as_dir/$ac_word$ac_exec_ext"
25194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25204 QTMOC
=$ac_cv_path_QTMOC
25205 if test -n "$QTMOC"; then
25206 { echo "$as_me:$LINENO: result: $QTMOC" >&5
25207 echo "${ECHO_T}$QTMOC" >&6; }
25209 { echo "$as_me:$LINENO: result: no" >&5
25210 echo "${ECHO_T}no" >&6; }
25215 if test -z "$ac_cv_path_QTMOC"; then
25217 # Extract the first word of "moc", so it can be a program name with args.
25218 set dummy moc
; ac_word
=$2
25219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25221 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
25222 echo $ECHO_N "(cached) $ECHO_C" >&6
25224 case $ac_pt_QTMOC in
25226 ac_cv_path_ac_pt_QTMOC
="$ac_pt_QTMOC" # Let the user override the test with a path.
25229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25230 for as_dir
in $PATH
25233 test -z "$as_dir" && as_dir
=.
25234 for ac_exec_ext
in '' $ac_executable_extensions; do
25235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25236 ac_cv_path_ac_pt_QTMOC
="$as_dir/$ac_word$ac_exec_ext"
25237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25247 ac_pt_QTMOC
=$ac_cv_path_ac_pt_QTMOC
25248 if test -n "$ac_pt_QTMOC"; then
25249 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
25250 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
25252 { echo "$as_me:$LINENO: result: no" >&5
25253 echo "${ECHO_T}no" >&6; }
25256 if test "x$ac_pt_QTMOC" = x
; then
25259 case $cross_compiling:$ac_tool_warned in
25261 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25262 whose name does not start with the host triplet. If you think this
25263 configuration is useful to you, please write to autoconf@gnu.org." >&5
25264 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25265 whose name does not start with the host triplet. If you think this
25266 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25267 ac_tool_warned
=yes ;;
25272 QTMOC
="$ac_cv_path_QTMOC"
25275 elif test ! -z "${QT_MANDATORY}";
25277 { echo "$as_me:$LINENO: ***" >&5
25278 echo "$as_me: ***" >&6;}
25279 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
25280 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
25281 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
25282 echo "$as_me: *** Either correct the installation" >&or run configure
;}
25283 { echo "$as_me:$LINENO: *** including --without-qt." >&5
25284 echo "$as_me: *** including --without-qt." >&6;}
25290 ac_cpp
='$CPP $CPPFLAGS'
25291 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25292 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25293 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
25297 if test "${USE_RADIUS}" != "no"; then
25299 if test "x${RADIUS_DIR}" != "x"; then
25300 if test -d ${RADIUS_DIR}/lib
; then
25301 pbxlibdir
="-L${RADIUS_DIR}/lib"
25303 pbxlibdir
="-L${RADIUS_DIR}"
25306 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
25307 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
25308 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
25309 echo $ECHO_N "(cached) $ECHO_C" >&6
25311 ac_check_lib_save_LIBS
=$LIBS
25312 LIBS
="-lradiusclient-ng ${pbxlibdir} $LIBS"
25313 cat >conftest.
$ac_ext <<_ACEOF
25316 cat confdefs.h
>>conftest.
$ac_ext
25317 cat >>conftest.
$ac_ext <<_ACEOF
25318 /* end confdefs.h. */
25320 /* Override any GCC internal prototype to avoid an error.
25321 Use char because int might match the return type of a GCC
25322 builtin and then its argument prototype would still apply. */
25326 char rc_read_config ();
25330 return rc_read_config ();
25335 rm -f conftest.
$ac_objext conftest
$ac_exeext
25336 if { (ac_try
="$ac_link"
25337 case "(($ac_try" in
25338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25339 *) ac_try_echo=$ac_try;;
25341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25342 (eval "$ac_link") 2>conftest.er1
25344 grep -v '^ *+' conftest.er1 >conftest.err
25346 cat conftest.err >&5
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } &&
25349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25350 { (case "(($ac_try" in
25351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25352 *) ac_try_echo
=$ac_try;;
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355 (eval "$ac_try") 2>&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); }; } &&
25359 { ac_try
='test -s conftest$ac_exeext'
25360 { (case "(($ac_try" in
25361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25362 *) ac_try_echo=$ac_try;;
25364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25365 (eval "$ac_try") 2>&5
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); }; }; then
25369 ac_cv_lib_radiusclient_ng_rc_read_config=yes
25371 echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25374 ac_cv_lib_radiusclient_ng_rc_read_config=no
25377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25378 conftest$ac_exeext conftest.$ac_ext
25379 LIBS=$ac_check_lib_save_LIBS
25381 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
25382 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
25383 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
25384 AST_RADIUS_FOUND=yes
25386 AST_RADIUS_FOUND=no
25390 if test "${AST_RADIUS_FOUND}" = "yes"; then
25391 RADIUS_LIB="-lradiusclient-ng "
25392 RADIUS_HEADER_FOUND="1"
25393 if test "x${RADIUS_DIR}" != "x"; then
25394 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
25395 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
25396 if test "xradiusclient-ng.h" != "x" ; then
25397 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" |
$as_tr_sh`
25398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25399 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
25400 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
25401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25404 ac_res=`eval echo '${'$as_ac_Header'}'`
25405 { echo "$as_me:$LINENO: result: $ac_res" >&5
25406 echo "${ECHO_T}$ac_res" >&6; }
25408 # Is the header compilable?
25409 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
25410 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
25411 cat >conftest.$ac_ext <<_ACEOF
25414 cat confdefs.h >>conftest.$ac_ext
25415 cat >>conftest.$ac_ext <<_ACEOF
25416 /* end confdefs.h. */
25417 $ac_includes_default
25418 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
25420 rm -f conftest.$ac_objext
25421 if { (ac_try="$ac_compile"
25422 case "(($ac_try" in
25423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25424 *) ac_try_echo
=$ac_try;;
25426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25427 (eval "$ac_compile") 2>conftest.er1
25429 grep -v '^ *+' conftest.er1
>conftest.err
25431 cat conftest.err
>&5
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); } &&
25434 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25435 { (case "(($ac_try" in
25436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25437 *) ac_try_echo=$ac_try;;
25439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25440 (eval "$ac_try") 2>&5
25442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); }; } &&
25444 { ac_try='test -s conftest.$ac_objext'
25445 { (case "(($ac_try" in
25446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25447 *) ac_try_echo
=$ac_try;;
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450 (eval "$ac_try") 2>&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); }; }; then
25454 ac_header_compiler
=yes
25456 echo "$as_me: failed program was:" >&5
25457 sed 's/^/| /' conftest.
$ac_ext >&5
25459 ac_header_compiler
=no
25462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25464 echo "${ECHO_T}$ac_header_compiler" >&6; }
25466 # Is the header present?
25467 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
25468 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
25469 cat >conftest.
$ac_ext <<_ACEOF
25472 cat confdefs.h
>>conftest.
$ac_ext
25473 cat >>conftest.
$ac_ext <<_ACEOF
25474 /* end confdefs.h. */
25475 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
25477 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25478 case "(($ac_try" in
25479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25480 *) ac_try_echo=$ac_try;;
25482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25485 grep -v '^ *+' conftest.er1 >conftest.err
25487 cat conftest.err >&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); } >/dev/null; then
25490 if test -s conftest.err; then
25491 ac_cpp_err=$ac_c_preproc_warn_flag
25492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25499 if test -z "$ac_cpp_err"; then
25500 ac_header_preproc=yes
25502 echo "$as_me: failed program was:" >&5
25503 sed 's/^/| /' conftest.$ac_ext >&5
25505 ac_header_preproc=no
25508 rm -f conftest.err conftest.$ac_ext
25509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25510 echo "${ECHO_T}$ac_header_preproc" >&6; }
25512 # So? What about this header?
25513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25515 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25516 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25517 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
25518 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25519 ac_header_preproc=yes
25522 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
25523 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
25524 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
25525 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25526 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
25527 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
25528 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25529 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25531 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25532 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25533 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25537 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
25538 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
25539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25540 echo $ECHO_N "(cached) $ECHO_C" >&6
25542 eval "$as_ac_Header=\$ac_header_preproc"
25544 ac_res=`eval echo '${'$as_ac_Header'}'`
25545 { echo "$as_me:$LINENO: result: $ac_res" >&5
25546 echo "${ECHO_T}$ac_res" >&6; }
25549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25550 RADIUS_HEADER_FOUND=1
25552 RADIUS_HEADER_FOUND=0
25558 if test "xradiusclient-ng.h" != "x" ; then
25559 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25560 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25561 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25562 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25563 echo $ECHO_N "(cached) $ECHO_C" >&6
25565 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25566 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25568 # Is the header compilable?
25569 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
25570 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
25571 cat >conftest.$ac_ext <<_ACEOF
25574 cat confdefs.h >>conftest.$ac_ext
25575 cat >>conftest.$ac_ext <<_ACEOF
25576 /* end confdefs.h. */
25577 $ac_includes_default
25578 #include <radiusclient-ng.h>
25580 rm -f conftest.$ac_objext
25581 if { (ac_try="$ac_compile"
25582 case "(($ac_try" in
25583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25584 *) ac_try_echo
=$ac_try;;
25586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25587 (eval "$ac_compile") 2>conftest.er1
25589 grep -v '^ *+' conftest.er1
>conftest.err
25591 cat conftest.err
>&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); } &&
25594 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); }; } &&
25604 { ac_try='test -s conftest.$ac_objext'
25605 { (case "(($ac_try" in
25606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25607 *) ac_try_echo
=$ac_try;;
25609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25610 (eval "$ac_try") 2>&5
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); }; }; then
25614 ac_header_compiler
=yes
25616 echo "$as_me: failed program was:" >&5
25617 sed 's/^/| /' conftest.
$ac_ext >&5
25619 ac_header_compiler
=no
25622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25624 echo "${ECHO_T}$ac_header_compiler" >&6; }
25626 # Is the header present?
25627 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
25628 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
25629 cat >conftest.
$ac_ext <<_ACEOF
25632 cat confdefs.h
>>conftest.
$ac_ext
25633 cat >>conftest.
$ac_ext <<_ACEOF
25634 /* end confdefs.h. */
25635 #include <radiusclient-ng.h>
25637 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25638 case "(($ac_try" in
25639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25640 *) ac_try_echo=$ac_try;;
25642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25645 grep -v '^ *+' conftest.er1 >conftest.err
25647 cat conftest.err >&5
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); } >/dev/null; then
25650 if test -s conftest.err; then
25651 ac_cpp_err=$ac_c_preproc_warn_flag
25652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25659 if test -z "$ac_cpp_err"; then
25660 ac_header_preproc=yes
25662 echo "$as_me: failed program was:" >&5
25663 sed 's/^/| /' conftest.$ac_ext >&5
25665 ac_header_preproc=no
25668 rm -f conftest.err conftest.$ac_ext
25669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25670 echo "${ECHO_T}$ac_header_preproc" >&6; }
25672 # So? What about this header?
25673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25675 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25676 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25677 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
25678 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25679 ac_header_preproc=yes
25682 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
25683 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
25684 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
25685 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25686 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
25687 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
25688 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25689 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25690 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25691 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25692 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25693 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25697 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25698 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25699 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25700 echo $ECHO_N "(cached) $ECHO_C" >&6
25702 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
25704 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25705 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25708 if test $ac_cv_header_radiusclient_ng_h = yes; then
25709 RADIUS_HEADER_FOUND=1
25711 RADIUS_HEADER_FOUND=0
25717 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
25718 if test ! -z "${RADIUS_MANDATORY}" ;
25720 { echo "$as_me:$LINENO: ***" >&5
25721 echo "$as_me: ***" >&6;}
25722 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
25723 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
25724 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support" >&5
25725 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support" >&or re-run configure;}
25726 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25727 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25736 cat >>confdefs.h <<_ACEOF
25737 #define HAVE_RADIUS 1
25741 elif test ! -z "${RADIUS_MANDATORY}";
25743 { echo "$as_me:$LINENO: ***" >&5
25744 echo "$as_me: ***" >&6;}
25745 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
25746 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
25747 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
25748 echo "$as_me: *** Either correct the installation" >&or run configure;}
25749 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25750 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25757 if test "${USE_SPEEX}" != "no"; then
25759 if test "x${SPEEX_DIR}" != "x"; then
25760 if test -d ${SPEEX_DIR}/lib; then
25761 pbxlibdir="-L${SPEEX_DIR}/lib"
25763 pbxlibdir="-L${SPEEX_DIR}"
25766 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
25767 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
25768 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
25769 echo $ECHO_N "(cached) $ECHO_C" >&6
25771 ac_check_lib_save_LIBS=$LIBS
25772 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
25773 cat >conftest.$ac_ext <<_ACEOF
25776 cat confdefs.h >>conftest.$ac_ext
25777 cat >>conftest.$ac_ext <<_ACEOF
25778 /* end confdefs.h. */
25780 /* Override any GCC internal prototype to avoid an error.
25781 Use char because int might match the return type of a GCC
25782 builtin and then its argument prototype would still apply. */
25786 char speex_encode ();
25790 return speex_encode ();
25795 rm -f conftest.$ac_objext conftest$ac_exeext
25796 if { (ac_try="$ac_link"
25797 case "(($ac_try" in
25798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25799 *) ac_try_echo
=$ac_try;;
25801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25802 (eval "$ac_link") 2>conftest.er1
25804 grep -v '^ *+' conftest.er1
>conftest.err
25806 cat conftest.err
>&5
25807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808 (exit $ac_status); } &&
25809 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25810 { (case "(($ac_try" in
25811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25812 *) ac_try_echo=$ac_try;;
25814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25815 (eval "$ac_try") 2>&5
25817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818 (exit $ac_status); }; } &&
25819 { ac_try='test -s conftest$ac_exeext'
25820 { (case "(($ac_try" in
25821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25822 *) ac_try_echo
=$ac_try;;
25824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25825 (eval "$ac_try") 2>&5
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); }; }; then
25829 ac_cv_lib_speex_speex_encode
=yes
25831 echo "$as_me: failed program was:" >&5
25832 sed 's/^/| /' conftest.
$ac_ext >&5
25834 ac_cv_lib_speex_speex_encode
=no
25837 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25838 conftest
$ac_exeext conftest.
$ac_ext
25839 LIBS
=$ac_check_lib_save_LIBS
25841 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
25842 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
25843 if test $ac_cv_lib_speex_speex_encode = yes; then
25844 AST_SPEEX_FOUND
=yes
25850 if test "${AST_SPEEX_FOUND}" = "yes"; then
25851 SPEEX_LIB
="-lspeex -lm"
25852 SPEEX_HEADER_FOUND
="1"
25853 if test "x${SPEEX_DIR}" != "x"; then
25854 SPEEX_LIB
="${pbxlibdir} ${SPEEX_LIB}"
25855 SPEEX_INCLUDE
="-I${SPEEX_DIR}/include"
25856 if test "xspeex/speex.h" != "x" ; then
25857 as_ac_Header
=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
25858 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25859 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
25860 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
25861 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25862 echo $ECHO_N "(cached) $ECHO_C" >&6
25864 ac_res
=`eval echo '${'$as_ac_Header'}'`
25865 { echo "$as_me:$LINENO: result: $ac_res" >&5
25866 echo "${ECHO_T}$ac_res" >&6; }
25868 # Is the header compilable?
25869 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
25870 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
25871 cat >conftest.
$ac_ext <<_ACEOF
25874 cat confdefs.h
>>conftest.
$ac_ext
25875 cat >>conftest.
$ac_ext <<_ACEOF
25876 /* end confdefs.h. */
25877 $ac_includes_default
25878 #include <${SPEEX_DIR}/include/speex/speex.h>
25880 rm -f conftest.
$ac_objext
25881 if { (ac_try
="$ac_compile"
25882 case "(($ac_try" in
25883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25884 *) ac_try_echo=$ac_try;;
25886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25887 (eval "$ac_compile") 2>conftest.er1
25889 grep -v '^ *+' conftest.er1 >conftest.err
25891 cat conftest.err >&5
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); } &&
25894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25895 { (case "(($ac_try" in
25896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25897 *) ac_try_echo
=$ac_try;;
25899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25900 (eval "$ac_try") 2>&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); }; } &&
25904 { ac_try
='test -s conftest.$ac_objext'
25905 { (case "(($ac_try" in
25906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25907 *) ac_try_echo=$ac_try;;
25909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25910 (eval "$ac_try") 2>&5
25912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); }; }; then
25914 ac_header_compiler=yes
25916 echo "$as_me: failed program was:" >&5
25917 sed 's/^/| /' conftest.$ac_ext >&5
25919 ac_header_compiler=no
25922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25924 echo "${ECHO_T}$ac_header_compiler" >&6; }
25926 # Is the header present?
25927 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
25928 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
25929 cat >conftest.$ac_ext <<_ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h. */
25935 #include <${SPEEX_DIR}/include/speex/speex.h>
25937 if { (ac_try="$ac_cpp conftest.$ac_ext"
25938 case "(($ac_try" in
25939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25940 *) ac_try_echo
=$ac_try;;
25942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25945 grep -v '^ *+' conftest.er1
>conftest.err
25947 cat conftest.err
>&5
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); } >/dev
/null
; then
25950 if test -s conftest.err
; then
25951 ac_cpp_err
=$ac_c_preproc_warn_flag
25952 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
25959 if test -z "$ac_cpp_err"; then
25960 ac_header_preproc
=yes
25962 echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.
$ac_ext >&5
25965 ac_header_preproc
=no
25968 rm -f conftest.err conftest.
$ac_ext
25969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25970 echo "${ECHO_T}$ac_header_preproc" >&6; }
25972 # So? What about this header?
25973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25975 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25976 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25977 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
25978 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
25979 ac_header_preproc
=yes
25982 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
25983 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
25984 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
25985 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
25986 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
25987 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
25988 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
25989 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25990 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
25991 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
25992 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
25993 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
25997 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
25998 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
25999 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26000 echo $ECHO_N "(cached) $ECHO_C" >&6
26002 eval "$as_ac_Header=\$ac_header_preproc"
26004 ac_res
=`eval echo '${'$as_ac_Header'}'`
26005 { echo "$as_me:$LINENO: result: $ac_res" >&5
26006 echo "${ECHO_T}$ac_res" >&6; }
26009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26010 SPEEX_HEADER_FOUND
=1
26012 SPEEX_HEADER_FOUND
=0
26018 if test "xspeex/speex.h" != "x" ; then
26019 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26020 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26021 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26022 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26023 echo $ECHO_N "(cached) $ECHO_C" >&6
26025 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26026 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26028 # Is the header compilable?
26029 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
26030 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
26031 cat >conftest.
$ac_ext <<_ACEOF
26034 cat confdefs.h
>>conftest.
$ac_ext
26035 cat >>conftest.
$ac_ext <<_ACEOF
26036 /* end confdefs.h. */
26037 $ac_includes_default
26038 #include <speex/speex.h>
26040 rm -f conftest.
$ac_objext
26041 if { (ac_try
="$ac_compile"
26042 case "(($ac_try" in
26043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26044 *) ac_try_echo=$ac_try;;
26046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26047 (eval "$ac_compile") 2>conftest.er1
26049 grep -v '^ *+' conftest.er1 >conftest.err
26051 cat conftest.err >&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); } &&
26054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26055 { (case "(($ac_try" in
26056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26057 *) ac_try_echo
=$ac_try;;
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060 (eval "$ac_try") 2>&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); }; } &&
26064 { ac_try
='test -s conftest.$ac_objext'
26065 { (case "(($ac_try" in
26066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26067 *) ac_try_echo=$ac_try;;
26069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26070 (eval "$ac_try") 2>&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); }; }; then
26074 ac_header_compiler=yes
26076 echo "$as_me: failed program was:" >&5
26077 sed 's/^/| /' conftest.$ac_ext >&5
26079 ac_header_compiler=no
26082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26084 echo "${ECHO_T}$ac_header_compiler" >&6; }
26086 # Is the header present?
26087 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
26088 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
26089 cat >conftest.$ac_ext <<_ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h. */
26095 #include <speex/speex.h>
26097 if { (ac_try="$ac_cpp conftest.$ac_ext"
26098 case "(($ac_try" in
26099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26100 *) ac_try_echo
=$ac_try;;
26102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26105 grep -v '^ *+' conftest.er1
>conftest.err
26107 cat conftest.err
>&5
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); } >/dev
/null
; then
26110 if test -s conftest.err
; then
26111 ac_cpp_err
=$ac_c_preproc_warn_flag
26112 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
26119 if test -z "$ac_cpp_err"; then
26120 ac_header_preproc
=yes
26122 echo "$as_me: failed program was:" >&5
26123 sed 's/^/| /' conftest.
$ac_ext >&5
26125 ac_header_preproc
=no
26128 rm -f conftest.err conftest.
$ac_ext
26129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26130 echo "${ECHO_T}$ac_header_preproc" >&6; }
26132 # So? What about this header?
26133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26135 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
26136 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26137 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
26138 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
26139 ac_header_preproc
=yes
26142 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
26143 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
26144 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
26145 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
26146 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
26147 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
26148 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
26149 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
26150 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
26151 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
26152 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
26153 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
26157 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26158 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26159 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26160 echo $ECHO_N "(cached) $ECHO_C" >&6
26162 ac_cv_header_speex_speex_h
=$ac_header_preproc
26164 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26165 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26168 if test $ac_cv_header_speex_speex_h = yes; then
26169 SPEEX_HEADER_FOUND
=1
26171 SPEEX_HEADER_FOUND
=0
26177 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
26178 if test ! -z "${SPEEX_MANDATORY}" ;
26180 { echo "$as_me:$LINENO: ***" >&5
26181 echo "$as_me: ***" >&6;}
26182 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
26183 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
26184 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support" >&5
26185 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support" >&or re-run configure
;}
26186 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
26187 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
26196 cat >>confdefs.h
<<_ACEOF
26197 #define HAVE_SPEEX 1
26201 elif test ! -z "${SPEEX_MANDATORY}";
26203 { echo "$as_me:$LINENO: ***" >&5
26204 echo "$as_me: ***" >&6;}
26205 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
26206 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
26207 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
26208 echo "$as_me: *** Either correct the installation" >&or run configure
;}
26209 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
26210 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
26217 if test "${USE_SQLITE}" != "no"; then
26219 if test "x${SQLITE_DIR}" != "x"; then
26220 if test -d ${SQLITE_DIR}/lib
; then
26221 pbxlibdir
="-L${SQLITE_DIR}/lib"
26223 pbxlibdir
="-L${SQLITE_DIR}"
26226 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
26227 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
26228 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
26229 echo $ECHO_N "(cached) $ECHO_C" >&6
26231 ac_check_lib_save_LIBS
=$LIBS
26232 LIBS
="-lsqlite ${pbxlibdir} $LIBS"
26233 cat >conftest.
$ac_ext <<_ACEOF
26236 cat confdefs.h
>>conftest.
$ac_ext
26237 cat >>conftest.
$ac_ext <<_ACEOF
26238 /* end confdefs.h. */
26240 /* Override any GCC internal prototype to avoid an error.
26241 Use char because int might match the return type of a GCC
26242 builtin and then its argument prototype would still apply. */
26246 char sqlite_exec ();
26250 return sqlite_exec ();
26255 rm -f conftest.
$ac_objext conftest
$ac_exeext
26256 if { (ac_try
="$ac_link"
26257 case "(($ac_try" in
26258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26259 *) ac_try_echo=$ac_try;;
26261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26262 (eval "$ac_link") 2>conftest.er1
26264 grep -v '^ *+' conftest.er1 >conftest.err
26266 cat conftest.err >&5
26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268 (exit $ac_status); } &&
26269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26270 { (case "(($ac_try" in
26271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26272 *) ac_try_echo
=$ac_try;;
26274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26275 (eval "$ac_try") 2>&5
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); }; } &&
26279 { ac_try
='test -s conftest$ac_exeext'
26280 { (case "(($ac_try" in
26281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26282 *) ac_try_echo=$ac_try;;
26284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26285 (eval "$ac_try") 2>&5
26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288 (exit $ac_status); }; }; then
26289 ac_cv_lib_sqlite_sqlite_exec=yes
26291 echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26294 ac_cv_lib_sqlite_sqlite_exec=no
26297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26298 conftest$ac_exeext conftest.$ac_ext
26299 LIBS=$ac_check_lib_save_LIBS
26301 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
26302 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
26303 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
26304 AST_SQLITE_FOUND=yes
26306 AST_SQLITE_FOUND=no
26310 if test "${AST_SQLITE_FOUND}" = "yes"; then
26311 SQLITE_LIB="-lsqlite "
26312 SQLITE_HEADER_FOUND="1"
26313 if test "x${SQLITE_DIR}" != "x"; then
26314 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
26315 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
26316 if test "xsqlite.h" != "x" ; then
26317 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" |
$as_tr_sh`
26318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26319 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
26320 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
26321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26322 echo $ECHO_N "(cached) $ECHO_C" >&6
26324 ac_res=`eval echo '${'$as_ac_Header'}'`
26325 { echo "$as_me:$LINENO: result: $ac_res" >&5
26326 echo "${ECHO_T}$ac_res" >&6; }
26328 # Is the header compilable?
26329 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
26330 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
26331 cat >conftest.$ac_ext <<_ACEOF
26334 cat confdefs.h >>conftest.$ac_ext
26335 cat >>conftest.$ac_ext <<_ACEOF
26336 /* end confdefs.h. */
26337 $ac_includes_default
26338 #include <${SQLITE_DIR}/include/sqlite.h>
26340 rm -f conftest.$ac_objext
26341 if { (ac_try="$ac_compile"
26342 case "(($ac_try" in
26343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26344 *) ac_try_echo
=$ac_try;;
26346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26347 (eval "$ac_compile") 2>conftest.er1
26349 grep -v '^ *+' conftest.er1
>conftest.err
26351 cat conftest.err
>&5
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); } &&
26354 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26355 { (case "(($ac_try" in
26356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26357 *) ac_try_echo=$ac_try;;
26359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26360 (eval "$ac_try") 2>&5
26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); }; } &&
26364 { ac_try='test -s conftest.$ac_objext'
26365 { (case "(($ac_try" in
26366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26367 *) ac_try_echo
=$ac_try;;
26369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370 (eval "$ac_try") 2>&5
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); }; }; then
26374 ac_header_compiler
=yes
26376 echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.
$ac_ext >&5
26379 ac_header_compiler
=no
26382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26384 echo "${ECHO_T}$ac_header_compiler" >&6; }
26386 # Is the header present?
26387 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
26388 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
26389 cat >conftest.
$ac_ext <<_ACEOF
26392 cat confdefs.h
>>conftest.
$ac_ext
26393 cat >>conftest.
$ac_ext <<_ACEOF
26394 /* end confdefs.h. */
26395 #include <${SQLITE_DIR}/include/sqlite.h>
26397 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26398 case "(($ac_try" in
26399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26400 *) ac_try_echo=$ac_try;;
26402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26405 grep -v '^ *+' conftest.er1 >conftest.err
26407 cat conftest.err >&5
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); } >/dev/null; then
26410 if test -s conftest.err; then
26411 ac_cpp_err=$ac_c_preproc_warn_flag
26412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26419 if test -z "$ac_cpp_err"; then
26420 ac_header_preproc=yes
26422 echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26425 ac_header_preproc=no
26428 rm -f conftest.err conftest.$ac_ext
26429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26430 echo "${ECHO_T}$ac_header_preproc" >&6; }
26432 # So? What about this header?
26433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26435 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
26436 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26437 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
26438 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
26439 ac_header_preproc=yes
26442 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
26443 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
26444 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
26445 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
26446 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
26447 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
26448 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
26449 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
26450 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
26451 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
26452 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
26453 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
26457 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
26458 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
26459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26460 echo $ECHO_N "(cached) $ECHO_C" >&6
26462 eval "$as_ac_Header=\$ac_header_preproc"
26464 ac_res=`eval echo '${'$as_ac_Header'}'`
26465 { echo "$as_me:$LINENO: result: $ac_res" >&5
26466 echo "${ECHO_T}$ac_res" >&6; }
26469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26470 SQLITE_HEADER_FOUND=1
26472 SQLITE_HEADER_FOUND=0
26478 if test "xsqlite.h" != "x" ; then
26479 if test "${ac_cv_header_sqlite_h+set}" = set; then
26480 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
26481 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
26482 if test "${ac_cv_header_sqlite_h+set}" = set; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
26485 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
26486 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
26488 # Is the header compilable?
26489 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
26490 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
26491 cat >conftest.$ac_ext <<_ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h. */
26497 $ac_includes_default
26498 #include <sqlite.h>
26500 rm -f conftest.$ac_objext
26501 if { (ac_try="$ac_compile"
26502 case "(($ac_try" in
26503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26504 *) ac_try_echo
=$ac_try;;
26506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507 (eval "$ac_compile") 2>conftest.er1
26509 grep -v '^ *+' conftest.er1
>conftest.err
26511 cat conftest.err
>&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } &&
26514 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26515 { (case "(($ac_try" in
26516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26517 *) ac_try_echo=$ac_try;;
26519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26520 (eval "$ac_try") 2>&5
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); }; } &&
26524 { ac_try='test -s conftest.$ac_objext'
26525 { (case "(($ac_try" in
26526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26527 *) ac_try_echo
=$ac_try;;
26529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26530 (eval "$ac_try") 2>&5
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); }; }; then
26534 ac_header_compiler
=yes
26536 echo "$as_me: failed program was:" >&5
26537 sed 's/^/| /' conftest.
$ac_ext >&5
26539 ac_header_compiler
=no
26542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26544 echo "${ECHO_T}$ac_header_compiler" >&6; }
26546 # Is the header present?
26547 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
26548 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
26549 cat >conftest.
$ac_ext <<_ACEOF
26552 cat confdefs.h
>>conftest.
$ac_ext
26553 cat >>conftest.
$ac_ext <<_ACEOF
26554 /* end confdefs.h. */
26555 #include <sqlite.h>
26557 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26558 case "(($ac_try" in
26559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26560 *) ac_try_echo=$ac_try;;
26562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26565 grep -v '^ *+' conftest.er1 >conftest.err
26567 cat conftest.err >&5
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); } >/dev/null; then
26570 if test -s conftest.err; then
26571 ac_cpp_err=$ac_c_preproc_warn_flag
26572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26579 if test -z "$ac_cpp_err"; then
26580 ac_header_preproc=yes
26582 echo "$as_me: failed program was:" >&5
26583 sed 's/^/| /' conftest.$ac_ext >&5
26585 ac_header_preproc=no
26588 rm -f conftest.err conftest.$ac_ext
26589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26590 echo "${ECHO_T}$ac_header_preproc" >&6; }
26592 # So? What about this header?
26593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26595 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
26596 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26597 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
26598 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
26599 ac_header_preproc=yes
26602 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
26603 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
26604 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
26605 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
26606 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
26607 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
26608 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
26609 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
26610 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
26611 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
26612 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
26613 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
26617 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
26618 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
26619 if test "${ac_cv_header_sqlite_h+set}" = set; then
26620 echo $ECHO_N "(cached) $ECHO_C" >&6
26622 ac_cv_header_sqlite_h=$ac_header_preproc
26624 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
26625 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
26628 if test $ac_cv_header_sqlite_h = yes; then
26629 SQLITE_HEADER_FOUND=1
26631 SQLITE_HEADER_FOUND=0
26637 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
26638 if test ! -z "${SQLITE_MANDATORY}" ;
26640 { echo "$as_me:$LINENO: ***" >&5
26641 echo "$as_me: ***" >&6;}
26642 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
26643 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
26644 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support" >&5
26645 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support" >&or re-run configure;}
26646 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
26647 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
26656 cat >>confdefs.h <<_ACEOF
26657 #define HAVE_SQLITE 1
26661 elif test ! -z "${SQLITE_MANDATORY}";
26663 { echo "$as_me:$LINENO: ***" >&5
26664 echo "$as_me: ***" >&6;}
26665 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
26666 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
26667 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
26668 echo "$as_me: *** Either correct the installation" >&or run configure;}
26669 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
26670 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
26677 if test "${USE_OPENSSL}" != "no"; then
26679 if test "x${OPENSSL_DIR}" != "x"; then
26680 if test -d ${OPENSSL_DIR}/lib; then
26681 pbxlibdir="-L${OPENSSL_DIR}/lib"
26683 pbxlibdir="-L${OPENSSL_DIR}"
26686 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
26687 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
26688 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
26689 echo $ECHO_N "(cached) $ECHO_C" >&6
26691 ac_check_lib_save_LIBS=$LIBS
26692 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
26693 cat >conftest.$ac_ext <<_ACEOF
26696 cat confdefs.h >>conftest.$ac_ext
26697 cat >>conftest.$ac_ext <<_ACEOF
26698 /* end confdefs.h. */
26700 /* Override any GCC internal prototype to avoid an error.
26701 Use char because int might match the return type of a GCC
26702 builtin and then its argument prototype would still apply. */
26706 char ssl2_connect ();
26710 return ssl2_connect ();
26715 rm -f conftest.$ac_objext conftest$ac_exeext
26716 if { (ac_try="$ac_link"
26717 case "(($ac_try" in
26718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26719 *) ac_try_echo
=$ac_try;;
26721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26722 (eval "$ac_link") 2>conftest.er1
26724 grep -v '^ *+' conftest.er1
>conftest.err
26726 cat conftest.err
>&5
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); } &&
26729 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26730 { (case "(($ac_try" in
26731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26732 *) ac_try_echo=$ac_try;;
26734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26735 (eval "$ac_try") 2>&5
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); }; } &&
26739 { ac_try='test -s conftest$ac_exeext'
26740 { (case "(($ac_try" in
26741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26742 *) ac_try_echo
=$ac_try;;
26744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745 (eval "$ac_try") 2>&5
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); }; }; then
26749 ac_cv_lib_ssl_ssl2_connect
=yes
26751 echo "$as_me: failed program was:" >&5
26752 sed 's/^/| /' conftest.
$ac_ext >&5
26754 ac_cv_lib_ssl_ssl2_connect
=no
26757 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26758 conftest
$ac_exeext conftest.
$ac_ext
26759 LIBS
=$ac_check_lib_save_LIBS
26761 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
26762 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
26763 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
26764 AST_OPENSSL_FOUND
=yes
26766 AST_OPENSSL_FOUND
=no
26770 if test "${AST_OPENSSL_FOUND}" = "yes"; then
26771 OPENSSL_LIB
="-lssl -lcrypto"
26772 OPENSSL_HEADER_FOUND
="1"
26773 if test "x${OPENSSL_DIR}" != "x"; then
26774 OPENSSL_LIB
="${pbxlibdir} ${OPENSSL_LIB}"
26775 OPENSSL_INCLUDE
="-I${OPENSSL_DIR}/include"
26776 if test "xopenssl/ssl.h" != "x" ; then
26777 as_ac_Header
=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
26778 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26779 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26780 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26781 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26782 echo $ECHO_N "(cached) $ECHO_C" >&6
26784 ac_res
=`eval echo '${'$as_ac_Header'}'`
26785 { echo "$as_me:$LINENO: result: $ac_res" >&5
26786 echo "${ECHO_T}$ac_res" >&6; }
26788 # Is the header compilable?
26789 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
26790 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
26791 cat >conftest.
$ac_ext <<_ACEOF
26794 cat confdefs.h
>>conftest.
$ac_ext
26795 cat >>conftest.
$ac_ext <<_ACEOF
26796 /* end confdefs.h. */
26797 $ac_includes_default
26798 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
26800 rm -f conftest.
$ac_objext
26801 if { (ac_try
="$ac_compile"
26802 case "(($ac_try" in
26803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26804 *) ac_try_echo=$ac_try;;
26806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26807 (eval "$ac_compile") 2>conftest.er1
26809 grep -v '^ *+' conftest.er1 >conftest.err
26811 cat conftest.err >&5
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); } &&
26814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26815 { (case "(($ac_try" in
26816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26817 *) ac_try_echo
=$ac_try;;
26819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26820 (eval "$ac_try") 2>&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; } &&
26824 { ac_try
='test -s conftest.$ac_objext'
26825 { (case "(($ac_try" in
26826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26827 *) ac_try_echo=$ac_try;;
26829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26830 (eval "$ac_try") 2>&5
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; }; then
26834 ac_header_compiler=yes
26836 echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26839 ac_header_compiler=no
26842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26844 echo "${ECHO_T}$ac_header_compiler" >&6; }
26846 # Is the header present?
26847 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
26848 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
26849 cat >conftest.$ac_ext <<_ACEOF
26852 cat confdefs.h >>conftest.$ac_ext
26853 cat >>conftest.$ac_ext <<_ACEOF
26854 /* end confdefs.h. */
26855 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
26857 if { (ac_try="$ac_cpp conftest.$ac_ext"
26858 case "(($ac_try" in
26859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26860 *) ac_try_echo
=$ac_try;;
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26865 grep -v '^ *+' conftest.er1
>conftest.err
26867 cat conftest.err
>&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } >/dev
/null
; then
26870 if test -s conftest.err
; then
26871 ac_cpp_err
=$ac_c_preproc_warn_flag
26872 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
26879 if test -z "$ac_cpp_err"; then
26880 ac_header_preproc
=yes
26882 echo "$as_me: failed program was:" >&5
26883 sed 's/^/| /' conftest.
$ac_ext >&5
26885 ac_header_preproc
=no
26888 rm -f conftest.err conftest.
$ac_ext
26889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26890 echo "${ECHO_T}$ac_header_preproc" >&6; }
26892 # So? What about this header?
26893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26895 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26896 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26897 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
26898 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
26899 ac_header_preproc
=yes
26902 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
26903 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
26904 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
26905 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
26906 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
26907 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
26908 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
26909 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26910 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
26911 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
26912 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
26913 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
26917 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26918 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26919 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26920 echo $ECHO_N "(cached) $ECHO_C" >&6
26922 eval "$as_ac_Header=\$ac_header_preproc"
26924 ac_res
=`eval echo '${'$as_ac_Header'}'`
26925 { echo "$as_me:$LINENO: result: $ac_res" >&5
26926 echo "${ECHO_T}$ac_res" >&6; }
26929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26930 OPENSSL_HEADER_FOUND
=1
26932 OPENSSL_HEADER_FOUND
=0
26938 if test "xopenssl/ssl.h" != "x" ; then
26939 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26940 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
26941 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
26942 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26943 echo $ECHO_N "(cached) $ECHO_C" >&6
26945 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
26946 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
26948 # Is the header compilable?
26949 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
26950 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
26951 cat >conftest.
$ac_ext <<_ACEOF
26954 cat confdefs.h
>>conftest.
$ac_ext
26955 cat >>conftest.
$ac_ext <<_ACEOF
26956 /* end confdefs.h. */
26957 $ac_includes_default
26958 #include <openssl/ssl.h>
26960 rm -f conftest.
$ac_objext
26961 if { (ac_try
="$ac_compile"
26962 case "(($ac_try" in
26963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26964 *) ac_try_echo=$ac_try;;
26966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26967 (eval "$ac_compile") 2>conftest.er1
26969 grep -v '^ *+' conftest.er1 >conftest.err
26971 cat conftest.err >&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } &&
26974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26975 { (case "(($ac_try" in
26976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26977 *) ac_try_echo
=$ac_try;;
26979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26980 (eval "$ac_try") 2>&5
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; } &&
26984 { ac_try
='test -s conftest.$ac_objext'
26985 { (case "(($ac_try" in
26986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26987 *) ac_try_echo=$ac_try;;
26989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26990 (eval "$ac_try") 2>&5
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); }; }; then
26994 ac_header_compiler=yes
26996 echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26999 ac_header_compiler=no
27002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27004 echo "${ECHO_T}$ac_header_compiler" >&6; }
27006 # Is the header present?
27007 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
27008 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
27009 cat >conftest.$ac_ext <<_ACEOF
27012 cat confdefs.h >>conftest.$ac_ext
27013 cat >>conftest.$ac_ext <<_ACEOF
27014 /* end confdefs.h. */
27015 #include <openssl/ssl.h>
27017 if { (ac_try="$ac_cpp conftest.$ac_ext"
27018 case "(($ac_try" in
27019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27020 *) ac_try_echo
=$ac_try;;
27022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27025 grep -v '^ *+' conftest.er1
>conftest.err
27027 cat conftest.err
>&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); } >/dev
/null
; then
27030 if test -s conftest.err
; then
27031 ac_cpp_err
=$ac_c_preproc_warn_flag
27032 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
27039 if test -z "$ac_cpp_err"; then
27040 ac_header_preproc
=yes
27042 echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.
$ac_ext >&5
27045 ac_header_preproc
=no
27048 rm -f conftest.err conftest.
$ac_ext
27049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27050 echo "${ECHO_T}$ac_header_preproc" >&6; }
27052 # So? What about this header?
27053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27055 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27056 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27057 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
27058 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
27059 ac_header_preproc
=yes
27062 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
27063 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
27064 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
27065 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
27066 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
27067 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
27068 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
27069 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27070 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
27071 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
27072 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
27073 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
27077 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
27078 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
27079 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27080 echo $ECHO_N "(cached) $ECHO_C" >&6
27082 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
27084 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
27085 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
27088 if test $ac_cv_header_openssl_ssl_h = yes; then
27089 OPENSSL_HEADER_FOUND
=1
27091 OPENSSL_HEADER_FOUND
=0
27097 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
27098 if test ! -z "${OPENSSL_MANDATORY}" ;
27100 { echo "$as_me:$LINENO: ***" >&5
27101 echo "$as_me: ***" >&6;}
27102 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
27103 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
27104 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support" >&5
27105 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support" >&or re-run configure
;}
27106 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
27107 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
27116 cat >>confdefs.h
<<_ACEOF
27117 #define HAVE_OPENSSL 1
27121 elif test ! -z "${OPENSSL_MANDATORY}";
27123 { echo "$as_me:$LINENO: ***" >&5
27124 echo "$as_me: ***" >&6;}
27125 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
27126 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
27127 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
27128 echo "$as_me: *** Either correct the installation" >&or run configure
;}
27129 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
27130 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
27137 if test "${USE_FREETDS}" != "no"; then
27139 if test "x${FREETDS_DIR}" != "x"; then
27140 if test -d ${FREETDS_DIR}/lib
; then
27141 pbxlibdir
="-L${FREETDS_DIR}/lib"
27143 pbxlibdir
="-L${FREETDS_DIR}"
27146 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
27147 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
27148 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
27149 echo $ECHO_N "(cached) $ECHO_C" >&6
27151 ac_check_lib_save_LIBS
=$LIBS
27152 LIBS
="-ltds ${pbxlibdir} $LIBS"
27153 cat >conftest.
$ac_ext <<_ACEOF
27156 cat confdefs.h
>>conftest.
$ac_ext
27157 cat >>conftest.
$ac_ext <<_ACEOF
27158 /* end confdefs.h. */
27160 /* Override any GCC internal prototype to avoid an error.
27161 Use char because int might match the return type of a GCC
27162 builtin and then its argument prototype would still apply. */
27166 char tds_version ();
27170 return tds_version ();
27175 rm -f conftest.
$ac_objext conftest
$ac_exeext
27176 if { (ac_try
="$ac_link"
27177 case "(($ac_try" in
27178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27179 *) ac_try_echo=$ac_try;;
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182 (eval "$ac_link") 2>conftest.er1
27184 grep -v '^ *+' conftest.er1 >conftest.err
27186 cat conftest.err >&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); } &&
27189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27190 { (case "(($ac_try" in
27191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27192 *) ac_try_echo
=$ac_try;;
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195 (eval "$ac_try") 2>&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); }; } &&
27199 { ac_try
='test -s conftest$ac_exeext'
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_try") 2>&5
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; }; then
27209 ac_cv_lib_tds_tds_version=yes
27211 echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27214 ac_cv_lib_tds_tds_version=no
27217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27218 conftest$ac_exeext conftest.$ac_ext
27219 LIBS=$ac_check_lib_save_LIBS
27221 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
27222 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
27223 if test $ac_cv_lib_tds_tds_version = yes; then
27224 AST_FREETDS_FOUND=yes
27226 AST_FREETDS_FOUND=no
27230 if test "${AST_FREETDS_FOUND}" = "yes"; then
27231 FREETDS_LIB="-ltds "
27232 FREETDS_HEADER_FOUND="1"
27233 if test "x${FREETDS_DIR}" != "x"; then
27234 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
27235 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
27236 if test "xtds.h" != "x" ; then
27237 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" |
$as_tr_sh`
27238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27239 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
27240 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
27241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27242 echo $ECHO_N "(cached) $ECHO_C" >&6
27244 ac_res=`eval echo '${'$as_ac_Header'}'`
27245 { echo "$as_me:$LINENO: result: $ac_res" >&5
27246 echo "${ECHO_T}$ac_res" >&6; }
27248 # Is the header compilable?
27249 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
27250 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
27251 cat >conftest.$ac_ext <<_ACEOF
27254 cat confdefs.h >>conftest.$ac_ext
27255 cat >>conftest.$ac_ext <<_ACEOF
27256 /* end confdefs.h. */
27257 $ac_includes_default
27258 #include <${FREETDS_DIR}/include/tds.h>
27260 rm -f conftest.$ac_objext
27261 if { (ac_try="$ac_compile"
27262 case "(($ac_try" in
27263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27264 *) ac_try_echo
=$ac_try;;
27266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267 (eval "$ac_compile") 2>conftest.er1
27269 grep -v '^ *+' conftest.er1
>conftest.err
27271 cat conftest.err
>&5
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); } &&
27274 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27275 { (case "(($ac_try" in
27276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27277 *) ac_try_echo=$ac_try;;
27279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27280 (eval "$ac_try") 2>&5
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); }; } &&
27284 { ac_try='test -s conftest.$ac_objext'
27285 { (case "(($ac_try" in
27286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27287 *) ac_try_echo
=$ac_try;;
27289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27290 (eval "$ac_try") 2>&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); }; }; then
27294 ac_header_compiler
=yes
27296 echo "$as_me: failed program was:" >&5
27297 sed 's/^/| /' conftest.
$ac_ext >&5
27299 ac_header_compiler
=no
27302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27304 echo "${ECHO_T}$ac_header_compiler" >&6; }
27306 # Is the header present?
27307 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
27308 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
27309 cat >conftest.
$ac_ext <<_ACEOF
27312 cat confdefs.h
>>conftest.
$ac_ext
27313 cat >>conftest.
$ac_ext <<_ACEOF
27314 /* end confdefs.h. */
27315 #include <${FREETDS_DIR}/include/tds.h>
27317 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27318 case "(($ac_try" in
27319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27320 *) ac_try_echo=$ac_try;;
27322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27325 grep -v '^ *+' conftest.er1 >conftest.err
27327 cat conftest.err >&5
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); } >/dev/null; then
27330 if test -s conftest.err; then
27331 ac_cpp_err=$ac_c_preproc_warn_flag
27332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27339 if test -z "$ac_cpp_err"; then
27340 ac_header_preproc=yes
27342 echo "$as_me: failed program was:" >&5
27343 sed 's/^/| /' conftest.$ac_ext >&5
27345 ac_header_preproc=no
27348 rm -f conftest.err conftest.$ac_ext
27349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27350 echo "${ECHO_T}$ac_header_preproc" >&6; }
27352 # So? What about this header?
27353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27355 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
27356 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27357 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
27358 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
27359 ac_header_preproc=yes
27362 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
27363 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
27364 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
27365 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
27366 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
27367 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
27368 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
27369 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
27370 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
27371 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
27372 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
27373 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
27377 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
27378 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
27379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27380 echo $ECHO_N "(cached) $ECHO_C" >&6
27382 eval "$as_ac_Header=\$ac_header_preproc"
27384 ac_res=`eval echo '${'$as_ac_Header'}'`
27385 { echo "$as_me:$LINENO: result: $ac_res" >&5
27386 echo "${ECHO_T}$ac_res" >&6; }
27389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27390 FREETDS_HEADER_FOUND=1
27392 FREETDS_HEADER_FOUND=0
27398 if test "xtds.h" != "x" ; then
27399 if test "${ac_cv_header_tds_h+set}" = set; then
27400 { echo "$as_me:$LINENO: checking for tds.h" >&5
27401 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
27402 if test "${ac_cv_header_tds_h+set}" = set; then
27403 echo $ECHO_N "(cached) $ECHO_C" >&6
27405 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
27406 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
27408 # Is the header compilable?
27409 { echo "$as_me:$LINENO: checking tds.h usability" >&5
27410 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
27411 cat >conftest.$ac_ext <<_ACEOF
27414 cat confdefs.h >>conftest.$ac_ext
27415 cat >>conftest.$ac_ext <<_ACEOF
27416 /* end confdefs.h. */
27417 $ac_includes_default
27420 rm -f conftest.$ac_objext
27421 if { (ac_try="$ac_compile"
27422 case "(($ac_try" in
27423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27424 *) ac_try_echo
=$ac_try;;
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_compile") 2>conftest.er1
27429 grep -v '^ *+' conftest.er1
>conftest.err
27431 cat conftest.err
>&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } &&
27434 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27435 { (case "(($ac_try" in
27436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_try") 2>&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest.$ac_objext'
27445 { (case "(($ac_try" in
27446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27447 *) ac_try_echo
=$ac_try;;
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_try") 2>&5
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; }; then
27454 ac_header_compiler
=yes
27456 echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.
$ac_ext >&5
27459 ac_header_compiler
=no
27462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27464 echo "${ECHO_T}$ac_header_compiler" >&6; }
27466 # Is the header present?
27467 { echo "$as_me:$LINENO: checking tds.h presence" >&5
27468 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
27469 cat >conftest.
$ac_ext <<_ACEOF
27472 cat confdefs.h
>>conftest.
$ac_ext
27473 cat >>conftest.
$ac_ext <<_ACEOF
27474 /* end confdefs.h. */
27477 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27478 case "(($ac_try" in
27479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27480 *) ac_try_echo=$ac_try;;
27482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27485 grep -v '^ *+' conftest.er1 >conftest.err
27487 cat conftest.err >&5
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); } >/dev/null; then
27490 if test -s conftest.err; then
27491 ac_cpp_err=$ac_c_preproc_warn_flag
27492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27499 if test -z "$ac_cpp_err"; then
27500 ac_header_preproc=yes
27502 echo "$as_me: failed program was:" >&5
27503 sed 's/^/| /' conftest.$ac_ext >&5
27505 ac_header_preproc=no
27508 rm -f conftest.err conftest.$ac_ext
27509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27510 echo "${ECHO_T}$ac_header_preproc" >&6; }
27512 # So? What about this header?
27513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27515 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
27516 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27517 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
27518 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
27519 ac_header_preproc=yes
27522 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
27523 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
27524 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
27525 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
27526 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
27527 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
27528 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
27529 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
27530 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
27531 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
27532 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
27533 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
27537 { echo "$as_me:$LINENO: checking for tds.h" >&5
27538 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
27539 if test "${ac_cv_header_tds_h+set}" = set; then
27540 echo $ECHO_N "(cached) $ECHO_C" >&6
27542 ac_cv_header_tds_h=$ac_header_preproc
27544 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
27545 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
27548 if test $ac_cv_header_tds_h = yes; then
27549 FREETDS_HEADER_FOUND=1
27551 FREETDS_HEADER_FOUND=0
27557 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
27558 if test ! -z "${FREETDS_MANDATORY}" ;
27560 { echo "$as_me:$LINENO: ***" >&5
27561 echo "$as_me: ***" >&6;}
27562 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
27563 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
27564 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support" >&5
27565 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support" >&or re-run configure;}
27566 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
27567 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
27576 cat >>confdefs.h <<_ACEOF
27577 #define HAVE_FREETDS 1
27581 elif test ! -z "${FREETDS_MANDATORY}";
27583 { echo "$as_me:$LINENO: ***" >&5
27584 echo "$as_me: ***" >&6;}
27585 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
27586 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
27587 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
27588 echo "$as_me: *** Either correct the installation" >&or run configure;}
27589 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
27590 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
27595 if test "${PBX_FREETDS}" != "0";
27597 case `grep TDS_VERSION_NO
${FREETDS_DIR:-/usr/include}/tdsver.h
` in
27599 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
27602 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
27605 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
27608 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
27614 if test "${USE_TERMCAP}" != "no"; then
27616 if test "x${TERMCAP_DIR}" != "x"; then
27617 if test -d ${TERMCAP_DIR}/lib; then
27618 pbxlibdir="-L${TERMCAP_DIR}/lib"
27620 pbxlibdir="-L${TERMCAP_DIR}"
27623 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
27624 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
27625 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27628 ac_check_lib_save_LIBS=$LIBS
27629 LIBS="-ltermcap ${pbxlibdir} $LIBS"
27630 cat >conftest.$ac_ext <<_ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h. */
27637 /* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
27652 rm -f conftest.$ac_objext conftest$ac_exeext
27653 if { (ac_try="$ac_link"
27654 case "(($ac_try" in
27655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27656 *) ac_try_echo
=$ac_try;;
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_link") 2>conftest.er1
27661 grep -v '^ *+' conftest.er1
>conftest.err
27663 cat conftest.err
>&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); } &&
27666 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27667 { (case "(($ac_try" in
27668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_try") 2>&5
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; } &&
27676 { ac_try='test -s conftest$ac_exeext'
27677 { (case "(($ac_try" in
27678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27679 *) ac_try_echo
=$ac_try;;
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_try") 2>&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; }; then
27686 ac_cv_lib_termcap_tgetent
=yes
27688 echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.
$ac_ext >&5
27691 ac_cv_lib_termcap_tgetent
=no
27694 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27695 conftest
$ac_exeext conftest.
$ac_ext
27696 LIBS
=$ac_check_lib_save_LIBS
27698 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
27699 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
27700 if test $ac_cv_lib_termcap_tgetent = yes; then
27701 AST_TERMCAP_FOUND
=yes
27703 AST_TERMCAP_FOUND
=no
27707 if test "${AST_TERMCAP_FOUND}" = "yes"; then
27708 TERMCAP_LIB
="-ltermcap "
27709 TERMCAP_HEADER_FOUND
="1"
27710 if test "x${TERMCAP_DIR}" != "x"; then
27711 TERMCAP_LIB
="${pbxlibdir} ${TERMCAP_LIB}"
27712 TERMCAP_INCLUDE
="-I${TERMCAP_DIR}/include"
27713 if test "x" != "x" ; then
27714 as_ac_Header
=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
27715 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27716 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
27717 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
27718 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27719 echo $ECHO_N "(cached) $ECHO_C" >&6
27721 ac_res
=`eval echo '${'$as_ac_Header'}'`
27722 { echo "$as_me:$LINENO: result: $ac_res" >&5
27723 echo "${ECHO_T}$ac_res" >&6; }
27725 # Is the header compilable?
27726 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
27727 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
27728 cat >conftest.
$ac_ext <<_ACEOF
27731 cat confdefs.h
>>conftest.
$ac_ext
27732 cat >>conftest.
$ac_ext <<_ACEOF
27733 /* end confdefs.h. */
27734 $ac_includes_default
27735 #include <${TERMCAP_DIR}/include/>
27737 rm -f conftest.
$ac_objext
27738 if { (ac_try
="$ac_compile"
27739 case "(($ac_try" in
27740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27741 *) ac_try_echo=$ac_try;;
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744 (eval "$ac_compile") 2>conftest.er1
27746 grep -v '^ *+' conftest.er1 >conftest.err
27748 cat conftest.err >&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } &&
27751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27752 { (case "(($ac_try" in
27753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27754 *) ac_try_echo
=$ac_try;;
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757 (eval "$ac_try") 2>&5
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); }; } &&
27761 { ac_try
='test -s conftest.$ac_objext'
27762 { (case "(($ac_try" in
27763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27764 *) ac_try_echo=$ac_try;;
27766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27767 (eval "$ac_try") 2>&5
27769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); }; }; then
27771 ac_header_compiler=yes
27773 echo "$as_me: failed program was:" >&5
27774 sed 's/^/| /' conftest.$ac_ext >&5
27776 ac_header_compiler=no
27779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27781 echo "${ECHO_T}$ac_header_compiler" >&6; }
27783 # Is the header present?
27784 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
27785 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
27786 cat >conftest.$ac_ext <<_ACEOF
27789 cat confdefs.h >>conftest.$ac_ext
27790 cat >>conftest.$ac_ext <<_ACEOF
27791 /* end confdefs.h. */
27792 #include <${TERMCAP_DIR}/include/>
27794 if { (ac_try="$ac_cpp conftest.$ac_ext"
27795 case "(($ac_try" in
27796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27797 *) ac_try_echo
=$ac_try;;
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27802 grep -v '^ *+' conftest.er1
>conftest.err
27804 cat conftest.err
>&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } >/dev
/null
; then
27807 if test -s conftest.err
; then
27808 ac_cpp_err
=$ac_c_preproc_warn_flag
27809 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
27816 if test -z "$ac_cpp_err"; then
27817 ac_header_preproc
=yes
27819 echo "$as_me: failed program was:" >&5
27820 sed 's/^/| /' conftest.
$ac_ext >&5
27822 ac_header_preproc
=no
27825 rm -f conftest.err conftest.
$ac_ext
27826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27827 echo "${ECHO_T}$ac_header_preproc" >&6; }
27829 # So? What about this header?
27830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27832 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
27833 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
27834 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
27835 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
27836 ac_header_preproc
=yes
27839 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
27840 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
27841 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
27842 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
27843 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
27844 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
27845 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
27846 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
27847 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
27848 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
27849 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
27850 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
27854 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
27855 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
27856 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27857 echo $ECHO_N "(cached) $ECHO_C" >&6
27859 eval "$as_ac_Header=\$ac_header_preproc"
27861 ac_res
=`eval echo '${'$as_ac_Header'}'`
27862 { echo "$as_me:$LINENO: result: $ac_res" >&5
27863 echo "${ECHO_T}$ac_res" >&6; }
27866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27867 TERMCAP_HEADER_FOUND
=1
27869 TERMCAP_HEADER_FOUND
=0
27875 if test "x" != "x" ; then
27876 if test "${ac_cv_header_+set}" = set; then
27877 { echo "$as_me:$LINENO: checking for " >&5
27878 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27879 if test "${ac_cv_header_+set}" = set; then
27880 echo $ECHO_N "(cached) $ECHO_C" >&6
27882 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27883 echo "${ECHO_T}$ac_cv_header_" >&6; }
27885 # Is the header compilable?
27886 { echo "$as_me:$LINENO: checking usability" >&5
27887 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27888 cat >conftest.
$ac_ext <<_ACEOF
27891 cat confdefs.h
>>conftest.
$ac_ext
27892 cat >>conftest.
$ac_ext <<_ACEOF
27893 /* end confdefs.h. */
27894 $ac_includes_default
27897 rm -f conftest.
$ac_objext
27898 if { (ac_try
="$ac_compile"
27899 case "(($ac_try" in
27900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27901 *) ac_try_echo=$ac_try;;
27903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27904 (eval "$ac_compile") 2>conftest.er1
27906 grep -v '^ *+' conftest.er1 >conftest.err
27908 cat conftest.err >&5
27909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910 (exit $ac_status); } &&
27911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27912 { (case "(($ac_try" in
27913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27914 *) ac_try_echo
=$ac_try;;
27916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27917 (eval "$ac_try") 2>&5
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); }; } &&
27921 { ac_try
='test -s conftest.$ac_objext'
27922 { (case "(($ac_try" in
27923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27924 *) ac_try_echo=$ac_try;;
27926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27927 (eval "$ac_try") 2>&5
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); }; }; then
27931 ac_header_compiler=yes
27933 echo "$as_me: failed program was:" >&5
27934 sed 's/^/| /' conftest.$ac_ext >&5
27936 ac_header_compiler=no
27939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27941 echo "${ECHO_T}$ac_header_compiler" >&6; }
27943 # Is the header present?
27944 { echo "$as_me:$LINENO: checking presence" >&5
27945 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27946 cat >conftest.$ac_ext <<_ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h. */
27954 if { (ac_try="$ac_cpp conftest.$ac_ext"
27955 case "(($ac_try" in
27956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27957 *) ac_try_echo
=$ac_try;;
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27962 grep -v '^ *+' conftest.er1
>conftest.err
27964 cat conftest.err
>&5
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); } >/dev
/null
; then
27967 if test -s conftest.err
; then
27968 ac_cpp_err
=$ac_c_preproc_warn_flag
27969 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
27976 if test -z "$ac_cpp_err"; then
27977 ac_header_preproc
=yes
27979 echo "$as_me: failed program was:" >&5
27980 sed 's/^/| /' conftest.
$ac_ext >&5
27982 ac_header_preproc
=no
27985 rm -f conftest.err conftest.
$ac_ext
27986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27987 echo "${ECHO_T}$ac_header_preproc" >&6; }
27989 # So? What about this header?
27990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27992 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27993 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27994 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27995 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27996 ac_header_preproc
=yes
27999 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28000 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28001 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28002 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28003 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28004 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28005 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28006 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28007 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28008 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28009 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28010 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28014 { echo "$as_me:$LINENO: checking for " >&5
28015 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28016 if test "${ac_cv_header_+set}" = set; then
28017 echo $ECHO_N "(cached) $ECHO_C" >&6
28019 ac_cv_header_
=$ac_header_preproc
28021 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28022 echo "${ECHO_T}$ac_cv_header_" >&6; }
28025 if test $ac_cv_header_ = yes; then
28026 TERMCAP_HEADER_FOUND
=1
28028 TERMCAP_HEADER_FOUND
=0
28034 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
28035 if test ! -z "${TERMCAP_MANDATORY}" ;
28037 { echo "$as_me:$LINENO: ***" >&5
28038 echo "$as_me: ***" >&6;}
28039 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
28040 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
28041 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support" >&5
28042 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support" >&or re-run configure
;}
28043 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28044 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28053 cat >>confdefs.h
<<_ACEOF
28054 #define HAVE_TERMCAP 1
28058 elif test ! -z "${TERMCAP_MANDATORY}";
28060 { echo "$as_me:$LINENO: ***" >&5
28061 echo "$as_me: ***" >&6;}
28062 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
28063 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
28064 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
28065 echo "$as_me: *** Either correct the installation" >&or run configure
;}
28066 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28067 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28074 if test "${USE_TINFO}" != "no"; then
28076 if test "x${TINFO_DIR}" != "x"; then
28077 if test -d ${TINFO_DIR}/lib
; then
28078 pbxlibdir
="-L${TINFO_DIR}/lib"
28080 pbxlibdir
="-L${TINFO_DIR}"
28083 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
28084 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
28085 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
28086 echo $ECHO_N "(cached) $ECHO_C" >&6
28088 ac_check_lib_save_LIBS
=$LIBS
28089 LIBS
="-ltinfo ${pbxlibdir} $LIBS"
28090 cat >conftest.
$ac_ext <<_ACEOF
28093 cat confdefs.h
>>conftest.
$ac_ext
28094 cat >>conftest.
$ac_ext <<_ACEOF
28095 /* end confdefs.h. */
28097 /* Override any GCC internal prototype to avoid an error.
28098 Use char because int might match the return type of a GCC
28099 builtin and then its argument prototype would still apply. */
28112 rm -f conftest.
$ac_objext conftest
$ac_exeext
28113 if { (ac_try
="$ac_link"
28114 case "(($ac_try" in
28115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28116 *) ac_try_echo=$ac_try;;
28118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28119 (eval "$ac_link") 2>conftest.er1
28121 grep -v '^ *+' conftest.er1 >conftest.err
28123 cat conftest.err >&5
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); } &&
28126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28127 { (case "(($ac_try" in
28128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28129 *) ac_try_echo
=$ac_try;;
28131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28132 (eval "$ac_try") 2>&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); }; } &&
28136 { ac_try
='test -s conftest$ac_exeext'
28137 { (case "(($ac_try" in
28138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28139 *) ac_try_echo=$ac_try;;
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142 (eval "$ac_try") 2>&5
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; }; then
28146 ac_cv_lib_tinfo_tgetent=yes
28148 echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28151 ac_cv_lib_tinfo_tgetent=no
28154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28155 conftest$ac_exeext conftest.$ac_ext
28156 LIBS=$ac_check_lib_save_LIBS
28158 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
28159 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
28160 if test $ac_cv_lib_tinfo_tgetent = yes; then
28161 AST_TINFO_FOUND=yes
28167 if test "${AST_TINFO_FOUND}" = "yes"; then
28168 TINFO_LIB="-ltinfo "
28169 TINFO_HEADER_FOUND="1"
28170 if test "x${TINFO_DIR}" != "x"; then
28171 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
28172 TINFO_INCLUDE="-I${TINFO_DIR}/include"
28173 if test "x" != "x" ; then
28174 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" |
$as_tr_sh`
28175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28176 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
28177 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
28178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28179 echo $ECHO_N "(cached) $ECHO_C" >&6
28181 ac_res=`eval echo '${'$as_ac_Header'}'`
28182 { echo "$as_me:$LINENO: result: $ac_res" >&5
28183 echo "${ECHO_T}$ac_res" >&6; }
28185 # Is the header compilable?
28186 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
28187 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
28188 cat >conftest.$ac_ext <<_ACEOF
28191 cat confdefs.h >>conftest.$ac_ext
28192 cat >>conftest.$ac_ext <<_ACEOF
28193 /* end confdefs.h. */
28194 $ac_includes_default
28195 #include <${TINFO_DIR}/include/>
28197 rm -f conftest.$ac_objext
28198 if { (ac_try="$ac_compile"
28199 case "(($ac_try" in
28200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28201 *) ac_try_echo
=$ac_try;;
28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_compile") 2>conftest.er1
28206 grep -v '^ *+' conftest.er1
>conftest.err
28208 cat conftest.err
>&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); } &&
28211 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28212 { (case "(($ac_try" in
28213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28214 *) ac_try_echo=$ac_try;;
28216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 (eval "$ac_try") 2>&5
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); }; } &&
28221 { ac_try='test -s conftest.$ac_objext'
28222 { (case "(($ac_try" in
28223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28224 *) ac_try_echo
=$ac_try;;
28226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28227 (eval "$ac_try") 2>&5
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); }; }; then
28231 ac_header_compiler
=yes
28233 echo "$as_me: failed program was:" >&5
28234 sed 's/^/| /' conftest.
$ac_ext >&5
28236 ac_header_compiler
=no
28239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28241 echo "${ECHO_T}$ac_header_compiler" >&6; }
28243 # Is the header present?
28244 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
28245 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
28246 cat >conftest.
$ac_ext <<_ACEOF
28249 cat confdefs.h
>>conftest.
$ac_ext
28250 cat >>conftest.
$ac_ext <<_ACEOF
28251 /* end confdefs.h. */
28252 #include <${TINFO_DIR}/include/>
28254 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28255 case "(($ac_try" in
28256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28257 *) ac_try_echo=$ac_try;;
28259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28262 grep -v '^ *+' conftest.er1 >conftest.err
28264 cat conftest.err >&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); } >/dev/null; then
28267 if test -s conftest.err; then
28268 ac_cpp_err=$ac_c_preproc_warn_flag
28269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28276 if test -z "$ac_cpp_err"; then
28277 ac_header_preproc=yes
28279 echo "$as_me: failed program was:" >&5
28280 sed 's/^/| /' conftest.$ac_ext >&5
28282 ac_header_preproc=no
28285 rm -f conftest.err conftest.$ac_ext
28286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28287 echo "${ECHO_T}$ac_header_preproc" >&6; }
28289 # So? What about this header?
28290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28292 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
28293 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
28294 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
28295 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
28296 ac_header_preproc=yes
28299 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
28300 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
28301 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
28302 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
28303 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
28304 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
28305 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
28306 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
28307 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
28308 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
28309 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
28310 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
28314 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
28315 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
28316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28317 echo $ECHO_N "(cached) $ECHO_C" >&6
28319 eval "$as_ac_Header=\$ac_header_preproc"
28321 ac_res=`eval echo '${'$as_ac_Header'}'`
28322 { echo "$as_me:$LINENO: result: $ac_res" >&5
28323 echo "${ECHO_T}$ac_res" >&6; }
28326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28327 TINFO_HEADER_FOUND=1
28329 TINFO_HEADER_FOUND=0
28335 if test "x" != "x" ; then
28336 if test "${ac_cv_header_+set}" = set; then
28337 { echo "$as_me:$LINENO: checking for " >&5
28338 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28339 if test "${ac_cv_header_+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28343 echo "${ECHO_T}$ac_cv_header_" >&6; }
28345 # Is the header compilable?
28346 { echo "$as_me:$LINENO: checking usability" >&5
28347 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28348 cat >conftest.$ac_ext <<_ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h. */
28354 $ac_includes_default
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 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28372 { (case "(($ac_try" in
28373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28374 *) ac_try_echo=$ac_try;;
28376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28377 (eval "$ac_try") 2>&5
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; } &&
28381 { ac_try='test -s conftest.$ac_objext'
28382 { (case "(($ac_try" in
28383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28384 *) ac_try_echo
=$ac_try;;
28386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28387 (eval "$ac_try") 2>&5
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); }; }; then
28391 ac_header_compiler
=yes
28393 echo "$as_me: failed program was:" >&5
28394 sed 's/^/| /' conftest.
$ac_ext >&5
28396 ac_header_compiler
=no
28399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28401 echo "${ECHO_T}$ac_header_compiler" >&6; }
28403 # Is the header present?
28404 { echo "$as_me:$LINENO: checking presence" >&5
28405 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28406 cat >conftest.
$ac_ext <<_ACEOF
28409 cat confdefs.h
>>conftest.
$ac_ext
28410 cat >>conftest.
$ac_ext <<_ACEOF
28411 /* end confdefs.h. */
28414 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28415 case "(($ac_try" in
28416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28417 *) ac_try_echo=$ac_try;;
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28422 grep -v '^ *+' conftest.er1 >conftest.err
28424 cat conftest.err >&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); } >/dev/null; then
28427 if test -s conftest.err; then
28428 ac_cpp_err=$ac_c_preproc_warn_flag
28429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28436 if test -z "$ac_cpp_err"; then
28437 ac_header_preproc=yes
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28442 ac_header_preproc=no
28445 rm -f conftest.err conftest.$ac_ext
28446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28447 echo "${ECHO_T}$ac_header_preproc" >&6; }
28449 # So? What about this header?
28450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28452 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28453 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28454 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28455 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28456 ac_header_preproc=yes
28459 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28460 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28461 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28462 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28463 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28464 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28465 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28466 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28467 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28468 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28469 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28470 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28474 { echo "$as_me:$LINENO: checking for " >&5
28475 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28476 if test "${ac_cv_header_+set}" = set; then
28477 echo $ECHO_N "(cached) $ECHO_C" >&6
28479 ac_cv_header_=$ac_header_preproc
28481 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28482 echo "${ECHO_T}$ac_cv_header_" >&6; }
28485 if test $ac_cv_header_ = yes; then
28486 TINFO_HEADER_FOUND=1
28488 TINFO_HEADER_FOUND=0
28494 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
28495 if test ! -z "${TINFO_MANDATORY}" ;
28497 { echo "$as_me:$LINENO: ***" >&5
28498 echo "$as_me: ***" >&6;}
28499 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
28500 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
28501 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support" >&5
28502 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support" >&or re-run configure;}
28503 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
28504 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
28513 cat >>confdefs.h <<_ACEOF
28514 #define HAVE_TINFO 1
28518 elif test ! -z "${TINFO_MANDATORY}";
28520 { echo "$as_me:$LINENO: ***" >&5
28521 echo "$as_me: ***" >&6;}
28522 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
28523 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
28524 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
28525 echo "$as_me: *** Either correct the installation" >&or run configure;}
28526 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
28527 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
28533 if test "${host_os}" != "linux-gnu" ; then
28534 tonezone_extra="-lm"
28538 if test "${USE_TONEZONE}" != "no"; then
28540 if test "x${TONEZONE_DIR}" != "x"; then
28541 if test -d ${TONEZONE_DIR}/lib; then
28542 pbxlibdir="-L${TONEZONE_DIR}/lib"
28544 pbxlibdir="-L${TONEZONE_DIR}"
28547 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
28548 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
28549 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
28550 echo $ECHO_N "(cached) $ECHO_C" >&6
28552 ac_check_lib_save_LIBS=$LIBS
28553 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
28554 cat >conftest.$ac_ext <<_ACEOF
28557 cat confdefs.h >>conftest.$ac_ext
28558 cat >>conftest.$ac_ext <<_ACEOF
28559 /* end confdefs.h. */
28561 /* Override any GCC internal prototype to avoid an error.
28562 Use char because int might match the return type of a GCC
28563 builtin and then its argument prototype would still apply. */
28567 char tone_zone_find ();
28571 return tone_zone_find ();
28576 rm -f conftest.$ac_objext conftest$ac_exeext
28577 if { (ac_try="$ac_link"
28578 case "(($ac_try" in
28579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28580 *) ac_try_echo
=$ac_try;;
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_link") 2>conftest.er1
28585 grep -v '^ *+' conftest.er1
>conftest.err
28587 cat conftest.err
>&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); } &&
28590 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28591 { (case "(($ac_try" in
28592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28593 *) ac_try_echo=$ac_try;;
28595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596 (eval "$ac_try") 2>&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; } &&
28600 { ac_try='test -s conftest$ac_exeext'
28601 { (case "(($ac_try" in
28602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28603 *) ac_try_echo
=$ac_try;;
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_try") 2>&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; }; then
28610 ac_cv_lib_tonezone_tone_zone_find
=yes
28612 echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.
$ac_ext >&5
28615 ac_cv_lib_tonezone_tone_zone_find
=no
28618 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28619 conftest
$ac_exeext conftest.
$ac_ext
28620 LIBS
=$ac_check_lib_save_LIBS
28622 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
28623 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
28624 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
28625 AST_TONEZONE_FOUND
=yes
28627 AST_TONEZONE_FOUND
=no
28631 if test "${AST_TONEZONE_FOUND}" = "yes"; then
28632 TONEZONE_LIB
="-ltonezone ${tonezone_extra}"
28633 TONEZONE_HEADER_FOUND
="1"
28634 if test "x${TONEZONE_DIR}" != "x"; then
28635 TONEZONE_LIB
="${pbxlibdir} ${TONEZONE_LIB}"
28636 TONEZONE_INCLUDE
="-I${TONEZONE_DIR}/include"
28637 if test "xzaptel/tonezone.h" != "x" ; then
28638 as_ac_Header
=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
28639 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28640 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
28641 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
28642 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28643 echo $ECHO_N "(cached) $ECHO_C" >&6
28645 ac_res
=`eval echo '${'$as_ac_Header'}'`
28646 { echo "$as_me:$LINENO: result: $ac_res" >&5
28647 echo "${ECHO_T}$ac_res" >&6; }
28649 # Is the header compilable?
28650 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
28651 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
28652 cat >conftest.
$ac_ext <<_ACEOF
28655 cat confdefs.h
>>conftest.
$ac_ext
28656 cat >>conftest.
$ac_ext <<_ACEOF
28657 /* end confdefs.h. */
28658 $ac_includes_default
28659 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
28661 rm -f conftest.
$ac_objext
28662 if { (ac_try
="$ac_compile"
28663 case "(($ac_try" in
28664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28665 *) ac_try_echo=$ac_try;;
28667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668 (eval "$ac_compile") 2>conftest.er1
28670 grep -v '^ *+' conftest.er1 >conftest.err
28672 cat conftest.err >&5
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); } &&
28675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28676 { (case "(($ac_try" in
28677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28678 *) ac_try_echo
=$ac_try;;
28680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681 (eval "$ac_try") 2>&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; } &&
28685 { ac_try
='test -s conftest.$ac_objext'
28686 { (case "(($ac_try" in
28687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28688 *) ac_try_echo=$ac_try;;
28690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691 (eval "$ac_try") 2>&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; }; then
28695 ac_header_compiler=yes
28697 echo "$as_me: failed program was:" >&5
28698 sed 's/^/| /' conftest.$ac_ext >&5
28700 ac_header_compiler=no
28703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28705 echo "${ECHO_T}$ac_header_compiler" >&6; }
28707 # Is the header present?
28708 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
28709 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
28710 cat >conftest.$ac_ext <<_ACEOF
28713 cat confdefs.h >>conftest.$ac_ext
28714 cat >>conftest.$ac_ext <<_ACEOF
28715 /* end confdefs.h. */
28716 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
28718 if { (ac_try="$ac_cpp conftest.$ac_ext"
28719 case "(($ac_try" in
28720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28721 *) ac_try_echo
=$ac_try;;
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28726 grep -v '^ *+' conftest.er1
>conftest.err
28728 cat conftest.err
>&5
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); } >/dev
/null
; then
28731 if test -s conftest.err
; then
28732 ac_cpp_err
=$ac_c_preproc_warn_flag
28733 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
28740 if test -z "$ac_cpp_err"; then
28741 ac_header_preproc
=yes
28743 echo "$as_me: failed program was:" >&5
28744 sed 's/^/| /' conftest.
$ac_ext >&5
28746 ac_header_preproc
=no
28749 rm -f conftest.err conftest.
$ac_ext
28750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28751 echo "${ECHO_T}$ac_header_preproc" >&6; }
28753 # So? What about this header?
28754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28756 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
28757 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28758 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
28759 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
28760 ac_header_preproc
=yes
28763 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
28764 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
28765 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
28766 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
28767 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
28768 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
28769 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
28770 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
28771 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
28772 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
28773 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
28774 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
28778 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
28779 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
28780 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28781 echo $ECHO_N "(cached) $ECHO_C" >&6
28783 eval "$as_ac_Header=\$ac_header_preproc"
28785 ac_res
=`eval echo '${'$as_ac_Header'}'`
28786 { echo "$as_me:$LINENO: result: $ac_res" >&5
28787 echo "${ECHO_T}$ac_res" >&6; }
28790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28791 TONEZONE_HEADER_FOUND
=1
28793 TONEZONE_HEADER_FOUND
=0
28799 if test "xzaptel/tonezone.h" != "x" ; then
28800 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
28801 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
28802 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
28803 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
28804 echo $ECHO_N "(cached) $ECHO_C" >&6
28806 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
28807 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
28809 # Is the header compilable?
28810 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
28811 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
28812 cat >conftest.
$ac_ext <<_ACEOF
28815 cat confdefs.h
>>conftest.
$ac_ext
28816 cat >>conftest.
$ac_ext <<_ACEOF
28817 /* end confdefs.h. */
28818 $ac_includes_default
28819 #include <zaptel/tonezone.h>
28821 rm -f conftest.
$ac_objext
28822 if { (ac_try
="$ac_compile"
28823 case "(($ac_try" in
28824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28825 *) ac_try_echo=$ac_try;;
28827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28828 (eval "$ac_compile") 2>conftest.er1
28830 grep -v '^ *+' conftest.er1 >conftest.err
28832 cat conftest.err >&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); } &&
28835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28836 { (case "(($ac_try" in
28837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28838 *) ac_try_echo
=$ac_try;;
28840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28841 (eval "$ac_try") 2>&5
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); }; } &&
28845 { ac_try
='test -s conftest.$ac_objext'
28846 { (case "(($ac_try" in
28847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28848 *) ac_try_echo=$ac_try;;
28850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28851 (eval "$ac_try") 2>&5
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); }; }; then
28855 ac_header_compiler=yes
28857 echo "$as_me: failed program was:" >&5
28858 sed 's/^/| /' conftest.$ac_ext >&5
28860 ac_header_compiler=no
28863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28865 echo "${ECHO_T}$ac_header_compiler" >&6; }
28867 # Is the header present?
28868 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
28869 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
28870 cat >conftest.$ac_ext <<_ACEOF
28873 cat confdefs.h >>conftest.$ac_ext
28874 cat >>conftest.$ac_ext <<_ACEOF
28875 /* end confdefs.h. */
28876 #include <zaptel/tonezone.h>
28878 if { (ac_try="$ac_cpp conftest.$ac_ext"
28879 case "(($ac_try" in
28880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28881 *) ac_try_echo
=$ac_try;;
28883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28886 grep -v '^ *+' conftest.er1
>conftest.err
28888 cat conftest.err
>&5
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); } >/dev
/null
; then
28891 if test -s conftest.err
; then
28892 ac_cpp_err
=$ac_c_preproc_warn_flag
28893 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
28900 if test -z "$ac_cpp_err"; then
28901 ac_header_preproc
=yes
28903 echo "$as_me: failed program was:" >&5
28904 sed 's/^/| /' conftest.
$ac_ext >&5
28906 ac_header_preproc
=no
28909 rm -f conftest.err conftest.
$ac_ext
28910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28911 echo "${ECHO_T}$ac_header_preproc" >&6; }
28913 # So? What about this header?
28914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28916 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
28917 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28918 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
28919 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
28920 ac_header_preproc
=yes
28923 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
28924 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
28925 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
28926 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
28927 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
28928 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
28929 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
28930 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
28931 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
28932 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
28933 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
28934 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
28938 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
28939 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
28940 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28943 ac_cv_header_zaptel_tonezone_h
=$ac_header_preproc
28945 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
28946 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
28949 if test $ac_cv_header_zaptel_tonezone_h = yes; then
28950 TONEZONE_HEADER_FOUND
=1
28952 TONEZONE_HEADER_FOUND
=0
28958 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
28959 if test ! -z "${TONEZONE_MANDATORY}" ;
28961 { echo "$as_me:$LINENO: ***" >&5
28962 echo "$as_me: ***" >&6;}
28963 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
28964 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
28965 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support" >&5
28966 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support" >&or re-run configure
;}
28967 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
28968 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
28972 TONEZONE_INCLUDE
=""
28977 cat >>confdefs.h
<<_ACEOF
28978 #define HAVE_TONEZONE 1
28982 elif test ! -z "${TONEZONE_MANDATORY}";
28984 { echo "$as_me:$LINENO: ***" >&5
28985 echo "$as_me: ***" >&6;}
28986 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
28987 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
28988 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
28989 echo "$as_me: *** Either correct the installation" >&or run configure
;}
28990 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
28991 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
28998 if test "${USE_VORBIS}" != "no"; then
29000 if test "x${VORBIS_DIR}" != "x"; then
29001 if test -d ${VORBIS_DIR}/lib
; then
29002 pbxlibdir
="-L${VORBIS_DIR}/lib"
29004 pbxlibdir
="-L${VORBIS_DIR}"
29007 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
29008 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
29009 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
29010 echo $ECHO_N "(cached) $ECHO_C" >&6
29012 ac_check_lib_save_LIBS
=$LIBS
29013 LIBS
="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
29014 cat >conftest.
$ac_ext <<_ACEOF
29017 cat confdefs.h
>>conftest.
$ac_ext
29018 cat >>conftest.
$ac_ext <<_ACEOF
29019 /* end confdefs.h. */
29021 /* Override any GCC internal prototype to avoid an error.
29022 Use char because int might match the return type of a GCC
29023 builtin and then its argument prototype would still apply. */
29027 char vorbis_info_init ();
29031 return vorbis_info_init ();
29036 rm -f conftest.
$ac_objext conftest
$ac_exeext
29037 if { (ac_try
="$ac_link"
29038 case "(($ac_try" in
29039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29040 *) ac_try_echo=$ac_try;;
29042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29043 (eval "$ac_link") 2>conftest.er1
29045 grep -v '^ *+' conftest.er1 >conftest.err
29047 cat conftest.err >&5
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); } &&
29050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29051 { (case "(($ac_try" in
29052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29053 *) ac_try_echo
=$ac_try;;
29055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29056 (eval "$ac_try") 2>&5
29058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059 (exit $ac_status); }; } &&
29060 { ac_try
='test -s conftest$ac_exeext'
29061 { (case "(($ac_try" in
29062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29063 *) ac_try_echo=$ac_try;;
29065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29066 (eval "$ac_try") 2>&5
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); }; }; then
29070 ac_cv_lib_vorbis_vorbis_info_init=yes
29072 echo "$as_me: failed program was:" >&5
29073 sed 's/^/| /' conftest.$ac_ext >&5
29075 ac_cv_lib_vorbis_vorbis_info_init=no
29078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29079 conftest$ac_exeext conftest.$ac_ext
29080 LIBS=$ac_check_lib_save_LIBS
29082 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
29083 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
29084 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
29085 AST_VORBIS_FOUND=yes
29087 AST_VORBIS_FOUND=no
29091 if test "${AST_VORBIS_FOUND}" = "yes"; then
29092 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
29093 VORBIS_HEADER_FOUND="1"
29094 if test "x${VORBIS_DIR}" != "x"; then
29095 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
29096 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
29097 if test "xvorbis/codec.h" != "x" ; then
29098 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" |
$as_tr_sh`
29099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
29101 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
29102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103 echo $ECHO_N "(cached) $ECHO_C" >&6
29105 ac_res=`eval echo '${'$as_ac_Header'}'`
29106 { echo "$as_me:$LINENO: result: $ac_res" >&5
29107 echo "${ECHO_T}$ac_res" >&6; }
29109 # Is the header compilable?
29110 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
29111 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
29112 cat >conftest.$ac_ext <<_ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29118 $ac_includes_default
29119 #include <${VORBIS_DIR}/include/vorbis/codec.h>
29121 rm -f conftest.$ac_objext
29122 if { (ac_try="$ac_compile"
29123 case "(($ac_try" in
29124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29125 *) ac_try_echo
=$ac_try;;
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_compile") 2>conftest.er1
29130 grep -v '^ *+' conftest.er1
>conftest.err
29132 cat conftest.err
>&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } &&
29135 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29136 { (case "(($ac_try" in
29137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29138 *) ac_try_echo=$ac_try;;
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141 (eval "$ac_try") 2>&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; } &&
29145 { ac_try='test -s conftest.$ac_objext'
29146 { (case "(($ac_try" in
29147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29148 *) ac_try_echo
=$ac_try;;
29150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151 (eval "$ac_try") 2>&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; }; then
29155 ac_header_compiler
=yes
29157 echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.
$ac_ext >&5
29160 ac_header_compiler
=no
29163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29165 echo "${ECHO_T}$ac_header_compiler" >&6; }
29167 # Is the header present?
29168 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
29169 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
29170 cat >conftest.
$ac_ext <<_ACEOF
29173 cat confdefs.h
>>conftest.
$ac_ext
29174 cat >>conftest.
$ac_ext <<_ACEOF
29175 /* end confdefs.h. */
29176 #include <${VORBIS_DIR}/include/vorbis/codec.h>
29178 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29179 case "(($ac_try" in
29180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29181 *) ac_try_echo=$ac_try;;
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29186 grep -v '^ *+' conftest.er1 >conftest.err
29188 cat conftest.err >&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); } >/dev/null; then
29191 if test -s conftest.err; then
29192 ac_cpp_err=$ac_c_preproc_warn_flag
29193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29200 if test -z "$ac_cpp_err"; then
29201 ac_header_preproc=yes
29203 echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29206 ac_header_preproc=no
29209 rm -f conftest.err conftest.$ac_ext
29210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29211 echo "${ECHO_T}$ac_header_preproc" >&6; }
29213 # So? What about this header?
29214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29216 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29217 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
29219 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
29220 ac_header_preproc=yes
29223 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
29224 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
29225 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
29226 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
29228 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
29229 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29230 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29231 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
29232 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29233 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
29234 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29238 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
29239 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
29240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29241 echo $ECHO_N "(cached) $ECHO_C" >&6
29243 eval "$as_ac_Header=\$ac_header_preproc"
29245 ac_res=`eval echo '${'$as_ac_Header'}'`
29246 { echo "$as_me:$LINENO: result: $ac_res" >&5
29247 echo "${ECHO_T}$ac_res" >&6; }
29250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29251 VORBIS_HEADER_FOUND=1
29253 VORBIS_HEADER_FOUND=0
29259 if test "xvorbis/codec.h" != "x" ; then
29260 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29261 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29262 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29263 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29264 echo $ECHO_N "(cached) $ECHO_C" >&6
29266 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29267 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29269 # Is the header compilable?
29270 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
29271 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
29272 cat >conftest.$ac_ext <<_ACEOF
29275 cat confdefs.h >>conftest.$ac_ext
29276 cat >>conftest.$ac_ext <<_ACEOF
29277 /* end confdefs.h. */
29278 $ac_includes_default
29279 #include <vorbis/codec.h>
29281 rm -f conftest.$ac_objext
29282 if { (ac_try="$ac_compile"
29283 case "(($ac_try" in
29284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29285 *) ac_try_echo
=$ac_try;;
29287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29288 (eval "$ac_compile") 2>conftest.er1
29290 grep -v '^ *+' conftest.er1
>conftest.err
29292 cat conftest.err
>&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } &&
29295 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29296 { (case "(($ac_try" in
29297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_try") 2>&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; } &&
29305 { ac_try='test -s conftest.$ac_objext'
29306 { (case "(($ac_try" in
29307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29308 *) ac_try_echo
=$ac_try;;
29310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_try") 2>&5
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
29315 ac_header_compiler
=yes
29317 echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.
$ac_ext >&5
29320 ac_header_compiler
=no
29323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29325 echo "${ECHO_T}$ac_header_compiler" >&6; }
29327 # Is the header present?
29328 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
29329 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
29330 cat >conftest.
$ac_ext <<_ACEOF
29333 cat confdefs.h
>>conftest.
$ac_ext
29334 cat >>conftest.
$ac_ext <<_ACEOF
29335 /* end confdefs.h. */
29336 #include <vorbis/codec.h>
29338 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29339 case "(($ac_try" in
29340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29341 *) ac_try_echo=$ac_try;;
29343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29346 grep -v '^ *+' conftest.er1 >conftest.err
29348 cat conftest.err >&5
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); } >/dev/null; then
29351 if test -s conftest.err; then
29352 ac_cpp_err=$ac_c_preproc_warn_flag
29353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29360 if test -z "$ac_cpp_err"; then
29361 ac_header_preproc=yes
29363 echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29366 ac_header_preproc=no
29369 rm -f conftest.err conftest.$ac_ext
29370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29371 echo "${ECHO_T}$ac_header_preproc" >&6; }
29373 # So? What about this header?
29374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29376 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29377 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
29379 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
29380 ac_header_preproc=yes
29383 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
29384 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
29385 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
29386 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29387 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
29388 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29390 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29391 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
29392 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29393 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
29394 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29398 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29399 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29400 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29401 echo $ECHO_N "(cached) $ECHO_C" >&6
29403 ac_cv_header_vorbis_codec_h=$ac_header_preproc
29405 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29406 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29409 if test $ac_cv_header_vorbis_codec_h = yes; then
29410 VORBIS_HEADER_FOUND=1
29412 VORBIS_HEADER_FOUND=0
29418 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
29419 if test ! -z "${VORBIS_MANDATORY}" ;
29421 { echo "$as_me:$LINENO: ***" >&5
29422 echo "$as_me: ***" >&6;}
29423 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
29424 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
29425 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support" >&5
29426 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support" >&or re-run configure;}
29427 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
29428 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
29437 cat >>confdefs.h <<_ACEOF
29438 #define HAVE_VORBIS 1
29442 elif test ! -z "${VORBIS_MANDATORY}";
29444 { echo "$as_me:$LINENO: ***" >&5
29445 echo "$as_me: ***" >&6;}
29446 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
29447 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
29448 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
29449 echo "$as_me: *** Either correct the installation" >&or run configure;}
29450 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
29451 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
29458 ac_cpp='$CXXCPP $CPPFLAGS'
29459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29464 if test "${USE_VPB}" != "no"; then
29465 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
29466 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
29467 saved_libs="${LIBS}"
29468 saved_cppflags="${CPPFLAGS}"
29469 if test "x${VPB_DIR}" != "x"; then
29470 if test -d ${VPB_DIR}/lib; then
29471 vpblibdir=${VPB_DIR}/lib
29473 vpblibdir=${VPB_DIR}
29475 LIBS="${LIBS} -L${vpblibdir}"
29476 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
29478 LIBS="${LIBS} -lvpb -lpthread"
29479 cat >conftest.$ac_ext <<_ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h. */
29486 #include <vpbapi.h>
29490 int q = vpb_open(0,0);
29496 rm -f conftest.$ac_objext conftest$ac_exeext
29497 if { (ac_try="$ac_link"
29498 case "(($ac_try" in
29499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29500 *) ac_try_echo
=$ac_try;;
29502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503 (eval "$ac_link") 2>conftest.er1
29505 grep -v '^ *+' conftest.er1
>conftest.err
29507 cat conftest.err
>&5
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); } &&
29510 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29511 { (case "(($ac_try" in
29512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29513 *) ac_try_echo=$ac_try;;
29515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29516 (eval "$ac_try") 2>&5
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); }; } &&
29520 { ac_try='test -s conftest$ac_exeext'
29521 { (case "(($ac_try" in
29522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29523 *) ac_try_echo
=$ac_try;;
29525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29526 (eval "$ac_try") 2>&5
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); }; }; then
29530 { echo "$as_me:$LINENO: result: yes" >&5
29531 echo "${ECHO_T}yes" >&6; }
29532 ac_cv_lib_vpb_vpb_open
="yes"
29535 echo "$as_me: failed program was:" >&5
29536 sed 's/^/| /' conftest.
$ac_ext >&5
29538 { echo "$as_me:$LINENO: result: no" >&5
29539 echo "${ECHO_T}no" >&6; }
29540 ac_cv_lib_vpb_vpb_open
="no"
29545 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29546 conftest
$ac_exeext conftest.
$ac_ext
29547 LIBS
="${saved_libs}"
29548 CPPFLAGS
="${saved_cppflags}"
29549 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
29551 if test "${VPB_DIR}" != ""; then
29552 VPB_LIB
="-L${vpblibdir} ${VPB_LIB}"
29553 VPB_INCLUDE
="-I${VPB_DIR}/include"
29557 cat >>confdefs.h
<<\_ACEOF
29561 elif test ! -z "${VPB_MANDATORY}"; then
29562 { echo "$as_me:$LINENO: ***" >&5
29563 echo "$as_me: ***" >&6;}
29564 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
29565 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
29566 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
29567 echo "$as_me: *** Either correct the installation" >&or run configure
;}
29568 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
29569 echo "$as_me: *** including --without-vpb." >&6;}
29575 ac_cpp
='$CPP $CPPFLAGS'
29576 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29577 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29578 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
29582 if test "${USE_ZLIB}" != "no"; then
29584 if test "x${ZLIB_DIR}" != "x"; then
29585 if test -d ${ZLIB_DIR}/lib
; then
29586 pbxlibdir
="-L${ZLIB_DIR}/lib"
29588 pbxlibdir
="-L${ZLIB_DIR}"
29591 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
29592 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
29593 if test "${ac_cv_lib_z_compress+set}" = set; then
29594 echo $ECHO_N "(cached) $ECHO_C" >&6
29596 ac_check_lib_save_LIBS
=$LIBS
29597 LIBS
="-lz ${pbxlibdir} $LIBS"
29598 cat >conftest.
$ac_ext <<_ACEOF
29601 cat confdefs.h
>>conftest.
$ac_ext
29602 cat >>conftest.
$ac_ext <<_ACEOF
29603 /* end confdefs.h. */
29605 /* Override any GCC internal prototype to avoid an error.
29606 Use char because int might match the return type of a GCC
29607 builtin and then its argument prototype would still apply. */
29615 return compress ();
29620 rm -f conftest.
$ac_objext conftest
$ac_exeext
29621 if { (ac_try
="$ac_link"
29622 case "(($ac_try" in
29623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29624 *) ac_try_echo=$ac_try;;
29626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29627 (eval "$ac_link") 2>conftest.er1
29629 grep -v '^ *+' conftest.er1 >conftest.err
29631 cat conftest.err >&5
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } &&
29634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29635 { (case "(($ac_try" in
29636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29637 *) ac_try_echo
=$ac_try;;
29639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640 (eval "$ac_try") 2>&5
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; } &&
29644 { ac_try
='test -s conftest$ac_exeext'
29645 { (case "(($ac_try" in
29646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29647 *) ac_try_echo=$ac_try;;
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650 (eval "$ac_try") 2>&5
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; }; then
29654 ac_cv_lib_z_compress=yes
29656 echo "$as_me: failed program was:" >&5
29657 sed 's/^/| /' conftest.$ac_ext >&5
29659 ac_cv_lib_z_compress=no
29662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29663 conftest$ac_exeext conftest.$ac_ext
29664 LIBS=$ac_check_lib_save_LIBS
29666 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
29667 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
29668 if test $ac_cv_lib_z_compress = yes; then
29675 if test "${AST_ZLIB_FOUND}" = "yes"; then
29677 ZLIB_HEADER_FOUND="1"
29678 if test "x${ZLIB_DIR}" != "x"; then
29679 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
29680 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
29681 if test "xzlib.h" != "x" ; then
29682 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" |
$as_tr_sh`
29683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29684 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
29685 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
29686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29687 echo $ECHO_N "(cached) $ECHO_C" >&6
29689 ac_res=`eval echo '${'$as_ac_Header'}'`
29690 { echo "$as_me:$LINENO: result: $ac_res" >&5
29691 echo "${ECHO_T}$ac_res" >&6; }
29693 # Is the header compilable?
29694 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
29695 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
29696 cat >conftest.$ac_ext <<_ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h. */
29702 $ac_includes_default
29703 #include <${ZLIB_DIR}/include/zlib.h>
29705 rm -f conftest.$ac_objext
29706 if { (ac_try="$ac_compile"
29707 case "(($ac_try" in
29708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29709 *) ac_try_echo
=$ac_try;;
29711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29712 (eval "$ac_compile") 2>conftest.er1
29714 grep -v '^ *+' conftest.er1
>conftest.err
29716 cat conftest.err
>&5
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); } &&
29719 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29720 { (case "(($ac_try" in
29721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29722 *) ac_try_echo=$ac_try;;
29724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725 (eval "$ac_try") 2>&5
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; } &&
29729 { ac_try='test -s conftest.$ac_objext'
29730 { (case "(($ac_try" in
29731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29732 *) ac_try_echo
=$ac_try;;
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735 (eval "$ac_try") 2>&5
29737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738 (exit $ac_status); }; }; then
29739 ac_header_compiler
=yes
29741 echo "$as_me: failed program was:" >&5
29742 sed 's/^/| /' conftest.
$ac_ext >&5
29744 ac_header_compiler
=no
29747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29749 echo "${ECHO_T}$ac_header_compiler" >&6; }
29751 # Is the header present?
29752 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
29753 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
29754 cat >conftest.
$ac_ext <<_ACEOF
29757 cat confdefs.h
>>conftest.
$ac_ext
29758 cat >>conftest.
$ac_ext <<_ACEOF
29759 /* end confdefs.h. */
29760 #include <${ZLIB_DIR}/include/zlib.h>
29762 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29763 case "(($ac_try" in
29764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29765 *) ac_try_echo=$ac_try;;
29767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29770 grep -v '^ *+' conftest.er1 >conftest.err
29772 cat conftest.err >&5
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); } >/dev/null; then
29775 if test -s conftest.err; then
29776 ac_cpp_err=$ac_c_preproc_warn_flag
29777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29784 if test -z "$ac_cpp_err"; then
29785 ac_header_preproc=yes
29787 echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29790 ac_header_preproc=no
29793 rm -f conftest.err conftest.$ac_ext
29794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29795 echo "${ECHO_T}$ac_header_preproc" >&6; }
29797 # So? What about this header?
29798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29800 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29801 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29802 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
29803 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
29804 ac_header_preproc=yes
29807 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
29808 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
29809 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
29810 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
29811 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
29812 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
29813 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29814 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29815 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
29816 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
29817 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
29818 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
29822 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
29823 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
29824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29825 echo $ECHO_N "(cached) $ECHO_C" >&6
29827 eval "$as_ac_Header=\$ac_header_preproc"
29829 ac_res=`eval echo '${'$as_ac_Header'}'`
29830 { echo "$as_me:$LINENO: result: $ac_res" >&5
29831 echo "${ECHO_T}$ac_res" >&6; }
29834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29835 ZLIB_HEADER_FOUND=1
29837 ZLIB_HEADER_FOUND=0
29843 if test "xzlib.h" != "x" ; then
29844 if test "${ac_cv_header_zlib_h+set}" = set; then
29845 { echo "$as_me:$LINENO: checking for zlib.h" >&5
29846 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
29847 if test "${ac_cv_header_zlib_h+set}" = set; then
29848 echo $ECHO_N "(cached) $ECHO_C" >&6
29850 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29851 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
29853 # Is the header compilable?
29854 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
29855 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
29856 cat >conftest.$ac_ext <<_ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h. */
29862 $ac_includes_default
29865 rm -f conftest.$ac_objext
29866 if { (ac_try="$ac_compile"
29867 case "(($ac_try" in
29868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29869 *) ac_try_echo
=$ac_try;;
29871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872 (eval "$ac_compile") 2>conftest.er1
29874 grep -v '^ *+' conftest.er1
>conftest.err
29876 cat conftest.err
>&5
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); } &&
29879 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29880 { (case "(($ac_try" in
29881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_try") 2>&5
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; } &&
29889 { ac_try='test -s conftest.$ac_objext'
29890 { (case "(($ac_try" in
29891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29892 *) ac_try_echo
=$ac_try;;
29894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29895 (eval "$ac_try") 2>&5
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); }; }; then
29899 ac_header_compiler
=yes
29901 echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.
$ac_ext >&5
29904 ac_header_compiler
=no
29907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29909 echo "${ECHO_T}$ac_header_compiler" >&6; }
29911 # Is the header present?
29912 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
29913 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
29914 cat >conftest.
$ac_ext <<_ACEOF
29917 cat confdefs.h
>>conftest.
$ac_ext
29918 cat >>conftest.
$ac_ext <<_ACEOF
29919 /* end confdefs.h. */
29922 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29923 case "(($ac_try" in
29924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29925 *) ac_try_echo=$ac_try;;
29927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29930 grep -v '^ *+' conftest.er1 >conftest.err
29932 cat conftest.err >&5
29933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934 (exit $ac_status); } >/dev/null; then
29935 if test -s conftest.err; then
29936 ac_cpp_err=$ac_c_preproc_warn_flag
29937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29944 if test -z "$ac_cpp_err"; then
29945 ac_header_preproc=yes
29947 echo "$as_me: failed program was:" >&5
29948 sed 's/^/| /' conftest.$ac_ext >&5
29950 ac_header_preproc=no
29953 rm -f conftest.err conftest.$ac_ext
29954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29955 echo "${ECHO_T}$ac_header_preproc" >&6; }
29957 # So? What about this header?
29958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29960 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29961 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29962 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
29963 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
29964 ac_header_preproc=yes
29967 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
29968 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
29969 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
29970 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
29971 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
29972 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
29973 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29974 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29975 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
29976 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
29977 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
29978 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
29982 { echo "$as_me:$LINENO: checking for zlib.h" >&5
29983 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
29984 if test "${ac_cv_header_zlib_h+set}" = set; then
29985 echo $ECHO_N "(cached) $ECHO_C" >&6
29987 ac_cv_header_zlib_h=$ac_header_preproc
29989 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29990 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
29993 if test $ac_cv_header_zlib_h = yes; then
29994 ZLIB_HEADER_FOUND=1
29996 ZLIB_HEADER_FOUND=0
30002 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
30003 if test ! -z "${ZLIB_MANDATORY}" ;
30005 { echo "$as_me:$LINENO: ***" >&5
30006 echo "$as_me: ***" >&6;}
30007 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
30008 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
30009 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support" >&5
30010 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support" >&or re-run configure;}
30011 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30012 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30021 cat >>confdefs.h <<_ACEOF
30022 #define HAVE_ZLIB 1
30026 elif test ! -z "${ZLIB_MANDATORY}";
30028 { echo "$as_me:$LINENO: ***" >&5
30029 echo "$as_me: ***" >&6;}
30030 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
30031 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
30032 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
30033 echo "$as_me: *** Either correct the installation" >&or run configure;}
30034 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30035 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30041 if test "${USE_ZAPTEL}" != "no"; then
30042 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel.h" >&5
30043 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel.h... $ECHO_C" >&6; }
30044 saved_cppflags="${CPPFLAGS}"
30045 if test "x${ZAPTEL_DIR}" != "x"; then
30046 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30048 cat >conftest.$ac_ext <<_ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h. */
30055 #include <zaptel/zaptel.h>
30059 int foo = ZT_TONE_DTMF_BASE;
30065 rm -f conftest.$ac_objext
30066 if { (ac_try="$ac_compile"
30067 case "(($ac_try" in
30068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30069 *) ac_try_echo
=$ac_try;;
30071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072 (eval "$ac_compile") 2>conftest.er1
30074 grep -v '^ *+' conftest.er1
>conftest.err
30076 cat conftest.err
>&5
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); } &&
30079 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30080 { (case "(($ac_try" in
30081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30082 *) ac_try_echo=$ac_try;;
30084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30085 (eval "$ac_try") 2>&5
30087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088 (exit $ac_status); }; } &&
30089 { ac_try='test -s conftest.$ac_objext'
30090 { (case "(($ac_try" in
30091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30092 *) ac_try_echo
=$ac_try;;
30094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30095 (eval "$ac_try") 2>&5
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); }; }; then
30099 { echo "$as_me:$LINENO: result: yes" >&5
30100 echo "${ECHO_T}yes" >&6; }
30101 ac_cv_zaptel_h
="yes"
30104 echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.
$ac_ext >&5
30107 { echo "$as_me:$LINENO: result: no" >&5
30108 echo "${ECHO_T}no" >&6; }
30109 ac_cv_zaptel_h
="no"
30114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30115 CPPFLAGS
="${saved_cppflags}"
30116 if test "${ac_cv_zaptel_h}" = "yes"; then
30117 if test "${ZAPTEL_DIR}" != ""; then
30118 ZAPTEL_INCLUDE
="-I${ZAPTEL_DIR}/include"
30122 cat >>confdefs.h
<<\_ACEOF
30123 #define HAVE_ZAPTEL 1
30126 elif test ! -z "${ZAPTEL_MANDATORY}";
30128 { echo "$as_me:$LINENO: ***" >&5
30129 echo "$as_me: ***" >&6;}
30130 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
30131 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
30132 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
30133 echo "$as_me: *** Either correct the installation" >&or run configure
;}
30134 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
30135 echo "$as_me: *** including --without-zaptel." >&6;}
30141 if test "x$TERMCAP_LIB" != "x" ; then
30142 EDITLINE_LIB
="$TERMCAP_LIB"
30143 elif test "x$TINFO_LIB" != "x" ; then
30144 EDITLINE_LIB
="$TINFO_LIB"
30145 elif test "x$CURSES_LIB" != "x" ; then
30146 EDITLINE_LIB
="$CURSES_LIB"
30147 elif test "x$NCURSES_LIB" != "x" ; then
30148 EDITLINE_LIB
="$NCURSES_LIB"
30150 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
30151 echo "$as_me: error: *** termcap support not found" >&2;}
30152 { (exit 1); exit 1; }; }
30156 if test "${ac_cv_header_h323_h+set}" = set; then
30157 { echo "$as_me:$LINENO: checking for h323.h" >&5
30158 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30159 if test "${ac_cv_header_h323_h+set}" = set; then
30160 echo $ECHO_N "(cached) $ECHO_C" >&6
30162 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30163 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30165 # Is the header compilable?
30166 { echo "$as_me:$LINENO: checking h323.h usability" >&5
30167 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
30168 cat >conftest.
$ac_ext <<_ACEOF
30171 cat confdefs.h
>>conftest.
$ac_ext
30172 cat >>conftest.
$ac_ext <<_ACEOF
30173 /* end confdefs.h. */
30174 $ac_includes_default
30177 rm -f conftest.
$ac_objext
30178 if { (ac_try
="$ac_compile"
30179 case "(($ac_try" in
30180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30181 *) ac_try_echo=$ac_try;;
30183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30184 (eval "$ac_compile") 2>conftest.er1
30186 grep -v '^ *+' conftest.er1 >conftest.err
30188 cat conftest.err >&5
30189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190 (exit $ac_status); } &&
30191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30192 { (case "(($ac_try" in
30193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30194 *) ac_try_echo
=$ac_try;;
30196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30197 (eval "$ac_try") 2>&5
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; } &&
30201 { ac_try
='test -s conftest.$ac_objext'
30202 { (case "(($ac_try" in
30203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30204 *) ac_try_echo=$ac_try;;
30206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30207 (eval "$ac_try") 2>&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30211 ac_header_compiler=yes
30213 echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30216 ac_header_compiler=no
30219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30221 echo "${ECHO_T}$ac_header_compiler" >&6; }
30223 # Is the header present?
30224 { echo "$as_me:$LINENO: checking h323.h presence" >&5
30225 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
30226 cat >conftest.$ac_ext <<_ACEOF
30229 cat confdefs.h >>conftest.$ac_ext
30230 cat >>conftest.$ac_ext <<_ACEOF
30231 /* end confdefs.h. */
30234 if { (ac_try="$ac_cpp conftest.$ac_ext"
30235 case "(($ac_try" in
30236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30237 *) ac_try_echo
=$ac_try;;
30239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30242 grep -v '^ *+' conftest.er1
>conftest.err
30244 cat conftest.err
>&5
30245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246 (exit $ac_status); } >/dev
/null
; then
30247 if test -s conftest.err
; then
30248 ac_cpp_err
=$ac_c_preproc_warn_flag
30249 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
30256 if test -z "$ac_cpp_err"; then
30257 ac_header_preproc
=yes
30259 echo "$as_me: failed program was:" >&5
30260 sed 's/^/| /' conftest.
$ac_ext >&5
30262 ac_header_preproc
=no
30265 rm -f conftest.err conftest.
$ac_ext
30266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30267 echo "${ECHO_T}$ac_header_preproc" >&6; }
30269 # So? What about this header?
30270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30272 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
30273 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30274 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
30275 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
30276 ac_header_preproc
=yes
30279 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
30280 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
30281 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
30282 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
30283 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
30284 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
30285 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
30286 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
30288 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
30289 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
30290 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
30294 { echo "$as_me:$LINENO: checking for h323.h" >&5
30295 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30296 if test "${ac_cv_header_h323_h+set}" = set; then
30297 echo $ECHO_N "(cached) $ECHO_C" >&6
30299 ac_cv_header_h323_h
=$ac_header_preproc
30301 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30302 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30305 if test $ac_cv_header_h323_h = yes; then
30314 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
30315 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
30316 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
30317 echo $ECHO_N "(cached) $ECHO_C" >&6
30319 cat >conftest.
$ac_ext <<_ACEOF
30322 cat confdefs.h
>>conftest.
$ac_ext
30323 cat >>conftest.
$ac_ext <<_ACEOF
30324 /* end confdefs.h. */
30326 #include <linux/version.h>
30327 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
30328 #include <linux/compiler.h>
30332 #include <linux/ixjuser.h>
30334 rm -f conftest.
$ac_objext
30335 if { (ac_try
="$ac_compile"
30336 case "(($ac_try" in
30337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30338 *) ac_try_echo=$ac_try;;
30340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30341 (eval "$ac_compile") 2>conftest.er1
30343 grep -v '^ *+' conftest.er1 >conftest.err
30345 cat conftest.err >&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } &&
30348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30349 { (case "(($ac_try" in
30350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30351 *) ac_try_echo
=$ac_try;;
30353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354 (eval "$ac_try") 2>&5
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; } &&
30358 { ac_try
='test -s conftest.$ac_objext'
30359 { (case "(($ac_try" in
30360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_try") 2>&5
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); }; }; then
30368 ac_cv_header_linux_ixjuser_h=yes
30370 echo "$as_me: failed program was:" >&5
30371 sed 's/^/| /' conftest.$ac_ext >&5
30373 ac_cv_header_linux_ixjuser_h=no
30376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30378 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
30379 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
30380 if test $ac_cv_header_linux_ixjuser_h = yes; then
30390 if test -n "$ac_tool_prefix"; then
30391 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
30392 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
30393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30395 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
30396 echo $ECHO_N "(cached) $ECHO_C" >&6
30398 if test -n "$GTKCONFIG"; then
30399 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
30401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30402 for as_dir in $PATH
30405 test -z "$as_dir" && as_dir=.
30406 for ac_exec_ext in '' $ac_executable_extensions; do
30407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30408 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
30409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30418 GTKCONFIG=$ac_cv_prog_GTKCONFIG
30419 if test -n "$GTKCONFIG"; then
30420 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
30421 echo "${ECHO_T}$GTKCONFIG" >&6; }
30423 { echo "$as_me:$LINENO: result: no" >&5
30424 echo "${ECHO_T}no" >&6; }
30429 if test -z "$ac_cv_prog_GTKCONFIG"; then
30430 ac_ct_GTKCONFIG=$GTKCONFIG
30431 # Extract the first word of "gtk-config", so it can be a program name with args.
30432 set dummy gtk-config; ac_word=$2
30433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30435 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
30436 echo $ECHO_N "(cached) $ECHO_C" >&6
30438 if test -n "$ac_ct_GTKCONFIG"; then
30439 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
30441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30442 for as_dir in $PATH
30445 test -z "$as_dir" && as_dir=.
30446 for ac_exec_ext in '' $ac_executable_extensions; do
30447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30448 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
30449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30458 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
30459 if test -n "$ac_ct_GTKCONFIG"; then
30460 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
30461 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
30463 { echo "$as_me:$LINENO: result: no" >&5
30464 echo "${ECHO_T}no" >&6; }
30467 if test "x$ac_ct_GTKCONFIG" = x; then
30470 case $cross_compiling:$ac_tool_warned in
30472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30473 whose name does not start with the host triplet. If you think this
30474 configuration is useful to you, please write to autoconf@gnu.org." >&5
30475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30476 whose name does not start with the host triplet. If you think this
30477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30478 ac_tool_warned=yes ;;
30480 GTKCONFIG=$ac_ct_GTKCONFIG
30483 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
30486 if test ! "x${GTKCONFIG}" = xNo; then
30487 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
30488 GTK_LIB=$(${GTKCONFIG} --libs gthread)
30491 cat >>confdefs.h <<\_ACEOF
30500 if test "${USE_CURL}" != "no"; then
30501 if test -n "$ac_tool_prefix"; then
30502 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
30503 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
30504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30506 if test "${ac_cv_path_CURL+set}" = set; then
30507 echo $ECHO_N "(cached) $ECHO_C" >&6
30511 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
30514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30515 for as_dir in $PATH
30518 test -z "$as_dir" && as_dir=.
30519 for ac_exec_ext in '' $ac_executable_extensions; do
30520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30521 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
30522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30532 CURL=$ac_cv_path_CURL
30533 if test -n "$CURL"; then
30534 { echo "$as_me:$LINENO: result: $CURL" >&5
30535 echo "${ECHO_T}$CURL" >&6; }
30537 { echo "$as_me:$LINENO: result: no" >&5
30538 echo "${ECHO_T}no" >&6; }
30543 if test -z "$ac_cv_path_CURL"; then
30545 # Extract the first word of "curl-config", so it can be a program name with args.
30546 set dummy curl-config; ac_word=$2
30547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30549 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
30550 echo $ECHO_N "(cached) $ECHO_C" >&6
30552 case $ac_pt_CURL in
30554 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
30557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30558 for as_dir in $PATH
30561 test -z "$as_dir" && as_dir=.
30562 for ac_exec_ext in '' $ac_executable_extensions; do
30563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30564 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
30565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30575 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
30576 if test -n "$ac_pt_CURL"; then
30577 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
30578 echo "${ECHO_T}$ac_pt_CURL" >&6; }
30580 { echo "$as_me:$LINENO: result: no" >&5
30581 echo "${ECHO_T}no" >&6; }
30584 if test "x$ac_pt_CURL" = x; then
30587 case $cross_compiling:$ac_tool_warned in
30589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30590 whose name does not start with the host triplet. If you think this
30591 configuration is useful to you, please write to autoconf@gnu.org." >&5
30592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30593 whose name does not start with the host triplet. If you think this
30594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30595 ac_tool_warned=yes ;;
30600 CURL="$ac_cv_path_CURL"
30603 if test ! x"${CURL}" = xNo; then
30604 # check for version
30605 if test "${host_os}" = "SunOS"; then
30606 if [ 0x`curl-config
--vernum` -ge 0x70907 ]; then
30607 CURL_INCLUDE=$(${CURL} --cflags)
30608 CURL_LIB=$(${CURL} --libs)
30611 cat >>confdefs.h <<\_ACEOF
30612 #define HAVE_CURL 1
30617 if [[ 0x`curl-config
--vernum` -ge 0x70907 ]]; then
30618 CURL_INCLUDE=$(${CURL} --cflags)
30619 CURL_LIB=$(${CURL} --libs)
30622 cat >>confdefs.h <<\_ACEOF
30623 #define HAVE_CURL 1
30631 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
30633 cat >confcache <<\_ACEOF
30634 # This file is a shell script that caches the results of configure
30635 # tests run on this system so they can be shared between configure
30636 # scripts and configure runs, see configure's option --config-cache.
30637 # It is not useful on other systems. If it contains results you don't
30638 # want to keep, you may remove or edit it.
30640 # config.status only pays attention to the cache file if you give it
30641 # the --recheck option to rerun configure.
30643 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
30644 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30645 # following values.
30649 # The following way of writing the cache mishandles newlines in values,
30650 # but we know of no workaround that is simple, portable, and efficient.
30651 # So, we kill variables containing newlines.
30652 # Ultrix sh set writes to stderr and can't be redirected directly,
30653 # and sets the high bit in the cache file unless we assign to the vars.
30655 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30656 eval ac_val
=\$
$ac_var
30660 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30661 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30664 _ | IFS | as_nl
) ;; #(
30665 *) $as_unset $ac_var ;;
30671 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30672 *${as_nl}ac_space
=\
*)
30673 # `set' does not quote correctly, so add quotes (double-quote
30674 # substitution turns \\\\ into \\, and sed turns \\ into \).
30677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30680 # `set' quotes correctly as required by POSIX, so do not add quotes.
30681 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30690 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30692 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30694 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30695 if test -w "$cache_file"; then
30696 test "x$cache_file" != "x/dev/null" &&
30697 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30698 echo "$as_me: updating cache $cache_file" >&6;}
30699 cat confcache
>$cache_file
30701 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30702 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30707 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30708 # Let make expand exec_prefix.
30709 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30711 DEFS
=-DHAVE_CONFIG_H
30715 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30716 # 1. Remove the extension, and $U if already installed.
30717 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30718 ac_i
=`echo "$ac_i" | sed "$ac_script"`
30719 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30720 # will be set to the directory where LIBOBJS objects are built.
30721 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30722 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30724 LIBOBJS
=$ac_libobjs
30726 LTLIBOBJS
=$ac_ltlibobjs
30730 : ${CONFIG_STATUS=./config.status}
30731 ac_clean_files_save
=$ac_clean_files
30732 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30733 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30734 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30735 cat >$CONFIG_STATUS <<_ACEOF
30737 # Generated by $as_me.
30738 # Run this file to recreate the current configuration.
30739 # Compiler output produced by configure, useful for debugging
30740 # configure, is in config.log if it exists.
30743 ac_cs_recheck=false
30745 SHELL=\${CONFIG_SHELL-$SHELL}
30748 cat >>$CONFIG_STATUS <<\_ACEOF
30749 ## --------------------- ##
30750 ## M4sh Initialization. ##
30751 ## --------------------- ##
30753 # Be Bourne compatible
30754 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
30757 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30758 # is contrary to our usage. Disable this feature.
30759 alias -g '${1+"$@"}'='"$@"'
30760 setopt NO_GLOB_SUBST
30762 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
30764 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
30765 DUALCASE
=1; export DUALCASE
# for MKS sh
30769 # Avoid depending upon Character Ranges.
30770 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30771 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30772 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30773 as_cr_digits
='0123456789'
30774 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30776 # The user is always right.
30777 if test "${PATH_SEPARATOR+set}" != set; then
30778 echo "#! /bin/sh" >conf$$.sh
30779 echo "exit 0" >>conf$$.sh
30781 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
30789 # Support unset when possible.
30790 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
30798 # We need space, tab and new line, in precisely that order. Quoting is
30799 # there to prevent editors from complaining about space-tab.
30800 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30801 # splitting by setting IFS to empty value.)
30806 # Find who we are. Look in the path if we contain no directory separator.
30808 *[\\/]* ) as_myself
=$0 ;;
30809 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30810 for as_dir
in $PATH
30813 test -z "$as_dir" && as_dir
=.
30814 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
30820 # We did not find ourselves, most probably we were run as `sh COMMAND'
30821 # in which case we are not to be found in the path.
30822 if test "x$as_myself" = x
; then
30825 if test ! -f "$as_myself"; then
30826 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30827 { (exit 1); exit 1; }
30830 # Work around bugs in pre-3.0 UWIN ksh.
30831 for as_var
in ENV MAIL MAILPATH
30832 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
30840 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30841 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30842 LC_TELEPHONE LC_TIME
30844 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30845 eval $as_var=C
; export $as_var
30847 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
30851 # Required to use basename.
30852 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30853 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30859 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30860 as_basename
=basename
30866 # Name of the executable.
30867 as_me
=`$as_basename -- "$0" ||
30868 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30869 X"$0" : 'X\(//\)$' \| \
30870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30872 sed '/^.*\/\([^/][^/]*\)\/*$/{
30891 as_lineno_1
=$LINENO
30892 as_lineno_2
=$LINENO
30893 test "x$as_lineno_1" != "x$as_lineno_2" &&
30894 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
30896 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30897 # uniformly replaced by the line number. The first 'sed' inserts a
30898 # line-number line after each line using $LINENO; the second 'sed'
30899 # does the real work. The second script uses 'N' to pair each
30900 # line-number line with the line containing $LINENO, and appends
30901 # trailing '-' during substitution so that $LINENO is not a special
30902 # case at line end.
30903 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30904 # scripts with optimization help from Paolo Bonzini. Blame Lee
30905 # E. McMahon (1931-1989) for sed's syntax. :-)
30917 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30920 ' >$as_me.lineno
&&
30921 chmod +x
"$as_me.lineno" ||
30922 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30923 { (exit 1); exit 1; }; }
30925 # Don't try to exec as it changes $[0], causing all sort of problems
30926 # (the dirname of $[0] is not the place where we might find the
30927 # original and so on. Autoconf is especially sensitive to this).
30928 .
"./$as_me.lineno"
30929 # Exit status is that of the last command.
30934 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30940 ECHO_C
= ECHO_N
= ECHO_T
=
30941 case `echo -n x` in
30943 case `echo 'x\c'` in
30944 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30951 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30952 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30958 rm -f conf$$ conf$$.exe conf$$.
file
30959 if test -d conf$$.dir
; then
30960 rm -f conf$$.dir
/conf$$.
file
30966 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30968 # ... but there are two gotchas:
30969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30971 # In both cases, we have to default to `cp -p'.
30972 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30974 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30979 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30980 rmdir conf$$.dir
2>/dev
/null
30982 if mkdir
-p .
2>/dev
/null
; then
30985 test -d .
/-p && rmdir .
/-p
30989 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
30990 # systems may use methods other than mode bits to determine executability.
30991 cat >conf$$.
file <<_ASEOF
30995 chmod +x conf$$.
file
30996 if test -x conf$$.
file >/dev
/null
2>&1; then
30997 as_executable_p
="test -x"
31003 # Sed expression to map a string onto a valid CPP name.
31004 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31006 # Sed expression to map a string onto a valid variable name.
31007 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31012 # Save the log message, to keep $[0] and so on meaningful, and to
31013 # report actual input values of CONFIG_FILES etc. instead of their
31014 # values after options handling.
31016 This file was extended by $as_me, which was
31017 generated by GNU Autoconf 2.60a. Invocation command line was
31019 CONFIG_FILES = $CONFIG_FILES
31020 CONFIG_HEADERS = $CONFIG_HEADERS
31021 CONFIG_LINKS = $CONFIG_LINKS
31022 CONFIG_COMMANDS = $CONFIG_COMMANDS
31025 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31030 cat >>$CONFIG_STATUS <<_ACEOF
31031 # Files that config.status was made for.
31032 config_files="$ac_config_files"
31033 config_headers="$ac_config_headers"
31037 cat >>$CONFIG_STATUS <<\_ACEOF
31039 \`$as_me' instantiates files from templates according to the
31040 current configuration.
31042 Usage: $0 [OPTIONS] [FILE]...
31044 -h, --help print this help, then exit
31045 -V, --version print version number and configuration settings, then exit
31046 -q, --quiet do not print progress messages
31047 -d, --debug don't remove temporary files
31048 --recheck update $as_me by reconfiguring in the same conditions
31049 --file=FILE[:TEMPLATE]
31050 instantiate the configuration file FILE
31051 --header=FILE[:TEMPLATE]
31052 instantiate the configuration header FILE
31054 Configuration files:
31057 Configuration headers:
31060 Report bugs to <bug-autoconf@gnu.org>."
31063 cat >>$CONFIG_STATUS <<_ACEOF
31066 configured by $0, generated by GNU Autoconf 2.60a,
31067 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31069 Copyright (C) 2006 Free Software Foundation, Inc.
31070 This config.status script is free software; the Free Software Foundation
31071 gives unlimited permission to copy, distribute and modify it."
31078 cat >>$CONFIG_STATUS <<\_ACEOF
31079 # If no file are specified by the user, then we need to provide default
31080 # value. By we need to know if files were specified by the user.
31086 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31087 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31098 # Handling of the options.
31099 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31101 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31102 echo "$ac_cs_version"; exit ;;
31103 --debug |
--debu |
--deb |
--de |
--d |
-d )
31105 --file |
--fil |
--fi |
--f )
31107 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
31108 ac_need_defaults
=false
;;
31109 --header |
--heade |
--head |
--hea )
31111 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
31112 ac_need_defaults
=false
;;
31114 # Conflict between --help and --header
31115 { echo "$as_me: error: ambiguous option: $1
31116 Try \`$0 --help' for more information." >&2
31117 { (exit 1); exit 1; }; };;
31118 --help |
--hel |
-h )
31119 echo "$ac_cs_usage"; exit ;;
31120 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31121 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31124 # This is an error.
31125 -*) { echo "$as_me: error: unrecognized option: $1
31126 Try \`$0 --help' for more information." >&2
31127 { (exit 1); exit 1; }; } ;;
31129 *) ac_config_targets
="$ac_config_targets $1"
31130 ac_need_defaults
=false
;;
31136 ac_configure_extra_args
=
31138 if $ac_cs_silent; then
31140 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31144 cat >>$CONFIG_STATUS <<_ACEOF
31145 if \$ac_cs_recheck; then
31146 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31147 CONFIG_SHELL=$SHELL
31148 export CONFIG_SHELL
31149 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31153 cat >>$CONFIG_STATUS <<\_ACEOF
31157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31158 ## Running $as_me. ##
31164 cat >>$CONFIG_STATUS <<_ACEOF
31167 cat >>$CONFIG_STATUS <<\_ACEOF
31169 # Handling of arguments.
31170 for ac_config_target
in $ac_config_targets
31172 case $ac_config_target in
31173 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
31174 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
31175 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
31176 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
31178 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31179 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31180 { (exit 1); exit 1; }; };;
31185 # If the user did not use the arguments to specify the items to instantiate,
31186 # then the envvar interface is used. Set only those that are not.
31187 # We use the long form for the default assignment because of an extremely
31188 # bizarre bug on SunOS 4.1.3.
31189 if $ac_need_defaults; then
31190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
31191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
31194 # Have a temporary directory for convenience. Make it in the build tree
31195 # simply because there is no reason against having it here, and in addition,
31196 # creating and moving files from /tmp can sometimes cause problems.
31197 # Hook for its removal unless debugging.
31198 # Note that there is a small window in which the directory will not be cleaned:
31199 # after its creation but before its name has been assigned to `$tmp'.
31203 trap 'exit_status=$?
31204 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31206 trap '{ (exit 1); exit 1; }' 1 2 13 15
31208 # Create a (secure) tmp directory for tmp files.
31211 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31212 test -n "$tmp" && test -d "$tmp"
31215 tmp
=.
/conf$$
-$RANDOM
31216 (umask 077 && mkdir
"$tmp")
31219 echo "$me: cannot create a temporary directory in ." >&2
31220 { (exit 1); exit 1; }
31224 # Set up the sed scripts for CONFIG_FILES section.
31227 # No need to generate the scripts if there are no CONFIG_FILES.
31228 # This happens for instance when ./config.status config.h
31229 if test -n "$CONFIG_FILES"; then
31236 for ac_last_try
in false false false false false
:; do
31237 cat >conf$
$subs.
sed <<_ACEOF
31238 SHELL!$SHELL$ac_delim
31239 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31240 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31241 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31242 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31243 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31244 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31245 exec_prefix!$exec_prefix$ac_delim
31246 prefix!$prefix$ac_delim
31247 program_transform_name!$program_transform_name$ac_delim
31248 bindir!$bindir$ac_delim
31249 sbindir!$sbindir$ac_delim
31250 libexecdir!$libexecdir$ac_delim
31251 datarootdir!$datarootdir$ac_delim
31252 datadir!$datadir$ac_delim
31253 sysconfdir!$sysconfdir$ac_delim
31254 sharedstatedir!$sharedstatedir$ac_delim
31255 localstatedir!$localstatedir$ac_delim
31256 includedir!$includedir$ac_delim
31257 oldincludedir!$oldincludedir$ac_delim
31258 docdir!$docdir$ac_delim
31259 infodir!$infodir$ac_delim
31260 htmldir!$htmldir$ac_delim
31261 dvidir!$dvidir$ac_delim
31262 pdfdir!$pdfdir$ac_delim
31263 psdir!$psdir$ac_delim
31264 libdir!$libdir$ac_delim
31265 localedir!$localedir$ac_delim
31266 mandir!$mandir$ac_delim
31267 DEFS!$DEFS$ac_delim
31268 ECHO_C!$ECHO_C$ac_delim
31269 ECHO_N!$ECHO_N$ac_delim
31270 ECHO_T!$ECHO_T$ac_delim
31271 LIBS!$LIBS$ac_delim
31272 build_alias!$build_alias$ac_delim
31273 host_alias!$host_alias$ac_delim
31274 target_alias!$target_alias$ac_delim
31275 build!$build$ac_delim
31276 build_cpu!$build_cpu$ac_delim
31277 build_vendor!$build_vendor$ac_delim
31278 build_os!$build_os$ac_delim
31279 host!$host$ac_delim
31280 host_cpu!$host_cpu$ac_delim
31281 host_vendor!$host_vendor$ac_delim
31282 host_os!$host_os$ac_delim
31283 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
31284 BUILD_CPU!$BUILD_CPU$ac_delim
31285 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
31286 BUILD_OS!$BUILD_OS$ac_delim
31287 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
31288 HOST_CPU!$HOST_CPU$ac_delim
31289 HOST_VENDOR!$HOST_VENDOR$ac_delim
31290 HOST_OS!$HOST_OS$ac_delim
31291 OSARCH!$OSARCH$ac_delim
31292 UNAME!$UNAME$ac_delim
31293 PBX_OSREV!$PBX_OSREV$ac_delim
31297 RANLIB!$RANLIB$ac_delim
31299 CFLAGS!$CFLAGS$ac_delim
31300 LDFLAGS!$LDFLAGS$ac_delim
31301 CPPFLAGS!$CPPFLAGS$ac_delim
31302 ac_ct_CC!$ac_ct_CC$ac_delim
31303 EXEEXT!$EXEEXT$ac_delim
31304 OBJEXT!$OBJEXT$ac_delim
31305 CXXFLAGS!$CXXFLAGS$ac_delim
31306 ac_ct_CXX!$ac_ct_CXX$ac_delim
31308 CXXCPP!$CXXCPP$ac_delim
31310 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31311 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31312 INSTALL_DATA!$INSTALL_DATA$ac_delim
31313 LN_S!$LN_S$ac_delim
31314 GNU_MAKE!$GNU_MAKE$ac_delim
31315 GREP!$GREP$ac_delim
31316 FIND!$FIND$ac_delim
31317 COMPRESS!$COMPRESS$ac_delim
31318 BASENAME!$BASENAME$ac_delim
31320 DIRNAME!$DIRNAME$ac_delim
31323 AST_DEVMODE!$AST_DEVMODE$ac_delim
31324 ALSA_LIB!$ALSA_LIB$ac_delim
31325 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
31326 PBX_ALSA!$PBX_ALSA$ac_delim
31327 CURL_LIB!$CURL_LIB$ac_delim
31328 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
31329 PBX_CURL!$PBX_CURL$ac_delim
31330 CURSES_LIB!$CURSES_LIB$ac_delim
31331 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
31332 PBX_CURSES!$PBX_CURSES$ac_delim
31333 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
31334 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
31337 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31339 elif $ac_last_try; then
31340 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31341 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31342 { (exit 1); exit 1; }; }
31344 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
31348 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31349 if test -n "$ac_eof"; then
31350 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
31351 ac_eof
=`expr $ac_eof + 1`
31354 cat >>$CONFIG_STATUS <<_ACEOF
31355 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31356 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31359 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31360 s/^/s,@/; s/!/@,|#_!!_#|/
31363 s/'"$ac_delim"'$/,g/; t
31365 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31366 ' >>$CONFIG_STATUS <conf$
$subs.
sed
31367 rm -f conf$
$subs.
sed
31368 cat >>$CONFIG_STATUS <<_ACEOF
31374 for ac_last_try
in false false false false false
:; do
31375 cat >conf$
$subs.
sed <<_ACEOF
31376 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
31377 GSM_LIB!$GSM_LIB$ac_delim
31378 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
31379 PBX_GSM!$PBX_GSM$ac_delim
31380 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
31381 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
31382 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
31383 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
31384 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
31385 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
31386 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
31387 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
31388 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
31389 KDE_LIB!$KDE_LIB$ac_delim
31390 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
31391 PBX_KDE!$PBX_KDE$ac_delim
31392 MISDN_LIB!$MISDN_LIB$ac_delim
31393 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
31394 PBX_MISDN!$PBX_MISDN$ac_delim
31395 NBS_LIB!$NBS_LIB$ac_delim
31396 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
31397 PBX_NBS!$PBX_NBS$ac_delim
31398 NCURSES_LIB!$NCURSES_LIB$ac_delim
31399 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
31400 PBX_NCURSES!$PBX_NCURSES$ac_delim
31401 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
31402 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
31403 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
31404 NEWT_LIB!$NEWT_LIB$ac_delim
31405 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
31406 PBX_NEWT!$PBX_NEWT$ac_delim
31407 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
31408 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
31409 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
31410 OGG_LIB!$OGG_LIB$ac_delim
31411 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
31412 PBX_OGG!$PBX_OGG$ac_delim
31413 OSPTK_LIB!$OSPTK_LIB$ac_delim
31414 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
31415 PBX_OSPTK!$PBX_OSPTK$ac_delim
31416 OSS_LIB!$OSS_LIB$ac_delim
31417 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
31418 PBX_OSS!$PBX_OSS$ac_delim
31419 POPT_LIB!$POPT_LIB$ac_delim
31420 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
31421 PBX_POPT!$PBX_POPT$ac_delim
31422 PGSQL_LIB!$PGSQL_LIB$ac_delim
31423 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
31424 PBX_PGSQL!$PBX_PGSQL$ac_delim
31425 PRI_LIB!$PRI_LIB$ac_delim
31426 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
31427 PBX_PRI!$PBX_PRI$ac_delim
31428 PWLIB_LIB!$PWLIB_LIB$ac_delim
31429 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
31430 PBX_PWLIB!$PBX_PWLIB$ac_delim
31431 OPENH323_LIB!$OPENH323_LIB$ac_delim
31432 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
31433 PBX_OPENH323!$PBX_OPENH323$ac_delim
31434 QT_LIB!$QT_LIB$ac_delim
31435 QT_INCLUDE!$QT_INCLUDE$ac_delim
31436 PBX_QT!$PBX_QT$ac_delim
31437 RADIUS_LIB!$RADIUS_LIB$ac_delim
31438 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
31439 PBX_RADIUS!$PBX_RADIUS$ac_delim
31440 SPEEX_LIB!$SPEEX_LIB$ac_delim
31441 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
31442 PBX_SPEEX!$PBX_SPEEX$ac_delim
31443 SQLITE_LIB!$SQLITE_LIB$ac_delim
31444 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
31445 PBX_SQLITE!$PBX_SQLITE$ac_delim
31446 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
31447 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
31448 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
31449 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
31450 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
31451 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
31452 FREETDS_LIB!$FREETDS_LIB$ac_delim
31453 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
31454 PBX_FREETDS!$PBX_FREETDS$ac_delim
31455 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
31456 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
31457 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
31458 TINFO_LIB!$TINFO_LIB$ac_delim
31459 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
31460 PBX_TINFO!$PBX_TINFO$ac_delim
31461 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
31462 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
31463 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
31464 VORBIS_LIB!$VORBIS_LIB$ac_delim
31465 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
31466 PBX_VORBIS!$PBX_VORBIS$ac_delim
31467 VPB_LIB!$VPB_LIB$ac_delim
31468 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
31469 PBX_VPB!$PBX_VPB$ac_delim
31470 ZLIB_LIB!$ZLIB_LIB$ac_delim
31471 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
31472 PBX_ZLIB!$PBX_ZLIB$ac_delim
31475 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31477 elif $ac_last_try; then
31478 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31479 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31480 { (exit 1); exit 1; }; }
31482 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
31486 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31487 if test -n "$ac_eof"; then
31488 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
31489 ac_eof
=`expr $ac_eof + 1`
31492 cat >>$CONFIG_STATUS <<_ACEOF
31493 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31497 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31498 s/^/s,@/; s/!/@,|#_!!_#|/
31501 s/'"$ac_delim"'$/,g/; t
31503 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31504 ' >>$CONFIG_STATUS <conf$
$subs.
sed
31505 rm -f conf$
$subs.
sed
31506 cat >>$CONFIG_STATUS <<_ACEOF
31512 for ac_last_try
in false false false false false
:; do
31513 cat >conf$
$subs.
sed <<_ACEOF
31514 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
31515 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
31516 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
31517 ALLOCA!$ALLOCA$ac_delim
31518 EGREP!$EGREP$ac_delim
31519 LIBOBJS!$LIBOBJS$ac_delim
31520 POW_LIB!$POW_LIB$ac_delim
31521 GC_CFLAGS!$GC_CFLAGS$ac_delim
31522 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
31523 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
31524 KDEINIT!$KDEINIT$ac_delim
31525 KDEDIR!$KDEDIR$ac_delim
31526 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
31527 PG_CONFIG!$PG_CONFIG$ac_delim
31528 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
31529 PWLIBDIR!$PWLIBDIR$ac_delim
31530 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
31531 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
31532 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
31533 OPENH323DIR!$OPENH323DIR$ac_delim
31534 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
31535 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
31536 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
31537 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
31538 QTMOC!$QTMOC$ac_delim
31539 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
31540 PBX_H323!$PBX_H323$ac_delim
31541 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
31542 GTKCONFIG!$GTKCONFIG$ac_delim
31543 PBX_GTK!$PBX_GTK$ac_delim
31544 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
31545 GTK_LIB!$GTK_LIB$ac_delim
31546 CURL!$CURL$ac_delim
31547 LTLIBOBJS!$LTLIBOBJS$ac_delim
31550 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
31552 elif $ac_last_try; then
31553 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31554 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31555 { (exit 1); exit 1; }; }
31557 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
31561 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31562 if test -n "$ac_eof"; then
31563 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
31564 ac_eof
=`expr $ac_eof + 1`
31567 cat >>$CONFIG_STATUS <<_ACEOF
31568 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31572 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31573 s/^/s,@/; s/!/@,|#_!!_#|/
31576 s/'"$ac_delim"'$/,g/; t
31578 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31579 ' >>$CONFIG_STATUS <conf$
$subs.
sed
31580 rm -f conf$
$subs.
sed
31581 cat >>$CONFIG_STATUS <<_ACEOF
31588 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31589 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31590 # trailing colons and then remove the whole line if VPATH becomes empty
31591 # (actually we leave an empty line to preserve line numbers).
31592 if test "x$srcdir" = x.
; then
31593 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
31594 s/:*\$(srcdir):*/:/
31595 s/:*\${srcdir}:*/:/
31597 s/^\([^=]*=[ ]*\):*/\1/
31603 cat >>$CONFIG_STATUS <<\_ACEOF
31604 fi # test -n "$CONFIG_FILES"
31607 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
31610 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31612 case $ac_mode$ac_tag in
31614 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31615 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31616 { (exit 1); exit 1; }; };;
31617 :[FH
]-) ac_tag
=-:-;;
31618 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31635 -) ac_f
="$tmp/stdin";;
31636 *) # Look for the file first in the build tree, then in the source tree
31637 # (if the path is not absolute). The absolute path cannot be DOS-style,
31638 # because $ac_f cannot contain `:'.
31642 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31644 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31645 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31646 { (exit 1); exit 1; }; };;
31648 ac_file_inputs
="$ac_file_inputs $ac_f"
31651 # Let's still pretend it is `configure' which instantiates (i.e., don't
31652 # use $as_me), people would be surprised to read:
31653 # /* config.h. Generated by config.status. */
31654 configure_input
="Generated from "`IFS=:
31655 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31656 if test x
"$ac_file" != x-
; then
31657 configure_input
="$ac_file. $configure_input"
31658 { echo "$as_me:$LINENO: creating $ac_file" >&5
31659 echo "$as_me: creating $ac_file" >&6;}
31663 *:-:* |
*:-) cat >"$tmp/stdin";;
31668 ac_dir
=`$as_dirname -- "$ac_file" ||
31669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31670 X"$ac_file" : 'X\(//\)[^/]' \| \
31671 X"$ac_file" : 'X\(//\)$' \| \
31672 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31678 /^X\(\/\/\)[^/].*/{
31693 -*) as_dir
=.
/$as_dir;;
31695 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
31699 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31700 *) as_qdir
=$as_dir;;
31702 as_dirs
="'$as_qdir' $as_dirs"
31703 as_dir
=`$as_dirname -- "$as_dir" ||
31704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31705 X"$as_dir" : 'X\(//\)[^/]' \| \
31706 X"$as_dir" : 'X\(//\)$' \| \
31707 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31713 /^X\(\/\/\)[^/].*/{
31726 test -d "$as_dir" && break
31728 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31729 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31730 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31731 { (exit 1); exit 1; }; }; }
31735 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31737 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31738 # A ".." for each directory in $ac_dir_suffix.
31739 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31740 case $ac_top_builddir_sub in
31741 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31742 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31745 ac_abs_top_builddir
=$ac_pwd
31746 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31747 # for backward compatibility:
31748 ac_top_builddir
=$ac_top_build_prefix
31751 .
) # We are building in place.
31753 ac_top_srcdir
=$ac_top_builddir_sub
31754 ac_abs_top_srcdir
=$ac_pwd ;;
31755 [\\/]* | ?
:[\\/]* ) # Absolute name.
31756 ac_srcdir
=$srcdir$ac_dir_suffix;
31757 ac_top_srcdir
=$srcdir
31758 ac_abs_top_srcdir
=$srcdir ;;
31759 *) # Relative name.
31760 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31761 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31762 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31764 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31774 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
31775 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
31779 cat >>$CONFIG_STATUS <<\_ACEOF
31780 # If the template does not know about datarootdir, expand it.
31781 # FIXME: This hack should be removed a few years after 2.60.
31782 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31784 case `sed -n '/datarootdir/ {
31793 ' $ac_file_inputs` in
31794 *datarootdir
*) ac_datarootdir_seen
=yes;;
31795 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31796 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31797 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31799 cat >>$CONFIG_STATUS <<_ACEOF
31800 ac_datarootdir_hack='
31801 s&@datadir@&$datadir&g
31802 s&@docdir@&$docdir&g
31803 s&@infodir@&$infodir&g
31804 s&@localedir@&$localedir&g
31805 s&@mandir@&$mandir&g
31806 s&\\\${datarootdir}&$datarootdir&g' ;;
31810 # Neutralize VPATH when `$srcdir' = `.'.
31811 # Shell code in configure.ac might set extrasub.
31812 # FIXME: do we really want to maintain this feature?
31813 cat >>$CONFIG_STATUS <<_ACEOF
31817 cat >>$CONFIG_STATUS <<\_ACEOF
31819 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31820 s
&@configure_input@
&$configure_input&;t t
31821 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31822 s
&@srcdir@
&$ac_srcdir&;t t
31823 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31824 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31825 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31826 s
&@builddir@
&$ac_builddir&;t t
31827 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31828 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31829 s
&@INSTALL@
&$ac_INSTALL&;t t
31830 $ac_datarootdir_hack
31831 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
31833 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31834 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31835 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31836 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31837 which seems to be undefined. Please make sure it is defined." >&5
31838 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31839 which seems to be undefined. Please make sure it is defined." >&2;}
31843 -) cat "$tmp/out"; rm -f "$tmp/out";;
31844 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31853 # Transform confdefs.h into a sed script `conftest.defines', that
31854 # substitutes the proper values into config.h.in to produce config.h.
31855 rm -f conftest.defines conftest.
tail
31856 # First, append a space to every undef/define line, to ease matching.
31857 echo 's/$/ /' >conftest.defines
31858 # Then, protect against being on the right side of a sed subst, or in
31859 # an unquoted here document, in config.status. If some macros were
31860 # called several times there might be several #defines for the same
31861 # symbol, which is useless. But do not sort them, since the last
31862 # AC_DEFINE must be honored.
31863 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
31864 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31865 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31866 # PARAMS is the parameter list in the macro definition--in most cases, it's
31867 # just an empty string.
31868 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31869 ac_dB
='\\)[ (].*,\\1define\\2'
31877 s/^[ ]*#[ ]*define[ ][ ]*//
31882 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31883 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31884 ' >>conftest.defines
31886 # Remove the space that was appended to ease matching.
31887 # Then replace #undef with comments. This is necessary, for
31888 # example, in the case of _POSIX_SOURCE, which is predefined and required
31889 # on some systems where configure will not decide to define it.
31890 # (The regexp can be short, since the line contains either #define or #undef.)
31892 s,^[ #]*u.*,/* & */,' >>conftest.defines
31894 # Break up conftest.defines:
31895 ac_max_sed_lines
=50
31897 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31898 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31899 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31901 ac_in
='$ac_file_inputs'
31902 ac_out
='"$tmp/out1"'
31903 ac_nxt
='"$tmp/out2"'
31907 # Write a here document:
31908 cat >>$CONFIG_STATUS <<_ACEOF
31909 # First, check the format of the line:
31910 cat >"\$tmp/defines.sed" <<\\CEOF
31911 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31912 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31916 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
31918 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31919 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
31920 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
31921 grep . conftest.
tail >/dev
/null ||
break
31922 rm -f conftest.defines
31923 mv conftest.
tail conftest.defines
31925 rm -f conftest.defines conftest.
tail
31927 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31928 cat >>$CONFIG_STATUS <<\_ACEOF
31929 if test x
"$ac_file" != x-
; then
31930 echo "/* $configure_input */" >"$tmp/config.h"
31931 cat "$ac_result" >>"$tmp/config.h"
31932 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
31933 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31934 echo "$as_me: $ac_file is unchanged" >&6;}
31937 mv "$tmp/config.h" $ac_file
31940 echo "/* $configure_input */"
31952 { (exit 0); exit 0; }
31954 chmod +x
$CONFIG_STATUS
31955 ac_clean_files
=$ac_clean_files_save
31958 # configure is writing to config.log, and then calls config.status.
31959 # config.status does its own redirection, appending to config.log.
31960 # Unfortunately, on DOS this fails, as config.log is still kept open
31961 # by configure, so config.status won't be able to write to it; its
31962 # output is simply discarded. So we exec the FD to /dev/null,
31963 # effectively closing config.log, so it can be properly (re)opened and
31964 # appended to by config.status. When coming back to configure, we
31965 # need to make the FD available again.
31966 if test "$no_create" != yes; then
31968 ac_config_status_args
=
31969 test "$silent" = yes &&
31970 ac_config_status_args
="$ac_config_status_args --quiet"
31972 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31974 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31975 # would make configure fail if this is the last instruction.
31976 $ac_cs_success ||
{ (exit 1); exit 1; }
31980 if test "x${silent}" != "xyes" ; then
31982 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
31983 echo " .\$7\$7.. .7\$\$7:. "
31984 echo " .\$\$:. ,\$7.7 "
31985 echo " .\$7. 7\$\$\$\$ .\$\$77 "
31986 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
31987 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
31988 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
31989 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
31990 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
31991 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
31992 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
31993 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
31994 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
31995 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
31996 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
31997 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
31998 echo " \$\$\$\$\$ \$\$\$ "
31999 echo " \$\$\$\$7. \$\$ (TM) "
32000 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
32001 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
32002 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
32006 { echo "$as_me:$LINENO: Package configured for: " >&5
32007 echo "$as_me: Package configured for: " >&6;}
32008 { echo "$as_me:$LINENO: OS type : $host_os" >&5
32009 echo "$as_me: OS type : $host_os" >&6;}
32010 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
32011 echo "$as_me: Host CPU : $host_cpu" >&6;}
32012 if test "${cross_compiling}" = "yes"; then
32013 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
32014 echo "$as_me: Cross Compilation = YES" >&6;}