2 # From configure.ac Revision: 48960 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
582 ac_unique_file
="asterisk"
583 ac_unique_file
="main/asterisk.c"
584 # Factoring default headers for most tests.
585 ac_includes_default
="\
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
597 # ifdef HAVE_STDLIB_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
631 program_transform_name
857 ac_precious_vars
='build_alias
872 # Initialize some variables set by options.
874 ac_init_version
=false
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
884 program_transform_name
=s
,x
,x
,
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir
='${exec_prefix}/bin'
899 sbindir
='${exec_prefix}/sbin'
900 libexecdir
='${exec_prefix}/libexec'
901 datarootdir
='${prefix}/share'
902 datadir
='${datarootdir}'
903 sysconfdir
='${prefix}/etc'
904 sharedstatedir
='${prefix}/com'
905 localstatedir
='${prefix}/var'
906 includedir
='${prefix}/include'
907 oldincludedir
='/usr/include'
908 docdir
='${datarootdir}/doc/${PACKAGE}'
909 infodir
='${datarootdir}/info'
914 libdir
='${exec_prefix}/lib'
915 localedir
='${datarootdir}/locale'
916 mandir
='${datarootdir}/man'
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\
$ac_option
930 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
940 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
942 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
945 -build |
--build |
--buil |
--bui |
--bu)
946 ac_prev
=build_alias
;;
947 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
948 build_alias
=$ac_optarg ;;
950 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
951 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
952 ac_prev
=cache_file
;;
953 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
954 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
955 cache_file
=$ac_optarg ;;
958 cache_file
=config.cache
;;
960 -datadir |
--datadir |
--datadi |
--datad)
962 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
963 datadir
=$ac_optarg ;;
965 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
966 |
--dataroo |
--dataro |
--datar)
967 ac_prev
=datarootdir
;;
968 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
969 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
970 datarootdir
=$ac_optarg ;;
972 -disable-* |
--disable-*)
973 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
976 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
977 { (exit 1); exit 1; }; }
978 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
979 eval enable_
$ac_feature=no
;;
981 -docdir |
--docdir |
--docdi |
--doc |
--do)
983 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
986 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
988 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
991 -enable-* |
--enable-*)
992 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996 { (exit 1); exit 1; }; }
997 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
998 eval enable_
$ac_feature=\
$ac_optarg ;;
1000 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1001 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1002 |
--exec |
--exe |
--ex)
1003 ac_prev
=exec_prefix
;;
1004 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1005 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1006 |
--exec=* |
--exe=* |
--ex=*)
1007 exec_prefix
=$ac_optarg ;;
1009 -gas |
--gas |
--ga |
--g)
1010 # Obsolete; use --with-gas.
1013 -help |
--help |
--hel |
--he |
-h)
1014 ac_init_help
=long
;;
1015 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1016 ac_init_help
=recursive
;;
1017 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1018 ac_init_help
=short
;;
1020 -host |
--host |
--hos |
--ho)
1021 ac_prev
=host_alias
;;
1022 -host=* |
--host=* |
--hos=* |
--ho=*)
1023 host_alias
=$ac_optarg ;;
1025 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1027 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1029 htmldir
=$ac_optarg ;;
1031 -includedir |
--includedir |
--includedi |
--included |
--include \
1032 |
--includ |
--inclu |
--incl |
--inc)
1033 ac_prev
=includedir
;;
1034 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1035 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1036 includedir
=$ac_optarg ;;
1038 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1040 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1041 infodir
=$ac_optarg ;;
1043 -libdir |
--libdir |
--libdi |
--libd)
1045 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1046 libdir
=$ac_optarg ;;
1048 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1049 |
--libexe |
--libex |
--libe)
1050 ac_prev
=libexecdir
;;
1051 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1052 |
--libexe=* |
--libex=* |
--libe=*)
1053 libexecdir
=$ac_optarg ;;
1055 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1056 ac_prev
=localedir
;;
1057 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1058 localedir
=$ac_optarg ;;
1060 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1061 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1062 ac_prev
=localstatedir
;;
1063 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1064 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1065 localstatedir
=$ac_optarg ;;
1067 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1069 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1070 mandir
=$ac_optarg ;;
1072 -nfp |
--nfp |
--nf)
1073 # Obsolete; use --without-fp.
1076 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1077 |
--no-cr |
--no-c |
-n)
1080 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1081 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1084 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1085 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1086 |
--oldin |
--oldi |
--old |
--ol |
--o)
1087 ac_prev
=oldincludedir
;;
1088 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1089 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1090 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1091 oldincludedir
=$ac_optarg ;;
1093 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1095 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1096 prefix
=$ac_optarg ;;
1098 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1099 |
--program-pre |
--program-pr |
--program-p)
1100 ac_prev
=program_prefix
;;
1101 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1102 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1103 program_prefix
=$ac_optarg ;;
1105 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1106 |
--program-suf |
--program-su |
--program-s)
1107 ac_prev
=program_suffix
;;
1108 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1109 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1110 program_suffix
=$ac_optarg ;;
1112 -program-transform-name |
--program-transform-name \
1113 |
--program-transform-nam |
--program-transform-na \
1114 |
--program-transform-n |
--program-transform- \
1115 |
--program-transform |
--program-transfor \
1116 |
--program-transfo |
--program-transf \
1117 |
--program-trans |
--program-tran \
1118 |
--progr-tra |
--program-tr |
--program-t)
1119 ac_prev
=program_transform_name
;;
1120 -program-transform-name=* |
--program-transform-name=* \
1121 |
--program-transform-nam=* |
--program-transform-na=* \
1122 |
--program-transform-n=* |
--program-transform-=* \
1123 |
--program-transform=* |
--program-transfor=* \
1124 |
--program-transfo=* |
--program-transf=* \
1125 |
--program-trans=* |
--program-tran=* \
1126 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1127 program_transform_name
=$ac_optarg ;;
1129 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1131 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1132 pdfdir
=$ac_optarg ;;
1134 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1136 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1139 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1140 |
-silent |
--silent |
--silen |
--sile |
--sil)
1143 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1145 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1147 sbindir
=$ac_optarg ;;
1149 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1150 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1151 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1153 ac_prev
=sharedstatedir
;;
1154 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1155 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1156 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1158 sharedstatedir
=$ac_optarg ;;
1160 -site |
--site |
--sit)
1162 -site=* |
--site=* |
--sit=*)
1165 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1167 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1168 srcdir
=$ac_optarg ;;
1170 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1171 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1172 ac_prev
=sysconfdir
;;
1173 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1174 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1175 sysconfdir
=$ac_optarg ;;
1177 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1178 ac_prev
=target_alias
;;
1179 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1180 target_alias
=$ac_optarg ;;
1182 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1185 -version |
--version |
--versio |
--versi |
--vers |
-V)
1186 ac_init_version
=: ;;
1189 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_
$ac_package=\
$ac_optarg ;;
1197 -without-* |
--without-*)
1198 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1201 { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1204 eval with_
$ac_package=no
;;
1207 # Obsolete; use --with-x.
1210 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1211 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1212 ac_prev
=x_includes
;;
1213 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1214 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1215 x_includes
=$ac_optarg ;;
1217 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1218 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1219 ac_prev
=x_libraries
;;
1220 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1221 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1222 x_libraries
=$ac_optarg ;;
1224 -*) { echo "$as_me: error: unrecognized option: $ac_option
1225 Try \`$0 --help' for more information." >&2
1226 { (exit 1); exit 1; }; }
1230 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1233 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1234 { (exit 1); exit 1; }; }
1235 eval $ac_envvar=\
$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1242 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 if test -n "$ac_prev"; then
1250 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1251 { echo "$as_me: error: missing argument to $ac_option" >&2
1252 { (exit 1); exit 1; }; }
1255 # Be sure to have absolute directory names.
1256 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val
=\$
$ac_var
1263 [\\/$
]* | ?
:[\\/]* ) continue;;
1264 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1266 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1267 { (exit 1); exit 1; }; }
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1275 target
=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x
; then
1279 if test "x$build_alias" = x
; then
1280 cross_compiling
=maybe
1281 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1289 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1291 test "$silent" = yes && exec 6>/dev
/null
1294 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di
=`ls -di .` &&
1296 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1297 { echo "$as_me: error: Working directory cannot be determined" >&2
1298 { (exit 1); exit 1; }; }
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 { echo "$as_me: error: pwd does not report name of working directory" >&2
1301 { (exit 1); exit 1; }; }
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted
=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir
=`$as_dirname -- "$0" ||
1309 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$0" : 'X\(//\)[^/]' \| \
1311 X"$0" : 'X\(//\)$' \| \
1312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1336 ac_srcdir_defaulted
=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1340 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1341 { (exit 1); exit 1; }; }
1343 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1346 { (exit 1); exit 1; }; }
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1356 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 for ac_var
in $ac_precious_vars; do
1359 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1361 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1366 # Report the --help message.
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1372 \`configure' configures this package to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1430 --build=BUILD configure
for building on BUILD
[guessed
]
1431 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1435 if test -n "$ac_init_help"; then
1440 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1441 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1442 --enable-dev-mode Turn on developer mode
1443 --disable-largefile omit support
for large files
1446 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1447 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1448 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1449 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1450 --with-curl=PATH use cURL files
in PATH
1451 --with-curses=PATH use curses files
in PATH
1452 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1454 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1455 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1456 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1457 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1458 --with-kde=PATH use KDE files
in PATH
1459 --with-misdn=PATH use mISDN User Library files
in PATH
1460 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1461 --with-ncurses=PATH use ncurses files
in PATH
1462 --with-netsnmp=PATH use Net-SNMP files
in PATH
1463 --with-newt=PATH use newt files
in PATH
1464 --with-odbc=PATH use unixODBC files
in PATH
1465 --with-ogg=PATH use OGG files
in PATH
1466 --with-osptk=PATH use OSP Toolkit files
in PATH
1467 --with-oss=PATH use Open Sound System files
in PATH
1468 --with-popt=PATH use popt files
in PATH
1469 --with-postgres=PATH use PostgreSQL files
in PATH
1470 --with-pri=PATH use ISDN PRI files
in PATH
1471 --with-pwlib=PATH use PWlib files
in PATH
1472 --with-h323=PATH use OpenH323 files
in PATH
1473 --with-qt=PATH use Qt files
in PATH
1474 --with-radius=PATH use Radius Client files
in PATH
1475 --with-speex=PATH use Speex files
in PATH
1476 --with-sqlite=PATH use SQLite files
in PATH
1477 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1478 --with-ssl=PATH use OpenSSL files
in PATH
1479 --with-tds=PATH use FreeTDS files
in PATH
1480 --with-termcap=PATH use Termcap files
in PATH
1481 --with-tinfo=PATH use Term Info files
in PATH
1482 --with-tonezone=PATH use tonezone files
in PATH
1483 --with-vorbis=PATH use Vorbis files
in PATH
1484 --with-vpb=PATH use Voicetronix API files
in PATH
1485 --with-z=PATH use zlib files
in PATH
1486 --with-zaptel=PATH use Zaptel files
in PATH
1488 Some influential environment variables
:
1489 CC C compiler
command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1492 nonstandard directory
<lib dir
>
1493 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1494 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1495 you have headers
in a nonstandard directory
<include dir
>
1497 CXX C
++ compiler
command
1498 CXXFLAGS C
++ compiler flags
1499 CXXCPP C
++ preprocessor
1501 Use these variables to override the choices made by
`configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1565 generated by GNU Autoconf 2.61
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by $as_me, which was
1581 generated by GNU Autoconf 2.61. Invocation command line was
1593 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1594 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1595 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1596 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1597 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1599 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1600 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1602 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1603 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1604 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1605 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1606 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1607 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1608 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_must_keep_next=false
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1652 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 -* ) ac_must_keep_next=true ;;
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1697 # The following way of writing the cache mishandles newlines in values,
1699 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1700 eval ac_val=\$$ac_var
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1714 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1734 for ac_var in $ac_subst_vars
1736 eval ac_val=\$$ac_var
1738 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 echo "$ac_var='\''$ac_val'\''"
1744 if test -n "$ac_subst_files"; then
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1751 for ac_var in $ac_subst_files
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1762 if test -s confdefs.h; then
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1853 ac_header_list="$ac_header_list sys/time.h"
1854 ac_header_list="$ac_header_list unistd.h"
1855 ac_func_list="$ac_func_list alarm"
1856 ac_header_list="$ac_header_list utime.h"
1857 # Check that the precious variables saved in the cache have kept the same
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1868 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1872 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1879 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1880 echo "$as_me: former value
: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1882 echo "$as_me: current value
: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1900 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1901 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 # cross-compile macros
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 elif test -f "$ac_dir/install.sh"; then
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 elif test -f "$ac_dir/shtool"; then
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 # Make sure we can run config.sub.
1963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1964 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1965 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1966 { (exit 1); exit 1; }; }
1968 { echo "$as_me:$LINENO: checking build system type" >&5
1969 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1970 if test "${ac_cv_build+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 ac_build_alias=$build_alias
1974 test "x$ac_build_alias" = x &&
1975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1976 test "x$ac_build_alias" = x &&
1977 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1978 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1979 { (exit 1); exit 1; }; }
1980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1983 { (exit 1); exit 1; }; }
1986 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1987 echo "${ECHO_T}$ac_cv_build" >&6; }
1988 case $ac_cv_build in
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1991 echo "$as_me: error: invalid value of canonical build" >&2;}
1992 { (exit 1); exit 1; }; };;
1995 ac_save_IFS=$IFS; IFS='-'
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2005 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2008 { echo "$as_me:$LINENO: checking host system type" >&5
2009 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2010 if test "${ac_cv_host+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test "x$host_alias" = x; then
2014 ac_cv_host=$ac_cv_build
2016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2017 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2019 { (exit 1); exit 1; }; }
2023 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2024 echo "${ECHO_T}$ac_cv_host" >&6; }
2027 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2028 echo "$as_me: error: invalid value of canonical host" >&2;}
2029 { (exit 1); exit 1; }; };;
2032 ac_save_IFS=$IFS; IFS='-'
2038 # Remember, the first character of IFS is used to create $*,
2039 # except with old shells:
2042 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2046 # check existence of the package
2049 # specify output header file
2050 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2057 cat >>confdefs.h <<\_ACEOF
2058 #define _GNU_SOURCE 1
2063 ac_cpp='$CPP $CPPFLAGS'
2064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067 if test -n "$ac_tool_prefix"; then
2068 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$CC"; then
2076 ac_cv_prog_CC="$CC" # Let the user override the test.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 if test -n "$CC"; then
2097 { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2106 if test -z "$ac_cv_prog_CC"; then
2108 # Extract the first word of "gcc", so it can be a program name with args.
2109 set dummy gcc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test -n "$ac_ct_CC"; then
2116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125 ac_cv_prog_ac_ct_CC="gcc"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136 if test -n "$ac_ct_CC"; then
2137 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2138 echo "${ECHO_T}$ac_ct_CC" >&6; }
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2144 if test "x$ac_ct_CC" = x; then
2147 case $cross_compiling:$ac_tool_warned in
2149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2150 whose name does not start with the host triplet. If you think this
2151 configuration is useful to you, please write to autoconf@gnu.org." >&5
2152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2153 whose name does not start with the host triplet. If you think this
2154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2155 ac_tool_warned=yes ;;
2163 if test -z "$CC"; then
2164 if test -n "$ac_tool_prefix"; then
2165 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2166 set dummy ${ac_tool_prefix}cc; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_CC+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 if test -n "$CC"; then
2173 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_CC="${ac_tool_prefix}cc"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 if test -n "$CC"; then
2194 { echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6; }
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2204 if test -z "$CC"; then
2205 # Extract the first word of "cc", so it can be a program name with args.
2206 set dummy cc; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2224 ac_prog_rejected=yes
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 if test $ac_prog_rejected = yes; then
2236 # We found a bogon in the path, so make sure we never use it.
2237 set dummy $ac_cv_prog_CC
2239 if test $# != 0; then
2240 # We chose a different compiler from the bogus one.
2241 # However, it has the same basename, so the bogon will be chosen
2242 # first if we set CC to just the basename; use the full file name.
2244 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2250 if test -n "$CC"; then
2251 { echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6; }
2254 { echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6; }
2260 if test -z "$CC"; then
2261 if test -n "$ac_tool_prefix"; then
2262 for ac_prog in cl.exe
2264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2268 if test "${ac_cv_prog_CC+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 if test -n "$CC"; then
2272 ac_cv_prog_CC="$CC" # Let the user override the test.
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2281 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 if test -n "$CC"; then
2293 { echo "$as_me:$LINENO: result: $CC" >&5
2294 echo "${ECHO_T}$CC" >&6; }
2296 { echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6; }
2301 test -n "$CC" && break
2304 if test -z "$CC"; then
2306 for ac_prog in cl.exe
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy $ac_prog; ac_word=$2
2310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$ac_ct_CC"; then
2316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_ac_ct_CC="$ac_prog"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6; }
2340 { echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6; }
2345 test -n "$ac_ct_CC" && break
2348 if test "x$ac_ct_CC" = x; then
2351 case $cross_compiling:$ac_tool_warned in
2353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2354 whose name does not start with the host triplet. If you think this
2355 configuration is useful to you, please write to autoconf@gnu.org." >&5
2356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2357 whose name does not start with the host triplet. If you think this
2358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2359 ac_tool_warned=yes ;;
2368 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2369 See \`config.log
' for more details." >&5
2370 echo "$as_me: error: no acceptable C compiler found in \$PATH
2371 See \`config.log' for more details.
" >&2;}
2372 { (exit 1); exit 1; }; }
2374 # Provide some information about the compiler.
2375 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2376 ac_compiler=`set X $ac_compile; echo $2`
2377 { (ac_try="$ac_compiler --version >&5"
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_compiler --version >&5") 2>&5
2385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2386 (exit $ac_status); }
2387 { (ac_try="$ac_compiler -v >&5"
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compiler -v >&5") 2>&5
2395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2396 (exit $ac_status); }
2397 { (ac_try="$ac_compiler -V >&5"
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_compiler -V >&5") 2>&5
2405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2406 (exit $ac_status); }
2408 cat >conftest.$ac_ext <<_ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2423 ac_clean_files_save=$ac_clean_files
2424 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2425 # Try to create an executable without -o first, disregard a.out.
2426 # It will help us diagnose broken compilers, and finding out an intuition
2428 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2429 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2430 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2432 # List of possible output files, starting from the most likely.
2433 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2434 # only as a last resort. b.out is created by i960 compilers.
2435 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2437 # The IRIX 6 linker writes into existing files which may not be
2438 # executable, retaining their permissions. Remove them first so a
2439 # subsequent execution test works.
2441 for ac_file in $ac_files
2444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2445 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2450 if { (ac_try="$ac_link_default"
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_link_default") 2>&5
2458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2459 (exit $ac_status); }; then
2460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2462 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2463 # so that the user can short-circuit this test for compilers unknown to
2465 for ac_file in $ac_files ''
2467 test -f "$ac_file" || continue
2469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2472 # We found the default executable, but exeext='' is most
2476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2480 # We set ac_cv_exeext here because the later test for it is not
2481 # safe: cross compilers may not add the suffix if given an `-o'
2482 # argument, so we may need to know it at that point already.
2483 # Even if this section looks crufty: it has the advantage of
2490 test "$ac_cv_exeext" = no && ac_cv_exeext=
2496 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2497 echo "${ECHO_T}$ac_file" >&6; }
2498 if test -z "$ac_file"; then
2499 echo "$as_me: failed program was
:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2502 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2503 See \
`config.log' for more details." >&5
2504 echo "$as_me: error: C compiler cannot create executables
2505 See \`config.log
' for more details." >&2;}
2506 { (exit 77); exit 77; }; }
2509 ac_exeext=$ac_cv_exeext
2511 # Check that the compiler produces executables we can run. If not, either
2512 # the compiler is broken, or we cross compile.
2513 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2514 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2515 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2516 # If not cross compiling, check that we can run a simple program.
2517 if test "$cross_compiling" != yes; then
2518 if { ac_try='.
/$ac_file'
2519 { (case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_try") 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2530 if test "$cross_compiling" = maybe; then
2533 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2534 If you meant to cross compile, use \`--host'.
2535 See \
`config.log' for more details." >&5
2536 echo "$as_me: error: cannot run C compiled programs.
2537 If you meant to cross compile, use \`--host'.
2538 See \`config.log' for more details.
" >&2;}
2539 { (exit 1); exit 1; }; }
2543 { echo "$as_me:$LINENO: result
: yes" >&5
2544 echo "${ECHO_T}yes" >&6; }
2546 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2547 ac_clean_files=$ac_clean_files_save
2548 # Check that the compiler produces executables we can run. If not, either
2549 # the compiler is broken, or we cross compile.
2550 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2551 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2552 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2553 echo "${ECHO_T}$cross_compiling" >&6; }
2555 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2556 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2557 if { (ac_try="$ac_link"
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_link") 2>&5
2565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2566 (exit $ac_status); }; then
2567 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2568 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2569 # work properly (i.e., refer to `conftest.exe'), while it won't with
2571 for ac_file in conftest.exe conftest conftest.*; do
2572 test -f "$ac_file" || continue
2574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2581 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2582 See \
`config.log' for more details." >&5
2583 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2584 See \`config.log
' for more details." >&2;}
2585 { (exit 1); exit 1; }; }
2588 rm -f conftest$ac_cv_exeext
2589 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2590 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2592 rm -f conftest.$ac_ext
2593 EXEEXT=$ac_cv_exeext
2595 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2596 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2597 if test "${ac_cv_objext+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2615 rm -f conftest.o conftest.obj
2616 if { (ac_try="$ac_compile"
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; then
2626 for ac_file in conftest.o conftest.obj conftest.*; do
2627 test -f "$ac_file" || continue;
2629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2630 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2635 echo "$as_me: failed program was:" >&5
2636 sed 's
/^
/|
/' conftest.$ac_ext >&5
2638 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2639 See \`config.log' for more details.
" >&5
2640 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2641 See \
`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2645 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2647 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2648 echo "${ECHO_T}$ac_cv_objext" >&6; }
2649 OBJEXT=$ac_cv_objext
2651 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2652 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2653 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 cat >conftest.$ac_ext <<_ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2674 rm -f conftest.$ac_objext
2675 if { (ac_try="$ac_compile"
2677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2678 *) ac_try_echo
=$ac_try;;
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compile") 2>conftest.er1
2683 grep -v '^ *+' conftest.er1
>conftest.err
2685 cat conftest.err
>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } && {
2688 test -z "$ac_c_werror_flag" ||
2689 test ! -s conftest.err
2690 } && test -s conftest.
$ac_objext; then
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.
$ac_ext >&5
2699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2700 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2703 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2704 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2705 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2706 ac_test_CFLAGS
=${CFLAGS+set}
2707 ac_save_CFLAGS
=$CFLAGS
2708 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2709 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2710 if test "${ac_cv_prog_cc_g+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 ac_save_c_werror_flag
=$ac_c_werror_flag
2714 ac_c_werror_flag
=yes
2717 cat >conftest.
$ac_ext <<_ACEOF
2720 cat confdefs.h
>>conftest.
$ac_ext
2721 cat >>conftest.
$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2732 rm -f conftest.
$ac_objext
2733 if { (ac_try
="$ac_compile"
2735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2741 grep -v '^ *+' conftest.er1 >conftest.err
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } && {
2746 test -z "$ac_c_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest.$ac_objext; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2774 *) ac_try_echo
=$ac_try;;
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2779 grep -v '^ *+' conftest.er1
>conftest.err
2781 cat conftest.err
>&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } && {
2784 test -z "$ac_c_werror_flag" ||
2785 test ! -s conftest.err
2786 } && test -s conftest.
$ac_objext; then
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.
$ac_ext >&5
2792 ac_c_werror_flag
=$ac_save_c_werror_flag
2794 cat >conftest.
$ac_ext <<_ACEOF
2797 cat confdefs.h
>>conftest.
$ac_ext
2798 cat >>conftest.
$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2809 rm -f conftest.
$ac_objext
2810 if { (ac_try
="$ac_compile"
2812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_compile") 2>conftest.er1
2818 grep -v '^ *+' conftest.er1 >conftest.err
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest.$ac_objext; then
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 ac_c_werror_flag=$ac_save_c_werror_flag
2843 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2844 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2845 if test "$ac_test_CFLAGS" = set; then
2846 CFLAGS=$ac_save_CFLAGS
2847 elif test $ac_cv_prog_cc_g = yes; then
2848 if test "$GCC" = yes; then
2854 if test "$GCC" = yes; then
2860 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2861 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2862 if test "${ac_cv_prog_cc_c89+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 ac_cv_prog_cc_c89=no
2867 cat >conftest.$ac_ext <<_ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2875 #include <sys/types.h>
2876 #include <sys/stat.h>
2877 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2878 struct buf { int x; };
2879 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2880 static char *e (p, i)
2886 static char *f (char * (*g) (char **, int), char **p, ...)
2891 s = g (p, va_arg (v,int));
2896 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2897 function prototypes and stuff, but not '\xHH' hex character constants.
2898 These don't provoke an error unfortunately, instead are silently treated
2899 as 'x'. The following induces an error, until -std is added to get
2900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2901 array size at least. It's necessary to write '\x00'==0 to get something
2902 that's true only with -std. */
2903 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2905 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2906 inside strings and character constants. */
2908 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2910 int test (int i, double x);
2911 struct s1 {int (*f) (int a);};
2912 struct s2 {int (*f) (double a);};
2913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2927 CC="$ac_save_CC $ac_arg"
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2932 *) ac_try_echo
=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2937 grep -v '^ *+' conftest.er1
>conftest.err
2939 cat conftest.err
>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && {
2942 test -z "$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 } && test -s conftest.
$ac_objext; then
2945 ac_cv_prog_cc_c89
=$ac_arg
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.
$ac_ext >&5
2953 rm -f core conftest.err conftest.
$ac_objext
2954 test "x$ac_cv_prog_cc_c89" != "xno" && break
2956 rm -f conftest.
$ac_ext
2961 case "x$ac_cv_prog_cc_c89" in
2963 { echo "$as_me:$LINENO: result: none needed" >&5
2964 echo "${ECHO_T}none needed" >&6; } ;;
2966 { echo "$as_me:$LINENO: result: unsupported" >&5
2967 echo "${ECHO_T}unsupported" >&6; } ;;
2969 CC
="$CC $ac_cv_prog_cc_c89"
2970 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2971 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2976 ac_cpp
='$CPP $CPPFLAGS'
2977 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2983 ac_cpp
='$CPP $CPPFLAGS'
2984 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2987 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2988 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2989 # On Suns, sometimes $CPP names a directory.
2990 if test -n "$CPP" && test -d "$CPP"; then
2993 if test -z "$CPP"; then
2994 if test "${ac_cv_prog_CPP+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 # Double quotes because CPP needs to be expanded
2998 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3001 for ac_c_preproc_warn_flag
in '' yes
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
3005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
3007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat >conftest.
$ac_ext <<_ACEOF
3012 cat confdefs.h
>>conftest.
$ac_ext
3013 cat >>conftest.
$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3016 # include <limits.h>
3018 # include <assert.h>
3022 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null && {
3035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 # Broken: fails on valid input.
3047 rm -f conftest.err conftest.$ac_ext
3049 # OK, works on sane cases. Now check whether nonexistent headers
3050 # can be detected and how.
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3059 if { (ac_try="$ac_cpp conftest.$ac_ext"
3061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3062 *) ac_try_echo
=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3067 grep -v '^ *+' conftest.er1
>conftest.err
3069 cat conftest.err
>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev
/null
&& {
3072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3075 # Broken: success on invalid input.
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.
$ac_ext >&5
3081 # Passes both tests.
3086 rm -f conftest.err conftest.
$ac_ext
3089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3090 rm -f conftest.err conftest.
$ac_ext
3091 if $ac_preproc_ok; then
3103 { echo "$as_me:$LINENO: result: $CPP" >&5
3104 echo "${ECHO_T}$CPP" >&6; }
3106 for ac_c_preproc_warn_flag
in '' yes
3108 # Use a header file that comes with gcc, so configuring glibc
3109 # with a fresh cross-compiler works.
3110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3111 # <limits.h> exists even on freestanding compilers.
3112 # On the NeXT, cc -E runs the code through the compiler's parser,
3113 # not just through cpp. "Syntax error" is here to catch this case.
3114 cat >conftest.
$ac_ext <<_ACEOF
3117 cat confdefs.h
>>conftest.
$ac_ext
3118 cat >>conftest.
$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3121 # include <limits.h>
3123 # include <assert.h>
3127 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null && {
3140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 # Broken: fails on valid input.
3152 rm -f conftest.err conftest.$ac_ext
3154 # OK, works on sane cases. Now check whether nonexistent headers
3155 # can be detected and how.
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162 #include <ac_nonexistent.h>
3164 if { (ac_try="$ac_cpp conftest.$ac_ext"
3166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3167 *) ac_try_echo
=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3172 grep -v '^ *+' conftest.er1
>conftest.err
3174 cat conftest.err
>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } >/dev
/null
&& {
3177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3180 # Broken: success on invalid input.
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.
$ac_ext >&5
3186 # Passes both tests.
3191 rm -f conftest.err conftest.
$ac_ext
3194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3195 rm -f conftest.err conftest.
$ac_ext
3196 if $ac_preproc_ok; then
3199 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3200 See \`config.log' for more details." >&5
3201 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3202 See \`config.log' for more details." >&2;}
3203 { (exit 1); exit 1; }; }
3207 ac_cpp
='$CPP $CPPFLAGS'
3208 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3213 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3214 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3215 if test "${ac_cv_path_GREP+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 # Extract the first word of "grep ggrep" to use in msg output
3219 if test -z "$GREP"; then
3220 set dummy
grep ggrep
; ac_prog_name
=$2
3221 if test "${ac_cv_path_GREP+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 ac_path_GREP_found
=false
3225 # Loop through the user's path and test for each of PROGNAME-LIST
3226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3227 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3230 test -z "$as_dir" && as_dir
=.
3231 for ac_prog
in grep ggrep
; do
3232 for ac_exec_ext
in '' $ac_executable_extensions; do
3233 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3234 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3235 # Check for GNU ac_path_GREP and select it if it is found.
3236 # Check for GNU $ac_path_GREP
3237 case `"$ac_path_GREP" --version 2>&1` in
3239 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3242 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3245 cat "conftest.in" "conftest.in" >"conftest.tmp"
3246 mv "conftest.tmp" "conftest.in"
3247 cp "conftest.in" "conftest.nl"
3248 echo 'GREP' >> "conftest.nl"
3249 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3250 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3251 ac_count
=`expr $ac_count + 1`
3252 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3253 # Best one so far, save it but keep looking for a better one
3254 ac_cv_path_GREP
="$ac_path_GREP"
3255 ac_path_GREP_max
=$ac_count
3257 # 10*(2^10) chars as input seems more than enough
3258 test $ac_count -gt 10 && break
3260 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3264 $ac_path_GREP_found && break 3
3274 GREP
="$ac_cv_path_GREP"
3275 if test -z "$GREP"; then
3276 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3277 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3278 { (exit 1); exit 1; }; }
3282 ac_cv_path_GREP
=$GREP
3287 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3288 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3289 GREP
="$ac_cv_path_GREP"
3292 { echo "$as_me:$LINENO: checking for egrep" >&5
3293 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3294 if test "${ac_cv_path_EGREP+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3298 then ac_cv_path_EGREP
="$GREP -E"
3300 # Extract the first word of "egrep" to use in msg output
3301 if test -z "$EGREP"; then
3302 set dummy
egrep; ac_prog_name
=$2
3303 if test "${ac_cv_path_EGREP+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 ac_path_EGREP_found
=false
3307 # Loop through the user's path and test for each of PROGNAME-LIST
3308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3309 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3312 test -z "$as_dir" && as_dir
=.
3313 for ac_prog
in egrep; do
3314 for ac_exec_ext
in '' $ac_executable_extensions; do
3315 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3316 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3317 # Check for GNU ac_path_EGREP and select it if it is found.
3318 # Check for GNU $ac_path_EGREP
3319 case `"$ac_path_EGREP" --version 2>&1` in
3321 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3324 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3327 cat "conftest.in" "conftest.in" >"conftest.tmp"
3328 mv "conftest.tmp" "conftest.in"
3329 cp "conftest.in" "conftest.nl"
3330 echo 'EGREP' >> "conftest.nl"
3331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3332 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3333 ac_count
=`expr $ac_count + 1`
3334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3335 # Best one so far, save it but keep looking for a better one
3336 ac_cv_path_EGREP
="$ac_path_EGREP"
3337 ac_path_EGREP_max
=$ac_count
3339 # 10*(2^10) chars as input seems more than enough
3340 test $ac_count -gt 10 && break
3342 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3346 $ac_path_EGREP_found && break 3
3356 EGREP
="$ac_cv_path_EGREP"
3357 if test -z "$EGREP"; then
3358 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3359 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3360 { (exit 1); exit 1; }; }
3364 ac_cv_path_EGREP
=$EGREP
3370 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3371 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3372 EGREP
="$ac_cv_path_EGREP"
3376 { echo "$as_me:$LINENO: checking for AIX" >&5
3377 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3378 cat >conftest.
$ac_ext <<_ACEOF
3381 cat confdefs.h
>>conftest.
$ac_ext
3382 cat >>conftest.
$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3390 $EGREP "yes" >/dev
/null
2>&1; then
3391 { echo "$as_me:$LINENO: result: yes" >&5
3392 echo "${ECHO_T}yes" >&6; }
3393 cat >>confdefs.h
<<\_ACEOF
3394 #define _ALL_SOURCE 1
3398 { echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6; }
3404 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3405 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3406 if test "${ac_cv_header_stdc+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 cat >conftest.
$ac_ext <<_ACEOF
3412 cat confdefs.h
>>conftest.
$ac_ext
3413 cat >>conftest.
$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3428 rm -f conftest.
$ac_objext
3429 if { (ac_try
="$ac_compile"
3431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_compile") 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } && {
3442 test -z "$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3444 } && test -s conftest.$ac_objext; then
3445 ac_cv_header_stdc=yes
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 ac_cv_header_stdc=no
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 if test $ac_cv_header_stdc = yes; then
3456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3457 cat >conftest.$ac_ext <<_ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3467 $EGREP "memchr" >/dev/null 2>&1; then
3470 ac_cv_header_stdc=no
3476 if test $ac_cv_header_stdc = yes; then
3477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3478 cat >conftest.$ac_ext <<_ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3488 $EGREP "free" >/dev/null 2>&1; then
3491 ac_cv_header_stdc=no
3497 if test $ac_cv_header_stdc = yes; then
3498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3499 if test "$cross_compiling" = yes; then
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3510 #if ((' ' & 0x0FF) == 0x020)
3511 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3512 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3514 # define ISLOWER(c) \
3515 (('a' <= (c) && (c) <= 'i') \
3516 || ('j' <= (c) && (c) <= 'r') \
3517 || ('s' <= (c) && (c) <= 'z'))
3518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3521 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3526 for (i = 0; i < 256; i++)
3527 if (XOR (islower (i), ISLOWER (i))
3528 || toupper (i) != TOUPPER (i))
3533 rm -f conftest$ac_exeext
3534 if { (ac_try="$ac_link"
3536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3537 *) ac_try_echo
=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_link") 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3544 { (case "(($ac_try" in
3545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_try") 2>&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3555 echo "$as_me: program exited with status $ac_status" >&5
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3560 ac_cv_header_stdc=no
3562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3568 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3569 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3570 if test $ac_cv_header_stdc = yes; then
3572 cat >>confdefs.h <<\_ACEOF
3573 #define STDC_HEADERS 1
3578 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3589 inttypes.h stdint.h unistd.h
3591 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 $ac_includes_default
3605 #include <$ac_header>
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3611 *) ac_try_echo
=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1
>conftest.err
3618 cat conftest.err
>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.
$ac_objext; then
3624 eval "$as_ac_Header=yes"
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.
$ac_ext >&5
3629 eval "$as_ac_Header=no"
3632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3634 ac_res
=`eval echo '${'$as_ac_Header'}'`
3635 { echo "$as_me:$LINENO: result: $ac_res" >&5
3636 echo "${ECHO_T}$ac_res" >&6; }
3637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3638 cat >>confdefs.h
<<_ACEOF
3639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3647 if test "${ac_cv_header_minix_config_h+set}" = set; then
3648 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3649 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3650 if test "${ac_cv_header_minix_config_h+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3654 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3656 # Is the header compilable?
3657 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3658 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3659 cat >conftest.
$ac_ext <<_ACEOF
3662 cat confdefs.h
>>conftest.
$ac_ext
3663 cat >>conftest.
$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 $ac_includes_default
3666 #include <minix/config.h>
3668 rm -f conftest.
$ac_objext
3669 if { (ac_try
="$ac_compile"
3671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } && {
3682 test -z "$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 } && test -s conftest.$ac_objext; then
3685 ac_header_compiler=yes
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 ac_header_compiler=no
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3695 echo "${ECHO_T}$ac_header_compiler" >&6; }
3697 # Is the header present?
3698 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3699 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3700 cat >conftest.$ac_ext <<_ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 #include <minix/config.h>
3708 if { (ac_try="$ac_cpp conftest.$ac_ext"
3710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3711 *) ac_try_echo
=$ac_try;;
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3716 grep -v '^ *+' conftest.er1
>conftest.err
3718 cat conftest.err
>&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } >/dev
/null
&& {
3721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3722 test ! -s conftest.err
3724 ac_header_preproc
=yes
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.
$ac_ext >&5
3729 ac_header_preproc
=no
3732 rm -f conftest.err conftest.
$ac_ext
3733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3734 echo "${ECHO_T}$ac_header_preproc" >&6; }
3736 # So? What about this header?
3737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3739 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3740 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3741 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3742 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3743 ac_header_preproc
=yes
3746 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3747 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3749 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3751 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3752 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3753 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3755 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3757 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3761 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3762 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3763 if test "${ac_cv_header_minix_config_h+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 ac_cv_header_minix_config_h
=$ac_header_preproc
3768 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3769 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3772 if test $ac_cv_header_minix_config_h = yes; then
3779 if test "$MINIX" = yes; then
3781 cat >>confdefs.h
<<\_ACEOF
3782 #define _POSIX_SOURCE 1
3786 cat >>confdefs.h
<<\_ACEOF
3787 #define _POSIX_1_SOURCE 2
3791 cat >>confdefs.h
<<\_ACEOF
3807 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3808 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3809 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 cat >conftest.
$ac_ext <<_ACEOF
3815 cat confdefs.h
>>conftest.
$ac_ext
3816 cat >>conftest.
$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3819 # define __EXTENSIONS__ 1
3820 $ac_includes_default
3829 rm -f conftest.
$ac_objext
3830 if { (ac_try
="$ac_compile"
3832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_compile") 2>conftest.er1
3838 grep -v '^ *+' conftest.er1 >conftest.err
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } && {
3843 test -z "$ac_c_werror_flag" ||
3844 test ! -s conftest.err
3845 } && test -s conftest.$ac_objext; then
3846 ac_cv_safe_to_define___extensions__=yes
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ac_cv_safe_to_define___extensions__=no
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3857 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3858 test $ac_cv_safe_to_define___extensions__ = yes &&
3859 cat >>confdefs.h <<\_ACEOF
3860 #define __EXTENSIONS__ 1
3863 cat >>confdefs.h <<\_ACEOF
3864 #define _POSIX_PTHREAD_SEMANTICS 1
3867 cat >>confdefs.h <<\_ACEOF
3868 #define _TANDEM_SOURCE 1
3873 case "${host_os}" in
3875 ac_default_prefix=/usr/local
3876 CPPFLAGS=-I/usr/local/include
3877 LDFLAGS=-L/usr/local/lib
3880 ac_default_prefix=/usr
3881 if test ${sysconfdir} = '${prefix}/etc'; then
3884 if test ${mandir} = '${prefix}/man'; then
3885 mandir=/usr/share/man
3890 if test ${localstatedir} = '${prefix}/var'; then
3894 BUILD_PLATFORM=${build}
3895 BUILD_CPU=${build_cpu}
3896 BUILD_VENDOR=${build_vendor}
3897 BUILD_OS=${build_os}
3904 HOST_PLATFORM=${host}
3905 HOST_CPU=${host_cpu}
3906 HOST_VENDOR=${host_vendor}
3914 case "${host_os}" in
3935 if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
3937 set dummy ${ac_tool_prefix}uname; ac_word=$2
3938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3940 if test "${ac_cv_path_UNAME+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 UNAME=$ac_cv_path_UNAME
3967 if test -n "$UNAME"; then
3968 { echo "$as_me:$LINENO: result: $UNAME" >&5
3969 echo "${ECHO_T}$UNAME" >&6; }
3971 { echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6; }
3977 if test -z "$ac_cv_path_UNAME"; then
3979 # Extract the first word of "uname", so it can be a program name with args.
3980 set dummy uname; ac_word=$2
3981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3983 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 case $ac_pt_UNAME in
3988 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4010 if test -n "$ac_pt_UNAME"; then
4011 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4012 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4014 { echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6; }
4018 if test "x$ac_pt_UNAME" = x; then
4021 case $cross_compiling:$ac_tool_warned in
4023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4024 whose name does not start with the host triplet. If you think this
4025 configuration is useful to you, please write to autoconf@gnu.org." >&5
4026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4027 whose name does not start with the host triplet. If you think this
4028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4029 ac_tool_warned=yes ;;
4034 UNAME="$ac_cv_path_UNAME"
4037 if test ! x"${UNAME}" = xNo; then
4038 PBX_OSREV=$(${UNAME} -r)
4048 # cross-compile checks
4049 if test "${cross_compiling}" = "yes";
4051 if test -n "$ac_tool_prefix"; then
4052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4056 if test "${ac_cv_prog_CC+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 if test -n "$CC"; then
4060 ac_cv_prog_CC="$CC" # Let the user override the test.
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 if test -n "$CC"; then
4081 { echo "$as_me:$LINENO: result: $CC" >&5
4082 echo "${ECHO_T}$CC" >&6; }
4084 { echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6; }
4090 if test -z "$ac_cv_prog_CC"; then
4092 # Extract the first word of "gcc", so it can be a program name with args.
4093 set dummy gcc; ac_word=$2
4094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 if test -n "$ac_ct_CC"; then
4100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_ac_ct_CC="gcc"
4110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4120 if test -n "$ac_ct_CC"; then
4121 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4122 echo "${ECHO_T}$ac_ct_CC" >&6; }
4124 { echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6; }
4128 if test "x$ac_ct_CC" = x; then
4131 case $cross_compiling:$ac_tool_warned in
4133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4134 whose name does not start with the host triplet. If you think this
4135 configuration is useful to you, please write to autoconf@gnu.org." >&5
4136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4137 whose name does not start with the host triplet. If you think this
4138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4139 ac_tool_warned=yes ;;
4147 if test -n "$ac_tool_prefix"; then
4148 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4149 set dummy ${ac_tool_prefix}g++; ac_word=$2
4150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4152 if test "${ac_cv_prog_CXX+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 if test -n "$CXX"; then
4156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 if test -n "$CXX"; then
4177 { echo "$as_me:$LINENO: result: $CXX" >&5
4178 echo "${ECHO_T}$CXX" >&6; }
4180 { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4186 if test -z "$ac_cv_prog_CXX"; then
4188 # Extract the first word of "g++", so it can be a program name with args.
4189 set dummy g++; ac_word=$2
4190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4192 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 if test -n "$ac_ct_CXX"; then
4196 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_ac_ct_CXX="g++"
4206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4216 if test -n "$ac_ct_CXX"; then
4217 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4218 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4220 { echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6; }
4224 if test "x$ac_ct_CXX" = x; then
4227 case $cross_compiling:$ac_tool_warned in
4229 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4230 whose name does not start with the host triplet. If you think this
4231 configuration is useful to you, please write to autoconf@gnu.org." >&5
4232 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4233 whose name does not start with the host triplet. If you think this
4234 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4235 ac_tool_warned=yes ;;
4240 CXX="$ac_cv_prog_CXX"
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4245 set dummy ${ac_tool_prefix}ld; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_LD+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 if test -n "$LD"; then
4252 ac_cv_prog_LD="$LD" # Let the user override the test.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_LD="${ac_tool_prefix}ld"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 if test -n "$LD"; then
4273 { echo "$as_me:$LINENO: result: $LD" >&5
4274 echo "${ECHO_T}$LD" >&6; }
4276 { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4282 if test -z "$ac_cv_prog_LD"; then
4284 # Extract the first word of "ld", so it can be a program name with args.
4285 set dummy ld; ac_word=$2
4286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4288 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 if test -n "$ac_ct_LD"; then
4292 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_prog_ac_ct_LD="ld"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4312 if test -n "$ac_ct_LD"; then
4313 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4314 echo "${ECHO_T}$ac_ct_LD" >&6; }
4316 { echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6; }
4320 if test "x$ac_ct_LD" = x; then
4323 case $cross_compiling:$ac_tool_warned in
4325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4326 whose name does not start with the host triplet. If you think this
4327 configuration is useful to you, please write to autoconf@gnu.org." >&5
4328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4329 whose name does not start with the host triplet. If you think this
4330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4331 ac_tool_warned=yes ;;
4339 if test -n "$ac_tool_prefix"; then
4340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4344 if test "${ac_cv_prog_RANLIB+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 if test -n "$RANLIB"; then
4348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 RANLIB=$ac_cv_prog_RANLIB
4368 if test -n "$RANLIB"; then
4369 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4370 echo "${ECHO_T}$RANLIB" >&6; }
4372 { echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6; }
4378 if test -z "$ac_cv_prog_RANLIB"; then
4379 ac_ct_RANLIB=$RANLIB
4380 # Extract the first word of "ranlib", so it can be a program name with args.
4381 set dummy ranlib; ac_word=$2
4382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 if test -n "$ac_ct_RANLIB"; then
4388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_ac_ct_RANLIB="ranlib"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4408 if test -n "$ac_ct_RANLIB"; then
4409 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4410 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4412 { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4416 if test "x$ac_ct_RANLIB" = x; then
4419 case $cross_compiling:$ac_tool_warned in
4421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4422 whose name does not start with the host triplet. If you think this
4423 configuration is useful to you, please write to autoconf@gnu.org." >&5
4424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4425 whose name does not start with the host triplet. If you think this
4426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4427 ac_tool_warned=yes ;;
4429 RANLIB=$ac_ct_RANLIB
4432 RANLIB="$ac_cv_prog_RANLIB"
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}ar; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_AR+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -n "$AR"; then
4444 ac_cv_prog_AR="$AR" # Let the user override the test.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_AR="${ac_tool_prefix}ar"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 if test -n "$AR"; then
4465 { echo "$as_me:$LINENO: result: $AR" >&5
4466 echo "${ECHO_T}$AR" >&6; }
4468 { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4474 if test -z "$ac_cv_prog_AR"; then
4476 # Extract the first word of "ar", so it can be a program name with args.
4477 set dummy ar; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 if test -n "$ac_ct_AR"; then
4484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_ac_ct_AR="ar"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4504 if test -n "$ac_ct_AR"; then
4505 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4506 echo "${ECHO_T}$ac_ct_AR" >&6; }
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4512 if test "x$ac_ct_AR" = x; then
4515 case $cross_compiling:$ac_tool_warned in
4517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4518 whose name does not start with the host triplet. If you think this
4519 configuration is useful to you, please write to autoconf@gnu.org." >&5
4520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4521 whose name does not start with the host triplet. If you think this
4522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4523 ac_tool_warned=yes ;;
4533 # Checks for programs.
4535 ac_cpp='$CPP $CPPFLAGS'
4536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539 if test -n "$ac_tool_prefix"; then
4540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4544 if test "${ac_cv_prog_CC+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 if test -n "$CC"; then
4548 ac_cv_prog_CC="$CC" # Let the user override the test.
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 if test -n "$CC"; then
4569 { echo "$as_me:$LINENO: result: $CC" >&5
4570 echo "${ECHO_T}$CC" >&6; }
4572 { echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6; }
4578 if test -z "$ac_cv_prog_CC"; then
4580 # Extract the first word of "gcc", so it can be a program name with args.
4581 set dummy gcc; ac_word=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 if test -n "$ac_ct_CC"; then
4588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_ac_ct_CC="gcc"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4608 if test -n "$ac_ct_CC"; then
4609 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4610 echo "${ECHO_T}$ac_ct_CC" >&6; }
4612 { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4616 if test "x$ac_ct_CC" = x; then
4619 case $cross_compiling:$ac_tool_warned in
4621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4622 whose name does not start with the host triplet. If you think this
4623 configuration is useful to you, please write to autoconf@gnu.org." >&5
4624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4625 whose name does not start with the host triplet. If you think this
4626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4627 ac_tool_warned=yes ;;
4635 if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}cc; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_prog_CC+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 if test -n "$CC"; then
4645 ac_cv_prog_CC="$CC" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_CC="${ac_tool_prefix}cc"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 if test -n "$CC"; then
4666 { echo "$as_me:$LINENO: result: $CC" >&5
4667 echo "${ECHO_T}$CC" >&6; }
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4676 if test -z "$CC"; then
4677 # Extract the first word of "cc", so it can be a program name with args.
4678 set dummy cc; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_prog_CC+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 if test -n "$CC"; then
4685 ac_cv_prog_CC="$CC" # Let the user override the test.
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696 ac_prog_rejected=yes
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_CC
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set CC to just the basename; use the full file name.
4716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4722 if test -n "$CC"; then
4723 { echo "$as_me:$LINENO: result: $CC" >&5
4724 echo "${ECHO_T}$CC" >&6; }
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4732 if test -z "$CC"; then
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in cl.exe
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_prog_CC+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 if test -n "$CC"; then
4744 ac_cv_prog_CC="$CC" # Let the user override the test.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 if test -n "$CC"; then
4765 { echo "$as_me:$LINENO: result: $CC" >&5
4766 echo "${ECHO_T}$CC" >&6; }
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4773 test -n "$CC" && break
4776 if test -z "$CC"; then
4778 for ac_prog in cl.exe
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 if test -n "$ac_ct_CC"; then
4788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_CC="$ac_prog"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4808 if test -n "$ac_ct_CC"; then
4809 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4810 echo "${ECHO_T}$ac_ct_CC" >&6; }
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4817 test -n "$ac_ct_CC" && break
4820 if test "x$ac_ct_CC" = x; then
4823 case $cross_compiling:$ac_tool_warned in
4825 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4826 whose name does not start with the host triplet. If you think this
4827 configuration is useful to you, please write to autoconf@gnu.org." >&5
4828 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4829 whose name does not start with the host triplet. If you think this
4830 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4831 ac_tool_warned=yes ;;
4840 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4841 See \`config.log
' for more details." >&5
4842 echo "$as_me: error: no acceptable C compiler found in \$PATH
4843 See \`config.log' for more details.
" >&2;}
4844 { (exit 1); exit 1; }; }
4846 # Provide some information about the compiler.
4847 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4848 ac_compiler=`set X $ac_compile; echo $2`
4849 { (ac_try="$ac_compiler --version >&5"
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_compiler --version >&5") 2>&5
4857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4858 (exit $ac_status); }
4859 { (ac_try="$ac_compiler -v >&5"
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_compiler -v >&5") 2>&5
4867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4868 (exit $ac_status); }
4869 { (ac_try="$ac_compiler -V >&5"
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_compiler -V >&5") 2>&5
4877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4878 (exit $ac_status); }
4880 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4881 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4882 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4883 echo $ECHO_N "(cached
) $ECHO_C" >&6
4885 cat >conftest.$ac_ext <<_ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4903 rm -f conftest.$ac_objext
4904 if { (ac_try="$ac_compile"
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_compile") 2>conftest.er1
4912 grep -v '^ *+' conftest.er1 >conftest.err
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
4922 echo "$as_me: failed program was
:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4932 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4933 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4934 GCC=`test $ac_compiler_gnu = yes && echo yes`
4935 ac_test_CFLAGS=${CFLAGS+set}
4936 ac_save_CFLAGS=$CFLAGS
4937 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4938 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4939 if test "${ac_cv_prog_cc_g+set}" = set; then
4940 echo $ECHO_N "(cached
) $ECHO_C" >&6
4942 ac_save_c_werror_flag=$ac_c_werror_flag
4943 ac_c_werror_flag=yes
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4961 rm -f conftest.$ac_objext
4962 if { (ac_try="$ac_compile"
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_compile") 2>conftest.er1
4970 grep -v '^ *+' conftest.er1 >conftest.err
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4974 (exit $ac_status); } && {
4975 test -z "$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 } && test -s conftest.$ac_objext; then
4980 echo "$as_me: failed program was
:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4984 cat >conftest.$ac_ext <<_ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4999 rm -f conftest.$ac_objext
5000 if { (ac_try="$ac_compile"
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5008 grep -v '^ *+' conftest.er1 >conftest.err
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_c_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.$ac_objext; then
5018 echo "$as_me: failed program was
:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 ac_c_werror_flag=$ac_save_c_werror_flag
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5038 rm -f conftest.$ac_objext
5039 if { (ac_try="$ac_compile"
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_compile") 2>conftest.er1
5047 grep -v '^ *+' conftest.er1 >conftest.err
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5051 (exit $ac_status); } && {
5052 test -z "$ac_c_werror_flag" ||
5053 test ! -s conftest.err
5054 } && test -s conftest.$ac_objext; then
5057 echo "$as_me: failed program was
:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ac_c_werror_flag=$ac_save_c_werror_flag
5072 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5073 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5074 if test "$ac_test_CFLAGS" = set; then
5075 CFLAGS=$ac_save_CFLAGS
5076 elif test $ac_cv_prog_cc_g = yes; then
5077 if test "$GCC" = yes; then
5083 if test "$GCC" = yes; then
5089 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5090 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5091 if test "${ac_cv_prog_cc_c89+set}" = set; then
5092 echo $ECHO_N "(cached
) $ECHO_C" >&6
5094 ac_cv_prog_cc_c89=no
5096 cat >conftest.$ac_ext <<_ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5104 #include <sys/types.h>
5105 #include <sys/stat.h>
5106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5107 struct buf { int x; };
5108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5109 static char *e (p, i)
5115 static char *f (char * (*g) (char **, int), char **p, ...)
5120 s = g (p, va_arg (v,int));
5125 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5126 function prototypes and stuff, but not '\xHH' hex character constants.
5127 These don't provoke an error unfortunately, instead are silently treated
5128 as 'x'. The following induces an error, until -std is added to get
5129 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5130 array size at least. It's necessary to write '\x00'==0 to get something
5131 that's true only with -std. */
5132 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5134 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5135 inside strings and character constants. */
5137 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5139 int test (int i, double x);
5140 struct s1 {int (*f) (int a);};
5141 struct s2 {int (*f) (double a);};
5142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5153 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5154 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5156 CC="$ac_save_CC $ac_arg"
5157 rm -f conftest.$ac_objext
5158 if { (ac_try="$ac_compile"
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5164 (eval "$ac_compile") 2>conftest.er1
5166 grep -v '^ *+' conftest.er1 >conftest.err
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5170 (exit $ac_status); } && {
5171 test -z "$ac_c_werror_flag" ||
5172 test ! -s conftest.err
5173 } && test -s conftest.$ac_objext; then
5174 ac_cv_prog_cc_c89=$ac_arg
5176 echo "$as_me: failed program was
:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5182 rm -f core conftest.err conftest.$ac_objext
5183 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5185 rm -f conftest.$ac_ext
5190 case "x
$ac_cv_prog_cc_c89" in
5192 { echo "$as_me:$LINENO: result
: none needed
" >&5
5193 echo "${ECHO_T}none needed
" >&6; } ;;
5195 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5196 echo "${ECHO_T}unsupported
" >&6; } ;;
5198 CC="$CC $ac_cv_prog_cc_c89"
5199 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5200 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5211 ac_cpp='$CXXCPP $CPPFLAGS'
5212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5215 if test -z "$CXX"; then
5216 if test -n "$CCC"; then
5219 if test -n "$ac_tool_prefix"; then
5220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5224 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5225 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5226 if test "${ac_cv_prog_CXX+set}" = set; then
5227 echo $ECHO_N "(cached
) $ECHO_C" >&6
5229 if test -n "$CXX"; then
5230 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5240 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5250 if test -n "$CXX"; then
5251 { echo "$as_me:$LINENO: result
: $CXX" >&5
5252 echo "${ECHO_T}$CXX" >&6; }
5254 { echo "$as_me:$LINENO: result
: no
" >&5
5255 echo "${ECHO_T}no
" >&6; }
5259 test -n "$CXX" && break
5262 if test -z "$CXX"; then
5264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5266 # Extract the first word of "$ac_prog", so it can be a program name with args.
5267 set dummy $ac_prog; ac_word=$2
5268 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5269 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5271 echo $ECHO_N "(cached
) $ECHO_C" >&6
5273 if test -n "$ac_ct_CXX"; then
5274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_ac_ct_CXX="$ac_prog"
5284 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5294 if test -n "$ac_ct_CXX"; then
5295 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5298 { echo "$as_me:$LINENO: result
: no
" >&5
5299 echo "${ECHO_T}no
" >&6; }
5303 test -n "$ac_ct_CXX" && break
5306 if test "x
$ac_ct_CXX" = x; then
5309 case $cross_compiling:$ac_tool_warned in
5311 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5312 whose name does not start with the
host triplet. If you think this
5313 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5314 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5315 whose name does not start with the
host triplet. If you think this
5316 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5317 ac_tool_warned=yes ;;
5325 # Provide some information about the compiler.
5326 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5327 ac_compiler=`set X $ac_compile; echo $2`
5328 { (ac_try="$ac_compiler --version >&5"
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_compiler --version >&5") 2>&5
5336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5337 (exit $ac_status); }
5338 { (ac_try="$ac_compiler -v >&5"
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_compiler -v >&5") 2>&5
5346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5347 (exit $ac_status); }
5348 { (ac_try="$ac_compiler -V >&5"
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_compiler -V >&5") 2>&5
5356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5357 (exit $ac_status); }
5359 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5360 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5361 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5362 echo $ECHO_N "(cached
) $ECHO_C" >&6
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_cxx_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5401 echo "$as_me: failed program was
:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5411 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5412 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5413 GXX=`test $ac_compiler_gnu = yes && echo yes`
5414 ac_test_CXXFLAGS=${CXXFLAGS+set}
5415 ac_save_CXXFLAGS=$CXXFLAGS
5416 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5417 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5418 if test "${ac_cv_prog_cxx_g+set}" = set; then
5419 echo $ECHO_N "(cached
) $ECHO_C" >&6
5421 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5422 ac_cxx_werror_flag=yes
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5440 rm -f conftest.$ac_objext
5441 if { (ac_try="$ac_compile"
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_compile") 2>conftest.er1
5449 grep -v '^ *+' conftest.er1 >conftest.err
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_cxx_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest.$ac_objext; then
5457 ac_cv_prog_cxx_g=yes
5459 echo "$as_me: failed program was
:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5463 cat >conftest.$ac_ext <<_ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5478 rm -f conftest.$ac_objext
5479 if { (ac_try="$ac_compile"
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5487 grep -v '^ *+' conftest.er1 >conftest.err
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_cxx_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
5497 echo "$as_me: failed program was
:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5502 cat >conftest.$ac_ext <<_ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5526 grep -v '^ *+' conftest.er1 >conftest.err
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_cxx_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5534 ac_cv_prog_cxx_g=yes
5536 echo "$as_me: failed program was
:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5551 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5552 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5553 if test "$ac_test_CXXFLAGS" = set; then
5554 CXXFLAGS=$ac_save_CXXFLAGS
5555 elif test $ac_cv_prog_cxx_g = yes; then
5556 if test "$GXX" = yes; then
5562 if test "$GXX" = yes; then
5569 ac_cpp='$CPP $CPPFLAGS'
5570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575 ac_cpp='$CPP $CPPFLAGS'
5576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5579 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5580 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5581 # On Suns, sometimes $CPP names a directory.
5582 if test -n "$CPP" && test -d "$CPP"; then
5585 if test -z "$CPP"; then
5586 if test "${ac_cv_prog_CPP+set}" = set; then
5587 echo $ECHO_N "(cached
) $ECHO_C" >&6
5589 # Double quotes because CPP needs to be expanded
5590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5593 for ac_c_preproc_warn_flag in '' yes
5595 # Use a header file that comes with gcc, so configuring glibc
5596 # with a fresh cross-compiler works.
5597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598 # <limits.h> exists even on freestanding compilers.
5599 # On the NeXT, cc -E runs the code through the compiler's parser,
5600 # not just through cpp. "Syntax error
" is here to catch this case.
5601 cat >conftest.$ac_ext <<_ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5608 # include <limits.h>
5610 # include <assert.h>
5614 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5619 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1 >conftest.err
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5626 (exit $ac_status); } >/dev/null && {
5627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5632 echo "$as_me: failed program was
:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 # Broken: fails on valid input.
5639 rm -f conftest.err conftest.$ac_ext
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat >conftest.$ac_ext <<_ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <ac_nonexistent.h>
5651 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5659 grep -v '^ *+' conftest.er1 >conftest.err
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5663 (exit $ac_status); } >/dev/null && {
5664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5667 # Broken: success on invalid input.
5670 echo "$as_me: failed program was
:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 # Passes both tests.
5678 rm -f conftest.err conftest.$ac_ext
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then
5695 { echo "$as_me:$LINENO: result
: $CPP" >&5
5696 echo "${ECHO_T}$CPP" >&6; }
5698 for ac_c_preproc_warn_flag in '' yes
5700 # Use a header file that comes with gcc, so configuring glibc
5701 # with a fresh cross-compiler works.
5702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5703 # <limits.h> exists even on freestanding compilers.
5704 # On the NeXT, cc -E runs the code through the compiler's parser,
5705 # not just through cpp. "Syntax error
" is here to catch this case.
5706 cat >conftest.$ac_ext <<_ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5713 # include <limits.h>
5715 # include <assert.h>
5719 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5731 (exit $ac_status); } >/dev/null && {
5732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5737 echo "$as_me: failed program was
:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 # Broken: fails on valid input.
5744 rm -f conftest.err conftest.$ac_ext
5746 # OK, works on sane cases. Now check whether nonexistent headers
5747 # can be detected and how.
5748 cat >conftest.$ac_ext <<_ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 #include <ac_nonexistent.h>
5756 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5761 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5768 (exit $ac_status); } >/dev/null && {
5769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5772 # Broken: success on invalid input.
5775 echo "$as_me: failed program was
:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 # Passes both tests.
5783 rm -f conftest.err conftest.$ac_ext
5786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5787 rm -f conftest.err conftest.$ac_ext
5788 if $ac_preproc_ok; then
5791 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5792 See \
`config.log' for more details." >&5
5793 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5794 See \`config.log
' for more details." >&2;}
5795 { (exit 1); exit 1; }; }
5799 ac_cpp='$CPP $CPPFLAGS'
5800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5801 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5805 ac_cpp='$CXXCPP $CPPFLAGS'
5806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5807 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5810 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5811 if test -z "$CXXCPP"; then
5812 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 # Double quotes because CXXCPP needs to be expanded
5816 for CXXCPP in "$CXX -E" "/lib/cpp"
5819 for ac_cxx_preproc_warn_flag in '' yes
5821 # Use a header file that comes with gcc, so configuring glibc
5822 # with a fresh cross-compiler works.
5823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5824 # <limits.h> exists even on freestanding compilers.
5825 # On the NeXT, cc -E runs the code through the compiler's parser
,
5826 # not just through cpp. "Syntax error" is here to catch this case.
5827 cat >conftest.
$ac_ext <<_ACEOF
5830 cat confdefs.h
>>conftest.
$ac_ext
5831 cat >>conftest.
$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5834 # include <limits.h>
5836 # include <assert.h>
5840 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5848 grep -v '^ *+' conftest.er1 >conftest.err
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } >/dev/null && {
5853 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5854 test ! -s conftest.err
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 # Broken: fails on valid input.
5865 rm -f conftest.err conftest.$ac_ext
5867 # OK, works on sane cases. Now check whether nonexistent headers
5868 # can be detected and how.
5869 cat >conftest.$ac_ext <<_ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 #include <ac_nonexistent.h>
5877 if { (ac_try="$ac_cpp conftest.$ac_ext"
5879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5880 *) ac_try_echo
=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5885 grep -v '^ *+' conftest.er1
>conftest.err
5887 cat conftest.err
>&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } >/dev
/null
&& {
5890 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5891 test ! -s conftest.err
5893 # Broken: success on invalid input.
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.
$ac_ext >&5
5899 # Passes both tests.
5904 rm -f conftest.err conftest.
$ac_ext
5907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5908 rm -f conftest.err conftest.
$ac_ext
5909 if $ac_preproc_ok; then
5914 ac_cv_prog_CXXCPP
=$CXXCPP
5917 CXXCPP
=$ac_cv_prog_CXXCPP
5919 ac_cv_prog_CXXCPP
=$CXXCPP
5921 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5922 echo "${ECHO_T}$CXXCPP" >&6; }
5924 for ac_cxx_preproc_warn_flag
in '' yes
5926 # Use a header file that comes with gcc, so configuring glibc
5927 # with a fresh cross-compiler works.
5928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5929 # <limits.h> exists even on freestanding compilers.
5930 # On the NeXT, cc -E runs the code through the compiler's parser,
5931 # not just through cpp. "Syntax error" is here to catch this case.
5932 cat >conftest.
$ac_ext <<_ACEOF
5935 cat confdefs.h
>>conftest.
$ac_ext
5936 cat >>conftest.
$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5939 # include <limits.h>
5941 # include <assert.h>
5945 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5953 grep -v '^ *+' conftest.er1 >conftest.err
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } >/dev/null && {
5958 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5959 test ! -s conftest.err
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 # Broken: fails on valid input.
5970 rm -f conftest.err conftest.$ac_ext
5972 # OK, works on sane cases. Now check whether nonexistent headers
5973 # can be detected and how.
5974 cat >conftest.$ac_ext <<_ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #include <ac_nonexistent.h>
5982 if { (ac_try="$ac_cpp conftest.$ac_ext"
5984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5985 *) ac_try_echo
=$ac_try;;
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5990 grep -v '^ *+' conftest.er1
>conftest.err
5992 cat conftest.err
>&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } >/dev
/null
&& {
5995 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5996 test ! -s conftest.err
5998 # Broken: success on invalid input.
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.
$ac_ext >&5
6004 # Passes both tests.
6009 rm -f conftest.err conftest.
$ac_ext
6012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6013 rm -f conftest.err conftest.
$ac_ext
6014 if $ac_preproc_ok; then
6017 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6018 See \`config.log' for more details." >&5
6019 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6020 See \`config.log' for more details." >&2;}
6021 { (exit 1); exit 1; }; }
6025 ac_cpp
='$CPP $CPPFLAGS'
6026 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6030 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6031 # the developers regenerating the configure script don't have to install libtool.
6032 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6033 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6034 if test "${ac_cv_path_SED+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6038 for ac_i
in 1 2 3 4 5 6 7; do
6039 ac_script
="$ac_script$as_nl$ac_script"
6041 echo "$ac_script" |
sed 99q
>conftest.
sed
6042 $as_unset ac_script || ac_script
=
6043 # Extract the first word of "sed gsed" to use in msg output
6044 if test -z "$SED"; then
6045 set dummy
sed gsed
; ac_prog_name
=$2
6046 if test "${ac_cv_path_SED+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 ac_path_SED_found
=false
6050 # Loop through the user's path and test for each of PROGNAME-LIST
6051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6055 test -z "$as_dir" && as_dir
=.
6056 for ac_prog
in sed gsed
; do
6057 for ac_exec_ext
in '' $ac_executable_extensions; do
6058 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6059 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6060 # Check for GNU ac_path_SED and select it if it is found.
6061 # Check for GNU $ac_path_SED
6062 case `"$ac_path_SED" --version 2>&1` in
6064 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6067 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6070 cat "conftest.in" "conftest.in" >"conftest.tmp"
6071 mv "conftest.tmp" "conftest.in"
6072 cp "conftest.in" "conftest.nl"
6073 echo '' >> "conftest.nl"
6074 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6075 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6076 ac_count
=`expr $ac_count + 1`
6077 if test $ac_count -gt ${ac_path_SED_max-0}; then
6078 # Best one so far, save it but keep looking for a better one
6079 ac_cv_path_SED
="$ac_path_SED"
6080 ac_path_SED_max
=$ac_count
6082 # 10*(2^10) chars as input seems more than enough
6083 test $ac_count -gt 10 && break
6085 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6089 $ac_path_SED_found && break 3
6099 SED
="$ac_cv_path_SED"
6100 if test -z "$SED"; then
6101 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6102 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6103 { (exit 1); exit 1; }; }
6111 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6112 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6113 SED
="$ac_cv_path_SED"
6116 { echo "$as_me:$LINENO: checking for egrep" >&5
6117 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_egrep+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6122 then ac_cv_prog_egrep
='grep -E'
6123 else ac_cv_prog_egrep
='egrep'
6126 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6127 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6128 EGREP
=$ac_cv_prog_egrep
6132 # Check whether --with-gnu-ld was given.
6133 if test "${with_gnu_ld+set}" = set; then
6134 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6140 if test "$GCC" = yes; then
6141 # Check if gcc -print-prog-name=ld gives a path.
6142 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6143 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6146 # gcc leaves a trailing carriage return which upsets mingw
6147 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6149 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6152 # Accept absolute paths.
6154 re_direlt
='/[^/][^/]*/\.\./'
6155 # Canonicalize the pathname of ld
6156 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6157 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6158 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6160 test -z "$LD" && LD
="$ac_prog"
6163 # If it fails, then pretend we aren't using GCC.
6167 # If it is relative, then search for the first ld in PATH.
6171 elif test "$with_gnu_ld" = yes; then
6172 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6173 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6175 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6176 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6178 if test "${lt_cv_path_LD+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 if test -z "$LD"; then
6182 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6183 for ac_dir
in $PATH; do
6185 test -z "$ac_dir" && ac_dir
=.
6186 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6187 lt_cv_path_LD
="$ac_dir/$ac_prog"
6188 # Check to see if the program is GNU ld. I'd rather use --version,
6189 # but apparently some variants of GNU ld only accept -v.
6190 # Break only if it was the GNU/non-GNU ld that we prefer.
6191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6192 *GNU
* |
*'with BFD'*)
6193 test "$with_gnu_ld" != no
&& break
6196 test "$with_gnu_ld" != yes && break
6203 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6208 if test -n "$LD"; then
6209 { echo "$as_me:$LINENO: result: $LD" >&5
6210 echo "${ECHO_T}$LD" >&6; }
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6215 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6216 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6217 { (exit 1); exit 1; }; }
6218 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6219 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6220 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6224 case `$LD -v 2>&1 </dev/null` in
6225 *GNU
* |
*'with BFD'*)
6226 lt_cv_prog_gnu_ld
=yes
6229 lt_cv_prog_gnu_ld
=no
6233 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6234 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6235 with_gnu_ld
=$lt_cv_prog_gnu_ld
6238 for ac_prog
in gawk mawk nawk
awk
6240 # Extract the first word of "$ac_prog", so it can be a program name with args.
6241 set dummy
$ac_prog; ac_word
=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_AWK+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 if test -n "$AWK"; then
6248 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir
=.
6255 for ac_exec_ext
in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_AWK
="$ac_prog"
6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 if test -n "$AWK"; then
6269 { echo "$as_me:$LINENO: result: $AWK" >&5
6270 echo "${ECHO_T}$AWK" >&6; }
6272 { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6277 test -n "$AWK" && break
6280 # Find a good install program. We prefer a C program (faster),
6281 # so one script is as good as another. But avoid the broken or
6282 # incompatible versions:
6283 # SysV /etc/install, /usr/sbin/install
6284 # SunOS /usr/etc/install
6285 # IRIX /sbin/install
6287 # AmigaOS /C/install, which installs bootblocks on floppy discs
6288 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6289 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6290 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6291 # OS/2's system install, which has a completely different semantic
6292 # ./install, which can be erroneously created by make from ./install.sh.
6293 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6294 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6295 if test -z "$INSTALL"; then
6296 if test "${ac_cv_path_install+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir
=.
6304 # Account for people who put trailing slashes in PATH elements.
6306 .
/ | .
// |
/cC
/* | \
6307 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6308 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6311 # OSF1 and SCO ODT 3.0 have their own names for install.
6312 # Don't use installbsd from OSF since it installs stuff as root
6314 for ac_prog
in ginstall scoinst
install; do
6315 for ac_exec_ext
in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6317 if test $ac_prog = install &&
6318 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6319 # AIX install. It has an incompatible calling convention.
6321 elif test $ac_prog = install &&
6322 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6323 # program-specific install script used by HP pwplus--don't use.
6326 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6339 if test "${ac_cv_path_install+set}" = set; then
6340 INSTALL
=$ac_cv_path_install
6342 # As a last resort, use the slow shell script. Don't cache a
6343 # value for INSTALL within a source directory, because that will
6344 # break other packages using the cache if that directory is
6345 # removed, or if the value is a relative name.
6346 INSTALL
=$ac_install_sh
6349 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6350 echo "${ECHO_T}$INSTALL" >&6; }
6352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6353 # It thinks the first close brace ends the variable substitution.
6354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6358 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6360 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6361 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6363 if test "$LN_S" = "ln -s"; then
6364 { echo "$as_me:$LINENO: result: yes" >&5
6365 echo "${ECHO_T}yes" >&6; }
6367 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6368 echo "${ECHO_T}no, using $LN_S" >&6; }
6371 if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6373 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_prog_RANLIB+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 if test -n "$RANLIB"; then
6380 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir
=.
6387 for ac_exec_ext
in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 RANLIB
=$ac_cv_prog_RANLIB
6400 if test -n "$RANLIB"; then
6401 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6402 echo "${ECHO_T}$RANLIB" >&6; }
6404 { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6410 if test -z "$ac_cv_prog_RANLIB"; then
6411 ac_ct_RANLIB
=$RANLIB
6412 # Extract the first word of "ranlib", so it can be a program name with args.
6413 set dummy ranlib
; ac_word
=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 if test -n "$ac_ct_RANLIB"; then
6420 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir
=.
6427 for ac_exec_ext
in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6440 if test -n "$ac_ct_RANLIB"; then
6441 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6442 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6444 { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6448 if test "x$ac_ct_RANLIB" = x
; then
6451 case $cross_compiling:$ac_tool_warned in
6453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6454 whose name does not start with the host triplet. If you think this
6455 configuration is useful to you, please write to autoconf@gnu.org." >&5
6456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6457 whose name does not start with the host triplet. If you think this
6458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6459 ac_tool_warned
=yes ;;
6461 RANLIB
=$ac_ct_RANLIB
6464 RANLIB
="$ac_cv_prog_RANLIB"
6467 { echo "$as_me:$LINENO: checking for GNU make" >&5
6468 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6469 if test "${GNU_MAKE+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 GNU_MAKE
='Not Found' ;
6473 GNU_MAKE_VERSION_MAJOR
=0 ;
6474 GNU_MAKE_VERSION_MINOR
=0 ;
6475 for a
in make gmake gnumake
; do
6476 if test -z "$a" ; then continue ; fi ;
6477 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6479 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6480 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6486 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6487 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6488 if test "x$GNU_MAKE" = "xNot Found" ; then
6489 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6490 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6491 { (exit 1); exit 1; }; }
6498 if test "x$with_gnu_ld" = "xyes" ; then
6503 # Extract the first word of "grep", so it can be a program name with args.
6504 set dummy
grep; ac_word
=$2
6505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507 if test "${ac_cv_path_GREP+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6519 test -z "$as_dir" && as_dir
=.
6520 for ac_exec_ext
in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
6534 GREP
=$ac_cv_path_GREP
6535 if test -n "$GREP"; then
6536 { echo "$as_me:$LINENO: result: $GREP" >&5
6537 echo "${ECHO_T}$GREP" >&6; }
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6544 # Extract the first word of "ar", so it can be a program name with args.
6545 set dummy
ar; ac_word
=$2
6546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548 if test "${ac_cv_path_AR+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6560 test -z "$as_dir" && as_dir
=.
6561 for ac_exec_ext
in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 test -z "$ac_cv_path_AR" && ac_cv_path_AR
=":"
6576 if test -n "$AR"; then
6577 { echo "$as_me:$LINENO: result: $AR" >&5
6578 echo "${ECHO_T}$AR" >&6; }
6580 { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6585 # Extract the first word of "find", so it can be a program name with args.
6586 set dummy
find; ac_word
=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_FIND+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir
=.
6602 for ac_exec_ext
in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
6616 FIND
=$ac_cv_path_FIND
6617 if test -n "$FIND"; then
6618 { echo "$as_me:$LINENO: result: $FIND" >&5
6619 echo "${ECHO_T}$FIND" >&6; }
6621 { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6626 # Extract the first word of "compress", so it can be a program name with args.
6627 set dummy
compress; ac_word
=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_COMPRESS+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
6638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6642 test -z "$as_dir" && as_dir
=.
6643 for ac_exec_ext
in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
6657 COMPRESS
=$ac_cv_path_COMPRESS
6658 if test -n "$COMPRESS"; then
6659 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6660 echo "${ECHO_T}$COMPRESS" >&6; }
6662 { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6667 # Extract the first word of "basename", so it can be a program name with args.
6668 set dummy
basename; ac_word
=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_BASENAME+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
6679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir
=.
6684 for ac_exec_ext
in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
6698 BASENAME
=$ac_cv_path_BASENAME
6699 if test -n "$BASENAME"; then
6700 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6701 echo "${ECHO_T}$BASENAME" >&6; }
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6708 # Extract the first word of "id", so it can be a program name with args.
6709 set dummy id
; ac_word
=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_path_ID+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
6720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir
=.
6725 for ac_exec_ext
in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
6740 if test -n "$ID"; then
6741 { echo "$as_me:$LINENO: result: $ID" >&5
6742 echo "${ECHO_T}$ID" >&6; }
6744 { echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6; }
6749 # Extract the first word of "dirname", so it can be a program name with args.
6750 set dummy
dirname; ac_word
=$2
6751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753 if test "${ac_cv_path_DIRNAME+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
6761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir
=.
6766 for ac_exec_ext
in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
6780 DIRNAME
=$ac_cv_path_DIRNAME
6781 if test -n "$DIRNAME"; then
6782 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6783 echo "${ECHO_T}$DIRNAME" >&6; }
6785 { echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6; }
6790 # Extract the first word of "sh", so it can be a program name with args.
6791 set dummy sh
; ac_word
=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_path_SHELL+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
6802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6806 test -z "$as_dir" && as_dir
=.
6807 for ac_exec_ext
in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
6821 SHELL
=$ac_cv_path_SHELL
6822 if test -n "$SHELL"; then
6823 { echo "$as_me:$LINENO: result: $SHELL" >&5
6824 echo "${ECHO_T}$SHELL" >&6; }
6826 { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6831 # Extract the first word of "ln", so it can be a program name with args.
6832 set dummy
ln; ac_word
=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_LN+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
6843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir
=.
6848 for ac_exec_ext
in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
6863 if test -n "$LN"; then
6864 { echo "$as_me:$LINENO: result: $LN" >&5
6865 echo "${ECHO_T}$LN" >&6; }
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 # Extract the first word of "dot", so it can be a program name with args.
6873 set dummy dot
; ac_word
=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_DOT+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
6884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir
=.
6889 for ac_exec_ext
in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
6904 if test -n "$DOT"; then
6905 { echo "$as_me:$LINENO: result: $DOT" >&5
6906 echo "${ECHO_T}$DOT" >&6; }
6908 { echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6; }
6913 # Extract the first word of "strip", so it can be a program name with args.
6914 set dummy strip
; ac_word
=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_path_STRIP+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6929 test -z "$as_dir" && as_dir
=.
6930 for ac_exec_ext
in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP
=":"
6944 STRIP
=$ac_cv_path_STRIP
6945 if test -n "$STRIP"; then
6946 { echo "$as_me:$LINENO: result: $STRIP" >&5
6947 echo "${ECHO_T}$STRIP" >&6; }
6949 { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6954 # Extract the first word of "wget", so it can be a program name with args.
6955 set dummy wget
; ac_word
=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_WGET+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
6966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir
=.
6971 for ac_exec_ext
in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
6985 WGET
=$ac_cv_path_WGET
6986 if test -n "$WGET"; then
6987 { echo "$as_me:$LINENO: result: $WGET" >&5
6988 echo "${ECHO_T}$WGET" >&6; }
6990 { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6995 if test "${WGET}" != ":" ; then
6998 # Extract the first word of "fetch", so it can be a program name with args.
6999 set dummy fetch
; ac_word
=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_FETCH+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir
=.
7015 for ac_exec_ext
in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7029 FETCH
=$ac_cv_path_FETCH
7030 if test -n "$FETCH"; then
7031 { echo "$as_me:$LINENO: result: $FETCH" >&5
7032 echo "${ECHO_T}$FETCH" >&6; }
7034 { echo "$as_me:$LINENO: result: no" >&5
7035 echo "${ECHO_T}no" >&6; }
7044 ac_cpp
='$CPP $CPPFLAGS'
7045 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7050 # Check whether --enable-dev-mode was given.
7051 if test "${enable_dev_mode+set}" = set; then
7052 enableval
=$enable_dev_mode; case "${enableval}" in
7053 y|ye|
yes) AST_DEVMODE
=yes ;;
7054 n|no
) AST_DEVMODE
=no
;;
7055 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7056 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7057 { (exit 1); exit 1; }; } ;;
7063 # package option names should be in alphabetical order
7064 # by the --with option name, to make things easier for the users :-)
7067 ALSA_DESCRIP
="Advanced Linux Sound Architecture"
7068 ALSA_OPTION
="asound"
7070 # Check whether --with-asound was given.
7071 if test "${with_asound+set}" = set; then
7072 withval
=$with_asound;
7078 ALSA_MANDATORY
="yes"
7081 ALSA_DIR
="${withval}"
7082 ALSA_MANDATORY
="yes"
7097 # Check whether --with-curl was given.
7098 if test "${with_curl+set}" = set; then
7105 CURL_MANDATORY
="yes"
7108 CURL_DIR
="${withval}"
7109 CURL_MANDATORY
="yes"
7121 CURSES_DESCRIP
="curses"
7122 CURSES_OPTION
="curses"
7124 # Check whether --with-curses was given.
7125 if test "${with_curses+set}" = set; then
7126 withval
=$with_curses;
7132 CURSES_MANDATORY
="yes"
7135 CURSES_DIR
="${withval}"
7136 CURSES_MANDATORY
="yes"
7148 GNUTLS_DESCRIP
="GNU TLS support (used for iksemel only)"
7149 GNUTLS_OPTION
="gnutls"
7151 # Check whether --with-gnutls was given.
7152 if test "${with_gnutls+set}" = set; then
7153 withval
=$with_gnutls;
7159 GNUTLS_MANDATORY
="yes"
7162 GNUTLS_DIR
="${withval}"
7163 GNUTLS_MANDATORY
="yes"
7178 # Check whether --with-gsm was given.
7179 if test "${with_gsm+set}" = set; then
7189 GSM_DIR
="${withval}"
7202 IKSEMEL_DESCRIP
="Iksemel Jabber Library"
7203 IKSEMEL_OPTION
="iksemel"
7205 # Check whether --with-iksemel was given.
7206 if test "${with_iksemel+set}" = set; then
7207 withval
=$with_iksemel;
7213 IKSEMEL_MANDATORY
="yes"
7216 IKSEMEL_DIR
="${withval}"
7217 IKSEMEL_MANDATORY
="yes"
7229 IMAP_TK_DESCRIP
="UW IMAP Toolkit"
7230 IMAP_TK_OPTION
="imap"
7232 # Check whether --with-imap was given.
7233 if test "${with_imap+set}" = set; then
7240 IMAP_TK_MANDATORY
="yes"
7243 IMAP_TK_DIR
="${withval}"
7244 IMAP_TK_MANDATORY
="yes"
7256 ISDNNET_DESCRIP
="ISDN4Linux Library"
7257 ISDNNET_OPTION
="isdnnet"
7259 # Check whether --with-isdnnet was given.
7260 if test "${with_isdnnet+set}" = set; then
7261 withval
=$with_isdnnet;
7267 ISDNNET_MANDATORY
="yes"
7270 ISDNNET_DIR
="${withval}"
7271 ISDNNET_MANDATORY
="yes"
7286 # Check whether --with-kde was given.
7287 if test "${with_kde+set}" = set; then
7297 KDE_DIR
="${withval}"
7310 MISDN_DESCRIP
="mISDN User Library"
7311 MISDN_OPTION
="misdn"
7313 # Check whether --with-misdn was given.
7314 if test "${with_misdn+set}" = set; then
7315 withval
=$with_misdn;
7321 MISDN_MANDATORY
="yes"
7324 MISDN_DIR
="${withval}"
7325 MISDN_MANDATORY
="yes"
7337 NBS_DESCRIP
="Network Broadcast Sound"
7340 # Check whether --with-nbs was given.
7341 if test "${with_nbs+set}" = set; then
7351 NBS_DIR
="${withval}"
7364 NCURSES_DESCRIP
="ncurses"
7365 NCURSES_OPTION
="ncurses"
7367 # Check whether --with-ncurses was given.
7368 if test "${with_ncurses+set}" = set; then
7369 withval
=$with_ncurses;
7375 NCURSES_MANDATORY
="yes"
7378 NCURSES_DIR
="${withval}"
7379 NCURSES_MANDATORY
="yes"
7391 NETSNMP_DESCRIP
="Net-SNMP"
7392 NETSNMP_OPTION
="netsnmp"
7394 # Check whether --with-netsnmp was given.
7395 if test "${with_netsnmp+set}" = set; then
7396 withval
=$with_netsnmp;
7402 NETSNMP_MANDATORY
="yes"
7405 NETSNMP_DIR
="${withval}"
7406 NETSNMP_MANDATORY
="yes"
7421 # Check whether --with-newt was given.
7422 if test "${with_newt+set}" = set; then
7429 NEWT_MANDATORY
="yes"
7432 NEWT_DIR
="${withval}"
7433 NEWT_MANDATORY
="yes"
7445 UNIXODBC_DESCRIP
="unixODBC"
7446 UNIXODBC_OPTION
="odbc"
7448 # Check whether --with-odbc was given.
7449 if test "${with_odbc+set}" = set; then
7456 UNIXODBC_MANDATORY
="yes"
7459 UNIXODBC_DIR
="${withval}"
7460 UNIXODBC_MANDATORY
="yes"
7475 # Check whether --with-ogg was given.
7476 if test "${with_ogg+set}" = set; then
7486 OGG_DIR
="${withval}"
7499 OSPTK_DESCRIP
="OSP Toolkit"
7500 OSPTK_OPTION
="osptk"
7502 # Check whether --with-osptk was given.
7503 if test "${with_osptk+set}" = set; then
7504 withval
=$with_osptk;
7510 OSPTK_MANDATORY
="yes"
7513 OSPTK_DIR
="${withval}"
7514 OSPTK_MANDATORY
="yes"
7526 OSS_DESCRIP
="Open Sound System"
7529 # Check whether --with-oss was given.
7530 if test "${with_oss+set}" = set; then
7540 OSS_DIR
="${withval}"
7556 # Check whether --with-popt was given.
7557 if test "${with_popt+set}" = set; then
7564 POPT_MANDATORY
="yes"
7567 POPT_DIR
="${withval}"
7568 POPT_MANDATORY
="yes"
7580 PGSQL_DESCRIP
="PostgreSQL"
7581 PGSQL_OPTION
="postgres"
7583 # Check whether --with-postgres was given.
7584 if test "${with_postgres+set}" = set; then
7585 withval
=$with_postgres;
7591 PGSQL_MANDATORY
="yes"
7594 PGSQL_DIR
="${withval}"
7595 PGSQL_MANDATORY
="yes"
7607 PRI_DESCRIP
="ISDN PRI"
7610 # Check whether --with-pri was given.
7611 if test "${with_pri+set}" = set; then
7621 PRI_DIR
="${withval}"
7634 PWLIB_DESCRIP
="PWlib"
7635 PWLIB_OPTION
="pwlib"
7637 # Check whether --with-pwlib was given.
7638 if test "${with_pwlib+set}" = set; then
7639 withval
=$with_pwlib;
7645 PWLIB_MANDATORY
="yes"
7648 PWLIB_DIR
="${withval}"
7649 PWLIB_MANDATORY
="yes"
7661 OPENH323_DESCRIP
="OpenH323"
7662 OPENH323_OPTION
="h323"
7664 # Check whether --with-h323 was given.
7665 if test "${with_h323+set}" = set; then
7672 OPENH323_MANDATORY
="yes"
7675 OPENH323_DIR
="${withval}"
7676 OPENH323_MANDATORY
="yes"
7691 # Check whether --with-qt was given.
7692 if test "${with_qt+set}" = set; then
7715 RADIUS_DESCRIP
="Radius Client"
7716 RADIUS_OPTION
="radius"
7718 # Check whether --with-radius was given.
7719 if test "${with_radius+set}" = set; then
7720 withval
=$with_radius;
7726 RADIUS_MANDATORY
="yes"
7729 RADIUS_DIR
="${withval}"
7730 RADIUS_MANDATORY
="yes"
7742 SPEEX_DESCRIP
="Speex"
7743 SPEEX_OPTION
="speex"
7745 # Check whether --with-speex was given.
7746 if test "${with_speex+set}" = set; then
7747 withval
=$with_speex;
7753 SPEEX_MANDATORY
="yes"
7756 SPEEX_DIR
="${withval}"
7757 SPEEX_MANDATORY
="yes"
7769 SQLITE_DESCRIP
="SQLite"
7770 SQLITE_OPTION
="sqlite"
7772 # Check whether --with-sqlite was given.
7773 if test "${with_sqlite+set}" = set; then
7774 withval
=$with_sqlite;
7780 SQLITE_MANDATORY
="yes"
7783 SQLITE_DIR
="${withval}"
7784 SQLITE_MANDATORY
="yes"
7796 SUPPSERV_DESCRIP
="mISDN Supplemental Services"
7797 SUPPSERV_OPTION
="suppserv"
7799 # Check whether --with-suppserv was given.
7800 if test "${with_suppserv+set}" = set; then
7801 withval
=$with_suppserv;
7807 SUPPSERV_MANDATORY
="yes"
7810 SUPPSERV_DIR
="${withval}"
7811 SUPPSERV_MANDATORY
="yes"
7823 OPENSSL_DESCRIP
="OpenSSL"
7824 OPENSSL_OPTION
="ssl"
7826 # Check whether --with-ssl was given.
7827 if test "${with_ssl+set}" = set; then
7834 OPENSSL_MANDATORY
="yes"
7837 OPENSSL_DIR
="${withval}"
7838 OPENSSL_MANDATORY
="yes"
7850 FREETDS_DESCRIP
="FreeTDS"
7851 FREETDS_OPTION
="tds"
7853 # Check whether --with-tds was given.
7854 if test "${with_tds+set}" = set; then
7861 FREETDS_MANDATORY
="yes"
7864 FREETDS_DIR
="${withval}"
7865 FREETDS_MANDATORY
="yes"
7877 TERMCAP_DESCRIP
="Termcap"
7878 TERMCAP_OPTION
="termcap"
7880 # Check whether --with-termcap was given.
7881 if test "${with_termcap+set}" = set; then
7882 withval
=$with_termcap;
7888 TERMCAP_MANDATORY
="yes"
7891 TERMCAP_DIR
="${withval}"
7892 TERMCAP_MANDATORY
="yes"
7904 TINFO_DESCRIP
="Term Info"
7905 TINFO_OPTION
="tinfo"
7907 # Check whether --with-tinfo was given.
7908 if test "${with_tinfo+set}" = set; then
7909 withval
=$with_tinfo;
7915 TINFO_MANDATORY
="yes"
7918 TINFO_DIR
="${withval}"
7919 TINFO_MANDATORY
="yes"
7931 TONEZONE_DESCRIP
="tonezone"
7932 TONEZONE_OPTION
="tonezone"
7934 # Check whether --with-tonezone was given.
7935 if test "${with_tonezone+set}" = set; then
7936 withval
=$with_tonezone;
7942 TONEZONE_MANDATORY
="yes"
7945 TONEZONE_DIR
="${withval}"
7946 TONEZONE_MANDATORY
="yes"
7958 VORBIS_DESCRIP
="Vorbis"
7959 VORBIS_OPTION
="vorbis"
7961 # Check whether --with-vorbis was given.
7962 if test "${with_vorbis+set}" = set; then
7963 withval
=$with_vorbis;
7969 VORBIS_MANDATORY
="yes"
7972 VORBIS_DIR
="${withval}"
7973 VORBIS_MANDATORY
="yes"
7985 VPB_DESCRIP
="Voicetronix API"
7988 # Check whether --with-vpb was given.
7989 if test "${with_vpb+set}" = set; then
7999 VPB_DIR
="${withval}"
8015 # Check whether --with-z was given.
8016 if test "${with_z+set}" = set; then
8023 ZLIB_MANDATORY
="yes"
8026 ZLIB_DIR
="${withval}"
8027 ZLIB_MANDATORY
="yes"
8039 ZAPTEL_DESCRIP
="Zaptel"
8040 ZAPTEL_OPTION
="zaptel"
8042 # Check whether --with-zaptel was given.
8043 if test "${with_zaptel+set}" = set; then
8044 withval
=$with_zaptel;
8050 ZAPTEL_MANDATORY
="yes"
8053 ZAPTEL_DIR
="${withval}"
8054 ZAPTEL_MANDATORY
="yes"
8066 # check for basic system features and functionality before
8067 # checking for package libraries
8069 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8070 # for constant arguments. Useless!
8071 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8072 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8073 if test "${ac_cv_working_alloca_h+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 cat >conftest.
$ac_ext <<_ACEOF
8079 cat confdefs.h
>>conftest.
$ac_ext
8080 cat >>conftest.
$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8086 char *p = (char *) alloca (2 * sizeof (int));
8092 rm -f conftest.
$ac_objext conftest
$ac_exeext
8093 if { (ac_try
="$ac_link"
8095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_link") 2>conftest.er1
8101 grep -v '^ *+' conftest.er1 >conftest.err
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } && {
8106 test -z "$ac_c_werror_flag" ||
8107 test ! -s conftest.err
8108 } && test -s conftest$ac_exeext &&
8109 $as_test_x conftest$ac_exeext; then
8110 ac_cv_working_alloca_h=yes
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8115 ac_cv_working_alloca_h=no
8118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8119 conftest$ac_exeext conftest.$ac_ext
8121 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8122 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8123 if test $ac_cv_working_alloca_h = yes; then
8125 cat >>confdefs.h <<\_ACEOF
8126 #define HAVE_ALLOCA_H 1
8131 { echo "$as_me:$LINENO: checking for alloca" >&5
8132 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8133 if test "${ac_cv_func_alloca_works+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8143 # define alloca __builtin_alloca
8146 # include <malloc.h>
8147 # define alloca _alloca
8149 # ifdef HAVE_ALLOCA_H
8150 # include <alloca.h>
8155 # ifndef alloca /* predefined by HP cc +Olibcalls */
8166 char *p = (char *) alloca (1);
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8176 *) ac_try_echo
=$ac_try;;
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_link") 2>conftest.er1
8181 grep -v '^ *+' conftest.er1
>conftest.err
8183 cat conftest.err
>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest
$ac_exeext &&
8189 $as_test_x conftest
$ac_exeext; then
8190 ac_cv_func_alloca_works
=yes
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.
$ac_ext >&5
8195 ac_cv_func_alloca_works
=no
8198 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8199 conftest
$ac_exeext conftest.
$ac_ext
8201 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8202 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8204 if test $ac_cv_func_alloca_works = yes; then
8206 cat >>confdefs.h
<<\_ACEOF
8207 #define HAVE_ALLOCA 1
8211 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8212 # that cause trouble. Some versions do not even contain alloca or
8213 # contain a buggy version. If you still want to use their alloca,
8214 # use ar to extract alloca.o from them instead of compiling alloca.c.
8216 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8218 cat >>confdefs.h
<<\_ACEOF
8223 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8224 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8225 if test "${ac_cv_os_cray+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.
$ac_ext <<_ACEOF
8231 cat confdefs.h
>>conftest.
$ac_ext
8232 cat >>conftest.
$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 #if defined CRAY && ! defined CRAY2
8241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8242 $EGREP "webecray" >/dev
/null
2>&1; then
8250 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8251 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8252 if test $ac_cv_os_cray = yes; then
8253 for ac_func
in _getb67 GETB67 getb67
; do
8254 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8257 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 cat >conftest.
$ac_ext <<_ACEOF
8263 cat confdefs.h
>>conftest.
$ac_ext
8264 cat >>conftest.
$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8268 #define $ac_func innocuous_$ac_func
8270 /* System header to define __stub macros and hopefully few prototypes,
8271 which can conflict with char $ac_func (); below.
8272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8273 <limits.h> exists even on freestanding compilers. */
8276 # include <limits.h>
8278 # include <assert.h>
8283 /* Override any GCC internal prototype to avoid an error.
8284 Use char because int might match the return type of a GCC
8285 builtin and then its argument prototype would still apply. */
8290 /* The GNU C library defines this for functions which it implements
8291 to always fail with ENOSYS. Some functions are actually named
8292 something starting with __ and the normal name is an alias. */
8293 #if defined __stub_$ac_func || defined __stub___$ac_func
8305 rm -f conftest.
$ac_objext conftest
$ac_exeext
8306 if { (ac_try
="$ac_link"
8308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_link") 2>conftest.er1
8314 grep -v '^ *+' conftest.er1 >conftest.err
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
8321 } && test -s conftest$ac_exeext &&
8322 $as_test_x conftest$ac_exeext; then
8323 eval "$as_ac_var=yes"
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 eval "$as_ac_var=no"
8331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8332 conftest$ac_exeext conftest.$ac_ext
8334 ac_res=`eval echo '${'$as_ac_var'}'`
8335 { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8337 if test `eval echo '${'$as_ac_var'}'` = yes; then
8339 cat >>confdefs.h <<_ACEOF
8340 #define CRAY_STACKSEG_END $ac_func
8349 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8350 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8351 if test "${ac_cv_c_stack_direction+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 if test "$cross_compiling" = yes; then
8355 ac_cv_c_stack_direction=0
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 $ac_includes_default
8365 find_stack_direction ()
8367 static char *addr = 0;
8372 return find_stack_direction ();
8375 return (&dummy > addr) ? 1 : -1;
8381 return find_stack_direction () < 0;
8384 rm -f conftest$ac_exeext
8385 if { (ac_try="$ac_link"
8387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8388 *) ac_try_echo
=$ac_try;;
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_link") 2>&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8395 { (case "(($ac_try" in
8396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_c_stack_direction=1
8406 echo "$as_me: program exited with status $ac_status" >&5
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_cv_c_stack_direction=-1
8413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8418 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8419 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8421 cat >>confdefs.h <<_ACEOF
8422 #define STACK_DIRECTION $ac_cv_c_stack_direction
8434 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8435 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
8436 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8437 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 #include <sys/types.h>
8459 rm -f conftest.$ac_objext
8460 if { (ac_try="$ac_compile"
8462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8463 *) ac_try_echo
=$ac_try;;
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_compile") 2>conftest.er1
8468 grep -v '^ *+' conftest.er1
>conftest.err
8470 cat conftest.err
>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest.
$ac_objext; then
8476 eval "$as_ac_Header=yes"
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.
$ac_ext >&5
8481 eval "$as_ac_Header=no"
8484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8486 ac_res
=`eval echo '${'$as_ac_Header'}'`
8487 { echo "$as_me:$LINENO: result: $ac_res" >&5
8488 echo "${ECHO_T}$ac_res" >&6; }
8489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8490 cat >>confdefs.h
<<_ACEOF
8491 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8494 ac_header_dirent
=$ac_hdr; break
8498 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8499 if test $ac_header_dirent = dirent.h
; then
8500 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8501 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8502 if test "${ac_cv_search_opendir+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 ac_func_search_save_LIBS
=$LIBS
8506 cat >conftest.
$ac_ext <<_ACEOF
8509 cat confdefs.h
>>conftest.
$ac_ext
8510 cat >>conftest.
$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8513 /* Override any GCC internal prototype to avoid an error.
8514 Use char because int might match the return type of a GCC
8515 builtin and then its argument prototype would still apply. */
8528 for ac_lib
in '' dir
; do
8529 if test -z "$ac_lib"; then
8530 ac_res
="none required"
8533 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8535 rm -f conftest.
$ac_objext conftest
$ac_exeext
8536 if { (ac_try
="$ac_link"
8538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_link") 2>conftest.er1
8544 grep -v '^ *+' conftest.er1 >conftest.err
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } && {
8549 test -z "$ac_c_werror_flag" ||
8550 test ! -s conftest.err
8551 } && test -s conftest$ac_exeext &&
8552 $as_test_x conftest$ac_exeext; then
8553 ac_cv_search_opendir=$ac_res
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8563 if test "${ac_cv_search_opendir+set}" = set; then
8567 if test "${ac_cv_search_opendir+set}" = set; then
8570 ac_cv_search_opendir=no
8573 LIBS=$ac_func_search_save_LIBS
8575 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8576 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8577 ac_res=$ac_cv_search_opendir
8578 if test "$ac_res" != no; then
8579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8584 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8585 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8586 if test "${ac_cv_search_opendir+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 ac_func_search_save_LIBS=$LIBS
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8597 /* Override any GCC internal prototype to avoid an error.
8598 Use char because int might match the return type of a GCC
8599 builtin and then its argument prototype would still apply. */
8612 for ac_lib in '' x; do
8613 if test -z "$ac_lib"; then
8614 ac_res="none required"
8617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8623 *) ac_try_echo
=$ac_try;;
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_link") 2>conftest.er1
8628 grep -v '^ *+' conftest.er1
>conftest.err
8630 cat conftest.err
>&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && {
8633 test -z "$ac_c_werror_flag" ||
8634 test ! -s conftest.err
8635 } && test -s conftest
$ac_exeext &&
8636 $as_test_x conftest
$ac_exeext; then
8637 ac_cv_search_opendir
=$ac_res
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.
$ac_ext >&5
8645 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8647 if test "${ac_cv_search_opendir+set}" = set; then
8651 if test "${ac_cv_search_opendir+set}" = set; then
8654 ac_cv_search_opendir
=no
8657 LIBS
=$ac_func_search_save_LIBS
8659 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8660 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8661 ac_res
=$ac_cv_search_opendir
8662 if test "$ac_res" != no
; then
8663 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8669 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8670 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8671 if test "${ac_cv_header_stdc+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 cat >conftest.
$ac_ext <<_ACEOF
8677 cat confdefs.h
>>conftest.
$ac_ext
8678 cat >>conftest.
$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8693 rm -f conftest.
$ac_objext
8694 if { (ac_try
="$ac_compile"
8696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_cv_header_stdc=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_header_stdc=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 if test $ac_cv_header_stdc = yes; then
8721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8722 cat >conftest.$ac_ext <<_ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8732 $EGREP "memchr" >/dev/null 2>&1; then
8735 ac_cv_header_stdc=no
8741 if test $ac_cv_header_stdc = yes; then
8742 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8743 cat >conftest.$ac_ext <<_ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8753 $EGREP "free" >/dev/null 2>&1; then
8756 ac_cv_header_stdc=no
8762 if test $ac_cv_header_stdc = yes; then
8763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8764 if test "$cross_compiling" = yes; then
8767 cat >conftest.$ac_ext <<_ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8775 #if ((' ' & 0x0FF) == 0x020)
8776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8779 # define ISLOWER(c) \
8780 (('a' <= (c) && (c) <= 'i') \
8781 || ('j' <= (c) && (c) <= 'r') \
8782 || ('s' <= (c) && (c) <= 'z'))
8783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8791 for (i = 0; i < 256; i++)
8792 if (XOR (islower (i), ISLOWER (i))
8793 || toupper (i) != TOUPPER (i))
8798 rm -f conftest$ac_exeext
8799 if { (ac_try="$ac_link"
8801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8802 *) ac_try_echo
=$ac_try;;
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_link") 2>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8809 { (case "(($ac_try" in
8810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_try") 2>&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8820 echo "$as_me: program exited with status $ac_status" >&5
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8825 ac_cv_header_stdc=no
8827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8833 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8834 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8835 if test $ac_cv_header_stdc = yes; then
8837 cat >>confdefs.h <<\_ACEOF
8838 #define STDC_HEADERS 1
8843 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8844 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8845 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 cat >conftest.$ac_ext <<_ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 #include <sys/types.h>
8855 #include <sys/wait.h>
8857 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8860 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8868 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8873 rm -f conftest.$ac_objext
8874 if { (ac_try="$ac_compile"
8876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8877 *) ac_try_echo
=$ac_try;;
8879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8882 grep -v '^ *+' conftest.er1
>conftest.err
8884 cat conftest.err
>&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && {
8887 test -z "$ac_c_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest.
$ac_objext; then
8890 ac_cv_header_sys_wait_h
=yes
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.
$ac_ext >&5
8895 ac_cv_header_sys_wait_h
=no
8898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8900 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8901 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8902 if test $ac_cv_header_sys_wait_h = yes; then
8904 cat >>confdefs.h
<<\_ACEOF
8905 #define HAVE_SYS_WAIT_H 1
8933 for ac_header
in arpa
/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet
/in.h stddef.h stdint.h stdlib.h string.h
strings.h sys
/file.h sys
/ioctl.h sys
/param.h sys
/socket.h sys
/time.h syslog.h termios.h unistd.h utime.h
8935 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8936 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8939 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 ac_res
=`eval echo '${'$as_ac_Header'}'`
8943 { echo "$as_me:$LINENO: result: $ac_res" >&5
8944 echo "${ECHO_T}$ac_res" >&6; }
8946 # Is the header compilable?
8947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8949 cat >conftest.
$ac_ext <<_ACEOF
8952 cat confdefs.h
>>conftest.
$ac_ext
8953 cat >>conftest.
$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 $ac_includes_default
8956 #include <$ac_header>
8958 rm -f conftest.
$ac_objext
8959 if { (ac_try
="$ac_compile"
8961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_compile") 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } && {
8972 test -z "$ac_c_werror_flag" ||
8973 test ! -s conftest.err
8974 } && test -s conftest.$ac_objext; then
8975 ac_header_compiler=yes
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8980 ac_header_compiler=no
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8985 echo "${ECHO_T}$ac_header_compiler" >&6; }
8987 # Is the header present?
8988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 #include <$ac_header>
8998 if { (ac_try="$ac_cpp conftest.$ac_ext"
9000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9001 *) ac_try_echo
=$ac_try;;
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9006 grep -v '^ *+' conftest.er1
>conftest.err
9008 cat conftest.err
>&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } >/dev
/null
&& {
9011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9014 ac_header_preproc
=yes
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.
$ac_ext >&5
9019 ac_header_preproc
=no
9022 rm -f conftest.err conftest.
$ac_ext
9023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9024 echo "${ECHO_T}$ac_header_preproc" >&6; }
9026 # So? What about this header?
9027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9033 ac_header_preproc
=yes
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9053 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 eval "$as_ac_Header=\$ac_header_preproc"
9058 ac_res
=`eval echo '${'$as_ac_Header'}'`
9059 { echo "$as_me:$LINENO: result: $ac_res" >&5
9060 echo "${ECHO_T}$ac_res" >&6; }
9063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064 cat >>confdefs.h
<<_ACEOF
9065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9073 # Check whether --enable-largefile was given.
9074 if test "${enable_largefile+set}" = set; then
9075 enableval
=$enable_largefile;
9078 if test "$enable_largefile" != no
; then
9080 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9081 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9082 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 ac_cv_sys_largefile_CC
=no
9086 if test "$GCC" != yes; then
9089 # IRIX 6.2 and later do not support large files by default,
9090 # so use the C compiler's -n32 option if that helps.
9091 cat >conftest.
$ac_ext <<_ACEOF
9094 cat confdefs.h
>>conftest.
$ac_ext
9095 cat >>conftest.
$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <sys/types.h>
9098 /* Check that off_t can represent 2**63 - 1 correctly.
9099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9100 since some C++ compilers masquerading as C compilers
9101 incorrectly reject 9223372036854775807. */
9102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9104 && LARGE_OFF_T % 2147483647 == 1)
9114 rm -f conftest.
$ac_objext
9115 if { (ac_try
="$ac_compile"
9117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_compile") 2>conftest.er1
9123 grep -v '^ *+' conftest.er1 >conftest.err
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest.$ac_objext; then
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9139 rm -f core conftest.err conftest.$ac_objext
9141 rm -f conftest.$ac_objext
9142 if { (ac_try="$ac_compile"
9144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9145 *) ac_try_echo
=$ac_try;;
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_compile") 2>conftest.er1
9150 grep -v '^ *+' conftest.er1
>conftest.err
9152 cat conftest.err
>&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } && {
9155 test -z "$ac_c_werror_flag" ||
9156 test ! -s conftest.err
9157 } && test -s conftest.
$ac_objext; then
9158 ac_cv_sys_largefile_CC
=' -n32'; break
9160 echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.
$ac_ext >&5
9166 rm -f core conftest.err conftest.
$ac_objext
9170 rm -f conftest.
$ac_ext
9173 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9174 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9175 if test "$ac_cv_sys_largefile_CC" != no
; then
9176 CC
=$CC$ac_cv_sys_largefile_CC
9179 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9180 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9181 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 cat >conftest.
$ac_ext <<_ACEOF
9188 cat confdefs.h
>>conftest.
$ac_ext
9189 cat >>conftest.
$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <sys/types.h>
9192 /* Check that off_t can represent 2**63 - 1 correctly.
9193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9194 since some C++ compilers masquerading as C compilers
9195 incorrectly reject 9223372036854775807. */
9196 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9198 && LARGE_OFF_T % 2147483647 == 1)
9208 rm -f conftest.
$ac_objext
9209 if { (ac_try
="$ac_compile"
9211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_compile") 2>conftest.er1
9217 grep -v '^ *+' conftest.er1 >conftest.err
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest.$ac_objext; then
9225 ac_cv_sys_file_offset_bits=no; break
9227 echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.$ac_ext >&5
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234 cat >conftest.$ac_ext <<_ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 #define _FILE_OFFSET_BITS 64
9241 #include <sys/types.h>
9242 /* Check that off_t can represent 2**63 - 1 correctly.
9243 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9244 since some C++ compilers masquerading as C compilers
9245 incorrectly reject 9223372036854775807. */
9246 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9247 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9248 && LARGE_OFF_T % 2147483647 == 1)
9258 rm -f conftest.$ac_objext
9259 if { (ac_try="$ac_compile"
9261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9262 *) ac_try_echo
=$ac_try;;
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9267 grep -v '^ *+' conftest.er1
>conftest.err
9269 cat conftest.err
>&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.
$ac_objext; then
9275 ac_cv_sys_file_offset_bits
=64; break
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.
$ac_ext >&5
9283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9284 ac_cv_sys_file_offset_bits
=unknown
9288 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9289 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9290 case $ac_cv_sys_file_offset_bits in #(
9293 cat >>confdefs.h
<<_ACEOF
9294 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9299 if test $ac_cv_sys_file_offset_bits = unknown
; then
9300 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9301 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9302 if test "${ac_cv_sys_large_files+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 cat >conftest.
$ac_ext <<_ACEOF
9309 cat confdefs.h
>>conftest.
$ac_ext
9310 cat >>conftest.
$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 #include <sys/types.h>
9313 /* Check that off_t can represent 2**63 - 1 correctly.
9314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9315 since some C++ compilers masquerading as C compilers
9316 incorrectly reject 9223372036854775807. */
9317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9319 && LARGE_OFF_T % 2147483647 == 1)
9329 rm -f conftest.
$ac_objext
9330 if { (ac_try
="$ac_compile"
9332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_compile") 2>conftest.er1
9338 grep -v '^ *+' conftest.er1 >conftest.err
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } && {
9343 test -z "$ac_c_werror_flag" ||
9344 test ! -s conftest.err
9345 } && test -s conftest.$ac_objext; then
9346 ac_cv_sys_large_files=no; break
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 cat >conftest.$ac_ext <<_ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 #define _LARGE_FILES 1
9362 #include <sys/types.h>
9363 /* Check that off_t can represent 2**63 - 1 correctly.
9364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9365 since some C++ compilers masquerading as C compilers
9366 incorrectly reject 9223372036854775807. */
9367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9369 && LARGE_OFF_T % 2147483647 == 1)
9379 rm -f conftest.$ac_objext
9380 if { (ac_try="$ac_compile"
9382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9383 *) ac_try_echo
=$ac_try;;
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_compile") 2>conftest.er1
9388 grep -v '^ *+' conftest.er1
>conftest.err
9390 cat conftest.err
>&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest.
$ac_objext; then
9396 ac_cv_sys_large_files
=1; break
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.
$ac_ext >&5
9404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9405 ac_cv_sys_large_files
=unknown
9409 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9410 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9411 case $ac_cv_sys_large_files in #(
9414 cat >>confdefs.h
<<_ACEOF
9415 #define _LARGE_FILES $ac_cv_sys_large_files
9424 # Checks for typedefs, structures, and compiler characteristics.
9425 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9426 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
9427 if test "${ac_cv_header_stdbool_h+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 cat >conftest.
$ac_ext <<_ACEOF
9433 cat confdefs.h
>>conftest.
$ac_ext
9434 cat >>conftest.
$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9437 #include <stdbool.h>
9439 "error: bool is not defined"
9442 "error: false is not defined"
9445 "error: false is not 0"
9448 "error: true is not defined"
9451 "error: true is not 1"
9453 #ifndef __bool_true_false_are_defined
9454 "error: __bool_true_false_are_defined is not defined"
9457 struct s { _Bool s: 1; _Bool t; } s;
9459 char a[true == 1 ? 1 : -1];
9460 char b[false == 0 ? 1 : -1];
9461 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9462 char d[(bool) 0.5 == true ? 1 : -1];
9464 char f[(_Bool) 0.0 == false ? 1 : -1];
9466 char h[sizeof (_Bool)];
9468 enum { j = false, k = true, l = false * true, m = true * 256 };
9470 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9471 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9472 # if defined __xlc__ || defined __GNUC__
9473 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9474 reported by James Lemley on 2005-10-05; see
9475 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9476 This test is not quite right, since xlc is allowed to
9477 reject this program, as the initializer for xlcbug is
9478 not one of the forms that C requires support for.
9479 However, doing the test right would require a runtime
9480 test, and that would make cross-compilation harder.
9481 Let us hope that IBM fixes the xlc bug, and also adds
9482 support for this kind of constant expression. In the
9483 meantime, this test will reject xlc, which is OK, since
9484 our stdbool.h substitute should suffice. We also test
9485 this with GCC, where it should work, to detect more
9486 quickly whether someone messes up the test in the
9488 char digs[] = "0123456789";
9489 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9491 /* Catch a bug in an HP-UX C compiler. See
9492 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9493 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9504 /* Refer to every declared value, to avoid compiler optimizations. */
9505 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9506 + !m + !n + !o + !p + !q + !pq);
9512 rm -f conftest.
$ac_objext
9513 if { (ac_try
="$ac_compile"
9515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_compile") 2>conftest.er1
9521 grep -v '^ *+' conftest.er1 >conftest.err
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } && {
9526 test -z "$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 } && test -s conftest.$ac_objext; then
9529 ac_cv_header_stdbool_h=yes
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_header_stdbool_h=no
9537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9539 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9540 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
9541 { echo "$as_me:$LINENO: checking for _Bool" >&5
9542 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
9543 if test "${ac_cv_type__Bool+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9553 typedef _Bool ac__type_new_;
9557 if ((ac__type_new_ *) 0)
9559 if (sizeof (ac__type_new_))
9565 rm -f conftest.$ac_objext
9566 if { (ac_try="$ac_compile"
9568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9569 *) ac_try_echo
=$ac_try;;
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_compile") 2>conftest.er1
9574 grep -v '^ *+' conftest.er1
>conftest.err
9576 cat conftest.err
>&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && {
9579 test -z "$ac_c_werror_flag" ||
9580 test ! -s conftest.err
9581 } && test -s conftest.
$ac_objext; then
9582 ac_cv_type__Bool
=yes
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.
$ac_ext >&5
9590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9592 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9593 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
9594 if test $ac_cv_type__Bool = yes; then
9596 cat >>confdefs.h
<<_ACEOF
9597 #define HAVE__BOOL 1
9603 if test $ac_cv_header_stdbool_h = yes; then
9605 cat >>confdefs.h
<<\_ACEOF
9606 #define HAVE_STDBOOL_H 1
9611 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9612 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9613 if test "${ac_cv_c_const+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 cat >conftest.
$ac_ext <<_ACEOF
9619 cat confdefs.h
>>conftest.
$ac_ext
9620 cat >>conftest.
$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9626 /* FIXME: Include the comments suggested by Paul. */
9628 /* Ultrix mips cc rejects this. */
9629 typedef int charset[2];
9631 /* SunOS 4.1.1 cc rejects this. */
9632 char const *const *pcpcc;
9634 /* NEC SVR4.0.2 mips cc rejects this. */
9635 struct point {int x, y;};
9636 static struct point const zero = {0,0};
9637 /* AIX XL C 1.02.0.0 rejects this.
9638 It does not let you subtract one const X* pointer from another in
9639 an arm of an if-expression whose if-part is not a constant
9641 const char *g = "string";
9642 pcpcc = &g + (g ? g-g : 0);
9643 /* HPUX 7.0 cc rejects these. */
9645 ppc = (char**) pcpcc;
9646 pcpcc = (char const *const *) ppc;
9647 { /* SCO 3.2v4 cc rejects this. */
9649 char const *s = 0 ? (char *) 0 : (char const *) 0;
9654 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9656 const int *foo = &x[0];
9659 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9660 typedef const int *iptr;
9664 { /* AIX XL C 1.02.0.0 rejects this saying
9665 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9666 struct s { int j; const int *ap[3]; };
9667 struct s *b; b->j = 5;
9669 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9673 return !cs[0] && !zero.x;
9680 rm -f conftest.
$ac_objext
9681 if { (ac_try
="$ac_compile"
9683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_compile") 2>conftest.er1
9689 grep -v '^ *+' conftest.er1 >conftest.err
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && {
9694 test -z "$ac_c_werror_flag" ||
9695 test ! -s conftest.err
9696 } && test -s conftest.$ac_objext; then
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9708 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9709 if test $ac_cv_c_const = no; then
9711 cat >>confdefs.h <<\_ACEOF
9717 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9718 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
9719 if test "${ac_cv_type_uid_t+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 #include <sys/types.h>
9731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9732 $EGREP "uid_t" >/dev/null 2>&1; then
9733 ac_cv_type_uid_t=yes
9740 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9741 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
9742 if test $ac_cv_type_uid_t = no; then
9744 cat >>confdefs.h <<\_ACEOF
9749 cat >>confdefs.h <<\_ACEOF
9755 { echo "$as_me:$LINENO: checking for inline" >&5
9756 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
9757 if test "${ac_cv_c_inline+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 for ac_kw in inline __inline__ __inline; do
9762 cat >conftest.$ac_ext <<_ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9770 static $ac_kw foo_t static_foo () {return 0; }
9771 $ac_kw foo_t foo () {return 0; }
9775 rm -f conftest.$ac_objext
9776 if { (ac_try="$ac_compile"
9778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9779 *) ac_try_echo
=$ac_try;;
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_compile") 2>conftest.er1
9784 grep -v '^ *+' conftest.er1
>conftest.err
9786 cat conftest.err
>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest.
$ac_objext; then
9792 ac_cv_c_inline
=$ac_kw
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.
$ac_ext >&5
9800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9801 test "$ac_cv_c_inline" != no
&& break
9805 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9806 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9809 case $ac_cv_c_inline in
9812 case $ac_cv_c_inline in
9814 *) ac_val
=$ac_cv_c_inline;;
9816 cat >>confdefs.h
<<_ACEOF
9818 #define inline $ac_val
9824 { echo "$as_me:$LINENO: checking for mode_t" >&5
9825 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
9826 if test "${ac_cv_type_mode_t+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 cat >conftest.
$ac_ext <<_ACEOF
9832 cat confdefs.h
>>conftest.
$ac_ext
9833 cat >>conftest.
$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 $ac_includes_default
9836 typedef mode_t ac__type_new_;
9840 if ((ac__type_new_ *) 0)
9842 if (sizeof (ac__type_new_))
9848 rm -f conftest.
$ac_objext
9849 if { (ac_try
="$ac_compile"
9851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_compile") 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest.$ac_objext; then
9865 ac_cv_type_mode_t=yes
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_cv_type_mode_t=no
9873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
9876 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
9877 if test $ac_cv_type_mode_t = yes; then
9881 cat >>confdefs.h <<_ACEOF
9887 { echo "$as_me:$LINENO: checking for off_t" >&5
9888 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9889 if test "${ac_cv_type_off_t+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 $ac_includes_default
9899 typedef off_t ac__type_new_;
9903 if ((ac__type_new_ *) 0)
9905 if (sizeof (ac__type_new_))
9911 rm -f conftest.$ac_objext
9912 if { (ac_try="$ac_compile"
9914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9915 *) ac_try_echo
=$ac_try;;
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_compile") 2>conftest.er1
9920 grep -v '^ *+' conftest.er1
>conftest.err
9922 cat conftest.err
>&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } && {
9925 test -z "$ac_c_werror_flag" ||
9926 test ! -s conftest.err
9927 } && test -s conftest.
$ac_objext; then
9928 ac_cv_type_off_t
=yes
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.
$ac_ext >&5
9936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9938 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9939 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9940 if test $ac_cv_type_off_t = yes; then
9944 cat >>confdefs.h
<<_ACEOF
9945 #define off_t long int
9950 { echo "$as_me:$LINENO: checking for pid_t" >&5
9951 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9952 if test "${ac_cv_type_pid_t+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 cat >conftest.
$ac_ext <<_ACEOF
9958 cat confdefs.h
>>conftest.
$ac_ext
9959 cat >>conftest.
$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 $ac_includes_default
9962 typedef pid_t ac__type_new_;
9966 if ((ac__type_new_ *) 0)
9968 if (sizeof (ac__type_new_))
9974 rm -f conftest.
$ac_objext
9975 if { (ac_try
="$ac_compile"
9977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_compile") 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } && {
9988 test -z "$ac_c_werror_flag" ||
9989 test ! -s conftest.err
9990 } && test -s conftest.$ac_objext; then
9991 ac_cv_type_pid_t=yes
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10001 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10002 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10003 if test $ac_cv_type_pid_t = yes; then
10007 cat >>confdefs.h <<_ACEOF
10013 { echo "$as_me:$LINENO: checking for size_t" >&5
10014 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10015 if test "${ac_cv_type_size_t+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 $ac_includes_default
10025 typedef size_t ac__type_new_;
10029 if ((ac__type_new_ *) 0)
10031 if (sizeof (ac__type_new_))
10037 rm -f conftest.$ac_objext
10038 if { (ac_try="$ac_compile"
10039 case "(($ac_try" in
10040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10041 *) ac_try_echo
=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10046 grep -v '^ *+' conftest.er1
>conftest.err
10048 cat conftest.err
>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.
$ac_objext; then
10054 ac_cv_type_size_t
=yes
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.
$ac_ext >&5
10059 ac_cv_type_size_t
=no
10062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10064 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10065 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10066 if test $ac_cv_type_size_t = yes; then
10070 cat >>confdefs.h
<<_ACEOF
10071 #define size_t unsigned int
10076 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10077 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10078 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 cat >conftest.
$ac_ext <<_ACEOF
10084 cat confdefs.h
>>conftest.
$ac_ext
10085 cat >>conftest.
$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 $ac_includes_default
10091 static struct stat ac_aggr;
10092 if (ac_aggr.st_blksize)
10098 rm -f conftest.
$ac_objext
10099 if { (ac_try
="$ac_compile"
10100 case "(($ac_try" in
10101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_compile") 2>conftest.er1
10107 grep -v '^ *+' conftest.er1 >conftest.err
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && {
10112 test -z "$ac_c_werror_flag" ||
10113 test ! -s conftest.err
10114 } && test -s conftest.$ac_objext; then
10115 ac_cv_member_struct_stat_st_blksize=yes
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10130 static struct stat ac_aggr;
10131 if (sizeof ac_aggr.st_blksize)
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10141 *) ac_try_echo
=$ac_try;;
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_compile") 2>conftest.er1
10146 grep -v '^ *+' conftest.er1
>conftest.err
10148 cat conftest.err
>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && {
10151 test -z "$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10153 } && test -s conftest.
$ac_objext; then
10154 ac_cv_member_struct_stat_st_blksize
=yes
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.
$ac_ext >&5
10159 ac_cv_member_struct_stat_st_blksize
=no
10162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10167 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10168 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10169 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10171 cat >>confdefs.h
<<_ACEOF
10172 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10178 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10179 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10180 if test "${ac_cv_header_time+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 cat >conftest.
$ac_ext <<_ACEOF
10186 cat confdefs.h
>>conftest.
$ac_ext
10187 cat >>conftest.
$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 #include <sys/types.h>
10190 #include <sys/time.h>
10196 if ((struct tm *) 0)
10202 rm -f conftest.
$ac_objext
10203 if { (ac_try
="$ac_compile"
10204 case "(($ac_try" in
10205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_compile") 2>conftest.er1
10211 grep -v '^ *+' conftest.er1 >conftest.err
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest.$ac_objext; then
10219 ac_cv_header_time=yes
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_cv_header_time=no
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10230 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10231 if test $ac_cv_header_time = yes; then
10233 cat >>confdefs.h <<\_ACEOF
10234 #define TIME_WITH_SYS_TIME 1
10239 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10240 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10241 if test "${ac_cv_struct_tm+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 cat >conftest.$ac_ext <<_ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 #include <sys/types.h>
10257 int *p = &tm.tm_sec;
10263 rm -f conftest.$ac_objext
10264 if { (ac_try="$ac_compile"
10265 case "(($ac_try" in
10266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10267 *) ac_try_echo
=$ac_try;;
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_compile") 2>conftest.er1
10272 grep -v '^ *+' conftest.er1
>conftest.err
10274 cat conftest.err
>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest.
$ac_objext; then
10280 ac_cv_struct_tm
=time.h
10282 echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.
$ac_ext >&5
10285 ac_cv_struct_tm
=sys
/time.h
10288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10290 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10291 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10292 if test $ac_cv_struct_tm = sys
/time.h
; then
10294 cat >>confdefs.h
<<\_ACEOF
10295 #define TM_IN_SYS_TIME 1
10300 { echo "$as_me:$LINENO: checking for working volatile" >&5
10301 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10302 if test "${ac_cv_c_volatile+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 cat >conftest.
$ac_ext <<_ACEOF
10308 cat confdefs.h
>>conftest.
$ac_ext
10309 cat >>conftest.
$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10317 int * volatile y = (int *) 0;
10323 rm -f conftest.
$ac_objext
10324 if { (ac_try
="$ac_compile"
10325 case "(($ac_try" in
10326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10332 grep -v '^ *+' conftest.er1 >conftest.err
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest.$ac_objext; then
10340 ac_cv_c_volatile=yes
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_cv_c_volatile=no
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10351 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10352 if test $ac_cv_c_volatile = no; then
10354 cat >>confdefs.h <<\_ACEOF
10360 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10361 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10362 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 cat >conftest.$ac_ext <<_ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 $ac_includes_default
10372 typedef ptrdiff_t ac__type_new_;
10376 if ((ac__type_new_ *) 0)
10378 if (sizeof (ac__type_new_))
10384 rm -f conftest.$ac_objext
10385 if { (ac_try="$ac_compile"
10386 case "(($ac_try" in
10387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10388 *) ac_try_echo
=$ac_try;;
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_compile") 2>conftest.er1
10393 grep -v '^ *+' conftest.er1
>conftest.err
10395 cat conftest.err
>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && {
10398 test -z "$ac_c_werror_flag" ||
10399 test ! -s conftest.err
10400 } && test -s conftest.
$ac_objext; then
10401 ac_cv_type_ptrdiff_t
=yes
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.
$ac_ext >&5
10406 ac_cv_type_ptrdiff_t
=no
10409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10411 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10412 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10413 if test $ac_cv_type_ptrdiff_t = yes; then
10415 cat >>confdefs.h
<<_ACEOF
10416 #define HAVE_PTRDIFF_T 1
10423 # Checks for library functions.
10425 for ac_header
in unistd.h
10427 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10428 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10431 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 ac_res
=`eval echo '${'$as_ac_Header'}'`
10435 { echo "$as_me:$LINENO: result: $ac_res" >&5
10436 echo "${ECHO_T}$ac_res" >&6; }
10438 # Is the header compilable?
10439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10441 cat >conftest.
$ac_ext <<_ACEOF
10444 cat confdefs.h
>>conftest.
$ac_ext
10445 cat >>conftest.
$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 $ac_includes_default
10448 #include <$ac_header>
10450 rm -f conftest.
$ac_objext
10451 if { (ac_try
="$ac_compile"
10452 case "(($ac_try" in
10453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_compile") 2>conftest.er1
10459 grep -v '^ *+' conftest.er1 >conftest.err
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && {
10464 test -z "$ac_c_werror_flag" ||
10465 test ! -s conftest.err
10466 } && test -s conftest.$ac_objext; then
10467 ac_header_compiler=yes
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10472 ac_header_compiler=no
10475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10477 echo "${ECHO_T}$ac_header_compiler" >&6; }
10479 # Is the header present?
10480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10482 cat >conftest.$ac_ext <<_ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 #include <$ac_header>
10490 if { (ac_try="$ac_cpp conftest.$ac_ext"
10491 case "(($ac_try" in
10492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10493 *) ac_try_echo
=$ac_try;;
10495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10498 grep -v '^ *+' conftest.er1
>conftest.err
10500 cat conftest.err
>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } >/dev
/null
&& {
10503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10504 test ! -s conftest.err
10506 ac_header_preproc
=yes
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.
$ac_ext >&5
10511 ac_header_preproc
=no
10514 rm -f conftest.err conftest.
$ac_ext
10515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10516 echo "${ECHO_T}$ac_header_preproc" >&6; }
10518 # So? What about this header?
10519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10525 ac_header_preproc
=yes
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 eval "$as_ac_Header=\$ac_header_preproc"
10550 ac_res
=`eval echo '${'$as_ac_Header'}'`
10551 { echo "$as_me:$LINENO: result: $ac_res" >&5
10552 echo "${ECHO_T}$ac_res" >&6; }
10555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10556 cat >>confdefs.h
<<_ACEOF
10557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10564 { echo "$as_me:$LINENO: checking for working chown" >&5
10565 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10566 if test "${ac_cv_func_chown_works+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 if test "$cross_compiling" = yes; then
10570 ac_cv_func_chown_works
=no
10572 cat >conftest.
$ac_ext <<_ACEOF
10575 cat confdefs.h
>>conftest.
$ac_ext
10576 cat >>conftest.
$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 $ac_includes_default
10584 char *f = "conftest.chown";
10585 struct stat before, after;
10587 if (creat (f, 0600) < 0)
10589 if (stat (f, &before) < 0)
10591 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10593 if (stat (f, &after) < 0)
10595 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10601 rm -f conftest
$ac_exeext
10602 if { (ac_try
="$ac_link"
10603 case "(($ac_try" in
10604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10612 { (case "(($ac_try" in
10613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10614 *) ac_try_echo
=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_func_chown_works
=yes
10623 echo "$as_me: program exited with status $ac_status" >&5
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.
$ac_ext >&5
10627 ( exit $ac_status )
10628 ac_cv_func_chown_works
=no
10630 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10634 rm -f conftest.chown
10637 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10638 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10639 if test $ac_cv_func_chown_works = yes; then
10641 cat >>confdefs.h
<<\_ACEOF
10642 #define HAVE_CHOWN 1
10647 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10648 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
10649 if test "${ac_cv_func_closedir_void+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 if test "$cross_compiling" = yes; then
10653 ac_cv_func_closedir_void
=yes
10655 cat >conftest.
$ac_ext <<_ACEOF
10658 cat confdefs.h
>>conftest.
$ac_ext
10659 cat >>conftest.
$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10661 $ac_includes_default
10662 #include <$ac_header_dirent>
10663 #ifndef __cplusplus
10670 return closedir (opendir (".")) != 0;
10675 rm -f conftest
$ac_exeext
10676 if { (ac_try
="$ac_link"
10677 case "(($ac_try" in
10678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_link") 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10686 { (case "(($ac_try" in
10687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10688 *) ac_try_echo
=$ac_try;;
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_try") 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; }; then
10695 ac_cv_func_closedir_void
=no
10697 echo "$as_me: program exited with status $ac_status" >&5
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.
$ac_ext >&5
10701 ( exit $ac_status )
10702 ac_cv_func_closedir_void
=yes
10704 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10709 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10710 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
10711 if test $ac_cv_func_closedir_void = yes; then
10713 cat >>confdefs.h
<<\_ACEOF
10714 #define CLOSEDIR_VOID 1
10719 { echo "$as_me:$LINENO: checking for error_at_line" >&5
10720 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
10721 if test "${ac_cv_lib_error_at_line+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 cat >conftest.
$ac_ext <<_ACEOF
10727 cat confdefs.h
>>conftest.
$ac_ext
10728 cat >>conftest.
$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10734 error_at_line (0, 0, "", 0, "an error occurred");
10739 rm -f conftest.
$ac_objext conftest
$ac_exeext
10740 if { (ac_try
="$ac_link"
10741 case "(($ac_try" in
10742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_link") 2>conftest.er1
10748 grep -v '^ *+' conftest.er1 >conftest.err
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } && {
10753 test -z "$ac_c_werror_flag" ||
10754 test ! -s conftest.err
10755 } && test -s conftest$ac_exeext &&
10756 $as_test_x conftest$ac_exeext; then
10757 ac_cv_lib_error_at_line=yes
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10762 ac_cv_lib_error_at_line=no
10765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10766 conftest$ac_exeext conftest.$ac_ext
10768 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10769 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10770 if test $ac_cv_lib_error_at_line = no; then
10771 case " $LIBOBJS " in
10772 *" error.$ac_objext "* ) ;;
10773 *) LIBOBJS="$LIBOBJS error.$ac_objext"
10780 for ac_header in vfork.h
10782 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 ac_res=`eval echo '${'$as_ac_Header'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10793 # Is the header compilable?
10794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10796 cat >conftest.$ac_ext <<_ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 $ac_includes_default
10803 #include <$ac_header>
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10809 *) ac_try_echo
=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10814 grep -v '^ *+' conftest.er1
>conftest.err
10816 cat conftest.err
>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest.
$ac_objext; then
10822 ac_header_compiler
=yes
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.
$ac_ext >&5
10827 ac_header_compiler
=no
10830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10832 echo "${ECHO_T}$ac_header_compiler" >&6; }
10834 # Is the header present?
10835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10837 cat >conftest.
$ac_ext <<_ACEOF
10840 cat confdefs.h
>>conftest.
$ac_ext
10841 cat >>conftest.
$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include <$ac_header>
10845 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10846 case "(($ac_try" in
10847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10853 grep -v '^ *+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } >/dev/null && {
10858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10861 ac_header_preproc=yes
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_header_preproc=no
10869 rm -f conftest.err conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10871 echo "${ECHO_T}$ac_header_preproc" >&6; }
10873 # So? What about this header?
10874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10880 ac_header_preproc=yes
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 eval "$as_ac_Header=\$ac_header_preproc"
10905 ac_res=`eval echo '${'$as_ac_Header'}'`
10906 { echo "$as_me:$LINENO: result: $ac_res" >&5
10907 echo "${ECHO_T}$ac_res" >&6; }
10910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10911 cat >>confdefs.h <<_ACEOF
10912 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10921 for ac_func in fork vfork
10923 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 cat >conftest.$ac_ext <<_ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10937 #define $ac_func innocuous_$ac_func
10939 /* System header to define __stub macros and hopefully few prototypes,
10940 which can conflict with char $ac_func (); below.
10941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942 <limits.h> exists even on freestanding compilers. */
10945 # include <limits.h>
10947 # include <assert.h>
10952 /* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10959 /* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962 #if defined __stub_$ac_func || defined __stub___$ac_func
10969 return $ac_func ();
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10978 *) ac_try_echo
=$ac_try;;
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10983 grep -v '^ *+' conftest.er1
>conftest.err
10985 cat conftest.err
>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } && {
10988 test -z "$ac_c_werror_flag" ||
10989 test ! -s conftest.err
10990 } && test -s conftest
$ac_exeext &&
10991 $as_test_x conftest
$ac_exeext; then
10992 eval "$as_ac_var=yes"
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.
$ac_ext >&5
10997 eval "$as_ac_var=no"
11000 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11001 conftest
$ac_exeext conftest.
$ac_ext
11003 ac_res
=`eval echo '${'$as_ac_var'}'`
11004 { echo "$as_me:$LINENO: result: $ac_res" >&5
11005 echo "${ECHO_T}$ac_res" >&6; }
11006 if test `eval echo '${'$as_ac_var'}'` = yes; then
11007 cat >>confdefs.h
<<_ACEOF
11008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11014 if test "x$ac_cv_func_fork" = xyes
; then
11015 { echo "$as_me:$LINENO: checking for working fork" >&5
11016 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11017 if test "${ac_cv_func_fork_works+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 if test "$cross_compiling" = yes; then
11021 ac_cv_func_fork_works
=cross
11023 cat >conftest.
$ac_ext <<_ACEOF
11026 cat confdefs.h
>>conftest.
$ac_ext
11027 cat >>conftest.
$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 $ac_includes_default
11034 /* By Ruediger Kuhlmann. */
11035 return fork () < 0;
11041 rm -f conftest
$ac_exeext
11042 if { (ac_try
="$ac_link"
11043 case "(($ac_try" in
11044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_link") 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11052 { (case "(($ac_try" in
11053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11054 *) ac_try_echo
=$ac_try;;
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_try") 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 ac_cv_func_fork_works
=yes
11063 echo "$as_me: program exited with status $ac_status" >&5
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.
$ac_ext >&5
11067 ( exit $ac_status )
11068 ac_cv_func_fork_works
=no
11070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11075 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11076 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11079 ac_cv_func_fork_works
=$ac_cv_func_fork
11081 if test "x$ac_cv_func_fork_works" = xcross
; then
11083 *-*-amigaos* |
*-*-msdosdjgpp* |
*-*-uclinux* )
11084 # Override, as these systems have only a dummy fork() stub
11085 ac_cv_func_fork_works
=no
11088 ac_cv_func_fork_works
=yes
11091 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11092 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11094 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11095 if test "x$ac_cv_func_vfork" = xyes
; then
11096 { echo "$as_me:$LINENO: checking for working vfork" >&5
11097 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11098 if test "${ac_cv_func_vfork_works+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 if test "$cross_compiling" = yes; then
11102 ac_cv_func_vfork_works
=cross
11104 cat >conftest.
$ac_ext <<_ACEOF
11107 cat confdefs.h
>>conftest.
$ac_ext
11108 cat >>conftest.
$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 /* Thanks to Paul Eggert for this test. */
11111 $ac_includes_default
11112 #include <sys/wait.h>
11113 #ifdef HAVE_VFORK_H
11114 # include <vfork.h>
11116 /* On some sparc systems, changes by the child to local and incoming
11117 argument registers are propagated back to the parent. The compiler
11118 is told about this with #include <vfork.h>, but some compilers
11119 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11120 static variable whose address is put into a register that is
11121 clobbered by the vfork. */
11124 sparc_address_test (int arg)
11126 sparc_address_test (arg) int arg;
11129 static pid_t child;
11147 pid_t parent = getpid ();
11150 sparc_address_test (0);
11155 /* Here is another test for sparc vfork register problems. This
11156 test uses lots of local variables, at least as many local
11157 variables as main has allocated so far including compiler
11158 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11159 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11160 reuse the register of parent for one of the local variables,
11161 since it will think that parent can't possibly be used any more
11162 in this routine. Assigning to the local variable will thus
11163 munge parent in the parent process. */
11165 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11166 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11167 /* Convince the compiler that p..p7 are live; otherwise, it might
11168 use the same hardware register for all 8 local variables. */
11169 if (p != p1 || p != p2 || p != p3 || p != p4
11170 || p != p5 || p != p6 || p != p7)
11173 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11174 from child file descriptors. If the child closes a descriptor
11175 before it execs or exits, this munges the parent's descriptor
11176 as well. Test for this by closing stdout in the child. */
11177 _exit(close(fileno(stdout)) != 0);
11182 while (wait(&status) != child)
11185 /* Was there some problem with vforking? */
11188 /* Did the child fail? (This shouldn't happen.) */
11191 /* Did the vfork/compiler bug occur? */
11192 || parent != getpid()
11194 /* Did the file descriptor bug occur? */
11195 || fstat(fileno(stdout), &st) != 0
11200 rm -f conftest
$ac_exeext
11201 if { (ac_try
="$ac_link"
11202 case "(($ac_try" in
11203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_link") 2>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11213 *) ac_try_echo
=$ac_try;;
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; }; then
11220 ac_cv_func_vfork_works
=yes
11222 echo "$as_me: program exited with status $ac_status" >&5
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.
$ac_ext >&5
11226 ( exit $ac_status )
11227 ac_cv_func_vfork_works
=no
11229 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11235 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11238 if test "x$ac_cv_func_fork_works" = xcross
; then
11239 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11240 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11241 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11244 if test "x$ac_cv_func_vfork_works" = xyes
; then
11246 cat >>confdefs.h
<<\_ACEOF
11247 #define HAVE_WORKING_VFORK 1
11252 cat >>confdefs.h
<<\_ACEOF
11257 if test "x$ac_cv_func_fork_works" = xyes
; then
11259 cat >>confdefs.h
<<\_ACEOF
11260 #define HAVE_WORKING_FORK 1
11265 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11266 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
11267 if test "${ac_cv_sys_largefile_source+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 cat >conftest.
$ac_ext <<_ACEOF
11274 cat confdefs.h
>>conftest.
$ac_ext
11275 cat >>conftest.
$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 #include <sys/types.h> /* for off_t */
11282 int (*fp) (FILE *, off_t, int) = fseeko;
11283 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11288 rm -f conftest.
$ac_objext conftest
$ac_exeext
11289 if { (ac_try
="$ac_link"
11290 case "(($ac_try" in
11291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_link") 2>conftest.er1
11297 grep -v '^ *+' conftest.er1 >conftest.err
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } && {
11302 test -z "$ac_c_werror_flag" ||
11303 test ! -s conftest.err
11304 } && test -s conftest$ac_exeext &&
11305 $as_test_x conftest$ac_exeext; then
11306 ac_cv_sys_largefile_source=no; break
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11315 conftest$ac_exeext conftest.$ac_ext
11316 cat >conftest.$ac_ext <<_ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 #define _LARGEFILE_SOURCE 1
11323 #include <sys/types.h> /* for off_t */
11328 int (*fp) (FILE *, off_t, int) = fseeko;
11329 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (ac_try="$ac_link"
11336 case "(($ac_try" in
11337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11338 *) ac_try_echo
=$ac_try;;
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_link") 2>conftest.er1
11343 grep -v '^ *+' conftest.er1
>conftest.err
11345 cat conftest.err
>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest
$ac_exeext &&
11351 $as_test_x conftest
$ac_exeext; then
11352 ac_cv_sys_largefile_source
=1; break
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.
$ac_ext >&5
11360 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11361 conftest
$ac_exeext conftest.
$ac_ext
11362 ac_cv_sys_largefile_source
=unknown
11366 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11367 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
11368 case $ac_cv_sys_largefile_source in #(
11371 cat >>confdefs.h
<<_ACEOF
11372 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11378 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11379 # in glibc 2.1.3, but that breaks too many other things.
11380 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11381 if test $ac_cv_sys_largefile_source != unknown
; then
11383 cat >>confdefs.h
<<\_ACEOF
11384 #define HAVE_FSEEKO 1
11389 if test $ac_cv_c_compiler_gnu = yes; then
11390 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11391 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11392 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 ac_pattern
="Autoconf.*'x'"
11396 cat >conftest.
$ac_ext <<_ACEOF
11399 cat confdefs.h
>>conftest.
$ac_ext
11400 cat >>conftest.
$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11406 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11407 ac_cv_prog_gcc_traditional
=yes
11409 ac_cv_prog_gcc_traditional
=no
11414 if test $ac_cv_prog_gcc_traditional = no
; then
11415 cat >conftest.
$ac_ext <<_ACEOF
11418 cat confdefs.h
>>conftest.
$ac_ext
11419 cat >>conftest.
$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 #include <termio.h>
11424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11425 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11426 ac_cv_prog_gcc_traditional
=yes
11432 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11433 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11434 if test $ac_cv_prog_gcc_traditional = yes; then
11435 CC
="$CC -traditional"
11439 # XXX: these are commented out until we determine whether it matters if our malloc()
11440 # acts exactly like glibc's or not
11443 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11444 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11445 if test "${ac_cv_func_memcmp_working+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 if test "$cross_compiling" = yes; then
11449 ac_cv_func_memcmp_working
=no
11451 cat >conftest.
$ac_ext <<_ACEOF
11454 cat confdefs.h
>>conftest.
$ac_ext
11455 cat >>conftest.
$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 $ac_includes_default
11462 /* Some versions of memcmp are not 8-bit clean. */
11463 char c0 = '\100', c1 = '\200', c2 = '\201';
11464 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11467 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11468 or more and with at least one buffer not starting on a 4-byte boundary.
11469 William Lewis provided this test program. */
11474 for (i = 0; i < 4; i++)
11478 strcpy (a, "--------01111111");
11479 strcpy (b, "--------10000000");
11480 if (memcmp (a, b, 16) >= 0)
11490 rm -f conftest
$ac_exeext
11491 if { (ac_try
="$ac_link"
11492 case "(($ac_try" in
11493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_link") 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11503 *) ac_try_echo
=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_func_memcmp_working
=yes
11512 echo "$as_me: program exited with status $ac_status" >&5
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.
$ac_ext >&5
11516 ( exit $ac_status )
11517 ac_cv_func_memcmp_working
=no
11519 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11524 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11525 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11526 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
11527 *" memcmp.$ac_objext "* ) ;;
11528 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
11537 for ac_header
in $ac_header_list
11539 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11540 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11543 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 ac_res
=`eval echo '${'$as_ac_Header'}'`
11547 { echo "$as_me:$LINENO: result: $ac_res" >&5
11548 echo "${ECHO_T}$ac_res" >&6; }
11550 # Is the header compilable?
11551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11553 cat >conftest.
$ac_ext <<_ACEOF
11556 cat confdefs.h
>>conftest.
$ac_ext
11557 cat >>conftest.
$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 $ac_includes_default
11560 #include <$ac_header>
11562 rm -f conftest.
$ac_objext
11563 if { (ac_try
="$ac_compile"
11564 case "(($ac_try" in
11565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_compile") 2>conftest.er1
11571 grep -v '^ *+' conftest.er1 >conftest.err
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } && {
11576 test -z "$ac_c_werror_flag" ||
11577 test ! -s conftest.err
11578 } && test -s conftest.$ac_objext; then
11579 ac_header_compiler=yes
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 ac_header_compiler=no
11587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11589 echo "${ECHO_T}$ac_header_compiler" >&6; }
11591 # Is the header present?
11592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11594 cat >conftest.$ac_ext <<_ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 #include <$ac_header>
11602 if { (ac_try="$ac_cpp conftest.$ac_ext"
11603 case "(($ac_try" in
11604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11605 *) ac_try_echo
=$ac_try;;
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11610 grep -v '^ *+' conftest.er1
>conftest.err
11612 cat conftest.err
>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } >/dev
/null
&& {
11615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11616 test ! -s conftest.err
11618 ac_header_preproc
=yes
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.
$ac_ext >&5
11623 ac_header_preproc
=no
11626 rm -f conftest.err conftest.
$ac_ext
11627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11628 echo "${ECHO_T}$ac_header_preproc" >&6; }
11630 # So? What about this header?
11631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11637 ac_header_preproc
=yes
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 eval "$as_ac_Header=\$ac_header_preproc"
11662 ac_res
=`eval echo '${'$as_ac_Header'}'`
11663 { echo "$as_me:$LINENO: result: $ac_res" >&5
11664 echo "${ECHO_T}$ac_res" >&6; }
11667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11668 cat >>confdefs.h
<<_ACEOF
11669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11684 for ac_func
in $ac_func_list
11686 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11689 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 cat >conftest.
$ac_ext <<_ACEOF
11695 cat confdefs.h
>>conftest.
$ac_ext
11696 cat >>conftest.
$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11700 #define $ac_func innocuous_$ac_func
11702 /* System header to define __stub macros and hopefully few prototypes,
11703 which can conflict with char $ac_func (); below.
11704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705 <limits.h> exists even on freestanding compilers. */
11708 # include <limits.h>
11710 # include <assert.h>
11715 /* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
11722 /* The GNU C library defines this for functions which it implements
11723 to always fail with ENOSYS. Some functions are actually named
11724 something starting with __ and the normal name is an alias. */
11725 #if defined __stub_$ac_func || defined __stub___$ac_func
11732 return $ac_func ();
11737 rm -f conftest.
$ac_objext conftest
$ac_exeext
11738 if { (ac_try
="$ac_link"
11739 case "(($ac_try" in
11740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_link") 2>conftest.er1
11746 grep -v '^ *+' conftest.er1 >conftest.err
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } && {
11751 test -z "$ac_c_werror_flag" ||
11752 test ! -s conftest.err
11753 } && test -s conftest$ac_exeext &&
11754 $as_test_x conftest$ac_exeext; then
11755 eval "$as_ac_var=yes"
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11760 eval "$as_ac_var=no"
11763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11764 conftest$ac_exeext conftest.$ac_ext
11766 ac_res=`eval echo '${'$as_ac_var'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768 echo "${ECHO_T}$ac_res" >&6; }
11769 if test `eval echo '${'$as_ac_var'}'` = yes; then
11770 cat >>confdefs.h <<_ACEOF
11771 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11793 { echo "$as_me:$LINENO: checking for working mktime" >&5
11794 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
11795 if test "${ac_cv_func_working_mktime+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 if test "$cross_compiling" = yes; then
11799 ac_cv_func_working_mktime=no
11801 cat >conftest.$ac_ext <<_ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 /* Test program from Paul Eggert and Tony Leneis. */
11808 #ifdef TIME_WITH_SYS_TIME
11809 # include <sys/time.h>
11812 # ifdef HAVE_SYS_TIME_H
11813 # include <sys/time.h>
11819 #include <stdlib.h>
11821 #ifdef HAVE_UNISTD_H
11822 # include <unistd.h>
11826 # define alarm(X) /* empty */
11829 /* Work around redefinition to rpl_putenv by other config tests. */
11832 static time_t time_t_max;
11833 static time_t time_t_min;
11835 /* Values we'll use to set the TZ environment variable. */
11836 static char *tz_strings[] = {
11837 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11838 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11840 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11842 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11843 Based on a problem report from Andreas Jaeger. */
11845 spring_forward_gap ()
11847 /* glibc (up to about 1998-10-07) failed this test. */
11850 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11851 instead of "TZ=America/Vancouver" in order to detect the bug even
11852 on systems that don't support the Olson extension, or don't have the
11853 full zoneinfo tables installed. */
11854 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11863 return mktime (&tm) != (time_t) -1;
11871 return ! (lt = localtime (&now)) || mktime (lt) == now;
11878 return (mktime_test1 (now)
11879 && mktime_test1 ((time_t) (time_t_max - now))
11880 && mktime_test1 ((time_t) (time_t_min + now)));
11886 /* Based on code from Ariel Faigon. */
11896 return tm.tm_mon == 2 && tm.tm_mday == 31;
11905 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11906 now = mktime (&tm);
11907 if (now != (time_t) -1)
11909 struct tm *lt = localtime (&now);
11911 && lt->tm_year == tm.tm_year
11912 && lt->tm_mon == tm.tm_mon
11913 && lt->tm_mday == tm.tm_mday
11914 && lt->tm_hour == tm.tm_hour
11915 && lt->tm_min == tm.tm_min
11916 && lt->tm_sec == tm.tm_sec
11917 && lt->tm_yday == tm.tm_yday
11918 && lt->tm_wday == tm.tm_wday
11919 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11920 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11929 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11930 ignoring leap seconds. */
11931 unsigned long int answer = 2527315200UL;
11935 tm.tm_year = 2050 - 1900;
11938 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11941 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11942 instead of "TZ=America/Vancouver" in order to detect the bug even
11943 on systems that don't support the Olson extension, or don't have the
11944 full zoneinfo tables installed. */
11945 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11949 /* Check that the result is either a failure, or close enough
11950 to the correct answer that we can assume the discrepancy is
11951 due to leap seconds. */
11952 return (t == (time_t) -1
11953 || (0 < t && answer - 120 <= t && t <= answer + 120));
11962 /* This test makes some buggy mktime implementations loop.
11963 Give up after 60 seconds; a mktime slower than that
11964 isn't worth using anyway. */
11967 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11970 if ((time_t) -1 < 0)
11971 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11973 delta = time_t_max / 997; /* a suitable prime number */
11974 for (i = 0; i < N_STRINGS; i++)
11977 putenv (tz_strings[i]);
11979 for (t = 0; t <= time_t_max - delta; t += delta)
11980 if (! mktime_test (t))
11982 if (! (mktime_test ((time_t) 1)
11983 && mktime_test ((time_t) (60 * 60))
11984 && mktime_test ((time_t) (60 * 60 * 24))))
11987 for (j = 1; 0 < j; j *= 2)
11988 if (! bigtime_test (j))
11990 if (! bigtime_test (j - 1))
11993 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11996 rm -f conftest$ac_exeext
11997 if { (ac_try="$ac_link"
11998 case "(($ac_try" in
11999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12000 *) ac_try_echo
=$ac_try;;
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_link") 2>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12007 { (case "(($ac_try" in
12008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_cv_func_working_mktime=yes
12018 echo "$as_me: program exited with status $ac_status" >&5
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12022 ( exit $ac_status )
12023 ac_cv_func_working_mktime=no
12025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12030 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12031 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12032 if test $ac_cv_func_working_mktime = no; then
12033 case " $LIBOBJS " in
12034 *" mktime.$ac_objext "* ) ;;
12035 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12043 for ac_header in stdlib.h unistd.h
12045 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 ac_res=`eval echo '${'$as_ac_Header'}'`
12053 { echo "$as_me:$LINENO: result: $ac_res" >&5
12054 echo "${ECHO_T}$ac_res" >&6; }
12056 # Is the header compilable?
12057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12059 cat >conftest.$ac_ext <<_ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 $ac_includes_default
12066 #include <$ac_header>
12068 rm -f conftest.$ac_objext
12069 if { (ac_try="$ac_compile"
12070 case "(($ac_try" in
12071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12072 *) ac_try_echo
=$ac_try;;
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_compile") 2>conftest.er1
12077 grep -v '^ *+' conftest.er1
>conftest.err
12079 cat conftest.err
>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } && {
12082 test -z "$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 } && test -s conftest.
$ac_objext; then
12085 ac_header_compiler
=yes
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.
$ac_ext >&5
12090 ac_header_compiler
=no
12093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12095 echo "${ECHO_T}$ac_header_compiler" >&6; }
12097 # Is the header present?
12098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12100 cat >conftest.
$ac_ext <<_ACEOF
12103 cat confdefs.h
>>conftest.
$ac_ext
12104 cat >>conftest.
$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #include <$ac_header>
12108 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12109 case "(($ac_try" in
12110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12116 grep -v '^ *+' conftest.er1 >conftest.err
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } >/dev/null && {
12121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12122 test ! -s conftest.err
12124 ac_header_preproc=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 ac_header_preproc=no
12132 rm -f conftest.err conftest.$ac_ext
12133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12134 echo "${ECHO_T}$ac_header_preproc" >&6; }
12136 # So? What about this header?
12137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12143 ac_header_preproc=yes
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 eval "$as_ac_Header=\$ac_header_preproc"
12168 ac_res=`eval echo '${'$as_ac_Header'}'`
12169 { echo "$as_me:$LINENO: result: $ac_res" >&5
12170 echo "${ECHO_T}$ac_res" >&6; }
12173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12174 cat >>confdefs.h <<_ACEOF
12175 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12183 for ac_func in getpagesize
12185 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12199 #define $ac_func innocuous_$ac_func
12201 /* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char $ac_func (); below.
12203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12204 <limits.h> exists even on freestanding compilers. */
12207 # include <limits.h>
12209 # include <assert.h>
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12221 /* The GNU C library defines this for functions which it implements
12222 to always fail with ENOSYS. Some functions are actually named
12223 something starting with __ and the normal name is an alias. */
12224 #if defined __stub_$ac_func || defined __stub___$ac_func
12231 return $ac_func ();
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (ac_try="$ac_link"
12238 case "(($ac_try" in
12239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12240 *) ac_try_echo
=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_link") 2>conftest.er1
12245 grep -v '^ *+' conftest.er1
>conftest.err
12247 cat conftest.err
>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } && {
12250 test -z "$ac_c_werror_flag" ||
12251 test ! -s conftest.err
12252 } && test -s conftest
$ac_exeext &&
12253 $as_test_x conftest
$ac_exeext; then
12254 eval "$as_ac_var=yes"
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.
$ac_ext >&5
12259 eval "$as_ac_var=no"
12262 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12263 conftest
$ac_exeext conftest.
$ac_ext
12265 ac_res
=`eval echo '${'$as_ac_var'}'`
12266 { echo "$as_me:$LINENO: result: $ac_res" >&5
12267 echo "${ECHO_T}$ac_res" >&6; }
12268 if test `eval echo '${'$as_ac_var'}'` = yes; then
12269 cat >>confdefs.h
<<_ACEOF
12270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12276 { echo "$as_me:$LINENO: checking for working mmap" >&5
12277 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12278 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 if test "$cross_compiling" = yes; then
12282 ac_cv_func_mmap_fixed_mapped
=no
12284 cat >conftest.
$ac_ext <<_ACEOF
12287 cat confdefs.h
>>conftest.
$ac_ext
12288 cat >>conftest.
$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 $ac_includes_default
12291 /* malloc might have been renamed as rpl_malloc. */
12294 /* Thanks to Mike Haertel and Jim Avera for this test.
12295 Here is a matrix of mmap possibilities:
12296 mmap private not fixed
12297 mmap private fixed at somewhere currently unmapped
12298 mmap private fixed at somewhere already mapped
12299 mmap shared not fixed
12300 mmap shared fixed at somewhere currently unmapped
12301 mmap shared fixed at somewhere already mapped
12302 For private mappings, we should verify that changes cannot be read()
12303 back from the file, nor mmap's back from the file at a different
12304 address. (There have been systems where private was not correctly
12305 implemented like the infamous i386 svr4.0, and systems where the
12306 VM page cache was not coherent with the file system buffer cache
12307 like early versions of FreeBSD and possibly contemporary NetBSD.)
12308 For shared mappings, we should conversely verify that changes get
12309 propagated back to all the places they're supposed to be.
12311 Grep wants private fixed already mapped.
12312 The main things grep needs to know about mmap are:
12313 * does it exist and is it safe to write into the mmap'd area
12314 * how to use it (BSD variants) */
12317 #include <sys/mman.h>
12319 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12323 /* This mess was copied from the GNU getpagesize.h. */
12324 #ifndef HAVE_GETPAGESIZE
12325 /* Assume that all systems that can run configure have sys/param.h. */
12326 # ifndef HAVE_SYS_PARAM_H
12327 # define HAVE_SYS_PARAM_H 1
12330 # ifdef _SC_PAGESIZE
12331 # define getpagesize() sysconf(_SC_PAGESIZE)
12332 # else /* no _SC_PAGESIZE */
12333 # ifdef HAVE_SYS_PARAM_H
12334 # include <sys/param.h>
12335 # ifdef EXEC_PAGESIZE
12336 # define getpagesize() EXEC_PAGESIZE
12337 # else /* no EXEC_PAGESIZE */
12339 # define getpagesize() NBPG * CLSIZE
12342 # endif /* no CLSIZE */
12343 # else /* no NBPG */
12345 # define getpagesize() NBPC
12346 # else /* no NBPC */
12348 # define getpagesize() PAGESIZE
12349 # endif /* PAGESIZE */
12350 # endif /* no NBPC */
12351 # endif /* no NBPG */
12352 # endif /* no EXEC_PAGESIZE */
12353 # else /* no HAVE_SYS_PARAM_H */
12354 # define getpagesize() 8192 /* punt totally */
12355 # endif /* no HAVE_SYS_PARAM_H */
12356 # endif /* no _SC_PAGESIZE */
12358 #endif /* no HAVE_GETPAGESIZE */
12363 char *data, *data2, *data3;
12367 pagesize = getpagesize ();
12369 /* First, make a file with some known garbage in it. */
12370 data = (char *) malloc (pagesize);
12373 for (i = 0; i < pagesize; ++i)
12374 *(data + i) = rand ();
12376 fd = creat ("conftest.mmap", 0600);
12379 if (write (fd, data, pagesize) != pagesize)
12383 /* Next, try to mmap the file at a fixed address which already has
12384 something else allocated at it. If we can, also make sure that
12385 we see the same garbage. */
12386 fd = open ("conftest.mmap", O_RDWR);
12389 data2 = (char *) malloc (2 * pagesize);
12392 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12393 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12394 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12396 for (i = 0; i < pagesize; ++i)
12397 if (*(data + i) != *(data2 + i))
12400 /* Finally, make sure that changes to the mapped area do not
12401 percolate back to the file as seen by read(). (This is a bug on
12402 some variants of i386 svr4.0.) */
12403 for (i = 0; i < pagesize; ++i)
12404 *(data2 + i) = *(data2 + i) + 1;
12405 data3 = (char *) malloc (pagesize);
12408 if (read (fd, data3, pagesize) != pagesize)
12410 for (i = 0; i < pagesize; ++i)
12411 if (*(data + i) != *(data3 + i))
12417 rm -f conftest
$ac_exeext
12418 if { (ac_try
="$ac_link"
12419 case "(($ac_try" in
12420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_link") 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12430 *) ac_try_echo
=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_func_mmap_fixed_mapped
=yes
12439 echo "$as_me: program exited with status $ac_status" >&5
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.
$ac_ext >&5
12443 ( exit $ac_status )
12444 ac_cv_func_mmap_fixed_mapped
=no
12446 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12452 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12453 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12455 cat >>confdefs.h
<<\_ACEOF
12456 #define HAVE_MMAP 1
12460 rm -f conftest.mmap
12464 for ac_header
in sys
/select.h sys
/socket.h
12466 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12467 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12470 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 ac_res
=`eval echo '${'$as_ac_Header'}'`
12474 { echo "$as_me:$LINENO: result: $ac_res" >&5
12475 echo "${ECHO_T}$ac_res" >&6; }
12477 # Is the header compilable?
12478 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12480 cat >conftest.
$ac_ext <<_ACEOF
12483 cat confdefs.h
>>conftest.
$ac_ext
12484 cat >>conftest.
$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 $ac_includes_default
12487 #include <$ac_header>
12489 rm -f conftest.
$ac_objext
12490 if { (ac_try
="$ac_compile"
12491 case "(($ac_try" in
12492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_compile") 2>conftest.er1
12498 grep -v '^ *+' conftest.er1 >conftest.err
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } && {
12503 test -z "$ac_c_werror_flag" ||
12504 test ! -s conftest.err
12505 } && test -s conftest.$ac_objext; then
12506 ac_header_compiler=yes
12508 echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 ac_header_compiler=no
12514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12516 echo "${ECHO_T}$ac_header_compiler" >&6; }
12518 # Is the header present?
12519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12521 cat >conftest.$ac_ext <<_ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include <$ac_header>
12529 if { (ac_try="$ac_cpp conftest.$ac_ext"
12530 case "(($ac_try" in
12531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12532 *) ac_try_echo
=$ac_try;;
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12537 grep -v '^ *+' conftest.er1
>conftest.err
12539 cat conftest.err
>&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } >/dev
/null
&& {
12542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12543 test ! -s conftest.err
12545 ac_header_preproc
=yes
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.
$ac_ext >&5
12550 ac_header_preproc
=no
12553 rm -f conftest.err conftest.
$ac_ext
12554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12555 echo "${ECHO_T}$ac_header_preproc" >&6; }
12557 # So? What about this header?
12558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12564 ac_header_preproc
=yes
12567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12584 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 eval "$as_ac_Header=\$ac_header_preproc"
12589 ac_res
=`eval echo '${'$as_ac_Header'}'`
12590 { echo "$as_me:$LINENO: result: $ac_res" >&5
12591 echo "${ECHO_T}$ac_res" >&6; }
12594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12595 cat >>confdefs.h
<<_ACEOF
12596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12603 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12604 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12605 if test "${ac_cv_func_select_args+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
12609 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12610 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
12611 cat >conftest.
$ac_ext <<_ACEOF
12614 cat confdefs.h
>>conftest.
$ac_ext
12615 cat >>conftest.
$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 $ac_includes_default
12618 #ifdef HAVE_SYS_SELECT_H
12619 # include <sys/select.h>
12621 #ifdef HAVE_SYS_SOCKET_H
12622 # include <sys/socket.h>
12628 extern int select ($ac_arg1,
12629 $ac_arg234, $ac_arg234, $ac_arg234,
12635 rm -f conftest.
$ac_objext
12636 if { (ac_try
="$ac_compile"
12637 case "(($ac_try" in
12638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_compile") 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && {
12649 test -z "$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12651 } && test -s conftest.$ac_objext; then
12652 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 # Provide a safe default value.
12665 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12668 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12669 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12670 ac_save_IFS=$IFS; IFS=','
12671 set dummy `echo "$ac_cv_func_select_args" |
sed 's/\*/\*/g'`
12675 cat >>confdefs.h <<_ACEOF
12676 #define SELECT_TYPE_ARG1 $1
12680 cat >>confdefs.h <<_ACEOF
12681 #define SELECT_TYPE_ARG234 ($2)
12685 cat >>confdefs.h <<_ACEOF
12686 #define SELECT_TYPE_ARG5 ($3)
12691 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12692 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12693 if test "$ac_cv_prog_cc_c89" != no; then
12694 { echo "$as_me:$LINENO: result: yes" >&5
12695 echo "${ECHO_T}yes" >&6; }
12697 cat >>confdefs.h <<\_ACEOF
12698 #define PROTOTYPES 1
12702 cat >>confdefs.h <<\_ACEOF
12703 #define __PROTOTYPES 1
12707 { echo "$as_me:$LINENO: result: no" >&5
12708 echo "${ECHO_T}no" >&6; }
12711 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12712 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12713 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 ac_cv_func_setvbuf_reversed=no
12717 cat >conftest.$ac_ext <<_ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12725 int (setvbuf) (FILE *, int, char *, size_t);
12730 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (ac_try="$ac_link"
12737 case "(($ac_try" in
12738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12739 *) ac_try_echo
=$ac_try;;
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_link") 2>conftest.er1
12744 grep -v '^ *+' conftest.er1
>conftest.err
12746 cat conftest.err
>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_c_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest
$ac_exeext &&
12752 $as_test_x conftest
$ac_exeext; then
12753 cat >conftest.
$ac_ext <<_ACEOF
12756 cat confdefs.h
>>conftest.
$ac_ext
12757 cat >>conftest.
$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12761 int (setvbuf) (FILE *, int, char *, size_t);
12766 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12771 rm -f conftest.
$ac_objext conftest
$ac_exeext
12772 if { (ac_try
="$ac_link"
12773 case "(($ac_try" in
12774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_link") 2>conftest.er1
12780 grep -v '^ *+' conftest.er1 >conftest.err
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } && {
12785 test -z "$ac_c_werror_flag" ||
12786 test ! -s conftest.err
12787 } && test -s conftest$ac_exeext &&
12788 $as_test_x conftest$ac_exeext; then
12789 # It compiles and links either way, so it must not be declared
12790 # with a prototype and most likely this is a K&R C compiler.
12792 if test "$cross_compiling" = yes; then
12793 : # Assume setvbuf is not reversed when cross-compiling.
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 $ac_includes_default
12805 /* This call has the arguments reversed.
12806 A reversed system may check and see that the address of buf
12807 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12809 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12812 return 0; /* Non-reversed systems SEGV here. */
12817 rm -f conftest$ac_exeext
12818 if { (ac_try="$ac_link"
12819 case "(($ac_try" in
12820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12821 *) ac_try_echo
=$ac_try;;
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_link") 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12828 { (case "(($ac_try" in
12829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_cv_func_setvbuf_reversed=yes
12839 echo "$as_me: program exited with status $ac_status" >&5
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12848 ac_cv_func_setvbuf_reversed=yes
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12857 conftest$ac_exeext conftest.$ac_ext
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12866 conftest$ac_exeext conftest.$ac_ext
12868 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12869 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12870 if test $ac_cv_func_setvbuf_reversed = yes; then
12872 cat >>confdefs.h <<\_ACEOF
12873 #define SETVBUF_REVERSED 1
12878 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12879 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12880 if test "${ac_cv_type_signal+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 cat >conftest.$ac_ext <<_ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 #include <sys/types.h>
12890 #include <signal.h>
12895 return *(signal (0, 0)) (0) == 1;
12900 rm -f conftest.$ac_objext
12901 if { (ac_try="$ac_compile"
12902 case "(($ac_try" in
12903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12904 *) ac_try_echo
=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_compile") 2>conftest.er1
12909 grep -v '^ *+' conftest.er1
>conftest.err
12911 cat conftest.err
>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && {
12914 test -z "$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 } && test -s conftest.
$ac_objext; then
12917 ac_cv_type_signal
=int
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.
$ac_ext >&5
12922 ac_cv_type_signal
=void
12925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12927 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12928 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12930 cat >>confdefs.h
<<_ACEOF
12931 #define RETSIGTYPE $ac_cv_type_signal
12935 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12936 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12937 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 rm -f conftest.sym conftest.
file
12941 echo >conftest.
file
12942 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
12943 if test "$cross_compiling" = yes; then
12944 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12946 cat >conftest.
$ac_ext <<_ACEOF
12949 cat confdefs.h
>>conftest.
$ac_ext
12950 cat >>conftest.
$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 $ac_includes_default
12957 /* Linux will dereference the symlink and fail.
12958 That is better in the sense that it means we will not
12959 have to compile and use the lstat wrapper. */
12960 return lstat ("conftest.sym/", &sbuf) == 0;
12965 rm -f conftest
$ac_exeext
12966 if { (ac_try
="$ac_link"
12967 case "(($ac_try" in
12968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_link") 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12976 { (case "(($ac_try" in
12977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12978 *) ac_try_echo
=$ac_try;;
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_try") 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
12987 echo "$as_me: program exited with status $ac_status" >&5
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.
$ac_ext >&5
12991 ( exit $ac_status )
12992 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12999 # If the `ln -s' command failed, then we probably don't even
13000 # have an lstat function.
13001 ac_cv_func_lstat_dereferences_slashed_symlink
=no
13003 rm -f conftest.sym conftest.
file
13006 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13007 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13009 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13011 cat >>confdefs.h
<<_ACEOF
13012 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13016 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
13017 case " $LIBOBJS " in
13018 *" lstat.$ac_objext "* ) ;;
13019 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
13025 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13026 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13027 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 if test "$cross_compiling" = yes; then
13031 ac_cv_func_stat_empty_string_bug
=yes
13033 cat >conftest.
$ac_ext <<_ACEOF
13036 cat confdefs.h
>>conftest.
$ac_ext
13037 cat >>conftest.
$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13039 $ac_includes_default
13044 return stat ("", &sbuf) == 0;
13049 rm -f conftest
$ac_exeext
13050 if { (ac_try
="$ac_link"
13051 case "(($ac_try" in
13052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_link") 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13062 *) ac_try_echo
=$ac_try;;
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_cv_func_stat_empty_string_bug
=no
13071 echo "$as_me: program exited with status $ac_status" >&5
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.
$ac_ext >&5
13075 ( exit $ac_status )
13076 ac_cv_func_stat_empty_string_bug
=yes
13078 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13083 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13084 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13085 if test $ac_cv_func_stat_empty_string_bug = yes; then
13086 case " $LIBOBJS " in
13087 *" stat.$ac_objext "* ) ;;
13088 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
13093 cat >>confdefs.h
<<_ACEOF
13094 #define HAVE_STAT_EMPTY_STRING_BUG 1
13099 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13100 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13101 if test "${ac_cv_func_strcoll_works+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 if test "$cross_compiling" = yes; then
13105 ac_cv_func_strcoll_works
=no
13107 cat >conftest.
$ac_ext <<_ACEOF
13110 cat confdefs.h
>>conftest.
$ac_ext
13111 cat >>conftest.
$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13117 return (strcoll ("abc", "def") >= 0 ||
13118 strcoll ("ABC", "DEF") >= 0 ||
13119 strcoll ("123", "456") >= 0)
13124 rm -f conftest
$ac_exeext
13125 if { (ac_try
="$ac_link"
13126 case "(($ac_try" in
13127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_link") 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13135 { (case "(($ac_try" in
13136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13137 *) ac_try_echo
=$ac_try;;
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_try") 2>&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13144 ac_cv_func_strcoll_works
=yes
13146 echo "$as_me: program exited with status $ac_status" >&5
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.
$ac_ext >&5
13150 ( exit $ac_status )
13151 ac_cv_func_strcoll_works
=no
13153 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13158 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13159 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13160 if test $ac_cv_func_strcoll_works = yes; then
13162 cat >>confdefs.h
<<\_ACEOF
13163 #define HAVE_STRCOLL 1
13169 for ac_func
in strftime
13171 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13174 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 cat >conftest.
$ac_ext <<_ACEOF
13180 cat confdefs.h
>>conftest.
$ac_ext
13181 cat >>conftest.
$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13185 #define $ac_func innocuous_$ac_func
13187 /* System header to define __stub macros and hopefully few prototypes,
13188 which can conflict with char $ac_func (); below.
13189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13190 <limits.h> exists even on freestanding compilers. */
13193 # include <limits.h>
13195 # include <assert.h>
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13207 /* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210 #if defined __stub_$ac_func || defined __stub___$ac_func
13217 return $ac_func ();
13222 rm -f conftest.
$ac_objext conftest
$ac_exeext
13223 if { (ac_try
="$ac_link"
13224 case "(($ac_try" in
13225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_link") 2>conftest.er1
13231 grep -v '^ *+' conftest.er1 >conftest.err
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } && {
13236 test -z "$ac_c_werror_flag" ||
13237 test ! -s conftest.err
13238 } && test -s conftest$ac_exeext &&
13239 $as_test_x conftest$ac_exeext; then
13240 eval "$as_ac_var=yes"
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 eval "$as_ac_var=no"
13248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13249 conftest$ac_exeext conftest.$ac_ext
13251 ac_res=`eval echo '${'$as_ac_var'}'`
13252 { echo "$as_me:$LINENO: result: $ac_res" >&5
13253 echo "${ECHO_T}$ac_res" >&6; }
13254 if test `eval echo '${'$as_ac_var'}'` = yes; then
13255 cat >>confdefs.h <<_ACEOF
13256 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13260 # strftime is in -lintl on SCO UNIX.
13261 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13262 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13263 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 ac_check_lib_save_LIBS=$LIBS
13267 LIBS="-lintl $LIBS"
13268 cat >conftest.$ac_ext <<_ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13275 /* Override any GCC internal prototype to avoid an error.
13276 Use char because int might match the return type of a GCC
13277 builtin and then its argument prototype would still apply. */
13285 return strftime ();
13290 rm -f conftest.$ac_objext conftest$ac_exeext
13291 if { (ac_try="$ac_link"
13292 case "(($ac_try" in
13293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13294 *) ac_try_echo
=$ac_try;;
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_link") 2>conftest.er1
13299 grep -v '^ *+' conftest.er1
>conftest.err
13301 cat conftest.err
>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } && {
13304 test -z "$ac_c_werror_flag" ||
13305 test ! -s conftest.err
13306 } && test -s conftest
$ac_exeext &&
13307 $as_test_x conftest
$ac_exeext; then
13308 ac_cv_lib_intl_strftime
=yes
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.
$ac_ext >&5
13313 ac_cv_lib_intl_strftime
=no
13316 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13317 conftest
$ac_exeext conftest.
$ac_ext
13318 LIBS
=$ac_check_lib_save_LIBS
13320 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13321 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13322 if test $ac_cv_lib_intl_strftime = yes; then
13323 cat >>confdefs.h
<<\_ACEOF
13324 #define HAVE_STRFTIME 1
13327 LIBS
="-lintl $LIBS"
13333 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13334 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13335 if test "${ac_cv_func_strnlen_working+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 if test "$cross_compiling" = yes; then
13339 ac_cv_func_strnlen_working
=no
13341 cat >conftest.
$ac_ext <<_ACEOF
13344 cat confdefs.h
>>conftest.
$ac_ext
13345 cat >>conftest.
$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 $ac_includes_default
13353 #define S_LEN (sizeof S - 1)
13355 /* At least one implementation is buggy: that of AIX 4.3 would
13356 give strnlen (S, 1) == 3. */
13359 for (i = 0; i < S_LEN + 1; ++i)
13361 int expected = i <= S_LEN ? i : S_LEN;
13362 if (strnlen (S, i) != expected)
13371 rm -f conftest
$ac_exeext
13372 if { (ac_try
="$ac_link"
13373 case "(($ac_try" in
13374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_link") 2>&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13384 *) ac_try_echo
=$ac_try;;
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_func_strnlen_working
=yes
13393 echo "$as_me: program exited with status $ac_status" >&5
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.
$ac_ext >&5
13397 ( exit $ac_status )
13398 ac_cv_func_strnlen_working
=no
13400 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13405 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13406 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13407 test $ac_cv_func_strnlen_working = no
&& case " $LIBOBJS " in
13408 *" strnlen.$ac_objext "* ) ;;
13409 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
13414 { echo "$as_me:$LINENO: checking for working strtod" >&5
13415 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13416 if test "${ac_cv_func_strtod+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 if test "$cross_compiling" = yes; then
13420 ac_cv_func_strtod
=no
13422 cat >conftest.
$ac_ext <<_ACEOF
13425 cat confdefs.h
>>conftest.
$ac_ext
13426 cat >>conftest.
$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13429 $ac_includes_default
13437 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13438 char *string = " +69";
13441 value = strtod (string, &term);
13442 if (value != 69 || term != (string + 4))
13447 /* Under Solaris 2.4, strtod returns the wrong value for the
13448 terminating character under some conditions. */
13449 char *string = "NaN";
13451 strtod (string, &term);
13452 if (term != string && *(term - 1) == 0)
13459 rm -f conftest
$ac_exeext
13460 if { (ac_try
="$ac_link"
13461 case "(($ac_try" in
13462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_link") 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13470 { (case "(($ac_try" in
13471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13472 *) ac_try_echo
=$ac_try;;
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_try") 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 ac_cv_func_strtod
=yes
13481 echo "$as_me: program exited with status $ac_status" >&5
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.
$ac_ext >&5
13485 ( exit $ac_status )
13486 ac_cv_func_strtod
=no
13488 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13493 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13494 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13495 if test $ac_cv_func_strtod = no
; then
13496 case " $LIBOBJS " in
13497 *" strtod.$ac_objext "* ) ;;
13498 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
13502 { echo "$as_me:$LINENO: checking for pow" >&5
13503 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13504 if test "${ac_cv_func_pow+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13507 cat >conftest.
$ac_ext <<_ACEOF
13510 cat confdefs.h
>>conftest.
$ac_ext
13511 cat >>conftest.
$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13515 #define pow innocuous_pow
13517 /* System header to define __stub macros and hopefully few prototypes,
13518 which can conflict with char pow (); below.
13519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13520 <limits.h> exists even on freestanding compilers. */
13523 # include <limits.h>
13525 # include <assert.h>
13530 /* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13537 /* The GNU C library defines this for functions which it implements
13538 to always fail with ENOSYS. Some functions are actually named
13539 something starting with __ and the normal name is an alias. */
13540 #if defined __stub_pow || defined __stub___pow
13552 rm -f conftest.
$ac_objext conftest
$ac_exeext
13553 if { (ac_try
="$ac_link"
13554 case "(($ac_try" in
13555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_link") 2>conftest.er1
13561 grep -v '^ *+' conftest.er1 >conftest.err
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } && {
13566 test -z "$ac_c_werror_flag" ||
13567 test ! -s conftest.err
13568 } && test -s conftest$ac_exeext &&
13569 $as_test_x conftest$ac_exeext; then
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13579 conftest$ac_exeext conftest.$ac_ext
13581 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13582 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13584 if test $ac_cv_func_pow = no; then
13585 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13586 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13587 if test "${ac_cv_lib_m_pow+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 ac_check_lib_save_LIBS=$LIBS
13592 cat >conftest.$ac_ext <<_ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13599 /* Override any GCC internal prototype to avoid an error.
13600 Use char because int might match the return type of a GCC
13601 builtin and then its argument prototype would still apply. */
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (ac_try="$ac_link"
13616 case "(($ac_try" in
13617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13618 *) ac_try_echo
=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_link") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1
>conftest.err
13625 cat conftest.err
>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } && {
13628 test -z "$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13630 } && test -s conftest
$ac_exeext &&
13631 $as_test_x conftest
$ac_exeext; then
13632 ac_cv_lib_m_pow
=yes
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.
$ac_ext >&5
13640 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13641 conftest
$ac_exeext conftest.
$ac_ext
13642 LIBS
=$ac_check_lib_save_LIBS
13644 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13645 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13646 if test $ac_cv_lib_m_pow = yes; then
13649 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13650 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13665 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
13666 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
13667 if test "${ac_cv_func_utime_null+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 rm -f conftest.data
; >conftest.data
13671 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13672 if test "$cross_compiling" = yes; then
13673 ac_cv_func_utime_null
=no
13675 cat >conftest.
$ac_ext <<_ACEOF
13678 cat confdefs.h
>>conftest.
$ac_ext
13679 cat >>conftest.
$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 $ac_includes_default
13682 #ifdef HAVE_UTIME_H
13683 # include <utime.h>
13689 return ! (stat ("conftest.data", &s) == 0
13690 && utime ("conftest.data", 0) == 0
13691 && stat ("conftest.data", &t) == 0
13692 && t.st_mtime >= s.st_mtime
13693 && t.st_mtime - s.st_mtime < 120);
13698 rm -f conftest
$ac_exeext
13699 if { (ac_try
="$ac_link"
13700 case "(($ac_try" in
13701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_link") 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13711 *) ac_try_echo
=$ac_try;;
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 ac_cv_func_utime_null
=yes
13720 echo "$as_me: program exited with status $ac_status" >&5
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.
$ac_ext >&5
13724 ( exit $ac_status )
13725 ac_cv_func_utime_null
=no
13727 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
13733 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
13734 if test $ac_cv_func_utime_null = yes; then
13736 cat >>confdefs.h
<<\_ACEOF
13737 #define HAVE_UTIME_NULL 1
13741 rm -f conftest.data
13744 for ac_func
in vprintf
13746 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13749 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 cat >conftest.
$ac_ext <<_ACEOF
13755 cat confdefs.h
>>conftest.
$ac_ext
13756 cat >>conftest.
$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13760 #define $ac_func innocuous_$ac_func
13762 /* System header to define __stub macros and hopefully few prototypes,
13763 which can conflict with char $ac_func (); below.
13764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13765 <limits.h> exists even on freestanding compilers. */
13768 # include <limits.h>
13770 # include <assert.h>
13775 /* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
13782 /* The GNU C library defines this for functions which it implements
13783 to always fail with ENOSYS. Some functions are actually named
13784 something starting with __ and the normal name is an alias. */
13785 #if defined __stub_$ac_func || defined __stub___$ac_func
13792 return $ac_func ();
13797 rm -f conftest.
$ac_objext conftest
$ac_exeext
13798 if { (ac_try
="$ac_link"
13799 case "(($ac_try" in
13800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_link") 2>conftest.er1
13806 grep -v '^ *+' conftest.er1 >conftest.err
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest$ac_exeext &&
13814 $as_test_x conftest$ac_exeext; then
13815 eval "$as_ac_var=yes"
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 eval "$as_ac_var=no"
13823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13824 conftest$ac_exeext conftest.$ac_ext
13826 ac_res=`eval echo '${'$as_ac_var'}'`
13827 { echo "$as_me:$LINENO: result: $ac_res" >&5
13828 echo "${ECHO_T}$ac_res" >&6; }
13829 if test `eval echo '${'$as_ac_var'}'` = yes; then
13830 cat >>confdefs.h <<_ACEOF
13831 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13834 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13835 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13836 if test "${ac_cv_func__doprnt+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 cat >conftest.$ac_ext <<_ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13845 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13847 #define _doprnt innocuous__doprnt
13849 /* System header to define __stub macros and hopefully few prototypes,
13850 which can conflict with char _doprnt (); below.
13851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13852 <limits.h> exists even on freestanding compilers. */
13855 # include <limits.h>
13857 # include <assert.h>
13862 /* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply. */
13869 /* The GNU C library defines this for functions which it implements
13870 to always fail with ENOSYS. Some functions are actually named
13871 something starting with __ and the normal name is an alias. */
13872 #if defined __stub__doprnt || defined __stub____doprnt
13884 rm -f conftest.$ac_objext conftest$ac_exeext
13885 if { (ac_try="$ac_link"
13886 case "(($ac_try" in
13887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13888 *) ac_try_echo
=$ac_try;;
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_link") 2>conftest.er1
13893 grep -v '^ *+' conftest.er1
>conftest.err
13895 cat conftest.err
>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && {
13898 test -z "$ac_c_werror_flag" ||
13899 test ! -s conftest.err
13900 } && test -s conftest
$ac_exeext &&
13901 $as_test_x conftest
$ac_exeext; then
13902 ac_cv_func__doprnt
=yes
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.
$ac_ext >&5
13907 ac_cv_func__doprnt
=no
13910 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13911 conftest
$ac_exeext conftest.
$ac_ext
13913 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13914 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13915 if test $ac_cv_func__doprnt = yes; then
13917 cat >>confdefs.h
<<\_ACEOF
13918 #define HAVE_DOPRNT 1
13974 for ac_func
in asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint
select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
13976 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13979 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 cat >conftest.
$ac_ext <<_ACEOF
13985 cat confdefs.h
>>conftest.
$ac_ext
13986 cat >>conftest.
$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13990 #define $ac_func innocuous_$ac_func
13992 /* System header to define __stub macros and hopefully few prototypes,
13993 which can conflict with char $ac_func (); below.
13994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13995 <limits.h> exists even on freestanding compilers. */
13998 # include <limits.h>
14000 # include <assert.h>
14005 /* Override any GCC internal prototype to avoid an error.
14006 Use char because int might match the return type of a GCC
14007 builtin and then its argument prototype would still apply. */
14012 /* The GNU C library defines this for functions which it implements
14013 to always fail with ENOSYS. Some functions are actually named
14014 something starting with __ and the normal name is an alias. */
14015 #if defined __stub_$ac_func || defined __stub___$ac_func
14022 return $ac_func ();
14027 rm -f conftest.
$ac_objext conftest
$ac_exeext
14028 if { (ac_try
="$ac_link"
14029 case "(($ac_try" in
14030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14031 *) ac_try_echo=$ac_try;;
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034 (eval "$ac_link") 2>conftest.er1
14036 grep -v '^ *+' conftest.er1 >conftest.err
14038 cat conftest.err >&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest$ac_exeext &&
14044 $as_test_x conftest$ac_exeext; then
14045 eval "$as_ac_var=yes"
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 eval "$as_ac_var=no"
14053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14054 conftest$ac_exeext conftest.$ac_ext
14056 ac_res=`eval echo '${'$as_ac_var'}'`
14057 { echo "$as_me:$LINENO: result: $ac_res" >&5
14058 echo "${ECHO_T}$ac_res" >&6; }
14059 if test `eval echo '${'$as_ac_var'}'` = yes; then
14060 cat >>confdefs.h <<_ACEOF
14061 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14068 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14069 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14070 cat >conftest.$ac_ext <<_ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14076 #include <pthread.h>
14080 int foo = PTHREAD_RWLOCK_INITIALIZER;
14085 rm -f conftest.$ac_objext conftest$ac_exeext
14086 if { (ac_try="$ac_link"
14087 case "(($ac_try" in
14088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14089 *) ac_try_echo
=$ac_try;;
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_link") 2>conftest.er1
14094 grep -v '^ *+' conftest.er1
>conftest.err
14096 cat conftest.err
>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } && {
14099 test -z "$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14101 } && test -s conftest
$ac_exeext &&
14102 $as_test_x conftest
$ac_exeext; then
14103 { echo "$as_me:$LINENO: result: yes" >&5
14104 echo "${ECHO_T}yes" >&6; }
14106 cat >>confdefs.h
<<\_ACEOF
14107 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.
$ac_ext >&5
14114 { echo "$as_me:$LINENO: result: no" >&5
14115 echo "${ECHO_T}no" >&6; }
14119 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14120 conftest
$ac_exeext conftest.
$ac_ext
14122 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14123 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14124 cat >conftest.
$ac_ext <<_ACEOF
14127 cat confdefs.h
>>conftest.
$ac_ext
14128 cat >>conftest.
$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14130 #include <pthread.h>
14134 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14139 rm -f conftest.
$ac_objext conftest
$ac_exeext
14140 if { (ac_try
="$ac_link"
14141 case "(($ac_try" in
14142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14143 *) ac_try_echo=$ac_try;;
14145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146 (eval "$ac_link") 2>conftest.er1
14148 grep -v '^ *+' conftest.er1 >conftest.err
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } && {
14153 test -z "$ac_c_werror_flag" ||
14154 test ! -s conftest.err
14155 } && test -s conftest$ac_exeext &&
14156 $as_test_x conftest$ac_exeext; then
14157 { echo "$as_me:$LINENO: result: yes" >&5
14158 echo "${ECHO_T}yes" >&6; }
14160 cat >>confdefs.h <<\_ACEOF
14161 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14168 { echo "$as_me:$LINENO: result: no" >&5
14169 echo "${ECHO_T}no" >&6; }
14173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14174 conftest$ac_exeext conftest.$ac_ext
14176 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14177 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14178 cat >conftest.$ac_ext <<_ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14188 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14193 rm -f conftest.$ac_objext conftest$ac_exeext
14194 if { (ac_try="$ac_link"
14195 case "(($ac_try" in
14196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14197 *) ac_try_echo
=$ac_try;;
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_link") 2>conftest.er1
14202 grep -v '^ *+' conftest.er1
>conftest.err
14204 cat conftest.err
>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } && {
14207 test -z "$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 } && test -s conftest
$ac_exeext &&
14210 $as_test_x conftest
$ac_exeext; then
14211 { echo "$as_me:$LINENO: result: yes" >&5
14212 echo "${ECHO_T}yes" >&6; }
14214 cat >>confdefs.h
<<\_ACEOF
14215 #define HAVE_GCC_ATOMICS 1
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.
$ac_ext >&5
14222 { echo "$as_me:$LINENO: result: no" >&5
14223 echo "${ECHO_T}no" >&6; }
14227 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14228 conftest
$ac_exeext conftest.
$ac_ext
14231 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14232 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14233 cat >conftest.
$ac_ext <<_ACEOF
14236 cat confdefs.h
>>conftest.
$ac_ext
14237 cat >>conftest.
$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 static int __attribute__((pure)) test(void) {}
14248 rm -f conftest.
$ac_objext
14249 if { (ac_try
="$ac_compile"
14250 case "(($ac_try" in
14251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_compile") 2>conftest.er1
14257 grep -v '^ *+' conftest.er1 >conftest.err
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } && {
14262 test -z "$ac_c_werror_flag" ||
14263 test ! -s conftest.err
14264 } && test -s conftest.$ac_objext; then
14265 { echo "$as_me:$LINENO: result: yes" >&5
14266 echo "${ECHO_T}yes" >&6; }
14268 cat >>confdefs.h <<_ACEOF
14269 #define HAVE_ATTRIBUTE_pure 1
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 { echo "$as_me:$LINENO: result: no" >&5
14277 echo "${ECHO_T}no" >&6; }
14280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14284 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14285 cat >conftest.$ac_ext <<_ACEOF
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h. */
14291 static int __attribute__((malloc)) test(void) {}
14300 rm -f conftest.$ac_objext
14301 if { (ac_try="$ac_compile"
14302 case "(($ac_try" in
14303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14304 *) ac_try_echo
=$ac_try;;
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_compile") 2>conftest.er1
14309 grep -v '^ *+' conftest.er1
>conftest.err
14311 cat conftest.err
>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && {
14314 test -z "$ac_c_werror_flag" ||
14315 test ! -s conftest.err
14316 } && test -s conftest.
$ac_objext; then
14317 { echo "$as_me:$LINENO: result: yes" >&5
14318 echo "${ECHO_T}yes" >&6; }
14320 cat >>confdefs.h
<<_ACEOF
14321 #define HAVE_ATTRIBUTE_malloc 1
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.
$ac_ext >&5
14328 { echo "$as_me:$LINENO: result: no" >&5
14329 echo "${ECHO_T}no" >&6; }
14332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14335 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
14336 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
14337 cat >conftest.
$ac_ext <<_ACEOF
14340 cat confdefs.h
>>conftest.
$ac_ext
14341 cat >>conftest.
$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 static int __attribute__((const)) test(void) {}
14352 rm -f conftest.
$ac_objext
14353 if { (ac_try
="$ac_compile"
14354 case "(($ac_try" in
14355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359 (eval "$ac_compile") 2>conftest.er1
14361 grep -v '^ *+' conftest.er1 >conftest.err
14363 cat conftest.err >&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } && {
14366 test -z "$ac_c_werror_flag" ||
14367 test ! -s conftest.err
14368 } && test -s conftest.$ac_objext; then
14369 { echo "$as_me:$LINENO: result: yes" >&5
14370 echo "${ECHO_T}yes" >&6; }
14372 cat >>confdefs.h <<_ACEOF
14373 #define HAVE_ATTRIBUTE_const 1
14377 echo "$as_me: failed program was:" >&5
14378 sed 's/^/| /' conftest.$ac_ext >&5
14380 { echo "$as_me:$LINENO: result: no" >&5
14381 echo "${ECHO_T}no" >&6; }
14384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14387 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
14388 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
14389 cat >conftest.$ac_ext <<_ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14395 static int __attribute__((unused)) test(void) {}
14404 rm -f conftest.$ac_objext
14405 if { (ac_try="$ac_compile"
14406 case "(($ac_try" in
14407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14408 *) ac_try_echo
=$ac_try;;
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_compile") 2>conftest.er1
14413 grep -v '^ *+' conftest.er1
>conftest.err
14415 cat conftest.err
>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } && {
14418 test -z "$ac_c_werror_flag" ||
14419 test ! -s conftest.err
14420 } && test -s conftest.
$ac_objext; then
14421 { echo "$as_me:$LINENO: result: yes" >&5
14422 echo "${ECHO_T}yes" >&6; }
14424 cat >>confdefs.h
<<_ACEOF
14425 #define HAVE_ATTRIBUTE_unused 1
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.
$ac_ext >&5
14432 { echo "$as_me:$LINENO: result: no" >&5
14433 echo "${ECHO_T}no" >&6; }
14436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14439 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
14440 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
14441 cat >conftest.
$ac_ext <<_ACEOF
14444 cat confdefs.h
>>conftest.
$ac_ext
14445 cat >>conftest.
$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447 static int __attribute__((always_inline)) test(void) {}
14456 rm -f conftest.
$ac_objext
14457 if { (ac_try
="$ac_compile"
14458 case "(($ac_try" in
14459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_compile") 2>conftest.er1
14465 grep -v '^ *+' conftest.er1 >conftest.err
14467 cat conftest.err >&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } && {
14470 test -z "$ac_c_werror_flag" ||
14471 test ! -s conftest.err
14472 } && test -s conftest.$ac_objext; then
14473 { echo "$as_me:$LINENO: result: yes" >&5
14474 echo "${ECHO_T}yes" >&6; }
14476 cat >>confdefs.h <<_ACEOF
14477 #define HAVE_ATTRIBUTE_always_inline 1
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14484 { echo "$as_me:$LINENO: result: no" >&5
14485 echo "${ECHO_T}no" >&6; }
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
14492 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
14493 saved_CFLAGS="${CFLAGS}"
14494 CFLAGS="${CFLAGS} -ffunction-sections"
14495 cat >conftest.$ac_ext <<_ACEOF
14498 cat confdefs.h >>conftest.$ac_ext
14499 cat >>conftest.$ac_ext <<_ACEOF
14500 /* end confdefs.h. */
14510 rm -f conftest.$ac_objext
14511 if { (ac_try="$ac_compile"
14512 case "(($ac_try" in
14513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14514 *) ac_try_echo
=$ac_try;;
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_compile") 2>conftest.er1
14519 grep -v '^ *+' conftest.er1
>conftest.err
14521 cat conftest.err
>&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest.
$ac_objext; then
14527 { echo "$as_me:$LINENO: result: yes" >&5
14528 echo "${ECHO_T}yes" >&6; }
14529 saved_LDFLAGS
="${LDFLAGS}"
14530 LDFLAGS
="${LDFLAGS} -Wl,--gc-sections"
14531 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
14532 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
14533 cat >conftest.
$ac_ext <<_ACEOF
14536 cat confdefs.h
>>conftest.
$ac_ext
14537 cat >>conftest.
$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14548 rm -f conftest.
$ac_objext conftest
$ac_exeext
14549 if { (ac_try
="$ac_link"
14550 case "(($ac_try" in
14551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_link") 2>conftest.er1
14557 grep -v '^ *+' conftest.er1 >conftest.err
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
14564 } && test -s conftest$ac_exeext &&
14565 $as_test_x conftest$ac_exeext; then
14566 { echo "$as_me:$LINENO: result: yes" >&5
14567 echo "${ECHO_T}yes" >&6; }
14568 GC_CFLAGS="-ffunction-sections"
14569 GC_LDFLAGS="-Wl,--gc-sections"
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14574 { echo "$as_me:$LINENO: result: no" >&5
14575 echo "${ECHO_T}no" >&6; }
14579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14580 conftest$ac_exeext conftest.$ac_ext
14581 LDFLAGS="${saved_LDFLAGS}"
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 { echo "$as_me:$LINENO: result: no" >&5
14587 echo "${ECHO_T}no" >&6; }
14591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 CFLAGS="${saved_CFLAGS}"
14596 { echo "$as_me:$LINENO: checking for res_ninit" >&5
14597 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
14598 cat >conftest.$ac_ext <<_ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */
14604 #include <resolv.h>
14608 int foo = res_ninit(NULL);
14613 rm -f conftest.$ac_objext conftest$ac_exeext
14614 if { (ac_try="$ac_link"
14615 case "(($ac_try" in
14616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14617 *) ac_try_echo
=$ac_try;;
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_link") 2>conftest.er1
14622 grep -v '^ *+' conftest.er1
>conftest.err
14624 cat conftest.err
>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } && {
14627 test -z "$ac_c_werror_flag" ||
14628 test ! -s conftest.err
14629 } && test -s conftest
$ac_exeext &&
14630 $as_test_x conftest
$ac_exeext; then
14631 { echo "$as_me:$LINENO: result: yes" >&5
14632 echo "${ECHO_T}yes" >&6; }
14634 cat >>confdefs.h
<<\_ACEOF
14635 #define HAVE_RES_NINIT 1
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.
$ac_ext >&5
14642 { echo "$as_me:$LINENO: result: no" >&5
14643 echo "${ECHO_T}no" >&6; }
14647 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14648 conftest
$ac_exeext conftest.
$ac_ext
14650 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
14651 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
14652 cat >conftest.
$ac_ext <<_ACEOF
14655 cat confdefs.h
>>conftest.
$ac_ext
14656 cat >>conftest.
$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14662 int foo = RTLD_NOLOAD;
14667 rm -f conftest.
$ac_objext conftest
$ac_exeext
14668 if { (ac_try
="$ac_link"
14669 case "(($ac_try" in
14670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_link") 2>conftest.er1
14676 grep -v '^ *+' conftest.er1 >conftest.err
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && {
14681 test -z "$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 } && test -s conftest$ac_exeext &&
14684 $as_test_x conftest$ac_exeext; then
14685 { echo "$as_me:$LINENO: result: yes" >&5
14686 echo "${ECHO_T}yes" >&6; }
14688 cat >>confdefs.h <<\_ACEOF
14689 #define HAVE_RTLD_NOLOAD 1
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14696 { echo "$as_me:$LINENO: result: no" >&5
14697 echo "${ECHO_T}no" >&6; }
14701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14702 conftest$ac_exeext conftest.$ac_ext
14704 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
14705 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 #include <netinet/in.h>
14716 int foo = IP_MTU_DISCOVER;
14721 rm -f conftest.$ac_objext conftest$ac_exeext
14722 if { (ac_try="$ac_link"
14723 case "(($ac_try" in
14724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14725 *) ac_try_echo
=$ac_try;;
14727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728 (eval "$ac_link") 2>conftest.er1
14730 grep -v '^ *+' conftest.er1
>conftest.err
14732 cat conftest.err
>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } && {
14735 test -z "$ac_c_werror_flag" ||
14736 test ! -s conftest.err
14737 } && test -s conftest
$ac_exeext &&
14738 $as_test_x conftest
$ac_exeext; then
14739 { echo "$as_me:$LINENO: result: yes" >&5
14740 echo "${ECHO_T}yes" >&6; }
14742 cat >>confdefs.h
<<\_ACEOF
14743 #define HAVE_IP_MTU_DISCOVER 1
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.
$ac_ext >&5
14750 { echo "$as_me:$LINENO: result: no" >&5
14751 echo "${ECHO_T}no" >&6; }
14755 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14756 conftest
$ac_exeext conftest.
$ac_ext
14758 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14759 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14760 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14761 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14765 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14767 # Is the header compilable?
14768 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
14769 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
14770 cat >conftest.
$ac_ext <<_ACEOF
14773 cat confdefs.h
>>conftest.
$ac_ext
14774 cat >>conftest.
$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 $ac_includes_default
14777 #include <libkern/OSAtomic.h>
14779 rm -f conftest.
$ac_objext
14780 if { (ac_try
="$ac_compile"
14781 case "(($ac_try" in
14782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_compile") 2>conftest.er1
14788 grep -v '^ *+' conftest.er1 >conftest.err
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } && {
14793 test -z "$ac_c_werror_flag" ||
14794 test ! -s conftest.err
14795 } && test -s conftest.$ac_objext; then
14796 ac_header_compiler=yes
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ac_header_compiler=no
14804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14806 echo "${ECHO_T}$ac_header_compiler" >&6; }
14808 # Is the header present?
14809 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
14810 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
14811 cat >conftest.$ac_ext <<_ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 #include <libkern/OSAtomic.h>
14819 if { (ac_try="$ac_cpp conftest.$ac_ext"
14820 case "(($ac_try" in
14821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14822 *) ac_try_echo
=$ac_try;;
14824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14827 grep -v '^ *+' conftest.er1
>conftest.err
14829 cat conftest.err
>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } >/dev
/null
&& {
14832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14833 test ! -s conftest.err
14835 ac_header_preproc
=yes
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.
$ac_ext >&5
14840 ac_header_preproc
=no
14843 rm -f conftest.err conftest.
$ac_ext
14844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14845 echo "${ECHO_T}$ac_header_preproc" >&6; }
14847 # So? What about this header?
14848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14850 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
14851 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
14853 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
14854 ac_header_preproc
=yes
14857 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
14858 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
14860 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
14862 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
14863 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
14864 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
14866 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
14868 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
14872 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14873 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14874 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 ac_cv_header_libkern_OSAtomic_h
=$ac_header_preproc
14879 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14880 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14883 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
14885 cat >>confdefs.h
<<_ACEOF
14886 #define HAVE_OSX_ATOMICS 1
14893 { echo "$as_me:$LINENO: checking for int" >&5
14894 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14895 if test "${ac_cv_type_int+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 cat >conftest.
$ac_ext <<_ACEOF
14901 cat confdefs.h
>>conftest.
$ac_ext
14902 cat >>conftest.
$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 $ac_includes_default
14905 typedef int ac__type_new_;
14909 if ((ac__type_new_ *) 0)
14911 if (sizeof (ac__type_new_))
14917 rm -f conftest.
$ac_objext
14918 if { (ac_try
="$ac_compile"
14919 case "(($ac_try" in
14920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_compile") 2>conftest.er1
14926 grep -v '^ *+' conftest.er1 >conftest.err
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } && {
14931 test -z "$ac_c_werror_flag" ||
14932 test ! -s conftest.err
14933 } && test -s conftest.$ac_objext; then
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14945 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14947 # The cast to long int works around a bug in the HP C Compiler
14948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14949 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
14950 # This bug is HP SR number 8606223364.
14951 { echo "$as_me:$LINENO: checking size of int" >&5
14952 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14953 if test "${ac_cv_sizeof_int+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 if test "$cross_compiling" = yes; then
14957 # Depending upon the size, compute the lo and hi bounds.
14958 cat >conftest.$ac_ext <<_ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 $ac_includes_default
14965 typedef int ac__type_sizeof_;
14969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14976 rm -f conftest.$ac_objext
14977 if { (ac_try="$ac_compile"
14978 case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_compile") 2>conftest.er1
14985 grep -v '^
*+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } && {
14990 test -z "$ac_c_werror_flag" ||
14991 test ! -s conftest.err
14992 } && test -s conftest.$ac_objext; then
14995 cat >conftest.$ac_ext <<_ACEOF
14998 cat confdefs.h >>conftest.$ac_ext
14999 cat >>conftest.$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15001 $ac_includes_default
15002 typedef int ac__type_sizeof_;
15006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_compile") 2>conftest.er1
15022 grep -v '^
*+' conftest.er1 >conftest.err
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } && {
15027 test -z "$ac_c_werror_flag" ||
15028 test ! -s conftest.err
15029 } && test -s conftest.$ac_objext; then
15030 ac_hi=$ac_mid; break
15032 echo "$as_me: failed program was:" >&5
15033 sed 's
/^
/|
/' conftest.$ac_ext >&5
15035 ac_lo=`expr $ac_mid + 1`
15036 if test $ac_lo -le $ac_mid; then
15040 ac_mid=`expr 2 '*' $ac_mid + 1`
15043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 echo "$as_me: failed program was:" >&5
15047 sed 's
/^
/|
/' conftest.$ac_ext >&5
15049 cat >conftest.$ac_ext <<_ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055 $ac_includes_default
15056 typedef int ac__type_sizeof_;
15060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15067 rm -f conftest.$ac_objext
15068 if { (ac_try="$ac_compile"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_compile") 2>conftest.er1
15076 grep -v '^
*+' conftest.er1 >conftest.err
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest.$ac_objext; then
15086 cat >conftest.$ac_ext <<_ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 $ac_includes_default
15093 typedef int ac__type_sizeof_;
15097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_compile") 2>conftest.er1
15113 grep -v '^
*+' conftest.er1 >conftest.err
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && {
15118 test -z "$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 } && test -s conftest.$ac_objext; then
15121 ac_lo=$ac_mid; break
15123 echo "$as_me: failed program was:" >&5
15124 sed 's
/^
/|
/' conftest.$ac_ext >&5
15126 ac_hi=`expr '(' $ac_mid ')' - 1`
15127 if test $ac_mid -le $ac_hi; then
15131 ac_mid=`expr 2 '*' $ac_mid`
15134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 echo "$as_me: failed program was:" >&5
15138 sed 's
/^
/|
/' conftest.$ac_ext >&5
15143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 # Binary search between lo and hi bounds.
15148 while test "x$ac_lo" != "x$ac_hi"; do
15149 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15150 cat >conftest.$ac_ext <<_ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15156 $ac_includes_default
15157 typedef int ac__type_sizeof_;
15161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15168 rm -f conftest.$ac_objext
15169 if { (ac_try="$ac_compile"
15170 case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_compile") 2>conftest.er1
15177 grep -v '^
*+' conftest.er1 >conftest.err
15179 cat conftest.err >&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } && {
15182 test -z "$ac_c_werror_flag" ||
15183 test ! -s conftest.err
15184 } && test -s conftest.$ac_objext; then
15187 echo "$as_me: failed program was:" >&5
15188 sed 's
/^
/|
/' conftest.$ac_ext >&5
15190 ac_lo=`expr '(' $ac_mid ')' + 1`
15193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 ?*) ac_cv_sizeof_int=$ac_lo;;
15197 '') if test "$ac_cv_type_int" = yes; then
15198 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15199 See \`config.log' for more details.
" >&5
15200 echo "$as_me: error
: cannot compute sizeof
(int
)
15201 See \
`config.log' for more details." >&2;}
15202 { (exit 77); exit 77; }; }
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 $ac_includes_default
15215 typedef int ac__type_sizeof_;
15216 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15217 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15219 #include <stdlib.h>
15224 FILE *f = fopen ("conftest.val", "w");
15227 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15229 long int i = longval ();
15230 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15232 fprintf (f, "%ld\n", i);
15236 unsigned long int i = ulongval ();
15237 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15239 fprintf (f, "%lu\n", i);
15241 return ferror (f) || fclose (f) != 0;
15247 rm -f conftest$ac_exeext
15248 if { (ac_try="$ac_link"
15249 case "(($ac_try" in
15250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15251 *) ac_try_echo
=$ac_try;;
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_link") 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15258 { (case "(($ac_try" in
15259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_try") 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 ac_cv_sizeof_int=`cat conftest.val
`
15269 echo "$as_me: program exited with status $ac_status" >&5
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 ( exit $ac_status )
15274 if test "$ac_cv_type_int" = yes; then
15275 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15276 See \`config.log
' for more details." >&5
15277 echo "$as_me: error: cannot compute sizeof (int)
15278 See \`config.log' for more details.
" >&2;}
15279 { (exit 77); exit 77; }; }
15284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15288 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
15289 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15293 cat >>confdefs.h <<_ACEOF
15294 #define SIZEOF_INT $ac_cv_sizeof_int
15299 # do the package library checks now
15302 if test "${USE_ALSA}" != "no
"; then
15304 if test "x
${ALSA_DIR}" != "x
"; then
15305 if test -d ${ALSA_DIR}/lib; then
15306 pbxlibdir="-L${ALSA_DIR}/lib
"
15308 pbxlibdir="-L${ALSA_DIR}"
15311 { echo "$as_me:$LINENO: checking
for snd_spcm_init
in -lasound" >&5
15312 echo $ECHO_N "checking
for snd_spcm_init
in -lasound...
$ECHO_C" >&6; }
15313 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15314 echo $ECHO_N "(cached
) $ECHO_C" >&6
15316 ac_check_lib_save_LIBS=$LIBS
15317 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15318 cat >conftest.$ac_ext <<_ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15325 /* Override any GCC internal prototype to avoid an error.
15326 Use char because int might match the return type of a GCC
15327 builtin and then its argument prototype would still apply. */
15331 char snd_spcm_init ();
15335 return snd_spcm_init ();
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (ac_try="$ac_link"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_link") 2>conftest.er1
15349 grep -v '^ *+' conftest.er1 >conftest.err
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15353 (exit $ac_status); } && {
15354 test -z "$ac_c_werror_flag" ||
15355 test ! -s conftest.err
15356 } && test -s conftest$ac_exeext &&
15357 $as_test_x conftest$ac_exeext; then
15358 ac_cv_lib_asound_snd_spcm_init=yes
15360 echo "$as_me: failed program was
:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ac_cv_lib_asound_snd_spcm_init=no
15366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15367 conftest$ac_exeext conftest.$ac_ext
15368 LIBS=$ac_check_lib_save_LIBS
15370 { echo "$as_me:$LINENO: result
: $ac_cv_lib_asound_snd_spcm_init" >&5
15371 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15372 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15379 if test "${AST_ALSA_FOUND}" = "yes"; then
15380 ALSA_LIB="-lasound -lm -ldl"
15381 ALSA_HEADER_FOUND="1"
15382 if test "x
${ALSA_DIR}" != "x
"; then
15383 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15384 ALSA_INCLUDE="-I${ALSA_DIR}/include
"
15385 if test "xalsa
/asoundlib.h
" != "x
" ; then
15386 as_ac_Header=`echo "ac_cv_header_
${ALSA_DIR}/include
/alsa
/asoundlib.h
" | $as_tr_sh`
15387 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15388 { echo "$as_me:$LINENO: checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h
" >&5
15389 echo $ECHO_N "checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h...
$ECHO_C" >&6; }
15390 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15391 echo $ECHO_N "(cached
) $ECHO_C" >&6
15393 ac_res=`eval echo '${'$as_ac_Header'}'`
15394 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15397 # Is the header compilable?
15398 { echo "$as_me:$LINENO: checking
${ALSA_DIR}/include
/alsa
/asoundlib.h usability
" >&5
15399 echo $ECHO_N "checking
${ALSA_DIR}/include
/alsa
/asoundlib.h usability...
$ECHO_C" >&6; }
15400 cat >conftest.$ac_ext <<_ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 $ac_includes_default
15407 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_compile") 2>conftest.er1
15418 grep -v '^ *+' conftest.er1 >conftest.err
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15422 (exit $ac_status); } && {
15423 test -z "$ac_c_werror_flag" ||
15424 test ! -s conftest.err
15425 } && test -s conftest.$ac_objext; then
15426 ac_header_compiler=yes
15428 echo "$as_me: failed program was
:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ac_header_compiler=no
15434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15436 echo "${ECHO_T}$ac_header_compiler" >&6; }
15438 # Is the header present?
15439 { echo "$as_me:$LINENO: checking
${ALSA_DIR}/include
/alsa
/asoundlib.h presence
" >&5
15440 echo $ECHO_N "checking
${ALSA_DIR}/include
/alsa
/asoundlib.h presence...
$ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15449 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15450 case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15457 grep -v '^ *+' conftest.er1 >conftest.err
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15461 (exit $ac_status); } >/dev/null && {
15462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15463 test ! -s conftest.err
15465 ac_header_preproc=yes
15467 echo "$as_me: failed program was
:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15470 ac_header_preproc=no
15473 rm -f conftest.err conftest.$ac_ext
15474 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15475 echo "${ECHO_T}$ac_header_preproc" >&6; }
15477 # So? What about this header?
15478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15480 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15481 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15482 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: proceeding with the compiler
's result" >&5
15483 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result
" >&2;}
15484 ac_header_preproc=yes
15487 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: present but cannot be compiled
" >&5
15488 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: present but cannot be compiled
" >&2;}
15489 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&5
15490 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&2;}
15491 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: see the Autoconf documentation
" >&5
15492 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: see the Autoconf documentation
" >&2;}
15493 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15494 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15495 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&5
15496 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result
" >&2;}
15497 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&5
15498 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&2;}
15502 { echo "$as_me:$LINENO: checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h
" >&5
15503 echo $ECHO_N "checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h...
$ECHO_C" >&6; }
15504 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15505 echo $ECHO_N "(cached
) $ECHO_C" >&6
15507 eval "$as_ac_Header=\
$ac_header_preproc"
15509 ac_res=`eval echo '${'$as_ac_Header'}'`
15510 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15511 echo "${ECHO_T}$ac_res" >&6; }
15514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15515 ALSA_HEADER_FOUND=1
15517 ALSA_HEADER_FOUND=0
15523 if test "xalsa
/asoundlib.h
" != "x
" ; then
15524 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15525 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
15526 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
15527 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15528 echo $ECHO_N "(cached
) $ECHO_C" >&6
15530 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
15531 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15533 # Is the header compilable?
15534 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h usability
" >&5
15535 echo $ECHO_N "checking alsa
/asoundlib.h usability...
$ECHO_C" >&6; }
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 $ac_includes_default
15543 #include <alsa/asoundlib.h>
15545 rm -f conftest.$ac_objext
15546 if { (ac_try="$ac_compile"
15547 case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_compile") 2>conftest.er1
15554 grep -v '^ *+' conftest.er1 >conftest.err
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15558 (exit $ac_status); } && {
15559 test -z "$ac_c_werror_flag" ||
15560 test ! -s conftest.err
15561 } && test -s conftest.$ac_objext; then
15562 ac_header_compiler=yes
15564 echo "$as_me: failed program was
:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15567 ac_header_compiler=no
15570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15571 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15572 echo "${ECHO_T}$ac_header_compiler" >&6; }
15574 # Is the header present?
15575 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h presence
" >&5
15576 echo $ECHO_N "checking alsa
/asoundlib.h presence...
$ECHO_C" >&6; }
15577 cat >conftest.$ac_ext <<_ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 #include <alsa/asoundlib.h>
15585 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15586 case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15593 grep -v '^ *+' conftest.er1 >conftest.err
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15597 (exit $ac_status); } >/dev/null && {
15598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15599 test ! -s conftest.err
15601 ac_header_preproc=yes
15603 echo "$as_me: failed program was
:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15606 ac_header_preproc=no
15609 rm -f conftest.err conftest.$ac_ext
15610 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15611 echo "${ECHO_T}$ac_header_preproc" >&6; }
15613 # So? What about this header?
15614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15616 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15617 echo "$as_me: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15618 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the compiler
's result" >&5
15619 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result
" >&2;}
15620 ac_header_preproc=yes
15623 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&5
15624 echo "$as_me: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&2;}
15625 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&5
15626 echo "$as_me: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&2;}
15627 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&5
15628 echo "$as_me: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&2;}
15629 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15630 echo "$as_me: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15631 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&5
15632 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result
" >&2;}
15633 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&5
15634 echo "$as_me: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&2;}
15638 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
15639 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
15640 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15641 echo $ECHO_N "(cached
) $ECHO_C" >&6
15643 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
15645 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
15646 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15649 if test $ac_cv_header_alsa_asoundlib_h = yes; then
15650 ALSA_HEADER_FOUND=1
15652 ALSA_HEADER_FOUND=0
15658 if test "x
${ALSA_HEADER_FOUND}" = "x0
" ; then
15659 if test ! -z "${ALSA_MANDATORY}" ;
15661 { echo "$as_me:$LINENO: ***" >&5
15662 echo "$as_me: ***" >&6;}
15663 { echo "$as_me:$LINENO: *** It appears that you
do not have the asound development package installed.
" >&5
15664 echo "$as_me: *** It appears that you
do not have the asound development package installed.
" >&6;}
15665 { echo "$as_me:$LINENO: *** Please
install it to include
${ALSA_DESCRIP} support
, or re-run configure
" >&5
15666 echo "$as_me: *** Please
install it to include
${ALSA_DESCRIP} support
, or re-run configure
" >&6;}
15667 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ALSA_OPTION}" >&5
15668 echo "$as_me: *** without explicitly specifying
--with-${ALSA_OPTION}" >&6;}
15677 cat >>confdefs.h <<_ACEOF
15678 #define HAVE_ALSA 1
15682 elif test ! -z "${ALSA_MANDATORY}";
15684 { echo "$as_me:$LINENO: ***" >&5
15685 echo "$as_me: ***" >&6;}
15686 { echo "$as_me:$LINENO: *** The
${ALSA_DESCRIP} installation on this system appears to be broken.
" >&5
15687 echo "$as_me: *** The
${ALSA_DESCRIP} installation on this system appears to be broken.
" >&6;}
15688 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
15689 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
15690 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ALSA_OPTION}" >&5
15691 echo "$as_me: *** without explicitly specifying
--with-${ALSA_OPTION}" >&6;}
15698 if test "${USE_CURSES}" != "no
"; then
15700 if test "x
${CURSES_DIR}" != "x
"; then
15701 if test -d ${CURSES_DIR}/lib; then
15702 pbxlibdir="-L${CURSES_DIR}/lib
"
15704 pbxlibdir="-L${CURSES_DIR}"
15707 { echo "$as_me:$LINENO: checking
for initscr
in -lcurses" >&5
15708 echo $ECHO_N "checking
for initscr
in -lcurses...
$ECHO_C" >&6; }
15709 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15710 echo $ECHO_N "(cached
) $ECHO_C" >&6
15712 ac_check_lib_save_LIBS=$LIBS
15713 LIBS="-lcurses ${pbxlibdir} $LIBS"
15714 cat >conftest.$ac_ext <<_ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15721 /* Override any GCC internal prototype to avoid an error.
15722 Use char because int might match the return type of a GCC
15723 builtin and then its argument prototype would still apply. */
15736 rm -f conftest.$ac_objext conftest$ac_exeext
15737 if { (ac_try="$ac_link"
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_link") 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); } && {
15750 test -z "$ac_c_werror_flag" ||
15751 test ! -s conftest.err
15752 } && test -s conftest$ac_exeext &&
15753 $as_test_x conftest$ac_exeext; then
15754 ac_cv_lib_curses_initscr=yes
15756 echo "$as_me: failed program was
:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 ac_cv_lib_curses_initscr=no
15762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15763 conftest$ac_exeext conftest.$ac_ext
15764 LIBS=$ac_check_lib_save_LIBS
15766 { echo "$as_me:$LINENO: result
: $ac_cv_lib_curses_initscr" >&5
15767 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
15768 if test $ac_cv_lib_curses_initscr = yes; then
15769 AST_CURSES_FOUND=yes
15771 AST_CURSES_FOUND=no
15775 if test "${AST_CURSES_FOUND}" = "yes"; then
15776 CURSES_LIB="-lcurses "
15777 CURSES_HEADER_FOUND="1"
15778 if test "x
${CURSES_DIR}" != "x
"; then
15779 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
15780 CURSES_INCLUDE="-I${CURSES_DIR}/include
"
15781 if test "xcurses.h
" != "x
" ; then
15782 as_ac_Header=`echo "ac_cv_header_
${CURSES_DIR}/include
/curses.h
" | $as_tr_sh`
15783 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15784 { echo "$as_me:$LINENO: checking
for ${CURSES_DIR}/include
/curses.h
" >&5
15785 echo $ECHO_N "checking
for ${CURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
15786 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15787 echo $ECHO_N "(cached
) $ECHO_C" >&6
15789 ac_res=`eval echo '${'$as_ac_Header'}'`
15790 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15791 echo "${ECHO_T}$ac_res" >&6; }
15793 # Is the header compilable?
15794 { echo "$as_me:$LINENO: checking
${CURSES_DIR}/include
/curses.h usability
" >&5
15795 echo $ECHO_N "checking
${CURSES_DIR}/include
/curses.h usability...
$ECHO_C" >&6; }
15796 cat >conftest.$ac_ext <<_ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 $ac_includes_default
15803 #include <${CURSES_DIR}/include/curses.h>
15805 rm -f conftest.$ac_objext
15806 if { (ac_try="$ac_compile"
15807 case "(($ac_try" in
15808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809 *) ac_try_echo=$ac_try;;
15811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15812 (eval "$ac_compile") 2>conftest.er1
15814 grep -v '^ *+' conftest.er1 >conftest.err
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15818 (exit $ac_status); } && {
15819 test -z "$ac_c_werror_flag" ||
15820 test ! -s conftest.err
15821 } && test -s conftest.$ac_objext; then
15822 ac_header_compiler=yes
15824 echo "$as_me: failed program was
:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15827 ac_header_compiler=no
15830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15831 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15832 echo "${ECHO_T}$ac_header_compiler" >&6; }
15834 # Is the header present?
15835 { echo "$as_me:$LINENO: checking
${CURSES_DIR}/include
/curses.h presence
" >&5
15836 echo $ECHO_N "checking
${CURSES_DIR}/include
/curses.h presence...
$ECHO_C" >&6; }
15837 cat >conftest.$ac_ext <<_ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15843 #include <${CURSES_DIR}/include/curses.h>
15845 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15846 case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15853 grep -v '^ *+' conftest.er1 >conftest.err
15855 cat conftest.err >&5
15856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15857 (exit $ac_status); } >/dev/null && {
15858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15859 test ! -s conftest.err
15861 ac_header_preproc=yes
15863 echo "$as_me: failed program was
:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 ac_header_preproc=no
15869 rm -f conftest.err conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15871 echo "${ECHO_T}$ac_header_preproc" >&6; }
15873 # So? What about this header?
15874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15876 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15877 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15878 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: proceeding with the compiler
's result" >&5
15879 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result
" >&2;}
15880 ac_header_preproc=yes
15883 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&5
15884 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&2;}
15885 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&5
15886 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&2;}
15887 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&5
15888 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&2;}
15889 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15890 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15891 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: proceeding with the preprocessor
's result" >&5
15892 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result
" >&2;}
15893 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&5
15894 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&2;}
15898 { echo "$as_me:$LINENO: checking
for ${CURSES_DIR}/include
/curses.h
" >&5
15899 echo $ECHO_N "checking
for ${CURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
15900 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15901 echo $ECHO_N "(cached
) $ECHO_C" >&6
15903 eval "$as_ac_Header=\
$ac_header_preproc"
15905 ac_res=`eval echo '${'$as_ac_Header'}'`
15906 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15907 echo "${ECHO_T}$ac_res" >&6; }
15910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15911 CURSES_HEADER_FOUND=1
15913 CURSES_HEADER_FOUND=0
15919 if test "xcurses.h
" != "x
" ; then
15920 if test "${ac_cv_header_curses_h+set}" = set; then
15921 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
15922 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
15923 if test "${ac_cv_header_curses_h+set}" = set; then
15924 echo $ECHO_N "(cached
) $ECHO_C" >&6
15926 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
15927 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15929 # Is the header compilable?
15930 { echo "$as_me:$LINENO: checking curses.h usability
" >&5
15931 echo $ECHO_N "checking curses.h usability...
$ECHO_C" >&6; }
15932 cat >conftest.$ac_ext <<_ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 $ac_includes_default
15939 #include <curses.h>
15941 rm -f conftest.$ac_objext
15942 if { (ac_try="$ac_compile"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_compile") 2>conftest.er1
15950 grep -v '^ *+' conftest.er1 >conftest.err
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15954 (exit $ac_status); } && {
15955 test -z "$ac_c_werror_flag" ||
15956 test ! -s conftest.err
15957 } && test -s conftest.$ac_objext; then
15958 ac_header_compiler=yes
15960 echo "$as_me: failed program was
:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 ac_header_compiler=no
15966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15968 echo "${ECHO_T}$ac_header_compiler" >&6; }
15970 # Is the header present?
15971 { echo "$as_me:$LINENO: checking curses.h presence
" >&5
15972 echo $ECHO_N "checking curses.h presence...
$ECHO_C" >&6; }
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 #include <curses.h>
15981 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15993 (exit $ac_status); } >/dev/null && {
15994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15997 ac_header_preproc=yes
15999 echo "$as_me: failed program was
:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_header_preproc=no
16005 rm -f conftest.err conftest.$ac_ext
16006 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16007 echo "${ECHO_T}$ac_header_preproc" >&6; }
16009 # So? What about this header?
16010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16012 { echo "$as_me:$LINENO: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16013 echo "$as_me: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16014 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the compiler
's result" >&5
16015 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result
" >&2;}
16016 ac_header_preproc=yes
16019 { echo "$as_me:$LINENO: WARNING
: curses.h
: present but cannot be compiled
" >&5
16020 echo "$as_me: WARNING
: curses.h
: present but cannot be compiled
" >&2;}
16021 { echo "$as_me:$LINENO: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&5
16022 echo "$as_me: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&2;}
16023 { echo "$as_me:$LINENO: WARNING
: curses.h
: see the Autoconf documentation
" >&5
16024 echo "$as_me: WARNING
: curses.h
: see the Autoconf documentation
" >&2;}
16025 { echo "$as_me:$LINENO: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16026 echo "$as_me: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16027 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&5
16028 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result
" >&2;}
16029 { echo "$as_me:$LINENO: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&5
16030 echo "$as_me: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&2;}
16034 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
16035 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
16036 if test "${ac_cv_header_curses_h+set}" = set; then
16037 echo $ECHO_N "(cached
) $ECHO_C" >&6
16039 ac_cv_header_curses_h=$ac_header_preproc
16041 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
16042 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16045 if test $ac_cv_header_curses_h = yes; then
16046 CURSES_HEADER_FOUND=1
16048 CURSES_HEADER_FOUND=0
16054 if test "x
${CURSES_HEADER_FOUND}" = "x0
" ; then
16055 if test ! -z "${CURSES_MANDATORY}" ;
16057 { echo "$as_me:$LINENO: ***" >&5
16058 echo "$as_me: ***" >&6;}
16059 { echo "$as_me:$LINENO: *** It appears that you
do not have the curses development package installed.
" >&5
16060 echo "$as_me: *** It appears that you
do not have the curses development package installed.
" >&6;}
16061 { echo "$as_me:$LINENO: *** Please
install it to include
${CURSES_DESCRIP} support
, or re-run configure
" >&5
16062 echo "$as_me: *** Please
install it to include
${CURSES_DESCRIP} support
, or re-run configure
" >&6;}
16063 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${CURSES_OPTION}" >&5
16064 echo "$as_me: *** without explicitly specifying
--with-${CURSES_OPTION}" >&6;}
16073 cat >>confdefs.h <<_ACEOF
16074 #define HAVE_CURSES 1
16078 elif test ! -z "${CURSES_MANDATORY}";
16080 { echo "$as_me:$LINENO: ***" >&5
16081 echo "$as_me: ***" >&6;}
16082 { echo "$as_me:$LINENO: *** The
${CURSES_DESCRIP} installation on this system appears to be broken.
" >&5
16083 echo "$as_me: *** The
${CURSES_DESCRIP} installation on this system appears to be broken.
" >&6;}
16084 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
16085 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
16086 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${CURSES_OPTION}" >&5
16087 echo "$as_me: *** without explicitly specifying
--with-${CURSES_OPTION}" >&6;}
16096 if test "${USE_GSM}" != "no
"; then
16097 if test "${GSM_DIR}" = "internal
"; then
16099 elif test "${GSM_DIR}" != ""; then
16102 if test "${GSM_SYSTEM}" = "yes"; then
16104 if test "x
${GSM_DIR}" != "x
"; then
16105 if test -d ${GSM_DIR}/lib; then
16106 gsmlibdir="-L${GSM_DIR}/lib
"
16108 gsmlibdir="-L${GSM_DIR}"
16111 { echo "$as_me:$LINENO: checking
for gsm_create
in -lgsm" >&5
16112 echo $ECHO_N "checking
for gsm_create
in -lgsm...
$ECHO_C" >&6; }
16113 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16114 echo $ECHO_N "(cached
) $ECHO_C" >&6
16116 ac_check_lib_save_LIBS=$LIBS
16117 LIBS="-lgsm ${gsmlibdir} $LIBS"
16118 cat >conftest.$ac_ext <<_ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16125 /* Override any GCC internal prototype to avoid an error.
16126 Use char because int might match the return type of a GCC
16127 builtin and then its argument prototype would still apply. */
16131 char gsm_create ();
16135 return gsm_create ();
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (ac_try="$ac_link"
16142 case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_link") 2>conftest.er1
16149 grep -v '^ *+' conftest.er1 >conftest.err
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16153 (exit $ac_status); } && {
16154 test -z "$ac_c_werror_flag" ||
16155 test ! -s conftest.err
16156 } && test -s conftest$ac_exeext &&
16157 $as_test_x conftest$ac_exeext; then
16158 ac_cv_lib_gsm_gsm_create=yes
16160 echo "$as_me: failed program was
:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 ac_cv_lib_gsm_gsm_create=no
16166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16167 conftest$ac_exeext conftest.$ac_ext
16168 LIBS=$ac_check_lib_save_LIBS
16170 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gsm_gsm_create" >&5
16171 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16172 if test $ac_cv_lib_gsm_gsm_create = yes; then
16174 cat >>confdefs.h <<_ACEOF
16180 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16182 if test "x
${GSM_DIR}" != "x
"; then
16183 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
16184 GSM_INCLUDE="-I${GSM_DIR}/include
"
16190 if test "${GSM_INTERNAL}" = "yes"; then
16196 if test "${USE_IKSEMEL}" != "no
"; then
16198 if test "x
${IKSEMEL_DIR}" != "x
"; then
16199 if test -d ${IKSEMEL_DIR}/lib; then
16200 pbxlibdir="-L${IKSEMEL_DIR}/lib
"
16202 pbxlibdir="-L${IKSEMEL_DIR}"
16205 { echo "$as_me:$LINENO: checking
for iks_start_sasl
in -liksemel" >&5
16206 echo $ECHO_N "checking
for iks_start_sasl
in -liksemel...
$ECHO_C" >&6; }
16207 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16208 echo $ECHO_N "(cached
) $ECHO_C" >&6
16210 ac_check_lib_save_LIBS=$LIBS
16211 LIBS="-liksemel ${pbxlibdir} $LIBS"
16212 cat >conftest.$ac_ext <<_ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16219 /* Override any GCC internal prototype to avoid an error.
16220 Use char because int might match the return type of a GCC
16221 builtin and then its argument prototype would still apply. */
16225 char iks_start_sasl ();
16229 return iks_start_sasl ();
16234 rm -f conftest.$ac_objext conftest$ac_exeext
16235 if { (ac_try="$ac_link"
16236 case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_link") 2>conftest.er1
16243 grep -v '^ *+' conftest.er1 >conftest.err
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16247 (exit $ac_status); } && {
16248 test -z "$ac_c_werror_flag" ||
16249 test ! -s conftest.err
16250 } && test -s conftest$ac_exeext &&
16251 $as_test_x conftest$ac_exeext; then
16252 ac_cv_lib_iksemel_iks_start_sasl=yes
16254 echo "$as_me: failed program was
:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16257 ac_cv_lib_iksemel_iks_start_sasl=no
16260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16261 conftest$ac_exeext conftest.$ac_ext
16262 LIBS=$ac_check_lib_save_LIBS
16264 { echo "$as_me:$LINENO: result
: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16265 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16266 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16267 AST_IKSEMEL_FOUND=yes
16269 AST_IKSEMEL_FOUND=no
16273 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16274 IKSEMEL_LIB="-liksemel "
16275 IKSEMEL_HEADER_FOUND="1"
16276 if test "x
${IKSEMEL_DIR}" != "x
"; then
16277 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16278 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include
"
16279 if test "xiksemel.h
" != "x
" ; then
16280 as_ac_Header=`echo "ac_cv_header_
${IKSEMEL_DIR}/include
/iksemel.h
" | $as_tr_sh`
16281 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16282 { echo "$as_me:$LINENO: checking
for ${IKSEMEL_DIR}/include
/iksemel.h
" >&5
16283 echo $ECHO_N "checking
for ${IKSEMEL_DIR}/include
/iksemel.h...
$ECHO_C" >&6; }
16284 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16285 echo $ECHO_N "(cached
) $ECHO_C" >&6
16287 ac_res=`eval echo '${'$as_ac_Header'}'`
16288 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16289 echo "${ECHO_T}$ac_res" >&6; }
16291 # Is the header compilable?
16292 { echo "$as_me:$LINENO: checking
${IKSEMEL_DIR}/include
/iksemel.h usability
" >&5
16293 echo $ECHO_N "checking
${IKSEMEL_DIR}/include
/iksemel.h usability...
$ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 $ac_includes_default
16301 #include <${IKSEMEL_DIR}/include/iksemel.h>
16303 rm -f conftest.$ac_objext
16304 if { (ac_try="$ac_compile"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_compile") 2>conftest.er1
16312 grep -v '^ *+' conftest.er1 >conftest.err
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16316 (exit $ac_status); } && {
16317 test -z "$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 } && test -s conftest.$ac_objext; then
16320 ac_header_compiler=yes
16322 echo "$as_me: failed program was
:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 ac_header_compiler=no
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16329 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16330 echo "${ECHO_T}$ac_header_compiler" >&6; }
16332 # Is the header present?
16333 { echo "$as_me:$LINENO: checking
${IKSEMEL_DIR}/include
/iksemel.h presence
" >&5
16334 echo $ECHO_N "checking
${IKSEMEL_DIR}/include
/iksemel.h presence...
$ECHO_C" >&6; }
16335 cat >conftest.$ac_ext <<_ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 #include <${IKSEMEL_DIR}/include/iksemel.h>
16343 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16344 case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16351 grep -v '^ *+' conftest.er1 >conftest.err
16353 cat conftest.err >&5
16354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16355 (exit $ac_status); } >/dev/null && {
16356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16357 test ! -s conftest.err
16359 ac_header_preproc=yes
16361 echo "$as_me: failed program was
:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 ac_header_preproc=no
16367 rm -f conftest.err conftest.$ac_ext
16368 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16369 echo "${ECHO_T}$ac_header_preproc" >&6; }
16371 # So? What about this header?
16372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16374 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16375 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16376 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: proceeding with the compiler
's result" >&5
16377 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result
" >&2;}
16378 ac_header_preproc=yes
16381 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: present but cannot be compiled
" >&5
16382 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: present but cannot be compiled
" >&2;}
16383 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: check
for missing prerequisite headers?
" >&5
16384 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: check
for missing prerequisite headers?
" >&2;}
16385 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: see the Autoconf documentation
" >&5
16386 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: see the Autoconf documentation
" >&2;}
16387 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16388 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16389 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: proceeding with the preprocessor
's result" >&5
16390 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result
" >&2;}
16391 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: in the future
, the compiler will take precedence
" >&5
16392 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: in the future
, the compiler will take precedence
" >&2;}
16396 { echo "$as_me:$LINENO: checking
for ${IKSEMEL_DIR}/include
/iksemel.h
" >&5
16397 echo $ECHO_N "checking
for ${IKSEMEL_DIR}/include
/iksemel.h...
$ECHO_C" >&6; }
16398 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16399 echo $ECHO_N "(cached
) $ECHO_C" >&6
16401 eval "$as_ac_Header=\
$ac_header_preproc"
16403 ac_res=`eval echo '${'$as_ac_Header'}'`
16404 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16405 echo "${ECHO_T}$ac_res" >&6; }
16408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16409 IKSEMEL_HEADER_FOUND=1
16411 IKSEMEL_HEADER_FOUND=0
16417 if test "xiksemel.h
" != "x
" ; then
16418 if test "${ac_cv_header_iksemel_h+set}" = set; then
16419 { echo "$as_me:$LINENO: checking
for iksemel.h
" >&5
16420 echo $ECHO_N "checking
for iksemel.h...
$ECHO_C" >&6; }
16421 if test "${ac_cv_header_iksemel_h+set}" = set; then
16422 echo $ECHO_N "(cached
) $ECHO_C" >&6
16424 { echo "$as_me:$LINENO: result
: $ac_cv_header_iksemel_h" >&5
16425 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16427 # Is the header compilable?
16428 { echo "$as_me:$LINENO: checking iksemel.h usability
" >&5
16429 echo $ECHO_N "checking iksemel.h usability...
$ECHO_C" >&6; }
16430 cat >conftest.$ac_ext <<_ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16436 $ac_includes_default
16437 #include <iksemel.h>
16439 rm -f conftest.$ac_objext
16440 if { (ac_try="$ac_compile"
16441 case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_compile") 2>conftest.er1
16448 grep -v '^ *+' conftest.er1 >conftest.err
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16452 (exit $ac_status); } && {
16453 test -z "$ac_c_werror_flag" ||
16454 test ! -s conftest.err
16455 } && test -s conftest.$ac_objext; then
16456 ac_header_compiler=yes
16458 echo "$as_me: failed program was
:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 ac_header_compiler=no
16464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16465 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16466 echo "${ECHO_T}$ac_header_compiler" >&6; }
16468 # Is the header present?
16469 { echo "$as_me:$LINENO: checking iksemel.h presence
" >&5
16470 echo $ECHO_N "checking iksemel.h presence...
$ECHO_C" >&6; }
16471 cat >conftest.$ac_ext <<_ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477 #include <iksemel.h>
16479 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16480 case "(($ac_try" in
16481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482 *) ac_try_echo=$ac_try;;
16484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16485 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16487 grep -v '^ *+' conftest.er1 >conftest.err
16489 cat conftest.err >&5
16490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16491 (exit $ac_status); } >/dev/null && {
16492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16493 test ! -s conftest.err
16495 ac_header_preproc=yes
16497 echo "$as_me: failed program was
:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16500 ac_header_preproc=no
16503 rm -f conftest.err conftest.$ac_ext
16504 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16505 echo "${ECHO_T}$ac_header_preproc" >&6; }
16507 # So? What about this header?
16508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16510 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16511 echo "$as_me: WARNING
: iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16512 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: proceeding with the compiler
's result" >&5
16513 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result
" >&2;}
16514 ac_header_preproc=yes
16517 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: present but cannot be compiled
" >&5
16518 echo "$as_me: WARNING
: iksemel.h
: present but cannot be compiled
" >&2;}
16519 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: check
for missing prerequisite headers?
" >&5
16520 echo "$as_me: WARNING
: iksemel.h
: check
for missing prerequisite headers?
" >&2;}
16521 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: see the Autoconf documentation
" >&5
16522 echo "$as_me: WARNING
: iksemel.h
: see the Autoconf documentation
" >&2;}
16523 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16524 echo "$as_me: WARNING
: iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16525 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: proceeding with the preprocessor
's result" >&5
16526 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result
" >&2;}
16527 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: in the future
, the compiler will take precedence
" >&5
16528 echo "$as_me: WARNING
: iksemel.h
: in the future
, the compiler will take precedence
" >&2;}
16532 { echo "$as_me:$LINENO: checking
for iksemel.h
" >&5
16533 echo $ECHO_N "checking
for iksemel.h...
$ECHO_C" >&6; }
16534 if test "${ac_cv_header_iksemel_h+set}" = set; then
16535 echo $ECHO_N "(cached
) $ECHO_C" >&6
16537 ac_cv_header_iksemel_h=$ac_header_preproc
16539 { echo "$as_me:$LINENO: result
: $ac_cv_header_iksemel_h" >&5
16540 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16543 if test $ac_cv_header_iksemel_h = yes; then
16544 IKSEMEL_HEADER_FOUND=1
16546 IKSEMEL_HEADER_FOUND=0
16552 if test "x
${IKSEMEL_HEADER_FOUND}" = "x0
" ; then
16553 if test ! -z "${IKSEMEL_MANDATORY}" ;
16555 { echo "$as_me:$LINENO: ***" >&5
16556 echo "$as_me: ***" >&6;}
16557 { echo "$as_me:$LINENO: *** It appears that you
do not have the iksemel development package installed.
" >&5
16558 echo "$as_me: *** It appears that you
do not have the iksemel development package installed.
" >&6;}
16559 { echo "$as_me:$LINENO: *** Please
install it to include
${IKSEMEL_DESCRIP} support
, or re-run configure
" >&5
16560 echo "$as_me: *** Please
install it to include
${IKSEMEL_DESCRIP} support
, or re-run configure
" >&6;}
16561 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&5
16562 echo "$as_me: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&6;}
16571 cat >>confdefs.h <<_ACEOF
16572 #define HAVE_IKSEMEL 1
16576 elif test ! -z "${IKSEMEL_MANDATORY}";
16578 { echo "$as_me:$LINENO: ***" >&5
16579 echo "$as_me: ***" >&6;}
16580 { echo "$as_me:$LINENO: *** The
${IKSEMEL_DESCRIP} installation on this system appears to be broken.
" >&5
16581 echo "$as_me: *** The
${IKSEMEL_DESCRIP} installation on this system appears to be broken.
" >&6;}
16582 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
16583 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
16584 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&5
16585 echo "$as_me: *** without explicitly specifying
--with-${IKSEMEL_OPTION}" >&6;}
16591 if test "${PBX_IKSEMEL}" = 1; then
16593 if test "${USE_GNUTLS}" != "no
"; then
16595 if test "x
${GNUTLS_DIR}" != "x
"; then
16596 if test -d ${GNUTLS_DIR}/lib; then
16597 pbxlibdir="-L${GNUTLS_DIR}/lib
"
16599 pbxlibdir="-L${GNUTLS_DIR}"
16602 { echo "$as_me:$LINENO: checking
for gnutls_bye
in -lgnutls" >&5
16603 echo $ECHO_N "checking
for gnutls_bye
in -lgnutls...
$ECHO_C" >&6; }
16604 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
16605 echo $ECHO_N "(cached
) $ECHO_C" >&6
16607 ac_check_lib_save_LIBS=$LIBS
16608 LIBS="-lgnutls ${pbxlibdir} $LIBS"
16609 cat >conftest.$ac_ext <<_ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16616 /* Override any GCC internal prototype to avoid an error.
16617 Use char because int might match the return type of a GCC
16618 builtin and then its argument prototype would still apply. */
16622 char gnutls_bye ();
16626 return gnutls_bye ();
16631 rm -f conftest.$ac_objext conftest$ac_exeext
16632 if { (ac_try="$ac_link"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_link") 2>conftest.er1
16640 grep -v '^ *+' conftest.er1 >conftest.err
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16644 (exit $ac_status); } && {
16645 test -z "$ac_c_werror_flag" ||
16646 test ! -s conftest.err
16647 } && test -s conftest$ac_exeext &&
16648 $as_test_x conftest$ac_exeext; then
16649 ac_cv_lib_gnutls_gnutls_bye=yes
16651 echo "$as_me: failed program was
:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 ac_cv_lib_gnutls_gnutls_bye=no
16657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16658 conftest$ac_exeext conftest.$ac_ext
16659 LIBS=$ac_check_lib_save_LIBS
16661 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gnutls_gnutls_bye" >&5
16662 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
16663 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
16664 AST_GNUTLS_FOUND=yes
16666 AST_GNUTLS_FOUND=no
16670 if test "${AST_GNUTLS_FOUND}" = "yes"; then
16671 GNUTLS_LIB="-lgnutls "
16672 GNUTLS_HEADER_FOUND="1"
16673 if test "x
${GNUTLS_DIR}" != "x
"; then
16674 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
16675 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include
"
16676 if test "x
" != "x
" ; then
16677 as_ac_Header=`echo "ac_cv_header_
${GNUTLS_DIR}/include
/" | $as_tr_sh`
16678 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16679 { echo "$as_me:$LINENO: checking
for ${GNUTLS_DIR}/include
/" >&5
16680 echo $ECHO_N "checking
for ${GNUTLS_DIR}/include
/...
$ECHO_C" >&6; }
16681 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16682 echo $ECHO_N "(cached
) $ECHO_C" >&6
16684 ac_res=`eval echo '${'$as_ac_Header'}'`
16685 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16686 echo "${ECHO_T}$ac_res" >&6; }
16688 # Is the header compilable?
16689 { echo "$as_me:$LINENO: checking
${GNUTLS_DIR}/include
/ usability
" >&5
16690 echo $ECHO_N "checking
${GNUTLS_DIR}/include
/ usability...
$ECHO_C" >&6; }
16691 cat >conftest.$ac_ext <<_ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 $ac_includes_default
16698 #include <${GNUTLS_DIR}/include/>
16700 rm -f conftest.$ac_objext
16701 if { (ac_try="$ac_compile"
16702 case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_compile") 2>conftest.er1
16709 grep -v '^ *+' conftest.er1 >conftest.err
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16713 (exit $ac_status); } && {
16714 test -z "$ac_c_werror_flag" ||
16715 test ! -s conftest.err
16716 } && test -s conftest.$ac_objext; then
16717 ac_header_compiler=yes
16719 echo "$as_me: failed program was
:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 ac_header_compiler=no
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16727 echo "${ECHO_T}$ac_header_compiler" >&6; }
16729 # Is the header present?
16730 { echo "$as_me:$LINENO: checking
${GNUTLS_DIR}/include
/ presence
" >&5
16731 echo $ECHO_N "checking
${GNUTLS_DIR}/include
/ presence...
$ECHO_C" >&6; }
16732 cat >conftest.$ac_ext <<_ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h. */
16738 #include <${GNUTLS_DIR}/include/>
16740 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16748 grep -v '^ *+' conftest.er1 >conftest.err
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16752 (exit $ac_status); } >/dev/null && {
16753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16754 test ! -s conftest.err
16756 ac_header_preproc=yes
16758 echo "$as_me: failed program was
:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 ac_header_preproc=no
16764 rm -f conftest.err conftest.$ac_ext
16765 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16766 echo "${ECHO_T}$ac_header_preproc" >&6; }
16768 # So? What about this header?
16769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16771 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&5
16772 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16773 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: proceeding with the compiler
's result" >&5
16774 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result
" >&2;}
16775 ac_header_preproc=yes
16778 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: present but cannot be compiled
" >&5
16779 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: present but cannot be compiled
" >&2;}
16780 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: check
for missing prerequisite headers?
" >&5
16781 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: check
for missing prerequisite headers?
" >&2;}
16782 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: see the Autoconf documentation
" >&5
16783 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: see the Autoconf documentation
" >&2;}
16784 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&5
16785 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&2;}
16786 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: proceeding with the preprocessor
's result" >&5
16787 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result
" >&2;}
16788 { echo "$as_me:$LINENO: WARNING
: ${GNUTLS_DIR}/include
/: in the future
, the compiler will take precedence
" >&5
16789 echo "$as_me: WARNING
: ${GNUTLS_DIR}/include
/: in the future
, the compiler will take precedence
" >&2;}
16793 { echo "$as_me:$LINENO: checking
for ${GNUTLS_DIR}/include
/" >&5
16794 echo $ECHO_N "checking
for ${GNUTLS_DIR}/include
/...
$ECHO_C" >&6; }
16795 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16796 echo $ECHO_N "(cached
) $ECHO_C" >&6
16798 eval "$as_ac_Header=\
$ac_header_preproc"
16800 ac_res=`eval echo '${'$as_ac_Header'}'`
16801 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16802 echo "${ECHO_T}$ac_res" >&6; }
16805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16806 GNUTLS_HEADER_FOUND=1
16808 GNUTLS_HEADER_FOUND=0
16814 if test "x
" != "x
" ; then
16815 if test "${ac_cv_header_+set}" = set; then
16816 { echo "$as_me:$LINENO: checking
for " >&5
16817 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
16818 if test "${ac_cv_header_+set}" = set; then
16819 echo $ECHO_N "(cached
) $ECHO_C" >&6
16821 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
16822 echo "${ECHO_T}$ac_cv_header_" >&6; }
16824 # Is the header compilable?
16825 { echo "$as_me:$LINENO: checking usability
" >&5
16826 echo $ECHO_N "checking usability...
$ECHO_C" >&6; }
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 $ac_includes_default
16836 rm -f conftest.$ac_objext
16837 if { (ac_try="$ac_compile"
16838 case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_compile") 2>conftest.er1
16845 grep -v '^ *+' conftest.er1 >conftest.err
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16849 (exit $ac_status); } && {
16850 test -z "$ac_c_werror_flag" ||
16851 test ! -s conftest.err
16852 } && test -s conftest.$ac_objext; then
16853 ac_header_compiler=yes
16855 echo "$as_me: failed program was
:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 ac_header_compiler=no
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16863 echo "${ECHO_T}$ac_header_compiler" >&6; }
16865 # Is the header present?
16866 { echo "$as_me:$LINENO: checking presence
" >&5
16867 echo $ECHO_N "checking presence...
$ECHO_C" >&6; }
16868 cat >conftest.$ac_ext <<_ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h. */
16876 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16877 case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16884 grep -v '^ *+' conftest.er1 >conftest.err
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16888 (exit $ac_status); } >/dev/null && {
16889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16890 test ! -s conftest.err
16892 ac_header_preproc=yes
16894 echo "$as_me: failed program was
:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16897 ac_header_preproc=no
16900 rm -f conftest.err conftest.$ac_ext
16901 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16902 echo "${ECHO_T}$ac_header_preproc" >&6; }
16904 # So? What about this header?
16905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16907 { echo "$as_me:$LINENO: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&5
16908 echo "$as_me: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16909 { echo "$as_me:$LINENO: WARNING
: : proceeding with the compiler
's result" >&5
16910 echo "$as_me: WARNING: : proceeding with the compiler's result
" >&2;}
16911 ac_header_preproc=yes
16914 { echo "$as_me:$LINENO: WARNING
: : present but cannot be compiled
" >&5
16915 echo "$as_me: WARNING
: : present but cannot be compiled
" >&2;}
16916 { echo "$as_me:$LINENO: WARNING
: : check
for missing prerequisite headers?
" >&5
16917 echo "$as_me: WARNING
: : check
for missing prerequisite headers?
" >&2;}
16918 { echo "$as_me:$LINENO: WARNING
: : see the Autoconf documentation
" >&5
16919 echo "$as_me: WARNING
: : see the Autoconf documentation
" >&2;}
16920 { echo "$as_me:$LINENO: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&5
16921 echo "$as_me: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&2;}
16922 { echo "$as_me:$LINENO: WARNING
: : proceeding with the preprocessor
's result" >&5
16923 echo "$as_me: WARNING: : proceeding with the preprocessor's result
" >&2;}
16924 { echo "$as_me:$LINENO: WARNING
: : in the future
, the compiler will take precedence
" >&5
16925 echo "$as_me: WARNING
: : in the future
, the compiler will take precedence
" >&2;}
16929 { echo "$as_me:$LINENO: checking
for " >&5
16930 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
16931 if test "${ac_cv_header_+set}" = set; then
16932 echo $ECHO_N "(cached
) $ECHO_C" >&6
16934 ac_cv_header_=$ac_header_preproc
16936 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
16937 echo "${ECHO_T}$ac_cv_header_" >&6; }
16940 if test $ac_cv_header_ = yes; then
16941 GNUTLS_HEADER_FOUND=1
16943 GNUTLS_HEADER_FOUND=0
16949 if test "x
${GNUTLS_HEADER_FOUND}" = "x0
" ; then
16950 if test ! -z "${GNUTLS_MANDATORY}" ;
16952 { echo "$as_me:$LINENO: ***" >&5
16953 echo "$as_me: ***" >&6;}
16954 { echo "$as_me:$LINENO: *** It appears that you
do not have the gnutls development package installed.
" >&5
16955 echo "$as_me: *** It appears that you
do not have the gnutls development package installed.
" >&6;}
16956 { echo "$as_me:$LINENO: *** Please
install it to include
${GNUTLS_DESCRIP} support
, or re-run configure
" >&5
16957 echo "$as_me: *** Please
install it to include
${GNUTLS_DESCRIP} support
, or re-run configure
" >&6;}
16958 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&5
16959 echo "$as_me: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&6;}
16968 cat >>confdefs.h <<_ACEOF
16969 #define HAVE_GNUTLS 1
16973 elif test ! -z "${GNUTLS_MANDATORY}";
16975 { echo "$as_me:$LINENO: ***" >&5
16976 echo "$as_me: ***" >&6;}
16977 { echo "$as_me:$LINENO: *** The
${GNUTLS_DESCRIP} installation on this system appears to be broken.
" >&5
16978 echo "$as_me: *** The
${GNUTLS_DESCRIP} installation on this system appears to be broken.
" >&6;}
16979 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
16980 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
16981 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&5
16982 echo "$as_me: *** without explicitly specifying
--with-${GNUTLS_OPTION}" >&6;}
16987 if test "${PBX_GNUTLS}" = 1; then
16988 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
16992 if test "${USE_IMAP_TK}" != "no
"; then
16993 if test "${IMAP_TK_DIR}" = ""; then
16994 IMAP_TK_DIR=`pwd`"/..
/imap-2004g
"
16996 { echo "$as_me:$LINENO: checking
for UW IMAP Toolkit c-client library
" >&5
16997 echo $ECHO_N "checking
for UW IMAP Toolkit c-client library...
$ECHO_C" >&6; }
16998 saved_cppflags="${CPPFLAGS}"
16999 saved_libs="${LIBS}"
17000 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
17001 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
17003 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client
"
17004 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17005 cat >conftest.$ac_ext <<_ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17011 #include "c-client.h"
17012 void mm_searched (MAILSTREAM *stream,unsigned long number)
17015 void mm_exists (MAILSTREAM *stream,unsigned long number)
17018 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17021 void mm_flags (MAILSTREAM *stream,unsigned long number)
17024 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17027 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17030 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17033 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17036 void mm_log (char *string,long errflg)
17039 void mm_dlog (char *string)
17042 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17045 void mm_critical (MAILSTREAM *stream)
17048 void mm_nocritical (MAILSTREAM *stream)
17051 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17054 void mm_fatal (char *string)
17061 MAILSTREAM *foo = mail_open(NULL, "", 0);
17068 rm -f conftest.$ac_objext conftest$ac_exeext
17069 if { (ac_try="$ac_link"
17070 case "(($ac_try" in
17071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17072 *) ac_try_echo
=$ac_try;;
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_link") 2>conftest.er1
17077 grep -v '^ *+' conftest.er1
>conftest.err
17079 cat conftest.err
>&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } && {
17082 test -z "$ac_c_werror_flag" ||
17083 test ! -s conftest.err
17084 } && test -s conftest
$ac_exeext &&
17085 $as_test_x conftest
$ac_exeext; then
17086 ac_cv_imap_tk
="yes"
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.
$ac_ext >&5
17095 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17096 conftest
$ac_exeext conftest.
$ac_ext
17097 if test "${ac_cv_imap_tk}" = "yes"; then
17098 cat >conftest.
$ac_ext <<_ACEOF
17101 cat confdefs.h
>>conftest.
$ac_ext
17102 cat >>conftest.
$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 #include "c-client.h"
17105 void mm_searched (MAILSTREAM *stream,unsigned long number)
17108 void mm_exists (MAILSTREAM *stream,unsigned long number)
17111 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17114 void mm_flags (MAILSTREAM *stream,unsigned long number)
17117 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17120 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17123 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17126 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17129 void mm_log (char *string,long errflg)
17132 void mm_dlog (char *string)
17135 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17138 void mm_critical (MAILSTREAM *stream)
17141 void mm_nocritical (MAILSTREAM *stream)
17144 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17147 void mm_fatal (char *string)
17154 long check = mail_expunge_full(NULL, "", 0);
17161 rm -f conftest.
$ac_objext conftest
$ac_exeext
17162 if { (ac_try
="$ac_link"
17163 case "(($ac_try" in
17164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_link") 2>conftest.er1
17170 grep -v '^ *+' conftest.er1 >conftest.err
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } && {
17175 test -z "$ac_c_werror_flag" ||
17176 test ! -s conftest.err
17177 } && test -s conftest$ac_exeext &&
17178 $as_test_x conftest$ac_exeext; then
17179 ac_cv_imap_tk2006="yes"
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17184 ac_cv_imap_tk2006="no"
17188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17189 conftest$ac_exeext conftest.$ac_ext
17191 CPPFLAGS="${saved_cppflags}"
17192 LIBS="${saved_libs}"
17193 if test "${ac_cv_imap_tk}" = "yes"; then
17194 { echo "$as_me:$LINENO: result: yes" >&5
17195 echo "${ECHO_T}yes" >&6; }
17196 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17197 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
17200 cat >>confdefs.h <<\_ACEOF
17201 #define HAVE_IMAP_TK 1
17204 if test "${ac_cv_imap_tk2006}" = "yes"; then
17206 cat >>confdefs.h <<\_ACEOF
17207 #define HAVE_IMAP_TK2006 1
17211 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17212 { echo "$as_me:$LINENO: result: no" >&5
17213 echo "${ECHO_T}no" >&6; }
17214 { echo "$as_me:$LINENO: ***" >&5
17215 echo "$as_me: ***" >&6;}
17216 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
17217 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
17218 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17219 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17220 { echo "$as_me:$LINENO: *** including --without-imap." >&5
17221 echo "$as_me: *** including --without-imap." >&6;}
17224 { echo "$as_me:$LINENO: result: no" >&5
17225 echo "${ECHO_T}no" >&6; }
17230 ac_cpp='$CXXCPP $CPPFLAGS'
17231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17236 if test "${USE_KDE}" != "no"; then
17237 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
17238 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
17239 saved_libs="${LIBS}"
17240 saved_cppflags="${CPPFLAGS}"
17241 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
17242 if test -d ${KDE_DIR}/lib; then
17243 kdelibdir="${KDE_DIR}/lib"
17245 kdelibdir="${KDE_DIR}"
17247 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17250 cat >conftest.$ac_ext <<_ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 #include "kcrash.h"
17260 KCrash::defaultCrashHandler(1);
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17270 *) ac_try_echo
=$ac_try;;
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_link") 2>conftest.er1
17275 grep -v '^ *+' conftest.er1
>conftest.err
17277 cat conftest.err
>&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } && {
17280 test -z "$ac_cxx_werror_flag" ||
17281 test ! -s conftest.err
17282 } && test -s conftest
$ac_exeext &&
17283 $as_test_x conftest
$ac_exeext; then
17284 ac_cv_lib_kde_crash
="yes"
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.
$ac_ext >&5
17289 ac_cv_lib_kde_crash
="no"
17292 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17293 conftest
$ac_exeext conftest.
$ac_ext
17295 LIBS
="${saved_libs}"
17296 CPPFLAGS
="${saved_cppflags}"
17298 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17299 { echo "$as_me:$LINENO: result: yes" >&5
17300 echo "${ECHO_T}yes" >&6; }
17301 KDE_LIB
="-lkdecore -lkdeui"
17302 if test "${KDE_DIR}" != ""; then
17303 KDE_LIB
="-L${kdelibdir} ${KDE_LIB}"
17304 KDE_INCLUDE
="-I${KDE_DIR}/include"
17308 cat >>confdefs.h
<<\_ACEOF
17309 #define HAVE_LIBKDE 1
17312 elif test ! -z "${KDE_MANDATORY}"; then
17313 { echo "$as_me:$LINENO: result: no" >&5
17314 echo "${ECHO_T}no" >&6; }
17315 { echo "$as_me:$LINENO: ***" >&5
17316 echo "$as_me: ***" >&6;}
17317 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
17318 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
17319 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17320 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17321 { echo "$as_me:$LINENO: *** including --without-kde." >&5
17322 echo "$as_me: *** including --without-kde." >&6;}
17325 { echo "$as_me:$LINENO: result: no" >&5
17326 echo "${ECHO_T}no" >&6; }
17329 if test "${PBX_KDE}" = 1; then
17330 if test -n "$ac_tool_prefix"; then
17331 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
17332 set dummy
${ac_tool_prefix}kdeinit
; ac_word
=$2
17333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17335 if test "${ac_cv_path_KDEINIT+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 ac_cv_path_KDEINIT
="$KDEINIT" # Let the user override the test with a path.
17343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17344 for as_dir
in $PATH
17347 test -z "$as_dir" && as_dir
=.
17348 for ac_exec_ext
in '' $ac_executable_extensions; do
17349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17350 ac_cv_path_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
17351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17361 KDEINIT
=$ac_cv_path_KDEINIT
17362 if test -n "$KDEINIT"; then
17363 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
17364 echo "${ECHO_T}$KDEINIT" >&6; }
17366 { echo "$as_me:$LINENO: result: no" >&5
17367 echo "${ECHO_T}no" >&6; }
17372 if test -z "$ac_cv_path_KDEINIT"; then
17373 ac_pt_KDEINIT
=$KDEINIT
17374 # Extract the first word of "kdeinit", so it can be a program name with args.
17375 set dummy kdeinit
; ac_word
=$2
17376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17378 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 case $ac_pt_KDEINIT in
17383 ac_cv_path_ac_pt_KDEINIT
="$ac_pt_KDEINIT" # Let the user override the test with a path.
17386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17387 for as_dir
in $PATH
17390 test -z "$as_dir" && as_dir
=.
17391 for ac_exec_ext
in '' $ac_executable_extensions; do
17392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17393 ac_cv_path_ac_pt_KDEINIT
="$as_dir/$ac_word$ac_exec_ext"
17394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17404 ac_pt_KDEINIT
=$ac_cv_path_ac_pt_KDEINIT
17405 if test -n "$ac_pt_KDEINIT"; then
17406 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
17407 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17409 { echo "$as_me:$LINENO: result: no" >&5
17410 echo "${ECHO_T}no" >&6; }
17413 if test "x$ac_pt_KDEINIT" = x
; then
17416 case $cross_compiling:$ac_tool_warned in
17418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17419 whose name does not start with the host triplet. If you think this
17420 configuration is useful to you, please write to autoconf@gnu.org." >&5
17421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17422 whose name does not start with the host triplet. If you think this
17423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17424 ac_tool_warned
=yes ;;
17426 KDEINIT
=$ac_pt_KDEINIT
17429 KDEINIT
="$ac_cv_path_KDEINIT"
17432 if test ! x
"${KDEINIT}" = xNo
; then
17433 KDEDIR
=$
(${DIRNAME} ${KDEINIT})
17434 KDEDIR
=$
(${DIRNAME} ${KDEDIR})
17440 ac_cpp
='$CPP $CPPFLAGS'
17441 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17442 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17443 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17447 if test "${USE_MISDN}" != "no"; then
17449 if test "x${MISDN_DIR}" != "x"; then
17450 if test -d ${MISDN_DIR}/lib
; then
17451 pbxlibdir
="-L${MISDN_DIR}/lib"
17453 pbxlibdir
="-L${MISDN_DIR}"
17456 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
17457 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
17458 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17461 ac_check_lib_save_LIBS
=$LIBS
17462 LIBS
="-lmISDN ${pbxlibdir} $LIBS"
17463 cat >conftest.
$ac_ext <<_ACEOF
17466 cat confdefs.h
>>conftest.
$ac_ext
17467 cat >>conftest.
$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17470 /* Override any GCC internal prototype to avoid an error.
17471 Use char because int might match the return type of a GCC
17472 builtin and then its argument prototype would still apply. */
17476 char mISDN_open ();
17480 return mISDN_open ();
17485 rm -f conftest.
$ac_objext conftest
$ac_exeext
17486 if { (ac_try
="$ac_link"
17487 case "(($ac_try" in
17488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_link") 2>conftest.er1
17494 grep -v '^ *+' conftest.er1 >conftest.err
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } && {
17499 test -z "$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17501 } && test -s conftest$ac_exeext &&
17502 $as_test_x conftest$ac_exeext; then
17503 ac_cv_lib_mISDN_mISDN_open=yes
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17508 ac_cv_lib_mISDN_mISDN_open=no
17511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17512 conftest$ac_exeext conftest.$ac_ext
17513 LIBS=$ac_check_lib_save_LIBS
17515 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
17516 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
17517 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
17518 AST_MISDN_FOUND=yes
17524 if test "${AST_MISDN_FOUND}" = "yes"; then
17525 MISDN_LIB="-lmISDN "
17526 MISDN_HEADER_FOUND="1"
17527 if test "x${MISDN_DIR}" != "x"; then
17528 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
17529 MISDN_INCLUDE="-I${MISDN_DIR}/include"
17530 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17531 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" |
$as_tr_sh`
17532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17533 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17534 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 ac_res=`eval echo '${'$as_ac_Header'}'`
17539 { echo "$as_me:$LINENO: result: $ac_res" >&5
17540 echo "${ECHO_T}$ac_res" >&6; }
17542 # Is the header compilable?
17543 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
17544 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17545 cat >conftest.$ac_ext <<_ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h. */
17551 $ac_includes_default
17552 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17554 rm -f conftest.$ac_objext
17555 if { (ac_try="$ac_compile"
17556 case "(($ac_try" in
17557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17558 *) ac_try_echo
=$ac_try;;
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_compile") 2>conftest.er1
17563 grep -v '^ *+' conftest.er1
>conftest.err
17565 cat conftest.err
>&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } && {
17568 test -z "$ac_c_werror_flag" ||
17569 test ! -s conftest.err
17570 } && test -s conftest.
$ac_objext; then
17571 ac_header_compiler
=yes
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.
$ac_ext >&5
17576 ac_header_compiler
=no
17579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17581 echo "${ECHO_T}$ac_header_compiler" >&6; }
17583 # Is the header present?
17584 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
17585 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17586 cat >conftest.
$ac_ext <<_ACEOF
17589 cat confdefs.h
>>conftest.
$ac_ext
17590 cat >>conftest.
$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17594 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17595 case "(($ac_try" in
17596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17602 grep -v '^ *+' conftest.er1 >conftest.err
17604 cat conftest.err >&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } >/dev/null && {
17607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17608 test ! -s conftest.err
17610 ac_header_preproc=yes
17612 echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17615 ac_header_preproc=no
17618 rm -f conftest.err conftest.$ac_ext
17619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17620 echo "${ECHO_T}$ac_header_preproc" >&6; }
17622 # So? What about this header?
17623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17625 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17626 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17627 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17628 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17629 ac_header_preproc=yes
17632 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17633 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17634 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17635 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17636 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17637 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17638 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17639 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17640 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17641 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17642 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17643 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17647 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17648 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17652 eval "$as_ac_Header=\$ac_header_preproc"
17654 ac_res=`eval echo '${'$as_ac_Header'}'`
17655 { echo "$as_me:$LINENO: result: $ac_res" >&5
17656 echo "${ECHO_T}$ac_res" >&6; }
17659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17660 MISDN_HEADER_FOUND=1
17662 MISDN_HEADER_FOUND=0
17668 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17669 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17670 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17671 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17672 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17676 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17678 # Is the header compilable?
17679 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
17680 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17681 cat >conftest.$ac_ext <<_ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 $ac_includes_default
17688 #include <mISDNuser/mISDNlib.h>
17690 rm -f conftest.$ac_objext
17691 if { (ac_try="$ac_compile"
17692 case "(($ac_try" in
17693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17694 *) ac_try_echo
=$ac_try;;
17696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17697 (eval "$ac_compile") 2>conftest.er1
17699 grep -v '^ *+' conftest.er1
>conftest.err
17701 cat conftest.err
>&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } && {
17704 test -z "$ac_c_werror_flag" ||
17705 test ! -s conftest.err
17706 } && test -s conftest.
$ac_objext; then
17707 ac_header_compiler
=yes
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.
$ac_ext >&5
17712 ac_header_compiler
=no
17715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17717 echo "${ECHO_T}$ac_header_compiler" >&6; }
17719 # Is the header present?
17720 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
17721 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17722 cat >conftest.
$ac_ext <<_ACEOF
17725 cat confdefs.h
>>conftest.
$ac_ext
17726 cat >>conftest.
$ac_ext <<_ACEOF
17727 /* end confdefs.h. */
17728 #include <mISDNuser/mISDNlib.h>
17730 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17731 case "(($ac_try" in
17732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17733 *) ac_try_echo=$ac_try;;
17735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17738 grep -v '^ *+' conftest.er1 >conftest.err
17740 cat conftest.err >&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } >/dev/null && {
17743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17744 test ! -s conftest.err
17746 ac_header_preproc=yes
17748 echo "$as_me: failed program was:" >&5
17749 sed 's/^/| /' conftest.$ac_ext >&5
17751 ac_header_preproc=no
17754 rm -f conftest.err conftest.$ac_ext
17755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17756 echo "${ECHO_T}$ac_header_preproc" >&6; }
17758 # So? What about this header?
17759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17761 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17762 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17763 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17764 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17765 ac_header_preproc=yes
17768 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17769 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17770 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17771 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17772 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17773 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17774 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17775 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17776 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17777 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17778 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17779 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17783 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17784 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17785 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17788 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
17790 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17791 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17794 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
17795 MISDN_HEADER_FOUND=1
17797 MISDN_HEADER_FOUND=0
17803 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
17804 if test ! -z "${MISDN_MANDATORY}" ;
17806 { echo "$as_me:$LINENO: ***" >&5
17807 echo "$as_me: ***" >&6;}
17808 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
17809 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
17810 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
17811 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
17812 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17813 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17822 cat >>confdefs.h <<_ACEOF
17823 #define HAVE_MISDN 1
17827 elif test ! -z "${MISDN_MANDATORY}";
17829 { echo "$as_me:$LINENO: ***" >&5
17830 echo "$as_me: ***" >&6;}
17831 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
17832 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
17833 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17834 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17835 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17836 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17842 if test "${PBX_MISDN}" = 1; then
17844 if test "${USE_ISDNNET}" != "no"; then
17846 if test "x${ISDNNET_DIR}" != "x"; then
17847 if test -d ${ISDNNET_DIR}/lib; then
17848 pbxlibdir="-L${ISDNNET_DIR}/lib"
17850 pbxlibdir="-L${ISDNNET_DIR}"
17853 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
17854 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
17855 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
17856 echo $ECHO_N "(cached) $ECHO_C" >&6
17858 ac_check_lib_save_LIBS=$LIBS
17859 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
17860 cat >conftest.$ac_ext <<_ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17867 /* Override any GCC internal prototype to avoid an error.
17868 Use char because int might match the return type of a GCC
17869 builtin and then its argument prototype would still apply. */
17873 char init_manager ();
17877 return init_manager ();
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17886 *) ac_try_echo
=$ac_try;;
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>conftest.er1
17891 grep -v '^ *+' conftest.er1
>conftest.err
17893 cat conftest.err
>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } && {
17896 test -z "$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17898 } && test -s conftest
$ac_exeext &&
17899 $as_test_x conftest
$ac_exeext; then
17900 ac_cv_lib_isdnnet_init_manager
=yes
17902 echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.
$ac_ext >&5
17905 ac_cv_lib_isdnnet_init_manager
=no
17908 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17909 conftest
$ac_exeext conftest.
$ac_ext
17910 LIBS
=$ac_check_lib_save_LIBS
17912 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
17913 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
17914 if test $ac_cv_lib_isdnnet_init_manager = yes; then
17915 AST_ISDNNET_FOUND
=yes
17917 AST_ISDNNET_FOUND
=no
17921 if test "${AST_ISDNNET_FOUND}" = "yes"; then
17922 ISDNNET_LIB
="-lisdnnet -lmISDN -lpthread"
17923 ISDNNET_HEADER_FOUND
="1"
17924 if test "x${ISDNNET_DIR}" != "x"; then
17925 ISDNNET_LIB
="${pbxlibdir} ${ISDNNET_LIB}"
17926 ISDNNET_INCLUDE
="-I${ISDNNET_DIR}/include"
17927 if test "xmISDNuser/isdn_net.h" != "x" ; then
17928 as_ac_Header
=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
17929 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17930 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
17931 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17932 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17935 ac_res
=`eval echo '${'$as_ac_Header'}'`
17936 { echo "$as_me:$LINENO: result: $ac_res" >&5
17937 echo "${ECHO_T}$ac_res" >&6; }
17939 # Is the header compilable?
17940 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
17941 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
17942 cat >conftest.
$ac_ext <<_ACEOF
17945 cat confdefs.h
>>conftest.
$ac_ext
17946 cat >>conftest.
$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17948 $ac_includes_default
17949 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
17951 rm -f conftest.
$ac_objext
17952 if { (ac_try
="$ac_compile"
17953 case "(($ac_try" in
17954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_compile") 2>conftest.er1
17960 grep -v '^ *+' conftest.er1 >conftest.err
17962 cat conftest.err >&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } && {
17965 test -z "$ac_c_werror_flag" ||
17966 test ! -s conftest.err
17967 } && test -s conftest.$ac_objext; then
17968 ac_header_compiler=yes
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_header_compiler=no
17976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17978 echo "${ECHO_T}$ac_header_compiler" >&6; }
17980 # Is the header present?
17981 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
17982 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
17983 cat >conftest.$ac_ext <<_ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
17991 if { (ac_try="$ac_cpp conftest.$ac_ext"
17992 case "(($ac_try" in
17993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17994 *) ac_try_echo
=$ac_try;;
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17999 grep -v '^ *+' conftest.er1
>conftest.err
18001 cat conftest.err
>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } >/dev
/null
&& {
18004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18005 test ! -s conftest.err
18007 ac_header_preproc
=yes
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.
$ac_ext >&5
18012 ac_header_preproc
=no
18015 rm -f conftest.err conftest.
$ac_ext
18016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18017 echo "${ECHO_T}$ac_header_preproc" >&6; }
18019 # So? What about this header?
18020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18022 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18023 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18025 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18026 ac_header_preproc
=yes
18029 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18030 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18031 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18032 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18033 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18034 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18035 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18036 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18037 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18038 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18039 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18040 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18044 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18045 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18046 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18049 eval "$as_ac_Header=\$ac_header_preproc"
18051 ac_res
=`eval echo '${'$as_ac_Header'}'`
18052 { echo "$as_me:$LINENO: result: $ac_res" >&5
18053 echo "${ECHO_T}$ac_res" >&6; }
18056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18057 ISDNNET_HEADER_FOUND
=1
18059 ISDNNET_HEADER_FOUND
=0
18065 if test "xmISDNuser/isdn_net.h" != "x" ; then
18066 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18067 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18068 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18069 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18072 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18073 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18075 # Is the header compilable?
18076 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
18077 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18078 cat >conftest.
$ac_ext <<_ACEOF
18081 cat confdefs.h
>>conftest.
$ac_ext
18082 cat >>conftest.
$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 $ac_includes_default
18085 #include <mISDNuser/isdn_net.h>
18087 rm -f conftest.
$ac_objext
18088 if { (ac_try
="$ac_compile"
18089 case "(($ac_try" in
18090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094 (eval "$ac_compile") 2>conftest.er1
18096 grep -v '^ *+' conftest.er1 >conftest.err
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } && {
18101 test -z "$ac_c_werror_flag" ||
18102 test ! -s conftest.err
18103 } && test -s conftest.$ac_objext; then
18104 ac_header_compiler=yes
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ac_header_compiler=no
18112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18114 echo "${ECHO_T}$ac_header_compiler" >&6; }
18116 # Is the header present?
18117 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
18118 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18119 cat >conftest.$ac_ext <<_ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h. */
18125 #include <mISDNuser/isdn_net.h>
18127 if { (ac_try="$ac_cpp conftest.$ac_ext"
18128 case "(($ac_try" in
18129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18130 *) ac_try_echo
=$ac_try;;
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18135 grep -v '^ *+' conftest.er1
>conftest.err
18137 cat conftest.err
>&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } >/dev
/null
&& {
18140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18141 test ! -s conftest.err
18143 ac_header_preproc
=yes
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.
$ac_ext >&5
18148 ac_header_preproc
=no
18151 rm -f conftest.err conftest.
$ac_ext
18152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18153 echo "${ECHO_T}$ac_header_preproc" >&6; }
18155 # So? What about this header?
18156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18158 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18159 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18160 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18161 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18162 ac_header_preproc
=yes
18165 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18166 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18167 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18168 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18170 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18172 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18174 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18175 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18176 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18180 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18181 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18182 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18183 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 ac_cv_header_mISDNuser_isdn_net_h
=$ac_header_preproc
18187 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18188 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18191 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18192 ISDNNET_HEADER_FOUND
=1
18194 ISDNNET_HEADER_FOUND
=0
18200 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
18201 if test ! -z "${ISDNNET_MANDATORY}" ;
18203 { echo "$as_me:$LINENO: ***" >&5
18204 echo "$as_me: ***" >&6;}
18205 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
18206 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
18207 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
18208 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
18209 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18210 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18219 cat >>confdefs.h
<<_ACEOF
18220 #define HAVE_ISDNNET 1
18224 elif test ! -z "${ISDNNET_MANDATORY}";
18226 { echo "$as_me:$LINENO: ***" >&5
18227 echo "$as_me: ***" >&6;}
18228 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
18229 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
18230 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18231 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18232 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18233 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18239 if test "${USE_SUPPSERV}" != "no"; then
18241 if test "x${SUPPSERV_DIR}" != "x"; then
18242 if test -d ${SUPPSERV_DIR}/lib
; then
18243 pbxlibdir
="-L${SUPPSERV_DIR}/lib"
18245 pbxlibdir
="-L${SUPPSERV_DIR}"
18248 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
18249 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
18250 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 ac_check_lib_save_LIBS
=$LIBS
18254 LIBS
="-lsuppserv ${pbxlibdir} $LIBS"
18255 cat >conftest.
$ac_ext <<_ACEOF
18258 cat confdefs.h
>>conftest.
$ac_ext
18259 cat >>conftest.
$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18262 /* Override any GCC internal prototype to avoid an error.
18263 Use char because int might match the return type of a GCC
18264 builtin and then its argument prototype would still apply. */
18272 return encodeFac ();
18277 rm -f conftest.
$ac_objext conftest
$ac_exeext
18278 if { (ac_try
="$ac_link"
18279 case "(($ac_try" in
18280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18281 *) ac_try_echo=$ac_try;;
18283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18284 (eval "$ac_link") 2>conftest.er1
18286 grep -v '^ *+' conftest.er1 >conftest.err
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } && {
18291 test -z "$ac_c_werror_flag" ||
18292 test ! -s conftest.err
18293 } && test -s conftest$ac_exeext &&
18294 $as_test_x conftest$ac_exeext; then
18295 ac_cv_lib_suppserv_encodeFac=yes
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18300 ac_cv_lib_suppserv_encodeFac=no
18303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18304 conftest$ac_exeext conftest.$ac_ext
18305 LIBS=$ac_check_lib_save_LIBS
18307 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
18308 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18309 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18310 AST_SUPPSERV_FOUND=yes
18312 AST_SUPPSERV_FOUND=no
18316 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18317 SUPPSERV_LIB="-lsuppserv "
18318 SUPPSERV_HEADER_FOUND="1"
18319 if test "x${SUPPSERV_DIR}" != "x"; then
18320 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18321 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
18322 if test "xmISDNuser/suppserv.h" != "x" ; then
18323 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" |
$as_tr_sh`
18324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18325 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18326 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 ac_res=`eval echo '${'$as_ac_Header'}'`
18331 { echo "$as_me:$LINENO: result: $ac_res" >&5
18332 echo "${ECHO_T}$ac_res" >&6; }
18334 # Is the header compilable?
18335 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
18336 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18337 cat >conftest.$ac_ext <<_ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343 $ac_includes_default
18344 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18346 rm -f conftest.$ac_objext
18347 if { (ac_try="$ac_compile"
18348 case "(($ac_try" in
18349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18350 *) ac_try_echo
=$ac_try;;
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_compile") 2>conftest.er1
18355 grep -v '^ *+' conftest.er1
>conftest.err
18357 cat conftest.err
>&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } && {
18360 test -z "$ac_c_werror_flag" ||
18361 test ! -s conftest.err
18362 } && test -s conftest.
$ac_objext; then
18363 ac_header_compiler
=yes
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.
$ac_ext >&5
18368 ac_header_compiler
=no
18371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18373 echo "${ECHO_T}$ac_header_compiler" >&6; }
18375 # Is the header present?
18376 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
18377 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18378 cat >conftest.
$ac_ext <<_ACEOF
18381 cat confdefs.h
>>conftest.
$ac_ext
18382 cat >>conftest.
$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18386 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18387 case "(($ac_try" in
18388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18394 grep -v '^ *+' conftest.er1 >conftest.err
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } >/dev/null && {
18399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18400 test ! -s conftest.err
18402 ac_header_preproc=yes
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18407 ac_header_preproc=no
18410 rm -f conftest.err conftest.$ac_ext
18411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18412 echo "${ECHO_T}$ac_header_preproc" >&6; }
18414 # So? What about this header?
18415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18417 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18418 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18420 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18421 ac_header_preproc=yes
18424 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
18425 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18427 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18429 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18431 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18433 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18435 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18439 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18440 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18442 echo $ECHO_N "(cached) $ECHO_C" >&6
18444 eval "$as_ac_Header=\$ac_header_preproc"
18446 ac_res=`eval echo '${'$as_ac_Header'}'`
18447 { echo "$as_me:$LINENO: result: $ac_res" >&5
18448 echo "${ECHO_T}$ac_res" >&6; }
18451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18452 SUPPSERV_HEADER_FOUND=1
18454 SUPPSERV_HEADER_FOUND=0
18460 if test "xmISDNuser/suppserv.h" != "x" ; then
18461 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18462 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18463 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18464 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18467 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18468 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18470 # Is the header compilable?
18471 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
18472 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18473 cat >conftest.$ac_ext <<_ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h. */
18479 $ac_includes_default
18480 #include <mISDNuser/suppserv.h>
18482 rm -f conftest.$ac_objext
18483 if { (ac_try="$ac_compile"
18484 case "(($ac_try" in
18485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18486 *) ac_try_echo
=$ac_try;;
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_compile") 2>conftest.er1
18491 grep -v '^ *+' conftest.er1
>conftest.err
18493 cat conftest.err
>&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } && {
18496 test -z "$ac_c_werror_flag" ||
18497 test ! -s conftest.err
18498 } && test -s conftest.
$ac_objext; then
18499 ac_header_compiler
=yes
18501 echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.
$ac_ext >&5
18504 ac_header_compiler
=no
18507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18509 echo "${ECHO_T}$ac_header_compiler" >&6; }
18511 # Is the header present?
18512 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
18513 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18514 cat >conftest.
$ac_ext <<_ACEOF
18517 cat confdefs.h
>>conftest.
$ac_ext
18518 cat >>conftest.
$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 #include <mISDNuser/suppserv.h>
18522 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18523 case "(($ac_try" in
18524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18530 grep -v '^ *+' conftest.er1 >conftest.err
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } >/dev/null && {
18535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18536 test ! -s conftest.err
18538 ac_header_preproc=yes
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18543 ac_header_preproc=no
18546 rm -f conftest.err conftest.$ac_ext
18547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18548 echo "${ECHO_T}$ac_header_preproc" >&6; }
18550 # So? What about this header?
18551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18553 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18554 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18555 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18556 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18557 ac_header_preproc=yes
18560 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
18561 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18562 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18563 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18564 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18565 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18567 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18568 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18569 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18570 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18571 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18575 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18576 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18577 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18578 echo $ECHO_N "(cached) $ECHO_C" >&6
18580 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
18582 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18583 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18586 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
18587 SUPPSERV_HEADER_FOUND=1
18589 SUPPSERV_HEADER_FOUND=0
18595 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
18596 if test ! -z "${SUPPSERV_MANDATORY}" ;
18598 { echo "$as_me:$LINENO: ***" >&5
18599 echo "$as_me: ***" >&6;}
18600 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
18601 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
18602 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
18603 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
18604 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18605 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18609 SUPPSERV_INCLUDE=""
18614 cat >>confdefs.h <<_ACEOF
18615 #define HAVE_SUPPSERV 1
18619 elif test ! -z "${SUPPSERV_MANDATORY}";
18621 { echo "$as_me:$LINENO: ***" >&5
18622 echo "$as_me: ***" >&6;}
18623 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
18624 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
18625 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18626 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18627 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18628 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18636 if test "${USE_NBS}" != "no"; then
18638 if test "x${NBS_DIR}" != "x"; then
18639 if test -d ${NBS_DIR}/lib; then
18640 pbxlibdir="-L${NBS_DIR}/lib"
18642 pbxlibdir="-L${NBS_DIR}"
18645 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
18646 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
18647 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 ac_check_lib_save_LIBS=$LIBS
18651 LIBS="-lnbs ${pbxlibdir} $LIBS"
18652 cat >conftest.$ac_ext <<_ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h. */
18659 /* Override any GCC internal prototype to avoid an error.
18660 Use char because int might match the return type of a GCC
18661 builtin and then its argument prototype would still apply. */
18665 char nbs_connect ();
18669 return nbs_connect ();
18674 rm -f conftest.$ac_objext conftest$ac_exeext
18675 if { (ac_try="$ac_link"
18676 case "(($ac_try" in
18677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18678 *) ac_try_echo
=$ac_try;;
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_link") 2>conftest.er1
18683 grep -v '^ *+' conftest.er1
>conftest.err
18685 cat conftest.err
>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } && {
18688 test -z "$ac_c_werror_flag" ||
18689 test ! -s conftest.err
18690 } && test -s conftest
$ac_exeext &&
18691 $as_test_x conftest
$ac_exeext; then
18692 ac_cv_lib_nbs_nbs_connect
=yes
18694 echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.
$ac_ext >&5
18697 ac_cv_lib_nbs_nbs_connect
=no
18700 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18701 conftest
$ac_exeext conftest.
$ac_ext
18702 LIBS
=$ac_check_lib_save_LIBS
18704 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
18705 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
18706 if test $ac_cv_lib_nbs_nbs_connect = yes; then
18713 if test "${AST_NBS_FOUND}" = "yes"; then
18715 NBS_HEADER_FOUND
="1"
18716 if test "x${NBS_DIR}" != "x"; then
18717 NBS_LIB
="${pbxlibdir} ${NBS_LIB}"
18718 NBS_INCLUDE
="-I${NBS_DIR}/include"
18719 if test "xnbs.h" != "x" ; then
18720 as_ac_Header
=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
18721 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18722 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18723 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.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 ac_res
=`eval echo '${'$as_ac_Header'}'`
18728 { echo "$as_me:$LINENO: result: $ac_res" >&5
18729 echo "${ECHO_T}$ac_res" >&6; }
18731 # Is the header compilable?
18732 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
18733 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
18734 cat >conftest.
$ac_ext <<_ACEOF
18737 cat confdefs.h
>>conftest.
$ac_ext
18738 cat >>conftest.
$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 $ac_includes_default
18741 #include <${NBS_DIR}/include/nbs.h>
18743 rm -f conftest.
$ac_objext
18744 if { (ac_try
="$ac_compile"
18745 case "(($ac_try" in
18746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_compile") 2>conftest.er1
18752 grep -v '^ *+' conftest.er1 >conftest.err
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } && {
18757 test -z "$ac_c_werror_flag" ||
18758 test ! -s conftest.err
18759 } && test -s conftest.$ac_objext; then
18760 ac_header_compiler=yes
18762 echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18765 ac_header_compiler=no
18768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18770 echo "${ECHO_T}$ac_header_compiler" >&6; }
18772 # Is the header present?
18773 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
18774 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
18775 cat >conftest.$ac_ext <<_ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18781 #include <${NBS_DIR}/include/nbs.h>
18783 if { (ac_try="$ac_cpp conftest.$ac_ext"
18784 case "(($ac_try" in
18785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18786 *) ac_try_echo
=$ac_try;;
18788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18791 grep -v '^ *+' conftest.er1
>conftest.err
18793 cat conftest.err
>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } >/dev
/null
&& {
18796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18797 test ! -s conftest.err
18799 ac_header_preproc
=yes
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.
$ac_ext >&5
18804 ac_header_preproc
=no
18807 rm -f conftest.err conftest.
$ac_ext
18808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18809 echo "${ECHO_T}$ac_header_preproc" >&6; }
18811 # So? What about this header?
18812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18814 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
18815 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18816 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
18817 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
18818 ac_header_preproc
=yes
18821 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
18822 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
18823 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
18824 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
18825 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
18826 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
18827 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
18828 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
18830 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
18831 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
18832 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
18836 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18837 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
18838 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18841 eval "$as_ac_Header=\$ac_header_preproc"
18843 ac_res
=`eval echo '${'$as_ac_Header'}'`
18844 { echo "$as_me:$LINENO: result: $ac_res" >&5
18845 echo "${ECHO_T}$ac_res" >&6; }
18848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18857 if test "xnbs.h" != "x" ; then
18858 if test "${ac_cv_header_nbs_h+set}" = set; then
18859 { echo "$as_me:$LINENO: checking for nbs.h" >&5
18860 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
18861 if test "${ac_cv_header_nbs_h+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18864 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
18865 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
18867 # Is the header compilable?
18868 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
18869 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
18870 cat >conftest.
$ac_ext <<_ACEOF
18873 cat confdefs.h
>>conftest.
$ac_ext
18874 cat >>conftest.
$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 $ac_includes_default
18879 rm -f conftest.
$ac_objext
18880 if { (ac_try
="$ac_compile"
18881 case "(($ac_try" in
18882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_compile") 2>conftest.er1
18888 grep -v '^ *+' conftest.er1 >conftest.err
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } && {
18893 test -z "$ac_c_werror_flag" ||
18894 test ! -s conftest.err
18895 } && test -s conftest.$ac_objext; then
18896 ac_header_compiler=yes
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 ac_header_compiler=no
18904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18906 echo "${ECHO_T}$ac_header_compiler" >&6; }
18908 # Is the header present?
18909 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
18910 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
18911 cat >conftest.$ac_ext <<_ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18919 if { (ac_try="$ac_cpp conftest.$ac_ext"
18920 case "(($ac_try" in
18921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18922 *) ac_try_echo
=$ac_try;;
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18927 grep -v '^ *+' conftest.er1
>conftest.err
18929 cat conftest.err
>&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } >/dev
/null
&& {
18932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18933 test ! -s conftest.err
18935 ac_header_preproc
=yes
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.
$ac_ext >&5
18940 ac_header_preproc
=no
18943 rm -f conftest.err conftest.
$ac_ext
18944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18945 echo "${ECHO_T}$ac_header_preproc" >&6; }
18947 # So? What about this header?
18948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18950 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
18951 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18952 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
18953 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
18954 ac_header_preproc
=yes
18957 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
18958 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
18959 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
18960 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
18961 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
18962 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
18963 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
18964 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
18965 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
18966 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
18967 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
18968 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
18972 { echo "$as_me:$LINENO: checking for nbs.h" >&5
18973 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
18974 if test "${ac_cv_header_nbs_h+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18977 ac_cv_header_nbs_h
=$ac_header_preproc
18979 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
18980 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
18983 if test $ac_cv_header_nbs_h = yes; then
18992 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
18993 if test ! -z "${NBS_MANDATORY}" ;
18995 { echo "$as_me:$LINENO: ***" >&5
18996 echo "$as_me: ***" >&6;}
18997 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
18998 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
18999 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
19000 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
19001 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19002 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19011 cat >>confdefs.h
<<_ACEOF
19016 elif test ! -z "${NBS_MANDATORY}";
19018 { echo "$as_me:$LINENO: ***" >&5
19019 echo "$as_me: ***" >&6;}
19020 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
19021 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
19022 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19023 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19024 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19025 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19032 if test "${USE_NCURSES}" != "no"; then
19034 if test "x${NCURSES_DIR}" != "x"; then
19035 if test -d ${NCURSES_DIR}/lib
; then
19036 pbxlibdir
="-L${NCURSES_DIR}/lib"
19038 pbxlibdir
="-L${NCURSES_DIR}"
19041 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
19042 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
19043 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19046 ac_check_lib_save_LIBS
=$LIBS
19047 LIBS
="-lncurses ${pbxlibdir} $LIBS"
19048 cat >conftest.
$ac_ext <<_ACEOF
19051 cat confdefs.h
>>conftest.
$ac_ext
19052 cat >>conftest.
$ac_ext <<_ACEOF
19053 /* end confdefs.h. */
19055 /* Override any GCC internal prototype to avoid an error.
19056 Use char because int might match the return type of a GCC
19057 builtin and then its argument prototype would still apply. */
19070 rm -f conftest.
$ac_objext conftest
$ac_exeext
19071 if { (ac_try
="$ac_link"
19072 case "(($ac_try" in
19073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_link") 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } && {
19084 test -z "$ac_c_werror_flag" ||
19085 test ! -s conftest.err
19086 } && test -s conftest$ac_exeext &&
19087 $as_test_x conftest$ac_exeext; then
19088 ac_cv_lib_ncurses_initscr=yes
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_cv_lib_ncurses_initscr=no
19096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19097 conftest$ac_exeext conftest.$ac_ext
19098 LIBS=$ac_check_lib_save_LIBS
19100 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
19101 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
19102 if test $ac_cv_lib_ncurses_initscr = yes; then
19103 AST_NCURSES_FOUND=yes
19105 AST_NCURSES_FOUND=no
19109 if test "${AST_NCURSES_FOUND}" = "yes"; then
19110 NCURSES_LIB="-lncurses "
19111 NCURSES_HEADER_FOUND="1"
19112 if test "x${NCURSES_DIR}" != "x"; then
19113 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19114 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
19115 if test "xcurses.h" != "x" ; then
19116 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" |
$as_tr_sh`
19117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19118 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19119 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 ac_res=`eval echo '${'$as_ac_Header'}'`
19124 { echo "$as_me:$LINENO: result: $ac_res" >&5
19125 echo "${ECHO_T}$ac_res" >&6; }
19127 # Is the header compilable?
19128 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
19129 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
19130 cat >conftest.$ac_ext <<_ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 $ac_includes_default
19137 #include <${NCURSES_DIR}/include/curses.h>
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19143 *) ac_try_echo
=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_compile") 2>conftest.er1
19148 grep -v '^ *+' conftest.er1
>conftest.err
19150 cat conftest.err
>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } && {
19153 test -z "$ac_c_werror_flag" ||
19154 test ! -s conftest.err
19155 } && test -s conftest.
$ac_objext; then
19156 ac_header_compiler
=yes
19158 echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.
$ac_ext >&5
19161 ac_header_compiler
=no
19164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19166 echo "${ECHO_T}$ac_header_compiler" >&6; }
19168 # Is the header present?
19169 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
19170 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
19171 cat >conftest.
$ac_ext <<_ACEOF
19174 cat confdefs.h
>>conftest.
$ac_ext
19175 cat >>conftest.
$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19177 #include <${NCURSES_DIR}/include/curses.h>
19179 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19180 case "(($ac_try" in
19181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19182 *) ac_try_echo=$ac_try;;
19184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19187 grep -v '^ *+' conftest.er1 >conftest.err
19189 cat conftest.err >&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } >/dev/null && {
19192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19193 test ! -s conftest.err
19195 ac_header_preproc=yes
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 ac_header_preproc=no
19203 rm -f conftest.err conftest.$ac_ext
19204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19205 echo "${ECHO_T}$ac_header_preproc" >&6; }
19207 # So? What about this header?
19208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19210 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19211 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19212 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
19213 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
19214 ac_header_preproc=yes
19217 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
19218 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
19219 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
19220 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
19221 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
19222 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
19223 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
19224 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19225 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
19226 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
19227 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
19228 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
19232 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19233 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 eval "$as_ac_Header=\$ac_header_preproc"
19239 ac_res=`eval echo '${'$as_ac_Header'}'`
19240 { echo "$as_me:$LINENO: result: $ac_res" >&5
19241 echo "${ECHO_T}$ac_res" >&6; }
19244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19245 NCURSES_HEADER_FOUND=1
19247 NCURSES_HEADER_FOUND=0
19253 if test "xcurses.h" != "x" ; then
19254 if test "${ac_cv_header_curses_h+set}" = set; then
19255 { echo "$as_me:$LINENO: checking for curses.h" >&5
19256 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19257 if test "${ac_cv_header_curses_h+set}" = set; then
19258 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19261 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19263 # Is the header compilable?
19264 { echo "$as_me:$LINENO: checking curses.h usability" >&5
19265 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
19266 cat >conftest.$ac_ext <<_ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 $ac_includes_default
19273 #include <curses.h>
19275 rm -f conftest.$ac_objext
19276 if { (ac_try="$ac_compile"
19277 case "(($ac_try" in
19278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19279 *) ac_try_echo
=$ac_try;;
19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_compile") 2>conftest.er1
19284 grep -v '^ *+' conftest.er1
>conftest.err
19286 cat conftest.err
>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } && {
19289 test -z "$ac_c_werror_flag" ||
19290 test ! -s conftest.err
19291 } && test -s conftest.
$ac_objext; then
19292 ac_header_compiler
=yes
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.
$ac_ext >&5
19297 ac_header_compiler
=no
19300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19302 echo "${ECHO_T}$ac_header_compiler" >&6; }
19304 # Is the header present?
19305 { echo "$as_me:$LINENO: checking curses.h presence" >&5
19306 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
19307 cat >conftest.
$ac_ext <<_ACEOF
19310 cat confdefs.h
>>conftest.
$ac_ext
19311 cat >>conftest.
$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 #include <curses.h>
19315 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19316 case "(($ac_try" in
19317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19323 grep -v '^ *+' conftest.er1 >conftest.err
19325 cat conftest.err >&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); } >/dev/null && {
19328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19329 test ! -s conftest.err
19331 ac_header_preproc=yes
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 ac_header_preproc=no
19339 rm -f conftest.err conftest.$ac_ext
19340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19341 echo "${ECHO_T}$ac_header_preproc" >&6; }
19343 # So? What about this header?
19344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19346 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19347 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19349 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19350 ac_header_preproc=yes
19353 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19354 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19355 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19356 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19358 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19359 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19360 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19361 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19362 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19363 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19364 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19368 { echo "$as_me:$LINENO: checking for curses.h" >&5
19369 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19370 if test "${ac_cv_header_curses_h+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 ac_cv_header_curses_h=$ac_header_preproc
19375 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19376 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19379 if test $ac_cv_header_curses_h = yes; then
19380 NCURSES_HEADER_FOUND=1
19382 NCURSES_HEADER_FOUND=0
19388 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
19389 if test ! -z "${NCURSES_MANDATORY}" ;
19391 { echo "$as_me:$LINENO: ***" >&5
19392 echo "$as_me: ***" >&6;}
19393 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
19394 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
19395 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
19396 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
19397 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19398 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19407 cat >>confdefs.h <<_ACEOF
19408 #define HAVE_NCURSES 1
19412 elif test ! -z "${NCURSES_MANDATORY}";
19414 { echo "$as_me:$LINENO: ***" >&5
19415 echo "$as_me: ***" >&6;}
19416 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
19417 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19418 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19419 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19420 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19421 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19428 if test "${USE_NETSNMP}" != "no"; then
19429 if test "x${NETSNMP_DIR}" != "x"; then
19430 if test -n "$ac_tool_prefix"; then
19431 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19432 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19435 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19436 echo $ECHO_N "(cached) $ECHO_C" >&6
19438 case $NETSNMP_CONFIG in
19440 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19444 for as_dir in ${NETSNMP_DIR}/bin
19447 test -z "$as_dir" && as_dir=.
19448 for ac_exec_ext in '' $ac_executable_extensions; do
19449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19450 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19461 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19462 if test -n "$NETSNMP_CONFIG"; then
19463 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19464 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19466 { echo "$as_me:$LINENO: result: no" >&5
19467 echo "${ECHO_T}no" >&6; }
19472 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19473 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19474 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19475 set dummy net-snmp-config; ac_word=$2
19476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19478 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 case $ac_pt_NETSNMP_CONFIG in
19483 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19487 for as_dir in ${NETSNMP_DIR}/bin
19490 test -z "$as_dir" && as_dir=.
19491 for ac_exec_ext in '' $ac_executable_extensions; do
19492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19493 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19504 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19505 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19506 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19507 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19509 { echo "$as_me:$LINENO: result: no" >&5
19510 echo "${ECHO_T}no" >&6; }
19513 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19514 NETSNMP_CONFIG="No"
19516 case $cross_compiling:$ac_tool_warned in
19518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19519 whose name does not start with the host triplet. If you think this
19520 configuration is useful to you, please write to autoconf@gnu.org." >&5
19521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19522 whose name does not start with the host triplet. If you think this
19523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19524 ac_tool_warned=yes ;;
19526 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19529 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19532 if test x"${NETSNMP_CONFIG}" = xNo; then
19533 { echo "$as_me:$LINENO: ***" >&5
19534 echo "$as_me: ***" >&6;}
19535 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
19536 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
19537 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
19538 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
19539 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19540 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19541 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19542 echo "$as_me: *** including --without-netsnmp" >&6;}
19546 if test -n "$ac_tool_prefix"; then
19547 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19548 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19551 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 case $NETSNMP_CONFIG in
19556 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19560 for as_dir in $PATH
19563 test -z "$as_dir" && as_dir=.
19564 for ac_exec_ext in '' $ac_executable_extensions; do
19565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19566 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19577 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19578 if test -n "$NETSNMP_CONFIG"; then
19579 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19580 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19582 { echo "$as_me:$LINENO: result: no" >&5
19583 echo "${ECHO_T}no" >&6; }
19588 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19589 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19590 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19591 set dummy net-snmp-config; ac_word=$2
19592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19594 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 case $ac_pt_NETSNMP_CONFIG in
19599 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19603 for as_dir in $PATH
19606 test -z "$as_dir" && as_dir=.
19607 for ac_exec_ext in '' $ac_executable_extensions; do
19608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19609 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19620 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19621 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19622 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19623 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19625 { echo "$as_me:$LINENO: result: no" >&5
19626 echo "${ECHO_T}no" >&6; }
19629 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19630 NETSNMP_CONFIG="No"
19632 case $cross_compiling:$ac_tool_warned in
19634 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19635 whose name does not start with the host triplet. If you think this
19636 configuration is useful to you, please write to autoconf@gnu.org." >&5
19637 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19638 whose name does not start with the host triplet. If you think this
19639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19640 ac_tool_warned=yes ;;
19642 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19645 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19650 if test x"${NETSNMP_CONFIG}" != xNo; then
19651 NETSNMP_libs=`net-snmp-config
--agent-libs`
19653 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
19654 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
19655 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 ac_check_lib_save_LIBS=$LIBS
19659 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
19660 cat >conftest.$ac_ext <<_ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19667 /* Override any GCC internal prototype to avoid an error.
19668 Use char because int might match the return type of a GCC
19669 builtin and then its argument prototype would still apply. */
19673 char snmp_register_callback ();
19677 return snmp_register_callback ();
19682 rm -f conftest.$ac_objext conftest$ac_exeext
19683 if { (ac_try="$ac_link"
19684 case "(($ac_try" in
19685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19686 *) ac_try_echo
=$ac_try;;
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_link") 2>conftest.er1
19691 grep -v '^ *+' conftest.er1
>conftest.err
19693 cat conftest.err
>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest
$ac_exeext &&
19699 $as_test_x conftest
$ac_exeext; then
19700 ac_cv_lib_netsnmp_snmp_register_callback
=yes
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.
$ac_ext >&5
19705 ac_cv_lib_netsnmp_snmp_register_callback
=no
19708 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19709 conftest
$ac_exeext conftest.
$ac_ext
19710 LIBS
=$ac_check_lib_save_LIBS
19712 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
19713 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
19714 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
19716 cat >>confdefs.h
<<_ACEOF
19717 #define HAVE_NETSNMP 1
19723 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
19724 NETSNMP_LIB
="${NETSNMP_libs}"
19726 elif test ! -z "${NETSNMP_MANDATORY}";
19728 { echo "$as_me:$LINENO: ***" >&5
19729 echo "$as_me: ***" >&6;}
19730 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
19731 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
19732 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19733 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19734 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19735 echo "$as_me: *** including --without-netsnmp" >&6;}
19738 elif test ! -z "${NETSNMP_MANDATORY}";
19740 { echo "$as_me:$LINENO: ***" >&5
19741 echo "$as_me: ***" >&6;}
19742 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
19743 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
19744 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19745 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19746 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19747 echo "$as_me: *** including --without-netsnmp" >&6;}
19752 if test "${USE_NEWT}" != "no"; then
19754 if test "x${NEWT_DIR}" != "x"; then
19755 if test -d ${NEWT_DIR}/lib
; then
19756 pbxlibdir
="-L${NEWT_DIR}/lib"
19758 pbxlibdir
="-L${NEWT_DIR}"
19761 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
19762 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
19763 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 ac_check_lib_save_LIBS
=$LIBS
19767 LIBS
="-lnewt ${pbxlibdir} $LIBS"
19768 cat >conftest.
$ac_ext <<_ACEOF
19771 cat confdefs.h
>>conftest.
$ac_ext
19772 cat >>conftest.
$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19775 /* Override any GCC internal prototype to avoid an error.
19776 Use char because int might match the return type of a GCC
19777 builtin and then its argument prototype would still apply. */
19785 return newtBell ();
19790 rm -f conftest.
$ac_objext conftest
$ac_exeext
19791 if { (ac_try
="$ac_link"
19792 case "(($ac_try" in
19793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_link") 2>conftest.er1
19799 grep -v '^ *+' conftest.er1 >conftest.err
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } && {
19804 test -z "$ac_c_werror_flag" ||
19805 test ! -s conftest.err
19806 } && test -s conftest$ac_exeext &&
19807 $as_test_x conftest$ac_exeext; then
19808 ac_cv_lib_newt_newtBell=yes
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19813 ac_cv_lib_newt_newtBell=no
19816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19817 conftest$ac_exeext conftest.$ac_ext
19818 LIBS=$ac_check_lib_save_LIBS
19820 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
19821 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
19822 if test $ac_cv_lib_newt_newtBell = yes; then
19829 if test "${AST_NEWT_FOUND}" = "yes"; then
19831 NEWT_HEADER_FOUND="1"
19832 if test "x${NEWT_DIR}" != "x"; then
19833 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
19834 NEWT_INCLUDE="-I${NEWT_DIR}/include"
19835 if test "xnewt.h" != "x" ; then
19836 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" |
$as_tr_sh`
19837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19838 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
19839 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
19840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19843 ac_res=`eval echo '${'$as_ac_Header'}'`
19844 { echo "$as_me:$LINENO: result: $ac_res" >&5
19845 echo "${ECHO_T}$ac_res" >&6; }
19847 # Is the header compilable?
19848 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
19849 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
19850 cat >conftest.$ac_ext <<_ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19856 $ac_includes_default
19857 #include <${NEWT_DIR}/include/newt.h>
19859 rm -f conftest.$ac_objext
19860 if { (ac_try="$ac_compile"
19861 case "(($ac_try" in
19862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19863 *) ac_try_echo
=$ac_try;;
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_compile") 2>conftest.er1
19868 grep -v '^ *+' conftest.er1
>conftest.err
19870 cat conftest.err
>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } && {
19873 test -z "$ac_c_werror_flag" ||
19874 test ! -s conftest.err
19875 } && test -s conftest.
$ac_objext; then
19876 ac_header_compiler
=yes
19878 echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.
$ac_ext >&5
19881 ac_header_compiler
=no
19884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19886 echo "${ECHO_T}$ac_header_compiler" >&6; }
19888 # Is the header present?
19889 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
19890 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
19891 cat >conftest.
$ac_ext <<_ACEOF
19894 cat confdefs.h
>>conftest.
$ac_ext
19895 cat >>conftest.
$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19897 #include <${NEWT_DIR}/include/newt.h>
19899 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19900 case "(($ac_try" in
19901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19907 grep -v '^ *+' conftest.er1 >conftest.err
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } >/dev/null && {
19912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19913 test ! -s conftest.err
19915 ac_header_preproc=yes
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 ac_header_preproc=no
19923 rm -f conftest.err conftest.$ac_ext
19924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19925 echo "${ECHO_T}$ac_header_preproc" >&6; }
19927 # So? What about this header?
19928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19930 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
19931 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
19933 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
19934 ac_header_preproc=yes
19937 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
19938 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
19940 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
19942 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
19944 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
19946 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
19948 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
19952 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
19953 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
19954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19957 eval "$as_ac_Header=\$ac_header_preproc"
19959 ac_res=`eval echo '${'$as_ac_Header'}'`
19960 { echo "$as_me:$LINENO: result: $ac_res" >&5
19961 echo "${ECHO_T}$ac_res" >&6; }
19964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19965 NEWT_HEADER_FOUND=1
19967 NEWT_HEADER_FOUND=0
19973 if test "xnewt.h" != "x" ; then
19974 if test "${ac_cv_header_newt_h+set}" = set; then
19975 { echo "$as_me:$LINENO: checking for newt.h" >&5
19976 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
19977 if test "${ac_cv_header_newt_h+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
19981 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
19983 # Is the header compilable?
19984 { echo "$as_me:$LINENO: checking newt.h usability" >&5
19985 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 $ac_includes_default
19995 rm -f conftest.$ac_objext
19996 if { (ac_try="$ac_compile"
19997 case "(($ac_try" in
19998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19999 *) ac_try_echo
=$ac_try;;
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_compile") 2>conftest.er1
20004 grep -v '^ *+' conftest.er1
>conftest.err
20006 cat conftest.err
>&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } && {
20009 test -z "$ac_c_werror_flag" ||
20010 test ! -s conftest.err
20011 } && test -s conftest.
$ac_objext; then
20012 ac_header_compiler
=yes
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.
$ac_ext >&5
20017 ac_header_compiler
=no
20020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20022 echo "${ECHO_T}$ac_header_compiler" >&6; }
20024 # Is the header present?
20025 { echo "$as_me:$LINENO: checking newt.h presence" >&5
20026 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
20027 cat >conftest.
$ac_ext <<_ACEOF
20030 cat confdefs.h
>>conftest.
$ac_ext
20031 cat >>conftest.
$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20035 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20036 case "(($ac_try" in
20037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } >/dev/null && {
20048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20049 test ! -s conftest.err
20051 ac_header_preproc=yes
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 ac_header_preproc=no
20059 rm -f conftest.err conftest.$ac_ext
20060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061 echo "${ECHO_T}$ac_header_preproc" >&6; }
20063 # So? What about this header?
20064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20066 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20067 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
20069 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
20070 ac_header_preproc=yes
20073 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
20074 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
20076 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
20078 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
20080 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
20082 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
20084 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
20088 { echo "$as_me:$LINENO: checking for newt.h" >&5
20089 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20090 if test "${ac_cv_header_newt_h+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 ac_cv_header_newt_h=$ac_header_preproc
20095 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20096 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20099 if test $ac_cv_header_newt_h = yes; then
20100 NEWT_HEADER_FOUND=1
20102 NEWT_HEADER_FOUND=0
20108 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
20109 if test ! -z "${NEWT_MANDATORY}" ;
20111 { echo "$as_me:$LINENO: ***" >&5
20112 echo "$as_me: ***" >&6;}
20113 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
20114 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
20115 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
20116 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
20117 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20118 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20127 cat >>confdefs.h <<_ACEOF
20128 #define HAVE_NEWT 1
20132 elif test ! -z "${NEWT_MANDATORY}";
20134 { echo "$as_me:$LINENO: ***" >&5
20135 echo "$as_me: ***" >&6;}
20136 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
20137 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
20138 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20139 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20140 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20141 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20148 if test "${USE_UNIXODBC}" != "no"; then
20150 if test "x${UNIXODBC_DIR}" != "x"; then
20151 if test -d ${UNIXODBC_DIR}/lib; then
20152 pbxlibdir="-L${UNIXODBC_DIR}/lib"
20154 pbxlibdir="-L${UNIXODBC_DIR}"
20157 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
20158 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
20159 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 ac_check_lib_save_LIBS=$LIBS
20163 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20171 /* Override any GCC internal prototype to avoid an error.
20172 Use char because int might match the return type of a GCC
20173 builtin and then its argument prototype would still apply. */
20177 char SQLConnect ();
20181 return SQLConnect ();
20186 rm -f conftest.$ac_objext conftest$ac_exeext
20187 if { (ac_try="$ac_link"
20188 case "(($ac_try" in
20189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20190 *) ac_try_echo
=$ac_try;;
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_link") 2>conftest.er1
20195 grep -v '^ *+' conftest.er1
>conftest.err
20197 cat conftest.err
>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } && {
20200 test -z "$ac_c_werror_flag" ||
20201 test ! -s conftest.err
20202 } && test -s conftest
$ac_exeext &&
20203 $as_test_x conftest
$ac_exeext; then
20204 ac_cv_lib_odbc_SQLConnect
=yes
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.
$ac_ext >&5
20209 ac_cv_lib_odbc_SQLConnect
=no
20212 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20213 conftest
$ac_exeext conftest.
$ac_ext
20214 LIBS
=$ac_check_lib_save_LIBS
20216 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
20217 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
20218 if test $ac_cv_lib_odbc_SQLConnect = yes; then
20219 AST_UNIXODBC_FOUND
=yes
20221 AST_UNIXODBC_FOUND
=no
20225 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
20226 UNIXODBC_LIB
="-lodbc -lltdl"
20227 UNIXODBC_HEADER_FOUND
="1"
20228 if test "x${UNIXODBC_DIR}" != "x"; then
20229 UNIXODBC_LIB
="${pbxlibdir} ${UNIXODBC_LIB}"
20230 UNIXODBC_INCLUDE
="-I${UNIXODBC_DIR}/include"
20231 if test "xsql.h" != "x" ; then
20232 as_ac_Header
=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
20233 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20234 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20235 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20236 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 ac_res
=`eval echo '${'$as_ac_Header'}'`
20240 { echo "$as_me:$LINENO: result: $ac_res" >&5
20241 echo "${ECHO_T}$ac_res" >&6; }
20243 # Is the header compilable?
20244 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
20245 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
20246 cat >conftest.
$ac_ext <<_ACEOF
20249 cat confdefs.h
>>conftest.
$ac_ext
20250 cat >>conftest.
$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 $ac_includes_default
20253 #include <${UNIXODBC_DIR}/include/sql.h>
20255 rm -f conftest.
$ac_objext
20256 if { (ac_try
="$ac_compile"
20257 case "(($ac_try" in
20258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262 (eval "$ac_compile") 2>conftest.er1
20264 grep -v '^ *+' conftest.er1 >conftest.err
20266 cat conftest.err >&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } && {
20269 test -z "$ac_c_werror_flag" ||
20270 test ! -s conftest.err
20271 } && test -s conftest.$ac_objext; then
20272 ac_header_compiler=yes
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_header_compiler=no
20280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20282 echo "${ECHO_T}$ac_header_compiler" >&6; }
20284 # Is the header present?
20285 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
20286 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
20287 cat >conftest.$ac_ext <<_ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 #include <${UNIXODBC_DIR}/include/sql.h>
20295 if { (ac_try="$ac_cpp conftest.$ac_ext"
20296 case "(($ac_try" in
20297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20298 *) ac_try_echo
=$ac_try;;
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20303 grep -v '^ *+' conftest.er1
>conftest.err
20305 cat conftest.err
>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } >/dev
/null
&& {
20308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20309 test ! -s conftest.err
20311 ac_header_preproc
=yes
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.
$ac_ext >&5
20316 ac_header_preproc
=no
20319 rm -f conftest.err conftest.
$ac_ext
20320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20321 echo "${ECHO_T}$ac_header_preproc" >&6; }
20323 # So? What about this header?
20324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20326 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20327 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20328 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
20329 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
20330 ac_header_preproc
=yes
20333 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
20334 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
20335 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
20336 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
20337 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
20338 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
20340 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
20342 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
20344 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
20348 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20349 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20350 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
20353 eval "$as_ac_Header=\$ac_header_preproc"
20355 ac_res
=`eval echo '${'$as_ac_Header'}'`
20356 { echo "$as_me:$LINENO: result: $ac_res" >&5
20357 echo "${ECHO_T}$ac_res" >&6; }
20360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20361 UNIXODBC_HEADER_FOUND
=1
20363 UNIXODBC_HEADER_FOUND
=0
20369 if test "xsql.h" != "x" ; then
20370 if test "${ac_cv_header_sql_h+set}" = set; then
20371 { echo "$as_me:$LINENO: checking for sql.h" >&5
20372 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20373 if test "${ac_cv_header_sql_h+set}" = set; then
20374 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20377 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20379 # Is the header compilable?
20380 { echo "$as_me:$LINENO: checking sql.h usability" >&5
20381 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
20382 cat >conftest.
$ac_ext <<_ACEOF
20385 cat confdefs.h
>>conftest.
$ac_ext
20386 cat >>conftest.
$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20388 $ac_includes_default
20391 rm -f conftest.
$ac_objext
20392 if { (ac_try
="$ac_compile"
20393 case "(($ac_try" in
20394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_compile") 2>conftest.er1
20400 grep -v '^ *+' conftest.er1 >conftest.err
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } && {
20405 test -z "$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20407 } && test -s conftest.$ac_objext; then
20408 ac_header_compiler=yes
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20413 ac_header_compiler=no
20416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20418 echo "${ECHO_T}$ac_header_compiler" >&6; }
20420 # Is the header present?
20421 { echo "$as_me:$LINENO: checking sql.h presence" >&5
20422 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
20423 cat >conftest.$ac_ext <<_ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20431 if { (ac_try="$ac_cpp conftest.$ac_ext"
20432 case "(($ac_try" in
20433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20434 *) ac_try_echo
=$ac_try;;
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20439 grep -v '^ *+' conftest.er1
>conftest.err
20441 cat conftest.err
>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } >/dev
/null
&& {
20444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20445 test ! -s conftest.err
20447 ac_header_preproc
=yes
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.
$ac_ext >&5
20452 ac_header_preproc
=no
20455 rm -f conftest.err conftest.
$ac_ext
20456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20457 echo "${ECHO_T}$ac_header_preproc" >&6; }
20459 # So? What about this header?
20460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20462 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20463 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20464 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
20465 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
20466 ac_header_preproc
=yes
20469 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
20470 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
20471 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
20472 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
20473 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
20474 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
20475 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
20476 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20477 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
20478 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
20480 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
20484 { echo "$as_me:$LINENO: checking for sql.h" >&5
20485 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20486 if test "${ac_cv_header_sql_h+set}" = set; then
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
20489 ac_cv_header_sql_h
=$ac_header_preproc
20491 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20492 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20495 if test $ac_cv_header_sql_h = yes; then
20496 UNIXODBC_HEADER_FOUND
=1
20498 UNIXODBC_HEADER_FOUND
=0
20504 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
20505 if test ! -z "${UNIXODBC_MANDATORY}" ;
20507 { echo "$as_me:$LINENO: ***" >&5
20508 echo "$as_me: ***" >&6;}
20509 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
20510 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
20511 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
20512 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
20513 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20514 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20518 UNIXODBC_INCLUDE
=""
20523 cat >>confdefs.h
<<_ACEOF
20524 #define HAVE_UNIXODBC 1
20528 elif test ! -z "${UNIXODBC_MANDATORY}";
20530 { echo "$as_me:$LINENO: ***" >&5
20531 echo "$as_me: ***" >&6;}
20532 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
20533 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
20534 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20535 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20536 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20537 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20544 if test "${USE_OGG}" != "no"; then
20546 if test "x${OGG_DIR}" != "x"; then
20547 if test -d ${OGG_DIR}/lib
; then
20548 pbxlibdir
="-L${OGG_DIR}/lib"
20550 pbxlibdir
="-L${OGG_DIR}"
20553 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
20554 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
20555 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20558 ac_check_lib_save_LIBS
=$LIBS
20559 LIBS
="-logg ${pbxlibdir} $LIBS"
20560 cat >conftest.
$ac_ext <<_ACEOF
20563 cat confdefs.h
>>conftest.
$ac_ext
20564 cat >>conftest.
$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20567 /* Override any GCC internal prototype to avoid an error.
20568 Use char because int might match the return type of a GCC
20569 builtin and then its argument prototype would still apply. */
20573 char ogg_sync_init ();
20577 return ogg_sync_init ();
20582 rm -f conftest.
$ac_objext conftest
$ac_exeext
20583 if { (ac_try
="$ac_link"
20584 case "(($ac_try" in
20585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20589 (eval "$ac_link") 2>conftest.er1
20591 grep -v '^ *+' conftest.er1 >conftest.err
20593 cat conftest.err >&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } && {
20596 test -z "$ac_c_werror_flag" ||
20597 test ! -s conftest.err
20598 } && test -s conftest$ac_exeext &&
20599 $as_test_x conftest$ac_exeext; then
20600 ac_cv_lib_ogg_ogg_sync_init=yes
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20605 ac_cv_lib_ogg_ogg_sync_init=no
20608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20609 conftest$ac_exeext conftest.$ac_ext
20610 LIBS=$ac_check_lib_save_LIBS
20612 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
20613 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
20614 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
20621 if test "${AST_OGG_FOUND}" = "yes"; then
20623 OGG_HEADER_FOUND="1"
20624 if test "x${OGG_DIR}" != "x"; then
20625 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
20626 OGG_INCLUDE="-I${OGG_DIR}/include"
20627 if test "x" != "x" ; then
20628 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" |
$as_tr_sh`
20629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20630 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
20631 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
20632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20633 echo $ECHO_N "(cached) $ECHO_C" >&6
20635 ac_res=`eval echo '${'$as_ac_Header'}'`
20636 { echo "$as_me:$LINENO: result: $ac_res" >&5
20637 echo "${ECHO_T}$ac_res" >&6; }
20639 # Is the header compilable?
20640 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
20641 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
20642 cat >conftest.$ac_ext <<_ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20648 $ac_includes_default
20649 #include <${OGG_DIR}/include/>
20651 rm -f conftest.$ac_objext
20652 if { (ac_try="$ac_compile"
20653 case "(($ac_try" in
20654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20655 *) ac_try_echo
=$ac_try;;
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_compile") 2>conftest.er1
20660 grep -v '^ *+' conftest.er1
>conftest.err
20662 cat conftest.err
>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } && {
20665 test -z "$ac_c_werror_flag" ||
20666 test ! -s conftest.err
20667 } && test -s conftest.
$ac_objext; then
20668 ac_header_compiler
=yes
20670 echo "$as_me: failed program was:" >&5
20671 sed 's/^/| /' conftest.
$ac_ext >&5
20673 ac_header_compiler
=no
20676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20678 echo "${ECHO_T}$ac_header_compiler" >&6; }
20680 # Is the header present?
20681 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
20682 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
20683 cat >conftest.
$ac_ext <<_ACEOF
20686 cat confdefs.h
>>conftest.
$ac_ext
20687 cat >>conftest.
$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 #include <${OGG_DIR}/include/>
20691 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20692 case "(($ac_try" in
20693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20694 *) ac_try_echo=$ac_try;;
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20699 grep -v '^ *+' conftest.er1 >conftest.err
20701 cat conftest.err >&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } >/dev/null && {
20704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20705 test ! -s conftest.err
20707 ac_header_preproc=yes
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20712 ac_header_preproc=no
20715 rm -f conftest.err conftest.$ac_ext
20716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20717 echo "${ECHO_T}$ac_header_preproc" >&6; }
20719 # So? What about this header?
20720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20722 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
20723 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
20724 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
20725 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
20726 ac_header_preproc=yes
20729 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
20730 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
20731 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
20732 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
20733 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
20734 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
20735 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
20736 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
20737 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
20738 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
20739 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
20740 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
20744 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
20745 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
20746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 eval "$as_ac_Header=\$ac_header_preproc"
20751 ac_res=`eval echo '${'$as_ac_Header'}'`
20752 { echo "$as_me:$LINENO: result: $ac_res" >&5
20753 echo "${ECHO_T}$ac_res" >&6; }
20756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20765 if test "x" != "x" ; then
20766 if test "${ac_cv_header_+set}" = set; then
20767 { echo "$as_me:$LINENO: checking for " >&5
20768 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20769 if test "${ac_cv_header_+set}" = set; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20772 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20773 echo "${ECHO_T}$ac_cv_header_" >&6; }
20775 # Is the header compilable?
20776 { echo "$as_me:$LINENO: checking usability" >&5
20777 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20778 cat >conftest.$ac_ext <<_ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 $ac_includes_default
20787 rm -f conftest.$ac_objext
20788 if { (ac_try="$ac_compile"
20789 case "(($ac_try" in
20790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20791 *) ac_try_echo
=$ac_try;;
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_compile") 2>conftest.er1
20796 grep -v '^ *+' conftest.er1
>conftest.err
20798 cat conftest.err
>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } && {
20801 test -z "$ac_c_werror_flag" ||
20802 test ! -s conftest.err
20803 } && test -s conftest.
$ac_objext; then
20804 ac_header_compiler
=yes
20806 echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.
$ac_ext >&5
20809 ac_header_compiler
=no
20812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20814 echo "${ECHO_T}$ac_header_compiler" >&6; }
20816 # Is the header present?
20817 { echo "$as_me:$LINENO: checking presence" >&5
20818 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20819 cat >conftest.
$ac_ext <<_ACEOF
20822 cat confdefs.h
>>conftest.
$ac_ext
20823 cat >>conftest.
$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20827 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20828 case "(($ac_try" in
20829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20835 grep -v '^ *+' conftest.er1 >conftest.err
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } >/dev/null && {
20840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20843 ac_header_preproc=yes
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 ac_header_preproc=no
20851 rm -f conftest.err conftest.$ac_ext
20852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20853 echo "${ECHO_T}$ac_header_preproc" >&6; }
20855 # So? What about this header?
20856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20858 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20859 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20860 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20861 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20862 ac_header_preproc=yes
20865 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20866 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20867 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20868 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20869 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20870 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20871 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20872 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20873 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20874 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20876 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20880 { echo "$as_me:$LINENO: checking for " >&5
20881 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20882 if test "${ac_cv_header_+set}" = set; then
20883 echo $ECHO_N "(cached) $ECHO_C" >&6
20885 ac_cv_header_=$ac_header_preproc
20887 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20888 echo "${ECHO_T}$ac_cv_header_" >&6; }
20891 if test $ac_cv_header_ = yes; then
20900 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
20901 if test ! -z "${OGG_MANDATORY}" ;
20903 { echo "$as_me:$LINENO: ***" >&5
20904 echo "$as_me: ***" >&6;}
20905 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
20906 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
20907 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
20908 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
20909 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
20910 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
20919 cat >>confdefs.h <<_ACEOF
20924 elif test ! -z "${OGG_MANDATORY}";
20926 { echo "$as_me:$LINENO: ***" >&5
20927 echo "$as_me: ***" >&6;}
20928 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
20929 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
20930 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20931 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20932 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
20933 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
20940 if test "${USE_OSPTK}" != "no"; then
20942 if test "x${OSPTK_DIR}" != "x"; then
20943 if test -d ${OSPTK_DIR}/lib; then
20944 pbxlibdir="-L${OSPTK_DIR}/lib"
20946 pbxlibdir="-L${OSPTK_DIR}"
20949 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
20950 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
20951 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 ac_check_lib_save_LIBS=$LIBS
20955 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
20956 cat >conftest.$ac_ext <<_ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20963 /* Override any GCC internal prototype to avoid an error.
20964 Use char because int might match the return type of a GCC
20965 builtin and then its argument prototype would still apply. */
20969 char OSPPCryptoDecrypt ();
20973 return OSPPCryptoDecrypt ();
20978 rm -f conftest.$ac_objext conftest$ac_exeext
20979 if { (ac_try="$ac_link"
20980 case "(($ac_try" in
20981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20982 *) ac_try_echo
=$ac_try;;
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_link") 2>conftest.er1
20987 grep -v '^ *+' conftest.er1
>conftest.err
20989 cat conftest.err
>&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } && {
20992 test -z "$ac_c_werror_flag" ||
20993 test ! -s conftest.err
20994 } && test -s conftest
$ac_exeext &&
20995 $as_test_x conftest
$ac_exeext; then
20996 ac_cv_lib_osptk_OSPPCryptoDecrypt
=yes
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.
$ac_ext >&5
21001 ac_cv_lib_osptk_OSPPCryptoDecrypt
=no
21004 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21005 conftest
$ac_exeext conftest.
$ac_ext
21006 LIBS
=$ac_check_lib_save_LIBS
21008 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
21009 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
21010 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
21011 AST_OSPTK_FOUND
=yes
21017 if test "${AST_OSPTK_FOUND}" = "yes"; then
21018 OSPTK_LIB
="-losptk -lcrypto -lssl"
21019 OSPTK_HEADER_FOUND
="1"
21020 if test "x${OSPTK_DIR}" != "x"; then
21021 OSPTK_LIB
="${pbxlibdir} ${OSPTK_LIB}"
21022 OSPTK_INCLUDE
="-I${OSPTK_DIR}/include"
21023 if test "xosp/osp.h" != "x" ; then
21024 as_ac_Header
=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
21025 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21026 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21027 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21028 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21029 echo $ECHO_N "(cached) $ECHO_C" >&6
21031 ac_res
=`eval echo '${'$as_ac_Header'}'`
21032 { echo "$as_me:$LINENO: result: $ac_res" >&5
21033 echo "${ECHO_T}$ac_res" >&6; }
21035 # Is the header compilable?
21036 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
21037 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
21038 cat >conftest.
$ac_ext <<_ACEOF
21041 cat confdefs.h
>>conftest.
$ac_ext
21042 cat >>conftest.
$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 $ac_includes_default
21045 #include <${OSPTK_DIR}/include/osp/osp.h>
21047 rm -f conftest.
$ac_objext
21048 if { (ac_try
="$ac_compile"
21049 case "(($ac_try" in
21050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_compile") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest.$ac_objext; then
21064 ac_header_compiler=yes
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_header_compiler=no
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21074 echo "${ECHO_T}$ac_header_compiler" >&6; }
21076 # Is the header present?
21077 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
21078 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
21079 cat >conftest.$ac_ext <<_ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h. */
21085 #include <${OSPTK_DIR}/include/osp/osp.h>
21087 if { (ac_try="$ac_cpp conftest.$ac_ext"
21088 case "(($ac_try" in
21089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21090 *) ac_try_echo
=$ac_try;;
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21095 grep -v '^ *+' conftest.er1
>conftest.err
21097 cat conftest.err
>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } >/dev
/null
&& {
21100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21101 test ! -s conftest.err
21103 ac_header_preproc
=yes
21105 echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.
$ac_ext >&5
21108 ac_header_preproc
=no
21111 rm -f conftest.err conftest.
$ac_ext
21112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21113 echo "${ECHO_T}$ac_header_preproc" >&6; }
21115 # So? What about this header?
21116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21118 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21119 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
21121 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
21122 ac_header_preproc
=yes
21125 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
21126 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
21127 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
21128 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
21130 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21132 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
21134 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
21136 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
21140 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21141 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21142 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 eval "$as_ac_Header=\$ac_header_preproc"
21147 ac_res
=`eval echo '${'$as_ac_Header'}'`
21148 { echo "$as_me:$LINENO: result: $ac_res" >&5
21149 echo "${ECHO_T}$ac_res" >&6; }
21152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21153 OSPTK_HEADER_FOUND
=1
21155 OSPTK_HEADER_FOUND
=0
21161 if test "xosp/osp.h" != "x" ; then
21162 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21163 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21164 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21165 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21168 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21169 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21171 # Is the header compilable?
21172 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
21173 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
21174 cat >conftest.
$ac_ext <<_ACEOF
21177 cat confdefs.h
>>conftest.
$ac_ext
21178 cat >>conftest.
$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180 $ac_includes_default
21181 #include <osp/osp.h>
21183 rm -f conftest.
$ac_objext
21184 if { (ac_try
="$ac_compile"
21185 case "(($ac_try" in
21186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_compile") 2>conftest.er1
21192 grep -v '^ *+' conftest.er1 >conftest.err
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } && {
21197 test -z "$ac_c_werror_flag" ||
21198 test ! -s conftest.err
21199 } && test -s conftest.$ac_objext; then
21200 ac_header_compiler=yes
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21205 ac_header_compiler=no
21208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21210 echo "${ECHO_T}$ac_header_compiler" >&6; }
21212 # Is the header present?
21213 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
21214 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
21215 cat >conftest.$ac_ext <<_ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21221 #include <osp/osp.h>
21223 if { (ac_try="$ac_cpp conftest.$ac_ext"
21224 case "(($ac_try" in
21225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21226 *) ac_try_echo
=$ac_try;;
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21231 grep -v '^ *+' conftest.er1
>conftest.err
21233 cat conftest.err
>&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } >/dev
/null
&& {
21236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21239 ac_header_preproc
=yes
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.
$ac_ext >&5
21244 ac_header_preproc
=no
21247 rm -f conftest.err conftest.
$ac_ext
21248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21249 echo "${ECHO_T}$ac_header_preproc" >&6; }
21251 # So? What about this header?
21252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21254 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21255 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21256 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
21257 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
21258 ac_header_preproc
=yes
21261 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
21262 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
21263 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
21264 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
21265 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
21266 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
21267 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21268 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
21270 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
21272 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
21276 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21277 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21278 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21281 ac_cv_header_osp_osp_h
=$ac_header_preproc
21283 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21284 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21287 if test $ac_cv_header_osp_osp_h = yes; then
21288 OSPTK_HEADER_FOUND
=1
21290 OSPTK_HEADER_FOUND
=0
21296 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
21297 if test ! -z "${OSPTK_MANDATORY}" ;
21299 { echo "$as_me:$LINENO: ***" >&5
21300 echo "$as_me: ***" >&6;}
21301 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
21302 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
21303 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
21304 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
21305 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21306 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21315 cat >>confdefs.h
<<_ACEOF
21316 #define HAVE_OSPTK 1
21320 elif test ! -z "${OSPTK_MANDATORY}";
21322 { echo "$as_me:$LINENO: ***" >&5
21323 echo "$as_me: ***" >&6;}
21324 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
21325 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
21326 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21327 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21328 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21329 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21336 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21337 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21338 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21339 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21342 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21343 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21345 # Is the header compilable?
21346 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
21347 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
21348 cat >conftest.
$ac_ext <<_ACEOF
21351 cat confdefs.h
>>conftest.
$ac_ext
21352 cat >>conftest.
$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 $ac_includes_default
21355 #include <linux/soundcard.h>
21357 rm -f conftest.
$ac_objext
21358 if { (ac_try
="$ac_compile"
21359 case "(($ac_try" in
21360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364 (eval "$ac_compile") 2>conftest.er1
21366 grep -v '^ *+' conftest.er1 >conftest.err
21368 cat conftest.err >&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } && {
21371 test -z "$ac_c_werror_flag" ||
21372 test ! -s conftest.err
21373 } && test -s conftest.$ac_objext; then
21374 ac_header_compiler=yes
21376 echo "$as_me: failed program was:" >&5
21377 sed 's/^/| /' conftest.$ac_ext >&5
21379 ac_header_compiler=no
21382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21384 echo "${ECHO_T}$ac_header_compiler" >&6; }
21386 # Is the header present?
21387 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
21388 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
21389 cat >conftest.$ac_ext <<_ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21395 #include <linux/soundcard.h>
21397 if { (ac_try="$ac_cpp conftest.$ac_ext"
21398 case "(($ac_try" in
21399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21400 *) ac_try_echo
=$ac_try;;
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21405 grep -v '^ *+' conftest.er1
>conftest.err
21407 cat conftest.err
>&5
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } >/dev
/null
&& {
21410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21411 test ! -s conftest.err
21413 ac_header_preproc
=yes
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.
$ac_ext >&5
21418 ac_header_preproc
=no
21421 rm -f conftest.err conftest.
$ac_ext
21422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21423 echo "${ECHO_T}$ac_header_preproc" >&6; }
21425 # So? What about this header?
21426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21428 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21429 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21430 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
21431 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
21432 ac_header_preproc
=yes
21435 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
21436 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
21437 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
21438 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
21440 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21442 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
21444 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
21446 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
21450 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21451 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21452 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 ac_cv_header_linux_soundcard_h
=$ac_header_preproc
21457 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21458 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21461 if test $ac_cv_header_linux_soundcard_h = yes; then
21465 cat >>confdefs.h
<<_ACEOF
21473 if test "$PBX_OSS" = "0"; then
21474 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21475 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21476 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21477 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21481 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21483 # Is the header compilable?
21484 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
21485 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
21486 cat >conftest.
$ac_ext <<_ACEOF
21489 cat confdefs.h
>>conftest.
$ac_ext
21490 cat >>conftest.
$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21492 $ac_includes_default
21493 #include <sys/soundcard.h>
21495 rm -f conftest.
$ac_objext
21496 if { (ac_try
="$ac_compile"
21497 case "(($ac_try" in
21498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21499 *) ac_try_echo=$ac_try;;
21501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21502 (eval "$ac_compile") 2>conftest.er1
21504 grep -v '^ *+' conftest.er1 >conftest.err
21506 cat conftest.err >&5
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); } && {
21509 test -z "$ac_c_werror_flag" ||
21510 test ! -s conftest.err
21511 } && test -s conftest.$ac_objext; then
21512 ac_header_compiler=yes
21514 echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21517 ac_header_compiler=no
21520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21522 echo "${ECHO_T}$ac_header_compiler" >&6; }
21524 # Is the header present?
21525 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
21526 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
21527 cat >conftest.$ac_ext <<_ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 #include <sys/soundcard.h>
21535 if { (ac_try="$ac_cpp conftest.$ac_ext"
21536 case "(($ac_try" in
21537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21538 *) ac_try_echo
=$ac_try;;
21540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21543 grep -v '^ *+' conftest.er1
>conftest.err
21545 cat conftest.err
>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); } >/dev
/null
&& {
21548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21549 test ! -s conftest.err
21551 ac_header_preproc
=yes
21553 echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.
$ac_ext >&5
21556 ac_header_preproc
=no
21559 rm -f conftest.err conftest.
$ac_ext
21560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21561 echo "${ECHO_T}$ac_header_preproc" >&6; }
21563 # So? What about this header?
21564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21566 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21567 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21568 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
21569 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
21570 ac_header_preproc
=yes
21573 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
21574 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
21575 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
21576 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
21577 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
21578 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
21579 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21580 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21581 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
21582 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
21583 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
21584 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
21588 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21589 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21590 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21593 ac_cv_header_sys_soundcard_h
=$ac_header_preproc
21595 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21596 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21599 if test $ac_cv_header_sys_soundcard_h = yes; then
21603 cat >>confdefs.h
<<_ACEOF
21612 if test "$PBX_OSS" = "0"; then
21614 if test "${USE_OSS}" != "no"; then
21616 if test "x${OSS_DIR}" != "x"; then
21617 if test -d ${OSS_DIR}/lib
; then
21618 pbxlibdir
="-L${OSS_DIR}/lib"
21620 pbxlibdir
="-L${OSS_DIR}"
21623 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
21624 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
21625 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21628 ac_check_lib_save_LIBS
=$LIBS
21629 LIBS
="-lossaudio ${pbxlibdir} $LIBS"
21630 cat >conftest.
$ac_ext <<_ACEOF
21633 cat confdefs.h
>>conftest.
$ac_ext
21634 cat >>conftest.
$ac_ext <<_ACEOF
21635 /* end confdefs.h. */
21637 /* Override any GCC internal prototype to avoid an error.
21638 Use char because int might match the return type of a GCC
21639 builtin and then its argument prototype would still apply. */
21643 char oss_ioctl_mixer ();
21647 return oss_ioctl_mixer ();
21652 rm -f conftest.
$ac_objext conftest
$ac_exeext
21653 if { (ac_try
="$ac_link"
21654 case "(($ac_try" in
21655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_link") 2>conftest.er1
21661 grep -v '^ *+' conftest.er1 >conftest.err
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest$ac_exeext &&
21669 $as_test_x conftest$ac_exeext; then
21670 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
21672 echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21675 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
21678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21679 conftest$ac_exeext conftest.$ac_ext
21680 LIBS=$ac_check_lib_save_LIBS
21682 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
21683 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
21684 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
21691 if test "${AST_OSS_FOUND}" = "yes"; then
21692 OSS_LIB="-lossaudio "
21693 OSS_HEADER_FOUND="1"
21694 if test "x${OSS_DIR}" != "x"; then
21695 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
21696 OSS_INCLUDE="-I${OSS_DIR}/include"
21697 if test "xsoundcard.h" != "x" ; then
21698 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" |
$as_tr_sh`
21699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21700 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
21701 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
21702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
21705 ac_res=`eval echo '${'$as_ac_Header'}'`
21706 { echo "$as_me:$LINENO: result: $ac_res" >&5
21707 echo "${ECHO_T}$ac_res" >&6; }
21709 # Is the header compilable?
21710 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
21711 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
21712 cat >conftest.$ac_ext <<_ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 $ac_includes_default
21719 #include <${OSS_DIR}/include/soundcard.h>
21721 rm -f conftest.$ac_objext
21722 if { (ac_try="$ac_compile"
21723 case "(($ac_try" in
21724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21725 *) ac_try_echo
=$ac_try;;
21727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_compile") 2>conftest.er1
21730 grep -v '^ *+' conftest.er1
>conftest.err
21732 cat conftest.err
>&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && {
21735 test -z "$ac_c_werror_flag" ||
21736 test ! -s conftest.err
21737 } && test -s conftest.
$ac_objext; then
21738 ac_header_compiler
=yes
21740 echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.
$ac_ext >&5
21743 ac_header_compiler
=no
21746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21748 echo "${ECHO_T}$ac_header_compiler" >&6; }
21750 # Is the header present?
21751 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
21752 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
21753 cat >conftest.
$ac_ext <<_ACEOF
21756 cat confdefs.h
>>conftest.
$ac_ext
21757 cat >>conftest.
$ac_ext <<_ACEOF
21758 /* end confdefs.h. */
21759 #include <${OSS_DIR}/include/soundcard.h>
21761 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21762 case "(($ac_try" in
21763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21769 grep -v '^ *+' conftest.er1 >conftest.err
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } >/dev/null && {
21774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21777 ac_header_preproc=yes
21779 echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21782 ac_header_preproc=no
21785 rm -f conftest.err conftest.$ac_ext
21786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21787 echo "${ECHO_T}$ac_header_preproc" >&6; }
21789 # So? What about this header?
21790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21792 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21793 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21794 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
21795 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
21796 ac_header_preproc=yes
21799 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
21800 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
21801 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
21802 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
21804 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21806 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
21808 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
21809 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
21810 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
21814 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
21815 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
21816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 eval "$as_ac_Header=\$ac_header_preproc"
21821 ac_res=`eval echo '${'$as_ac_Header'}'`
21822 { echo "$as_me:$LINENO: result: $ac_res" >&5
21823 echo "${ECHO_T}$ac_res" >&6; }
21826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21835 if test "xsoundcard.h" != "x" ; then
21836 if test "${ac_cv_header_soundcard_h+set}" = set; then
21837 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
21838 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
21839 if test "${ac_cv_header_soundcard_h+set}" = set; then
21840 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
21843 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
21845 # Is the header compilable?
21846 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
21847 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
21848 cat >conftest.$ac_ext <<_ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21854 $ac_includes_default
21855 #include <soundcard.h>
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21861 *) ac_try_echo
=$ac_try;;
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21866 grep -v '^ *+' conftest.er1
>conftest.err
21868 cat conftest.err
>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest.
$ac_objext; then
21874 ac_header_compiler
=yes
21876 echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.
$ac_ext >&5
21879 ac_header_compiler
=no
21882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21884 echo "${ECHO_T}$ac_header_compiler" >&6; }
21886 # Is the header present?
21887 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
21888 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
21889 cat >conftest.
$ac_ext <<_ACEOF
21892 cat confdefs.h
>>conftest.
$ac_ext
21893 cat >>conftest.
$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 #include <soundcard.h>
21897 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21898 case "(($ac_try" in
21899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21905 grep -v '^ *+' conftest.er1 >conftest.err
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } >/dev/null && {
21910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21911 test ! -s conftest.err
21913 ac_header_preproc=yes
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ac_header_preproc=no
21921 rm -f conftest.err conftest.$ac_ext
21922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21923 echo "${ECHO_T}$ac_header_preproc" >&6; }
21925 # So? What about this header?
21926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21928 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21929 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
21931 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
21932 ac_header_preproc=yes
21935 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
21936 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
21937 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
21938 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
21939 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
21940 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
21941 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21942 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
21944 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
21946 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
21950 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
21951 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
21952 if test "${ac_cv_header_soundcard_h+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 ac_cv_header_soundcard_h=$ac_header_preproc
21957 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
21958 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
21961 if test $ac_cv_header_soundcard_h = yes; then
21970 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
21971 if test ! -z "${OSS_MANDATORY}" ;
21973 { echo "$as_me:$LINENO: ***" >&5
21974 echo "$as_me: ***" >&6;}
21975 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
21976 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
21977 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
21978 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
21979 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
21980 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
21989 cat >>confdefs.h <<_ACEOF
21994 elif test ! -z "${OSS_MANDATORY}";
21996 { echo "$as_me:$LINENO: ***" >&5
21997 echo "$as_me: ***" >&6;}
21998 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
21999 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
22000 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22001 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22002 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22003 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22011 if test "${USE_PGSQL}" != "no"; then
22012 if test "x${PGSQL_DIR}" != "x"; then
22013 if test -n "$ac_tool_prefix"; then
22014 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22015 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22018 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22023 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22027 for as_dir in ${PGSQL_DIR}/bin
22030 test -z "$as_dir" && as_dir=.
22031 for ac_exec_ext in '' $ac_executable_extensions; do
22032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22033 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22044 PG_CONFIG=$ac_cv_path_PG_CONFIG
22045 if test -n "$PG_CONFIG"; then
22046 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22047 echo "${ECHO_T}$PG_CONFIG" >&6; }
22049 { echo "$as_me:$LINENO: result: no" >&5
22050 echo "${ECHO_T}no" >&6; }
22055 if test -z "$ac_cv_path_PG_CONFIG"; then
22056 ac_pt_PG_CONFIG=$PG_CONFIG
22057 # Extract the first word of "pg_config", so it can be a program name with args.
22058 set dummy pg_config; ac_word=$2
22059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22061 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22064 case $ac_pt_PG_CONFIG in
22066 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22070 for as_dir in ${PGSQL_DIR}/bin
22073 test -z "$as_dir" && as_dir=.
22074 for ac_exec_ext in '' $ac_executable_extensions; do
22075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22076 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22087 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22088 if test -n "$ac_pt_PG_CONFIG"; then
22089 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22090 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22092 { echo "$as_me:$LINENO: result: no" >&5
22093 echo "${ECHO_T}no" >&6; }
22096 if test "x$ac_pt_PG_CONFIG" = x; then
22099 case $cross_compiling:$ac_tool_warned in
22101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22102 whose name does not start with the host triplet. If you think this
22103 configuration is useful to you, please write to autoconf@gnu.org." >&5
22104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22105 whose name does not start with the host triplet. If you think this
22106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22107 ac_tool_warned=yes ;;
22109 PG_CONFIG=$ac_pt_PG_CONFIG
22112 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22115 if test x"${PG_CONFIG}" = xNo; then
22116 { echo "$as_me:$LINENO: ***" >&5
22117 echo "$as_me: ***" >&6;}
22118 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
22119 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
22120 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
22121 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
22122 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22123 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22124 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22125 echo "$as_me: *** including --without-postgres" >&6;}
22129 if test -n "$ac_tool_prefix"; then
22130 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22131 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22134 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22139 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22143 for as_dir in $PATH
22146 test -z "$as_dir" && as_dir=.
22147 for ac_exec_ext in '' $ac_executable_extensions; do
22148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22149 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22160 PG_CONFIG=$ac_cv_path_PG_CONFIG
22161 if test -n "$PG_CONFIG"; then
22162 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22163 echo "${ECHO_T}$PG_CONFIG" >&6; }
22165 { echo "$as_me:$LINENO: result: no" >&5
22166 echo "${ECHO_T}no" >&6; }
22171 if test -z "$ac_cv_path_PG_CONFIG"; then
22172 ac_pt_PG_CONFIG=$PG_CONFIG
22173 # Extract the first word of "pg_config", so it can be a program name with args.
22174 set dummy pg_config; ac_word=$2
22175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22177 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22180 case $ac_pt_PG_CONFIG in
22182 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22186 for as_dir in $PATH
22189 test -z "$as_dir" && as_dir=.
22190 for ac_exec_ext in '' $ac_executable_extensions; do
22191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22192 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22203 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22204 if test -n "$ac_pt_PG_CONFIG"; then
22205 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22206 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22208 { echo "$as_me:$LINENO: result: no" >&5
22209 echo "${ECHO_T}no" >&6; }
22212 if test "x$ac_pt_PG_CONFIG" = x; then
22215 case $cross_compiling:$ac_tool_warned in
22217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22218 whose name does not start with the host triplet. If you think this
22219 configuration is useful to you, please write to autoconf@gnu.org." >&5
22220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22221 whose name does not start with the host triplet. If you think this
22222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22223 ac_tool_warned=yes ;;
22225 PG_CONFIG=$ac_pt_PG_CONFIG
22228 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22233 if test "${PG_CONFIG}" != No; then
22234 PGSQL_libdir=`pg_config
--libdir`
22235 PGSQL_includedir=`pg_config
--includedir`
22237 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
22238 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
22239 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 ac_check_lib_save_LIBS=$LIBS
22243 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
22244 cat >conftest.$ac_ext <<_ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h. */
22251 /* Override any GCC internal prototype to avoid an error.
22252 Use char because int might match the return type of a GCC
22253 builtin and then its argument prototype would still apply. */
22266 rm -f conftest.$ac_objext conftest$ac_exeext
22267 if { (ac_try="$ac_link"
22268 case "(($ac_try" in
22269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22270 *) ac_try_echo
=$ac_try;;
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_link") 2>conftest.er1
22275 grep -v '^ *+' conftest.er1
>conftest.err
22277 cat conftest.err
>&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && {
22280 test -z "$ac_c_werror_flag" ||
22281 test ! -s conftest.err
22282 } && test -s conftest
$ac_exeext &&
22283 $as_test_x conftest
$ac_exeext; then
22284 ac_cv_lib_pq_PQexec
=yes
22286 echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.
$ac_ext >&5
22289 ac_cv_lib_pq_PQexec
=no
22292 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22293 conftest
$ac_exeext conftest.
$ac_ext
22294 LIBS
=$ac_check_lib_save_LIBS
22296 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
22297 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
22298 if test $ac_cv_lib_pq_PQexec = yes; then
22300 cat >>confdefs.h
<<_ACEOF
22301 #define HAVE_PGSQL 1
22307 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
22308 PGSQL_LIB
="-L${PGSQL_libdir} -lpq -lz"
22309 PGSQL_INCLUDE
="-I${PGSQL_includedir}"
22311 elif test ! -z "${PGSQL_MANDATORY}";
22313 { echo "$as_me:$LINENO: ***" >&5
22314 echo "$as_me: ***" >&6;}
22315 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22316 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22317 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22318 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22319 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22320 echo "$as_me: *** including --without-postgres" >&6;}
22323 elif test ! -z "${PGSQL_MANDATORY}";
22325 { echo "$as_me:$LINENO: ***" >&5
22326 echo "$as_me: ***" >&6;}
22327 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22328 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22329 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22330 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22331 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22332 echo "$as_me: *** including --without-postgres" >&6;}
22337 if test "${USE_POPT}" != "no"; then
22339 if test "x${POPT_DIR}" != "x"; then
22340 if test -d ${POPT_DIR}/lib
; then
22341 pbxlibdir
="-L${POPT_DIR}/lib"
22343 pbxlibdir
="-L${POPT_DIR}"
22346 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
22347 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
22348 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 ac_check_lib_save_LIBS
=$LIBS
22352 LIBS
="-lpopt ${pbxlibdir} $LIBS"
22353 cat >conftest.
$ac_ext <<_ACEOF
22356 cat confdefs.h
>>conftest.
$ac_ext
22357 cat >>conftest.
$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22360 /* Override any GCC internal prototype to avoid an error.
22361 Use char because int might match the return type of a GCC
22362 builtin and then its argument prototype would still apply. */
22366 char poptStrerror ();
22370 return poptStrerror ();
22375 rm -f conftest.
$ac_objext conftest
$ac_exeext
22376 if { (ac_try
="$ac_link"
22377 case "(($ac_try" in
22378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22379 *) ac_try_echo=$ac_try;;
22381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22382 (eval "$ac_link") 2>conftest.er1
22384 grep -v '^ *+' conftest.er1 >conftest.err
22386 cat conftest.err >&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } && {
22389 test -z "$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 } && test -s conftest$ac_exeext &&
22392 $as_test_x conftest$ac_exeext; then
22393 ac_cv_lib_popt_poptStrerror=yes
22395 echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 ac_cv_lib_popt_poptStrerror=no
22401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22402 conftest$ac_exeext conftest.$ac_ext
22403 LIBS=$ac_check_lib_save_LIBS
22405 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
22406 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
22407 if test $ac_cv_lib_popt_poptStrerror = yes; then
22414 if test "${AST_POPT_FOUND}" = "yes"; then
22416 POPT_HEADER_FOUND="1"
22417 if test "x${POPT_DIR}" != "x"; then
22418 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
22419 POPT_INCLUDE="-I${POPT_DIR}/include"
22420 if test "xpopt.h" != "x" ; then
22421 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" |
$as_tr_sh`
22422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22423 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22424 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22428 ac_res=`eval echo '${'$as_ac_Header'}'`
22429 { echo "$as_me:$LINENO: result: $ac_res" >&5
22430 echo "${ECHO_T}$ac_res" >&6; }
22432 # Is the header compilable?
22433 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
22434 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
22435 cat >conftest.$ac_ext <<_ACEOF
22438 cat confdefs.h >>conftest.$ac_ext
22439 cat >>conftest.$ac_ext <<_ACEOF
22440 /* end confdefs.h. */
22441 $ac_includes_default
22442 #include <${POPT_DIR}/include/popt.h>
22444 rm -f conftest.$ac_objext
22445 if { (ac_try="$ac_compile"
22446 case "(($ac_try" in
22447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22448 *) ac_try_echo
=$ac_try;;
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_compile") 2>conftest.er1
22453 grep -v '^ *+' conftest.er1
>conftest.err
22455 cat conftest.err
>&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && {
22458 test -z "$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22460 } && test -s conftest.
$ac_objext; then
22461 ac_header_compiler
=yes
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.
$ac_ext >&5
22466 ac_header_compiler
=no
22469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22471 echo "${ECHO_T}$ac_header_compiler" >&6; }
22473 # Is the header present?
22474 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
22475 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
22476 cat >conftest.
$ac_ext <<_ACEOF
22479 cat confdefs.h
>>conftest.
$ac_ext
22480 cat >>conftest.
$ac_ext <<_ACEOF
22481 /* end confdefs.h. */
22482 #include <${POPT_DIR}/include/popt.h>
22484 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22485 case "(($ac_try" in
22486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22492 grep -v '^ *+' conftest.er1 >conftest.err
22494 cat conftest.err >&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } >/dev/null && {
22497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22498 test ! -s conftest.err
22500 ac_header_preproc=yes
22502 echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22505 ac_header_preproc=no
22508 rm -f conftest.err conftest.$ac_ext
22509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22510 echo "${ECHO_T}$ac_header_preproc" >&6; }
22512 # So? What about this header?
22513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22515 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22516 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22517 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
22518 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
22519 ac_header_preproc=yes
22522 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
22523 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
22524 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
22525 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
22526 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
22527 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
22528 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
22529 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22530 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
22531 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
22532 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
22533 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
22537 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22538 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22542 eval "$as_ac_Header=\$ac_header_preproc"
22544 ac_res=`eval echo '${'$as_ac_Header'}'`
22545 { echo "$as_me:$LINENO: result: $ac_res" >&5
22546 echo "${ECHO_T}$ac_res" >&6; }
22549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22550 POPT_HEADER_FOUND=1
22552 POPT_HEADER_FOUND=0
22558 if test "xpopt.h" != "x" ; then
22559 if test "${ac_cv_header_popt_h+set}" = set; then
22560 { echo "$as_me:$LINENO: checking for popt.h" >&5
22561 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
22562 if test "${ac_cv_header_popt_h+set}" = set; then
22563 echo $ECHO_N "(cached) $ECHO_C" >&6
22565 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
22566 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
22568 # Is the header compilable?
22569 { echo "$as_me:$LINENO: checking popt.h usability" >&5
22570 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
22571 cat >conftest.$ac_ext <<_ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577 $ac_includes_default
22580 rm -f conftest.$ac_objext
22581 if { (ac_try="$ac_compile"
22582 case "(($ac_try" in
22583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22584 *) ac_try_echo
=$ac_try;;
22586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22587 (eval "$ac_compile") 2>conftest.er1
22589 grep -v '^ *+' conftest.er1
>conftest.err
22591 cat conftest.err
>&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } && {
22594 test -z "$ac_c_werror_flag" ||
22595 test ! -s conftest.err
22596 } && test -s conftest.
$ac_objext; then
22597 ac_header_compiler
=yes
22599 echo "$as_me: failed program was:" >&5
22600 sed 's/^/| /' conftest.
$ac_ext >&5
22602 ac_header_compiler
=no
22605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22607 echo "${ECHO_T}$ac_header_compiler" >&6; }
22609 # Is the header present?
22610 { echo "$as_me:$LINENO: checking popt.h presence" >&5
22611 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
22612 cat >conftest.
$ac_ext <<_ACEOF
22615 cat confdefs.h
>>conftest.
$ac_ext
22616 cat >>conftest.
$ac_ext <<_ACEOF
22617 /* end confdefs.h. */
22620 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22621 case "(($ac_try" in
22622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22628 grep -v '^ *+' conftest.er1 >conftest.err
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } >/dev/null && {
22633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22636 ac_header_preproc=yes
22638 echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22641 ac_header_preproc=no
22644 rm -f conftest.err conftest.$ac_ext
22645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22646 echo "${ECHO_T}$ac_header_preproc" >&6; }
22648 # So? What about this header?
22649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22651 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22652 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22653 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
22654 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
22655 ac_header_preproc=yes
22658 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
22659 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
22660 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
22661 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
22662 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
22663 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
22664 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
22665 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22666 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
22667 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
22668 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
22669 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
22673 { echo "$as_me:$LINENO: checking for popt.h" >&5
22674 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
22675 if test "${ac_cv_header_popt_h+set}" = set; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22678 ac_cv_header_popt_h=$ac_header_preproc
22680 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
22681 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
22684 if test $ac_cv_header_popt_h = yes; then
22685 POPT_HEADER_FOUND=1
22687 POPT_HEADER_FOUND=0
22693 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
22694 if test ! -z "${POPT_MANDATORY}" ;
22696 { echo "$as_me:$LINENO: ***" >&5
22697 echo "$as_me: ***" >&6;}
22698 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
22699 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
22700 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
22701 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
22702 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
22703 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
22712 cat >>confdefs.h <<_ACEOF
22713 #define HAVE_POPT 1
22717 elif test ! -z "${POPT_MANDATORY}";
22719 { echo "$as_me:$LINENO: ***" >&5
22720 echo "$as_me: ***" >&6;}
22721 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
22722 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
22723 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22724 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22725 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
22726 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
22733 if test "${USE_PRI}" != "no"; then
22735 if test "x${PRI_DIR}" != "x"; then
22736 if test -d ${PRI_DIR}/lib; then
22737 pbxlibdir="-L${PRI_DIR}/lib"
22739 pbxlibdir="-L${PRI_DIR}"
22742 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
22743 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
22744 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
22745 echo $ECHO_N "(cached) $ECHO_C" >&6
22747 ac_check_lib_save_LIBS=$LIBS
22748 LIBS="-lpri ${pbxlibdir} $LIBS"
22749 cat >conftest.$ac_ext <<_ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22756 /* Override any GCC internal prototype to avoid an error.
22757 Use char because int might match the return type of a GCC
22758 builtin and then its argument prototype would still apply. */
22766 return pri_call ();
22771 rm -f conftest.$ac_objext conftest$ac_exeext
22772 if { (ac_try="$ac_link"
22773 case "(($ac_try" in
22774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22775 *) ac_try_echo
=$ac_try;;
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778 (eval "$ac_link") 2>conftest.er1
22780 grep -v '^ *+' conftest.er1
>conftest.err
22782 cat conftest.err
>&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } && {
22785 test -z "$ac_c_werror_flag" ||
22786 test ! -s conftest.err
22787 } && test -s conftest
$ac_exeext &&
22788 $as_test_x conftest
$ac_exeext; then
22789 ac_cv_lib_pri_pri_call
=yes
22791 echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.
$ac_ext >&5
22794 ac_cv_lib_pri_pri_call
=no
22797 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22798 conftest
$ac_exeext conftest.
$ac_ext
22799 LIBS
=$ac_check_lib_save_LIBS
22801 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
22802 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
22803 if test $ac_cv_lib_pri_pri_call = yes; then
22810 if test "${AST_PRI_FOUND}" = "yes"; then
22812 PRI_HEADER_FOUND
="1"
22813 if test "x${PRI_DIR}" != "x"; then
22814 PRI_LIB
="${pbxlibdir} ${PRI_LIB}"
22815 PRI_INCLUDE
="-I${PRI_DIR}/include"
22816 if test "xlibpri.h" != "x" ; then
22817 as_ac_Header
=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
22818 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22819 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
22820 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
22821 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22822 echo $ECHO_N "(cached) $ECHO_C" >&6
22824 ac_res
=`eval echo '${'$as_ac_Header'}'`
22825 { echo "$as_me:$LINENO: result: $ac_res" >&5
22826 echo "${ECHO_T}$ac_res" >&6; }
22828 # Is the header compilable?
22829 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
22830 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
22831 cat >conftest.
$ac_ext <<_ACEOF
22834 cat confdefs.h
>>conftest.
$ac_ext
22835 cat >>conftest.
$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 $ac_includes_default
22838 #include <${PRI_DIR}/include/libpri.h>
22840 rm -f conftest.
$ac_objext
22841 if { (ac_try
="$ac_compile"
22842 case "(($ac_try" in
22843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22844 *) ac_try_echo=$ac_try;;
22846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22847 (eval "$ac_compile") 2>conftest.er1
22849 grep -v '^ *+' conftest.er1 >conftest.err
22851 cat conftest.err >&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } && {
22854 test -z "$ac_c_werror_flag" ||
22855 test ! -s conftest.err
22856 } && test -s conftest.$ac_objext; then
22857 ac_header_compiler=yes
22859 echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22862 ac_header_compiler=no
22865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22867 echo "${ECHO_T}$ac_header_compiler" >&6; }
22869 # Is the header present?
22870 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
22871 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
22872 cat >conftest.$ac_ext <<_ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h. */
22878 #include <${PRI_DIR}/include/libpri.h>
22880 if { (ac_try="$ac_cpp conftest.$ac_ext"
22881 case "(($ac_try" in
22882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22883 *) ac_try_echo
=$ac_try;;
22885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22888 grep -v '^ *+' conftest.er1
>conftest.err
22890 cat conftest.err
>&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } >/dev
/null
&& {
22893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22894 test ! -s conftest.err
22896 ac_header_preproc
=yes
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.
$ac_ext >&5
22901 ac_header_preproc
=no
22904 rm -f conftest.err conftest.
$ac_ext
22905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22906 echo "${ECHO_T}$ac_header_preproc" >&6; }
22908 # So? What about this header?
22909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22911 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
22912 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22913 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
22914 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
22915 ac_header_preproc
=yes
22918 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
22919 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
22920 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
22921 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
22922 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
22923 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
22924 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
22925 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
22926 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
22927 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
22928 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
22929 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
22933 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
22934 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
22935 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22938 eval "$as_ac_Header=\$ac_header_preproc"
22940 ac_res
=`eval echo '${'$as_ac_Header'}'`
22941 { echo "$as_me:$LINENO: result: $ac_res" >&5
22942 echo "${ECHO_T}$ac_res" >&6; }
22945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22954 if test "xlibpri.h" != "x" ; then
22955 if test "${ac_cv_header_libpri_h+set}" = set; then
22956 { echo "$as_me:$LINENO: checking for libpri.h" >&5
22957 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
22958 if test "${ac_cv_header_libpri_h+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22961 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
22962 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
22964 # Is the header compilable?
22965 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
22966 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
22967 cat >conftest.
$ac_ext <<_ACEOF
22970 cat confdefs.h
>>conftest.
$ac_ext
22971 cat >>conftest.
$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22973 $ac_includes_default
22974 #include <libpri.h>
22976 rm -f conftest.
$ac_objext
22977 if { (ac_try
="$ac_compile"
22978 case "(($ac_try" in
22979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22980 *) ac_try_echo=$ac_try;;
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983 (eval "$ac_compile") 2>conftest.er1
22985 grep -v '^ *+' conftest.er1 >conftest.err
22987 cat conftest.err >&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest.$ac_objext; then
22993 ac_header_compiler=yes
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_header_compiler=no
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23003 echo "${ECHO_T}$ac_header_compiler" >&6; }
23005 # Is the header present?
23006 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
23007 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
23008 cat >conftest.$ac_ext <<_ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23014 #include <libpri.h>
23016 if { (ac_try="$ac_cpp conftest.$ac_ext"
23017 case "(($ac_try" in
23018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23019 *) ac_try_echo
=$ac_try;;
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23024 grep -v '^ *+' conftest.er1
>conftest.err
23026 cat conftest.err
>&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } >/dev
/null
&& {
23029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23032 ac_header_preproc
=yes
23034 echo "$as_me: failed program was:" >&5
23035 sed 's/^/| /' conftest.
$ac_ext >&5
23037 ac_header_preproc
=no
23040 rm -f conftest.err conftest.
$ac_ext
23041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23042 echo "${ECHO_T}$ac_header_preproc" >&6; }
23044 # So? What about this header?
23045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23047 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23048 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23049 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
23050 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
23051 ac_header_preproc
=yes
23054 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
23055 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
23056 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
23057 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
23058 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
23059 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
23060 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23061 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
23063 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
23064 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
23065 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
23069 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23070 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23071 if test "${ac_cv_header_libpri_h+set}" = set; then
23072 echo $ECHO_N "(cached) $ECHO_C" >&6
23074 ac_cv_header_libpri_h
=$ac_header_preproc
23076 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23077 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23080 if test $ac_cv_header_libpri_h = yes; then
23089 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
23090 if test ! -z "${PRI_MANDATORY}" ;
23092 { echo "$as_me:$LINENO: ***" >&5
23093 echo "$as_me: ***" >&6;}
23094 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
23095 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
23096 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
23097 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
23098 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23099 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23108 cat >>confdefs.h
<<_ACEOF
23113 elif test ! -z "${PRI_MANDATORY}";
23115 { echo "$as_me:$LINENO: ***" >&5
23116 echo "$as_me: ***" >&6;}
23117 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
23118 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
23119 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23120 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23121 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23122 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23128 if test "${USE_PWLIB}" != "no"; then
23129 if test ! -z "${PWLIB_DIR}"; then
23130 PWLIBDIR
="${PWLIB_DIR}"
23135 if test "${PWLIBDIR:-unset}" != "unset" ; then
23136 as_ac_File
=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
23137 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
23138 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
23139 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 test "$cross_compiling" = yes &&
23143 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23144 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23145 { (exit 1); exit 1; }; }
23146 if test -r "${PWLIBDIR}/version.h"; then
23147 eval "$as_ac_File=yes"
23149 eval "$as_ac_File=no"
23152 ac_res
=`eval echo '${'$as_ac_File'}'`
23153 { echo "$as_me:$LINENO: result: $ac_res" >&5
23154 echo "${ECHO_T}$ac_res" >&6; }
23155 if test `eval echo '${'$as_ac_File'}'` = yes; then
23160 if test "${HAS_PWLIB:-unset}" = "unset" ; then
23161 if test "${OPENH323DIR:-unset}" != "unset"; then
23162 as_ac_File
=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
23163 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
23164 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
23165 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23166 echo $ECHO_N "(cached) $ECHO_C" >&6
23168 test "$cross_compiling" = yes &&
23169 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23170 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23171 { (exit 1); exit 1; }; }
23172 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
23173 eval "$as_ac_File=yes"
23175 eval "$as_ac_File=no"
23178 ac_res
=`eval echo '${'$as_ac_File'}'`
23179 { echo "$as_me:$LINENO: result: $ac_res" >&5
23180 echo "${ECHO_T}$ac_res" >&6; }
23181 if test `eval echo '${'$as_ac_File'}'` = yes; then
23186 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23187 PWLIBDIR
="${OPENH323DIR}/../pwlib"
23189 as_ac_File
=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
23190 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
23191 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
23192 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23193 echo $ECHO_N "(cached) $ECHO_C" >&6
23195 test "$cross_compiling" = yes &&
23196 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23197 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23198 { (exit 1); exit 1; }; }
23199 if test -r "${HOME}/pwlib/include/ptlib.h"; then
23200 eval "$as_ac_File=yes"
23202 eval "$as_ac_File=no"
23205 ac_res
=`eval echo '${'$as_ac_File'}'`
23206 { echo "$as_me:$LINENO: result: $ac_res" >&5
23207 echo "${ECHO_T}$ac_res" >&6; }
23208 if test `eval echo '${'$as_ac_File'}'` = yes; then
23212 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23213 PWLIBDIR
="${HOME}/pwlib"
23215 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
23216 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
23217 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
23218 echo $ECHO_N "(cached) $ECHO_C" >&6
23220 test "$cross_compiling" = yes &&
23221 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23222 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23223 { (exit 1); exit 1; }; }
23224 if test -r "/usr/local/include/ptlib.h"; then
23225 ac_cv_file__usr_local_include_ptlib_h
=yes
23227 ac_cv_file__usr_local_include_ptlib_h
=no
23230 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
23231 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
23232 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
23236 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23237 # Extract the first word of "ptlib-config", so it can be a program name with args.
23238 set dummy ptlib-config
; ac_word
=$2
23239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23241 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23242 echo $ECHO_N "(cached) $ECHO_C" >&6
23244 case $PTLIB_CONFIG in
23246 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
23249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23250 for as_dir
in /usr
/local
/bin
23253 test -z "$as_dir" && as_dir
=.
23254 for ac_exec_ext
in '' $ac_executable_extensions; do
23255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23256 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
23257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23267 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
23268 if test -n "$PTLIB_CONFIG"; then
23269 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23270 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23272 { echo "$as_me:$LINENO: result: no" >&5
23273 echo "${ECHO_T}no" >&6; }
23277 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
23278 # Extract the first word of "ptlib-config", so it can be a program name with args.
23279 set dummy ptlib-config
; ac_word
=$2
23280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23282 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23283 echo $ECHO_N "(cached) $ECHO_C" >&6
23285 case $PTLIB_CONFIG in
23287 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
23290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23291 for as_dir
in /usr
/local
/share
/pwlib
/make
23294 test -z "$as_dir" && as_dir
=.
23295 for ac_exec_ext
in '' $ac_executable_extensions; do
23296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23297 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
23298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23308 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
23309 if test -n "$PTLIB_CONFIG"; then
23310 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23311 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23313 { echo "$as_me:$LINENO: result: no" >&5
23314 echo "${ECHO_T}no" >&6; }
23319 PWLIB_INCDIR
="/usr/local/include"
23320 PWLIB_LIBDIR
="/usr/local/lib"
23322 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
23323 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
23324 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23327 test "$cross_compiling" = yes &&
23328 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23329 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23330 { (exit 1); exit 1; }; }
23331 if test -r "/usr/include/ptlib.h"; then
23332 ac_cv_file__usr_include_ptlib_h
=yes
23334 ac_cv_file__usr_include_ptlib_h
=no
23337 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
23338 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
23339 if test $ac_cv_file__usr_include_ptlib_h = yes; then
23343 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23344 # Extract the first word of "ptlib-config", so it can be a program name with args.
23345 set dummy ptlib-config
; ac_word
=$2
23346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23348 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23349 echo $ECHO_N "(cached) $ECHO_C" >&6
23351 case $PTLIB_CONFIG in
23353 ac_cv_path_PTLIB_CONFIG
="$PTLIB_CONFIG" # Let the user override the test with a path.
23356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23357 for as_dir
in /usr
/share
/pwlib
/make
23360 test -z "$as_dir" && as_dir
=.
23361 for ac_exec_ext
in '' $ac_executable_extensions; do
23362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23363 ac_cv_path_PTLIB_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
23364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23374 PTLIB_CONFIG
=$ac_cv_path_PTLIB_CONFIG
23375 if test -n "$PTLIB_CONFIG"; then
23376 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23377 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23379 { echo "$as_me:$LINENO: result: no" >&5
23380 echo "${ECHO_T}no" >&6; }
23384 PWLIB_INCDIR
="/usr/include"
23385 PWLIB_LIBDIR
="/usr/lib"
23392 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
23393 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
23397 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23398 if test "${PWLIBDIR:-unset}" = "unset" ; then
23399 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
23400 PWLIBDIR
=`$PTLIB_CONFIG --prefix`
23402 echo "Cannot find ptlib-config - please install and try again"
23407 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
23408 PWLIBDIR
="/usr/share/pwlib"
23409 PWLIB_INCDIR
="/usr/include"
23410 PWLIB_LIBDIR
="/usr/lib"
23412 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
23413 PWLIBDIR
="/usr/local/share/pwlib"
23414 PWLIB_INCDIR
="/usr/local/include"
23415 PWLIB_LIBDIR
="/usr/local/lib"
23418 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
23419 PWLIB_INCDIR
="${PWLIBDIR}/include"
23421 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
23422 PWLIB_LIBDIR
="${PWLIBDIR}/lib"
23431 if test "${HAS_PWLIB:-unset}" != "unset"; then
23432 PWLIB_VERSION
=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
23433 PWLIB_MAJOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f1 -d.`
23434 PWLIB_MINOR_VERSION
=`echo ${PWLIB_VERSION} | cut -f2 -d.`
23435 PWLIB_BUILD_NUMBER
=`echo ${PWLIB_VERSION} | cut -f3 -d.`
23436 let PWLIB_VER
=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
23437 let PWLIB_REQ
=1*10000+9*100+2
23439 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
23440 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23441 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
23442 { echo "$as_me:$LINENO: result: no" >&5
23443 echo "${ECHO_T}no" >&6; }
23446 { echo "$as_me:$LINENO: result: yes" >&5
23447 echo "${ECHO_T}yes" >&6; }
23452 if test "${HAS_PWLIB:-unset}" != "unset"; then
23456 linux
*) PWLIB_OSTYPE
=linux
;
23458 freebsd
* ) PWLIB_OSTYPE
=FreeBSD
;
23460 openbsd
* ) PWLIB_OSTYPE
=OpenBSD
;
23461 ENDLDLIBS
="-lossaudio" ;
23463 netbsd
* ) PWLIB_OSTYPE
=NetBSD
;
23464 ENDLDLIBS
="-lossaudio" ;
23466 solaris
* | sunos
* ) PWLIB_OSTYPE
=solaris
;
23468 darwin
* ) PWLIB_OSTYPE
=Darwin
;
23470 beos
*) PWLIB_OSTYPE
=beos
;
23471 STDCCFLAGS
="$STDCCFLAGS -D__BEOS__"
23473 cygwin
*) PWLIB_OSTYPE
=cygwin
;
23475 mingw
*) PWLIB_OSTYPE
=mingw
;
23476 STDCCFLAGS
="$STDCCFLAGS -mms-bitfields" ;
23477 ENDLDLIBS
="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
23479 * ) PWLIB_OSTYPE
="$host_os" ;
23480 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
23481 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
23486 case "$host_cpu" in
23487 x86 | i686 | i586 | i486 | i386
) PWLIB_MACHTYPE
=x86
23490 x86_64
) PWLIB_MACHTYPE
=x86_64
;
23495 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7
) PWLIB_MACHTYPE
=alpha
;
23499 sparc
) PWLIB_MACHTYPE
=sparc
;
23502 powerpc
) PWLIB_MACHTYPE
=ppc
;
23505 ppc
) PWLIB_MACHTYPE
=ppc
;
23508 powerpc64
) PWLIB_MACHTYPE
=ppc64
;
23513 ppc64
) PWLIB_MACHTYPE
=ppc64
;
23518 ia64
) PWLIB_MACHTYPE
=ia64
;
23522 s390x
) PWLIB_MACHTYPE
=s390x
;
23527 s390
) PWLIB_MACHTYPE
=s390
;
23530 * ) PWLIB_MACHTYPE
="$host_cpu";
23531 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
23532 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
23535 PWLIB_PLATFORM
="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
23540 PLATFORM_PWLIB
="pt_${PWLIB_PLATFORM}_r"
23543 if test "${HAS_PWLIB:-unset}" != "unset"; then
23544 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
23545 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
23547 saved_cppflags
="${CPPFLAGS}"
23548 saved_libs
="${LIBS}"
23549 LIBS
="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
23550 CPPFLAGS
="${CPPFLAGS} -I${PWLIB_INCDIR} "
23553 ac_cpp
='$CXXCPP $CPPFLAGS'
23554 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23555 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23556 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23559 cat >conftest.
$ac_ext <<_ACEOF
23562 cat confdefs.h
>>conftest.
$ac_ext
23563 cat >>conftest.
$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23569 BOOL q = PTime::IsDaylightSavings();
23574 rm -f conftest.
$ac_objext conftest
$ac_exeext
23575 if { (ac_try
="$ac_link"
23576 case "(($ac_try" in
23577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23578 *) ac_try_echo=$ac_try;;
23580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23581 (eval "$ac_link") 2>conftest.er1
23583 grep -v '^ *+' conftest.er1 >conftest.err
23585 cat conftest.err >&5
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); } && {
23588 test -z "$ac_cxx_werror_flag" ||
23589 test ! -s conftest.err
23590 } && test -s conftest$ac_exeext &&
23591 $as_test_x conftest$ac_exeext; then
23592 { echo "$as_me:$LINENO: result: yes" >&5
23593 echo "${ECHO_T}yes" >&6; }
23594 ac_cv_lib_PWLIB="yes"
23597 echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23600 { echo "$as_me:$LINENO: result: no" >&5
23601 echo "${ECHO_T}no" >&6; }
23602 ac_cv_lib_PWLIB="no"
23607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23608 conftest$ac_exeext conftest.$ac_ext
23611 ac_cpp='$CPP $CPPFLAGS'
23612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23617 LIBS="${saved_libs}"
23618 CPPFLAGS="${saved_cppflags}"
23620 if test "${ac_cv_lib_PWLIB}" = "yes"; then
23621 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
23622 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
23624 PWLIB_LIB="-l${PLATFORM_PWLIB}"
23626 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
23627 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
23631 cat >>confdefs.h <<\_ACEOF
23632 #define HAVE_PWLIB 1
23641 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
23642 { echo "$as_me:$LINENO: ***" >&5
23643 echo "$as_me: ***" >&6;}
23644 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
23645 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
23646 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23647 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23648 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
23649 echo "$as_me: *** including --without-pwlib" >&6;}
23653 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
23654 if test ! -z "${OPENH323_DIR}"; then
23655 OPENH323DIR="${OPENH323_DIR}"
23660 if test "${OPENH323DIR:-unset}" != "unset" ; then
23661 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" |
$as_tr_sh`
23662 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
23663 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
23664 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23665 echo $ECHO_N "(cached) $ECHO_C" >&6
23667 test "$cross_compiling" = yes &&
23668 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23669 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23670 { (exit 1); exit 1; }; }
23671 if test -r "${OPENH323DIR}/version.h"; then
23672 eval "$as_ac_File=yes"
23674 eval "$as_ac_File=no"
23677 ac_res=`eval echo '${'$as_ac_File'}'`
23678 { echo "$as_me:$LINENO: result: $ac_res" >&5
23679 echo "${ECHO_T}$ac_res" >&6; }
23680 if test `eval echo '${'$as_ac_File'}'` = yes; then
23685 if test "${HAS_OPENH323:-unset}" = "unset" ; then
23686 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" |
$as_tr_sh`
23687 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
23688 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
23689 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23690 echo $ECHO_N "(cached) $ECHO_C" >&6
23692 test "$cross_compiling" = yes &&
23693 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23694 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23695 { (exit 1); exit 1; }; }
23696 if test -r "${PWLIBDIR}/../openh323/version.h"; then
23697 eval "$as_ac_File=yes"
23699 eval "$as_ac_File=no"
23702 ac_res=`eval echo '${'$as_ac_File'}'`
23703 { echo "$as_me:$LINENO: result: $ac_res" >&5
23704 echo "${ECHO_T}$ac_res" >&6; }
23705 if test `eval echo '${'$as_ac_File'}'` = yes; then
23706 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
23709 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23710 OPENH323DIR="${PWLIBDIR}/../openh323"
23711 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" |
$as_tr_sh`
23712 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
23713 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
23714 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23715 echo $ECHO_N "(cached) $ECHO_C" >&6
23717 test "$cross_compiling" = yes &&
23718 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23719 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23720 { (exit 1); exit 1; }; }
23721 if test -r "${OPENH323DIR}/include/h323.h"; then
23722 eval "$as_ac_File=yes"
23724 eval "$as_ac_File=no"
23727 ac_res=`eval echo '${'$as_ac_File'}'`
23728 { echo "$as_me:$LINENO: result: $ac_res" >&5
23729 echo "${ECHO_T}$ac_res" >&6; }
23730 if test `eval echo '${'$as_ac_File'}'` = yes; then
23733 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
23737 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" |
$as_tr_sh`
23738 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
23739 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
23740 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23741 echo $ECHO_N "(cached) $ECHO_C" >&6
23743 test "$cross_compiling" = yes &&
23744 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23745 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23746 { (exit 1); exit 1; }; }
23747 if test -r "${HOME}/openh323/include/h323.h"; then
23748 eval "$as_ac_File=yes"
23750 eval "$as_ac_File=no"
23753 ac_res=`eval echo '${'$as_ac_File'}'`
23754 { echo "$as_me:$LINENO: result: $ac_res" >&5
23755 echo "${ECHO_T}$ac_res" >&6; }
23756 if test `eval echo '${'$as_ac_File'}'` = yes; then
23760 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23761 OPENH323DIR="${HOME}/openh323"
23763 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
23764 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
23765 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
23766 echo $ECHO_N "(cached) $ECHO_C" >&6
23768 test "$cross_compiling" = yes &&
23769 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23770 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23771 { (exit 1); exit 1; }; }
23772 if test -r "/usr/local/include/openh323/h323.h"; then
23773 ac_cv_file__usr_local_include_openh323_h323_h=yes
23775 ac_cv_file__usr_local_include_openh323_h323_h=no
23778 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
23779 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
23780 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
23784 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23785 OPENH323DIR="/usr/local/share/openh323"
23786 OPENH323_INCDIR="/usr/local/include/openh323"
23787 OPENH323_LIBDIR="/usr/local/lib"
23789 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
23790 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
23791 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23794 test "$cross_compiling" = yes &&
23795 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23796 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23797 { (exit 1); exit 1; }; }
23798 if test -r "/usr/include/openh323/h323.h"; then
23799 ac_cv_file__usr_include_openh323_h323_h=yes
23801 ac_cv_file__usr_include_openh323_h323_h=no
23804 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
23805 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
23806 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
23810 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23811 OPENH323DIR="/usr/share/openh323"
23812 OPENH323_INCDIR="/usr/include/openh323"
23813 OPENH323_LIBDIR="/usr/lib"
23820 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23821 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
23822 OPENH323_INCDIR="${OPENH323DIR}/include"
23824 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
23825 OPENH323_LIBDIR="${OPENH323DIR}/lib"
23834 if test "${HAS_OPENH323:-unset}" != "unset"; then
23835 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut
-f2 -d ' ' |
sed -e 's/"//g'`
23836 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f1 -d.
`
23837 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut
-f2 -d.
`
23838 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut
-f3 -d.
`
23839 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
23840 let OPENH323_REQ=1*10000+17*100+3
23842 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
23843 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23844 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
23845 { echo "$as_me:$LINENO: result: no" >&5
23846 echo "${ECHO_T}no" >&6; }
23849 { echo "$as_me:$LINENO: result: yes" >&5
23850 echo "${ECHO_T}yes" >&6; }
23855 if test "${HAS_OPENH323:-unset}" != "unset"; then
23856 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
23857 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
23859 files=`ls -l ${OPENH323_LIBDIR}/libh323_
${PWLIB_PLATFORM}_
*.so
*`
23861 if test -n "$files"; then
23862 for f in $files; do
23863 if test -f $f -a ! -L $f; then
23864 libfile=`basename $f`
23869 if test "${libfile:-unset}" != "unset"; then
23870 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
23872 case "${OPENH323_SUFFIX}" in
23874 OPENH323_BUILD="notrace";;
23876 OPENH323_BUILD="opt";;
23878 OPENH323_BUILD="debug";;
23880 OPENH323_BUILD="notrace";;
23882 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
23883 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
23889 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
23891 if test "${HAS_OPENH323:-unset}" != "unset"; then
23892 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
23893 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
23895 saved_cppflags="${CPPFLAGS}"
23896 saved_libs="${LIBS}"
23897 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
23898 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
23901 ac_cpp='$CXXCPP $CPPFLAGS'
23902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23907 cat >conftest.$ac_ext <<_ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23915 #include "h323ep.h"
23919 H323EndPoint ep = H323EndPoint();
23924 rm -f conftest.$ac_objext conftest$ac_exeext
23925 if { (ac_try="$ac_link"
23926 case "(($ac_try" in
23927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23928 *) ac_try_echo
=$ac_try;;
23930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23931 (eval "$ac_link") 2>conftest.er1
23933 grep -v '^ *+' conftest.er1
>conftest.err
23935 cat conftest.err
>&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } && {
23938 test -z "$ac_cxx_werror_flag" ||
23939 test ! -s conftest.err
23940 } && test -s conftest
$ac_exeext &&
23941 $as_test_x conftest
$ac_exeext; then
23942 { echo "$as_me:$LINENO: result: yes" >&5
23943 echo "${ECHO_T}yes" >&6; }
23944 ac_cv_lib_OPENH323
="yes"
23947 echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.
$ac_ext >&5
23950 { echo "$as_me:$LINENO: result: no" >&5
23951 echo "${ECHO_T}no" >&6; }
23952 ac_cv_lib_OPENH323
="no"
23957 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23958 conftest
$ac_exeext conftest.
$ac_ext
23961 ac_cpp
='$CPP $CPPFLAGS'
23962 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23963 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23964 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23967 LIBS
="${saved_libs}"
23968 CPPFLAGS
="${saved_cppflags}"
23970 if test "${ac_cv_lib_OPENH323}" = "yes"; then
23971 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
23972 OPENH323_LIB
="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
23974 OPENH323_LIB
="-l${PLATFORM_OPENH323}"
23976 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
23977 OPENH323_INCLUDE
="-I${OPENH323_INCDIR}"
23981 cat >>confdefs.h
<<\_ACEOF
23982 #define HAVE_OPENH323 1
23989 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
23990 { echo "$as_me:$LINENO: ***" >&5
23991 echo "$as_me: ***" >&6;}
23992 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
23993 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
23994 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23995 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23996 { echo "$as_me:$LINENO: *** including --without-h323" >&5
23997 echo "$as_me: *** including --without-h323" >&6;}
24003 ac_cpp
='$CXXCPP $CPPFLAGS'
24004 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24005 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24006 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
24009 if test "${USE_QT}" != "no"; then
24010 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
24011 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
24012 saved_libs
="${LIBS}"
24013 saved_cppflags
="${CPPFLAGS}"
24014 if test "x${QT_DIR}" != "x"; then
24015 LIBS
="${LIBS} -L${QT_DIR}/lib"
24016 CPPFLAGS
="${CPPFLAGS} -I${QT_DIR}/include"
24018 LIBS
="${LIBS} -lqt"
24020 cat >conftest.
$ac_ext <<_ACEOF
24024 cat confdefs.h
>>conftest.
$ac_ext
24025 cat >>conftest.
$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24027 #include <qt3/qdatetime.h>
24037 rm -f conftest.
$ac_objext conftest
$ac_exeext
24038 if { (ac_try
="$ac_link"
24039 case "(($ac_try" in
24040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24041 *) ac_try_echo=$ac_try;;
24043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24044 (eval "$ac_link") 2>conftest.er1
24046 grep -v '^ *+' conftest.er1 >conftest.err
24048 cat conftest.err >&5
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); } && {
24051 test -z "$ac_cxx_werror_flag" ||
24052 test ! -s conftest.err
24053 } && test -s conftest$ac_exeext &&
24054 $as_test_x conftest$ac_exeext; then
24055 ac_cv_lib_qt_qt_date="yes"
24057 echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24060 ac_cv_lib_qt_qt_date="no"
24063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24064 conftest$ac_exeext conftest.$ac_ext
24065 LIBS="${saved_libs}"
24066 CPPFLAGS="${saved_cppflags}"
24068 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
24069 saved_libs="${LIBS}"
24070 saved_cppflags="${CPPFLAGS}"
24071 if test "x${QT_DIR}" != "x"; then
24072 LIBS="${LIBS} -L${QT_DIR}/lib"
24073 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
24075 LIBS="${LIBS} -lqt-mt"
24077 cat >conftest.$ac_ext <<_ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h. */
24084 #include <qt3/qdatetime.h>
24094 rm -f conftest.$ac_objext conftest$ac_exeext
24095 if { (ac_try="$ac_link"
24096 case "(($ac_try" in
24097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24098 *) ac_try_echo
=$ac_try;;
24100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24101 (eval "$ac_link") 2>conftest.er1
24103 grep -v '^ *+' conftest.er1
>conftest.err
24105 cat conftest.err
>&5
24106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 (exit $ac_status); } && {
24108 test -z "$ac_cxx_werror_flag" ||
24109 test ! -s conftest.err
24110 } && test -s conftest
$ac_exeext &&
24111 $as_test_x conftest
$ac_exeext; then
24112 ac_cv_lib_qt_qt_date
="yes"
24114 echo "$as_me: failed program was:" >&5
24115 sed 's/^/| /' conftest.
$ac_ext >&5
24117 ac_cv_lib_qt_qt_date
="no"
24120 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24121 conftest
$ac_exeext conftest.
$ac_ext
24122 LIBS
="${saved_libs}"
24123 CPPFLAGS
="${saved_cppflags}"
24126 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24127 { echo "$as_me:$LINENO: result: yes" >&5
24128 echo "${ECHO_T}yes" >&6; }
24130 { echo "$as_me:$LINENO: result: no" >&5
24131 echo "${ECHO_T}no" >&6; }
24134 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24135 QT_LIB
="-l${qtlib}"
24136 if test "${QT_DIR}" != ""; then
24137 QT_LIB
="-L${QT_DIR}/lib ${QT_LIB}"
24138 QT_INCLUDE
="-I${QT_DIR}/include"
24142 cat >>confdefs.h
<<\_ACEOF
24146 if test -n "$ac_tool_prefix"; then
24147 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
24148 set dummy
${ac_tool_prefix}moc
; ac_word
=$2
24149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24151 if test "${ac_cv_path_QTMOC+set}" = set; then
24152 echo $ECHO_N "(cached) $ECHO_C" >&6
24156 ac_cv_path_QTMOC
="$QTMOC" # Let the user override the test with a path.
24159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24160 for as_dir
in $PATH
24163 test -z "$as_dir" && as_dir
=.
24164 for ac_exec_ext
in '' $ac_executable_extensions; do
24165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24166 ac_cv_path_QTMOC
="$as_dir/$ac_word$ac_exec_ext"
24167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24177 QTMOC
=$ac_cv_path_QTMOC
24178 if test -n "$QTMOC"; then
24179 { echo "$as_me:$LINENO: result: $QTMOC" >&5
24180 echo "${ECHO_T}$QTMOC" >&6; }
24182 { echo "$as_me:$LINENO: result: no" >&5
24183 echo "${ECHO_T}no" >&6; }
24188 if test -z "$ac_cv_path_QTMOC"; then
24190 # Extract the first word of "moc", so it can be a program name with args.
24191 set dummy moc
; ac_word
=$2
24192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24194 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
24195 echo $ECHO_N "(cached) $ECHO_C" >&6
24197 case $ac_pt_QTMOC in
24199 ac_cv_path_ac_pt_QTMOC
="$ac_pt_QTMOC" # Let the user override the test with a path.
24202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24203 for as_dir
in $PATH
24206 test -z "$as_dir" && as_dir
=.
24207 for ac_exec_ext
in '' $ac_executable_extensions; do
24208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24209 ac_cv_path_ac_pt_QTMOC
="$as_dir/$ac_word$ac_exec_ext"
24210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24220 ac_pt_QTMOC
=$ac_cv_path_ac_pt_QTMOC
24221 if test -n "$ac_pt_QTMOC"; then
24222 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
24223 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
24225 { echo "$as_me:$LINENO: result: no" >&5
24226 echo "${ECHO_T}no" >&6; }
24229 if test "x$ac_pt_QTMOC" = x
; then
24232 case $cross_compiling:$ac_tool_warned in
24234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24235 whose name does not start with the host triplet. If you think this
24236 configuration is useful to you, please write to autoconf@gnu.org." >&5
24237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24238 whose name does not start with the host triplet. If you think this
24239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24240 ac_tool_warned
=yes ;;
24245 QTMOC
="$ac_cv_path_QTMOC"
24248 elif test ! -z "${QT_MANDATORY}";
24250 { echo "$as_me:$LINENO: ***" >&5
24251 echo "$as_me: ***" >&6;}
24252 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
24253 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
24254 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24255 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24256 { echo "$as_me:$LINENO: *** including --without-qt." >&5
24257 echo "$as_me: *** including --without-qt." >&6;}
24263 ac_cpp
='$CPP $CPPFLAGS'
24264 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24265 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24266 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24270 if test "${USE_RADIUS}" != "no"; then
24272 if test "x${RADIUS_DIR}" != "x"; then
24273 if test -d ${RADIUS_DIR}/lib
; then
24274 pbxlibdir
="-L${RADIUS_DIR}/lib"
24276 pbxlibdir
="-L${RADIUS_DIR}"
24279 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
24280 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
24281 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
24282 echo $ECHO_N "(cached) $ECHO_C" >&6
24284 ac_check_lib_save_LIBS
=$LIBS
24285 LIBS
="-lradiusclient-ng ${pbxlibdir} $LIBS"
24286 cat >conftest.
$ac_ext <<_ACEOF
24289 cat confdefs.h
>>conftest.
$ac_ext
24290 cat >>conftest.
$ac_ext <<_ACEOF
24291 /* end confdefs.h. */
24293 /* Override any GCC internal prototype to avoid an error.
24294 Use char because int might match the return type of a GCC
24295 builtin and then its argument prototype would still apply. */
24299 char rc_read_config ();
24303 return rc_read_config ();
24308 rm -f conftest.
$ac_objext conftest
$ac_exeext
24309 if { (ac_try
="$ac_link"
24310 case "(($ac_try" in
24311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315 (eval "$ac_link") 2>conftest.er1
24317 grep -v '^ *+' conftest.er1 >conftest.err
24319 cat conftest.err >&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } && {
24322 test -z "$ac_c_werror_flag" ||
24323 test ! -s conftest.err
24324 } && test -s conftest$ac_exeext &&
24325 $as_test_x conftest$ac_exeext; then
24326 ac_cv_lib_radiusclient_ng_rc_read_config=yes
24328 echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24331 ac_cv_lib_radiusclient_ng_rc_read_config=no
24334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24335 conftest$ac_exeext conftest.$ac_ext
24336 LIBS=$ac_check_lib_save_LIBS
24338 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
24339 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
24340 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
24341 AST_RADIUS_FOUND=yes
24343 AST_RADIUS_FOUND=no
24347 if test "${AST_RADIUS_FOUND}" = "yes"; then
24348 RADIUS_LIB="-lradiusclient-ng "
24349 RADIUS_HEADER_FOUND="1"
24350 if test "x${RADIUS_DIR}" != "x"; then
24351 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
24352 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
24353 if test "xradiusclient-ng.h" != "x" ; then
24354 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" |
$as_tr_sh`
24355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24356 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24357 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24359 echo $ECHO_N "(cached) $ECHO_C" >&6
24361 ac_res=`eval echo '${'$as_ac_Header'}'`
24362 { echo "$as_me:$LINENO: result: $ac_res" >&5
24363 echo "${ECHO_T}$ac_res" >&6; }
24365 # Is the header compilable?
24366 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
24367 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
24368 cat >conftest.$ac_ext <<_ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h. */
24374 $ac_includes_default
24375 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24377 rm -f conftest.$ac_objext
24378 if { (ac_try="$ac_compile"
24379 case "(($ac_try" in
24380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24381 *) ac_try_echo
=$ac_try;;
24383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24384 (eval "$ac_compile") 2>conftest.er1
24386 grep -v '^ *+' conftest.er1
>conftest.err
24388 cat conftest.err
>&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); } && {
24391 test -z "$ac_c_werror_flag" ||
24392 test ! -s conftest.err
24393 } && test -s conftest.
$ac_objext; then
24394 ac_header_compiler
=yes
24396 echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.
$ac_ext >&5
24399 ac_header_compiler
=no
24402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24404 echo "${ECHO_T}$ac_header_compiler" >&6; }
24406 # Is the header present?
24407 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
24408 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
24409 cat >conftest.
$ac_ext <<_ACEOF
24412 cat confdefs.h
>>conftest.
$ac_ext
24413 cat >>conftest.
$ac_ext <<_ACEOF
24414 /* end confdefs.h. */
24415 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24417 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24418 case "(($ac_try" in
24419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24420 *) ac_try_echo=$ac_try;;
24422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24425 grep -v '^ *+' conftest.er1 >conftest.err
24427 cat conftest.err >&5
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); } >/dev/null && {
24430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24431 test ! -s conftest.err
24433 ac_header_preproc=yes
24435 echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24438 ac_header_preproc=no
24441 rm -f conftest.err conftest.$ac_ext
24442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24443 echo "${ECHO_T}$ac_header_preproc" >&6; }
24445 # So? What about this header?
24446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24448 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24449 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24450 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
24451 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24452 ac_header_preproc=yes
24455 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
24456 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
24457 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
24458 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24459 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
24460 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
24461 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24462 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24463 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24464 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24465 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24466 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24470 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24471 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24473 echo $ECHO_N "(cached) $ECHO_C" >&6
24475 eval "$as_ac_Header=\$ac_header_preproc"
24477 ac_res=`eval echo '${'$as_ac_Header'}'`
24478 { echo "$as_me:$LINENO: result: $ac_res" >&5
24479 echo "${ECHO_T}$ac_res" >&6; }
24482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24483 RADIUS_HEADER_FOUND=1
24485 RADIUS_HEADER_FOUND=0
24491 if test "xradiusclient-ng.h" != "x" ; then
24492 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24493 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24494 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24495 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24496 echo $ECHO_N "(cached) $ECHO_C" >&6
24498 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24499 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24501 # Is the header compilable?
24502 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
24503 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
24504 cat >conftest.$ac_ext <<_ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h. */
24510 $ac_includes_default
24511 #include <radiusclient-ng.h>
24513 rm -f conftest.$ac_objext
24514 if { (ac_try="$ac_compile"
24515 case "(($ac_try" in
24516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24517 *) ac_try_echo
=$ac_try;;
24519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24520 (eval "$ac_compile") 2>conftest.er1
24522 grep -v '^ *+' conftest.er1
>conftest.err
24524 cat conftest.err
>&5
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); } && {
24527 test -z "$ac_c_werror_flag" ||
24528 test ! -s conftest.err
24529 } && test -s conftest.
$ac_objext; then
24530 ac_header_compiler
=yes
24532 echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.
$ac_ext >&5
24535 ac_header_compiler
=no
24538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24540 echo "${ECHO_T}$ac_header_compiler" >&6; }
24542 # Is the header present?
24543 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
24544 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
24545 cat >conftest.
$ac_ext <<_ACEOF
24548 cat confdefs.h
>>conftest.
$ac_ext
24549 cat >>conftest.
$ac_ext <<_ACEOF
24550 /* end confdefs.h. */
24551 #include <radiusclient-ng.h>
24553 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24554 case "(($ac_try" in
24555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24556 *) ac_try_echo=$ac_try;;
24558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24561 grep -v '^ *+' conftest.er1 >conftest.err
24563 cat conftest.err >&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); } >/dev/null && {
24566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24567 test ! -s conftest.err
24569 ac_header_preproc=yes
24571 echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24574 ac_header_preproc=no
24577 rm -f conftest.err conftest.$ac_ext
24578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24579 echo "${ECHO_T}$ac_header_preproc" >&6; }
24581 # So? What about this header?
24582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24584 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24585 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24586 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
24587 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24588 ac_header_preproc=yes
24591 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
24592 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
24593 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
24594 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24595 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
24596 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
24597 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24598 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24599 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24600 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24601 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24602 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24606 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24607 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24608 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24609 echo $ECHO_N "(cached) $ECHO_C" >&6
24611 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
24613 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24614 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24617 if test $ac_cv_header_radiusclient_ng_h = yes; then
24618 RADIUS_HEADER_FOUND=1
24620 RADIUS_HEADER_FOUND=0
24626 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
24627 if test ! -z "${RADIUS_MANDATORY}" ;
24629 { echo "$as_me:$LINENO: ***" >&5
24630 echo "$as_me: ***" >&6;}
24631 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
24632 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
24633 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
24634 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
24635 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
24636 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
24645 cat >>confdefs.h <<_ACEOF
24646 #define HAVE_RADIUS 1
24650 elif test ! -z "${RADIUS_MANDATORY}";
24652 { echo "$as_me:$LINENO: ***" >&5
24653 echo "$as_me: ***" >&6;}
24654 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
24655 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
24656 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24657 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24658 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
24659 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
24666 if test "${USE_SPEEX}" != "no"; then
24668 if test "x${SPEEX_DIR}" != "x"; then
24669 if test -d ${SPEEX_DIR}/lib; then
24670 pbxlibdir="-L${SPEEX_DIR}/lib"
24672 pbxlibdir="-L${SPEEX_DIR}"
24675 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
24676 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
24677 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
24678 echo $ECHO_N "(cached) $ECHO_C" >&6
24680 ac_check_lib_save_LIBS=$LIBS
24681 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
24682 cat >conftest.$ac_ext <<_ACEOF
24685 cat confdefs.h >>conftest.$ac_ext
24686 cat >>conftest.$ac_ext <<_ACEOF
24687 /* end confdefs.h. */
24689 /* Override any GCC internal prototype to avoid an error.
24690 Use char because int might match the return type of a GCC
24691 builtin and then its argument prototype would still apply. */
24695 char speex_encode ();
24699 return speex_encode ();
24704 rm -f conftest.$ac_objext conftest$ac_exeext
24705 if { (ac_try="$ac_link"
24706 case "(($ac_try" in
24707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24708 *) ac_try_echo
=$ac_try;;
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711 (eval "$ac_link") 2>conftest.er1
24713 grep -v '^ *+' conftest.er1
>conftest.err
24715 cat conftest.err
>&5
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } && {
24718 test -z "$ac_c_werror_flag" ||
24719 test ! -s conftest.err
24720 } && test -s conftest
$ac_exeext &&
24721 $as_test_x conftest
$ac_exeext; then
24722 ac_cv_lib_speex_speex_encode
=yes
24724 echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.
$ac_ext >&5
24727 ac_cv_lib_speex_speex_encode
=no
24730 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24731 conftest
$ac_exeext conftest.
$ac_ext
24732 LIBS
=$ac_check_lib_save_LIBS
24734 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
24735 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
24736 if test $ac_cv_lib_speex_speex_encode = yes; then
24737 AST_SPEEX_FOUND
=yes
24743 if test "${AST_SPEEX_FOUND}" = "yes"; then
24744 SPEEX_LIB
="-lspeex -lm"
24745 SPEEX_HEADER_FOUND
="1"
24746 if test "x${SPEEX_DIR}" != "x"; then
24747 SPEEX_LIB
="${pbxlibdir} ${SPEEX_LIB}"
24748 SPEEX_INCLUDE
="-I${SPEEX_DIR}/include"
24749 if test "xspeex/speex.h" != "x" ; then
24750 as_ac_Header
=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
24751 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24752 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
24753 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
24754 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24757 ac_res
=`eval echo '${'$as_ac_Header'}'`
24758 { echo "$as_me:$LINENO: result: $ac_res" >&5
24759 echo "${ECHO_T}$ac_res" >&6; }
24761 # Is the header compilable?
24762 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
24763 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
24764 cat >conftest.
$ac_ext <<_ACEOF
24767 cat confdefs.h
>>conftest.
$ac_ext
24768 cat >>conftest.
$ac_ext <<_ACEOF
24769 /* end confdefs.h. */
24770 $ac_includes_default
24771 #include <${SPEEX_DIR}/include/speex/speex.h>
24773 rm -f conftest.
$ac_objext
24774 if { (ac_try
="$ac_compile"
24775 case "(($ac_try" in
24776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24777 *) ac_try_echo=$ac_try;;
24779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24780 (eval "$ac_compile") 2>conftest.er1
24782 grep -v '^ *+' conftest.er1 >conftest.err
24784 cat conftest.err >&5
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); } && {
24787 test -z "$ac_c_werror_flag" ||
24788 test ! -s conftest.err
24789 } && test -s conftest.$ac_objext; then
24790 ac_header_compiler=yes
24792 echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24795 ac_header_compiler=no
24798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24800 echo "${ECHO_T}$ac_header_compiler" >&6; }
24802 # Is the header present?
24803 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
24804 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
24805 cat >conftest.$ac_ext <<_ACEOF
24808 cat confdefs.h >>conftest.$ac_ext
24809 cat >>conftest.$ac_ext <<_ACEOF
24810 /* end confdefs.h. */
24811 #include <${SPEEX_DIR}/include/speex/speex.h>
24813 if { (ac_try="$ac_cpp conftest.$ac_ext"
24814 case "(($ac_try" in
24815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24816 *) ac_try_echo
=$ac_try;;
24818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24821 grep -v '^ *+' conftest.er1
>conftest.err
24823 cat conftest.err
>&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); } >/dev
/null
&& {
24826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24827 test ! -s conftest.err
24829 ac_header_preproc
=yes
24831 echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.
$ac_ext >&5
24834 ac_header_preproc
=no
24837 rm -f conftest.err conftest.
$ac_ext
24838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24839 echo "${ECHO_T}$ac_header_preproc" >&6; }
24841 # So? What about this header?
24842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24844 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24845 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24846 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
24847 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
24848 ac_header_preproc
=yes
24851 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
24852 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
24853 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
24854 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
24855 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
24856 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
24857 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
24858 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24859 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
24860 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
24861 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
24862 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
24866 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
24867 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
24868 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24869 echo $ECHO_N "(cached) $ECHO_C" >&6
24871 eval "$as_ac_Header=\$ac_header_preproc"
24873 ac_res
=`eval echo '${'$as_ac_Header'}'`
24874 { echo "$as_me:$LINENO: result: $ac_res" >&5
24875 echo "${ECHO_T}$ac_res" >&6; }
24878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24879 SPEEX_HEADER_FOUND
=1
24881 SPEEX_HEADER_FOUND
=0
24887 if test "xspeex/speex.h" != "x" ; then
24888 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24889 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
24890 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
24891 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24894 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
24895 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
24897 # Is the header compilable?
24898 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
24899 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
24900 cat >conftest.
$ac_ext <<_ACEOF
24903 cat confdefs.h
>>conftest.
$ac_ext
24904 cat >>conftest.
$ac_ext <<_ACEOF
24905 /* end confdefs.h. */
24906 $ac_includes_default
24907 #include <speex/speex.h>
24909 rm -f conftest.
$ac_objext
24910 if { (ac_try
="$ac_compile"
24911 case "(($ac_try" in
24912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24913 *) ac_try_echo=$ac_try;;
24915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24916 (eval "$ac_compile") 2>conftest.er1
24918 grep -v '^ *+' conftest.er1 >conftest.err
24920 cat conftest.err >&5
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); } && {
24923 test -z "$ac_c_werror_flag" ||
24924 test ! -s conftest.err
24925 } && test -s conftest.$ac_objext; then
24926 ac_header_compiler=yes
24928 echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24931 ac_header_compiler=no
24934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24936 echo "${ECHO_T}$ac_header_compiler" >&6; }
24938 # Is the header present?
24939 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
24940 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
24941 cat >conftest.$ac_ext <<_ACEOF
24944 cat confdefs.h >>conftest.$ac_ext
24945 cat >>conftest.$ac_ext <<_ACEOF
24946 /* end confdefs.h. */
24947 #include <speex/speex.h>
24949 if { (ac_try="$ac_cpp conftest.$ac_ext"
24950 case "(($ac_try" in
24951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24952 *) ac_try_echo
=$ac_try;;
24954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24957 grep -v '^ *+' conftest.er1
>conftest.err
24959 cat conftest.err
>&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } >/dev
/null
&& {
24962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24963 test ! -s conftest.err
24965 ac_header_preproc
=yes
24967 echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.
$ac_ext >&5
24970 ac_header_preproc
=no
24973 rm -f conftest.err conftest.
$ac_ext
24974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24975 echo "${ECHO_T}$ac_header_preproc" >&6; }
24977 # So? What about this header?
24978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24980 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24981 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24982 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
24983 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
24984 ac_header_preproc
=yes
24987 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
24988 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
24989 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
24990 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
24991 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
24992 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
24993 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
24994 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24995 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
24996 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
24997 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
24998 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
25002 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
25003 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
25004 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25005 echo $ECHO_N "(cached) $ECHO_C" >&6
25007 ac_cv_header_speex_speex_h
=$ac_header_preproc
25009 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
25010 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
25013 if test $ac_cv_header_speex_speex_h = yes; then
25014 SPEEX_HEADER_FOUND
=1
25016 SPEEX_HEADER_FOUND
=0
25022 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
25023 if test ! -z "${SPEEX_MANDATORY}" ;
25025 { echo "$as_me:$LINENO: ***" >&5
25026 echo "$as_me: ***" >&6;}
25027 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
25028 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
25029 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
25030 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
25031 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25032 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25041 cat >>confdefs.h
<<_ACEOF
25042 #define HAVE_SPEEX 1
25046 elif test ! -z "${SPEEX_MANDATORY}";
25048 { echo "$as_me:$LINENO: ***" >&5
25049 echo "$as_me: ***" >&6;}
25050 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
25051 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
25052 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25053 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25054 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25055 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25062 if test "${USE_SQLITE}" != "no"; then
25064 if test "x${SQLITE_DIR}" != "x"; then
25065 if test -d ${SQLITE_DIR}/lib
; then
25066 pbxlibdir
="-L${SQLITE_DIR}/lib"
25068 pbxlibdir
="-L${SQLITE_DIR}"
25071 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
25072 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
25073 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
25074 echo $ECHO_N "(cached) $ECHO_C" >&6
25076 ac_check_lib_save_LIBS
=$LIBS
25077 LIBS
="-lsqlite ${pbxlibdir} $LIBS"
25078 cat >conftest.
$ac_ext <<_ACEOF
25081 cat confdefs.h
>>conftest.
$ac_ext
25082 cat >>conftest.
$ac_ext <<_ACEOF
25083 /* end confdefs.h. */
25085 /* Override any GCC internal prototype to avoid an error.
25086 Use char because int might match the return type of a GCC
25087 builtin and then its argument prototype would still apply. */
25091 char sqlite_exec ();
25095 return sqlite_exec ();
25100 rm -f conftest.
$ac_objext conftest
$ac_exeext
25101 if { (ac_try
="$ac_link"
25102 case "(($ac_try" in
25103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25104 *) ac_try_echo=$ac_try;;
25106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25107 (eval "$ac_link") 2>conftest.er1
25109 grep -v '^ *+' conftest.er1 >conftest.err
25111 cat conftest.err >&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } && {
25114 test -z "$ac_c_werror_flag" ||
25115 test ! -s conftest.err
25116 } && test -s conftest$ac_exeext &&
25117 $as_test_x conftest$ac_exeext; then
25118 ac_cv_lib_sqlite_sqlite_exec=yes
25120 echo "$as_me: failed program was:" >&5
25121 sed 's/^/| /' conftest.$ac_ext >&5
25123 ac_cv_lib_sqlite_sqlite_exec=no
25126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25127 conftest$ac_exeext conftest.$ac_ext
25128 LIBS=$ac_check_lib_save_LIBS
25130 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
25131 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
25132 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
25133 AST_SQLITE_FOUND=yes
25135 AST_SQLITE_FOUND=no
25139 if test "${AST_SQLITE_FOUND}" = "yes"; then
25140 SQLITE_LIB="-lsqlite "
25141 SQLITE_HEADER_FOUND="1"
25142 if test "x${SQLITE_DIR}" != "x"; then
25143 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
25144 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
25145 if test "xsqlite.h" != "x" ; then
25146 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" |
$as_tr_sh`
25147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25148 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25149 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 ac_res=`eval echo '${'$as_ac_Header'}'`
25154 { echo "$as_me:$LINENO: result: $ac_res" >&5
25155 echo "${ECHO_T}$ac_res" >&6; }
25157 # Is the header compilable?
25158 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
25159 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
25160 cat >conftest.$ac_ext <<_ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h. */
25166 $ac_includes_default
25167 #include <${SQLITE_DIR}/include/sqlite.h>
25169 rm -f conftest.$ac_objext
25170 if { (ac_try="$ac_compile"
25171 case "(($ac_try" in
25172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25173 *) ac_try_echo
=$ac_try;;
25175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25176 (eval "$ac_compile") 2>conftest.er1
25178 grep -v '^ *+' conftest.er1
>conftest.err
25180 cat conftest.err
>&5
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } && {
25183 test -z "$ac_c_werror_flag" ||
25184 test ! -s conftest.err
25185 } && test -s conftest.
$ac_objext; then
25186 ac_header_compiler
=yes
25188 echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.
$ac_ext >&5
25191 ac_header_compiler
=no
25194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25196 echo "${ECHO_T}$ac_header_compiler" >&6; }
25198 # Is the header present?
25199 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
25200 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
25201 cat >conftest.
$ac_ext <<_ACEOF
25204 cat confdefs.h
>>conftest.
$ac_ext
25205 cat >>conftest.
$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25207 #include <${SQLITE_DIR}/include/sqlite.h>
25209 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25210 case "(($ac_try" in
25211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25212 *) ac_try_echo=$ac_try;;
25214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25217 grep -v '^ *+' conftest.er1 >conftest.err
25219 cat conftest.err >&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); } >/dev/null && {
25222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25223 test ! -s conftest.err
25225 ac_header_preproc=yes
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 ac_header_preproc=no
25233 rm -f conftest.err conftest.$ac_ext
25234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25235 echo "${ECHO_T}$ac_header_preproc" >&6; }
25237 # So? What about this header?
25238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25240 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25241 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25242 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
25243 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
25244 ac_header_preproc=yes
25247 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
25248 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
25249 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
25250 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
25251 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
25252 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
25253 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25254 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
25256 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
25258 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
25262 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25263 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25265 echo $ECHO_N "(cached) $ECHO_C" >&6
25267 eval "$as_ac_Header=\$ac_header_preproc"
25269 ac_res=`eval echo '${'$as_ac_Header'}'`
25270 { echo "$as_me:$LINENO: result: $ac_res" >&5
25271 echo "${ECHO_T}$ac_res" >&6; }
25274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25275 SQLITE_HEADER_FOUND=1
25277 SQLITE_HEADER_FOUND=0
25283 if test "xsqlite.h" != "x" ; then
25284 if test "${ac_cv_header_sqlite_h+set}" = set; then
25285 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25286 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25287 if test "${ac_cv_header_sqlite_h+set}" = set; then
25288 echo $ECHO_N "(cached) $ECHO_C" >&6
25290 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25291 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25293 # Is the header compilable?
25294 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
25295 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
25296 cat >conftest.$ac_ext <<_ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25302 $ac_includes_default
25303 #include <sqlite.h>
25305 rm -f conftest.$ac_objext
25306 if { (ac_try="$ac_compile"
25307 case "(($ac_try" in
25308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25309 *) ac_try_echo
=$ac_try;;
25311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25312 (eval "$ac_compile") 2>conftest.er1
25314 grep -v '^ *+' conftest.er1
>conftest.err
25316 cat conftest.err
>&5
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); } && {
25319 test -z "$ac_c_werror_flag" ||
25320 test ! -s conftest.err
25321 } && test -s conftest.
$ac_objext; then
25322 ac_header_compiler
=yes
25324 echo "$as_me: failed program was:" >&5
25325 sed 's/^/| /' conftest.
$ac_ext >&5
25327 ac_header_compiler
=no
25330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25332 echo "${ECHO_T}$ac_header_compiler" >&6; }
25334 # Is the header present?
25335 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
25336 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
25337 cat >conftest.
$ac_ext <<_ACEOF
25340 cat confdefs.h
>>conftest.
$ac_ext
25341 cat >>conftest.
$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25343 #include <sqlite.h>
25345 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25346 case "(($ac_try" in
25347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25348 *) ac_try_echo=$ac_try;;
25350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25353 grep -v '^ *+' conftest.er1 >conftest.err
25355 cat conftest.err >&5
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); } >/dev/null && {
25358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25359 test ! -s conftest.err
25361 ac_header_preproc=yes
25363 echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25366 ac_header_preproc=no
25369 rm -f conftest.err conftest.$ac_ext
25370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25371 echo "${ECHO_T}$ac_header_preproc" >&6; }
25373 # So? What about this header?
25374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25376 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25377 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25378 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
25379 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
25380 ac_header_preproc=yes
25383 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
25384 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
25385 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
25386 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
25388 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25390 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
25392 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
25394 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
25398 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25399 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25400 if test "${ac_cv_header_sqlite_h+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 ac_cv_header_sqlite_h=$ac_header_preproc
25405 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25406 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25409 if test $ac_cv_header_sqlite_h = yes; then
25410 SQLITE_HEADER_FOUND=1
25412 SQLITE_HEADER_FOUND=0
25418 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
25419 if test ! -z "${SQLITE_MANDATORY}" ;
25421 { echo "$as_me:$LINENO: ***" >&5
25422 echo "$as_me: ***" >&6;}
25423 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
25424 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
25425 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
25426 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
25427 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25428 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25437 cat >>confdefs.h <<_ACEOF
25438 #define HAVE_SQLITE 1
25442 elif test ! -z "${SQLITE_MANDATORY}";
25444 { echo "$as_me:$LINENO: ***" >&5
25445 echo "$as_me: ***" >&6;}
25446 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
25447 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
25448 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25449 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25450 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25451 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25458 if test "${USE_OPENSSL}" != "no"; then
25460 if test "x${OPENSSL_DIR}" != "x"; then
25461 if test -d ${OPENSSL_DIR}/lib; then
25462 pbxlibdir="-L${OPENSSL_DIR}/lib"
25464 pbxlibdir="-L${OPENSSL_DIR}"
25467 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
25468 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
25469 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
25470 echo $ECHO_N "(cached) $ECHO_C" >&6
25472 ac_check_lib_save_LIBS=$LIBS
25473 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
25474 cat >conftest.$ac_ext <<_ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h. */
25481 /* Override any GCC internal prototype to avoid an error.
25482 Use char because int might match the return type of a GCC
25483 builtin and then its argument prototype would still apply. */
25487 char ssl2_connect ();
25491 return ssl2_connect ();
25496 rm -f conftest.$ac_objext conftest$ac_exeext
25497 if { (ac_try="$ac_link"
25498 case "(($ac_try" in
25499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25500 *) ac_try_echo
=$ac_try;;
25502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25503 (eval "$ac_link") 2>conftest.er1
25505 grep -v '^ *+' conftest.er1
>conftest.err
25507 cat conftest.err
>&5
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); } && {
25510 test -z "$ac_c_werror_flag" ||
25511 test ! -s conftest.err
25512 } && test -s conftest
$ac_exeext &&
25513 $as_test_x conftest
$ac_exeext; then
25514 ac_cv_lib_ssl_ssl2_connect
=yes
25516 echo "$as_me: failed program was:" >&5
25517 sed 's/^/| /' conftest.
$ac_ext >&5
25519 ac_cv_lib_ssl_ssl2_connect
=no
25522 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25523 conftest
$ac_exeext conftest.
$ac_ext
25524 LIBS
=$ac_check_lib_save_LIBS
25526 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
25527 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
25528 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
25529 AST_OPENSSL_FOUND
=yes
25531 AST_OPENSSL_FOUND
=no
25535 if test "${AST_OPENSSL_FOUND}" = "yes"; then
25536 OPENSSL_LIB
="-lssl -lcrypto"
25537 OPENSSL_HEADER_FOUND
="1"
25538 if test "x${OPENSSL_DIR}" != "x"; then
25539 OPENSSL_LIB
="${pbxlibdir} ${OPENSSL_LIB}"
25540 OPENSSL_INCLUDE
="-I${OPENSSL_DIR}/include"
25541 if test "xopenssl/ssl.h" != "x" ; then
25542 as_ac_Header
=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
25543 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25544 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
25545 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
25546 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25547 echo $ECHO_N "(cached) $ECHO_C" >&6
25549 ac_res
=`eval echo '${'$as_ac_Header'}'`
25550 { echo "$as_me:$LINENO: result: $ac_res" >&5
25551 echo "${ECHO_T}$ac_res" >&6; }
25553 # Is the header compilable?
25554 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
25555 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
25556 cat >conftest.
$ac_ext <<_ACEOF
25559 cat confdefs.h
>>conftest.
$ac_ext
25560 cat >>conftest.
$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 $ac_includes_default
25563 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
25565 rm -f conftest.
$ac_objext
25566 if { (ac_try
="$ac_compile"
25567 case "(($ac_try" in
25568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25569 *) ac_try_echo=$ac_try;;
25571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25572 (eval "$ac_compile") 2>conftest.er1
25574 grep -v '^ *+' conftest.er1 >conftest.err
25576 cat conftest.err >&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); } && {
25579 test -z "$ac_c_werror_flag" ||
25580 test ! -s conftest.err
25581 } && test -s conftest.$ac_objext; then
25582 ac_header_compiler=yes
25584 echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.$ac_ext >&5
25587 ac_header_compiler=no
25590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25592 echo "${ECHO_T}$ac_header_compiler" >&6; }
25594 # Is the header present?
25595 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
25596 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
25597 cat >conftest.$ac_ext <<_ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h. */
25603 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
25605 if { (ac_try="$ac_cpp conftest.$ac_ext"
25606 case "(($ac_try" in
25607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25608 *) ac_try_echo
=$ac_try;;
25610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25613 grep -v '^ *+' conftest.er1
>conftest.err
25615 cat conftest.err
>&5
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } >/dev
/null
&& {
25618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25619 test ! -s conftest.err
25621 ac_header_preproc
=yes
25623 echo "$as_me: failed program was:" >&5
25624 sed 's/^/| /' conftest.
$ac_ext >&5
25626 ac_header_preproc
=no
25629 rm -f conftest.err conftest.
$ac_ext
25630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25631 echo "${ECHO_T}$ac_header_preproc" >&6; }
25633 # So? What about this header?
25634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25636 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25637 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25638 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
25639 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
25640 ac_header_preproc
=yes
25643 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
25644 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
25645 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
25646 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
25647 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
25648 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
25649 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
25650 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25651 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
25652 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
25653 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
25654 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
25658 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
25659 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
25660 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25661 echo $ECHO_N "(cached) $ECHO_C" >&6
25663 eval "$as_ac_Header=\$ac_header_preproc"
25665 ac_res
=`eval echo '${'$as_ac_Header'}'`
25666 { echo "$as_me:$LINENO: result: $ac_res" >&5
25667 echo "${ECHO_T}$ac_res" >&6; }
25670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25671 OPENSSL_HEADER_FOUND
=1
25673 OPENSSL_HEADER_FOUND
=0
25679 if test "xopenssl/ssl.h" != "x" ; then
25680 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25681 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
25682 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
25683 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25684 echo $ECHO_N "(cached) $ECHO_C" >&6
25686 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
25687 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
25689 # Is the header compilable?
25690 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
25691 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
25692 cat >conftest.
$ac_ext <<_ACEOF
25695 cat confdefs.h
>>conftest.
$ac_ext
25696 cat >>conftest.
$ac_ext <<_ACEOF
25697 /* end confdefs.h. */
25698 $ac_includes_default
25699 #include <openssl/ssl.h>
25701 rm -f conftest.
$ac_objext
25702 if { (ac_try
="$ac_compile"
25703 case "(($ac_try" in
25704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25705 *) ac_try_echo=$ac_try;;
25707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25708 (eval "$ac_compile") 2>conftest.er1
25710 grep -v '^ *+' conftest.er1 >conftest.err
25712 cat conftest.err >&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } && {
25715 test -z "$ac_c_werror_flag" ||
25716 test ! -s conftest.err
25717 } && test -s conftest.$ac_objext; then
25718 ac_header_compiler=yes
25720 echo "$as_me: failed program was:" >&5
25721 sed 's/^/| /' conftest.$ac_ext >&5
25723 ac_header_compiler=no
25726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25728 echo "${ECHO_T}$ac_header_compiler" >&6; }
25730 # Is the header present?
25731 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
25732 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
25733 cat >conftest.$ac_ext <<_ACEOF
25736 cat confdefs.h >>conftest.$ac_ext
25737 cat >>conftest.$ac_ext <<_ACEOF
25738 /* end confdefs.h. */
25739 #include <openssl/ssl.h>
25741 if { (ac_try="$ac_cpp conftest.$ac_ext"
25742 case "(($ac_try" in
25743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25744 *) ac_try_echo
=$ac_try;;
25746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25749 grep -v '^ *+' conftest.er1
>conftest.err
25751 cat conftest.err
>&5
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } >/dev
/null
&& {
25754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25755 test ! -s conftest.err
25757 ac_header_preproc
=yes
25759 echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.
$ac_ext >&5
25762 ac_header_preproc
=no
25765 rm -f conftest.err conftest.
$ac_ext
25766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25767 echo "${ECHO_T}$ac_header_preproc" >&6; }
25769 # So? What about this header?
25770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25772 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25773 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25774 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
25775 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
25776 ac_header_preproc
=yes
25779 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
25780 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
25781 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
25782 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
25783 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
25784 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
25785 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
25786 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25787 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
25788 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
25789 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
25790 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
25794 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
25795 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
25796 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25797 echo $ECHO_N "(cached) $ECHO_C" >&6
25799 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
25801 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
25802 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
25805 if test $ac_cv_header_openssl_ssl_h = yes; then
25806 OPENSSL_HEADER_FOUND
=1
25808 OPENSSL_HEADER_FOUND
=0
25814 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
25815 if test ! -z "${OPENSSL_MANDATORY}" ;
25817 { echo "$as_me:$LINENO: ***" >&5
25818 echo "$as_me: ***" >&6;}
25819 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
25820 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
25821 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
25822 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
25823 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
25824 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
25833 cat >>confdefs.h
<<_ACEOF
25834 #define HAVE_OPENSSL 1
25838 elif test ! -z "${OPENSSL_MANDATORY}";
25840 { echo "$as_me:$LINENO: ***" >&5
25841 echo "$as_me: ***" >&6;}
25842 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
25843 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
25844 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25845 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25846 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
25847 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
25854 if test "${USE_FREETDS}" != "no"; then
25856 if test "x${FREETDS_DIR}" != "x"; then
25857 if test -d ${FREETDS_DIR}/lib
; then
25858 pbxlibdir
="-L${FREETDS_DIR}/lib"
25860 pbxlibdir
="-L${FREETDS_DIR}"
25863 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
25864 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
25865 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
25866 echo $ECHO_N "(cached) $ECHO_C" >&6
25868 ac_check_lib_save_LIBS
=$LIBS
25869 LIBS
="-ltds ${pbxlibdir} $LIBS"
25870 cat >conftest.
$ac_ext <<_ACEOF
25873 cat confdefs.h
>>conftest.
$ac_ext
25874 cat >>conftest.
$ac_ext <<_ACEOF
25875 /* end confdefs.h. */
25877 /* Override any GCC internal prototype to avoid an error.
25878 Use char because int might match the return type of a GCC
25879 builtin and then its argument prototype would still apply. */
25883 char tds_version ();
25887 return tds_version ();
25892 rm -f conftest.
$ac_objext conftest
$ac_exeext
25893 if { (ac_try
="$ac_link"
25894 case "(($ac_try" in
25895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25896 *) ac_try_echo=$ac_try;;
25898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25899 (eval "$ac_link") 2>conftest.er1
25901 grep -v '^ *+' conftest.er1 >conftest.err
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } && {
25906 test -z "$ac_c_werror_flag" ||
25907 test ! -s conftest.err
25908 } && test -s conftest$ac_exeext &&
25909 $as_test_x conftest$ac_exeext; then
25910 ac_cv_lib_tds_tds_version=yes
25912 echo "$as_me: failed program was:" >&5
25913 sed 's/^/| /' conftest.$ac_ext >&5
25915 ac_cv_lib_tds_tds_version=no
25918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25919 conftest$ac_exeext conftest.$ac_ext
25920 LIBS=$ac_check_lib_save_LIBS
25922 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
25923 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
25924 if test $ac_cv_lib_tds_tds_version = yes; then
25925 AST_FREETDS_FOUND=yes
25927 AST_FREETDS_FOUND=no
25931 if test "${AST_FREETDS_FOUND}" = "yes"; then
25932 FREETDS_LIB="-ltds "
25933 FREETDS_HEADER_FOUND="1"
25934 if test "x${FREETDS_DIR}" != "x"; then
25935 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
25936 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
25937 if test "xtds.h" != "x" ; then
25938 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" |
$as_tr_sh`
25939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25940 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
25941 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
25942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25943 echo $ECHO_N "(cached) $ECHO_C" >&6
25945 ac_res=`eval echo '${'$as_ac_Header'}'`
25946 { echo "$as_me:$LINENO: result: $ac_res" >&5
25947 echo "${ECHO_T}$ac_res" >&6; }
25949 # Is the header compilable?
25950 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
25951 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
25952 cat >conftest.$ac_ext <<_ACEOF
25955 cat confdefs.h >>conftest.$ac_ext
25956 cat >>conftest.$ac_ext <<_ACEOF
25957 /* end confdefs.h. */
25958 $ac_includes_default
25959 #include <${FREETDS_DIR}/include/tds.h>
25961 rm -f conftest.$ac_objext
25962 if { (ac_try="$ac_compile"
25963 case "(($ac_try" in
25964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25965 *) ac_try_echo
=$ac_try;;
25967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968 (eval "$ac_compile") 2>conftest.er1
25970 grep -v '^ *+' conftest.er1
>conftest.err
25972 cat conftest.err
>&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); } && {
25975 test -z "$ac_c_werror_flag" ||
25976 test ! -s conftest.err
25977 } && test -s conftest.
$ac_objext; then
25978 ac_header_compiler
=yes
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.
$ac_ext >&5
25983 ac_header_compiler
=no
25986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25988 echo "${ECHO_T}$ac_header_compiler" >&6; }
25990 # Is the header present?
25991 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
25992 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
25993 cat >conftest.
$ac_ext <<_ACEOF
25996 cat confdefs.h
>>conftest.
$ac_ext
25997 cat >>conftest.
$ac_ext <<_ACEOF
25998 /* end confdefs.h. */
25999 #include <${FREETDS_DIR}/include/tds.h>
26001 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26002 case "(($ac_try" in
26003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26004 *) ac_try_echo=$ac_try;;
26006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26009 grep -v '^ *+' conftest.er1 >conftest.err
26011 cat conftest.err >&5
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); } >/dev/null && {
26014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26015 test ! -s conftest.err
26017 ac_header_preproc=yes
26019 echo "$as_me: failed program was:" >&5
26020 sed 's/^/| /' conftest.$ac_ext >&5
26022 ac_header_preproc=no
26025 rm -f conftest.err conftest.$ac_ext
26026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26027 echo "${ECHO_T}$ac_header_preproc" >&6; }
26029 # So? What about this header?
26030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26032 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26033 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26034 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
26035 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
26036 ac_header_preproc=yes
26039 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
26040 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
26041 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
26042 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
26043 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
26044 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
26045 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
26046 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26047 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
26048 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
26049 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
26050 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
26054 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
26055 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
26056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26057 echo $ECHO_N "(cached) $ECHO_C" >&6
26059 eval "$as_ac_Header=\$ac_header_preproc"
26061 ac_res=`eval echo '${'$as_ac_Header'}'`
26062 { echo "$as_me:$LINENO: result: $ac_res" >&5
26063 echo "${ECHO_T}$ac_res" >&6; }
26066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26067 FREETDS_HEADER_FOUND=1
26069 FREETDS_HEADER_FOUND=0
26075 if test "xtds.h" != "x" ; then
26076 if test "${ac_cv_header_tds_h+set}" = set; then
26077 { echo "$as_me:$LINENO: checking for tds.h" >&5
26078 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26079 if test "${ac_cv_header_tds_h+set}" = set; then
26080 echo $ECHO_N "(cached) $ECHO_C" >&6
26082 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26083 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26085 # Is the header compilable?
26086 { echo "$as_me:$LINENO: checking tds.h usability" >&5
26087 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
26088 cat >conftest.$ac_ext <<_ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h. */
26094 $ac_includes_default
26097 rm -f conftest.$ac_objext
26098 if { (ac_try="$ac_compile"
26099 case "(($ac_try" in
26100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26101 *) ac_try_echo
=$ac_try;;
26103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26104 (eval "$ac_compile") 2>conftest.er1
26106 grep -v '^ *+' conftest.er1
>conftest.err
26108 cat conftest.err
>&5
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); } && {
26111 test -z "$ac_c_werror_flag" ||
26112 test ! -s conftest.err
26113 } && test -s conftest.
$ac_objext; then
26114 ac_header_compiler
=yes
26116 echo "$as_me: failed program was:" >&5
26117 sed 's/^/| /' conftest.
$ac_ext >&5
26119 ac_header_compiler
=no
26122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26124 echo "${ECHO_T}$ac_header_compiler" >&6; }
26126 # Is the header present?
26127 { echo "$as_me:$LINENO: checking tds.h presence" >&5
26128 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
26129 cat >conftest.
$ac_ext <<_ACEOF
26132 cat confdefs.h
>>conftest.
$ac_ext
26133 cat >>conftest.
$ac_ext <<_ACEOF
26134 /* end confdefs.h. */
26137 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26138 case "(($ac_try" in
26139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26140 *) ac_try_echo=$ac_try;;
26142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26145 grep -v '^ *+' conftest.er1 >conftest.err
26147 cat conftest.err >&5
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); } >/dev/null && {
26150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26151 test ! -s conftest.err
26153 ac_header_preproc=yes
26155 echo "$as_me: failed program was:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26158 ac_header_preproc=no
26161 rm -f conftest.err conftest.$ac_ext
26162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26163 echo "${ECHO_T}$ac_header_preproc" >&6; }
26165 # So? What about this header?
26166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26168 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26169 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26170 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
26171 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
26172 ac_header_preproc=yes
26175 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
26176 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
26177 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
26178 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
26179 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
26180 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
26181 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
26182 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26183 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
26184 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
26185 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
26186 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
26190 { echo "$as_me:$LINENO: checking for tds.h" >&5
26191 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26192 if test "${ac_cv_header_tds_h+set}" = set; then
26193 echo $ECHO_N "(cached) $ECHO_C" >&6
26195 ac_cv_header_tds_h=$ac_header_preproc
26197 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26198 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26201 if test $ac_cv_header_tds_h = yes; then
26202 FREETDS_HEADER_FOUND=1
26204 FREETDS_HEADER_FOUND=0
26210 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
26211 if test ! -z "${FREETDS_MANDATORY}" ;
26213 { echo "$as_me:$LINENO: ***" >&5
26214 echo "$as_me: ***" >&6;}
26215 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
26216 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
26217 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
26218 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
26219 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26220 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26229 cat >>confdefs.h <<_ACEOF
26230 #define HAVE_FREETDS 1
26234 elif test ! -z "${FREETDS_MANDATORY}";
26236 { echo "$as_me:$LINENO: ***" >&5
26237 echo "$as_me: ***" >&6;}
26238 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
26239 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
26240 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26241 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26242 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26243 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26248 if test "${PBX_FREETDS}" != "0";
26250 case `grep TDS_VERSION_NO
${FREETDS_DIR:-/usr/include}/tdsver.h
` in
26252 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
26255 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
26258 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
26261 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
26267 if test "${USE_TERMCAP}" != "no"; then
26269 if test "x${TERMCAP_DIR}" != "x"; then
26270 if test -d ${TERMCAP_DIR}/lib; then
26271 pbxlibdir="-L${TERMCAP_DIR}/lib"
26273 pbxlibdir="-L${TERMCAP_DIR}"
26276 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26277 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
26278 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26279 echo $ECHO_N "(cached) $ECHO_C" >&6
26281 ac_check_lib_save_LIBS=$LIBS
26282 LIBS="-ltermcap ${pbxlibdir} $LIBS"
26283 cat >conftest.$ac_ext <<_ACEOF
26286 cat confdefs.h >>conftest.$ac_ext
26287 cat >>conftest.$ac_ext <<_ACEOF
26288 /* end confdefs.h. */
26290 /* Override any GCC internal prototype to avoid an error.
26291 Use char because int might match the return type of a GCC
26292 builtin and then its argument prototype would still apply. */
26305 rm -f conftest.$ac_objext conftest$ac_exeext
26306 if { (ac_try="$ac_link"
26307 case "(($ac_try" in
26308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26309 *) ac_try_echo
=$ac_try;;
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312 (eval "$ac_link") 2>conftest.er1
26314 grep -v '^ *+' conftest.er1
>conftest.err
26316 cat conftest.err
>&5
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); } && {
26319 test -z "$ac_c_werror_flag" ||
26320 test ! -s conftest.err
26321 } && test -s conftest
$ac_exeext &&
26322 $as_test_x conftest
$ac_exeext; then
26323 ac_cv_lib_termcap_tgetent
=yes
26325 echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.
$ac_ext >&5
26328 ac_cv_lib_termcap_tgetent
=no
26331 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26332 conftest
$ac_exeext conftest.
$ac_ext
26333 LIBS
=$ac_check_lib_save_LIBS
26335 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26336 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
26337 if test $ac_cv_lib_termcap_tgetent = yes; then
26338 AST_TERMCAP_FOUND
=yes
26340 AST_TERMCAP_FOUND
=no
26344 if test "${AST_TERMCAP_FOUND}" = "yes"; then
26345 TERMCAP_LIB
="-ltermcap "
26346 TERMCAP_HEADER_FOUND
="1"
26347 if test "x${TERMCAP_DIR}" != "x"; then
26348 TERMCAP_LIB
="${pbxlibdir} ${TERMCAP_LIB}"
26349 TERMCAP_INCLUDE
="-I${TERMCAP_DIR}/include"
26350 if test "x" != "x" ; then
26351 as_ac_Header
=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
26352 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26353 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26354 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26355 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26356 echo $ECHO_N "(cached) $ECHO_C" >&6
26358 ac_res
=`eval echo '${'$as_ac_Header'}'`
26359 { echo "$as_me:$LINENO: result: $ac_res" >&5
26360 echo "${ECHO_T}$ac_res" >&6; }
26362 # Is the header compilable?
26363 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
26364 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
26365 cat >conftest.
$ac_ext <<_ACEOF
26368 cat confdefs.h
>>conftest.
$ac_ext
26369 cat >>conftest.
$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26371 $ac_includes_default
26372 #include <${TERMCAP_DIR}/include/>
26374 rm -f conftest.
$ac_objext
26375 if { (ac_try
="$ac_compile"
26376 case "(($ac_try" in
26377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26378 *) ac_try_echo=$ac_try;;
26380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26381 (eval "$ac_compile") 2>conftest.er1
26383 grep -v '^ *+' conftest.er1 >conftest.err
26385 cat conftest.err >&5
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); } && {
26388 test -z "$ac_c_werror_flag" ||
26389 test ! -s conftest.err
26390 } && test -s conftest.$ac_objext; then
26391 ac_header_compiler=yes
26393 echo "$as_me: failed program was:" >&5
26394 sed 's/^/| /' conftest.$ac_ext >&5
26396 ac_header_compiler=no
26399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26401 echo "${ECHO_T}$ac_header_compiler" >&6; }
26403 # Is the header present?
26404 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
26405 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
26406 cat >conftest.$ac_ext <<_ACEOF
26409 cat confdefs.h >>conftest.$ac_ext
26410 cat >>conftest.$ac_ext <<_ACEOF
26411 /* end confdefs.h. */
26412 #include <${TERMCAP_DIR}/include/>
26414 if { (ac_try="$ac_cpp conftest.$ac_ext"
26415 case "(($ac_try" in
26416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26417 *) ac_try_echo
=$ac_try;;
26419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26422 grep -v '^ *+' conftest.er1
>conftest.err
26424 cat conftest.err
>&5
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); } >/dev
/null
&& {
26427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26428 test ! -s conftest.err
26430 ac_header_preproc
=yes
26432 echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.
$ac_ext >&5
26435 ac_header_preproc
=no
26438 rm -f conftest.err conftest.
$ac_ext
26439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26440 echo "${ECHO_T}$ac_header_preproc" >&6; }
26442 # So? What about this header?
26443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26445 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26446 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26447 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
26448 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
26449 ac_header_preproc
=yes
26452 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
26453 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
26454 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
26455 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
26456 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
26457 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
26458 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26459 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26460 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
26461 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
26463 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26467 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26468 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26469 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26470 echo $ECHO_N "(cached) $ECHO_C" >&6
26472 eval "$as_ac_Header=\$ac_header_preproc"
26474 ac_res
=`eval echo '${'$as_ac_Header'}'`
26475 { echo "$as_me:$LINENO: result: $ac_res" >&5
26476 echo "${ECHO_T}$ac_res" >&6; }
26479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26480 TERMCAP_HEADER_FOUND
=1
26482 TERMCAP_HEADER_FOUND
=0
26488 if test "x" != "x" ; then
26489 if test "${ac_cv_header_+set}" = set; then
26490 { echo "$as_me:$LINENO: checking for " >&5
26491 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26492 if test "${ac_cv_header_+set}" = set; then
26493 echo $ECHO_N "(cached) $ECHO_C" >&6
26495 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26496 echo "${ECHO_T}$ac_cv_header_" >&6; }
26498 # Is the header compilable?
26499 { echo "$as_me:$LINENO: checking usability" >&5
26500 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26501 cat >conftest.
$ac_ext <<_ACEOF
26504 cat confdefs.h
>>conftest.
$ac_ext
26505 cat >>conftest.
$ac_ext <<_ACEOF
26506 /* end confdefs.h. */
26507 $ac_includes_default
26510 rm -f conftest.
$ac_objext
26511 if { (ac_try
="$ac_compile"
26512 case "(($ac_try" in
26513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26514 *) ac_try_echo=$ac_try;;
26516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26517 (eval "$ac_compile") 2>conftest.er1
26519 grep -v '^ *+' conftest.er1 >conftest.err
26521 cat conftest.err >&5
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); } && {
26524 test -z "$ac_c_werror_flag" ||
26525 test ! -s conftest.err
26526 } && test -s conftest.$ac_objext; then
26527 ac_header_compiler=yes
26529 echo "$as_me: failed program was:" >&5
26530 sed 's/^/| /' conftest.$ac_ext >&5
26532 ac_header_compiler=no
26535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26537 echo "${ECHO_T}$ac_header_compiler" >&6; }
26539 # Is the header present?
26540 { echo "$as_me:$LINENO: checking presence" >&5
26541 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26542 cat >conftest.$ac_ext <<_ACEOF
26545 cat confdefs.h >>conftest.$ac_ext
26546 cat >>conftest.$ac_ext <<_ACEOF
26547 /* end confdefs.h. */
26550 if { (ac_try="$ac_cpp conftest.$ac_ext"
26551 case "(($ac_try" in
26552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26553 *) ac_try_echo
=$ac_try;;
26555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26558 grep -v '^ *+' conftest.er1
>conftest.err
26560 cat conftest.err
>&5
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } >/dev
/null
&& {
26563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26564 test ! -s conftest.err
26566 ac_header_preproc
=yes
26568 echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.
$ac_ext >&5
26571 ac_header_preproc
=no
26574 rm -f conftest.err conftest.
$ac_ext
26575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26576 echo "${ECHO_T}$ac_header_preproc" >&6; }
26578 # So? What about this header?
26579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26581 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26582 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26583 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26584 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26585 ac_header_preproc
=yes
26588 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26589 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26590 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26591 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26592 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26593 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26594 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26595 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26596 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26597 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26598 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26599 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26603 { echo "$as_me:$LINENO: checking for " >&5
26604 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26605 if test "${ac_cv_header_+set}" = set; then
26606 echo $ECHO_N "(cached) $ECHO_C" >&6
26608 ac_cv_header_
=$ac_header_preproc
26610 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26611 echo "${ECHO_T}$ac_cv_header_" >&6; }
26614 if test $ac_cv_header_ = yes; then
26615 TERMCAP_HEADER_FOUND
=1
26617 TERMCAP_HEADER_FOUND
=0
26623 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
26624 if test ! -z "${TERMCAP_MANDATORY}" ;
26626 { echo "$as_me:$LINENO: ***" >&5
26627 echo "$as_me: ***" >&6;}
26628 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
26629 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
26630 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
26631 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
26632 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
26633 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
26642 cat >>confdefs.h
<<_ACEOF
26643 #define HAVE_TERMCAP 1
26647 elif test ! -z "${TERMCAP_MANDATORY}";
26649 { echo "$as_me:$LINENO: ***" >&5
26650 echo "$as_me: ***" >&6;}
26651 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
26652 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
26653 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26654 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26655 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
26656 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
26663 if test "${USE_TINFO}" != "no"; then
26665 if test "x${TINFO_DIR}" != "x"; then
26666 if test -d ${TINFO_DIR}/lib
; then
26667 pbxlibdir
="-L${TINFO_DIR}/lib"
26669 pbxlibdir
="-L${TINFO_DIR}"
26672 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
26673 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
26674 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26675 echo $ECHO_N "(cached) $ECHO_C" >&6
26677 ac_check_lib_save_LIBS
=$LIBS
26678 LIBS
="-ltinfo ${pbxlibdir} $LIBS"
26679 cat >conftest.
$ac_ext <<_ACEOF
26682 cat confdefs.h
>>conftest.
$ac_ext
26683 cat >>conftest.
$ac_ext <<_ACEOF
26684 /* end confdefs.h. */
26686 /* Override any GCC internal prototype to avoid an error.
26687 Use char because int might match the return type of a GCC
26688 builtin and then its argument prototype would still apply. */
26701 rm -f conftest.
$ac_objext conftest
$ac_exeext
26702 if { (ac_try
="$ac_link"
26703 case "(($ac_try" in
26704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26705 *) ac_try_echo=$ac_try;;
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708 (eval "$ac_link") 2>conftest.er1
26710 grep -v '^ *+' conftest.er1 >conftest.err
26712 cat conftest.err >&5
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); } && {
26715 test -z "$ac_c_werror_flag" ||
26716 test ! -s conftest.err
26717 } && test -s conftest$ac_exeext &&
26718 $as_test_x conftest$ac_exeext; then
26719 ac_cv_lib_tinfo_tgetent=yes
26721 echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26724 ac_cv_lib_tinfo_tgetent=no
26727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26728 conftest$ac_exeext conftest.$ac_ext
26729 LIBS=$ac_check_lib_save_LIBS
26731 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
26732 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
26733 if test $ac_cv_lib_tinfo_tgetent = yes; then
26734 AST_TINFO_FOUND=yes
26740 if test "${AST_TINFO_FOUND}" = "yes"; then
26741 TINFO_LIB="-ltinfo "
26742 TINFO_HEADER_FOUND="1"
26743 if test "x${TINFO_DIR}" != "x"; then
26744 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
26745 TINFO_INCLUDE="-I${TINFO_DIR}/include"
26746 if test "x" != "x" ; then
26747 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" |
$as_tr_sh`
26748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26749 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
26750 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
26751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26752 echo $ECHO_N "(cached) $ECHO_C" >&6
26754 ac_res=`eval echo '${'$as_ac_Header'}'`
26755 { echo "$as_me:$LINENO: result: $ac_res" >&5
26756 echo "${ECHO_T}$ac_res" >&6; }
26758 # Is the header compilable?
26759 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
26760 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
26761 cat >conftest.$ac_ext <<_ACEOF
26764 cat confdefs.h >>conftest.$ac_ext
26765 cat >>conftest.$ac_ext <<_ACEOF
26766 /* end confdefs.h. */
26767 $ac_includes_default
26768 #include <${TINFO_DIR}/include/>
26770 rm -f conftest.$ac_objext
26771 if { (ac_try="$ac_compile"
26772 case "(($ac_try" in
26773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26774 *) ac_try_echo
=$ac_try;;
26776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777 (eval "$ac_compile") 2>conftest.er1
26779 grep -v '^ *+' conftest.er1
>conftest.err
26781 cat conftest.err
>&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } && {
26784 test -z "$ac_c_werror_flag" ||
26785 test ! -s conftest.err
26786 } && test -s conftest.
$ac_objext; then
26787 ac_header_compiler
=yes
26789 echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.
$ac_ext >&5
26792 ac_header_compiler
=no
26795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26797 echo "${ECHO_T}$ac_header_compiler" >&6; }
26799 # Is the header present?
26800 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
26801 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
26802 cat >conftest.
$ac_ext <<_ACEOF
26805 cat confdefs.h
>>conftest.
$ac_ext
26806 cat >>conftest.
$ac_ext <<_ACEOF
26807 /* end confdefs.h. */
26808 #include <${TINFO_DIR}/include/>
26810 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26811 case "(($ac_try" in
26812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26813 *) ac_try_echo=$ac_try;;
26815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26818 grep -v '^ *+' conftest.er1 >conftest.err
26820 cat conftest.err >&5
26821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822 (exit $ac_status); } >/dev/null && {
26823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26824 test ! -s conftest.err
26826 ac_header_preproc=yes
26828 echo "$as_me: failed program was:" >&5
26829 sed 's/^/| /' conftest.$ac_ext >&5
26831 ac_header_preproc=no
26834 rm -f conftest.err conftest.$ac_ext
26835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26836 echo "${ECHO_T}$ac_header_preproc" >&6; }
26838 # So? What about this header?
26839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26841 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26842 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26843 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
26844 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
26845 ac_header_preproc=yes
26848 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
26849 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
26850 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
26851 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
26852 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
26853 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
26854 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26855 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26856 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
26857 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
26859 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26863 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
26864 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
26865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26866 echo $ECHO_N "(cached) $ECHO_C" >&6
26868 eval "$as_ac_Header=\$ac_header_preproc"
26870 ac_res=`eval echo '${'$as_ac_Header'}'`
26871 { echo "$as_me:$LINENO: result: $ac_res" >&5
26872 echo "${ECHO_T}$ac_res" >&6; }
26875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26876 TINFO_HEADER_FOUND=1
26878 TINFO_HEADER_FOUND=0
26884 if test "x" != "x" ; then
26885 if test "${ac_cv_header_+set}" = set; then
26886 { echo "$as_me:$LINENO: checking for " >&5
26887 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26888 if test "${ac_cv_header_+set}" = set; then
26889 echo $ECHO_N "(cached) $ECHO_C" >&6
26891 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26892 echo "${ECHO_T}$ac_cv_header_" >&6; }
26894 # Is the header compilable?
26895 { echo "$as_me:$LINENO: checking usability" >&5
26896 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26897 cat >conftest.$ac_ext <<_ACEOF
26900 cat confdefs.h >>conftest.$ac_ext
26901 cat >>conftest.$ac_ext <<_ACEOF
26902 /* end confdefs.h. */
26903 $ac_includes_default
26906 rm -f conftest.$ac_objext
26907 if { (ac_try="$ac_compile"
26908 case "(($ac_try" in
26909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26910 *) ac_try_echo
=$ac_try;;
26912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26913 (eval "$ac_compile") 2>conftest.er1
26915 grep -v '^ *+' conftest.er1
>conftest.err
26917 cat conftest.err
>&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); } && {
26920 test -z "$ac_c_werror_flag" ||
26921 test ! -s conftest.err
26922 } && test -s conftest.
$ac_objext; then
26923 ac_header_compiler
=yes
26925 echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.
$ac_ext >&5
26928 ac_header_compiler
=no
26931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26933 echo "${ECHO_T}$ac_header_compiler" >&6; }
26935 # Is the header present?
26936 { echo "$as_me:$LINENO: checking presence" >&5
26937 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26938 cat >conftest.
$ac_ext <<_ACEOF
26941 cat confdefs.h
>>conftest.
$ac_ext
26942 cat >>conftest.
$ac_ext <<_ACEOF
26943 /* end confdefs.h. */
26946 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26947 case "(($ac_try" in
26948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26949 *) ac_try_echo=$ac_try;;
26951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26954 grep -v '^ *+' conftest.er1 >conftest.err
26956 cat conftest.err >&5
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); } >/dev/null && {
26959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26960 test ! -s conftest.err
26962 ac_header_preproc=yes
26964 echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26967 ac_header_preproc=no
26970 rm -f conftest.err conftest.$ac_ext
26971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26972 echo "${ECHO_T}$ac_header_preproc" >&6; }
26974 # So? What about this header?
26975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26977 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26978 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26979 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26980 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26981 ac_header_preproc=yes
26984 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26985 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26986 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26987 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26988 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26989 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26990 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26991 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26992 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26993 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26994 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26995 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26999 { echo "$as_me:$LINENO: checking for " >&5
27000 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27001 if test "${ac_cv_header_+set}" = set; then
27002 echo $ECHO_N "(cached) $ECHO_C" >&6
27004 ac_cv_header_=$ac_header_preproc
27006 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27007 echo "${ECHO_T}$ac_cv_header_" >&6; }
27010 if test $ac_cv_header_ = yes; then
27011 TINFO_HEADER_FOUND=1
27013 TINFO_HEADER_FOUND=0
27019 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
27020 if test ! -z "${TINFO_MANDATORY}" ;
27022 { echo "$as_me:$LINENO: ***" >&5
27023 echo "$as_me: ***" >&6;}
27024 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
27025 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
27026 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
27027 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
27028 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27029 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27038 cat >>confdefs.h <<_ACEOF
27039 #define HAVE_TINFO 1
27043 elif test ! -z "${TINFO_MANDATORY}";
27045 { echo "$as_me:$LINENO: ***" >&5
27046 echo "$as_me: ***" >&6;}
27047 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
27048 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
27049 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27050 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27051 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27052 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27058 if test "${host_os}" != "linux-gnu" ; then
27059 tonezone_extra="-lm"
27063 if test "${USE_TONEZONE}" != "no"; then
27065 if test "x${TONEZONE_DIR}" != "x"; then
27066 if test -d ${TONEZONE_DIR}/lib; then
27067 pbxlibdir="-L${TONEZONE_DIR}/lib"
27069 pbxlibdir="-L${TONEZONE_DIR}"
27072 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
27073 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
27074 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27077 ac_check_lib_save_LIBS=$LIBS
27078 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
27079 cat >conftest.$ac_ext <<_ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h. */
27086 /* Override any GCC internal prototype to avoid an error.
27087 Use char because int might match the return type of a GCC
27088 builtin and then its argument prototype would still apply. */
27092 char tone_zone_find ();
27096 return tone_zone_find ();
27101 rm -f conftest.$ac_objext conftest$ac_exeext
27102 if { (ac_try="$ac_link"
27103 case "(($ac_try" in
27104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27105 *) ac_try_echo
=$ac_try;;
27107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108 (eval "$ac_link") 2>conftest.er1
27110 grep -v '^ *+' conftest.er1
>conftest.err
27112 cat conftest.err
>&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } && {
27115 test -z "$ac_c_werror_flag" ||
27116 test ! -s conftest.err
27117 } && test -s conftest
$ac_exeext &&
27118 $as_test_x conftest
$ac_exeext; then
27119 ac_cv_lib_tonezone_tone_zone_find
=yes
27121 echo "$as_me: failed program was:" >&5
27122 sed 's/^/| /' conftest.
$ac_ext >&5
27124 ac_cv_lib_tonezone_tone_zone_find
=no
27127 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27128 conftest
$ac_exeext conftest.
$ac_ext
27129 LIBS
=$ac_check_lib_save_LIBS
27131 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
27132 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
27133 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
27134 AST_TONEZONE_FOUND
=yes
27136 AST_TONEZONE_FOUND
=no
27140 if test "${AST_TONEZONE_FOUND}" = "yes"; then
27141 TONEZONE_LIB
="-ltonezone ${tonezone_extra}"
27142 TONEZONE_HEADER_FOUND
="1"
27143 if test "x${TONEZONE_DIR}" != "x"; then
27144 TONEZONE_LIB
="${pbxlibdir} ${TONEZONE_LIB}"
27145 TONEZONE_INCLUDE
="-I${TONEZONE_DIR}/include"
27146 if test "xzaptel/tonezone.h" != "x" ; then
27147 as_ac_Header
=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
27148 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27149 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27150 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27151 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27152 echo $ECHO_N "(cached) $ECHO_C" >&6
27154 ac_res
=`eval echo '${'$as_ac_Header'}'`
27155 { echo "$as_me:$LINENO: result: $ac_res" >&5
27156 echo "${ECHO_T}$ac_res" >&6; }
27158 # Is the header compilable?
27159 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
27160 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
27161 cat >conftest.
$ac_ext <<_ACEOF
27164 cat confdefs.h
>>conftest.
$ac_ext
27165 cat >>conftest.
$ac_ext <<_ACEOF
27166 /* end confdefs.h. */
27167 $ac_includes_default
27168 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27170 rm -f conftest.
$ac_objext
27171 if { (ac_try
="$ac_compile"
27172 case "(($ac_try" in
27173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27174 *) ac_try_echo=$ac_try;;
27176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27177 (eval "$ac_compile") 2>conftest.er1
27179 grep -v '^ *+' conftest.er1 >conftest.err
27181 cat conftest.err >&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); } && {
27184 test -z "$ac_c_werror_flag" ||
27185 test ! -s conftest.err
27186 } && test -s conftest.$ac_objext; then
27187 ac_header_compiler=yes
27189 echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27192 ac_header_compiler=no
27195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27197 echo "${ECHO_T}$ac_header_compiler" >&6; }
27199 # Is the header present?
27200 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
27201 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
27202 cat >conftest.$ac_ext <<_ACEOF
27205 cat confdefs.h >>conftest.$ac_ext
27206 cat >>conftest.$ac_ext <<_ACEOF
27207 /* end confdefs.h. */
27208 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27210 if { (ac_try="$ac_cpp conftest.$ac_ext"
27211 case "(($ac_try" in
27212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27213 *) ac_try_echo
=$ac_try;;
27215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27218 grep -v '^ *+' conftest.er1
>conftest.err
27220 cat conftest.err
>&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); } >/dev
/null
&& {
27223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27224 test ! -s conftest.err
27226 ac_header_preproc
=yes
27228 echo "$as_me: failed program was:" >&5
27229 sed 's/^/| /' conftest.
$ac_ext >&5
27231 ac_header_preproc
=no
27234 rm -f conftest.err conftest.
$ac_ext
27235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27236 echo "${ECHO_T}$ac_header_preproc" >&6; }
27238 # So? What about this header?
27239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27241 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27242 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27243 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
27244 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27245 ac_header_preproc
=yes
27248 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
27249 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
27250 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27251 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27252 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
27253 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27254 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27255 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27256 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27257 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27258 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27259 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27263 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27264 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27265 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27266 echo $ECHO_N "(cached) $ECHO_C" >&6
27268 eval "$as_ac_Header=\$ac_header_preproc"
27270 ac_res
=`eval echo '${'$as_ac_Header'}'`
27271 { echo "$as_me:$LINENO: result: $ac_res" >&5
27272 echo "${ECHO_T}$ac_res" >&6; }
27275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27276 TONEZONE_HEADER_FOUND
=1
27278 TONEZONE_HEADER_FOUND
=0
27284 if test "xzaptel/tonezone.h" != "x" ; then
27285 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27286 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27287 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27288 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27289 echo $ECHO_N "(cached) $ECHO_C" >&6
27291 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27292 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27294 # Is the header compilable?
27295 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
27296 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
27297 cat >conftest.
$ac_ext <<_ACEOF
27300 cat confdefs.h
>>conftest.
$ac_ext
27301 cat >>conftest.
$ac_ext <<_ACEOF
27302 /* end confdefs.h. */
27303 $ac_includes_default
27304 #include <zaptel/tonezone.h>
27306 rm -f conftest.
$ac_objext
27307 if { (ac_try
="$ac_compile"
27308 case "(($ac_try" in
27309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27310 *) ac_try_echo=$ac_try;;
27312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27313 (eval "$ac_compile") 2>conftest.er1
27315 grep -v '^ *+' conftest.er1 >conftest.err
27317 cat conftest.err >&5
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); } && {
27320 test -z "$ac_c_werror_flag" ||
27321 test ! -s conftest.err
27322 } && test -s conftest.$ac_objext; then
27323 ac_header_compiler=yes
27325 echo "$as_me: failed program was:" >&5
27326 sed 's/^/| /' conftest.$ac_ext >&5
27328 ac_header_compiler=no
27331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27333 echo "${ECHO_T}$ac_header_compiler" >&6; }
27335 # Is the header present?
27336 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
27337 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
27338 cat >conftest.$ac_ext <<_ACEOF
27341 cat confdefs.h >>conftest.$ac_ext
27342 cat >>conftest.$ac_ext <<_ACEOF
27343 /* end confdefs.h. */
27344 #include <zaptel/tonezone.h>
27346 if { (ac_try="$ac_cpp conftest.$ac_ext"
27347 case "(($ac_try" in
27348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27349 *) ac_try_echo
=$ac_try;;
27351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27354 grep -v '^ *+' conftest.er1
>conftest.err
27356 cat conftest.err
>&5
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); } >/dev
/null
&& {
27359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27360 test ! -s conftest.err
27362 ac_header_preproc
=yes
27364 echo "$as_me: failed program was:" >&5
27365 sed 's/^/| /' conftest.
$ac_ext >&5
27367 ac_header_preproc
=no
27370 rm -f conftest.err conftest.
$ac_ext
27371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27372 echo "${ECHO_T}$ac_header_preproc" >&6; }
27374 # So? What about this header?
27375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27377 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27378 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27379 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
27380 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27381 ac_header_preproc
=yes
27384 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
27385 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
27386 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27387 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27388 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
27389 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27390 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27391 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27392 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27393 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27394 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27395 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27399 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27400 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27401 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27402 echo $ECHO_N "(cached) $ECHO_C" >&6
27404 ac_cv_header_zaptel_tonezone_h
=$ac_header_preproc
27406 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27407 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27410 if test $ac_cv_header_zaptel_tonezone_h = yes; then
27411 TONEZONE_HEADER_FOUND
=1
27413 TONEZONE_HEADER_FOUND
=0
27419 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
27420 if test ! -z "${TONEZONE_MANDATORY}" ;
27422 { echo "$as_me:$LINENO: ***" >&5
27423 echo "$as_me: ***" >&6;}
27424 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
27425 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
27426 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
27427 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
27428 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27429 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27433 TONEZONE_INCLUDE
=""
27438 cat >>confdefs.h
<<_ACEOF
27439 #define HAVE_TONEZONE 1
27443 elif test ! -z "${TONEZONE_MANDATORY}";
27445 { echo "$as_me:$LINENO: ***" >&5
27446 echo "$as_me: ***" >&6;}
27447 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
27448 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
27449 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27450 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27451 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27452 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27459 if test "${USE_VORBIS}" != "no"; then
27461 if test "x${VORBIS_DIR}" != "x"; then
27462 if test -d ${VORBIS_DIR}/lib
; then
27463 pbxlibdir
="-L${VORBIS_DIR}/lib"
27465 pbxlibdir
="-L${VORBIS_DIR}"
27468 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
27469 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
27470 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
27471 echo $ECHO_N "(cached) $ECHO_C" >&6
27473 ac_check_lib_save_LIBS
=$LIBS
27474 LIBS
="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
27475 cat >conftest.
$ac_ext <<_ACEOF
27478 cat confdefs.h
>>conftest.
$ac_ext
27479 cat >>conftest.
$ac_ext <<_ACEOF
27480 /* end confdefs.h. */
27482 /* Override any GCC internal prototype to avoid an error.
27483 Use char because int might match the return type of a GCC
27484 builtin and then its argument prototype would still apply. */
27488 char vorbis_info_init ();
27492 return vorbis_info_init ();
27497 rm -f conftest.
$ac_objext conftest
$ac_exeext
27498 if { (ac_try
="$ac_link"
27499 case "(($ac_try" in
27500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27501 *) ac_try_echo=$ac_try;;
27503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504 (eval "$ac_link") 2>conftest.er1
27506 grep -v '^ *+' conftest.er1 >conftest.err
27508 cat conftest.err >&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); } && {
27511 test -z "$ac_c_werror_flag" ||
27512 test ! -s conftest.err
27513 } && test -s conftest$ac_exeext &&
27514 $as_test_x conftest$ac_exeext; then
27515 ac_cv_lib_vorbis_vorbis_info_init=yes
27517 echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27520 ac_cv_lib_vorbis_vorbis_info_init=no
27523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27524 conftest$ac_exeext conftest.$ac_ext
27525 LIBS=$ac_check_lib_save_LIBS
27527 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
27528 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
27529 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
27530 AST_VORBIS_FOUND=yes
27532 AST_VORBIS_FOUND=no
27536 if test "${AST_VORBIS_FOUND}" = "yes"; then
27537 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
27538 VORBIS_HEADER_FOUND="1"
27539 if test "x${VORBIS_DIR}" != "x"; then
27540 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
27541 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
27542 if test "xvorbis/codec.h" != "x" ; then
27543 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" |
$as_tr_sh`
27544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27545 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
27546 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
27547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27548 echo $ECHO_N "(cached) $ECHO_C" >&6
27550 ac_res=`eval echo '${'$as_ac_Header'}'`
27551 { echo "$as_me:$LINENO: result: $ac_res" >&5
27552 echo "${ECHO_T}$ac_res" >&6; }
27554 # Is the header compilable?
27555 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
27556 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
27557 cat >conftest.$ac_ext <<_ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h. */
27563 $ac_includes_default
27564 #include <${VORBIS_DIR}/include/vorbis/codec.h>
27566 rm -f conftest.$ac_objext
27567 if { (ac_try="$ac_compile"
27568 case "(($ac_try" in
27569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27570 *) ac_try_echo
=$ac_try;;
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_compile") 2>conftest.er1
27575 grep -v '^ *+' conftest.er1
>conftest.err
27577 cat conftest.err
>&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); } && {
27580 test -z "$ac_c_werror_flag" ||
27581 test ! -s conftest.err
27582 } && test -s conftest.
$ac_objext; then
27583 ac_header_compiler
=yes
27585 echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.
$ac_ext >&5
27588 ac_header_compiler
=no
27591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27593 echo "${ECHO_T}$ac_header_compiler" >&6; }
27595 # Is the header present?
27596 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
27597 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
27598 cat >conftest.
$ac_ext <<_ACEOF
27601 cat confdefs.h
>>conftest.
$ac_ext
27602 cat >>conftest.
$ac_ext <<_ACEOF
27603 /* end confdefs.h. */
27604 #include <${VORBIS_DIR}/include/vorbis/codec.h>
27606 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27607 case "(($ac_try" in
27608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27609 *) ac_try_echo=$ac_try;;
27611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27614 grep -v '^ *+' conftest.er1 >conftest.err
27616 cat conftest.err >&5
27617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 (exit $ac_status); } >/dev/null && {
27619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27620 test ! -s conftest.err
27622 ac_header_preproc=yes
27624 echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27627 ac_header_preproc=no
27630 rm -f conftest.err conftest.$ac_ext
27631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27632 echo "${ECHO_T}$ac_header_preproc" >&6; }
27634 # So? What about this header?
27635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27637 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
27638 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27639 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
27640 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
27641 ac_header_preproc=yes
27644 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
27645 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
27646 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
27647 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
27648 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
27649 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
27650 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
27651 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
27652 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
27653 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
27654 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
27655 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
27659 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
27660 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
27661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27662 echo $ECHO_N "(cached) $ECHO_C" >&6
27664 eval "$as_ac_Header=\$ac_header_preproc"
27666 ac_res=`eval echo '${'$as_ac_Header'}'`
27667 { echo "$as_me:$LINENO: result: $ac_res" >&5
27668 echo "${ECHO_T}$ac_res" >&6; }
27671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27672 VORBIS_HEADER_FOUND=1
27674 VORBIS_HEADER_FOUND=0
27680 if test "xvorbis/codec.h" != "x" ; then
27681 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27682 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
27683 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
27684 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27685 echo $ECHO_N "(cached) $ECHO_C" >&6
27687 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
27688 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
27690 # Is the header compilable?
27691 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
27692 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
27693 cat >conftest.$ac_ext <<_ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h. */
27699 $ac_includes_default
27700 #include <vorbis/codec.h>
27702 rm -f conftest.$ac_objext
27703 if { (ac_try="$ac_compile"
27704 case "(($ac_try" in
27705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27706 *) ac_try_echo
=$ac_try;;
27708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27709 (eval "$ac_compile") 2>conftest.er1
27711 grep -v '^ *+' conftest.er1
>conftest.err
27713 cat conftest.err
>&5
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } && {
27716 test -z "$ac_c_werror_flag" ||
27717 test ! -s conftest.err
27718 } && test -s conftest.
$ac_objext; then
27719 ac_header_compiler
=yes
27721 echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.
$ac_ext >&5
27724 ac_header_compiler
=no
27727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27729 echo "${ECHO_T}$ac_header_compiler" >&6; }
27731 # Is the header present?
27732 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
27733 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
27734 cat >conftest.
$ac_ext <<_ACEOF
27737 cat confdefs.h
>>conftest.
$ac_ext
27738 cat >>conftest.
$ac_ext <<_ACEOF
27739 /* end confdefs.h. */
27740 #include <vorbis/codec.h>
27742 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27743 case "(($ac_try" in
27744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27750 grep -v '^ *+' conftest.er1 >conftest.err
27752 cat conftest.err >&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); } >/dev/null && {
27755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27756 test ! -s conftest.err
27758 ac_header_preproc=yes
27760 echo "$as_me: failed program was:" >&5
27761 sed 's/^/| /' conftest.$ac_ext >&5
27763 ac_header_preproc=no
27766 rm -f conftest.err conftest.$ac_ext
27767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27768 echo "${ECHO_T}$ac_header_preproc" >&6; }
27770 # So? What about this header?
27771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27773 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
27774 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27775 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
27776 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
27777 ac_header_preproc=yes
27780 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
27781 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
27782 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
27783 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
27784 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
27785 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
27786 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
27787 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
27788 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
27789 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
27790 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
27791 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
27795 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
27796 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
27797 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27798 echo $ECHO_N "(cached) $ECHO_C" >&6
27800 ac_cv_header_vorbis_codec_h=$ac_header_preproc
27802 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
27803 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
27806 if test $ac_cv_header_vorbis_codec_h = yes; then
27807 VORBIS_HEADER_FOUND=1
27809 VORBIS_HEADER_FOUND=0
27815 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
27816 if test ! -z "${VORBIS_MANDATORY}" ;
27818 { echo "$as_me:$LINENO: ***" >&5
27819 echo "$as_me: ***" >&6;}
27820 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
27821 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
27822 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
27823 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
27824 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
27825 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
27834 cat >>confdefs.h <<_ACEOF
27835 #define HAVE_VORBIS 1
27839 elif test ! -z "${VORBIS_MANDATORY}";
27841 { echo "$as_me:$LINENO: ***" >&5
27842 echo "$as_me: ***" >&6;}
27843 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
27844 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
27845 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27846 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27847 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
27848 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
27855 ac_cpp='$CXXCPP $CPPFLAGS'
27856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27861 if test "${USE_VPB}" != "no"; then
27862 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
27863 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
27864 saved_libs="${LIBS}"
27865 saved_cppflags="${CPPFLAGS}"
27866 if test "x${VPB_DIR}" != "x"; then
27867 if test -d ${VPB_DIR}/lib; then
27868 vpblibdir=${VPB_DIR}/lib
27870 vpblibdir=${VPB_DIR}
27872 LIBS="${LIBS} -L${vpblibdir}"
27873 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
27875 LIBS="${LIBS} -lvpb -lpthread"
27876 cat >conftest.$ac_ext <<_ACEOF
27880 cat confdefs.h >>conftest.$ac_ext
27881 cat >>conftest.$ac_ext <<_ACEOF
27882 /* end confdefs.h. */
27883 #include <vpbapi.h>
27887 int q = vpb_open(0,0);
27893 rm -f conftest.$ac_objext conftest$ac_exeext
27894 if { (ac_try="$ac_link"
27895 case "(($ac_try" in
27896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27897 *) ac_try_echo
=$ac_try;;
27899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27900 (eval "$ac_link") 2>conftest.er1
27902 grep -v '^ *+' conftest.er1
>conftest.err
27904 cat conftest.err
>&5
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); } && {
27907 test -z "$ac_cxx_werror_flag" ||
27908 test ! -s conftest.err
27909 } && test -s conftest
$ac_exeext &&
27910 $as_test_x conftest
$ac_exeext; then
27911 { echo "$as_me:$LINENO: result: yes" >&5
27912 echo "${ECHO_T}yes" >&6; }
27913 ac_cv_lib_vpb_vpb_open
="yes"
27916 echo "$as_me: failed program was:" >&5
27917 sed 's/^/| /' conftest.
$ac_ext >&5
27919 { echo "$as_me:$LINENO: result: no" >&5
27920 echo "${ECHO_T}no" >&6; }
27921 ac_cv_lib_vpb_vpb_open
="no"
27926 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27927 conftest
$ac_exeext conftest.
$ac_ext
27928 LIBS
="${saved_libs}"
27929 CPPFLAGS
="${saved_cppflags}"
27930 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
27932 if test "${VPB_DIR}" != ""; then
27933 VPB_LIB
="-L${vpblibdir} ${VPB_LIB}"
27934 VPB_INCLUDE
="-I${VPB_DIR}/include"
27938 cat >>confdefs.h
<<\_ACEOF
27942 elif test ! -z "${VPB_MANDATORY}"; then
27943 { echo "$as_me:$LINENO: ***" >&5
27944 echo "$as_me: ***" >&6;}
27945 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
27946 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
27947 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27948 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27949 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
27950 echo "$as_me: *** including --without-vpb." >&6;}
27956 ac_cpp
='$CPP $CPPFLAGS'
27957 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27958 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27959 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27963 if test "${USE_ZLIB}" != "no"; then
27965 if test "x${ZLIB_DIR}" != "x"; then
27966 if test -d ${ZLIB_DIR}/lib
; then
27967 pbxlibdir
="-L${ZLIB_DIR}/lib"
27969 pbxlibdir
="-L${ZLIB_DIR}"
27972 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
27973 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
27974 if test "${ac_cv_lib_z_compress+set}" = set; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27977 ac_check_lib_save_LIBS
=$LIBS
27978 LIBS
="-lz ${pbxlibdir} $LIBS"
27979 cat >conftest.
$ac_ext <<_ACEOF
27982 cat confdefs.h
>>conftest.
$ac_ext
27983 cat >>conftest.
$ac_ext <<_ACEOF
27984 /* end confdefs.h. */
27986 /* Override any GCC internal prototype to avoid an error.
27987 Use char because int might match the return type of a GCC
27988 builtin and then its argument prototype would still apply. */
27996 return compress ();
28001 rm -f conftest.
$ac_objext conftest
$ac_exeext
28002 if { (ac_try
="$ac_link"
28003 case "(($ac_try" in
28004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28005 *) ac_try_echo=$ac_try;;
28007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28008 (eval "$ac_link") 2>conftest.er1
28010 grep -v '^ *+' conftest.er1 >conftest.err
28012 cat conftest.err >&5
28013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014 (exit $ac_status); } && {
28015 test -z "$ac_c_werror_flag" ||
28016 test ! -s conftest.err
28017 } && test -s conftest$ac_exeext &&
28018 $as_test_x conftest$ac_exeext; then
28019 ac_cv_lib_z_compress=yes
28021 echo "$as_me: failed program was:" >&5
28022 sed 's/^/| /' conftest.$ac_ext >&5
28024 ac_cv_lib_z_compress=no
28027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28028 conftest$ac_exeext conftest.$ac_ext
28029 LIBS=$ac_check_lib_save_LIBS
28031 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28032 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
28033 if test $ac_cv_lib_z_compress = yes; then
28040 if test "${AST_ZLIB_FOUND}" = "yes"; then
28042 ZLIB_HEADER_FOUND="1"
28043 if test "x${ZLIB_DIR}" != "x"; then
28044 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
28045 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
28046 if test "xzlib.h" != "x" ; then
28047 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" |
$as_tr_sh`
28048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28049 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28050 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28052 echo $ECHO_N "(cached) $ECHO_C" >&6
28054 ac_res=`eval echo '${'$as_ac_Header'}'`
28055 { echo "$as_me:$LINENO: result: $ac_res" >&5
28056 echo "${ECHO_T}$ac_res" >&6; }
28058 # Is the header compilable?
28059 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
28060 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
28061 cat >conftest.$ac_ext <<_ACEOF
28064 cat confdefs.h >>conftest.$ac_ext
28065 cat >>conftest.$ac_ext <<_ACEOF
28066 /* end confdefs.h. */
28067 $ac_includes_default
28068 #include <${ZLIB_DIR}/include/zlib.h>
28070 rm -f conftest.$ac_objext
28071 if { (ac_try="$ac_compile"
28072 case "(($ac_try" in
28073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28074 *) ac_try_echo
=$ac_try;;
28076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077 (eval "$ac_compile") 2>conftest.er1
28079 grep -v '^ *+' conftest.er1
>conftest.err
28081 cat conftest.err
>&5
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); } && {
28084 test -z "$ac_c_werror_flag" ||
28085 test ! -s conftest.err
28086 } && test -s conftest.
$ac_objext; then
28087 ac_header_compiler
=yes
28089 echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.
$ac_ext >&5
28092 ac_header_compiler
=no
28095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28097 echo "${ECHO_T}$ac_header_compiler" >&6; }
28099 # Is the header present?
28100 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
28101 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
28102 cat >conftest.
$ac_ext <<_ACEOF
28105 cat confdefs.h
>>conftest.
$ac_ext
28106 cat >>conftest.
$ac_ext <<_ACEOF
28107 /* end confdefs.h. */
28108 #include <${ZLIB_DIR}/include/zlib.h>
28110 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28111 case "(($ac_try" in
28112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28113 *) ac_try_echo=$ac_try;;
28115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28118 grep -v '^ *+' conftest.er1 >conftest.err
28120 cat conftest.err >&5
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } >/dev/null && {
28123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28124 test ! -s conftest.err
28126 ac_header_preproc=yes
28128 echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28131 ac_header_preproc=no
28134 rm -f conftest.err conftest.$ac_ext
28135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28136 echo "${ECHO_T}$ac_header_preproc" >&6; }
28138 # So? What about this header?
28139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28141 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28142 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28143 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
28144 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
28145 ac_header_preproc=yes
28148 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
28149 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
28150 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
28151 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
28152 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
28153 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
28154 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28155 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28156 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
28157 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
28158 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
28159 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
28163 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28164 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28168 eval "$as_ac_Header=\$ac_header_preproc"
28170 ac_res=`eval echo '${'$as_ac_Header'}'`
28171 { echo "$as_me:$LINENO: result: $ac_res" >&5
28172 echo "${ECHO_T}$ac_res" >&6; }
28175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28176 ZLIB_HEADER_FOUND=1
28178 ZLIB_HEADER_FOUND=0
28184 if test "xzlib.h" != "x" ; then
28185 if test "${ac_cv_header_zlib_h+set}" = set; then
28186 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28187 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28188 if test "${ac_cv_header_zlib_h+set}" = set; then
28189 echo $ECHO_N "(cached) $ECHO_C" >&6
28191 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28192 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28194 # Is the header compilable?
28195 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28196 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28197 cat >conftest.$ac_ext <<_ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28203 $ac_includes_default
28206 rm -f conftest.$ac_objext
28207 if { (ac_try="$ac_compile"
28208 case "(($ac_try" in
28209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28210 *) ac_try_echo
=$ac_try;;
28212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28213 (eval "$ac_compile") 2>conftest.er1
28215 grep -v '^ *+' conftest.er1
>conftest.err
28217 cat conftest.err
>&5
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); } && {
28220 test -z "$ac_c_werror_flag" ||
28221 test ! -s conftest.err
28222 } && test -s conftest.
$ac_objext; then
28223 ac_header_compiler
=yes
28225 echo "$as_me: failed program was:" >&5
28226 sed 's/^/| /' conftest.
$ac_ext >&5
28228 ac_header_compiler
=no
28231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28233 echo "${ECHO_T}$ac_header_compiler" >&6; }
28235 # Is the header present?
28236 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28237 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28238 cat >conftest.
$ac_ext <<_ACEOF
28241 cat confdefs.h
>>conftest.
$ac_ext
28242 cat >>conftest.
$ac_ext <<_ACEOF
28243 /* end confdefs.h. */
28246 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28247 case "(($ac_try" in
28248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28249 *) ac_try_echo=$ac_try;;
28251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28254 grep -v '^ *+' conftest.er1 >conftest.err
28256 cat conftest.err >&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); } >/dev/null && {
28259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28260 test ! -s conftest.err
28262 ac_header_preproc=yes
28264 echo "$as_me: failed program was:" >&5
28265 sed 's/^/| /' conftest.$ac_ext >&5
28267 ac_header_preproc=no
28270 rm -f conftest.err conftest.$ac_ext
28271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28272 echo "${ECHO_T}$ac_header_preproc" >&6; }
28274 # So? What about this header?
28275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28277 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28278 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28279 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28280 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28281 ac_header_preproc=yes
28284 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28285 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28286 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
28287 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
28288 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28289 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28290 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28291 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28292 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28293 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28294 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28295 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28299 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28300 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28301 if test "${ac_cv_header_zlib_h+set}" = set; then
28302 echo $ECHO_N "(cached) $ECHO_C" >&6
28304 ac_cv_header_zlib_h=$ac_header_preproc
28306 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28307 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28310 if test $ac_cv_header_zlib_h = yes; then
28311 ZLIB_HEADER_FOUND=1
28313 ZLIB_HEADER_FOUND=0
28319 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
28320 if test ! -z "${ZLIB_MANDATORY}" ;
28322 { echo "$as_me:$LINENO: ***" >&5
28323 echo "$as_me: ***" >&6;}
28324 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
28325 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
28326 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
28327 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
28328 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28329 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28338 cat >>confdefs.h <<_ACEOF
28339 #define HAVE_ZLIB 1
28343 elif test ! -z "${ZLIB_MANDATORY}";
28345 { echo "$as_me:$LINENO: ***" >&5
28346 echo "$as_me: ***" >&6;}
28347 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
28348 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
28349 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28350 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28351 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28352 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28358 if test "${USE_ZAPTEL}" != "no"; then
28359 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel.h" >&5
28360 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel.h... $ECHO_C" >&6; }
28361 saved_cppflags="${CPPFLAGS}"
28362 if test "x${ZAPTEL_DIR}" != "x"; then
28363 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28365 cat >conftest.$ac_ext <<_ACEOF
28369 cat confdefs.h >>conftest.$ac_ext
28370 cat >>conftest.$ac_ext <<_ACEOF
28371 /* end confdefs.h. */
28372 #include <zaptel/zaptel.h>
28376 int foo = ZT_TONE_DTMF_BASE;
28382 rm -f conftest.$ac_objext
28383 if { (ac_try="$ac_compile"
28384 case "(($ac_try" in
28385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28386 *) ac_try_echo
=$ac_try;;
28388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28389 (eval "$ac_compile") 2>conftest.er1
28391 grep -v '^ *+' conftest.er1
>conftest.err
28393 cat conftest.err
>&5
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); } && {
28396 test -z "$ac_c_werror_flag" ||
28397 test ! -s conftest.err
28398 } && test -s conftest.
$ac_objext; then
28399 { echo "$as_me:$LINENO: result: yes" >&5
28400 echo "${ECHO_T}yes" >&6; }
28401 ac_cv_zaptel_h
="yes"
28404 echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.
$ac_ext >&5
28407 { echo "$as_me:$LINENO: result: no" >&5
28408 echo "${ECHO_T}no" >&6; }
28409 ac_cv_zaptel_h
="no"
28414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28415 CPPFLAGS
="${saved_cppflags}"
28416 if test "${ac_cv_zaptel_h}" = "yes"; then
28417 if test "${ZAPTEL_DIR}" != ""; then
28418 ZAPTEL_INCLUDE
="-I${ZAPTEL_DIR}/include"
28422 cat >>confdefs.h
<<\_ACEOF
28423 #define HAVE_ZAPTEL 1
28426 elif test ! -z "${ZAPTEL_MANDATORY}";
28428 { echo "$as_me:$LINENO: ***" >&5
28429 echo "$as_me: ***" >&6;}
28430 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
28431 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
28432 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28433 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28434 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
28435 echo "$as_me: *** including --without-zaptel." >&6;}
28440 if test "${USE_ZAPTEL}" != "no"; then
28441 if test "${PBX_ZAPTEL}" != "1"; then
28442 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel.h" >&5
28443 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel.h... $ECHO_C" >&6; }
28444 saved_cppflags
="${CPPFLAGS}"
28445 if test "x${ZAPTEL_DIR}" != "x"; then
28446 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28448 cat >conftest.
$ac_ext <<_ACEOF
28452 cat confdefs.h
>>conftest.
$ac_ext
28453 cat >>conftest.
$ac_ext <<_ACEOF
28454 /* end confdefs.h. */
28455 #include <zaptel.h>
28459 int foo = ZT_DIAL_OP_CANCEL;
28465 rm -f conftest.
$ac_objext
28466 if { (ac_try
="$ac_compile"
28467 case "(($ac_try" in
28468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472 (eval "$ac_compile") 2>conftest.er1
28474 grep -v '^ *+' conftest.er1 >conftest.err
28476 cat conftest.err >&5
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); } && {
28479 test -z "$ac_c_werror_flag" ||
28480 test ! -s conftest.err
28481 } && test -s conftest.$ac_objext; then
28482 { echo "$as_me:$LINENO: result: yes" >&5
28483 echo "${ECHO_T}yes" >&6; }
28484 ac_cv_zaptel_h="yes"
28487 echo "$as_me: failed program was:" >&5
28488 sed 's/^/| /' conftest.$ac_ext >&5
28490 { echo "$as_me:$LINENO: result: no" >&5
28491 echo "${ECHO_T}no" >&6; }
28492 ac_cv_zaptel_h="no"
28497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28498 CPPFLAGS="${saved_cppflags}"
28499 if test "${ac_cv_zaptel_h}" = "yes"; then
28500 { echo "$as_me:$LINENO: ***" >&5
28501 echo "$as_me: ***" >&6;}
28502 { echo "$as_me:$LINENO: *** The Zaptel installation on this system is too old" >&5
28503 echo "$as_me: *** The Zaptel installation on this system is too old" >&6;}
28504 { echo "$as_me:$LINENO: *** to be useable with this version of Asterisk." >&5
28505 echo "$as_me: *** to be useable with this version of Asterisk." >&6;}
28506 { echo "$as_me:$LINENO: *** Either upgrade your Zaptel installation, or run configure" >&5
28507 echo "$as_me: *** Either upgrade your Zaptel installation, or run configure" >&6;}
28508 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
28509 echo "$as_me: *** including --without-zaptel." >&6;}
28516 if test "x$TERMCAP_LIB" != "x" ; then
28517 EDITLINE_LIB="$TERMCAP_LIB"
28518 elif test "x$TINFO_LIB" != "x" ; then
28519 EDITLINE_LIB="$TINFO_LIB"
28520 elif test "x$CURSES_LIB" != "x" ; then
28521 EDITLINE_LIB="$CURSES_LIB"
28522 elif test "x$NCURSES_LIB" != "x" ; then
28523 EDITLINE_LIB="$NCURSES_LIB"
28525 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
28526 echo "$as_me: error: *** termcap support not found" >&2;}
28527 { (exit 1); exit 1; }; }
28531 if test "${ac_cv_header_h323_h+set}" = set; then
28532 { echo "$as_me:$LINENO: checking for h323.h" >&5
28533 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
28534 if test "${ac_cv_header_h323_h+set}" = set; then
28535 echo $ECHO_N "(cached) $ECHO_C" >&6
28537 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
28538 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
28540 # Is the header compilable?
28541 { echo "$as_me:$LINENO: checking h323.h usability" >&5
28542 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
28543 cat >conftest.$ac_ext <<_ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h. */
28549 $ac_includes_default
28552 rm -f conftest.$ac_objext
28553 if { (ac_try="$ac_compile"
28554 case "(($ac_try" in
28555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28556 *) ac_try_echo
=$ac_try;;
28558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28559 (eval "$ac_compile") 2>conftest.er1
28561 grep -v '^ *+' conftest.er1
>conftest.err
28563 cat conftest.err
>&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } && {
28566 test -z "$ac_c_werror_flag" ||
28567 test ! -s conftest.err
28568 } && test -s conftest.
$ac_objext; then
28569 ac_header_compiler
=yes
28571 echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.
$ac_ext >&5
28574 ac_header_compiler
=no
28577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28579 echo "${ECHO_T}$ac_header_compiler" >&6; }
28581 # Is the header present?
28582 { echo "$as_me:$LINENO: checking h323.h presence" >&5
28583 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
28584 cat >conftest.
$ac_ext <<_ACEOF
28587 cat confdefs.h
>>conftest.
$ac_ext
28588 cat >>conftest.
$ac_ext <<_ACEOF
28589 /* end confdefs.h. */
28592 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28593 case "(($ac_try" in
28594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28595 *) ac_try_echo=$ac_try;;
28597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28600 grep -v '^ *+' conftest.er1 >conftest.err
28602 cat conftest.err >&5
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); } >/dev/null && {
28605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28606 test ! -s conftest.err
28608 ac_header_preproc=yes
28610 echo "$as_me: failed program was:" >&5
28611 sed 's/^/| /' conftest.$ac_ext >&5
28613 ac_header_preproc=no
28616 rm -f conftest.err conftest.$ac_ext
28617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28618 echo "${ECHO_T}$ac_header_preproc" >&6; }
28620 # So? What about this header?
28621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28623 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28624 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28625 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
28626 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
28627 ac_header_preproc=yes
28630 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
28631 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
28632 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
28633 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
28634 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
28635 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
28636 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
28637 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28638 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
28639 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
28640 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
28641 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
28645 { echo "$as_me:$LINENO: checking for h323.h" >&5
28646 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
28647 if test "${ac_cv_header_h323_h+set}" = set; then
28648 echo $ECHO_N "(cached) $ECHO_C" >&6
28650 ac_cv_header_h323_h=$ac_header_preproc
28652 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
28653 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
28656 if test $ac_cv_header_h323_h = yes; then
28665 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
28666 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
28667 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
28668 echo $ECHO_N "(cached) $ECHO_C" >&6
28670 cat >conftest.$ac_ext <<_ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h. */
28677 #include <linux/version.h>
28678 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
28679 #include <linux/compiler.h>
28683 #include <linux/ixjuser.h>
28685 rm -f conftest.$ac_objext
28686 if { (ac_try="$ac_compile"
28687 case "(($ac_try" in
28688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28689 *) ac_try_echo
=$ac_try;;
28691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28692 (eval "$ac_compile") 2>conftest.er1
28694 grep -v '^ *+' conftest.er1
>conftest.err
28696 cat conftest.err
>&5
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); } && {
28699 test -z "$ac_c_werror_flag" ||
28700 test ! -s conftest.err
28701 } && test -s conftest.
$ac_objext; then
28702 ac_cv_header_linux_ixjuser_h
=yes
28704 echo "$as_me: failed program was:" >&5
28705 sed 's/^/| /' conftest.
$ac_ext >&5
28707 ac_cv_header_linux_ixjuser_h
=no
28710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28712 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
28713 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
28714 if test $ac_cv_header_linux_ixjuser_h = yes; then
28724 if test -n "$ac_tool_prefix"; then
28725 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
28726 set dummy
${ac_tool_prefix}gtk-config
; ac_word
=$2
28727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28729 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
28730 echo $ECHO_N "(cached) $ECHO_C" >&6
28732 if test -n "$GTKCONFIG"; then
28733 ac_cv_prog_GTKCONFIG
="$GTKCONFIG" # Let the user override the test.
28735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28736 for as_dir
in $PATH
28739 test -z "$as_dir" && as_dir
=.
28740 for ac_exec_ext
in '' $ac_executable_extensions; do
28741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28742 ac_cv_prog_GTKCONFIG
="${ac_tool_prefix}gtk-config"
28743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28752 GTKCONFIG
=$ac_cv_prog_GTKCONFIG
28753 if test -n "$GTKCONFIG"; then
28754 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
28755 echo "${ECHO_T}$GTKCONFIG" >&6; }
28757 { echo "$as_me:$LINENO: result: no" >&5
28758 echo "${ECHO_T}no" >&6; }
28763 if test -z "$ac_cv_prog_GTKCONFIG"; then
28764 ac_ct_GTKCONFIG
=$GTKCONFIG
28765 # Extract the first word of "gtk-config", so it can be a program name with args.
28766 set dummy gtk-config
; ac_word
=$2
28767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28769 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
28770 echo $ECHO_N "(cached) $ECHO_C" >&6
28772 if test -n "$ac_ct_GTKCONFIG"; then
28773 ac_cv_prog_ac_ct_GTKCONFIG
="$ac_ct_GTKCONFIG" # Let the user override the test.
28775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28776 for as_dir
in $PATH
28779 test -z "$as_dir" && as_dir
=.
28780 for ac_exec_ext
in '' $ac_executable_extensions; do
28781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28782 ac_cv_prog_ac_ct_GTKCONFIG
="gtk-config"
28783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28792 ac_ct_GTKCONFIG
=$ac_cv_prog_ac_ct_GTKCONFIG
28793 if test -n "$ac_ct_GTKCONFIG"; then
28794 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
28795 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
28797 { echo "$as_me:$LINENO: result: no" >&5
28798 echo "${ECHO_T}no" >&6; }
28801 if test "x$ac_ct_GTKCONFIG" = x
; then
28804 case $cross_compiling:$ac_tool_warned in
28806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28807 whose name does not start with the host triplet. If you think this
28808 configuration is useful to you, please write to autoconf@gnu.org." >&5
28809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28810 whose name does not start with the host triplet. If you think this
28811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28812 ac_tool_warned
=yes ;;
28814 GTKCONFIG
=$ac_ct_GTKCONFIG
28817 GTKCONFIG
="$ac_cv_prog_GTKCONFIG"
28820 if test ! "x${GTKCONFIG}" = xNo
; then
28821 GTK_INCLUDE
=$
(${GTKCONFIG} --cflags gthread
)
28822 GTK_LIB
=$
(${GTKCONFIG} --libs gthread
)
28825 cat >>confdefs.h
<<\_ACEOF
28834 if test "${USE_CURL}" != "no"; then
28835 if test -n "$ac_tool_prefix"; then
28836 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
28837 set dummy
${ac_tool_prefix}curl-config
; ac_word
=$2
28838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28840 if test "${ac_cv_path_CURL+set}" = set; then
28841 echo $ECHO_N "(cached) $ECHO_C" >&6
28845 ac_cv_path_CURL
="$CURL" # Let the user override the test with a path.
28848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28849 for as_dir
in $PATH
28852 test -z "$as_dir" && as_dir
=.
28853 for ac_exec_ext
in '' $ac_executable_extensions; do
28854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28855 ac_cv_path_CURL
="$as_dir/$ac_word$ac_exec_ext"
28856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28866 CURL
=$ac_cv_path_CURL
28867 if test -n "$CURL"; then
28868 { echo "$as_me:$LINENO: result: $CURL" >&5
28869 echo "${ECHO_T}$CURL" >&6; }
28871 { echo "$as_me:$LINENO: result: no" >&5
28872 echo "${ECHO_T}no" >&6; }
28877 if test -z "$ac_cv_path_CURL"; then
28879 # Extract the first word of "curl-config", so it can be a program name with args.
28880 set dummy curl-config
; ac_word
=$2
28881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28883 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
28884 echo $ECHO_N "(cached) $ECHO_C" >&6
28886 case $ac_pt_CURL in
28888 ac_cv_path_ac_pt_CURL
="$ac_pt_CURL" # Let the user override the test with a path.
28891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28892 for as_dir
in $PATH
28895 test -z "$as_dir" && as_dir
=.
28896 for ac_exec_ext
in '' $ac_executable_extensions; do
28897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28898 ac_cv_path_ac_pt_CURL
="$as_dir/$ac_word$ac_exec_ext"
28899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28909 ac_pt_CURL
=$ac_cv_path_ac_pt_CURL
28910 if test -n "$ac_pt_CURL"; then
28911 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
28912 echo "${ECHO_T}$ac_pt_CURL" >&6; }
28914 { echo "$as_me:$LINENO: result: no" >&5
28915 echo "${ECHO_T}no" >&6; }
28918 if test "x$ac_pt_CURL" = x
; then
28921 case $cross_compiling:$ac_tool_warned in
28923 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28924 whose name does not start with the host triplet. If you think this
28925 configuration is useful to you, please write to autoconf@gnu.org." >&5
28926 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28927 whose name does not start with the host triplet. If you think this
28928 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28929 ac_tool_warned
=yes ;;
28934 CURL
="$ac_cv_path_CURL"
28937 if test ! x
"${CURL}" = xNo
; then
28938 # check for version
28939 if test $
(printf "%d" 0x$
(curl-config
--vernum)) -ge $
(printf "%d" 0x070907); then
28940 CURL_INCLUDE
=$
(${CURL} --cflags)
28941 CURL_LIB
=$
(${CURL} --libs)
28944 cat >>confdefs.h
<<\_ACEOF
28945 #define HAVE_CURL 1
28952 ac_config_files
="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
28954 cat >confcache
<<\_ACEOF
28955 # This file is a shell script that caches the results of configure
28956 # tests run on this system so they can be shared between configure
28957 # scripts and configure runs, see configure's option --config-cache.
28958 # It is not useful on other systems. If it contains results you don't
28959 # want to keep, you may remove or edit it.
28961 # config.status only pays attention to the cache file if you give it
28962 # the --recheck option to rerun configure.
28964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28966 # following values.
28970 # The following way of writing the cache mishandles newlines in values,
28971 # but we know of no workaround that is simple, portable, and efficient.
28972 # So, we kill variables containing newlines.
28973 # Ultrix sh set writes to stderr and can't be redirected directly,
28974 # and sets the high bit in the cache file unless we assign to the vars.
28976 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28977 eval ac_val
=\$
$ac_var
28981 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28982 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28985 _ | IFS | as_nl
) ;; #(
28986 *) $as_unset $ac_var ;;
28992 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28993 *${as_nl}ac_space
=\
*)
28994 # `set' does not quote correctly, so add quotes (double-quote
28995 # substitution turns \\\\ into \\, and sed turns \\ into \).
28998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29001 # `set' quotes correctly as required by POSIX, so do not add quotes.
29002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29011 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29013 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29015 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29016 if test -w "$cache_file"; then
29017 test "x$cache_file" != "x/dev/null" &&
29018 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29019 echo "$as_me: updating cache $cache_file" >&6;}
29020 cat confcache
>$cache_file
29022 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29023 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29028 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29029 # Let make expand exec_prefix.
29030 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29032 DEFS
=-DHAVE_CONFIG_H
29036 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29037 # 1. Remove the extension, and $U if already installed.
29038 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29039 ac_i
=`echo "$ac_i" | sed "$ac_script"`
29040 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29041 # will be set to the directory where LIBOBJS objects are built.
29042 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29043 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29045 LIBOBJS
=$ac_libobjs
29047 LTLIBOBJS
=$ac_ltlibobjs
29051 : ${CONFIG_STATUS=./config.status}
29052 ac_clean_files_save
=$ac_clean_files
29053 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29054 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29055 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29056 cat >$CONFIG_STATUS <<_ACEOF
29058 # Generated by $as_me.
29059 # Run this file to recreate the current configuration.
29060 # Compiler output produced by configure, useful for debugging
29061 # configure, is in config.log if it exists.
29064 ac_cs_recheck=false
29066 SHELL=\${CONFIG_SHELL-$SHELL}
29069 cat >>$CONFIG_STATUS <<\_ACEOF
29070 ## --------------------- ##
29071 ## M4sh Initialization. ##
29072 ## --------------------- ##
29074 # Be more Bourne compatible
29075 DUALCASE
=1; export DUALCASE
# for MKS sh
29076 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
29079 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29080 # is contrary to our usage. Disable this feature.
29081 alias -g '${1+"$@"}'='"$@"'
29082 setopt NO_GLOB_SUBST
29084 case `(set -o) 2>/dev/null` in
29085 *posix
*) set -o posix
;;
29094 # Avoid depending upon Character Ranges.
29095 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29096 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29097 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29098 as_cr_digits
='0123456789'
29099 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29101 # The user is always right.
29102 if test "${PATH_SEPARATOR+set}" != set; then
29103 echo "#! /bin/sh" >conf$$.sh
29104 echo "exit 0" >>conf$$.sh
29106 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
29114 # Support unset when possible.
29115 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
29123 # We need space, tab and new line, in precisely that order. Quoting is
29124 # there to prevent editors from complaining about space-tab.
29125 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29126 # splitting by setting IFS to empty value.)
29131 # Find who we are. Look in the path if we contain no directory separator.
29133 *[\\/]* ) as_myself
=$0 ;;
29134 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29135 for as_dir
in $PATH
29138 test -z "$as_dir" && as_dir
=.
29139 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
29145 # We did not find ourselves, most probably we were run as `sh COMMAND'
29146 # in which case we are not to be found in the path.
29147 if test "x$as_myself" = x
; then
29150 if test ! -f "$as_myself"; then
29151 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29152 { (exit 1); exit 1; }
29155 # Work around bugs in pre-3.0 UWIN ksh.
29156 for as_var
in ENV MAIL MAILPATH
29157 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
29165 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29166 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29167 LC_TELEPHONE LC_TIME
29169 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29170 eval $as_var=C
; export $as_var
29172 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
29176 # Required to use basename.
29177 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29178 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29184 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29185 as_basename
=basename
29191 # Name of the executable.
29192 as_me
=`$as_basename -- "$0" ||
29193 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29194 X"$0" : 'X\(//\)$' \| \
29195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29197 sed '/^.*\/\([^/][^/]*\)\/*$/{
29216 as_lineno_1
=$LINENO
29217 as_lineno_2
=$LINENO
29218 test "x$as_lineno_1" != "x$as_lineno_2" &&
29219 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
29221 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29222 # uniformly replaced by the line number. The first 'sed' inserts a
29223 # line-number line after each line using $LINENO; the second 'sed'
29224 # does the real work. The second script uses 'N' to pair each
29225 # line-number line with the line containing $LINENO, and appends
29226 # trailing '-' during substitution so that $LINENO is not a special
29227 # case at line end.
29228 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29229 # scripts with optimization help from Paolo Bonzini. Blame Lee
29230 # E. McMahon (1931-1989) for sed's syntax. :-)
29242 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29245 ' >$as_me.lineno
&&
29246 chmod +x
"$as_me.lineno" ||
29247 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29248 { (exit 1); exit 1; }; }
29250 # Don't try to exec as it changes $[0], causing all sort of problems
29251 # (the dirname of $[0] is not the place where we might find the
29252 # original and so on. Autoconf is especially sensitive to this).
29253 .
"./$as_me.lineno"
29254 # Exit status is that of the last command.
29259 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29265 ECHO_C
= ECHO_N
= ECHO_T
=
29266 case `echo -n x` in
29268 case `echo 'x\c'` in
29269 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29276 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29277 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29283 rm -f conf$$ conf$$.exe conf$$.
file
29284 if test -d conf$$.dir
; then
29285 rm -f conf$$.dir
/conf$$.
file
29291 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29293 # ... but there are two gotchas:
29294 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29295 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29296 # In both cases, we have to default to `cp -p'.
29297 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29299 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29304 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29305 rmdir conf$$.dir
2>/dev
/null
29307 if mkdir
-p .
2>/dev
/null
; then
29310 test -d .
/-p && rmdir .
/-p
29314 if test -x / >/dev
/null
2>&1; then
29315 as_test_x
='test -x'
29317 if ls -dL / >/dev
/null
2>&1; then
29324 if test -d "$1"; then
29330 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29331 ???[sx]*):;;*)false;;esac;fi
29335 as_executable_p
=$as_test_x
29337 # Sed expression to map a string onto a valid CPP name.
29338 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29340 # Sed expression to map a string onto a valid variable name.
29341 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29346 # Save the log message, to keep $[0] and so on meaningful, and to
29347 # report actual input values of CONFIG_FILES etc. instead of their
29348 # values after options handling.
29350 This file was extended by $as_me, which was
29351 generated by GNU Autoconf 2.61. Invocation command line was
29353 CONFIG_FILES = $CONFIG_FILES
29354 CONFIG_HEADERS = $CONFIG_HEADERS
29355 CONFIG_LINKS = $CONFIG_LINKS
29356 CONFIG_COMMANDS = $CONFIG_COMMANDS
29359 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29364 cat >>$CONFIG_STATUS <<_ACEOF
29365 # Files that config.status was made for.
29366 config_files="$ac_config_files"
29367 config_headers="$ac_config_headers"
29371 cat >>$CONFIG_STATUS <<\_ACEOF
29373 \`$as_me' instantiates files from templates according to the
29374 current configuration.
29376 Usage: $0 [OPTIONS] [FILE]...
29378 -h, --help print this help, then exit
29379 -V, --version print version number and configuration settings, then exit
29380 -q, --quiet do not print progress messages
29381 -d, --debug don't remove temporary files
29382 --recheck update $as_me by reconfiguring in the same conditions
29383 --file=FILE[:TEMPLATE]
29384 instantiate the configuration file FILE
29385 --header=FILE[:TEMPLATE]
29386 instantiate the configuration header FILE
29388 Configuration files:
29391 Configuration headers:
29394 Report bugs to <bug-autoconf@gnu.org>."
29397 cat >>$CONFIG_STATUS <<_ACEOF
29400 configured by $0, generated by GNU Autoconf 2.61,
29401 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29403 Copyright (C) 2006 Free Software Foundation, Inc.
29404 This config.status script is free software; the Free Software Foundation
29405 gives unlimited permission to copy, distribute and modify it."
29412 cat >>$CONFIG_STATUS <<\_ACEOF
29413 # If no file are specified by the user, then we need to provide default
29414 # value. By we need to know if files were specified by the user.
29420 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29421 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29432 # Handling of the options.
29433 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29435 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29436 echo "$ac_cs_version"; exit ;;
29437 --debug |
--debu |
--deb |
--de |
--d |
-d )
29439 --file |
--fil |
--fi |
--f )
29441 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
29442 ac_need_defaults
=false
;;
29443 --header |
--heade |
--head |
--hea )
29445 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
29446 ac_need_defaults
=false
;;
29448 # Conflict between --help and --header
29449 { echo "$as_me: error: ambiguous option: $1
29450 Try \`$0 --help' for more information." >&2
29451 { (exit 1); exit 1; }; };;
29452 --help |
--hel |
-h )
29453 echo "$ac_cs_usage"; exit ;;
29454 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29455 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29458 # This is an error.
29459 -*) { echo "$as_me: error: unrecognized option: $1
29460 Try \`$0 --help' for more information." >&2
29461 { (exit 1); exit 1; }; } ;;
29463 *) ac_config_targets
="$ac_config_targets $1"
29464 ac_need_defaults
=false
;;
29470 ac_configure_extra_args
=
29472 if $ac_cs_silent; then
29474 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29478 cat >>$CONFIG_STATUS <<_ACEOF
29479 if \$ac_cs_recheck; then
29480 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29481 CONFIG_SHELL=$SHELL
29482 export CONFIG_SHELL
29483 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29487 cat >>$CONFIG_STATUS <<\_ACEOF
29491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29492 ## Running $as_me. ##
29498 cat >>$CONFIG_STATUS <<_ACEOF
29501 cat >>$CONFIG_STATUS <<\_ACEOF
29503 # Handling of arguments.
29504 for ac_config_target
in $ac_config_targets
29506 case $ac_config_target in
29507 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
29508 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
29509 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
29510 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
29512 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29513 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29514 { (exit 1); exit 1; }; };;
29519 # If the user did not use the arguments to specify the items to instantiate,
29520 # then the envvar interface is used. Set only those that are not.
29521 # We use the long form for the default assignment because of an extremely
29522 # bizarre bug on SunOS 4.1.3.
29523 if $ac_need_defaults; then
29524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29525 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29528 # Have a temporary directory for convenience. Make it in the build tree
29529 # simply because there is no reason against having it here, and in addition,
29530 # creating and moving files from /tmp can sometimes cause problems.
29531 # Hook for its removal unless debugging.
29532 # Note that there is a small window in which the directory will not be cleaned:
29533 # after its creation but before its name has been assigned to `$tmp'.
29537 trap 'exit_status=$?
29538 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29540 trap '{ (exit 1); exit 1; }' 1 2 13 15
29542 # Create a (secure) tmp directory for tmp files.
29545 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29546 test -n "$tmp" && test -d "$tmp"
29549 tmp
=.
/conf$$
-$RANDOM
29550 (umask 077 && mkdir
"$tmp")
29553 echo "$me: cannot create a temporary directory in ." >&2
29554 { (exit 1); exit 1; }
29558 # Set up the sed scripts for CONFIG_FILES section.
29561 # No need to generate the scripts if there are no CONFIG_FILES.
29562 # This happens for instance when ./config.status config.h
29563 if test -n "$CONFIG_FILES"; then
29570 for ac_last_try
in false false false false false
:; do
29571 cat >conf$
$subs.
sed <<_ACEOF
29572 SHELL!$SHELL$ac_delim
29573 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29574 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29575 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29576 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29577 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29578 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29579 exec_prefix!$exec_prefix$ac_delim
29580 prefix!$prefix$ac_delim
29581 program_transform_name!$program_transform_name$ac_delim
29582 bindir!$bindir$ac_delim
29583 sbindir!$sbindir$ac_delim
29584 libexecdir!$libexecdir$ac_delim
29585 datarootdir!$datarootdir$ac_delim
29586 datadir!$datadir$ac_delim
29587 sysconfdir!$sysconfdir$ac_delim
29588 sharedstatedir!$sharedstatedir$ac_delim
29589 localstatedir!$localstatedir$ac_delim
29590 includedir!$includedir$ac_delim
29591 oldincludedir!$oldincludedir$ac_delim
29592 docdir!$docdir$ac_delim
29593 infodir!$infodir$ac_delim
29594 htmldir!$htmldir$ac_delim
29595 dvidir!$dvidir$ac_delim
29596 pdfdir!$pdfdir$ac_delim
29597 psdir!$psdir$ac_delim
29598 libdir!$libdir$ac_delim
29599 localedir!$localedir$ac_delim
29600 mandir!$mandir$ac_delim
29601 DEFS!$DEFS$ac_delim
29602 ECHO_C!$ECHO_C$ac_delim
29603 ECHO_N!$ECHO_N$ac_delim
29604 ECHO_T!$ECHO_T$ac_delim
29605 LIBS!$LIBS$ac_delim
29606 build_alias!$build_alias$ac_delim
29607 host_alias!$host_alias$ac_delim
29608 target_alias!$target_alias$ac_delim
29609 build!$build$ac_delim
29610 build_cpu!$build_cpu$ac_delim
29611 build_vendor!$build_vendor$ac_delim
29612 build_os!$build_os$ac_delim
29613 host!$host$ac_delim
29614 host_cpu!$host_cpu$ac_delim
29615 host_vendor!$host_vendor$ac_delim
29616 host_os!$host_os$ac_delim
29618 CFLAGS!$CFLAGS$ac_delim
29619 LDFLAGS!$LDFLAGS$ac_delim
29620 CPPFLAGS!$CPPFLAGS$ac_delim
29621 ac_ct_CC!$ac_ct_CC$ac_delim
29622 EXEEXT!$EXEEXT$ac_delim
29623 OBJEXT!$OBJEXT$ac_delim
29625 GREP!$GREP$ac_delim
29626 EGREP!$EGREP$ac_delim
29627 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
29628 BUILD_CPU!$BUILD_CPU$ac_delim
29629 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
29630 BUILD_OS!$BUILD_OS$ac_delim
29631 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
29632 HOST_CPU!$HOST_CPU$ac_delim
29633 HOST_VENDOR!$HOST_VENDOR$ac_delim
29634 HOST_OS!$HOST_OS$ac_delim
29635 OSARCH!$OSARCH$ac_delim
29636 UNAME!$UNAME$ac_delim
29637 PBX_OSREV!$PBX_OSREV$ac_delim
29640 RANLIB!$RANLIB$ac_delim
29642 CXXFLAGS!$CXXFLAGS$ac_delim
29643 ac_ct_CXX!$ac_ct_CXX$ac_delim
29644 CXXCPP!$CXXCPP$ac_delim
29647 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29648 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29649 INSTALL_DATA!$INSTALL_DATA$ac_delim
29650 LN_S!$LN_S$ac_delim
29651 GNU_MAKE!$GNU_MAKE$ac_delim
29652 GNU_LD!$GNU_LD$ac_delim
29653 FIND!$FIND$ac_delim
29654 COMPRESS!$COMPRESS$ac_delim
29655 BASENAME!$BASENAME$ac_delim
29657 DIRNAME!$DIRNAME$ac_delim
29660 STRIP!$STRIP$ac_delim
29661 WGET!$WGET$ac_delim
29662 FETCH!$FETCH$ac_delim
29663 DOWNLOAD!$DOWNLOAD$ac_delim
29664 AST_DEVMODE!$AST_DEVMODE$ac_delim
29665 ALSA_LIB!$ALSA_LIB$ac_delim
29666 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
29667 PBX_ALSA!$PBX_ALSA$ac_delim
29668 CURL_LIB!$CURL_LIB$ac_delim
29671 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29673 elif $ac_last_try; then
29674 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29675 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29676 { (exit 1); exit 1; }; }
29678 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
29682 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29683 if test -n "$ac_eof"; then
29684 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
29685 ac_eof
=`expr $ac_eof + 1`
29688 cat >>$CONFIG_STATUS <<_ACEOF
29689 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29693 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29694 s/^/s,@/; s/!/@,|#_!!_#|/
29697 s/'"$ac_delim"'$/,g/; t
29699 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29700 ' >>$CONFIG_STATUS <conf$
$subs.
sed
29701 rm -f conf$
$subs.
sed
29702 cat >>$CONFIG_STATUS <<_ACEOF
29708 for ac_last_try
in false false false false false
:; do
29709 cat >conf$
$subs.
sed <<_ACEOF
29710 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
29711 PBX_CURL!$PBX_CURL$ac_delim
29712 CURSES_LIB!$CURSES_LIB$ac_delim
29713 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
29714 PBX_CURSES!$PBX_CURSES$ac_delim
29715 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
29716 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
29717 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
29718 GSM_LIB!$GSM_LIB$ac_delim
29719 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
29720 PBX_GSM!$PBX_GSM$ac_delim
29721 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
29722 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
29723 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
29724 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
29725 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
29726 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
29727 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
29728 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
29729 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
29730 KDE_LIB!$KDE_LIB$ac_delim
29731 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
29732 PBX_KDE!$PBX_KDE$ac_delim
29733 MISDN_LIB!$MISDN_LIB$ac_delim
29734 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
29735 PBX_MISDN!$PBX_MISDN$ac_delim
29736 NBS_LIB!$NBS_LIB$ac_delim
29737 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
29738 PBX_NBS!$PBX_NBS$ac_delim
29739 NCURSES_LIB!$NCURSES_LIB$ac_delim
29740 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
29741 PBX_NCURSES!$PBX_NCURSES$ac_delim
29742 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
29743 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
29744 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
29745 NEWT_LIB!$NEWT_LIB$ac_delim
29746 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
29747 PBX_NEWT!$PBX_NEWT$ac_delim
29748 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
29749 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
29750 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
29751 OGG_LIB!$OGG_LIB$ac_delim
29752 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
29753 PBX_OGG!$PBX_OGG$ac_delim
29754 OSPTK_LIB!$OSPTK_LIB$ac_delim
29755 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
29756 PBX_OSPTK!$PBX_OSPTK$ac_delim
29757 OSS_LIB!$OSS_LIB$ac_delim
29758 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
29759 PBX_OSS!$PBX_OSS$ac_delim
29760 POPT_LIB!$POPT_LIB$ac_delim
29761 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
29762 PBX_POPT!$PBX_POPT$ac_delim
29763 PGSQL_LIB!$PGSQL_LIB$ac_delim
29764 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
29765 PBX_PGSQL!$PBX_PGSQL$ac_delim
29766 PRI_LIB!$PRI_LIB$ac_delim
29767 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
29768 PBX_PRI!$PBX_PRI$ac_delim
29769 PWLIB_LIB!$PWLIB_LIB$ac_delim
29770 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
29771 PBX_PWLIB!$PBX_PWLIB$ac_delim
29772 OPENH323_LIB!$OPENH323_LIB$ac_delim
29773 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
29774 PBX_OPENH323!$PBX_OPENH323$ac_delim
29775 QT_LIB!$QT_LIB$ac_delim
29776 QT_INCLUDE!$QT_INCLUDE$ac_delim
29777 PBX_QT!$PBX_QT$ac_delim
29778 RADIUS_LIB!$RADIUS_LIB$ac_delim
29779 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
29780 PBX_RADIUS!$PBX_RADIUS$ac_delim
29781 SPEEX_LIB!$SPEEX_LIB$ac_delim
29782 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
29783 PBX_SPEEX!$PBX_SPEEX$ac_delim
29784 SQLITE_LIB!$SQLITE_LIB$ac_delim
29785 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
29786 PBX_SQLITE!$PBX_SQLITE$ac_delim
29787 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
29788 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
29789 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
29790 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
29791 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
29792 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
29793 FREETDS_LIB!$FREETDS_LIB$ac_delim
29794 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
29795 PBX_FREETDS!$PBX_FREETDS$ac_delim
29796 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
29797 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
29798 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
29799 TINFO_LIB!$TINFO_LIB$ac_delim
29800 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
29801 PBX_TINFO!$PBX_TINFO$ac_delim
29802 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
29803 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
29804 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
29805 VORBIS_LIB!$VORBIS_LIB$ac_delim
29806 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
29809 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29811 elif $ac_last_try; then
29812 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29813 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29814 { (exit 1); exit 1; }; }
29816 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
29820 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29821 if test -n "$ac_eof"; then
29822 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
29823 ac_eof
=`expr $ac_eof + 1`
29826 cat >>$CONFIG_STATUS <<_ACEOF
29827 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29831 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29832 s/^/s,@/; s/!/@,|#_!!_#|/
29835 s/'"$ac_delim"'$/,g/; t
29837 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29838 ' >>$CONFIG_STATUS <conf$
$subs.
sed
29839 rm -f conf$
$subs.
sed
29840 cat >>$CONFIG_STATUS <<_ACEOF
29846 for ac_last_try
in false false false false false
:; do
29847 cat >conf$
$subs.
sed <<_ACEOF
29848 PBX_VORBIS!$PBX_VORBIS$ac_delim
29849 VPB_LIB!$VPB_LIB$ac_delim
29850 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
29851 PBX_VPB!$PBX_VPB$ac_delim
29852 ZLIB_LIB!$ZLIB_LIB$ac_delim
29853 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
29854 PBX_ZLIB!$PBX_ZLIB$ac_delim
29855 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
29856 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
29857 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
29858 ALLOCA!$ALLOCA$ac_delim
29859 LIBOBJS!$LIBOBJS$ac_delim
29860 POW_LIB!$POW_LIB$ac_delim
29861 GC_CFLAGS!$GC_CFLAGS$ac_delim
29862 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
29863 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
29864 KDEINIT!$KDEINIT$ac_delim
29865 KDEDIR!$KDEDIR$ac_delim
29866 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
29867 PG_CONFIG!$PG_CONFIG$ac_delim
29868 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
29869 PWLIBDIR!$PWLIBDIR$ac_delim
29870 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
29871 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
29872 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
29873 OPENH323DIR!$OPENH323DIR$ac_delim
29874 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
29875 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
29876 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
29877 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
29878 QTMOC!$QTMOC$ac_delim
29879 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
29880 PBX_H323!$PBX_H323$ac_delim
29881 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
29882 GTKCONFIG!$GTKCONFIG$ac_delim
29883 PBX_GTK!$PBX_GTK$ac_delim
29884 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
29885 GTK_LIB!$GTK_LIB$ac_delim
29886 CURL!$CURL$ac_delim
29887 LTLIBOBJS!$LTLIBOBJS$ac_delim
29890 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
29892 elif $ac_last_try; then
29893 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29894 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29895 { (exit 1); exit 1; }; }
29897 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
29901 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29902 if test -n "$ac_eof"; then
29903 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
29904 ac_eof
=`expr $ac_eof + 1`
29907 cat >>$CONFIG_STATUS <<_ACEOF
29908 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
29909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29912 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29913 s/^/s,@/; s/!/@,|#_!!_#|/
29916 s/'"$ac_delim"'$/,g/; t
29918 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29919 ' >>$CONFIG_STATUS <conf$
$subs.
sed
29920 rm -f conf$
$subs.
sed
29921 cat >>$CONFIG_STATUS <<_ACEOF
29928 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29929 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29930 # trailing colons and then remove the whole line if VPATH becomes empty
29931 # (actually we leave an empty line to preserve line numbers).
29932 if test "x$srcdir" = x.
; then
29933 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
29934 s/:*\$(srcdir):*/:/
29935 s/:*\${srcdir}:*/:/
29937 s/^\([^=]*=[ ]*\):*/\1/
29943 cat >>$CONFIG_STATUS <<\_ACEOF
29944 fi # test -n "$CONFIG_FILES"
29947 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
29950 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29952 case $ac_mode$ac_tag in
29954 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29955 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29956 { (exit 1); exit 1; }; };;
29957 :[FH
]-) ac_tag
=-:-;;
29958 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29975 -) ac_f
="$tmp/stdin";;
29976 *) # Look for the file first in the build tree, then in the source tree
29977 # (if the path is not absolute). The absolute path cannot be DOS-style,
29978 # because $ac_f cannot contain `:'.
29982 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29984 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29985 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29986 { (exit 1); exit 1; }; };;
29988 ac_file_inputs
="$ac_file_inputs $ac_f"
29991 # Let's still pretend it is `configure' which instantiates (i.e., don't
29992 # use $as_me), people would be surprised to read:
29993 # /* config.h. Generated by config.status. */
29994 configure_input
="Generated from "`IFS=:
29995 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29996 if test x
"$ac_file" != x-
; then
29997 configure_input
="$ac_file. $configure_input"
29998 { echo "$as_me:$LINENO: creating $ac_file" >&5
29999 echo "$as_me: creating $ac_file" >&6;}
30003 *:-:* |
*:-) cat >"$tmp/stdin";;
30008 ac_dir
=`$as_dirname -- "$ac_file" ||
30009 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30010 X"$ac_file" : 'X\(//\)[^/]' \| \
30011 X"$ac_file" : 'X\(//\)$' \| \
30012 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30018 /^X\(\/\/\)[^/].*/{
30033 -*) as_dir
=.
/$as_dir;;
30035 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
30039 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30040 *) as_qdir
=$as_dir;;
30042 as_dirs
="'$as_qdir' $as_dirs"
30043 as_dir
=`$as_dirname -- "$as_dir" ||
30044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30045 X"$as_dir" : 'X\(//\)[^/]' \| \
30046 X"$as_dir" : 'X\(//\)$' \| \
30047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30053 /^X\(\/\/\)[^/].*/{
30066 test -d "$as_dir" && break
30068 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30069 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30070 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30071 { (exit 1); exit 1; }; }; }
30075 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30077 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30078 # A ".." for each directory in $ac_dir_suffix.
30079 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30080 case $ac_top_builddir_sub in
30081 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30082 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30085 ac_abs_top_builddir
=$ac_pwd
30086 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30087 # for backward compatibility:
30088 ac_top_builddir
=$ac_top_build_prefix
30091 .
) # We are building in place.
30093 ac_top_srcdir
=$ac_top_builddir_sub
30094 ac_abs_top_srcdir
=$ac_pwd ;;
30095 [\\/]* | ?
:[\\/]* ) # Absolute name.
30096 ac_srcdir
=$srcdir$ac_dir_suffix;
30097 ac_top_srcdir
=$srcdir
30098 ac_abs_top_srcdir
=$srcdir ;;
30099 *) # Relative name.
30100 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30101 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30102 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30104 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30114 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30115 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30119 cat >>$CONFIG_STATUS <<\_ACEOF
30120 # If the template does not know about datarootdir, expand it.
30121 # FIXME: This hack should be removed a few years after 2.60.
30122 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30124 case `sed -n '/datarootdir/ {
30133 ' $ac_file_inputs` in
30134 *datarootdir
*) ac_datarootdir_seen
=yes;;
30135 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30136 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30137 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30139 cat >>$CONFIG_STATUS <<_ACEOF
30140 ac_datarootdir_hack='
30141 s&@datadir@&$datadir&g
30142 s&@docdir@&$docdir&g
30143 s&@infodir@&$infodir&g
30144 s&@localedir@&$localedir&g
30145 s&@mandir@&$mandir&g
30146 s&\\\${datarootdir}&$datarootdir&g' ;;
30150 # Neutralize VPATH when `$srcdir' = `.'.
30151 # Shell code in configure.ac might set extrasub.
30152 # FIXME: do we really want to maintain this feature?
30153 cat >>$CONFIG_STATUS <<_ACEOF
30157 cat >>$CONFIG_STATUS <<\_ACEOF
30159 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30160 s
&@configure_input@
&$configure_input&;t t
30161 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30162 s
&@srcdir@
&$ac_srcdir&;t t
30163 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30164 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30165 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30166 s
&@builddir@
&$ac_builddir&;t t
30167 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30168 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30169 s
&@INSTALL@
&$ac_INSTALL&;t t
30170 $ac_datarootdir_hack
30171 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
30173 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30174 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30175 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30176 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30177 which seems to be undefined. Please make sure it is defined." >&5
30178 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30179 which seems to be undefined. Please make sure it is defined." >&2;}
30183 -) cat "$tmp/out"; rm -f "$tmp/out";;
30184 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30193 # Transform confdefs.h into a sed script `conftest.defines', that
30194 # substitutes the proper values into config.h.in to produce config.h.
30195 rm -f conftest.defines conftest.
tail
30196 # First, append a space to every undef/define line, to ease matching.
30197 echo 's/$/ /' >conftest.defines
30198 # Then, protect against being on the right side of a sed subst, or in
30199 # an unquoted here document, in config.status. If some macros were
30200 # called several times there might be several #defines for the same
30201 # symbol, which is useless. But do not sort them, since the last
30202 # AC_DEFINE must be honored.
30203 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
30204 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30205 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30206 # PARAMS is the parameter list in the macro definition--in most cases, it's
30207 # just an empty string.
30208 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30209 ac_dB
='\\)[ (].*,\\1define\\2'
30217 s/^[ ]*#[ ]*define[ ][ ]*//
30222 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30223 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30224 ' >>conftest.defines
30226 # Remove the space that was appended to ease matching.
30227 # Then replace #undef with comments. This is necessary, for
30228 # example, in the case of _POSIX_SOURCE, which is predefined and required
30229 # on some systems where configure will not decide to define it.
30230 # (The regexp can be short, since the line contains either #define or #undef.)
30232 s,^[ #]*u.*,/* & */,' >>conftest.defines
30234 # Break up conftest.defines:
30235 ac_max_sed_lines
=50
30237 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30238 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30239 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30241 ac_in
='$ac_file_inputs'
30242 ac_out
='"$tmp/out1"'
30243 ac_nxt
='"$tmp/out2"'
30247 # Write a here document:
30248 cat >>$CONFIG_STATUS <<_ACEOF
30249 # First, check the format of the line:
30250 cat >"\$tmp/defines.sed" <<\\CEOF
30251 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30252 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30256 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
30258 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30259 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
30260 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
30261 grep . conftest.
tail >/dev
/null ||
break
30262 rm -f conftest.defines
30263 mv conftest.
tail conftest.defines
30265 rm -f conftest.defines conftest.
tail
30267 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30268 cat >>$CONFIG_STATUS <<\_ACEOF
30269 if test x
"$ac_file" != x-
; then
30270 echo "/* $configure_input */" >"$tmp/config.h"
30271 cat "$ac_result" >>"$tmp/config.h"
30272 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
30273 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30274 echo "$as_me: $ac_file is unchanged" >&6;}
30277 mv "$tmp/config.h" $ac_file
30280 echo "/* $configure_input */"
30292 { (exit 0); exit 0; }
30294 chmod +x
$CONFIG_STATUS
30295 ac_clean_files
=$ac_clean_files_save
30298 # configure is writing to config.log, and then calls config.status.
30299 # config.status does its own redirection, appending to config.log.
30300 # Unfortunately, on DOS this fails, as config.log is still kept open
30301 # by configure, so config.status won't be able to write to it; its
30302 # output is simply discarded. So we exec the FD to /dev/null,
30303 # effectively closing config.log, so it can be properly (re)opened and
30304 # appended to by config.status. When coming back to configure, we
30305 # need to make the FD available again.
30306 if test "$no_create" != yes; then
30308 ac_config_status_args
=
30309 test "$silent" = yes &&
30310 ac_config_status_args
="$ac_config_status_args --quiet"
30312 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30314 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30315 # would make configure fail if this is the last instruction.
30316 $ac_cs_success ||
{ (exit 1); exit 1; }
30320 if test "x${silent}" != "xyes" ; then
30322 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
30323 echo " .\$7\$7.. .7\$\$7:. "
30324 echo " .\$\$:. ,\$7.7 "
30325 echo " .\$7. 7\$\$\$\$ .\$\$77 "
30326 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
30327 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
30328 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
30329 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
30330 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
30331 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
30332 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
30333 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
30334 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
30335 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
30336 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
30337 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
30338 echo " \$\$\$\$\$ \$\$\$ "
30339 echo " \$\$\$\$7. \$\$ (TM) "
30340 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
30341 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
30342 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
30346 { echo "$as_me:$LINENO: Package configured for: " >&5
30347 echo "$as_me: Package configured for: " >&6;}
30348 { echo "$as_me:$LINENO: OS type : $host_os" >&5
30349 echo "$as_me: OS type : $host_os" >&6;}
30350 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
30351 echo "$as_me: Host CPU : $host_cpu" >&6;}
30352 if test "${cross_compiling}" = "yes"; then
30353 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
30354 echo "$as_me: Cross Compilation = YES" >&6;}