2 # From configure.ac Revision: 49866 .
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
863 ac_precious_vars
='build_alias
878 # Initialize some variables set by options.
880 ac_init_version
=false
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
890 program_transform_name
=s
,x
,x
,
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir
='${exec_prefix}/bin'
905 sbindir
='${exec_prefix}/sbin'
906 libexecdir
='${exec_prefix}/libexec'
907 datarootdir
='${prefix}/share'
908 datadir
='${datarootdir}'
909 sysconfdir
='${prefix}/etc'
910 sharedstatedir
='${prefix}/com'
911 localstatedir
='${prefix}/var'
912 includedir
='${prefix}/include'
913 oldincludedir
='/usr/include'
914 docdir
='${datarootdir}/doc/${PACKAGE}'
915 infodir
='${datarootdir}/info'
920 libdir
='${exec_prefix}/lib'
921 localedir
='${datarootdir}/locale'
922 mandir
='${datarootdir}/man'
928 # If the previous option needs an argument, assign it.
929 if test -n "$ac_prev"; then
930 eval $ac_prev=\
$ac_option
936 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 # Accept the important Cygnus configure options, so we can diagnose typos.
942 case $ac_dashdash$ac_option in
946 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
948 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
951 -build |
--build |
--buil |
--bui |
--bu)
952 ac_prev
=build_alias
;;
953 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
954 build_alias
=$ac_optarg ;;
956 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
957 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
958 ac_prev
=cache_file
;;
959 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
960 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
961 cache_file
=$ac_optarg ;;
964 cache_file
=config.cache
;;
966 -datadir |
--datadir |
--datadi |
--datad)
968 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
969 datadir
=$ac_optarg ;;
971 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
972 |
--dataroo |
--dataro |
--datar)
973 ac_prev
=datarootdir
;;
974 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
975 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
976 datarootdir
=$ac_optarg ;;
978 -disable-* |
--disable-*)
979 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
982 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983 { (exit 1); exit 1; }; }
984 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
985 eval enable_
$ac_feature=no
;;
987 -docdir |
--docdir |
--docdi |
--doc |
--do)
989 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
992 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
994 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
997 -enable-* |
--enable-*)
998 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_
$ac_feature=\
$ac_optarg ;;
1006 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1007 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1008 |
--exec |
--exe |
--ex)
1009 ac_prev
=exec_prefix
;;
1010 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1011 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1012 |
--exec=* |
--exe=* |
--ex=*)
1013 exec_prefix
=$ac_optarg ;;
1015 -gas |
--gas |
--ga |
--g)
1016 # Obsolete; use --with-gas.
1019 -help |
--help |
--hel |
--he |
-h)
1020 ac_init_help
=long
;;
1021 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1022 ac_init_help
=recursive
;;
1023 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1024 ac_init_help
=short
;;
1026 -host |
--host |
--hos |
--ho)
1027 ac_prev
=host_alias
;;
1028 -host=* |
--host=* |
--hos=* |
--ho=*)
1029 host_alias
=$ac_optarg ;;
1031 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1033 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1035 htmldir
=$ac_optarg ;;
1037 -includedir |
--includedir |
--includedi |
--included |
--include \
1038 |
--includ |
--inclu |
--incl |
--inc)
1039 ac_prev
=includedir
;;
1040 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1041 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1042 includedir
=$ac_optarg ;;
1044 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1046 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1047 infodir
=$ac_optarg ;;
1049 -libdir |
--libdir |
--libdi |
--libd)
1051 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1052 libdir
=$ac_optarg ;;
1054 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1055 |
--libexe |
--libex |
--libe)
1056 ac_prev
=libexecdir
;;
1057 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1058 |
--libexe=* |
--libex=* |
--libe=*)
1059 libexecdir
=$ac_optarg ;;
1061 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1062 ac_prev
=localedir
;;
1063 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1064 localedir
=$ac_optarg ;;
1066 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1067 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1068 ac_prev
=localstatedir
;;
1069 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1070 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1071 localstatedir
=$ac_optarg ;;
1073 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1075 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1076 mandir
=$ac_optarg ;;
1078 -nfp |
--nfp |
--nf)
1079 # Obsolete; use --without-fp.
1082 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1083 |
--no-cr |
--no-c |
-n)
1086 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1087 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1090 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1091 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1092 |
--oldin |
--oldi |
--old |
--ol |
--o)
1093 ac_prev
=oldincludedir
;;
1094 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1095 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1096 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1097 oldincludedir
=$ac_optarg ;;
1099 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1101 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1102 prefix
=$ac_optarg ;;
1104 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1105 |
--program-pre |
--program-pr |
--program-p)
1106 ac_prev
=program_prefix
;;
1107 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1108 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1109 program_prefix
=$ac_optarg ;;
1111 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1112 |
--program-suf |
--program-su |
--program-s)
1113 ac_prev
=program_suffix
;;
1114 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1115 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1116 program_suffix
=$ac_optarg ;;
1118 -program-transform-name |
--program-transform-name \
1119 |
--program-transform-nam |
--program-transform-na \
1120 |
--program-transform-n |
--program-transform- \
1121 |
--program-transform |
--program-transfor \
1122 |
--program-transfo |
--program-transf \
1123 |
--program-trans |
--program-tran \
1124 |
--progr-tra |
--program-tr |
--program-t)
1125 ac_prev
=program_transform_name
;;
1126 -program-transform-name=* |
--program-transform-name=* \
1127 |
--program-transform-nam=* |
--program-transform-na=* \
1128 |
--program-transform-n=* |
--program-transform-=* \
1129 |
--program-transform=* |
--program-transfor=* \
1130 |
--program-transfo=* |
--program-transf=* \
1131 |
--program-trans=* |
--program-tran=* \
1132 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1133 program_transform_name
=$ac_optarg ;;
1135 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1137 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1138 pdfdir
=$ac_optarg ;;
1140 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1142 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1145 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1146 |
-silent |
--silent |
--silen |
--sile |
--sil)
1149 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1151 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1153 sbindir
=$ac_optarg ;;
1155 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1156 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1157 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1159 ac_prev
=sharedstatedir
;;
1160 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1161 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1162 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1164 sharedstatedir
=$ac_optarg ;;
1166 -site |
--site |
--sit)
1168 -site=* |
--site=* |
--sit=*)
1171 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1173 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1174 srcdir
=$ac_optarg ;;
1176 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1177 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1178 ac_prev
=sysconfdir
;;
1179 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1180 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1181 sysconfdir
=$ac_optarg ;;
1183 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1184 ac_prev
=target_alias
;;
1185 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1186 target_alias
=$ac_optarg ;;
1188 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1191 -version |
--version |
--versio |
--versi |
--vers |
-V)
1192 ac_init_version
=: ;;
1195 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1198 { echo "$as_me: error: invalid package name: $ac_package" >&2
1199 { (exit 1); exit 1; }; }
1200 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1201 eval with_
$ac_package=\
$ac_optarg ;;
1203 -without-* |
--without-*)
1204 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1207 { echo "$as_me: error: invalid package name: $ac_package" >&2
1208 { (exit 1); exit 1; }; }
1209 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1210 eval with_
$ac_package=no
;;
1213 # Obsolete; use --with-x.
1216 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1217 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1218 ac_prev
=x_includes
;;
1219 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1220 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1221 x_includes
=$ac_optarg ;;
1223 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1224 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1225 ac_prev
=x_libraries
;;
1226 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1227 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1228 x_libraries
=$ac_optarg ;;
1230 -*) { echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232 { (exit 1); exit 1; }; }
1236 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1239 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240 { (exit 1); exit 1; }; }
1241 eval $ac_envvar=\
$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1248 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 if test -n "$ac_prev"; then
1256 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1257 { echo "$as_me: error: missing argument to $ac_option" >&2
1258 { (exit 1); exit 1; }; }
1261 # Be sure to have absolute directory names.
1262 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val
=\$
$ac_var
1269 [\\/$
]* | ?
:[\\/]* ) continue;;
1270 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1272 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273 { (exit 1); exit 1; }; }
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1281 target
=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x
; then
1285 if test "x$build_alias" = x
; then
1286 cross_compiling
=maybe
1287 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used." >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1297 test "$silent" = yes && exec 6>/dev
/null
1300 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di
=`ls -di .` &&
1302 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1303 { echo "$as_me: error: Working directory cannot be determined" >&2
1304 { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 { echo "$as_me: error: pwd does not report name of working directory" >&2
1307 { (exit 1); exit 1; }; }
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted
=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir
=`$as_dirname -- "$0" ||
1315 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$0" : 'X\(//\)[^/]' \| \
1317 X"$0" : 'X\(//\)$' \| \
1318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1342 ac_srcdir_defaulted
=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1346 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347 { (exit 1); exit 1; }; }
1349 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1352 { (exit 1); exit 1; }; }
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var
in $ac_precious_vars; do
1365 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1367 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures this package to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --build=BUILD configure
for building on BUILD
[guessed
]
1437 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1441 if test -n "$ac_init_help"; then
1446 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1447 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1448 --enable-dev-mode Turn on developer mode
1449 --disable-largefile omit support
for large files
1452 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1453 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1454 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1455 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1456 --with-curl=PATH use cURL files
in PATH
1457 --with-curses=PATH use curses files
in PATH
1458 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1460 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1461 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1462 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1463 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1464 --with-kde=PATH use KDE files
in PATH
1465 --with-misdn=PATH use mISDN User Library files
in PATH
1466 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1467 --with-ncurses=PATH use ncurses files
in PATH
1468 --with-netsnmp=PATH use Net-SNMP files
in PATH
1469 --with-newt=PATH use newt files
in PATH
1470 --with-odbc=PATH use unixODBC files
in PATH
1471 --with-ogg=PATH use OGG files
in PATH
1472 --with-osptk=PATH use OSP Toolkit files
in PATH
1473 --with-oss=PATH use Open Sound System files
in PATH
1474 --with-popt=PATH use popt files
in PATH
1475 --with-postgres=PATH use PostgreSQL files
in PATH
1476 --with-pri=PATH use ISDN PRI files
in PATH
1477 --with-pwlib=PATH use PWlib files
in PATH
1478 --with-h323=PATH use OpenH323 files
in PATH
1479 --with-qt=PATH use Qt files
in PATH
1480 --with-radius=PATH use Radius Client files
in PATH
1481 --with-speex=PATH use Speex files
in PATH
1482 --with-sqlite=PATH use SQLite files
in PATH
1483 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1484 --with-ssl=PATH use OpenSSL files
in PATH
1485 --with-tds=PATH use FreeTDS files
in PATH
1486 --with-termcap=PATH use Termcap files
in PATH
1487 --with-tinfo=PATH use Term Info files
in PATH
1488 --with-tonezone=PATH use tonezone files
in PATH
1489 --with-vorbis=PATH use Vorbis files
in PATH
1490 --with-vpb=PATH use Voicetronix API files
in PATH
1491 --with-z=PATH use zlib files
in PATH
1492 --with-zaptel=PATH use Zaptel files
in PATH
1494 Some influential environment variables
:
1495 CC C compiler
command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1498 nonstandard directory
<lib dir
>
1499 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1500 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1501 you have headers
in a nonstandard directory
<include dir
>
1503 CXX C
++ compiler
command
1504 CXXFLAGS C
++ compiler flags
1505 CXXCPP C
++ preprocessor
1507 Use these variables to override the choices made by
`configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1537 .) # We are building in place.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1571 generated by GNU Autoconf 2.61
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1582 cat >config.log <<_ACEOF
1583 This file contains any messages produced by compilers while
1584 running configure, to aid debugging if configure makes a mistake.
1586 It was created by $as_me, which was
1587 generated by GNU Autoconf 2.61. Invocation command line was
1599 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1600 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1601 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1602 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1603 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1605 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1606 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1608 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1609 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1610 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1611 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1612 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1613 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1614 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 test -z "$as_dir" && as_dir=.
1623 echo "PATH: $as_dir"
1639 # Keep a trace of the command line.
1640 # Strip out --no-create and --no-recursion so they do not pile up.
1641 # Strip out --silent because we don't want to record it for future runs.
1642 # Also quote any args containing shell meta-characters.
1643 # Make two passes to allow for proper duplicate-argument suppression.
1647 ac_must_keep_next=false
1653 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1655 | -silent | --silent | --silen | --sile | --sil)
1658 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1661 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1663 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1664 if test $ac_must_keep_next = true; then
1665 ac_must_keep_next=false # Got value, back to normal.
1668 *=* | --config-cache | -C | -disable-* | --disable-* \
1669 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1670 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1671 | -with-* | --with-* | -without-* | --without-* | --x)
1672 case "$ac_configure_args0 " in
1673 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1676 -* ) ac_must_keep_next=true ;;
1679 ac_configure_args="$ac_configure_args '$ac_arg'"
1684 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1685 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1687 # When interrupted or exit'd, cleanup temporary files, and complete
1688 # config.log. We remove comments because anyway the quotes in there
1689 # would cause problems or look ugly.
1690 # WARNING: Use '\'' to represent an apostrophe within the trap.
1691 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1692 trap 'exit_status=$?
1693 # Save into config.log some information that might help in debugging.
1698 ## ---------------- ##
1699 ## Cache variables. ##
1700 ## ---------------- ##
1703 # The following way of writing the cache mishandles newlines in values,
1705 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1706 eval ac_val=\$$ac_var
1710 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1711 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1714 _ | IFS | as_nl) ;; #(
1715 *) $as_unset $ac_var ;;
1720 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1721 *${as_nl}ac_space=\ *)
1723 "s/'\''/'\''\\\\'\'''\''/g;
1724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1735 ## ----------------- ##
1736 ## Output variables. ##
1737 ## ----------------- ##
1740 for ac_var in $ac_subst_vars
1742 eval ac_val=\$$ac_var
1744 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 echo "$ac_var='\''$ac_val'\''"
1750 if test -n "$ac_subst_files"; then
1752 ## ------------------- ##
1753 ## File substitutions. ##
1754 ## ------------------- ##
1757 for ac_var in $ac_subst_files
1759 eval ac_val=\$$ac_var
1761 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 echo "$ac_var='\''$ac_val'\''"
1768 if test -s confdefs.h; then
1778 test "$ac_signal" != 0 &&
1779 echo "$as_me: caught signal $ac_signal"
1780 echo "$as_me: exit $exit_status"
1782 rm -f core *.core core.conftest.* &&
1783 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1786 for ac_signal in 1 2 13 15; do
1787 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1791 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1792 rm -f -r conftest* confdefs.h
1794 # Predefined preprocessor variables.
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_NAME "$PACKAGE_NAME"
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_STRING "$PACKAGE_STRING"
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821 # Let the site file select an alternate cache file if it wants to.
1822 # Prefer explicitly selected file to automatically selected ones.
1823 if test -n "$CONFIG_SITE"; then
1824 set x "$CONFIG_SITE"
1825 elif test "x$prefix" != xNONE; then
1826 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1828 set x "$ac_default_prefix/share/config.site" \
1829 "$ac_default_prefix/etc/config.site"
1834 if test -r "$ac_site_file"; then
1835 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836 echo "$as_me: loading site script $ac_site_file" >&6;}
1837 sed 's/^/| /' "$ac_site_file" >&5
1842 if test -r "$cache_file"; then
1843 # Some versions of bash will fail to source /dev/null (special
1844 # files actually), so we avoid doing that.
1845 if test -f "$cache_file"; then
1846 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847 echo "$as_me: loading cache $cache_file" >&6;}
1849 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850 *) . "./$cache_file";;
1854 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855 echo "$as_me: creating cache $cache_file" >&6;}
1859 ac_header_list="$ac_header_list sys/time.h"
1860 ac_header_list="$ac_header_list unistd.h"
1861 ac_func_list="$ac_func_list alarm"
1862 ac_header_list="$ac_header_list utime.h"
1863 # Check that the precious variables saved in the cache have kept the same
1865 ac_cache_corrupted=false
1866 for ac_var in $ac_precious_vars; do
1867 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868 eval ac_new_set=\$ac_env_${ac_var}_set
1869 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1870 eval ac_new_val=\$ac_env_${ac_var}_value
1871 case $ac_old_set,$ac_new_set in
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1874 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1878 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1882 if test "x$ac_old_val" != "x$ac_new_val"; then
1883 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1885 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1886 echo "$as_me: former value
: $ac_old_val" >&2;}
1887 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1888 echo "$as_me: current value
: $ac_new_val" >&2;}
1889 ac_cache_corrupted=:
1892 # Pass precious variables to config.status.
1893 if test "$ac_new_set" = set; then
1895 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1896 *) ac_arg=$ac_var=$ac_new_val ;;
1898 case " $ac_configure_args " in
1899 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1900 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904 if $ac_cache_corrupted; then
1905 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1906 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1907 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1908 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1909 { (exit 1); exit 1; }; }
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936 # cross-compile macros
1938 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1939 if test -f "$ac_dir/install-sh"; then
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1943 elif test -f "$ac_dir/install.sh"; then
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1947 elif test -f "$ac_dir/shtool"; then
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 # Make sure we can run config.sub.
1969 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1970 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1971 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1972 { (exit 1); exit 1; }; }
1974 { echo "$as_me:$LINENO: checking build system type" >&5
1975 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1976 if test "${ac_cv_build+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 ac_build_alias=$build_alias
1980 test "x$ac_build_alias" = x &&
1981 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1982 test "x$ac_build_alias" = x &&
1983 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1984 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1985 { (exit 1); exit 1; }; }
1986 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1987 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1988 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1989 { (exit 1); exit 1; }; }
1992 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1993 echo "${ECHO_T}$ac_cv_build" >&6; }
1994 case $ac_cv_build in
1996 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1997 echo "$as_me: error: invalid value of canonical build" >&2;}
1998 { (exit 1); exit 1; }; };;
2001 ac_save_IFS=$IFS; IFS='-'
2007 # Remember, the first character of IFS is used to create $*,
2008 # except with old shells:
2011 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2014 { echo "$as_me:$LINENO: checking host system type" >&5
2015 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2016 if test "${ac_cv_host+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 if test "x$host_alias" = x; then
2020 ac_cv_host=$ac_cv_build
2022 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2023 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2024 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2025 { (exit 1); exit 1; }; }
2029 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2030 echo "${ECHO_T}$ac_cv_host" >&6; }
2033 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2034 echo "$as_me: error: invalid value of canonical host" >&2;}
2035 { (exit 1); exit 1; }; };;
2038 ac_save_IFS=$IFS; IFS='-'
2044 # Remember, the first character of IFS is used to create $*,
2045 # except with old shells:
2048 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2052 # check existence of the package
2055 # specify output header file
2056 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2063 cat >>confdefs.h <<\_ACEOF
2064 #define _GNU_SOURCE 1
2069 ac_cpp='$CPP $CPPFLAGS'
2070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2073 if test -n "$ac_tool_prefix"; then
2074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 if test -n "$CC"; then
2103 { echo "$as_me:$LINENO: result: $CC" >&5
2104 echo "${ECHO_T}$CC" >&6; }
2106 { echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6; }
2112 if test -z "$ac_cv_prog_CC"; then
2114 # Extract the first word of "gcc", so it can be a program name with args.
2115 set dummy gcc; ac_word=$2
2116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test -n "$ac_ct_CC"; then
2122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2131 ac_cv_prog_ac_ct_CC="gcc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2142 if test -n "$ac_ct_CC"; then
2143 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2144 echo "${ECHO_T}$ac_ct_CC" >&6; }
2146 { echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6; }
2150 if test "x$ac_ct_CC" = x; then
2153 case $cross_compiling:$ac_tool_warned in
2155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2156 whose name does not start with the host triplet. If you think this
2157 configuration is useful to you, please write to autoconf@gnu.org." >&5
2158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2159 whose name does not start with the host triplet. If you think this
2160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2161 ac_tool_warned=yes ;;
2169 if test -z "$CC"; then
2170 if test -n "$ac_tool_prefix"; then
2171 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2172 set dummy ${ac_tool_prefix}cc; ac_word=$2
2173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188 ac_cv_prog_CC="${ac_tool_prefix}cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 if test -n "$CC"; then
2200 { echo "$as_me:$LINENO: result: $CC" >&5
2201 echo "${ECHO_T}$CC" >&6; }
2203 { echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6; }
2210 if test -z "$CC"; then
2211 # Extract the first word of "cc", so it can be a program name with args.
2212 set dummy cc; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 if test -n "$CC"; then
2219 ac_cv_prog_CC="$CC" # Let the user override the test.
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2229 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2230 ac_prog_rejected=yes
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241 if test $ac_prog_rejected = yes; then
2242 # We found a bogon in the path, so make sure we never use it.
2243 set dummy $ac_cv_prog_CC
2245 if test $# != 0; then
2246 # We chose a different compiler from the bogus one.
2247 # However, it has the same basename, so the bogon will be chosen
2248 # first if we set CC to just the basename; use the full file name.
2250 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2256 if test -n "$CC"; then
2257 { echo "$as_me:$LINENO: result: $CC" >&5
2258 echo "${ECHO_T}$CC" >&6; }
2260 { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2266 if test -z "$CC"; then
2267 if test -n "$ac_tool_prefix"; then
2268 for ac_prog in cl.exe
2270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274 if test "${ac_cv_prog_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 if test -n "$CC"; then
2278 ac_cv_prog_CC="$CC" # Let the user override the test.
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 if test -n "$CC"; then
2299 { echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6; }
2302 { echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6; }
2307 test -n "$CC" && break
2310 if test -z "$CC"; then
2312 for ac_prog in cl.exe
2314 # Extract the first word of "$ac_prog", so it can be a program name with args.
2315 set dummy $ac_prog; ac_word=$2
2316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 if test -n "$ac_ct_CC"; then
2322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_ac_ct_CC="$ac_prog"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6; }
2346 { echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6; }
2351 test -n "$ac_ct_CC" && break
2354 if test "x$ac_ct_CC" = x; then
2357 case $cross_compiling:$ac_tool_warned in
2359 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2360 whose name does not start with the host triplet. If you think this
2361 configuration is useful to you, please write to autoconf@gnu.org." >&5
2362 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2363 whose name does not start with the host triplet. If you think this
2364 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2365 ac_tool_warned=yes ;;
2374 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2375 See \`config.log
' for more details." >&5
2376 echo "$as_me: error: no acceptable C compiler found in \$PATH
2377 See \`config.log' for more details.
" >&2;}
2378 { (exit 1); exit 1; }; }
2380 # Provide some information about the compiler.
2381 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2382 ac_compiler=`set X $ac_compile; echo $2`
2383 { (ac_try="$ac_compiler --version >&5"
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compiler --version >&5") 2>&5
2391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2392 (exit $ac_status); }
2393 { (ac_try="$ac_compiler -v >&5"
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_compiler -v >&5") 2>&5
2401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2402 (exit $ac_status); }
2403 { (ac_try="$ac_compiler -V >&5"
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2408 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_compiler -V >&5") 2>&5
2411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2412 (exit $ac_status); }
2414 cat >conftest.$ac_ext <<_ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2429 ac_clean_files_save=$ac_clean_files
2430 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2431 # Try to create an executable without -o first, disregard a.out.
2432 # It will help us diagnose broken compilers, and finding out an intuition
2434 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2435 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2436 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2438 # List of possible output files, starting from the most likely.
2439 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2440 # only as a last resort. b.out is created by i960 compilers.
2441 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2443 # The IRIX 6 linker writes into existing files which may not be
2444 # executable, retaining their permissions. Remove them first so a
2445 # subsequent execution test works.
2447 for ac_file in $ac_files
2450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2451 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2456 if { (ac_try="$ac_link_default"
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2462 (eval "$ac_link_default") 2>&5
2464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2465 (exit $ac_status); }; then
2466 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2467 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2468 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2469 # so that the user can short-circuit this test for compilers unknown to
2471 for ac_file in $ac_files ''
2473 test -f "$ac_file" || continue
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2478 # We found the default executable, but exeext='' is most
2482 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2484 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2486 # We set ac_cv_exeext here because the later test for it is not
2487 # safe: cross compilers may not add the suffix if given an `-o'
2488 # argument, so we may need to know it at that point already.
2489 # Even if this section looks crufty: it has the advantage of
2496 test "$ac_cv_exeext" = no && ac_cv_exeext=
2502 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2503 echo "${ECHO_T}$ac_file" >&6; }
2504 if test -z "$ac_file"; then
2505 echo "$as_me: failed program was
:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2509 See \
`config.log' for more details." >&5
2510 echo "$as_me: error: C compiler cannot create executables
2511 See \`config.log
' for more details." >&2;}
2512 { (exit 77); exit 77; }; }
2515 ac_exeext=$ac_cv_exeext
2517 # Check that the compiler produces executables we can run. If not, either
2518 # the compiler is broken, or we cross compile.
2519 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2520 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2521 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2522 # If not cross compiling, check that we can run a simple program.
2523 if test "$cross_compiling" != yes; then
2524 if { ac_try='.
/$ac_file'
2525 { (case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_try") 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2536 if test "$cross_compiling" = maybe; then
2539 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2540 If you meant to cross compile, use \`--host'.
2541 See \
`config.log' for more details." >&5
2542 echo "$as_me: error: cannot run C compiled programs.
2543 If you meant to cross compile, use \`--host'.
2544 See \`config.log' for more details.
" >&2;}
2545 { (exit 1); exit 1; }; }
2549 { echo "$as_me:$LINENO: result
: yes" >&5
2550 echo "${ECHO_T}yes" >&6; }
2552 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2553 ac_clean_files=$ac_clean_files_save
2554 # Check that the compiler produces executables we can run. If not, either
2555 # the compiler is broken, or we cross compile.
2556 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2557 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2558 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2559 echo "${ECHO_T}$cross_compiling" >&6; }
2561 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2562 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2563 if { (ac_try="$ac_link"
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_link") 2>&5
2571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2572 (exit $ac_status); }; then
2573 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2574 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2575 # work properly (i.e., refer to `conftest.exe'), while it won't with
2577 for ac_file in conftest.exe conftest conftest.*; do
2578 test -f "$ac_file" || continue
2580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2581 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2587 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2588 See \
`config.log' for more details." >&5
2589 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2590 See \`config.log
' for more details." >&2;}
2591 { (exit 1); exit 1; }; }
2594 rm -f conftest$ac_cv_exeext
2595 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2596 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2598 rm -f conftest.$ac_ext
2599 EXEEXT=$ac_cv_exeext
2601 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2602 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2603 if test "${ac_cv_objext+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 cat >conftest.$ac_ext <<_ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2621 rm -f conftest.o conftest.obj
2622 if { (ac_try="$ac_compile"
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_compile") 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; then
2632 for ac_file in conftest.o conftest.obj conftest.*; do
2633 test -f "$ac_file" || continue;
2635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2636 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2641 echo "$as_me: failed program was:" >&5
2642 sed 's
/^
/|
/' conftest.$ac_ext >&5
2644 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2645 See \`config.log' for more details.
" >&5
2646 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2647 See \
`config.log' for more details." >&2;}
2648 { (exit 1); exit 1; }; }
2651 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2653 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2654 echo "${ECHO_T}$ac_cv_objext" >&6; }
2655 OBJEXT=$ac_cv_objext
2657 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2658 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2659 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 cat >conftest.$ac_ext <<_ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2680 rm -f conftest.$ac_objext
2681 if { (ac_try="$ac_compile"
2683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2684 *) ac_try_echo
=$ac_try;;
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compile") 2>conftest.er1
2689 grep -v '^ *+' conftest.er1
>conftest.err
2691 cat conftest.err
>&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } && {
2694 test -z "$ac_c_werror_flag" ||
2695 test ! -s conftest.err
2696 } && test -s conftest.
$ac_objext; then
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.
$ac_ext >&5
2705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2706 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2709 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2710 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2711 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2712 ac_test_CFLAGS
=${CFLAGS+set}
2713 ac_save_CFLAGS
=$CFLAGS
2714 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2715 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2716 if test "${ac_cv_prog_cc_g+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 ac_save_c_werror_flag
=$ac_c_werror_flag
2720 ac_c_werror_flag
=yes
2723 cat >conftest.
$ac_ext <<_ACEOF
2726 cat confdefs.h
>>conftest.
$ac_ext
2727 cat >>conftest.
$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2738 rm -f conftest.
$ac_objext
2739 if { (ac_try
="$ac_compile"
2741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compile") 2>conftest.er1
2747 grep -v '^ *+' conftest.er1 >conftest.err
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } && {
2752 test -z "$ac_c_werror_flag" ||
2753 test ! -s conftest.err
2754 } && test -s conftest.$ac_objext; then
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2761 cat >conftest.$ac_ext <<_ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2776 rm -f conftest.$ac_objext
2777 if { (ac_try="$ac_compile"
2779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2780 *) ac_try_echo
=$ac_try;;
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compile") 2>conftest.er1
2785 grep -v '^ *+' conftest.er1
>conftest.err
2787 cat conftest.err
>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } && {
2790 test -z "$ac_c_werror_flag" ||
2791 test ! -s conftest.err
2792 } && test -s conftest.
$ac_objext; then
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.
$ac_ext >&5
2798 ac_c_werror_flag
=$ac_save_c_werror_flag
2800 cat >conftest.
$ac_ext <<_ACEOF
2803 cat confdefs.h
>>conftest.
$ac_ext
2804 cat >>conftest.
$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2815 rm -f conftest.
$ac_objext
2816 if { (ac_try
="$ac_compile"
2818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_compile") 2>conftest.er1
2824 grep -v '^ *+' conftest.er1 >conftest.err
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } && {
2829 test -z "$ac_c_werror_flag" ||
2830 test ! -s conftest.err
2831 } && test -s conftest.$ac_objext; then
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 ac_c_werror_flag=$ac_save_c_werror_flag
2849 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2850 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2851 if test "$ac_test_CFLAGS" = set; then
2852 CFLAGS=$ac_save_CFLAGS
2853 elif test $ac_cv_prog_cc_g = yes; then
2854 if test "$GCC" = yes; then
2860 if test "$GCC" = yes; then
2866 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2867 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2868 if test "${ac_cv_prog_cc_c89+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 ac_cv_prog_cc_c89=no
2873 cat >conftest.$ac_ext <<_ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2881 #include <sys/types.h>
2882 #include <sys/stat.h>
2883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2884 struct buf { int x; };
2885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2886 static char *e (p, i)
2892 static char *f (char * (*g) (char **, int), char **p, ...)
2897 s = g (p, va_arg (v,int));
2902 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2903 function prototypes and stuff, but not '\xHH' hex character constants.
2904 These don't provoke an error unfortunately, instead are silently treated
2905 as 'x'. The following induces an error, until -std is added to get
2906 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2907 array size at least. It's necessary to write '\x00'==0 to get something
2908 that's true only with -std. */
2909 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2911 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2912 inside strings and character constants. */
2914 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2916 int test (int i, double x);
2917 struct s1 {int (*f) (int a);};
2918 struct s2 {int (*f) (double a);};
2919 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2925 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2930 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2931 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2933 CC="$ac_save_CC $ac_arg"
2934 rm -f conftest.$ac_objext
2935 if { (ac_try="$ac_compile"
2937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2938 *) ac_try_echo
=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compile") 2>conftest.er1
2943 grep -v '^ *+' conftest.er1
>conftest.err
2945 cat conftest.err
>&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } && {
2948 test -z "$ac_c_werror_flag" ||
2949 test ! -s conftest.err
2950 } && test -s conftest.
$ac_objext; then
2951 ac_cv_prog_cc_c89
=$ac_arg
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.
$ac_ext >&5
2959 rm -f core conftest.err conftest.
$ac_objext
2960 test "x$ac_cv_prog_cc_c89" != "xno" && break
2962 rm -f conftest.
$ac_ext
2967 case "x$ac_cv_prog_cc_c89" in
2969 { echo "$as_me:$LINENO: result: none needed" >&5
2970 echo "${ECHO_T}none needed" >&6; } ;;
2972 { echo "$as_me:$LINENO: result: unsupported" >&5
2973 echo "${ECHO_T}unsupported" >&6; } ;;
2975 CC
="$CC $ac_cv_prog_cc_c89"
2976 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2977 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2982 ac_cpp
='$CPP $CPPFLAGS'
2983 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2984 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2985 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2989 ac_cpp
='$CPP $CPPFLAGS'
2990 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2993 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2994 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2995 # On Suns, sometimes $CPP names a directory.
2996 if test -n "$CPP" && test -d "$CPP"; then
2999 if test -z "$CPP"; then
3000 if test "${ac_cv_prog_CPP+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 # Double quotes because CPP needs to be expanded
3004 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3007 for ac_c_preproc_warn_flag
in '' yes
3009 # Use a header file that comes with gcc, so configuring glibc
3010 # with a fresh cross-compiler works.
3011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012 # <limits.h> exists even on freestanding compilers.
3013 # On the NeXT, cc -E runs the code through the compiler's parser,
3014 # not just through cpp. "Syntax error" is here to catch this case.
3015 cat >conftest.
$ac_ext <<_ACEOF
3018 cat confdefs.h
>>conftest.
$ac_ext
3019 cat >>conftest.
$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3022 # include <limits.h>
3024 # include <assert.h>
3028 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } >/dev/null && {
3041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 # Broken: fails on valid input.
3053 rm -f conftest.err conftest.$ac_ext
3055 # OK, works on sane cases. Now check whether nonexistent headers
3056 # can be detected and how.
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063 #include <ac_nonexistent.h>
3065 if { (ac_try="$ac_cpp conftest.$ac_ext"
3067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3068 *) ac_try_echo
=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3073 grep -v '^ *+' conftest.er1
>conftest.err
3075 cat conftest.err
>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev
/null
&& {
3078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3081 # Broken: success on invalid input.
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.
$ac_ext >&5
3087 # Passes both tests.
3092 rm -f conftest.err conftest.
$ac_ext
3095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096 rm -f conftest.err conftest.
$ac_ext
3097 if $ac_preproc_ok; then
3109 { echo "$as_me:$LINENO: result: $CPP" >&5
3110 echo "${ECHO_T}$CPP" >&6; }
3112 for ac_c_preproc_warn_flag
in '' yes
3114 # Use a header file that comes with gcc, so configuring glibc
3115 # with a fresh cross-compiler works.
3116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3117 # <limits.h> exists even on freestanding compilers.
3118 # On the NeXT, cc -E runs the code through the compiler's parser,
3119 # not just through cpp. "Syntax error" is here to catch this case.
3120 cat >conftest.
$ac_ext <<_ACEOF
3123 cat confdefs.h
>>conftest.
$ac_ext
3124 cat >>conftest.
$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3127 # include <limits.h>
3129 # include <assert.h>
3133 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } >/dev/null && {
3146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 # Broken: fails on valid input.
3158 rm -f conftest.err conftest.$ac_ext
3160 # OK, works on sane cases. Now check whether nonexistent headers
3161 # can be detected and how.
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168 #include <ac_nonexistent.h>
3170 if { (ac_try="$ac_cpp conftest.$ac_ext"
3172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3173 *) ac_try_echo
=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3178 grep -v '^ *+' conftest.er1
>conftest.err
3180 cat conftest.err
>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } >/dev
/null
&& {
3183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3184 test ! -s conftest.err
3186 # Broken: success on invalid input.
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.
$ac_ext >&5
3192 # Passes both tests.
3197 rm -f conftest.err conftest.
$ac_ext
3200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3201 rm -f conftest.err conftest.
$ac_ext
3202 if $ac_preproc_ok; then
3205 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3206 See \`config.log' for more details." >&5
3207 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3208 See \`config.log' for more details." >&2;}
3209 { (exit 1); exit 1; }; }
3213 ac_cpp
='$CPP $CPPFLAGS'
3214 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3219 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3220 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3221 if test "${ac_cv_path_GREP+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 # Extract the first word of "grep ggrep" to use in msg output
3225 if test -z "$GREP"; then
3226 set dummy
grep ggrep
; ac_prog_name
=$2
3227 if test "${ac_cv_path_GREP+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 ac_path_GREP_found
=false
3231 # Loop through the user's path and test for each of PROGNAME-LIST
3232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3233 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3236 test -z "$as_dir" && as_dir
=.
3237 for ac_prog
in grep ggrep
; do
3238 for ac_exec_ext
in '' $ac_executable_extensions; do
3239 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3240 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3241 # Check for GNU ac_path_GREP and select it if it is found.
3242 # Check for GNU $ac_path_GREP
3243 case `"$ac_path_GREP" --version 2>&1` in
3245 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3248 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3251 cat "conftest.in" "conftest.in" >"conftest.tmp"
3252 mv "conftest.tmp" "conftest.in"
3253 cp "conftest.in" "conftest.nl"
3254 echo 'GREP' >> "conftest.nl"
3255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3256 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3257 ac_count
=`expr $ac_count + 1`
3258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3259 # Best one so far, save it but keep looking for a better one
3260 ac_cv_path_GREP
="$ac_path_GREP"
3261 ac_path_GREP_max
=$ac_count
3263 # 10*(2^10) chars as input seems more than enough
3264 test $ac_count -gt 10 && break
3266 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3270 $ac_path_GREP_found && break 3
3280 GREP
="$ac_cv_path_GREP"
3281 if test -z "$GREP"; then
3282 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3283 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3284 { (exit 1); exit 1; }; }
3288 ac_cv_path_GREP
=$GREP
3293 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3294 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3295 GREP
="$ac_cv_path_GREP"
3298 { echo "$as_me:$LINENO: checking for egrep" >&5
3299 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3300 if test "${ac_cv_path_EGREP+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3304 then ac_cv_path_EGREP
="$GREP -E"
3306 # Extract the first word of "egrep" to use in msg output
3307 if test -z "$EGREP"; then
3308 set dummy
egrep; ac_prog_name
=$2
3309 if test "${ac_cv_path_EGREP+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 ac_path_EGREP_found
=false
3313 # Loop through the user's path and test for each of PROGNAME-LIST
3314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3315 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3318 test -z "$as_dir" && as_dir
=.
3319 for ac_prog
in egrep; do
3320 for ac_exec_ext
in '' $ac_executable_extensions; do
3321 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3322 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3323 # Check for GNU ac_path_EGREP and select it if it is found.
3324 # Check for GNU $ac_path_EGREP
3325 case `"$ac_path_EGREP" --version 2>&1` in
3327 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3330 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3333 cat "conftest.in" "conftest.in" >"conftest.tmp"
3334 mv "conftest.tmp" "conftest.in"
3335 cp "conftest.in" "conftest.nl"
3336 echo 'EGREP' >> "conftest.nl"
3337 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3338 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3339 ac_count
=`expr $ac_count + 1`
3340 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3341 # Best one so far, save it but keep looking for a better one
3342 ac_cv_path_EGREP
="$ac_path_EGREP"
3343 ac_path_EGREP_max
=$ac_count
3345 # 10*(2^10) chars as input seems more than enough
3346 test $ac_count -gt 10 && break
3348 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3352 $ac_path_EGREP_found && break 3
3362 EGREP
="$ac_cv_path_EGREP"
3363 if test -z "$EGREP"; then
3364 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3365 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3366 { (exit 1); exit 1; }; }
3370 ac_cv_path_EGREP
=$EGREP
3376 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3377 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3378 EGREP
="$ac_cv_path_EGREP"
3382 { echo "$as_me:$LINENO: checking for AIX" >&5
3383 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3384 cat >conftest.
$ac_ext <<_ACEOF
3387 cat confdefs.h
>>conftest.
$ac_ext
3388 cat >>conftest.
$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3396 $EGREP "yes" >/dev
/null
2>&1; then
3397 { echo "$as_me:$LINENO: result: yes" >&5
3398 echo "${ECHO_T}yes" >&6; }
3399 cat >>confdefs.h
<<\_ACEOF
3400 #define _ALL_SOURCE 1
3404 { echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6; }
3410 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3411 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3412 if test "${ac_cv_header_stdc+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 cat >conftest.
$ac_ext <<_ACEOF
3418 cat confdefs.h
>>conftest.
$ac_ext
3419 cat >>conftest.
$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3434 rm -f conftest.
$ac_objext
3435 if { (ac_try
="$ac_compile"
3437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3441 (eval "$ac_compile") 2>conftest.er1
3443 grep -v '^ *+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest.$ac_objext; then
3451 ac_cv_header_stdc=yes
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 ac_cv_header_stdc=no
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461 if test $ac_cv_header_stdc = yes; then
3462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 $EGREP "memchr" >/dev/null 2>&1; then
3476 ac_cv_header_stdc=no
3482 if test $ac_cv_header_stdc = yes; then
3483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3494 $EGREP "free" >/dev/null 2>&1; then
3497 ac_cv_header_stdc=no
3503 if test $ac_cv_header_stdc = yes; then
3504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3505 if test "$cross_compiling" = yes; then
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3516 #if ((' ' & 0x0FF) == 0x020)
3517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3520 # define ISLOWER(c) \
3521 (('a' <= (c) && (c) <= 'i') \
3522 || ('j' <= (c) && (c) <= 'r') \
3523 || ('s' <= (c) && (c) <= 'z'))
3524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3532 for (i = 0; i < 256; i++)
3533 if (XOR (islower (i), ISLOWER (i))
3534 || toupper (i) != TOUPPER (i))
3539 rm -f conftest$ac_exeext
3540 if { (ac_try="$ac_link"
3542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3543 *) ac_try_echo
=$ac_try;;
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_link") 2>&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3550 { (case "(($ac_try" in
3551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_try") 2>&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3561 echo "$as_me: program exited with status $ac_status" >&5
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3566 ac_cv_header_stdc=no
3568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3574 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3575 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3576 if test $ac_cv_header_stdc = yes; then
3578 cat >>confdefs.h <<\_ACEOF
3579 #define STDC_HEADERS 1
3584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3594 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3595 inttypes.h stdint.h unistd.h
3597 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 cat >conftest.$ac_ext <<_ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3609 $ac_includes_default
3611 #include <$ac_header>
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3617 *) ac_try_echo
=$ac_try;;
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_compile") 2>conftest.er1
3622 grep -v '^ *+' conftest.er1
>conftest.err
3624 cat conftest.err
>&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && {
3627 test -z "$ac_c_werror_flag" ||
3628 test ! -s conftest.err
3629 } && test -s conftest.
$ac_objext; then
3630 eval "$as_ac_Header=yes"
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.
$ac_ext >&5
3635 eval "$as_ac_Header=no"
3638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3640 ac_res
=`eval echo '${'$as_ac_Header'}'`
3641 { echo "$as_me:$LINENO: result: $ac_res" >&5
3642 echo "${ECHO_T}$ac_res" >&6; }
3643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3644 cat >>confdefs.h
<<_ACEOF
3645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3653 if test "${ac_cv_header_minix_config_h+set}" = set; then
3654 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3655 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3656 if test "${ac_cv_header_minix_config_h+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3660 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3662 # Is the header compilable?
3663 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3664 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3665 cat >conftest.
$ac_ext <<_ACEOF
3668 cat confdefs.h
>>conftest.
$ac_ext
3669 cat >>conftest.
$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 $ac_includes_default
3672 #include <minix/config.h>
3674 rm -f conftest.
$ac_objext
3675 if { (ac_try
="$ac_compile"
3677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3691 ac_header_compiler=yes
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3696 ac_header_compiler=no
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3701 echo "${ECHO_T}$ac_header_compiler" >&6; }
3703 # Is the header present?
3704 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3705 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3706 cat >conftest.$ac_ext <<_ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3712 #include <minix/config.h>
3714 if { (ac_try="$ac_cpp conftest.$ac_ext"
3716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3717 *) ac_try_echo
=$ac_try;;
3719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3722 grep -v '^ *+' conftest.er1
>conftest.err
3724 cat conftest.err
>&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } >/dev
/null
&& {
3727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3728 test ! -s conftest.err
3730 ac_header_preproc
=yes
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.
$ac_ext >&5
3735 ac_header_preproc
=no
3738 rm -f conftest.err conftest.
$ac_ext
3739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3740 echo "${ECHO_T}$ac_header_preproc" >&6; }
3742 # So? What about this header?
3743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3745 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3746 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3747 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3748 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3749 ac_header_preproc
=yes
3752 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3753 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3755 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3757 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3758 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3759 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3760 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3761 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3762 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3763 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3767 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3768 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3769 if test "${ac_cv_header_minix_config_h+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 ac_cv_header_minix_config_h
=$ac_header_preproc
3774 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3775 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3778 if test $ac_cv_header_minix_config_h = yes; then
3785 if test "$MINIX" = yes; then
3787 cat >>confdefs.h
<<\_ACEOF
3788 #define _POSIX_SOURCE 1
3792 cat >>confdefs.h
<<\_ACEOF
3793 #define _POSIX_1_SOURCE 2
3797 cat >>confdefs.h
<<\_ACEOF
3813 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3814 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3815 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 cat >conftest.
$ac_ext <<_ACEOF
3821 cat confdefs.h
>>conftest.
$ac_ext
3822 cat >>conftest.
$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3825 # define __EXTENSIONS__ 1
3826 $ac_includes_default
3835 rm -f conftest.
$ac_objext
3836 if { (ac_try
="$ac_compile"
3838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842 (eval "$ac_compile") 2>conftest.er1
3844 grep -v '^ *+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } && {
3849 test -z "$ac_c_werror_flag" ||
3850 test ! -s conftest.err
3851 } && test -s conftest.$ac_objext; then
3852 ac_cv_safe_to_define___extensions__=yes
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 ac_cv_safe_to_define___extensions__=no
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3863 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3864 test $ac_cv_safe_to_define___extensions__ = yes &&
3865 cat >>confdefs.h <<\_ACEOF
3866 #define __EXTENSIONS__ 1
3869 cat >>confdefs.h <<\_ACEOF
3870 #define _POSIX_PTHREAD_SEMANTICS 1
3873 cat >>confdefs.h <<\_ACEOF
3874 #define _TANDEM_SOURCE 1
3879 case "${host_os}" in
3881 ac_default_prefix=/usr/local
3882 CPPFLAGS=-I/usr/local/include
3883 LDFLAGS=-L/usr/local/lib
3886 ac_default_prefix=/usr
3887 if test ${sysconfdir} = '${prefix}/etc'; then
3890 if test ${mandir} = '${prefix}/man'; then
3891 mandir=/usr/share/man
3896 if test ${localstatedir} = '${prefix}/var'; then
3900 BUILD_PLATFORM=${build}
3901 BUILD_CPU=${build_cpu}
3902 BUILD_VENDOR=${build_vendor}
3903 BUILD_OS=${build_os}
3910 HOST_PLATFORM=${host}
3911 HOST_CPU=${host_cpu}
3912 HOST_VENDOR=${host_vendor}
3920 case "${host_os}" in
3941 if test -n "$ac_tool_prefix"; then
3942 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
3943 set dummy ${ac_tool_prefix}uname; ac_word=$2
3944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3946 if test "${ac_cv_path_UNAME+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 UNAME=$ac_cv_path_UNAME
3973 if test -n "$UNAME"; then
3974 { echo "$as_me:$LINENO: result: $UNAME" >&5
3975 echo "${ECHO_T}$UNAME" >&6; }
3977 { echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6; }
3983 if test -z "$ac_cv_path_UNAME"; then
3985 # Extract the first word of "uname", so it can be a program name with args.
3986 set dummy uname; ac_word=$2
3987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 case $ac_pt_UNAME in
3994 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4016 if test -n "$ac_pt_UNAME"; then
4017 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4018 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4020 { echo "$as_me:$LINENO: result: no" >&5
4021 echo "${ECHO_T}no" >&6; }
4024 if test "x$ac_pt_UNAME" = x; then
4027 case $cross_compiling:$ac_tool_warned in
4029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4030 whose name does not start with the host triplet. If you think this
4031 configuration is useful to you, please write to autoconf@gnu.org." >&5
4032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4033 whose name does not start with the host triplet. If you think this
4034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4035 ac_tool_warned=yes ;;
4040 UNAME="$ac_cv_path_UNAME"
4043 if test ! x"${UNAME}" = xNo; then
4044 PBX_OSREV=$(${UNAME} -r)
4054 # cross-compile checks
4055 if test "${cross_compiling}" = "yes";
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4062 if test "${ac_cv_prog_CC+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 if test -n "$CC"; then
4066 ac_cv_prog_CC="$CC" # Let the user override the test.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 if test -n "$CC"; then
4087 { echo "$as_me:$LINENO: result: $CC" >&5
4088 echo "${ECHO_T}$CC" >&6; }
4090 { echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6; }
4096 if test -z "$ac_cv_prog_CC"; then
4098 # Extract the first word of "gcc", so it can be a program name with args.
4099 set dummy gcc; ac_word=$2
4100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4102 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 if test -n "$ac_ct_CC"; then
4106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 ac_cv_prog_ac_ct_CC="gcc"
4116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4126 if test -n "$ac_ct_CC"; then
4127 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4128 echo "${ECHO_T}$ac_ct_CC" >&6; }
4130 { echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6; }
4134 if test "x$ac_ct_CC" = x; then
4137 case $cross_compiling:$ac_tool_warned in
4139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4140 whose name does not start with the host triplet. If you think this
4141 configuration is useful to you, please write to autoconf@gnu.org." >&5
4142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4143 whose name does not start with the host triplet. If you think this
4144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4145 ac_tool_warned=yes ;;
4153 if test -n "$ac_tool_prefix"; then
4154 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4155 set dummy ${ac_tool_prefix}g++; ac_word=$2
4156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4158 if test "${ac_cv_prog_CXX+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if test -n "$CXX"; then
4162 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 if test -n "$CXX"; then
4183 { echo "$as_me:$LINENO: result: $CXX" >&5
4184 echo "${ECHO_T}$CXX" >&6; }
4186 { echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6; }
4192 if test -z "$ac_cv_prog_CXX"; then
4194 # Extract the first word of "g++", so it can be a program name with args.
4195 set dummy g++; ac_word=$2
4196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 if test -n "$ac_ct_CXX"; then
4202 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_prog_ac_ct_CXX="g++"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4222 if test -n "$ac_ct_CXX"; then
4223 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4224 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4226 { echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6; }
4230 if test "x$ac_ct_CXX" = x; then
4233 case $cross_compiling:$ac_tool_warned in
4235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4236 whose name does not start with the host triplet. If you think this
4237 configuration is useful to you, please write to autoconf@gnu.org." >&5
4238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4239 whose name does not start with the host triplet. If you think this
4240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4241 ac_tool_warned=yes ;;
4246 CXX="$ac_cv_prog_CXX"
4249 if test -n "$ac_tool_prefix"; then
4250 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4251 set dummy ${ac_tool_prefix}ld; ac_word=$2
4252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4254 if test "${ac_cv_prog_LD+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 if test -n "$LD"; then
4258 ac_cv_prog_LD="$LD" # Let the user override the test.
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267 ac_cv_prog_LD="${ac_tool_prefix}ld"
4268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 if test -n "$LD"; then
4279 { echo "$as_me:$LINENO: result: $LD" >&5
4280 echo "${ECHO_T}$LD" >&6; }
4282 { echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6; }
4288 if test -z "$ac_cv_prog_LD"; then
4290 # Extract the first word of "ld", so it can be a program name with args.
4291 set dummy ld; ac_word=$2
4292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4294 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 if test -n "$ac_ct_LD"; then
4298 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4307 ac_cv_prog_ac_ct_LD="ld"
4308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4318 if test -n "$ac_ct_LD"; then
4319 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4320 echo "${ECHO_T}$ac_ct_LD" >&6; }
4322 { echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6; }
4326 if test "x$ac_ct_LD" = x; then
4329 case $cross_compiling:$ac_tool_warned in
4331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4332 whose name does not start with the host triplet. If you think this
4333 configuration is useful to you, please write to autoconf@gnu.org." >&5
4334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4335 whose name does not start with the host triplet. If you think this
4336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4337 ac_tool_warned=yes ;;
4345 if test -n "$ac_tool_prefix"; then
4346 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4347 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_prog_RANLIB+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 if test -n "$RANLIB"; then
4354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 RANLIB=$ac_cv_prog_RANLIB
4374 if test -n "$RANLIB"; then
4375 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4376 echo "${ECHO_T}$RANLIB" >&6; }
4378 { echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6; }
4384 if test -z "$ac_cv_prog_RANLIB"; then
4385 ac_ct_RANLIB=$RANLIB
4386 # Extract the first word of "ranlib", so it can be a program name with args.
4387 set dummy ranlib; ac_word=$2
4388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4390 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 if test -n "$ac_ct_RANLIB"; then
4394 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403 ac_cv_prog_ac_ct_RANLIB="ranlib"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4414 if test -n "$ac_ct_RANLIB"; then
4415 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4416 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4418 { echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6; }
4422 if test "x$ac_ct_RANLIB" = x; then
4425 case $cross_compiling:$ac_tool_warned in
4427 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4428 whose name does not start with the host triplet. If you think this
4429 configuration is useful to you, please write to autoconf@gnu.org." >&5
4430 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4431 whose name does not start with the host triplet. If you think this
4432 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4433 ac_tool_warned=yes ;;
4435 RANLIB=$ac_ct_RANLIB
4438 RANLIB="$ac_cv_prog_RANLIB"
4441 if test -n "$ac_tool_prefix"; then
4442 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4443 set dummy ${ac_tool_prefix}ar; ac_word=$2
4444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446 if test "${ac_cv_prog_AR+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 if test -n "$AR"; then
4450 ac_cv_prog_AR="$AR" # Let the user override the test.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_AR="${ac_tool_prefix}ar"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 if test -n "$AR"; then
4471 { echo "$as_me:$LINENO: result: $AR" >&5
4472 echo "${ECHO_T}$AR" >&6; }
4474 { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4480 if test -z "$ac_cv_prog_AR"; then
4482 # Extract the first word of "ar", so it can be a program name with args.
4483 set dummy ar; ac_word=$2
4484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4486 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 if test -n "$ac_ct_AR"; then
4490 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499 ac_cv_prog_ac_ct_AR="ar"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4510 if test -n "$ac_ct_AR"; then
4511 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4512 echo "${ECHO_T}$ac_ct_AR" >&6; }
4514 { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4518 if test "x$ac_ct_AR" = x; then
4521 case $cross_compiling:$ac_tool_warned in
4523 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4524 whose name does not start with the host triplet. If you think this
4525 configuration is useful to you, please write to autoconf@gnu.org." >&5
4526 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4527 whose name does not start with the host triplet. If you think this
4528 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4529 ac_tool_warned=yes ;;
4539 # Checks for programs.
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545 if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4550 if test "${ac_cv_prog_CC+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 if test -n "$CC"; then
4575 { echo "$as_me:$LINENO: result: $CC" >&5
4576 echo "${ECHO_T}$CC" >&6; }
4578 { echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6; }
4584 if test -z "$ac_cv_prog_CC"; then
4586 # Extract the first word of "gcc", so it can be a program name with args.
4587 set dummy gcc; ac_word=$2
4588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 if test -n "$ac_ct_CC"; then
4594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4603 ac_cv_prog_ac_ct_CC="gcc"
4604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4614 if test -n "$ac_ct_CC"; then
4615 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4616 echo "${ECHO_T}$ac_ct_CC" >&6; }
4618 { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4622 if test "x$ac_ct_CC" = x; then
4625 case $cross_compiling:$ac_tool_warned in
4627 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4628 whose name does not start with the host triplet. If you think this
4629 configuration is useful to you, please write to autoconf@gnu.org." >&5
4630 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4631 whose name does not start with the host triplet. If you think this
4632 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4633 ac_tool_warned=yes ;;
4641 if test -z "$CC"; then
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}cc; ac_word=$2
4645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647 if test "${ac_cv_prog_CC+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 if test -n "$CC"; then
4651 ac_cv_prog_CC="$CC" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_CC="${ac_tool_prefix}cc"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 if test -n "$CC"; then
4672 { echo "$as_me:$LINENO: result: $CC" >&5
4673 echo "${ECHO_T}$CC" >&6; }
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4682 if test -z "$CC"; then
4683 # Extract the first word of "cc", so it can be a program name with args.
4684 set dummy cc; ac_word=$2
4685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4687 if test "${ac_cv_prog_CC+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 if test -n "$CC"; then
4691 ac_cv_prog_CC="$CC" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4702 ac_prog_rejected=yes
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 if test $ac_prog_rejected = yes; then
4714 # We found a bogon in the path, so make sure we never use it.
4715 set dummy $ac_cv_prog_CC
4717 if test $# != 0; then
4718 # We chose a different compiler from the bogus one.
4719 # However, it has the same basename, so the bogon will be chosen
4720 # first if we set CC to just the basename; use the full file name.
4722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4728 if test -n "$CC"; then
4729 { echo "$as_me:$LINENO: result: $CC" >&5
4730 echo "${ECHO_T}$CC" >&6; }
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4738 if test -z "$CC"; then
4739 if test -n "$ac_tool_prefix"; then
4740 for ac_prog in cl.exe
4742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4746 if test "${ac_cv_prog_CC+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 if test -n "$CC"; then
4750 ac_cv_prog_CC="$CC" # Let the user override the test.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 if test -n "$CC"; then
4771 { echo "$as_me:$LINENO: result: $CC" >&5
4772 echo "${ECHO_T}$CC" >&6; }
4774 { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4779 test -n "$CC" && break
4782 if test -z "$CC"; then
4784 for ac_prog in cl.exe
4786 # Extract the first word of "$ac_prog", so it can be a program name with args.
4787 set dummy $ac_prog; ac_word=$2
4788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 if test -n "$ac_ct_CC"; then
4794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803 ac_cv_prog_ac_ct_CC="$ac_prog"
4804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4814 if test -n "$ac_ct_CC"; then
4815 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4816 echo "${ECHO_T}$ac_ct_CC" >&6; }
4818 { echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6; }
4823 test -n "$ac_ct_CC" && break
4826 if test "x$ac_ct_CC" = x; then
4829 case $cross_compiling:$ac_tool_warned in
4831 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4832 whose name does not start with the host triplet. If you think this
4833 configuration is useful to you, please write to autoconf@gnu.org." >&5
4834 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4835 whose name does not start with the host triplet. If you think this
4836 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4837 ac_tool_warned=yes ;;
4846 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4847 See \`config.log
' for more details." >&5
4848 echo "$as_me: error: no acceptable C compiler found in \$PATH
4849 See \`config.log' for more details.
" >&2;}
4850 { (exit 1); exit 1; }; }
4852 # Provide some information about the compiler.
4853 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4854 ac_compiler=`set X $ac_compile; echo $2`
4855 { (ac_try="$ac_compiler --version >&5"
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4860 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4861 (eval "$ac_compiler --version >&5") 2>&5
4863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4864 (exit $ac_status); }
4865 { (ac_try="$ac_compiler -v >&5"
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4870 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_compiler -v >&5") 2>&5
4873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4874 (exit $ac_status); }
4875 { (ac_try="$ac_compiler -V >&5"
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4881 (eval "$ac_compiler -V >&5") 2>&5
4883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4884 (exit $ac_status); }
4886 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4887 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4888 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4889 echo $ECHO_N "(cached
) $ECHO_C" >&6
4891 cat >conftest.$ac_ext <<_ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4909 rm -f conftest.$ac_objext
4910 if { (ac_try="$ac_compile"
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_compile") 2>conftest.er1
4918 grep -v '^ *+' conftest.er1 >conftest.err
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4922 (exit $ac_status); } && {
4923 test -z "$ac_c_werror_flag" ||
4924 test ! -s conftest.err
4925 } && test -s conftest.$ac_objext; then
4928 echo "$as_me: failed program was
:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4938 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4939 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4940 GCC=`test $ac_compiler_gnu = yes && echo yes`
4941 ac_test_CFLAGS=${CFLAGS+set}
4942 ac_save_CFLAGS=$CFLAGS
4943 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4944 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4945 if test "${ac_cv_prog_cc_g+set}" = set; then
4946 echo $ECHO_N "(cached
) $ECHO_C" >&6
4948 ac_save_c_werror_flag=$ac_c_werror_flag
4949 ac_c_werror_flag=yes
4952 cat >conftest.$ac_ext <<_ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4967 rm -f conftest.$ac_objext
4968 if { (ac_try="$ac_compile"
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_compile") 2>conftest.er1
4976 grep -v '^ *+' conftest.er1 >conftest.err
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4980 (exit $ac_status); } && {
4981 test -z "$ac_c_werror_flag" ||
4982 test ! -s conftest.err
4983 } && test -s conftest.$ac_objext; then
4986 echo "$as_me: failed program was
:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
5005 rm -f conftest.$ac_objext
5006 if { (ac_try="$ac_compile"
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_compile") 2>conftest.er1
5014 grep -v '^ *+' conftest.er1 >conftest.err
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5018 (exit $ac_status); } && {
5019 test -z "$ac_c_werror_flag" ||
5020 test ! -s conftest.err
5021 } && test -s conftest.$ac_objext; then
5024 echo "$as_me: failed program was
:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5027 ac_c_werror_flag=$ac_save_c_werror_flag
5029 cat >conftest.$ac_ext <<_ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5044 rm -f conftest.$ac_objext
5045 if { (ac_try="$ac_compile"
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_compile") 2>conftest.er1
5053 grep -v '^ *+' conftest.er1 >conftest.err
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5057 (exit $ac_status); } && {
5058 test -z "$ac_c_werror_flag" ||
5059 test ! -s conftest.err
5060 } && test -s conftest.$ac_objext; then
5063 echo "$as_me: failed program was
:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 ac_c_werror_flag=$ac_save_c_werror_flag
5078 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5080 if test "$ac_test_CFLAGS" = set; then
5081 CFLAGS=$ac_save_CFLAGS
5082 elif test $ac_cv_prog_cc_g = yes; then
5083 if test "$GCC" = yes; then
5089 if test "$GCC" = yes; then
5095 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5096 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5097 if test "${ac_cv_prog_cc_c89+set}" = set; then
5098 echo $ECHO_N "(cached
) $ECHO_C" >&6
5100 ac_cv_prog_cc_c89=no
5102 cat >conftest.$ac_ext <<_ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5110 #include <sys/types.h>
5111 #include <sys/stat.h>
5112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5113 struct buf { int x; };
5114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5115 static char *e (p, i)
5121 static char *f (char * (*g) (char **, int), char **p, ...)
5126 s = g (p, va_arg (v,int));
5131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5132 function prototypes and stuff, but not '\xHH' hex character constants.
5133 These don't provoke an error unfortunately, instead are silently treated
5134 as 'x'. The following induces an error, until -std is added to get
5135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5136 array size at least. It's necessary to write '\x00'==0 to get something
5137 that's true only with -std. */
5138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5140 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5141 inside strings and character constants. */
5143 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5145 int test (int i, double x);
5146 struct s1 {int (*f) (int a);};
5147 struct s2 {int (*f) (double a);};
5148 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5154 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5159 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5160 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5162 CC="$ac_save_CC $ac_arg"
5163 rm -f conftest.$ac_objext
5164 if { (ac_try="$ac_compile"
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_compile") 2>conftest.er1
5172 grep -v '^ *+' conftest.er1 >conftest.err
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5176 (exit $ac_status); } && {
5177 test -z "$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 } && test -s conftest.$ac_objext; then
5180 ac_cv_prog_cc_c89=$ac_arg
5182 echo "$as_me: failed program was
:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5188 rm -f core conftest.err conftest.$ac_objext
5189 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5191 rm -f conftest.$ac_ext
5196 case "x
$ac_cv_prog_cc_c89" in
5198 { echo "$as_me:$LINENO: result
: none needed
" >&5
5199 echo "${ECHO_T}none needed
" >&6; } ;;
5201 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5202 echo "${ECHO_T}unsupported
" >&6; } ;;
5204 CC="$CC $ac_cv_prog_cc_c89"
5205 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5206 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217 ac_cpp='$CXXCPP $CPPFLAGS'
5218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5221 if test -z "$CXX"; then
5222 if test -n "$CCC"; then
5225 if test -n "$ac_tool_prefix"; then
5226 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5230 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5231 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5232 if test "${ac_cv_prog_CXX+set}" = set; then
5233 echo $ECHO_N "(cached
) $ECHO_C" >&6
5235 if test -n "$CXX"; then
5236 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5246 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5256 if test -n "$CXX"; then
5257 { echo "$as_me:$LINENO: result
: $CXX" >&5
5258 echo "${ECHO_T}$CXX" >&6; }
5260 { echo "$as_me:$LINENO: result
: no
" >&5
5261 echo "${ECHO_T}no
" >&6; }
5265 test -n "$CXX" && break
5268 if test -z "$CXX"; then
5270 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5272 # Extract the first word of "$ac_prog", so it can be a program name with args.
5273 set dummy $ac_prog; ac_word=$2
5274 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5275 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5276 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5277 echo $ECHO_N "(cached
) $ECHO_C" >&6
5279 if test -n "$ac_ct_CXX"; then
5280 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_prog_ac_ct_CXX="$ac_prog"
5290 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5299 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5300 if test -n "$ac_ct_CXX"; then
5301 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5302 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5304 { echo "$as_me:$LINENO: result
: no
" >&5
5305 echo "${ECHO_T}no
" >&6; }
5309 test -n "$ac_ct_CXX" && break
5312 if test "x
$ac_ct_CXX" = x; then
5315 case $cross_compiling:$ac_tool_warned in
5317 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5318 whose name does not start with the
host triplet. If you think this
5319 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5320 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5321 whose name does not start with the
host triplet. If you think this
5322 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5323 ac_tool_warned=yes ;;
5331 # Provide some information about the compiler.
5332 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5333 ac_compiler=`set X $ac_compile; echo $2`
5334 { (ac_try="$ac_compiler --version >&5"
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_compiler --version >&5") 2>&5
5342 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5343 (exit $ac_status); }
5344 { (ac_try="$ac_compiler -v >&5"
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_compiler -v >&5") 2>&5
5352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5353 (exit $ac_status); }
5354 { (ac_try="$ac_compiler -V >&5"
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_compiler -V >&5") 2>&5
5362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5363 (exit $ac_status); }
5365 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5366 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5367 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5368 echo $ECHO_N "(cached
) $ECHO_C" >&6
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_cxx_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
5407 echo "$as_me: failed program was
:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5417 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5418 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5419 GXX=`test $ac_compiler_gnu = yes && echo yes`
5420 ac_test_CXXFLAGS=${CXXFLAGS+set}
5421 ac_save_CXXFLAGS=$CXXFLAGS
5422 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5423 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5424 if test "${ac_cv_prog_cxx_g+set}" = set; then
5425 echo $ECHO_N "(cached
) $ECHO_C" >&6
5427 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5428 ac_cxx_werror_flag=yes
5431 cat >conftest.$ac_ext <<_ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_compile") 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5459 (exit $ac_status); } && {
5460 test -z "$ac_cxx_werror_flag" ||
5461 test ! -s conftest.err
5462 } && test -s conftest.$ac_objext; then
5463 ac_cv_prog_cxx_g=yes
5465 echo "$as_me: failed program was
:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5493 grep -v '^ *+' conftest.er1 >conftest.err
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_cxx_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5503 echo "$as_me: failed program was
:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5508 cat >conftest.$ac_ext <<_ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5523 rm -f conftest.$ac_objext
5524 if { (ac_try="$ac_compile"
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5532 grep -v '^ *+' conftest.er1 >conftest.err
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_cxx_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5540 ac_cv_prog_cxx_g=yes
5542 echo "$as_me: failed program was
:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5557 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5558 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5559 if test "$ac_test_CXXFLAGS" = set; then
5560 CXXFLAGS=$ac_save_CXXFLAGS
5561 elif test $ac_cv_prog_cxx_g = yes; then
5562 if test "$GXX" = yes; then
5568 if test "$GXX" = yes; then
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
5581 ac_cpp='$CPP $CPPFLAGS'
5582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5585 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5586 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5587 # On Suns, sometimes $CPP names a directory.
5588 if test -n "$CPP" && test -d "$CPP"; then
5591 if test -z "$CPP"; then
5592 if test "${ac_cv_prog_CPP+set}" = set; then
5593 echo $ECHO_N "(cached
) $ECHO_C" >&6
5595 # Double quotes because CPP needs to be expanded
5596 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5599 for ac_c_preproc_warn_flag in '' yes
5601 # Use a header file that comes with gcc, so configuring glibc
5602 # with a fresh cross-compiler works.
5603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5604 # <limits.h> exists even on freestanding compilers.
5605 # On the NeXT, cc -E runs the code through the compiler's parser,
5606 # not just through cpp. "Syntax error
" is here to catch this case.
5607 cat >conftest.$ac_ext <<_ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5614 # include <limits.h>
5616 # include <assert.h>
5620 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5628 grep -v '^ *+' conftest.er1 >conftest.err
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5632 (exit $ac_status); } >/dev/null && {
5633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5638 echo "$as_me: failed program was
:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 # Broken: fails on valid input.
5645 rm -f conftest.err conftest.$ac_ext
5647 # OK, works on sane cases. Now check whether nonexistent headers
5648 # can be detected and how.
5649 cat >conftest.$ac_ext <<_ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #include <ac_nonexistent.h>
5657 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5665 grep -v '^ *+' conftest.er1 >conftest.err
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5669 (exit $ac_status); } >/dev/null && {
5670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5673 # Broken: success on invalid input.
5676 echo "$as_me: failed program was
:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 # Passes both tests.
5684 rm -f conftest.err conftest.$ac_ext
5687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5688 rm -f conftest.err conftest.$ac_ext
5689 if $ac_preproc_ok; then
5701 { echo "$as_me:$LINENO: result
: $CPP" >&5
5702 echo "${ECHO_T}$CPP" >&6; }
5704 for ac_c_preproc_warn_flag in '' yes
5706 # Use a header file that comes with gcc, so configuring glibc
5707 # with a fresh cross-compiler works.
5708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5709 # <limits.h> exists even on freestanding compilers.
5710 # On the NeXT, cc -E runs the code through the compiler's parser,
5711 # not just through cpp. "Syntax error
" is here to catch this case.
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5719 # include <limits.h>
5721 # include <assert.h>
5725 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5733 grep -v '^ *+' conftest.er1 >conftest.err
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5737 (exit $ac_status); } >/dev/null && {
5738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5739 test ! -s conftest.err
5743 echo "$as_me: failed program was
:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5746 # Broken: fails on valid input.
5750 rm -f conftest.err conftest.$ac_ext
5752 # OK, works on sane cases. Now check whether nonexistent headers
5753 # can be detected and how.
5754 cat >conftest.$ac_ext <<_ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5760 #include <ac_nonexistent.h>
5762 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5770 grep -v '^ *+' conftest.er1 >conftest.err
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5774 (exit $ac_status); } >/dev/null && {
5775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5776 test ! -s conftest.err
5778 # Broken: success on invalid input.
5781 echo "$as_me: failed program was
:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 # Passes both tests.
5789 rm -f conftest.err conftest.$ac_ext
5792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5793 rm -f conftest.err conftest.$ac_ext
5794 if $ac_preproc_ok; then
5797 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5798 See \
`config.log' for more details." >&5
5799 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5800 See \`config.log
' for more details." >&2;}
5801 { (exit 1); exit 1; }; }
5805 ac_cpp='$CPP $CPPFLAGS'
5806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5807 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811 ac_cpp='$CXXCPP $CPPFLAGS'
5812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5813 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5815 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5816 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5817 if test -z "$CXXCPP"; then
5818 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 # Double quotes because CXXCPP needs to be expanded
5822 for CXXCPP in "$CXX -E" "/lib/cpp"
5825 for ac_cxx_preproc_warn_flag in '' yes
5827 # Use a header file that comes with gcc, so configuring glibc
5828 # with a fresh cross-compiler works.
5829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5830 # <limits.h> exists even on freestanding compilers.
5831 # On the NeXT, cc -E runs the code through the compiler's parser
,
5832 # not just through cpp. "Syntax error" is here to catch this case.
5833 cat >conftest.
$ac_ext <<_ACEOF
5836 cat confdefs.h
>>conftest.
$ac_ext
5837 cat >>conftest.
$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5840 # include <limits.h>
5842 # include <assert.h>
5846 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5854 grep -v '^ *+' conftest.er1 >conftest.err
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev/null && {
5859 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5860 test ! -s conftest.err
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 # Broken: fails on valid input.
5871 rm -f conftest.err conftest.$ac_ext
5873 # OK, works on sane cases. Now check whether nonexistent headers
5874 # can be detected and how.
5875 cat >conftest.$ac_ext <<_ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <ac_nonexistent.h>
5883 if { (ac_try="$ac_cpp conftest.$ac_ext"
5885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5886 *) ac_try_echo
=$ac_try;;
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5891 grep -v '^ *+' conftest.er1
>conftest.err
5893 cat conftest.err
>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } >/dev
/null
&& {
5896 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5897 test ! -s conftest.err
5899 # Broken: success on invalid input.
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.
$ac_ext >&5
5905 # Passes both tests.
5910 rm -f conftest.err conftest.
$ac_ext
5913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5914 rm -f conftest.err conftest.
$ac_ext
5915 if $ac_preproc_ok; then
5920 ac_cv_prog_CXXCPP
=$CXXCPP
5923 CXXCPP
=$ac_cv_prog_CXXCPP
5925 ac_cv_prog_CXXCPP
=$CXXCPP
5927 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5928 echo "${ECHO_T}$CXXCPP" >&6; }
5930 for ac_cxx_preproc_warn_flag
in '' yes
5932 # Use a header file that comes with gcc, so configuring glibc
5933 # with a fresh cross-compiler works.
5934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5935 # <limits.h> exists even on freestanding compilers.
5936 # On the NeXT, cc -E runs the code through the compiler's parser,
5937 # not just through cpp. "Syntax error" is here to catch this case.
5938 cat >conftest.
$ac_ext <<_ACEOF
5941 cat confdefs.h
>>conftest.
$ac_ext
5942 cat >>conftest.
$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5945 # include <limits.h>
5947 # include <assert.h>
5951 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } >/dev/null && {
5964 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5965 test ! -s conftest.err
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 # Broken: fails on valid input.
5976 rm -f conftest.err conftest.$ac_ext
5978 # OK, works on sane cases. Now check whether nonexistent headers
5979 # can be detected and how.
5980 cat >conftest.$ac_ext <<_ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <ac_nonexistent.h>
5988 if { (ac_try="$ac_cpp conftest.$ac_ext"
5990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5991 *) ac_try_echo
=$ac_try;;
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5996 grep -v '^ *+' conftest.er1
>conftest.err
5998 cat conftest.err
>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } >/dev
/null
&& {
6001 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6002 test ! -s conftest.err
6004 # Broken: success on invalid input.
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.
$ac_ext >&5
6010 # Passes both tests.
6015 rm -f conftest.err conftest.
$ac_ext
6018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6019 rm -f conftest.err conftest.
$ac_ext
6020 if $ac_preproc_ok; then
6023 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6024 See \`config.log' for more details." >&5
6025 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6026 See \`config.log' for more details." >&2;}
6027 { (exit 1); exit 1; }; }
6031 ac_cpp
='$CPP $CPPFLAGS'
6032 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6036 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6037 # the developers regenerating the configure script don't have to install libtool.
6038 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6039 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6040 if test "${ac_cv_path_SED+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6044 for ac_i
in 1 2 3 4 5 6 7; do
6045 ac_script
="$ac_script$as_nl$ac_script"
6047 echo "$ac_script" |
sed 99q
>conftest.
sed
6048 $as_unset ac_script || ac_script
=
6049 # Extract the first word of "sed gsed" to use in msg output
6050 if test -z "$SED"; then
6051 set dummy
sed gsed
; ac_prog_name
=$2
6052 if test "${ac_cv_path_SED+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 ac_path_SED_found
=false
6056 # Loop through the user's path and test for each of PROGNAME-LIST
6057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir
=.
6062 for ac_prog
in sed gsed
; do
6063 for ac_exec_ext
in '' $ac_executable_extensions; do
6064 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6065 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6066 # Check for GNU ac_path_SED and select it if it is found.
6067 # Check for GNU $ac_path_SED
6068 case `"$ac_path_SED" --version 2>&1` in
6070 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6073 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6076 cat "conftest.in" "conftest.in" >"conftest.tmp"
6077 mv "conftest.tmp" "conftest.in"
6078 cp "conftest.in" "conftest.nl"
6079 echo '' >> "conftest.nl"
6080 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6081 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6082 ac_count
=`expr $ac_count + 1`
6083 if test $ac_count -gt ${ac_path_SED_max-0}; then
6084 # Best one so far, save it but keep looking for a better one
6085 ac_cv_path_SED
="$ac_path_SED"
6086 ac_path_SED_max
=$ac_count
6088 # 10*(2^10) chars as input seems more than enough
6089 test $ac_count -gt 10 && break
6091 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6095 $ac_path_SED_found && break 3
6105 SED
="$ac_cv_path_SED"
6106 if test -z "$SED"; then
6107 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6108 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6109 { (exit 1); exit 1; }; }
6117 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6118 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6119 SED
="$ac_cv_path_SED"
6122 { echo "$as_me:$LINENO: checking for egrep" >&5
6123 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6124 if test "${ac_cv_prog_egrep+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6128 then ac_cv_prog_egrep
='grep -E'
6129 else ac_cv_prog_egrep
='egrep'
6132 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6133 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6134 EGREP
=$ac_cv_prog_egrep
6138 # Check whether --with-gnu-ld was given.
6139 if test "${with_gnu_ld+set}" = set; then
6140 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6146 if test "$GCC" = yes; then
6147 # Check if gcc -print-prog-name=ld gives a path.
6148 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6149 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6152 # gcc leaves a trailing carriage return which upsets mingw
6153 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6155 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6158 # Accept absolute paths.
6160 re_direlt
='/[^/][^/]*/\.\./'
6161 # Canonicalize the pathname of ld
6162 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6163 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6164 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6166 test -z "$LD" && LD
="$ac_prog"
6169 # If it fails, then pretend we aren't using GCC.
6173 # If it is relative, then search for the first ld in PATH.
6177 elif test "$with_gnu_ld" = yes; then
6178 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6179 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6181 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6182 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6184 if test "${lt_cv_path_LD+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 if test -z "$LD"; then
6188 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6189 for ac_dir
in $PATH; do
6191 test -z "$ac_dir" && ac_dir
=.
6192 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6193 lt_cv_path_LD
="$ac_dir/$ac_prog"
6194 # Check to see if the program is GNU ld. I'd rather use --version,
6195 # but apparently some variants of GNU ld only accept -v.
6196 # Break only if it was the GNU/non-GNU ld that we prefer.
6197 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6198 *GNU
* |
*'with BFD'*)
6199 test "$with_gnu_ld" != no
&& break
6202 test "$with_gnu_ld" != yes && break
6209 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6214 if test -n "$LD"; then
6215 { echo "$as_me:$LINENO: result: $LD" >&5
6216 echo "${ECHO_T}$LD" >&6; }
6218 { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6221 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6222 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6223 { (exit 1); exit 1; }; }
6224 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6225 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6226 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6230 case `$LD -v 2>&1 </dev/null` in
6231 *GNU
* |
*'with BFD'*)
6232 lt_cv_prog_gnu_ld
=yes
6235 lt_cv_prog_gnu_ld
=no
6239 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6240 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6241 with_gnu_ld
=$lt_cv_prog_gnu_ld
6244 for ac_prog
in gawk mawk nawk
awk
6246 # Extract the first word of "$ac_prog", so it can be a program name with args.
6247 set dummy
$ac_prog; ac_word
=$2
6248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6250 if test "${ac_cv_prog_AWK+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 if test -n "$AWK"; then
6254 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6260 test -z "$as_dir" && as_dir
=.
6261 for ac_exec_ext
in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_AWK
="$ac_prog"
6264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 if test -n "$AWK"; then
6275 { echo "$as_me:$LINENO: result: $AWK" >&5
6276 echo "${ECHO_T}$AWK" >&6; }
6278 { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6283 test -n "$AWK" && break
6286 # Find a good install program. We prefer a C program (faster),
6287 # so one script is as good as another. But avoid the broken or
6288 # incompatible versions:
6289 # SysV /etc/install, /usr/sbin/install
6290 # SunOS /usr/etc/install
6291 # IRIX /sbin/install
6293 # AmigaOS /C/install, which installs bootblocks on floppy discs
6294 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6295 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6296 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6297 # OS/2's system install, which has a completely different semantic
6298 # ./install, which can be erroneously created by make from ./install.sh.
6299 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6300 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6301 if test -z "$INSTALL"; then
6302 if test "${ac_cv_path_install+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6309 test -z "$as_dir" && as_dir
=.
6310 # Account for people who put trailing slashes in PATH elements.
6312 .
/ | .
// |
/cC
/* | \
6313 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6314 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6317 # OSF1 and SCO ODT 3.0 have their own names for install.
6318 # Don't use installbsd from OSF since it installs stuff as root
6320 for ac_prog
in ginstall scoinst
install; do
6321 for ac_exec_ext
in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6323 if test $ac_prog = install &&
6324 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6325 # AIX install. It has an incompatible calling convention.
6327 elif test $ac_prog = install &&
6328 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6329 # program-specific install script used by HP pwplus--don't use.
6332 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6345 if test "${ac_cv_path_install+set}" = set; then
6346 INSTALL
=$ac_cv_path_install
6348 # As a last resort, use the slow shell script. Don't cache a
6349 # value for INSTALL within a source directory, because that will
6350 # break other packages using the cache if that directory is
6351 # removed, or if the value is a relative name.
6352 INSTALL
=$ac_install_sh
6355 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6356 echo "${ECHO_T}$INSTALL" >&6; }
6358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6359 # It thinks the first close brace ends the variable substitution.
6360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6364 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6366 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6369 if test "$LN_S" = "ln -s"; then
6370 { echo "$as_me:$LINENO: result: yes" >&5
6371 echo "${ECHO_T}yes" >&6; }
6373 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6374 echo "${ECHO_T}no, using $LN_S" >&6; }
6377 if test -n "$ac_tool_prefix"; then
6378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6379 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6382 if test "${ac_cv_prog_RANLIB+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 if test -n "$RANLIB"; then
6386 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir
=.
6393 for ac_exec_ext
in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 RANLIB
=$ac_cv_prog_RANLIB
6406 if test -n "$RANLIB"; then
6407 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6408 echo "${ECHO_T}$RANLIB" >&6; }
6410 { echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6; }
6416 if test -z "$ac_cv_prog_RANLIB"; then
6417 ac_ct_RANLIB
=$RANLIB
6418 # Extract the first word of "ranlib", so it can be a program name with args.
6419 set dummy ranlib
; ac_word
=$2
6420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6422 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 if test -n "$ac_ct_RANLIB"; then
6426 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6432 test -z "$as_dir" && as_dir
=.
6433 for ac_exec_ext
in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6446 if test -n "$ac_ct_RANLIB"; then
6447 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6448 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6450 { echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6; }
6454 if test "x$ac_ct_RANLIB" = x
; then
6457 case $cross_compiling:$ac_tool_warned in
6459 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6460 whose name does not start with the host triplet. If you think this
6461 configuration is useful to you, please write to autoconf@gnu.org." >&5
6462 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6463 whose name does not start with the host triplet. If you think this
6464 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6465 ac_tool_warned
=yes ;;
6467 RANLIB
=$ac_ct_RANLIB
6470 RANLIB
="$ac_cv_prog_RANLIB"
6473 { echo "$as_me:$LINENO: checking for GNU make" >&5
6474 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6475 if test "${GNU_MAKE+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 GNU_MAKE
='Not Found' ;
6479 GNU_MAKE_VERSION_MAJOR
=0 ;
6480 GNU_MAKE_VERSION_MINOR
=0 ;
6481 for a
in make gmake gnumake
; do
6482 if test -z "$a" ; then continue ; fi ;
6483 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6485 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6486 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6492 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6493 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6494 if test "x$GNU_MAKE" = "xNot Found" ; then
6495 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6496 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6497 { (exit 1); exit 1; }; }
6504 if test "x$with_gnu_ld" = "xyes" ; then
6509 # Extract the first word of "grep", so it can be a program name with args.
6510 set dummy
grep; ac_word
=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_path_GREP+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir
=.
6526 for ac_exec_ext
in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
6540 GREP
=$ac_cv_path_GREP
6541 if test -n "$GREP"; then
6542 { echo "$as_me:$LINENO: result: $GREP" >&5
6543 echo "${ECHO_T}$GREP" >&6; }
6545 { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6550 # Extract the first word of "ar", so it can be a program name with args.
6551 set dummy
ar; ac_word
=$2
6552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554 if test "${ac_cv_path_AR+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir
=.
6567 for ac_exec_ext
in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 test -z "$ac_cv_path_AR" && ac_cv_path_AR
=":"
6582 if test -n "$AR"; then
6583 { echo "$as_me:$LINENO: result: $AR" >&5
6584 echo "${ECHO_T}$AR" >&6; }
6586 { echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6; }
6591 # Extract the first word of "find", so it can be a program name with args.
6592 set dummy
find; ac_word
=$2
6593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595 if test "${ac_cv_path_FIND+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6607 test -z "$as_dir" && as_dir
=.
6608 for ac_exec_ext
in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
6622 FIND
=$ac_cv_path_FIND
6623 if test -n "$FIND"; then
6624 { echo "$as_me:$LINENO: result: $FIND" >&5
6625 echo "${ECHO_T}$FIND" >&6; }
6627 { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6632 # Extract the first word of "compress", so it can be a program name with args.
6633 set dummy
compress; ac_word
=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_path_COMPRESS+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
6644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir
=.
6649 for ac_exec_ext
in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
6663 COMPRESS
=$ac_cv_path_COMPRESS
6664 if test -n "$COMPRESS"; then
6665 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6666 echo "${ECHO_T}$COMPRESS" >&6; }
6668 { echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6; }
6673 # Extract the first word of "basename", so it can be a program name with args.
6674 set dummy
basename; ac_word
=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_path_BASENAME+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
6685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir
=.
6690 for ac_exec_ext
in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
6693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
6704 BASENAME
=$ac_cv_path_BASENAME
6705 if test -n "$BASENAME"; then
6706 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6707 echo "${ECHO_T}$BASENAME" >&6; }
6709 { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6714 # Extract the first word of "id", so it can be a program name with args.
6715 set dummy id
; ac_word
=$2
6716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718 if test "${ac_cv_path_ID+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
6726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir
=.
6731 for ac_exec_ext
in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
6746 if test -n "$ID"; then
6747 { echo "$as_me:$LINENO: result: $ID" >&5
6748 echo "${ECHO_T}$ID" >&6; }
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6755 # Extract the first word of "dirname", so it can be a program name with args.
6756 set dummy
dirname; ac_word
=$2
6757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6759 if test "${ac_cv_path_DIRNAME+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
6767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6771 test -z "$as_dir" && as_dir
=.
6772 for ac_exec_ext
in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
6786 DIRNAME
=$ac_cv_path_DIRNAME
6787 if test -n "$DIRNAME"; then
6788 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6789 echo "${ECHO_T}$DIRNAME" >&6; }
6791 { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6796 # Extract the first word of "sh", so it can be a program name with args.
6797 set dummy sh
; ac_word
=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_path_SHELL+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
6808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir
=.
6813 for ac_exec_ext
in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
6827 SHELL
=$ac_cv_path_SHELL
6828 if test -n "$SHELL"; then
6829 { echo "$as_me:$LINENO: result: $SHELL" >&5
6830 echo "${ECHO_T}$SHELL" >&6; }
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6837 # Extract the first word of "ln", so it can be a program name with args.
6838 set dummy
ln; ac_word
=$2
6839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841 if test "${ac_cv_path_LN+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
6849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6853 test -z "$as_dir" && as_dir
=.
6854 for ac_exec_ext
in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
6869 if test -n "$LN"; then
6870 { echo "$as_me:$LINENO: result: $LN" >&5
6871 echo "${ECHO_T}$LN" >&6; }
6873 { echo "$as_me:$LINENO: result: no" >&5
6874 echo "${ECHO_T}no" >&6; }
6878 # Extract the first word of "dot", so it can be a program name with args.
6879 set dummy dot
; ac_word
=$2
6880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882 if test "${ac_cv_path_DOT+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
6890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6894 test -z "$as_dir" && as_dir
=.
6895 for ac_exec_ext
in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
6898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
6910 if test -n "$DOT"; then
6911 { echo "$as_me:$LINENO: result: $DOT" >&5
6912 echo "${ECHO_T}$DOT" >&6; }
6914 { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6919 # Extract the first word of "strip", so it can be a program name with args.
6920 set dummy strip
; ac_word
=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_path_STRIP+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir
=.
6936 for ac_exec_ext
in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP
=":"
6950 STRIP
=$ac_cv_path_STRIP
6951 if test -n "$STRIP"; then
6952 { echo "$as_me:$LINENO: result: $STRIP" >&5
6953 echo "${ECHO_T}$STRIP" >&6; }
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6960 # Extract the first word of "wget", so it can be a program name with args.
6961 set dummy wget
; ac_word
=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_WGET+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
6972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6976 test -z "$as_dir" && as_dir
=.
6977 for ac_exec_ext
in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
6991 WGET
=$ac_cv_path_WGET
6992 if test -n "$WGET"; then
6993 { echo "$as_me:$LINENO: result: $WGET" >&5
6994 echo "${ECHO_T}$WGET" >&6; }
6996 { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
7001 if test "${WGET}" != ":" ; then
7004 # Extract the first word of "fetch", so it can be a program name with args.
7005 set dummy fetch
; ac_word
=$2
7006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008 if test "${ac_cv_path_FETCH+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir
=.
7021 for ac_exec_ext
in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7035 FETCH
=$ac_cv_path_FETCH
7036 if test -n "$FETCH"; then
7037 { echo "$as_me:$LINENO: result: $FETCH" >&5
7038 echo "${ECHO_T}$FETCH" >&6; }
7040 { echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6; }
7053 ac_cpp
='$CPP $CPPFLAGS'
7054 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7060 # We used to check for pthread.h first, but this fails if pthread.h
7061 # requires special compiler flags (e.g. on True64 or Sequent).
7062 # It gets checked for in the link test anyway.
7064 # First of all, check if the user has set any of the PTHREAD_LIBS,
7065 # etcetera environment variables, and if threads linking works using
7067 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
7068 save_CFLAGS
="$CFLAGS"
7069 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7071 LIBS
="$PTHREAD_LIBS $LIBS"
7072 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7073 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7074 cat >conftest.
$ac_ext <<_ACEOF
7077 cat confdefs.h
>>conftest.
$ac_ext
7078 cat >>conftest.
$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7081 /* Override any GCC internal prototype to avoid an error.
7082 Use char because int might match the return type of a GCC
7083 builtin and then its argument prototype would still apply. */
7087 char pthread_join ();
7091 return pthread_join ();
7096 rm -f conftest.
$ac_objext conftest
$ac_exeext
7097 if { (ac_try
="$ac_link"
7099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103 (eval "$ac_link") 2>conftest.er1
7105 grep -v '^ *+' conftest.er1 >conftest.err
7107 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && {
7110 test -z "$ac_c_werror_flag" ||
7111 test ! -s conftest.err
7112 } && test -s conftest$ac_exeext &&
7113 $as_test_x conftest$ac_exeext; then
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7123 conftest$ac_exeext conftest.$ac_ext
7124 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7125 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7126 if test x"$acx_pthread_ok" = xno; then
7131 CFLAGS="$save_CFLAGS"
7134 # We must check for the threads library under a number of different
7135 # names; the ordering is very important because some systems
7136 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7137 # libraries is broken (non-POSIX).
7139 # Create a list of thread flags to try. Items starting with a "-" are
7140 # C compiler flags, and other items are library names, except for "none"
7141 # which indicates that we try without any flags at all, and "pthread-config"
7142 # which is a program returning the flags for the Pth emulation library.
7144 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7146 # The ordering *is* (sometimes) important. Some notes on the
7147 # individual items follow:
7149 # pthreads: AIX (must check this before -lpthread)
7150 # none: in case threads are in libc; should be tried before -Kthread and
7151 # other compiler flags to prevent continual compiler warnings
7152 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7153 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7154 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7155 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7156 # -pthreads: Solaris/gcc
7157 # -mthreads: Mingw32/gcc, Lynx/gcc
7158 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7159 # doesn't hurt to check since this sometimes defines pthreads too;
7160 # also defines -D_REENTRANT)
7161 # ... -mt is also the pthreads flag for HP/aCC
7162 # pthread: Linux, etcetera
7163 # --thread-safe: KAI C++
7164 # pthread-config: use pthread-config program (for GNU Pth library)
7166 case "${host_cpu}-${host_os}" in
7169 # On Solaris (at least, for some versions), libc contains stubbed
7170 # (non-functional) versions of the pthreads routines, so link-based
7171 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7172 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7173 # a function called by this macro, so we could check for that, but
7174 # who knows whether they'll stub that too in a future libc.) So,
7175 # we'll just look for -pthreads and -lpthread first:
7177 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7181 if test x"$acx_pthread_ok" = xno; then
7182 for flag in $acx_pthread_flags; do
7186 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7187 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7191 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7192 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7193 PTHREAD_CFLAGS="$flag"
7197 # Extract the first word of "pthread-config", so it can be a program name with args.
7198 set dummy pthread-config; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 if test -n "$acx_pthread_config"; then
7205 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_acx_pthread_config="yes"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7225 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7226 if test -n "$acx_pthread_config"; then
7227 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7228 echo "${ECHO_T}$acx_pthread_config" >&6; }
7230 { echo "$as_me:$LINENO: result: no" >&5
7231 echo "${ECHO_T}no" >&6; }
7235 if test x"$acx_pthread_config" = xno; then continue; fi
7236 PTHREAD_CFLAGS="`pthread-config
--cflags`"
7237 PTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
7241 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7242 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7243 PTHREAD_LIBS="-l$flag"
7248 save_CFLAGS="$CFLAGS"
7249 LIBS="$PTHREAD_LIBS $LIBS"
7250 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7252 # Check for various functions. We must include pthread.h,
7253 # since some functions may be macros. (On the Sequent, we
7254 # need a special flag -Kthread to make this header compile.)
7255 # We check for pthread_join because it is in -lpthread on IRIX
7256 # while pthread_create is in libc. We check for pthread_attr_init
7257 # due to DEC craziness with -lpthreads. We check for
7258 # pthread_cleanup_push because it is one of the few pthread
7259 # functions on Solaris that doesn't have a non-functional libc stub.
7260 # We try pthread_create on general principles.
7261 cat >conftest.$ac_ext <<_ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 #include <pthread.h>
7271 pthread_t th; pthread_join(th, 0);
7272 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7273 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (ac_try="$ac_link"
7281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7282 *) ac_try_echo
=$ac_try;;
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_link") 2>conftest.er1
7287 grep -v '^ *+' conftest.er1
>conftest.err
7289 cat conftest.err
>&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest
$ac_exeext &&
7295 $as_test_x conftest
$ac_exeext; then
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.
$ac_ext >&5
7304 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7305 conftest
$ac_exeext conftest.
$ac_ext
7308 CFLAGS
="$save_CFLAGS"
7310 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7311 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7312 if test "x$acx_pthread_ok" = xyes
; then
7321 # Various other checks:
7322 if test "x$acx_pthread_ok" = xyes
; then
7324 LIBS
="$PTHREAD_LIBS $LIBS"
7325 save_CFLAGS
="$CFLAGS"
7326 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7328 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7329 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7330 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7332 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7333 cat >conftest.
$ac_ext <<_ACEOF
7336 cat confdefs.h
>>conftest.
$ac_ext
7337 cat >>conftest.
$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 #include <pthread.h>
7343 int attr=$attr; return attr;
7348 rm -f conftest.
$ac_objext conftest
$ac_exeext
7349 if { (ac_try
="$ac_link"
7351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_link") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest$ac_exeext &&
7365 $as_test_x conftest$ac_exeext; then
7366 attr_name=$attr; break
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7375 conftest$ac_exeext conftest.$ac_ext
7377 { echo "$as_me:$LINENO: result: $attr_name" >&5
7378 echo "${ECHO_T}$attr_name" >&6; }
7379 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7381 cat >>confdefs.h <<_ACEOF
7382 #define PTHREAD_CREATE_JOINABLE $attr_name
7387 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7388 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7390 case "${host_cpu}-${host_os}" in
7391 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7392 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7394 { echo "$as_me:$LINENO: result: ${flag}" >&5
7395 echo "${ECHO_T}${flag}" >&6; }
7396 if test "x$flag" != xno; then
7397 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7401 CFLAGS="$save_CFLAGS"
7403 # More AIX lossage: must compile with xlc_r or cc_r
7404 if test x"$GCC" != xyes; then
7405 for ac_prog in xlc_r cc_r
7407 # Extract the first word of "$ac_prog", so it can be a program name with args.
7408 set dummy $ac_prog; ac_word=$2
7409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 if test -n "$PTHREAD_CC"; then
7415 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_PTHREAD_CC="$ac_prog"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7435 if test -n "$PTHREAD_CC"; then
7436 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7437 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7439 { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7444 test -n "$PTHREAD_CC" && break
7446 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7459 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7460 if test x"$acx_pthread_ok" = xyes; then
7462 cat >>confdefs.h <<\_ACEOF
7463 #define HAVE_PTHREAD 1
7472 ac_cpp='$CPP $CPPFLAGS'
7473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7480 ac_cpp='$CPP $CPPFLAGS'
7481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7486 # Check whether --enable-dev-mode was given.
7487 if test "${enable_dev_mode+set}" = set; then
7488 enableval=$enable_dev_mode; case "${enableval}" in
7489 y|ye|yes) AST_DEVMODE=yes ;;
7490 n|no) AST_DEVMODE=no ;;
7491 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7492 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7493 { (exit 1); exit 1; }; } ;;
7499 # package option names should be in alphabetical order
7500 # by the --with option name, to make things easier for the users :-)
7503 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7504 ALSA_OPTION="asound"
7506 # Check whether --with-asound was given.
7507 if test "${with_asound+set}" = set; then
7508 withval=$with_asound;
7514 ALSA_MANDATORY="yes"
7517 ALSA_DIR="${withval}"
7518 ALSA_MANDATORY="yes"
7533 # Check whether --with-curl was given.
7534 if test "${with_curl+set}" = set; then
7541 CURL_MANDATORY="yes"
7544 CURL_DIR="${withval}"
7545 CURL_MANDATORY="yes"
7557 CURSES_DESCRIP="curses"
7558 CURSES_OPTION="curses"
7560 # Check whether --with-curses was given.
7561 if test "${with_curses+set}" = set; then
7562 withval=$with_curses;
7568 CURSES_MANDATORY="yes"
7571 CURSES_DIR="${withval}"
7572 CURSES_MANDATORY="yes"
7584 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7585 GNUTLS_OPTION="gnutls"
7587 # Check whether --with-gnutls was given.
7588 if test "${with_gnutls+set}" = set; then
7589 withval=$with_gnutls;
7595 GNUTLS_MANDATORY="yes"
7598 GNUTLS_DIR="${withval}"
7599 GNUTLS_MANDATORY="yes"
7614 # Check whether --with-gsm was given.
7615 if test "${with_gsm+set}" = set; then
7625 GSM_DIR="${withval}"
7638 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7639 IKSEMEL_OPTION="iksemel"
7641 # Check whether --with-iksemel was given.
7642 if test "${with_iksemel+set}" = set; then
7643 withval=$with_iksemel;
7649 IKSEMEL_MANDATORY="yes"
7652 IKSEMEL_DIR="${withval}"
7653 IKSEMEL_MANDATORY="yes"
7665 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7666 IMAP_TK_OPTION="imap"
7668 # Check whether --with-imap was given.
7669 if test "${with_imap+set}" = set; then
7676 IMAP_TK_MANDATORY="yes"
7679 IMAP_TK_DIR="${withval}"
7680 IMAP_TK_MANDATORY="yes"
7692 ISDNNET_DESCRIP="ISDN4Linux Library"
7693 ISDNNET_OPTION="isdnnet"
7695 # Check whether --with-isdnnet was given.
7696 if test "${with_isdnnet+set}" = set; then
7697 withval=$with_isdnnet;
7703 ISDNNET_MANDATORY="yes"
7706 ISDNNET_DIR="${withval}"
7707 ISDNNET_MANDATORY="yes"
7722 # Check whether --with-kde was given.
7723 if test "${with_kde+set}" = set; then
7733 KDE_DIR="${withval}"
7746 MISDN_DESCRIP="mISDN User Library"
7747 MISDN_OPTION="misdn"
7749 # Check whether --with-misdn was given.
7750 if test "${with_misdn+set}" = set; then
7751 withval=$with_misdn;
7757 MISDN_MANDATORY="yes"
7760 MISDN_DIR="${withval}"
7761 MISDN_MANDATORY="yes"
7773 NBS_DESCRIP="Network Broadcast Sound"
7776 # Check whether --with-nbs was given.
7777 if test "${with_nbs+set}" = set; then
7787 NBS_DIR="${withval}"
7800 NCURSES_DESCRIP="ncurses"
7801 NCURSES_OPTION="ncurses"
7803 # Check whether --with-ncurses was given.
7804 if test "${with_ncurses+set}" = set; then
7805 withval=$with_ncurses;
7811 NCURSES_MANDATORY="yes"
7814 NCURSES_DIR="${withval}"
7815 NCURSES_MANDATORY="yes"
7827 NETSNMP_DESCRIP="Net-SNMP"
7828 NETSNMP_OPTION="netsnmp"
7830 # Check whether --with-netsnmp was given.
7831 if test "${with_netsnmp+set}" = set; then
7832 withval=$with_netsnmp;
7838 NETSNMP_MANDATORY="yes"
7841 NETSNMP_DIR="${withval}"
7842 NETSNMP_MANDATORY="yes"
7857 # Check whether --with-newt was given.
7858 if test "${with_newt+set}" = set; then
7865 NEWT_MANDATORY="yes"
7868 NEWT_DIR="${withval}"
7869 NEWT_MANDATORY="yes"
7881 UNIXODBC_DESCRIP="unixODBC"
7882 UNIXODBC_OPTION="odbc"
7884 # Check whether --with-odbc was given.
7885 if test "${with_odbc+set}" = set; then
7892 UNIXODBC_MANDATORY="yes"
7895 UNIXODBC_DIR="${withval}"
7896 UNIXODBC_MANDATORY="yes"
7911 # Check whether --with-ogg was given.
7912 if test "${with_ogg+set}" = set; then
7922 OGG_DIR="${withval}"
7935 OSPTK_DESCRIP="OSP Toolkit"
7936 OSPTK_OPTION="osptk"
7938 # Check whether --with-osptk was given.
7939 if test "${with_osptk+set}" = set; then
7940 withval=$with_osptk;
7946 OSPTK_MANDATORY="yes"
7949 OSPTK_DIR="${withval}"
7950 OSPTK_MANDATORY="yes"
7962 OSS_DESCRIP="Open Sound System"
7965 # Check whether --with-oss was given.
7966 if test "${with_oss+set}" = set; then
7976 OSS_DIR="${withval}"
7992 # Check whether --with-popt was given.
7993 if test "${with_popt+set}" = set; then
8000 POPT_MANDATORY="yes"
8003 POPT_DIR="${withval}"
8004 POPT_MANDATORY="yes"
8016 PGSQL_DESCRIP="PostgreSQL"
8017 PGSQL_OPTION="postgres"
8019 # Check whether --with-postgres was given.
8020 if test "${with_postgres+set}" = set; then
8021 withval=$with_postgres;
8027 PGSQL_MANDATORY="yes"
8030 PGSQL_DIR="${withval}"
8031 PGSQL_MANDATORY="yes"
8043 PRI_DESCRIP="ISDN PRI"
8046 # Check whether --with-pri was given.
8047 if test "${with_pri+set}" = set; then
8057 PRI_DIR="${withval}"
8070 PWLIB_DESCRIP="PWlib"
8071 PWLIB_OPTION="pwlib"
8073 # Check whether --with-pwlib was given.
8074 if test "${with_pwlib+set}" = set; then
8075 withval=$with_pwlib;
8081 PWLIB_MANDATORY="yes"
8084 PWLIB_DIR="${withval}"
8085 PWLIB_MANDATORY="yes"
8097 OPENH323_DESCRIP="OpenH323"
8098 OPENH323_OPTION="h323"
8100 # Check whether --with-h323 was given.
8101 if test "${with_h323+set}" = set; then
8108 OPENH323_MANDATORY="yes"
8111 OPENH323_DIR="${withval}"
8112 OPENH323_MANDATORY="yes"
8127 # Check whether --with-qt was given.
8128 if test "${with_qt+set}" = set; then
8151 RADIUS_DESCRIP="Radius Client"
8152 RADIUS_OPTION="radius"
8154 # Check whether --with-radius was given.
8155 if test "${with_radius+set}" = set; then
8156 withval=$with_radius;
8162 RADIUS_MANDATORY="yes"
8165 RADIUS_DIR="${withval}"
8166 RADIUS_MANDATORY="yes"
8178 SPEEX_DESCRIP="Speex"
8179 SPEEX_OPTION="speex"
8181 # Check whether --with-speex was given.
8182 if test "${with_speex+set}" = set; then
8183 withval=$with_speex;
8189 SPEEX_MANDATORY="yes"
8192 SPEEX_DIR="${withval}"
8193 SPEEX_MANDATORY="yes"
8205 SQLITE_DESCRIP="SQLite"
8206 SQLITE_OPTION="sqlite"
8208 # Check whether --with-sqlite was given.
8209 if test "${with_sqlite+set}" = set; then
8210 withval=$with_sqlite;
8216 SQLITE_MANDATORY="yes"
8219 SQLITE_DIR="${withval}"
8220 SQLITE_MANDATORY="yes"
8232 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8233 SUPPSERV_OPTION="suppserv"
8235 # Check whether --with-suppserv was given.
8236 if test "${with_suppserv+set}" = set; then
8237 withval=$with_suppserv;
8243 SUPPSERV_MANDATORY="yes"
8246 SUPPSERV_DIR="${withval}"
8247 SUPPSERV_MANDATORY="yes"
8259 OPENSSL_DESCRIP="OpenSSL"
8260 OPENSSL_OPTION="ssl"
8262 # Check whether --with-ssl was given.
8263 if test "${with_ssl+set}" = set; then
8270 OPENSSL_MANDATORY="yes"
8273 OPENSSL_DIR="${withval}"
8274 OPENSSL_MANDATORY="yes"
8286 FREETDS_DESCRIP="FreeTDS"
8287 FREETDS_OPTION="tds"
8289 # Check whether --with-tds was given.
8290 if test "${with_tds+set}" = set; then
8297 FREETDS_MANDATORY="yes"
8300 FREETDS_DIR="${withval}"
8301 FREETDS_MANDATORY="yes"
8313 TERMCAP_DESCRIP="Termcap"
8314 TERMCAP_OPTION="termcap"
8316 # Check whether --with-termcap was given.
8317 if test "${with_termcap+set}" = set; then
8318 withval=$with_termcap;
8324 TERMCAP_MANDATORY="yes"
8327 TERMCAP_DIR="${withval}"
8328 TERMCAP_MANDATORY="yes"
8340 TINFO_DESCRIP="Term Info"
8341 TINFO_OPTION="tinfo"
8343 # Check whether --with-tinfo was given.
8344 if test "${with_tinfo+set}" = set; then
8345 withval=$with_tinfo;
8351 TINFO_MANDATORY="yes"
8354 TINFO_DIR="${withval}"
8355 TINFO_MANDATORY="yes"
8367 TONEZONE_DESCRIP="tonezone"
8368 TONEZONE_OPTION="tonezone"
8370 # Check whether --with-tonezone was given.
8371 if test "${with_tonezone+set}" = set; then
8372 withval=$with_tonezone;
8378 TONEZONE_MANDATORY="yes"
8381 TONEZONE_DIR="${withval}"
8382 TONEZONE_MANDATORY="yes"
8394 VORBIS_DESCRIP="Vorbis"
8395 VORBIS_OPTION="vorbis"
8397 # Check whether --with-vorbis was given.
8398 if test "${with_vorbis+set}" = set; then
8399 withval=$with_vorbis;
8405 VORBIS_MANDATORY="yes"
8408 VORBIS_DIR="${withval}"
8409 VORBIS_MANDATORY="yes"
8421 VPB_DESCRIP="Voicetronix API"
8424 # Check whether --with-vpb was given.
8425 if test "${with_vpb+set}" = set; then
8435 VPB_DIR="${withval}"
8451 # Check whether --with-z was given.
8452 if test "${with_z+set}" = set; then
8459 ZLIB_MANDATORY="yes"
8462 ZLIB_DIR="${withval}"
8463 ZLIB_MANDATORY="yes"
8475 ZAPTEL_DESCRIP="Zaptel"
8476 ZAPTEL_OPTION="zaptel"
8478 # Check whether --with-zaptel was given.
8479 if test "${with_zaptel+set}" = set; then
8480 withval=$with_zaptel;
8486 ZAPTEL_MANDATORY="yes"
8489 ZAPTEL_DIR="${withval}"
8490 ZAPTEL_MANDATORY="yes"
8502 # check for basic system features and functionality before
8503 # checking for package libraries
8505 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8506 # for constant arguments. Useless!
8507 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8508 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8509 if test "${ac_cv_working_alloca_h+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8522 char *p = (char *) alloca (2 * sizeof (int));
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529 if { (ac_try="$ac_link"
8531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8532 *) ac_try_echo
=$ac_try;;
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_link") 2>conftest.er1
8537 grep -v '^ *+' conftest.er1
>conftest.err
8539 cat conftest.err
>&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } && {
8542 test -z "$ac_c_werror_flag" ||
8543 test ! -s conftest.err
8544 } && test -s conftest
$ac_exeext &&
8545 $as_test_x conftest
$ac_exeext; then
8546 ac_cv_working_alloca_h
=yes
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.
$ac_ext >&5
8551 ac_cv_working_alloca_h
=no
8554 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8555 conftest
$ac_exeext conftest.
$ac_ext
8557 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8558 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8559 if test $ac_cv_working_alloca_h = yes; then
8561 cat >>confdefs.h
<<\_ACEOF
8562 #define HAVE_ALLOCA_H 1
8567 { echo "$as_me:$LINENO: checking for alloca" >&5
8568 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8569 if test "${ac_cv_func_alloca_works+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 cat >conftest.
$ac_ext <<_ACEOF
8575 cat confdefs.h
>>conftest.
$ac_ext
8576 cat >>conftest.
$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8579 # define alloca __builtin_alloca
8582 # include <malloc.h>
8583 # define alloca _alloca
8585 # ifdef HAVE_ALLOCA_H
8586 # include <alloca.h>
8591 # ifndef alloca /* predefined by HP cc +Olibcalls */
8602 char *p = (char *) alloca (1);
8608 rm -f conftest.
$ac_objext conftest
$ac_exeext
8609 if { (ac_try
="$ac_link"
8611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_link") 2>conftest.er1
8617 grep -v '^ *+' conftest.er1 >conftest.err
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } && {
8622 test -z "$ac_c_werror_flag" ||
8623 test ! -s conftest.err
8624 } && test -s conftest$ac_exeext &&
8625 $as_test_x conftest$ac_exeext; then
8626 ac_cv_func_alloca_works=yes
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_cv_func_alloca_works=no
8634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8635 conftest$ac_exeext conftest.$ac_ext
8637 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8638 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8640 if test $ac_cv_func_alloca_works = yes; then
8642 cat >>confdefs.h <<\_ACEOF
8643 #define HAVE_ALLOCA 1
8647 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8648 # that cause trouble. Some versions do not even contain alloca or
8649 # contain a buggy version. If you still want to use their alloca,
8650 # use ar to extract alloca.o from them instead of compiling alloca.c.
8652 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8654 cat >>confdefs.h <<\_ACEOF
8659 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
8660 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
8661 if test "${ac_cv_os_cray+set}" = set; then
8662 echo $ECHO_N "(cached
) $ECHO_C" >&6
8664 cat >conftest.$ac_ext <<_ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 #if defined CRAY && ! defined CRAY2
8677 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8678 $EGREP "webecray
" >/dev/null 2>&1; then
8686 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
8687 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8688 if test $ac_cv_os_cray = yes; then
8689 for ac_func in _getb67 GETB67 getb67; do
8690 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
8691 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
8692 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
8693 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
8694 echo $ECHO_N "(cached
) $ECHO_C" >&6
8696 cat >conftest.$ac_ext <<_ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8704 #define $ac_func innocuous_$ac_func
8706 /* System header to define __stub macros and hopefully few prototypes,
8707 which can conflict with char $ac_func (); below.
8708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 <limits.h> exists even on freestanding compilers. */
8712 # include <limits.h>
8714 # include <assert.h>
8719 /* Override any GCC internal prototype to avoid an error.
8720 Use char because int might match the return type of a GCC
8721 builtin and then its argument prototype would still apply. */
8726 /* The GNU C library defines this for functions which it implements
8727 to always fail with ENOSYS. Some functions are actually named
8728 something starting with __ and the normal name is an alias. */
8729 #if defined __stub_$ac_func || defined __stub___$ac_func
8741 rm -f conftest.$ac_objext conftest$ac_exeext
8742 if { (ac_try="$ac_link"
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8747 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8748 (eval "$ac_link") 2>conftest.er1
8750 grep -v '^ *+' conftest.er1 >conftest.err
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8754 (exit $ac_status); } && {
8755 test -z "$ac_c_werror_flag" ||
8756 test ! -s conftest.err
8757 } && test -s conftest$ac_exeext &&
8758 $as_test_x conftest$ac_exeext; then
8759 eval "$as_ac_var=yes"
8761 echo "$as_me: failed program was
:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8764 eval "$as_ac_var=no
"
8767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8768 conftest$ac_exeext conftest.$ac_ext
8770 ac_res=`eval echo '${'$as_ac_var'}'`
8771 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8772 echo "${ECHO_T}$ac_res" >&6; }
8773 if test `eval echo '${'$as_ac_var'}'` = yes; then
8775 cat >>confdefs.h <<_ACEOF
8776 #define CRAY_STACKSEG_END $ac_func
8785 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
8786 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
8787 if test "${ac_cv_c_stack_direction+set}" = set; then
8788 echo $ECHO_N "(cached
) $ECHO_C" >&6
8790 if test "$cross_compiling" = yes; then
8791 ac_cv_c_stack_direction=0
8793 cat >conftest.$ac_ext <<_ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 $ac_includes_default
8801 find_stack_direction ()
8803 static char *addr = 0;
8808 return find_stack_direction ();
8811 return (&dummy > addr) ? 1 : -1;
8817 return find_stack_direction () < 0;
8820 rm -f conftest$ac_exeext
8821 if { (ac_try="$ac_link"
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8827 (eval "$ac_link") 2>&5
8829 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8831 { (case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8836 (eval "$ac_try") 2>&5
8838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8839 (exit $ac_status); }; }; then
8840 ac_cv_c_stack_direction=1
8842 echo "$as_me: program exited with status
$ac_status" >&5
8843 echo "$as_me: failed program was
:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8847 ac_cv_c_stack_direction=-1
8849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8854 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
8855 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8857 cat >>confdefs.h <<_ACEOF
8858 #define STACK_DIRECTION $ac_cv_c_stack_direction
8870 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8871 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8872 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8873 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8874 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8875 echo $ECHO_N "(cached
) $ECHO_C" >&6
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 #include <sys/types.h>
8895 rm -f conftest.$ac_objext
8896 if { (ac_try="$ac_compile"
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8904 grep -v '^ *+' conftest.er1 >conftest.err
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8908 (exit $ac_status); } && {
8909 test -z "$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8911 } && test -s conftest.$ac_objext; then
8912 eval "$as_ac_Header=yes"
8914 echo "$as_me: failed program was
:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 eval "$as_ac_Header=no
"
8920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 ac_res=`eval echo '${'$as_ac_Header'}'`
8923 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8924 echo "${ECHO_T}$ac_res" >&6; }
8925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8926 cat >>confdefs.h <<_ACEOF
8927 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8930 ac_header_dirent=$ac_hdr; break
8934 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8935 if test $ac_header_dirent = dirent.h; then
8936 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8937 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8938 if test "${ac_cv_search_opendir+set}" = set; then
8939 echo $ECHO_N "(cached
) $ECHO_C" >&6
8941 ac_func_search_save_LIBS=$LIBS
8942 cat >conftest.$ac_ext <<_ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8949 /* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
8964 for ac_lib in '' dir; do
8965 if test -z "$ac_lib"; then
8966 ac_res="none required
"
8969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (ac_try="$ac_link"
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_link") 2>conftest.er1
8980 grep -v '^ *+' conftest.er1 >conftest.err
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8984 (exit $ac_status); } && {
8985 test -z "$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 } && test -s conftest$ac_exeext &&
8988 $as_test_x conftest$ac_exeext; then
8989 ac_cv_search_opendir=$ac_res
8991 echo "$as_me: failed program was
:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8999 if test "${ac_cv_search_opendir+set}" = set; then
9003 if test "${ac_cv_search_opendir+set}" = set; then
9006 ac_cv_search_opendir=no
9009 LIBS=$ac_func_search_save_LIBS
9011 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9012 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9013 ac_res=$ac_cv_search_opendir
9014 if test "$ac_res" != no; then
9015 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9020 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9021 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9022 if test "${ac_cv_search_opendir+set}" = set; then
9023 echo $ECHO_N "(cached
) $ECHO_C" >&6
9025 ac_func_search_save_LIBS=$LIBS
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9033 /* Override any GCC internal prototype to avoid an error.
9034 Use char because int might match the return type of a GCC
9035 builtin and then its argument prototype would still apply. */
9048 for ac_lib in '' x; do
9049 if test -z "$ac_lib"; then
9050 ac_res="none required
"
9053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (ac_try="$ac_link"
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_link") 2>conftest.er1
9064 grep -v '^ *+' conftest.er1 >conftest.err
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9068 (exit $ac_status); } && {
9069 test -z "$ac_c_werror_flag" ||
9070 test ! -s conftest.err
9071 } && test -s conftest$ac_exeext &&
9072 $as_test_x conftest$ac_exeext; then
9073 ac_cv_search_opendir=$ac_res
9075 echo "$as_me: failed program was
:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9083 if test "${ac_cv_search_opendir+set}" = set; then
9087 if test "${ac_cv_search_opendir+set}" = set; then
9090 ac_cv_search_opendir=no
9093 LIBS=$ac_func_search_save_LIBS
9095 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9096 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9097 ac_res=$ac_cv_search_opendir
9098 if test "$ac_res" != no; then
9099 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9105 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
9106 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
9107 if test "${ac_cv_header_stdc+set}" = set; then
9108 echo $ECHO_N "(cached
) $ECHO_C" >&6
9110 cat >conftest.$ac_ext <<_ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9129 rm -f conftest.$ac_objext
9130 if { (ac_try="$ac_compile"
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_compile") 2>conftest.er1
9138 grep -v '^ *+' conftest.er1 >conftest.err
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9142 (exit $ac_status); } && {
9143 test -z "$ac_c_werror_flag" ||
9144 test ! -s conftest.err
9145 } && test -s conftest.$ac_objext; then
9146 ac_cv_header_stdc=yes
9148 echo "$as_me: failed program was
:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 ac_cv_header_stdc=no
9154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156 if test $ac_cv_header_stdc = yes; then
9157 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9167 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9168 $EGREP "memchr
" >/dev/null 2>&1; then
9171 ac_cv_header_stdc=no
9177 if test $ac_cv_header_stdc = yes; then
9178 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9179 cat >conftest.$ac_ext <<_ACEOF
9182 cat confdefs.h >>conftest.$ac_ext
9183 cat >>conftest.$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9188 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9189 $EGREP "free
" >/dev/null 2>&1; then
9192 ac_cv_header_stdc=no
9198 if test $ac_cv_header_stdc = yes; then
9199 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9200 if test "$cross_compiling" = yes; then
9203 cat >conftest.$ac_ext <<_ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9211 #if ((' ' & 0x0FF) == 0x020)
9212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9215 # define ISLOWER(c) \
9216 (('a' <= (c) && (c) <= 'i') \
9217 || ('j' <= (c) && (c) <= 'r') \
9218 || ('s' <= (c) && (c) <= 'z'))
9219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9227 for (i = 0; i < 256; i++)
9228 if (XOR (islower (i), ISLOWER (i))
9229 || toupper (i) != TOUPPER (i))
9234 rm -f conftest$ac_exeext
9235 if { (ac_try="$ac_link"
9237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238 *) ac_try_echo=$ac_try;;
9240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9241 (eval "$ac_link") 2>&5
9243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9245 { (case "(($ac_try" in
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9250 (eval "$ac_try") 2>&5
9252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9253 (exit $ac_status); }; }; then
9256 echo "$as_me: program exited with status
$ac_status" >&5
9257 echo "$as_me: failed program was
:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9261 ac_cv_header_stdc=no
9263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9269 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
9270 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9271 if test $ac_cv_header_stdc = yes; then
9273 cat >>confdefs.h <<\_ACEOF
9274 #define STDC_HEADERS 1
9279 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
9280 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
9281 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9282 echo $ECHO_N "(cached
) $ECHO_C" >&6
9284 cat >conftest.$ac_ext <<_ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 #include <sys/types.h>
9291 #include <sys/wait.h>
9293 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9296 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9304 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9309 rm -f conftest.$ac_objext
9310 if { (ac_try="$ac_compile"
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9315 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9316 (eval "$ac_compile") 2>conftest.er1
9318 grep -v '^ *+' conftest.er1 >conftest.err
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9322 (exit $ac_status); } && {
9323 test -z "$ac_c_werror_flag" ||
9324 test ! -s conftest.err
9325 } && test -s conftest.$ac_objext; then
9326 ac_cv_header_sys_wait_h=yes
9328 echo "$as_me: failed program was
:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9331 ac_cv_header_sys_wait_h=no
9334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
9337 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9338 if test $ac_cv_header_sys_wait_h = yes; then
9340 cat >>confdefs.h <<\_ACEOF
9341 #define HAVE_SYS_WAIT_H 1
9369 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
9371 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9372 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9373 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9374 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9375 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9376 echo $ECHO_N "(cached
) $ECHO_C" >&6
9378 ac_res=`eval echo '${'$as_ac_Header'}'`
9379 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9380 echo "${ECHO_T}$ac_res" >&6; }
9382 # Is the header compilable?
9383 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9384 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9385 cat >conftest.$ac_ext <<_ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 $ac_includes_default
9392 #include <$ac_header>
9394 rm -f conftest.$ac_objext
9395 if { (ac_try="$ac_compile"
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_compile") 2>conftest.er1
9403 grep -v '^ *+' conftest.er1 >conftest.err
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest.$ac_objext; then
9411 ac_header_compiler=yes
9413 echo "$as_me: failed program was
:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_header_compiler=no
9419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9421 echo "${ECHO_T}$ac_header_compiler" >&6; }
9423 # Is the header present?
9424 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9425 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 #include <$ac_header>
9434 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9437 *) ac_try_echo=$ac_try;;
9439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9440 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9442 grep -v '^ *+' conftest.er1 >conftest.err
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9446 (exit $ac_status); } >/dev/null && {
9447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9448 test ! -s conftest.err
9450 ac_header_preproc=yes
9452 echo "$as_me: failed program was
:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9455 ac_header_preproc=no
9458 rm -f conftest.err conftest.$ac_ext
9459 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9460 echo "${ECHO_T}$ac_header_preproc" >&6; }
9462 # So? What about this header?
9463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9465 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9466 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9467 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9469 ac_header_preproc=yes
9472 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9473 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9474 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9475 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9476 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9477 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9478 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9479 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9480 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9482 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9483 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9487 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9488 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9489 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9490 echo $ECHO_N "(cached
) $ECHO_C" >&6
9492 eval "$as_ac_Header=\
$ac_header_preproc"
9494 ac_res=`eval echo '${'$as_ac_Header'}'`
9495 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9496 echo "${ECHO_T}$ac_res" >&6; }
9499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9500 cat >>confdefs.h <<_ACEOF
9501 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9509 # Check whether --enable-largefile was given.
9510 if test "${enable_largefile+set}" = set; then
9511 enableval=$enable_largefile;
9514 if test "$enable_largefile" != no; then
9516 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
9517 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
9518 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9519 echo $ECHO_N "(cached
) $ECHO_C" >&6
9521 ac_cv_sys_largefile_CC=no
9522 if test "$GCC" != yes; then
9525 # IRIX 6.2 and later do not support large files by default,
9526 # so use the C compiler's -n32 option if that helps.
9527 cat >conftest.$ac_ext <<_ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533 #include <sys/types.h>
9534 /* Check that off_t can represent 2**63 - 1 correctly.
9535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9536 since some C++ compilers masquerading as C compilers
9537 incorrectly reject 9223372036854775807. */
9538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9540 && LARGE_OFF_T % 2147483647 == 1)
9550 rm -f conftest.$ac_objext
9551 if { (ac_try="$ac_compile"
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_compile") 2>conftest.er1
9559 grep -v '^ *+' conftest.er1 >conftest.err
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9563 (exit $ac_status); } && {
9564 test -z "$ac_c_werror_flag" ||
9565 test ! -s conftest.err
9566 } && test -s conftest.$ac_objext; then
9569 echo "$as_me: failed program was
:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9575 rm -f core conftest.err conftest.$ac_objext
9577 rm -f conftest.$ac_objext
9578 if { (ac_try="$ac_compile"
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_compile") 2>conftest.er1
9586 grep -v '^ *+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9590 (exit $ac_status); } && {
9591 test -z "$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9593 } && test -s conftest.$ac_objext; then
9594 ac_cv_sys_largefile_CC=' -n32'; break
9596 echo "$as_me: failed program was
:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9602 rm -f core conftest.err conftest.$ac_objext
9606 rm -f conftest.$ac_ext
9609 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
9610 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9611 if test "$ac_cv_sys_largefile_CC" != no; then
9612 CC=$CC$ac_cv_sys_largefile_CC
9615 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
9616 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
9617 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9618 echo $ECHO_N "(cached
) $ECHO_C" >&6
9621 cat >conftest.$ac_ext <<_ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 #include <sys/types.h>
9628 /* Check that off_t can represent 2**63 - 1 correctly.
9629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9630 since some C++ compilers masquerading as C compilers
9631 incorrectly reject 9223372036854775807. */
9632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9634 && LARGE_OFF_T % 2147483647 == 1)
9644 rm -f conftest.$ac_objext
9645 if { (ac_try="$ac_compile"
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_compile") 2>conftest.er1
9653 grep -v '^ *+' conftest.er1 >conftest.err
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest.$ac_objext; then
9661 ac_cv_sys_file_offset_bits=no; break
9663 echo "$as_me: failed program was
:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 #define _FILE_OFFSET_BITS 64
9677 #include <sys/types.h>
9678 /* Check that off_t can represent 2**63 - 1 correctly.
9679 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9680 since some C++ compilers masquerading as C compilers
9681 incorrectly reject 9223372036854775807. */
9682 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9684 && LARGE_OFF_T % 2147483647 == 1)
9694 rm -f conftest.$ac_objext
9695 if { (ac_try="$ac_compile"
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_compile") 2>conftest.er1
9703 grep -v '^ *+' conftest.er1 >conftest.err
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9707 (exit $ac_status); } && {
9708 test -z "$ac_c_werror_flag" ||
9709 test ! -s conftest.err
9710 } && test -s conftest.$ac_objext; then
9711 ac_cv_sys_file_offset_bits=64; break
9713 echo "$as_me: failed program was
:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720 ac_cv_sys_file_offset_bits=unknown
9724 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
9725 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9726 case $ac_cv_sys_file_offset_bits in #(
9729 cat >>confdefs.h <<_ACEOF
9730 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9735 if test $ac_cv_sys_file_offset_bits = unknown; then
9736 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
9737 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
9738 if test "${ac_cv_sys_large_files+set}" = set; then
9739 echo $ECHO_N "(cached
) $ECHO_C" >&6
9742 cat >conftest.$ac_ext <<_ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 #include <sys/types.h>
9749 /* Check that off_t can represent 2**63 - 1 correctly.
9750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9751 since some C++ compilers masquerading as C compilers
9752 incorrectly reject 9223372036854775807. */
9753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9755 && LARGE_OFF_T % 2147483647 == 1)
9765 rm -f conftest.$ac_objext
9766 if { (ac_try="$ac_compile"
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_compile") 2>conftest.er1
9774 grep -v '^ *+' conftest.er1 >conftest.err
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9778 (exit $ac_status); } && {
9779 test -z "$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 } && test -s conftest.$ac_objext; then
9782 ac_cv_sys_large_files=no; break
9784 echo "$as_me: failed program was
:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791 cat >conftest.$ac_ext <<_ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797 #define _LARGE_FILES 1
9798 #include <sys/types.h>
9799 /* Check that off_t can represent 2**63 - 1 correctly.
9800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9801 since some C++ compilers masquerading as C compilers
9802 incorrectly reject 9223372036854775807. */
9803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9805 && LARGE_OFF_T % 2147483647 == 1)
9815 rm -f conftest.$ac_objext
9816 if { (ac_try="$ac_compile"
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9821 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_compile") 2>conftest.er1
9824 grep -v '^ *+' conftest.er1 >conftest.err
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9828 (exit $ac_status); } && {
9829 test -z "$ac_c_werror_flag" ||
9830 test ! -s conftest.err
9831 } && test -s conftest.$ac_objext; then
9832 ac_cv_sys_large_files=1; break
9834 echo "$as_me: failed program was
:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9841 ac_cv_sys_large_files=unknown
9845 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
9846 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9847 case $ac_cv_sys_large_files in #(
9850 cat >>confdefs.h <<_ACEOF
9851 #define _LARGE_FILES $ac_cv_sys_large_files
9860 # Checks for typedefs, structures, and compiler characteristics.
9861 { echo "$as_me:$LINENO: checking
for stdbool.h that conforms to C99
" >&5
9862 echo $ECHO_N "checking
for stdbool.h that conforms to C99...
$ECHO_C" >&6; }
9863 if test "${ac_cv_header_stdbool_h+set}" = set; then
9864 echo $ECHO_N "(cached
) $ECHO_C" >&6
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9873 #include <stdbool.h>
9875 "error
: bool is not defined
"
9878 "error
: false is not defined
"
9881 "error
: false is not
0"
9884 "error
: true is not defined
"
9887 "error
: true is not
1"
9889 #ifndef __bool_true_false_are_defined
9890 "error
: __bool_true_false_are_defined is not defined
"
9893 struct s { _Bool s: 1; _Bool t; } s;
9895 char a[true == 1 ? 1 : -1];
9896 char b[false == 0 ? 1 : -1];
9897 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9898 char d[(bool) 0.5 == true ? 1 : -1];
9900 char f[(_Bool) 0.0 == false ? 1 : -1];
9902 char h[sizeof (_Bool)];
9904 enum { j = false, k = true, l = false * true, m = true * 256 };
9906 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9907 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9908 # if defined __xlc__ || defined __GNUC__
9909 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9910 reported by James Lemley on 2005-10-05; see
9911 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9912 This test is not quite right, since xlc is allowed to
9913 reject this program, as the initializer for xlcbug is
9914 not one of the forms that C requires support for.
9915 However, doing the test right would require a runtime
9916 test, and that would make cross-compilation harder.
9917 Let us hope that IBM fixes the xlc bug, and also adds
9918 support for this kind of constant expression. In the
9919 meantime, this test will reject xlc, which is OK, since
9920 our stdbool.h substitute should suffice. We also test
9921 this with GCC, where it should work, to detect more
9922 quickly whether someone messes up the test in the
9924 char digs[] = "0123456789";
9925 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9927 /* Catch a bug in an HP-UX C compiler. See
9928 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9929 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9940 /* Refer to every declared value, to avoid compiler optimizations. */
9941 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9942 + !m + !n + !o + !p + !q + !pq);
9948 rm -f conftest.$ac_objext
9949 if { (ac_try="$ac_compile"
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_compile") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest.$ac_objext; then
9965 ac_cv_header_stdbool_h=yes
9967 echo "$as_me: failed program was
:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_cv_header_stdbool_h=no
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdbool_h" >&5
9976 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
9977 { echo "$as_me:$LINENO: checking
for _Bool
" >&5
9978 echo $ECHO_N "checking
for _Bool...
$ECHO_C" >&6; }
9979 if test "${ac_cv_type__Bool+set}" = set; then
9980 echo $ECHO_N "(cached
) $ECHO_C" >&6
9982 cat >conftest.$ac_ext <<_ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 $ac_includes_default
9989 typedef _Bool ac__type_new_;
9993 if ((ac__type_new_ *) 0)
9995 if (sizeof (ac__type_new_))
10001 rm -f conftest.$ac_objext
10002 if { (ac_try="$ac_compile"
10003 case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_compile") 2>conftest.er1
10010 grep -v '^ *+' conftest.er1 >conftest.err
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest.$ac_objext; then
10018 ac_cv_type__Bool=yes
10020 echo "$as_me: failed program was
:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_cv_type__Bool=no
10026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028 { echo "$as_me:$LINENO: result
: $ac_cv_type__Bool" >&5
10029 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10030 if test $ac_cv_type__Bool = yes; then
10032 cat >>confdefs.h <<_ACEOF
10033 #define HAVE__BOOL 1
10039 if test $ac_cv_header_stdbool_h = yes; then
10041 cat >>confdefs.h <<\_ACEOF
10042 #define HAVE_STDBOOL_H 1
10047 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
10048 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
10049 if test "${ac_cv_c_const+set}" = set; then
10050 echo $ECHO_N "(cached
) $ECHO_C" >&6
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10062 /* FIXME: Include the comments suggested by Paul. */
10063 #ifndef __cplusplus
10064 /* Ultrix mips cc rejects this. */
10065 typedef int charset[2];
10067 /* SunOS 4.1.1 cc rejects this. */
10068 char const *const *pcpcc;
10070 /* NEC SVR4.0.2 mips cc rejects this. */
10071 struct point {int x, y;};
10072 static struct point const zero = {0,0};
10073 /* AIX XL C 1.02.0.0 rejects this.
10074 It does not let you subtract one const X* pointer from another in
10075 an arm of an if-expression whose if-part is not a constant
10077 const char *g = "string
";
10078 pcpcc = &g + (g ? g-g : 0);
10079 /* HPUX 7.0 cc rejects these. */
10081 ppc = (char**) pcpcc;
10082 pcpcc = (char const *const *) ppc;
10083 { /* SCO 3.2v4 cc rejects this. */
10085 char const *s = 0 ? (char *) 0 : (char const *) 0;
10090 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10091 int x[] = {25, 17};
10092 const int *foo = &x[0];
10095 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10096 typedef const int *iptr;
10100 { /* AIX XL C 1.02.0.0 rejects this saying
10101 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10102 struct s { int j; const int *ap[3]; };
10103 struct s *b; b->j = 5;
10105 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10106 const int foo = 10;
10107 if (!foo) return 0;
10109 return !cs[0] && !zero.x;
10116 rm -f conftest.$ac_objext
10117 if { (ac_try="$ac_compile"
10118 case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_compile") 2>conftest.er1
10125 grep -v '^ *+' conftest.er1 >conftest.err
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10129 (exit $ac_status); } && {
10130 test -z "$ac_c_werror_flag" ||
10131 test ! -s conftest.err
10132 } && test -s conftest.$ac_objext; then
10135 echo "$as_me: failed program was
:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10143 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
10144 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10145 if test $ac_cv_c_const = no; then
10147 cat >>confdefs.h <<\_ACEOF
10153 { echo "$as_me:$LINENO: checking
for uid_t
in sys
/types.h
" >&5
10154 echo $ECHO_N "checking
for uid_t
in sys
/types.h...
$ECHO_C" >&6; }
10155 if test "${ac_cv_type_uid_t+set}" = set; then
10156 echo $ECHO_N "(cached
) $ECHO_C" >&6
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 #include <sys/types.h>
10167 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10168 $EGREP "uid_t
" >/dev/null 2>&1; then
10169 ac_cv_type_uid_t=yes
10171 ac_cv_type_uid_t=no
10176 { echo "$as_me:$LINENO: result
: $ac_cv_type_uid_t" >&5
10177 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10178 if test $ac_cv_type_uid_t = no; then
10180 cat >>confdefs.h <<\_ACEOF
10185 cat >>confdefs.h <<\_ACEOF
10191 { echo "$as_me:$LINENO: checking
for inline
" >&5
10192 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
10193 if test "${ac_cv_c_inline+set}" = set; then
10194 echo $ECHO_N "(cached
) $ECHO_C" >&6
10197 for ac_kw in inline __inline__ __inline; do
10198 cat >conftest.$ac_ext <<_ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 #ifndef __cplusplus
10206 static $ac_kw foo_t static_foo () {return 0; }
10207 $ac_kw foo_t foo () {return 0; }
10211 rm -f conftest.$ac_objext
10212 if { (ac_try="$ac_compile"
10213 case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_compile") 2>conftest.er1
10220 grep -v '^ *+' conftest.er1 >conftest.err
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10224 (exit $ac_status); } && {
10225 test -z "$ac_c_werror_flag" ||
10226 test ! -s conftest.err
10227 } && test -s conftest.$ac_objext; then
10228 ac_cv_c_inline=$ac_kw
10230 echo "$as_me: failed program was
:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10237 test "$ac_cv_c_inline" != no && break
10241 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
10242 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10245 case $ac_cv_c_inline in
10248 case $ac_cv_c_inline in
10250 *) ac_val=$ac_cv_c_inline;;
10252 cat >>confdefs.h <<_ACEOF
10253 #ifndef __cplusplus
10254 #define inline $ac_val
10260 { echo "$as_me:$LINENO: checking
for mode_t
" >&5
10261 echo $ECHO_N "checking
for mode_t...
$ECHO_C" >&6; }
10262 if test "${ac_cv_type_mode_t+set}" = set; then
10263 echo $ECHO_N "(cached
) $ECHO_C" >&6
10265 cat >conftest.$ac_ext <<_ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 typedef mode_t ac__type_new_;
10276 if ((ac__type_new_ *) 0)
10278 if (sizeof (ac__type_new_))
10284 rm -f conftest.$ac_objext
10285 if { (ac_try="$ac_compile"
10286 case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_compile") 2>conftest.er1
10293 grep -v '^ *+' conftest.er1 >conftest.err
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10297 (exit $ac_status); } && {
10298 test -z "$ac_c_werror_flag" ||
10299 test ! -s conftest.err
10300 } && test -s conftest.$ac_objext; then
10301 ac_cv_type_mode_t=yes
10303 echo "$as_me: failed program was
:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 ac_cv_type_mode_t=no
10309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 { echo "$as_me:$LINENO: result
: $ac_cv_type_mode_t" >&5
10312 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10313 if test $ac_cv_type_mode_t = yes; then
10317 cat >>confdefs.h <<_ACEOF
10323 { echo "$as_me:$LINENO: checking
for off_t
" >&5
10324 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
10325 if test "${ac_cv_type_off_t+set}" = set; then
10326 echo $ECHO_N "(cached
) $ECHO_C" >&6
10328 cat >conftest.$ac_ext <<_ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 $ac_includes_default
10335 typedef off_t ac__type_new_;
10339 if ((ac__type_new_ *) 0)
10341 if (sizeof (ac__type_new_))
10347 rm -f conftest.$ac_objext
10348 if { (ac_try="$ac_compile"
10349 case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10354 (eval "$ac_compile") 2>conftest.er1
10356 grep -v '^ *+' conftest.er1 >conftest.err
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10360 (exit $ac_status); } && {
10361 test -z "$ac_c_werror_flag" ||
10362 test ! -s conftest.err
10363 } && test -s conftest.$ac_objext; then
10364 ac_cv_type_off_t=yes
10366 echo "$as_me: failed program was
:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10369 ac_cv_type_off_t=no
10372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10374 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
10375 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10376 if test $ac_cv_type_off_t = yes; then
10380 cat >>confdefs.h <<_ACEOF
10381 #define off_t long int
10386 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
10387 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
10388 if test "${ac_cv_type_pid_t+set}" = set; then
10389 echo $ECHO_N "(cached
) $ECHO_C" >&6
10391 cat >conftest.$ac_ext <<_ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10397 $ac_includes_default
10398 typedef pid_t ac__type_new_;
10402 if ((ac__type_new_ *) 0)
10404 if (sizeof (ac__type_new_))
10410 rm -f conftest.$ac_objext
10411 if { (ac_try="$ac_compile"
10412 case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_compile") 2>conftest.er1
10419 grep -v '^ *+' conftest.er1 >conftest.err
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10423 (exit $ac_status); } && {
10424 test -z "$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 } && test -s conftest.$ac_objext; then
10427 ac_cv_type_pid_t=yes
10429 echo "$as_me: failed program was
:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10432 ac_cv_type_pid_t=no
10435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10437 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
10438 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10439 if test $ac_cv_type_pid_t = yes; then
10443 cat >>confdefs.h <<_ACEOF
10449 { echo "$as_me:$LINENO: checking
for size_t
" >&5
10450 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
10451 if test "${ac_cv_type_size_t+set}" = set; then
10452 echo $ECHO_N "(cached
) $ECHO_C" >&6
10454 cat >conftest.$ac_ext <<_ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 $ac_includes_default
10461 typedef size_t ac__type_new_;
10465 if ((ac__type_new_ *) 0)
10467 if (sizeof (ac__type_new_))
10473 rm -f conftest.$ac_objext
10474 if { (ac_try="$ac_compile"
10475 case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_compile") 2>conftest.er1
10482 grep -v '^ *+' conftest.er1 >conftest.err
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest.$ac_objext; then
10490 ac_cv_type_size_t=yes
10492 echo "$as_me: failed program was
:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10495 ac_cv_type_size_t=no
10498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10500 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
10501 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10502 if test $ac_cv_type_size_t = yes; then
10506 cat >>confdefs.h <<_ACEOF
10507 #define size_t unsigned int
10512 { echo "$as_me:$LINENO: checking
for struct stat.st_blksize
" >&5
10513 echo $ECHO_N "checking
for struct stat.st_blksize...
$ECHO_C" >&6; }
10514 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10515 echo $ECHO_N "(cached
) $ECHO_C" >&6
10517 cat >conftest.$ac_ext <<_ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523 $ac_includes_default
10527 static struct stat ac_aggr;
10528 if (ac_aggr.st_blksize)
10534 rm -f conftest.$ac_objext
10535 if { (ac_try="$ac_compile"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_compile") 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10547 (exit $ac_status); } && {
10548 test -z "$ac_c_werror_flag" ||
10549 test ! -s conftest.err
10550 } && test -s conftest.$ac_objext; then
10551 ac_cv_member_struct_stat_st_blksize=yes
10553 echo "$as_me: failed program was
:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 $ac_includes_default
10566 static struct stat ac_aggr;
10567 if (sizeof ac_aggr.st_blksize)
10573 rm -f conftest.$ac_objext
10574 if { (ac_try="$ac_compile"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_compile") 2>conftest.er1
10582 grep -v '^ *+' conftest.er1 >conftest.err
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest.$ac_objext; then
10590 ac_cv_member_struct_stat_st_blksize=yes
10592 echo "$as_me: failed program was
:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 ac_cv_member_struct_stat_st_blksize=no
10598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_stat_st_blksize" >&5
10604 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10605 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10607 cat >>confdefs.h <<_ACEOF
10608 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10614 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
10615 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
10616 if test "${ac_cv_header_time+set}" = set; then
10617 echo $ECHO_N "(cached
) $ECHO_C" >&6
10619 cat >conftest.$ac_ext <<_ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10625 #include <sys/types.h>
10626 #include <sys/time.h>
10632 if ((struct tm *) 0)
10638 rm -f conftest.$ac_objext
10639 if { (ac_try="$ac_compile"
10640 case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_compile") 2>conftest.er1
10647 grep -v '^ *+' conftest.er1 >conftest.err
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10651 (exit $ac_status); } && {
10652 test -z "$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 } && test -s conftest.$ac_objext; then
10655 ac_cv_header_time=yes
10657 echo "$as_me: failed program was
:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 ac_cv_header_time=no
10663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10665 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
10666 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10667 if test $ac_cv_header_time = yes; then
10669 cat >>confdefs.h <<\_ACEOF
10670 #define TIME_WITH_SYS_TIME 1
10675 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
10676 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
10677 if test "${ac_cv_struct_tm+set}" = set; then
10678 echo $ECHO_N "(cached
) $ECHO_C" >&6
10680 cat >conftest.$ac_ext <<_ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10686 #include <sys/types.h>
10693 int *p = &tm.tm_sec;
10699 rm -f conftest.$ac_objext
10700 if { (ac_try="$ac_compile"
10701 case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_compile") 2>conftest.er1
10708 grep -v '^ *+' conftest.er1 >conftest.err
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10712 (exit $ac_status); } && {
10713 test -z "$ac_c_werror_flag" ||
10714 test ! -s conftest.err
10715 } && test -s conftest.$ac_objext; then
10716 ac_cv_struct_tm=time.h
10718 echo "$as_me: failed program was
:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 ac_cv_struct_tm=sys/time.h
10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
10727 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10728 if test $ac_cv_struct_tm = sys/time.h; then
10730 cat >>confdefs.h <<\_ACEOF
10731 #define TM_IN_SYS_TIME 1
10736 { echo "$as_me:$LINENO: checking
for working volatile
" >&5
10737 echo $ECHO_N "checking
for working volatile...
$ECHO_C" >&6; }
10738 if test "${ac_cv_c_volatile+set}" = set; then
10739 echo $ECHO_N "(cached
) $ECHO_C" >&6
10741 cat >conftest.$ac_ext <<_ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10753 int * volatile y = (int *) 0;
10759 rm -f conftest.$ac_objext
10760 if { (ac_try="$ac_compile"
10761 case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_compile") 2>conftest.er1
10768 grep -v '^ *+' conftest.er1 >conftest.err
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10772 (exit $ac_status); } && {
10773 test -z "$ac_c_werror_flag" ||
10774 test ! -s conftest.err
10775 } && test -s conftest.$ac_objext; then
10776 ac_cv_c_volatile=yes
10778 echo "$as_me: failed program was
:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 ac_cv_c_volatile=no
10784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786 { echo "$as_me:$LINENO: result
: $ac_cv_c_volatile" >&5
10787 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10788 if test $ac_cv_c_volatile = no; then
10790 cat >>confdefs.h <<\_ACEOF
10796 { echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
10797 echo $ECHO_N "checking
for ptrdiff_t...
$ECHO_C" >&6; }
10798 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10799 echo $ECHO_N "(cached
) $ECHO_C" >&6
10801 cat >conftest.$ac_ext <<_ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10807 $ac_includes_default
10808 typedef ptrdiff_t ac__type_new_;
10812 if ((ac__type_new_ *) 0)
10814 if (sizeof (ac__type_new_))
10820 rm -f conftest.$ac_objext
10821 if { (ac_try="$ac_compile"
10822 case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_compile") 2>conftest.er1
10829 grep -v '^ *+' conftest.er1 >conftest.err
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10833 (exit $ac_status); } && {
10834 test -z "$ac_c_werror_flag" ||
10835 test ! -s conftest.err
10836 } && test -s conftest.$ac_objext; then
10837 ac_cv_type_ptrdiff_t=yes
10839 echo "$as_me: failed program was
:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10842 ac_cv_type_ptrdiff_t=no
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10847 { echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
10848 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10849 if test $ac_cv_type_ptrdiff_t = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define HAVE_PTRDIFF_T 1
10859 # Checks for library functions.
10861 for ac_header in unistd.h
10863 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10864 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10865 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10866 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10867 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10868 echo $ECHO_N "(cached
) $ECHO_C" >&6
10870 ac_res=`eval echo '${'$as_ac_Header'}'`
10871 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10872 echo "${ECHO_T}$ac_res" >&6; }
10874 # Is the header compilable?
10875 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10876 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10877 cat >conftest.$ac_ext <<_ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 $ac_includes_default
10884 #include <$ac_header>
10886 rm -f conftest.$ac_objext
10887 if { (ac_try="$ac_compile"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_compile") 2>conftest.er1
10895 grep -v '^ *+' conftest.er1 >conftest.err
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10899 (exit $ac_status); } && {
10900 test -z "$ac_c_werror_flag" ||
10901 test ! -s conftest.err
10902 } && test -s conftest.$ac_objext; then
10903 ac_header_compiler=yes
10905 echo "$as_me: failed program was
:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 ac_header_compiler=no
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10913 echo "${ECHO_T}$ac_header_compiler" >&6; }
10915 # Is the header present?
10916 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10917 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 #include <$ac_header>
10926 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10934 grep -v '^ *+' conftest.er1 >conftest.err
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10938 (exit $ac_status); } >/dev/null && {
10939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10942 ac_header_preproc=yes
10944 echo "$as_me: failed program was
:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 ac_header_preproc=no
10950 rm -f conftest.err conftest.$ac_ext
10951 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10952 echo "${ECHO_T}$ac_header_preproc" >&6; }
10954 # So? What about this header?
10955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10957 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10958 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10959 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10961 ac_header_preproc=yes
10964 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10965 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10966 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10967 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10968 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10969 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10970 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10971 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10972 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10974 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10975 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10979 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10980 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10981 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10982 echo $ECHO_N "(cached
) $ECHO_C" >&6
10984 eval "$as_ac_Header=\
$ac_header_preproc"
10986 ac_res=`eval echo '${'$as_ac_Header'}'`
10987 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10988 echo "${ECHO_T}$ac_res" >&6; }
10991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10992 cat >>confdefs.h <<_ACEOF
10993 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11000 { echo "$as_me:$LINENO: checking
for working chown
" >&5
11001 echo $ECHO_N "checking
for working chown...
$ECHO_C" >&6; }
11002 if test "${ac_cv_func_chown_works+set}" = set; then
11003 echo $ECHO_N "(cached
) $ECHO_C" >&6
11005 if test "$cross_compiling" = yes; then
11006 ac_cv_func_chown_works=no
11008 cat >conftest.$ac_ext <<_ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 $ac_includes_default
11020 char *f = "conftest.chown
";
11021 struct stat before, after;
11023 if (creat (f, 0600) < 0)
11025 if (stat (f, &before) < 0)
11027 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11029 if (stat (f, &after) < 0)
11031 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11037 rm -f conftest$ac_exeext
11038 if { (ac_try="$ac_link"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>&5
11046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11048 { (case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_try") 2>&5
11055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 ac_cv_func_chown_works=yes
11059 echo "$as_me: program exited with status
$ac_status" >&5
11060 echo "$as_me: failed program was
:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 ( exit $ac_status )
11064 ac_cv_func_chown_works=no
11066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11070 rm -f conftest.chown
11073 { echo "$as_me:$LINENO: result
: $ac_cv_func_chown_works" >&5
11074 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11075 if test $ac_cv_func_chown_works = yes; then
11077 cat >>confdefs.h <<\_ACEOF
11078 #define HAVE_CHOWN 1
11083 { echo "$as_me:$LINENO: checking whether closedir returns void
" >&5
11084 echo $ECHO_N "checking whether closedir returns void...
$ECHO_C" >&6; }
11085 if test "${ac_cv_func_closedir_void+set}" = set; then
11086 echo $ECHO_N "(cached
) $ECHO_C" >&6
11088 if test "$cross_compiling" = yes; then
11089 ac_cv_func_closedir_void=yes
11091 cat >conftest.$ac_ext <<_ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 $ac_includes_default
11098 #include <$ac_header_dirent>
11099 #ifndef __cplusplus
11106 return closedir (opendir (".
")) != 0;
11111 rm -f conftest$ac_exeext
11112 if { (ac_try="$ac_link"
11113 case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_link") 2>&5
11120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11122 { (case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_try") 2>&5
11129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_func_closedir_void=no
11133 echo "$as_me: program exited with status
$ac_status" >&5
11134 echo "$as_me: failed program was
:" >&5
11135 sed 's/^/| /' conftest.$ac_ext >&5
11137 ( exit $ac_status )
11138 ac_cv_func_closedir_void=yes
11140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11145 { echo "$as_me:$LINENO: result
: $ac_cv_func_closedir_void" >&5
11146 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11147 if test $ac_cv_func_closedir_void = yes; then
11149 cat >>confdefs.h <<\_ACEOF
11150 #define CLOSEDIR_VOID 1
11155 { echo "$as_me:$LINENO: checking
for error_at_line
" >&5
11156 echo $ECHO_N "checking
for error_at_line...
$ECHO_C" >&6; }
11157 if test "${ac_cv_lib_error_at_line+set}" = set; then
11158 echo $ECHO_N "(cached
) $ECHO_C" >&6
11160 cat >conftest.$ac_ext <<_ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11170 error_at_line (0, 0, "", 0, "an error occurred
");
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (ac_try="$ac_link"
11177 case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_link") 2>conftest.er1
11184 grep -v '^ *+' conftest.er1 >conftest.err
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11188 (exit $ac_status); } && {
11189 test -z "$ac_c_werror_flag" ||
11190 test ! -s conftest.err
11191 } && test -s conftest$ac_exeext &&
11192 $as_test_x conftest$ac_exeext; then
11193 ac_cv_lib_error_at_line=yes
11195 echo "$as_me: failed program was
:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 ac_cv_lib_error_at_line=no
11201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11202 conftest$ac_exeext conftest.$ac_ext
11204 { echo "$as_me:$LINENO: result
: $ac_cv_lib_error_at_line" >&5
11205 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11206 if test $ac_cv_lib_error_at_line = no; then
11207 case " $LIBOBJS " in
11208 *" error.
$ac_objext "* ) ;;
11209 *) LIBOBJS="$LIBOBJS error.
$ac_objext"
11216 for ac_header in vfork.h
11218 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11219 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11220 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11221 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11222 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11223 echo $ECHO_N "(cached
) $ECHO_C" >&6
11225 ac_res=`eval echo '${'$as_ac_Header'}'`
11226 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11227 echo "${ECHO_T}$ac_res" >&6; }
11229 # Is the header compilable?
11230 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11231 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11232 cat >conftest.$ac_ext <<_ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 $ac_includes_default
11239 #include <$ac_header>
11241 rm -f conftest.$ac_objext
11242 if { (ac_try="$ac_compile"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_compile") 2>conftest.er1
11250 grep -v '^ *+' conftest.er1 >conftest.err
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11254 (exit $ac_status); } && {
11255 test -z "$ac_c_werror_flag" ||
11256 test ! -s conftest.err
11257 } && test -s conftest.$ac_objext; then
11258 ac_header_compiler=yes
11260 echo "$as_me: failed program was
:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11263 ac_header_compiler=no
11266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11267 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11268 echo "${ECHO_T}$ac_header_compiler" >&6; }
11270 # Is the header present?
11271 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11272 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11273 cat >conftest.$ac_ext <<_ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 #include <$ac_header>
11281 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11282 case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11289 grep -v '^ *+' conftest.er1 >conftest.err
11291 cat conftest.err >&5
11292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11293 (exit $ac_status); } >/dev/null && {
11294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11295 test ! -s conftest.err
11297 ac_header_preproc=yes
11299 echo "$as_me: failed program was
:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11302 ac_header_preproc=no
11305 rm -f conftest.err conftest.$ac_ext
11306 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11307 echo "${ECHO_T}$ac_header_preproc" >&6; }
11309 # So? What about this header?
11310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11312 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11313 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11314 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11315 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11316 ac_header_preproc=yes
11319 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11320 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11321 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11322 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11323 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11324 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11325 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11326 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11327 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11329 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11330 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11334 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11335 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11336 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11337 echo $ECHO_N "(cached
) $ECHO_C" >&6
11339 eval "$as_ac_Header=\
$ac_header_preproc"
11341 ac_res=`eval echo '${'$as_ac_Header'}'`
11342 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11343 echo "${ECHO_T}$ac_res" >&6; }
11346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11347 cat >>confdefs.h <<_ACEOF
11348 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11357 for ac_func in fork vfork
11359 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11360 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11361 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11362 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11363 echo $ECHO_N "(cached
) $ECHO_C" >&6
11365 cat >conftest.$ac_ext <<_ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11373 #define $ac_func innocuous_$ac_func
11375 /* System header to define __stub macros and hopefully few prototypes,
11376 which can conflict with char $ac_func (); below.
11377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11378 <limits.h> exists even on freestanding compilers. */
11381 # include <limits.h>
11383 # include <assert.h>
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11395 /* The GNU C library defines this for functions which it implements
11396 to always fail with ENOSYS. Some functions are actually named
11397 something starting with __ and the normal name is an alias. */
11398 #if defined __stub_$ac_func || defined __stub___$ac_func
11405 return $ac_func ();
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (ac_try="$ac_link"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_link") 2>conftest.er1
11419 grep -v '^ *+' conftest.er1 >conftest.err
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11423 (exit $ac_status); } && {
11424 test -z "$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11426 } && test -s conftest$ac_exeext &&
11427 $as_test_x conftest$ac_exeext; then
11428 eval "$as_ac_var=yes"
11430 echo "$as_me: failed program was
:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11433 eval "$as_ac_var=no
"
11436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11437 conftest$ac_exeext conftest.$ac_ext
11439 ac_res=`eval echo '${'$as_ac_var'}'`
11440 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11441 echo "${ECHO_T}$ac_res" >&6; }
11442 if test `eval echo '${'$as_ac_var'}'` = yes; then
11443 cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11450 if test "x
$ac_cv_func_fork" = xyes; then
11451 { echo "$as_me:$LINENO: checking
for working fork
" >&5
11452 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
11453 if test "${ac_cv_func_fork_works+set}" = set; then
11454 echo $ECHO_N "(cached
) $ECHO_C" >&6
11456 if test "$cross_compiling" = yes; then
11457 ac_cv_func_fork_works=cross
11459 cat >conftest.$ac_ext <<_ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 $ac_includes_default
11470 /* By Ruediger Kuhlmann. */
11471 return fork () < 0;
11477 rm -f conftest$ac_exeext
11478 if { (ac_try="$ac_link"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11483 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_link") 2>&5
11486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_func_fork_works=yes
11499 echo "$as_me: program exited with status
$ac_status" >&5
11500 echo "$as_me: failed program was
:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11503 ( exit $ac_status )
11504 ac_cv_func_fork_works=no
11506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11511 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
11512 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11515 ac_cv_func_fork_works=$ac_cv_func_fork
11517 if test "x
$ac_cv_func_fork_works" = xcross; then
11519 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
11520 # Override, as these systems have only a dummy fork() stub
11521 ac_cv_func_fork_works=no
11524 ac_cv_func_fork_works=yes
11527 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
11528 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
11530 ac_cv_func_vfork_works=$ac_cv_func_vfork
11531 if test "x
$ac_cv_func_vfork" = xyes; then
11532 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
11533 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
11534 if test "${ac_cv_func_vfork_works+set}" = set; then
11535 echo $ECHO_N "(cached
) $ECHO_C" >&6
11537 if test "$cross_compiling" = yes; then
11538 ac_cv_func_vfork_works=cross
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 /* Thanks to Paul Eggert for this test. */
11547 $ac_includes_default
11548 #include <sys/wait.h>
11549 #ifdef HAVE_VFORK_H
11550 # include <vfork.h>
11552 /* On some sparc systems, changes by the child to local and incoming
11553 argument registers are propagated back to the parent. The compiler
11554 is told about this with #include <vfork.h>, but some compilers
11555 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11556 static variable whose address is put into a register that is
11557 clobbered by the vfork. */
11560 sparc_address_test (int arg)
11562 sparc_address_test (arg) int arg;
11565 static pid_t child;
11583 pid_t parent = getpid ();
11586 sparc_address_test (0);
11591 /* Here is another test for sparc vfork register problems. This
11592 test uses lots of local variables, at least as many local
11593 variables as main has allocated so far including compiler
11594 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11595 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11596 reuse the register of parent for one of the local variables,
11597 since it will think that parent can't possibly be used any more
11598 in this routine. Assigning to the local variable will thus
11599 munge parent in the parent process. */
11601 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11602 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11603 /* Convince the compiler that p..p7 are live; otherwise, it might
11604 use the same hardware register for all 8 local variables. */
11605 if (p != p1 || p != p2 || p != p3 || p != p4
11606 || p != p5 || p != p6 || p != p7)
11609 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11610 from child file descriptors. If the child closes a descriptor
11611 before it execs or exits, this munges the parent's descriptor
11612 as well. Test for this by closing stdout in the child. */
11613 _exit(close(fileno(stdout)) != 0);
11618 while (wait(&status) != child)
11621 /* Was there some problem with vforking? */
11624 /* Did the child fail? (This shouldn't happen.) */
11627 /* Did the vfork/compiler bug occur? */
11628 || parent != getpid()
11630 /* Did the file descriptor bug occur? */
11631 || fstat(fileno(stdout), &st) != 0
11636 rm -f conftest$ac_exeext
11637 if { (ac_try="$ac_link"
11638 case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_link") 2>&5
11645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11647 { (case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_try") 2>&5
11654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 ac_cv_func_vfork_works=yes
11658 echo "$as_me: program exited with status
$ac_status" >&5
11659 echo "$as_me: failed program was
:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 ( exit $ac_status )
11663 ac_cv_func_vfork_works=no
11665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11670 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
11671 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11674 if test "x
$ac_cv_func_fork_works" = xcross; then
11675 ac_cv_func_vfork_works=$ac_cv_func_vfork
11676 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
11677 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
11680 if test "x
$ac_cv_func_vfork_works" = xyes; then
11682 cat >>confdefs.h <<\_ACEOF
11683 #define HAVE_WORKING_VFORK 1
11688 cat >>confdefs.h <<\_ACEOF
11693 if test "x
$ac_cv_func_fork_works" = xyes; then
11695 cat >>confdefs.h <<\_ACEOF
11696 #define HAVE_WORKING_FORK 1
11701 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
11702 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
11703 if test "${ac_cv_sys_largefile_source+set}" = set; then
11704 echo $ECHO_N "(cached
) $ECHO_C" >&6
11707 cat >conftest.$ac_ext <<_ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11713 #include <sys/types.h> /* for off_t */
11718 int (*fp) (FILE *, off_t, int) = fseeko;
11719 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (ac_try="$ac_link"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_link") 2>conftest.er1
11733 grep -v '^ *+' conftest.er1 >conftest.err
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11737 (exit $ac_status); } && {
11738 test -z "$ac_c_werror_flag" ||
11739 test ! -s conftest.err
11740 } && test -s conftest$ac_exeext &&
11741 $as_test_x conftest$ac_exeext; then
11742 ac_cv_sys_largefile_source=no; break
11744 echo "$as_me: failed program was
:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11751 conftest$ac_exeext conftest.$ac_ext
11752 cat >conftest.$ac_ext <<_ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 #define _LARGEFILE_SOURCE 1
11759 #include <sys/types.h> /* for off_t */
11764 int (*fp) (FILE *, off_t, int) = fseeko;
11765 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11770 rm -f conftest.$ac_objext conftest$ac_exeext
11771 if { (ac_try="$ac_link"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_link") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest$ac_exeext &&
11787 $as_test_x conftest$ac_exeext; then
11788 ac_cv_sys_largefile_source=1; break
11790 echo "$as_me: failed program was
:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11797 conftest$ac_exeext conftest.$ac_ext
11798 ac_cv_sys_largefile_source=unknown
11802 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
11803 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
11804 case $ac_cv_sys_largefile_source in #(
11807 cat >>confdefs.h <<_ACEOF
11808 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11814 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11815 # in glibc 2.1.3, but that breaks too many other things.
11816 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11817 if test $ac_cv_sys_largefile_source != unknown; then
11819 cat >>confdefs.h <<\_ACEOF
11820 #define HAVE_FSEEKO 1
11825 if test $ac_cv_c_compiler_gnu = yes; then
11826 { echo "$as_me:$LINENO: checking whether
$CC needs
-traditional" >&5
11827 echo $ECHO_N "checking whether
$CC needs
-traditional...
$ECHO_C" >&6; }
11828 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11829 echo $ECHO_N "(cached
) $ECHO_C" >&6
11831 ac_pattern="Autoconf.
*'x'"
11832 cat >conftest.$ac_ext <<_ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11841 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
11842 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11843 ac_cv_prog_gcc_traditional=yes
11845 ac_cv_prog_gcc_traditional=no
11850 if test $ac_cv_prog_gcc_traditional = no; then
11851 cat >conftest.$ac_ext <<_ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 #include <termio.h>
11860 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
11861 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11862 ac_cv_prog_gcc_traditional=yes
11868 { echo "$as_me:$LINENO: result
: $ac_cv_prog_gcc_traditional" >&5
11869 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11870 if test $ac_cv_prog_gcc_traditional = yes; then
11871 CC="$CC -traditional"
11875 # XXX: these are commented out until we determine whether it matters if our malloc()
11876 # acts exactly like glibc's or not
11879 { echo "$as_me:$LINENO: checking
for working memcmp
" >&5
11880 echo $ECHO_N "checking
for working memcmp...
$ECHO_C" >&6; }
11881 if test "${ac_cv_func_memcmp_working+set}" = set; then
11882 echo $ECHO_N "(cached
) $ECHO_C" >&6
11884 if test "$cross_compiling" = yes; then
11885 ac_cv_func_memcmp_working=no
11887 cat >conftest.$ac_ext <<_ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 $ac_includes_default
11898 /* Some versions of memcmp are not 8-bit clean. */
11899 char c0 = '\100', c1 = '\200', c2 = '\201';
11900 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11903 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11904 or more and with at least one buffer not starting on a 4-byte boundary.
11905 William Lewis provided this test program. */
11910 for (i = 0; i < 4; i++)
11914 strcpy (a, "--------01111111");
11915 strcpy (b, "--------10000000");
11916 if (memcmp (a, b, 16) >= 0)
11926 rm -f conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_link") 2>&5
11935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11937 { (case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_try") 2>&5
11944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_func_memcmp_working=yes
11948 echo "$as_me: program exited with status
$ac_status" >&5
11949 echo "$as_me: failed program was
:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11952 ( exit $ac_status )
11953 ac_cv_func_memcmp_working=no
11955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11960 { echo "$as_me:$LINENO: result
: $ac_cv_func_memcmp_working" >&5
11961 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11962 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11963 *" memcmp.
$ac_objext "* ) ;;
11964 *) LIBOBJS="$LIBOBJS memcmp.
$ac_objext"
11973 for ac_header in $ac_header_list
11975 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11976 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11977 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11978 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11979 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11980 echo $ECHO_N "(cached
) $ECHO_C" >&6
11982 ac_res=`eval echo '${'$as_ac_Header'}'`
11983 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11984 echo "${ECHO_T}$ac_res" >&6; }
11986 # Is the header compilable?
11987 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11988 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11989 cat >conftest.$ac_ext <<_ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 $ac_includes_default
11996 #include <$ac_header>
11998 rm -f conftest.$ac_objext
11999 if { (ac_try="$ac_compile"
12000 case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_compile") 2>conftest.er1
12007 grep -v '^ *+' conftest.er1 >conftest.err
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest.$ac_objext; then
12015 ac_header_compiler=yes
12017 echo "$as_me: failed program was
:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_header_compiler=no
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12025 echo "${ECHO_T}$ac_header_compiler" >&6; }
12027 # Is the header present?
12028 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12029 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12030 cat >conftest.$ac_ext <<_ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 #include <$ac_header>
12038 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12046 grep -v '^ *+' conftest.er1 >conftest.err
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12050 (exit $ac_status); } >/dev/null && {
12051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12054 ac_header_preproc=yes
12056 echo "$as_me: failed program was
:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_header_preproc=no
12062 rm -f conftest.err conftest.$ac_ext
12063 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12064 echo "${ECHO_T}$ac_header_preproc" >&6; }
12066 # So? What about this header?
12067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12069 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12070 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12071 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12073 ac_header_preproc=yes
12076 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12077 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12078 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12079 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12080 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12081 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12082 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12083 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12084 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12086 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12087 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12091 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12092 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12093 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12094 echo $ECHO_N "(cached
) $ECHO_C" >&6
12096 eval "$as_ac_Header=\
$ac_header_preproc"
12098 ac_res=`eval echo '${'$as_ac_Header'}'`
12099 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12100 echo "${ECHO_T}$ac_res" >&6; }
12103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12104 cat >>confdefs.h <<_ACEOF
12105 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12120 for ac_func in $ac_func_list
12122 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12123 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12124 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12125 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12126 echo $ECHO_N "(cached
) $ECHO_C" >&6
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12136 #define $ac_func innocuous_$ac_func
12138 /* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char $ac_func (); below.
12140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12141 <limits.h> exists even on freestanding compilers. */
12144 # include <limits.h>
12146 # include <assert.h>
12151 /* Override any GCC internal prototype to avoid an error.
12152 Use char because int might match the return type of a GCC
12153 builtin and then its argument prototype would still apply. */
12158 /* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
12161 #if defined __stub_$ac_func || defined __stub___$ac_func
12168 return $ac_func ();
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (ac_try="$ac_link"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_link") 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest$ac_exeext &&
12190 $as_test_x conftest$ac_exeext; then
12191 eval "$as_ac_var=yes"
12193 echo "$as_me: failed program was
:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 eval "$as_ac_var=no
"
12199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12200 conftest$ac_exeext conftest.$ac_ext
12202 ac_res=`eval echo '${'$as_ac_var'}'`
12203 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12204 echo "${ECHO_T}$ac_res" >&6; }
12205 if test `eval echo '${'$as_ac_var'}'` = yes; then
12206 cat >>confdefs.h <<_ACEOF
12207 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12229 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
12230 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
12231 if test "${ac_cv_func_working_mktime+set}" = set; then
12232 echo $ECHO_N "(cached
) $ECHO_C" >&6
12234 if test "$cross_compiling" = yes; then
12235 ac_cv_func_working_mktime=no
12237 cat >conftest.$ac_ext <<_ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 /* Test program from Paul Eggert and Tony Leneis. */
12244 #ifdef TIME_WITH_SYS_TIME
12245 # include <sys/time.h>
12248 # ifdef HAVE_SYS_TIME_H
12249 # include <sys/time.h>
12255 #include <stdlib.h>
12257 #ifdef HAVE_UNISTD_H
12258 # include <unistd.h>
12262 # define alarm(X) /* empty */
12265 /* Work around redefinition to rpl_putenv by other config tests. */
12268 static time_t time_t_max;
12269 static time_t time_t_min;
12271 /* Values we'll use to set the TZ environment variable. */
12272 static char *tz_strings[] = {
12273 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
12274 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
12276 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12278 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12279 Based on a problem report from Andreas Jaeger. */
12281 spring_forward_gap ()
12283 /* glibc (up to about 1998-10-07) failed this test. */
12286 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
12287 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
12288 on systems that don't support the Olson extension, or don't have the
12289 full zoneinfo tables installed. */
12290 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
12299 return mktime (&tm) != (time_t) -1;
12307 return ! (lt = localtime (&now)) || mktime (lt) == now;
12314 return (mktime_test1 (now)
12315 && mktime_test1 ((time_t) (time_t_max - now))
12316 && mktime_test1 ((time_t) (time_t_min + now)));
12322 /* Based on code from Ariel Faigon. */
12332 return tm.tm_mon == 2 && tm.tm_mday == 31;
12341 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12342 now = mktime (&tm);
12343 if (now != (time_t) -1)
12345 struct tm *lt = localtime (&now);
12347 && lt->tm_year == tm.tm_year
12348 && lt->tm_mon == tm.tm_mon
12349 && lt->tm_mday == tm.tm_mday
12350 && lt->tm_hour == tm.tm_hour
12351 && lt->tm_min == tm.tm_min
12352 && lt->tm_sec == tm.tm_sec
12353 && lt->tm_yday == tm.tm_yday
12354 && lt->tm_wday == tm.tm_wday
12355 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12356 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12365 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12366 ignoring leap seconds. */
12367 unsigned long int answer = 2527315200UL;
12371 tm.tm_year = 2050 - 1900;
12374 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12377 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
12378 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
12379 on systems that don't support the Olson extension, or don't have the
12380 full zoneinfo tables installed. */
12381 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
12385 /* Check that the result is either a failure, or close enough
12386 to the correct answer that we can assume the discrepancy is
12387 due to leap seconds. */
12388 return (t == (time_t) -1
12389 || (0 < t && answer - 120 <= t && t <= answer + 120));
12398 /* This test makes some buggy mktime implementations loop.
12399 Give up after 60 seconds; a mktime slower than that
12400 isn't worth using anyway. */
12403 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12406 if ((time_t) -1 < 0)
12407 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
12409 delta = time_t_max / 997; /* a suitable prime number */
12410 for (i = 0; i < N_STRINGS; i++)
12413 putenv (tz_strings[i]);
12415 for (t = 0; t <= time_t_max - delta; t += delta)
12416 if (! mktime_test (t))
12418 if (! (mktime_test ((time_t) 1)
12419 && mktime_test ((time_t) (60 * 60))
12420 && mktime_test ((time_t) (60 * 60 * 24))))
12423 for (j = 1; 0 < j; j *= 2)
12424 if (! bigtime_test (j))
12426 if (! bigtime_test (j - 1))
12429 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12432 rm -f conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_link") 2>&5
12441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12443 { (case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_try") 2>&5
12450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 ac_cv_func_working_mktime=yes
12454 echo "$as_me: program exited with status
$ac_status" >&5
12455 echo "$as_me: failed program was
:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 ( exit $ac_status )
12459 ac_cv_func_working_mktime=no
12461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12466 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
12467 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12468 if test $ac_cv_func_working_mktime = no; then
12469 case " $LIBOBJS " in
12470 *" mktime.
$ac_objext "* ) ;;
12471 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
12479 for ac_header in stdlib.h unistd.h
12481 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12482 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12483 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12484 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12485 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12486 echo $ECHO_N "(cached
) $ECHO_C" >&6
12488 ac_res=`eval echo '${'$as_ac_Header'}'`
12489 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12490 echo "${ECHO_T}$ac_res" >&6; }
12492 # Is the header compilable?
12493 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12494 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12495 cat >conftest.$ac_ext <<_ACEOF
12498 cat confdefs.h >>conftest.$ac_ext
12499 cat >>conftest.$ac_ext <<_ACEOF
12500 /* end confdefs.h. */
12501 $ac_includes_default
12502 #include <$ac_header>
12504 rm -f conftest.$ac_objext
12505 if { (ac_try="$ac_compile"
12506 case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_compile") 2>conftest.er1
12513 grep -v '^ *+' conftest.er1 >conftest.err
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12517 (exit $ac_status); } && {
12518 test -z "$ac_c_werror_flag" ||
12519 test ! -s conftest.err
12520 } && test -s conftest.$ac_objext; then
12521 ac_header_compiler=yes
12523 echo "$as_me: failed program was
:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ac_header_compiler=no
12529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12531 echo "${ECHO_T}$ac_header_compiler" >&6; }
12533 # Is the header present?
12534 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12535 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12536 cat >conftest.$ac_ext <<_ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 #include <$ac_header>
12544 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12545 case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12552 grep -v '^ *+' conftest.er1 >conftest.err
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12556 (exit $ac_status); } >/dev/null && {
12557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12560 ac_header_preproc=yes
12562 echo "$as_me: failed program was
:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 ac_header_preproc=no
12568 rm -f conftest.err conftest.$ac_ext
12569 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12570 echo "${ECHO_T}$ac_header_preproc" >&6; }
12572 # So? What about this header?
12573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12575 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12576 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12577 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12579 ac_header_preproc=yes
12582 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12583 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12584 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12585 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12586 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12587 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12588 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12589 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12590 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12592 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12593 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12597 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12598 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12599 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12600 echo $ECHO_N "(cached
) $ECHO_C" >&6
12602 eval "$as_ac_Header=\
$ac_header_preproc"
12604 ac_res=`eval echo '${'$as_ac_Header'}'`
12605 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12606 echo "${ECHO_T}$ac_res" >&6; }
12609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12610 cat >>confdefs.h <<_ACEOF
12611 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12619 for ac_func in getpagesize
12621 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12622 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12623 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12624 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12625 echo $ECHO_N "(cached
) $ECHO_C" >&6
12627 cat >conftest.$ac_ext <<_ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12635 #define $ac_func innocuous_$ac_func
12637 /* System header to define __stub macros and hopefully few prototypes,
12638 which can conflict with char $ac_func (); below.
12639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12640 <limits.h> exists even on freestanding compilers. */
12643 # include <limits.h>
12645 # include <assert.h>
12650 /* Override any GCC internal prototype to avoid an error.
12651 Use char because int might match the return type of a GCC
12652 builtin and then its argument prototype would still apply. */
12657 /* The GNU C library defines this for functions which it implements
12658 to always fail with ENOSYS. Some functions are actually named
12659 something starting with __ and the normal name is an alias. */
12660 #if defined __stub_$ac_func || defined __stub___$ac_func
12667 return $ac_func ();
12672 rm -f conftest.$ac_objext conftest$ac_exeext
12673 if { (ac_try="$ac_link"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_link") 2>conftest.er1
12681 grep -v '^ *+' conftest.er1 >conftest.err
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12685 (exit $ac_status); } && {
12686 test -z "$ac_c_werror_flag" ||
12687 test ! -s conftest.err
12688 } && test -s conftest$ac_exeext &&
12689 $as_test_x conftest$ac_exeext; then
12690 eval "$as_ac_var=yes"
12692 echo "$as_me: failed program was
:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 eval "$as_ac_var=no
"
12698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12699 conftest$ac_exeext conftest.$ac_ext
12701 ac_res=`eval echo '${'$as_ac_var'}'`
12702 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12703 echo "${ECHO_T}$ac_res" >&6; }
12704 if test `eval echo '${'$as_ac_var'}'` = yes; then
12705 cat >>confdefs.h <<_ACEOF
12706 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12712 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
12713 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
12714 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12715 echo $ECHO_N "(cached
) $ECHO_C" >&6
12717 if test "$cross_compiling" = yes; then
12718 ac_cv_func_mmap_fixed_mapped=no
12720 cat >conftest.$ac_ext <<_ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12726 $ac_includes_default
12727 /* malloc might have been renamed as rpl_malloc. */
12730 /* Thanks to Mike Haertel and Jim Avera for this test.
12731 Here is a matrix of mmap possibilities:
12732 mmap private not fixed
12733 mmap private fixed at somewhere currently unmapped
12734 mmap private fixed at somewhere already mapped
12735 mmap shared not fixed
12736 mmap shared fixed at somewhere currently unmapped
12737 mmap shared fixed at somewhere already mapped
12738 For private mappings, we should verify that changes cannot be read()
12739 back from the file, nor mmap's back from the file at a different
12740 address. (There have been systems where private was not correctly
12741 implemented like the infamous i386 svr4.0, and systems where the
12742 VM page cache was not coherent with the file system buffer cache
12743 like early versions of FreeBSD and possibly contemporary NetBSD.)
12744 For shared mappings, we should conversely verify that changes get
12745 propagated back to all the places they're supposed to be.
12747 Grep wants private fixed already mapped.
12748 The main things grep needs to know about mmap are:
12749 * does it exist and is it safe to write into the mmap'd area
12750 * how to use it (BSD variants) */
12753 #include <sys/mman.h>
12755 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12759 /* This mess was copied from the GNU getpagesize.h. */
12760 #ifndef HAVE_GETPAGESIZE
12761 /* Assume that all systems that can run configure have sys/param.h. */
12762 # ifndef HAVE_SYS_PARAM_H
12763 # define HAVE_SYS_PARAM_H 1
12766 # ifdef _SC_PAGESIZE
12767 # define getpagesize() sysconf(_SC_PAGESIZE)
12768 # else /* no _SC_PAGESIZE */
12769 # ifdef HAVE_SYS_PARAM_H
12770 # include <sys/param.h>
12771 # ifdef EXEC_PAGESIZE
12772 # define getpagesize() EXEC_PAGESIZE
12773 # else /* no EXEC_PAGESIZE */
12775 # define getpagesize() NBPG * CLSIZE
12778 # endif /* no CLSIZE */
12779 # else /* no NBPG */
12781 # define getpagesize() NBPC
12782 # else /* no NBPC */
12784 # define getpagesize() PAGESIZE
12785 # endif /* PAGESIZE */
12786 # endif /* no NBPC */
12787 # endif /* no NBPG */
12788 # endif /* no EXEC_PAGESIZE */
12789 # else /* no HAVE_SYS_PARAM_H */
12790 # define getpagesize() 8192 /* punt totally */
12791 # endif /* no HAVE_SYS_PARAM_H */
12792 # endif /* no _SC_PAGESIZE */
12794 #endif /* no HAVE_GETPAGESIZE */
12799 char *data, *data2, *data3;
12803 pagesize = getpagesize ();
12805 /* First, make a file with some known garbage in it. */
12806 data = (char *) malloc (pagesize);
12809 for (i = 0; i < pagesize; ++i)
12810 *(data + i) = rand ();
12812 fd = creat ("conftest.mmap
", 0600);
12815 if (write (fd, data, pagesize) != pagesize)
12819 /* Next, try to mmap the file at a fixed address which already has
12820 something else allocated at it. If we can, also make sure that
12821 we see the same garbage. */
12822 fd = open ("conftest.mmap
", O_RDWR);
12825 data2 = (char *) malloc (2 * pagesize);
12828 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12829 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12830 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12832 for (i = 0; i < pagesize; ++i)
12833 if (*(data + i) != *(data2 + i))
12836 /* Finally, make sure that changes to the mapped area do not
12837 percolate back to the file as seen by read(). (This is a bug on
12838 some variants of i386 svr4.0.) */
12839 for (i = 0; i < pagesize; ++i)
12840 *(data2 + i) = *(data2 + i) + 1;
12841 data3 = (char *) malloc (pagesize);
12844 if (read (fd, data3, pagesize) != pagesize)
12846 for (i = 0; i < pagesize; ++i)
12847 if (*(data + i) != *(data3 + i))
12853 rm -f conftest$ac_exeext
12854 if { (ac_try="$ac_link"
12855 case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12860 (eval "$ac_link") 2>&5
12862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12864 { (case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_try") 2>&5
12871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_cv_func_mmap_fixed_mapped=yes
12875 echo "$as_me: program exited with status
$ac_status" >&5
12876 echo "$as_me: failed program was
:" >&5
12877 sed 's/^/| /' conftest.$ac_ext >&5
12879 ( exit $ac_status )
12880 ac_cv_func_mmap_fixed_mapped=no
12882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12887 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
12888 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12889 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12891 cat >>confdefs.h <<\_ACEOF
12892 #define HAVE_MMAP 1
12896 rm -f conftest.mmap
12900 for ac_header in sys/select.h sys/socket.h
12902 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12903 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12904 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12905 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12906 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12907 echo $ECHO_N "(cached
) $ECHO_C" >&6
12909 ac_res=`eval echo '${'$as_ac_Header'}'`
12910 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12911 echo "${ECHO_T}$ac_res" >&6; }
12913 # Is the header compilable?
12914 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12915 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12916 cat >conftest.$ac_ext <<_ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h. */
12922 $ac_includes_default
12923 #include <$ac_header>
12925 rm -f conftest.$ac_objext
12926 if { (ac_try="$ac_compile"
12927 case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_compile") 2>conftest.er1
12934 grep -v '^ *+' conftest.er1 >conftest.err
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12938 (exit $ac_status); } && {
12939 test -z "$ac_c_werror_flag" ||
12940 test ! -s conftest.err
12941 } && test -s conftest.$ac_objext; then
12942 ac_header_compiler=yes
12944 echo "$as_me: failed program was
:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12947 ac_header_compiler=no
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12952 echo "${ECHO_T}$ac_header_compiler" >&6; }
12954 # Is the header present?
12955 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12956 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12957 cat >conftest.$ac_ext <<_ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 #include <$ac_header>
12965 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12966 case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12973 grep -v '^ *+' conftest.er1 >conftest.err
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12977 (exit $ac_status); } >/dev/null && {
12978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12979 test ! -s conftest.err
12981 ac_header_preproc=yes
12983 echo "$as_me: failed program was
:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12986 ac_header_preproc=no
12989 rm -f conftest.err conftest.$ac_ext
12990 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12991 echo "${ECHO_T}$ac_header_preproc" >&6; }
12993 # So? What about this header?
12994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12996 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12997 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12998 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
13000 ac_header_preproc=yes
13003 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
13004 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
13005 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
13006 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
13007 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
13008 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
13009 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
13010 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
13011 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
13012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
13013 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
13014 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
13018 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13019 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13020 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13021 echo $ECHO_N "(cached
) $ECHO_C" >&6
13023 eval "$as_ac_Header=\
$ac_header_preproc"
13025 ac_res=`eval echo '${'$as_ac_Header'}'`
13026 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13027 echo "${ECHO_T}$ac_res" >&6; }
13030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13031 cat >>confdefs.h <<_ACEOF
13032 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
13039 { echo "$as_me:$LINENO: checking types of arguments
for select" >&5
13040 echo $ECHO_N "checking types of arguments
for select...
$ECHO_C" >&6; }
13041 if test "${ac_cv_func_select_args+set}" = set; then
13042 echo $ECHO_N "(cached
) $ECHO_C" >&6
13044 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13045 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13046 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13047 cat >conftest.$ac_ext <<_ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13053 $ac_includes_default
13054 #ifdef HAVE_SYS_SELECT_H
13055 # include <sys/select.h>
13057 #ifdef HAVE_SYS_SOCKET_H
13058 # include <sys/socket.h>
13064 extern int select ($ac_arg1,
13065 $ac_arg234, $ac_arg234, $ac_arg234,
13071 rm -f conftest.$ac_objext
13072 if { (ac_try="$ac_compile"
13073 case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13077 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_compile") 2>conftest.er1
13080 grep -v '^ *+' conftest.er1 >conftest.err
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13084 (exit $ac_status); } && {
13085 test -z "$ac_c_werror_flag" ||
13086 test ! -s conftest.err
13087 } && test -s conftest.$ac_objext; then
13088 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13090 echo "$as_me: failed program was
:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13100 # Provide a safe default value.
13101 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13104 { echo "$as_me:$LINENO: result
: $ac_cv_func_select_args" >&5
13105 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13106 ac_save_IFS=$IFS; IFS=','
13107 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13111 cat >>confdefs.h <<_ACEOF
13112 #define SELECT_TYPE_ARG1 $1
13116 cat >>confdefs.h <<_ACEOF
13117 #define SELECT_TYPE_ARG234 ($2)
13121 cat >>confdefs.h <<_ACEOF
13122 #define SELECT_TYPE_ARG5 ($3)
13127 { echo "$as_me:$LINENO: checking
for function prototypes
" >&5
13128 echo $ECHO_N "checking
for function prototypes...
$ECHO_C" >&6; }
13129 if test "$ac_cv_prog_cc_c89" != no; then
13130 { echo "$as_me:$LINENO: result
: yes" >&5
13131 echo "${ECHO_T}yes" >&6; }
13133 cat >>confdefs.h <<\_ACEOF
13134 #define PROTOTYPES 1
13138 cat >>confdefs.h <<\_ACEOF
13139 #define __PROTOTYPES 1
13143 { echo "$as_me:$LINENO: result
: no
" >&5
13144 echo "${ECHO_T}no
" >&6; }
13147 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed
" >&5
13148 echo $ECHO_N "checking whether setvbuf arguments are reversed...
$ECHO_C" >&6; }
13149 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13150 echo $ECHO_N "(cached
) $ECHO_C" >&6
13152 ac_cv_func_setvbuf_reversed=no
13153 cat >conftest.$ac_ext <<_ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13161 int (setvbuf) (FILE *, int, char *, size_t);
13166 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_link") 2>conftest.er1
13180 grep -v '^ *+' conftest.er1 >conftest.err
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest$ac_exeext &&
13188 $as_test_x conftest$ac_exeext; then
13189 cat >conftest.$ac_ext <<_ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13197 int (setvbuf) (FILE *, int, char *, size_t);
13202 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13207 rm -f conftest.$ac_objext conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_link") 2>conftest.er1
13216 grep -v '^ *+' conftest.er1 >conftest.err
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13220 (exit $ac_status); } && {
13221 test -z "$ac_c_werror_flag" ||
13222 test ! -s conftest.err
13223 } && test -s conftest$ac_exeext &&
13224 $as_test_x conftest$ac_exeext; then
13225 # It compiles and links either way, so it must not be declared
13226 # with a prototype and most likely this is a K&R C compiler.
13228 if test "$cross_compiling" = yes; then
13229 : # Assume setvbuf is not reversed when cross-compiling.
13231 cat >conftest.$ac_ext <<_ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13237 $ac_includes_default
13241 /* This call has the arguments reversed.
13242 A reversed system may check and see that the address of buf
13243 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13245 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13248 return 0; /* Non-reversed systems SEGV here. */
13253 rm -f conftest$ac_exeext
13254 if { (ac_try="$ac_link"
13255 case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_link") 2>&5
13262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13264 { (case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_try") 2>&5
13271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13272 (exit $ac_status); }; }; then
13273 ac_cv_func_setvbuf_reversed=yes
13275 echo "$as_me: program exited with status
$ac_status" >&5
13276 echo "$as_me: failed program was
:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13284 ac_cv_func_setvbuf_reversed=yes
13286 echo "$as_me: failed program was
:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13293 conftest$ac_exeext conftest.$ac_ext
13295 echo "$as_me: failed program was
:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13302 conftest$ac_exeext conftest.$ac_ext
13304 { echo "$as_me:$LINENO: result
: $ac_cv_func_setvbuf_reversed" >&5
13305 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13306 if test $ac_cv_func_setvbuf_reversed = yes; then
13308 cat >>confdefs.h <<\_ACEOF
13309 #define SETVBUF_REVERSED 1
13314 { echo "$as_me:$LINENO: checking
return type of signal handlers
" >&5
13315 echo $ECHO_N "checking
return type of signal handlers...
$ECHO_C" >&6; }
13316 if test "${ac_cv_type_signal+set}" = set; then
13317 echo $ECHO_N "(cached
) $ECHO_C" >&6
13319 cat >conftest.$ac_ext <<_ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h. */
13325 #include <sys/types.h>
13326 #include <signal.h>
13331 return *(signal (0, 0)) (0) == 1;
13336 rm -f conftest.$ac_objext
13337 if { (ac_try="$ac_compile"
13338 case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_compile") 2>conftest.er1
13345 grep -v '^ *+' conftest.er1 >conftest.err
13347 cat conftest.err >&5
13348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13349 (exit $ac_status); } && {
13350 test -z "$ac_c_werror_flag" ||
13351 test ! -s conftest.err
13352 } && test -s conftest.$ac_objext; then
13353 ac_cv_type_signal=int
13355 echo "$as_me: failed program was
:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13358 ac_cv_type_signal=void
13361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13363 { echo "$as_me:$LINENO: result
: $ac_cv_type_signal" >&5
13364 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13366 cat >>confdefs.h <<_ACEOF
13367 #define RETSIGTYPE $ac_cv_type_signal
13371 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash
" >&5
13372 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash...
$ECHO_C" >&6; }
13373 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13374 echo $ECHO_N "(cached
) $ECHO_C" >&6
13376 rm -f conftest.sym conftest.file
13377 echo >conftest.file
13378 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13379 if test "$cross_compiling" = yes; then
13380 ac_cv_func_lstat_dereferences_slashed_symlink=no
13382 cat >conftest.$ac_ext <<_ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 $ac_includes_default
13393 /* Linux will dereference the symlink and fail.
13394 That is better in the sense that it means we will not
13395 have to compile and use the lstat wrapper. */
13396 return lstat ("conftest.sym
/", &sbuf) == 0;
13401 rm -f conftest$ac_exeext
13402 if { (ac_try="$ac_link"
13403 case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_link") 2>&5
13410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13412 { (case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_try") 2>&5
13419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13423 echo "$as_me: program exited with status
$ac_status" >&5
13424 echo "$as_me: failed program was
:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13427 ( exit $ac_status )
13428 ac_cv_func_lstat_dereferences_slashed_symlink=no
13430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13435 # If the `ln -s' command failed, then we probably don't even
13436 # have an lstat function.
13437 ac_cv_func_lstat_dereferences_slashed_symlink=no
13439 rm -f conftest.sym conftest.file
13442 { echo "$as_me:$LINENO: result
: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13443 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13445 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13447 cat >>confdefs.h <<_ACEOF
13448 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13452 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13453 case " $LIBOBJS " in
13454 *" lstat.
$ac_objext "* ) ;;
13455 *) LIBOBJS="$LIBOBJS lstat.
$ac_objext"
13461 { echo "$as_me:$LINENO: checking whether stat accepts an empty string
" >&5
13462 echo $ECHO_N "checking whether stat accepts an empty string...
$ECHO_C" >&6; }
13463 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13464 echo $ECHO_N "(cached
) $ECHO_C" >&6
13466 if test "$cross_compiling" = yes; then
13467 ac_cv_func_stat_empty_string_bug=yes
13469 cat >conftest.$ac_ext <<_ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 $ac_includes_default
13480 return stat ("", &sbuf) == 0;
13485 rm -f conftest$ac_exeext
13486 if { (ac_try="$ac_link"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_link") 2>&5
13494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13496 { (case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13501 (eval "$ac_try") 2>&5
13503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 ac_cv_func_stat_empty_string_bug=no
13507 echo "$as_me: program exited with status
$ac_status" >&5
13508 echo "$as_me: failed program was
:" >&5
13509 sed 's/^/| /' conftest.$ac_ext >&5
13511 ( exit $ac_status )
13512 ac_cv_func_stat_empty_string_bug=yes
13514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13519 { echo "$as_me:$LINENO: result
: $ac_cv_func_stat_empty_string_bug" >&5
13520 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13521 if test $ac_cv_func_stat_empty_string_bug = yes; then
13522 case " $LIBOBJS " in
13523 *" stat.
$ac_objext "* ) ;;
13524 *) LIBOBJS="$LIBOBJS stat.
$ac_objext"
13529 cat >>confdefs.h <<_ACEOF
13530 #define HAVE_STAT_EMPTY_STRING_BUG 1
13535 { echo "$as_me:$LINENO: checking
for working strcoll
" >&5
13536 echo $ECHO_N "checking
for working strcoll...
$ECHO_C" >&6; }
13537 if test "${ac_cv_func_strcoll_works+set}" = set; then
13538 echo $ECHO_N "(cached
) $ECHO_C" >&6
13540 if test "$cross_compiling" = yes; then
13541 ac_cv_func_strcoll_works=no
13543 cat >conftest.$ac_ext <<_ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13549 $ac_includes_default
13553 return (strcoll ("abc
", "def
") >= 0 ||
13554 strcoll ("ABC
", "DEF
") >= 0 ||
13555 strcoll ("123", "456") >= 0)
13560 rm -f conftest$ac_exeext
13561 if { (ac_try="$ac_link"
13562 case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_link") 2>&5
13569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13571 { (case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_try") 2>&5
13578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_cv_func_strcoll_works=yes
13582 echo "$as_me: program exited with status
$ac_status" >&5
13583 echo "$as_me: failed program was
:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13586 ( exit $ac_status )
13587 ac_cv_func_strcoll_works=no
13589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13594 { echo "$as_me:$LINENO: result
: $ac_cv_func_strcoll_works" >&5
13595 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13596 if test $ac_cv_func_strcoll_works = yes; then
13598 cat >>confdefs.h <<\_ACEOF
13599 #define HAVE_STRCOLL 1
13605 for ac_func in strftime
13607 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
13608 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
13609 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
13610 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
13611 echo $ECHO_N "(cached
) $ECHO_C" >&6
13613 cat >conftest.$ac_ext <<_ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13621 #define $ac_func innocuous_$ac_func
13623 /* System header to define __stub macros and hopefully few prototypes,
13624 which can conflict with char $ac_func (); below.
13625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13626 <limits.h> exists even on freestanding compilers. */
13629 # include <limits.h>
13631 # include <assert.h>
13636 /* Override any GCC internal prototype to avoid an error.
13637 Use char because int might match the return type of a GCC
13638 builtin and then its argument prototype would still apply. */
13643 /* The GNU C library defines this for functions which it implements
13644 to always fail with ENOSYS. Some functions are actually named
13645 something starting with __ and the normal name is an alias. */
13646 #if defined __stub_$ac_func || defined __stub___$ac_func
13653 return $ac_func ();
13658 rm -f conftest.$ac_objext conftest$ac_exeext
13659 if { (ac_try="$ac_link"
13660 case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13665 (eval "$ac_link") 2>conftest.er1
13667 grep -v '^ *+' conftest.er1 >conftest.err
13669 cat conftest.err >&5
13670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13671 (exit $ac_status); } && {
13672 test -z "$ac_c_werror_flag" ||
13673 test ! -s conftest.err
13674 } && test -s conftest$ac_exeext &&
13675 $as_test_x conftest$ac_exeext; then
13676 eval "$as_ac_var=yes"
13678 echo "$as_me: failed program was
:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13681 eval "$as_ac_var=no
"
13684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13685 conftest$ac_exeext conftest.$ac_ext
13687 ac_res=`eval echo '${'$as_ac_var'}'`
13688 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13689 echo "${ECHO_T}$ac_res" >&6; }
13690 if test `eval echo '${'$as_ac_var'}'` = yes; then
13691 cat >>confdefs.h <<_ACEOF
13692 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
13696 # strftime is in -lintl on SCO UNIX.
13697 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
13698 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
13699 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13700 echo $ECHO_N "(cached
) $ECHO_C" >&6
13702 ac_check_lib_save_LIBS=$LIBS
13703 LIBS="-lintl $LIBS"
13704 cat >conftest.$ac_ext <<_ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 /* Override any GCC internal prototype to avoid an error.
13712 Use char because int might match the return type of a GCC
13713 builtin and then its argument prototype would still apply. */
13721 return strftime ();
13726 rm -f conftest.$ac_objext conftest$ac_exeext
13727 if { (ac_try="$ac_link"
13728 case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_link") 2>conftest.er1
13735 grep -v '^ *+' conftest.er1 >conftest.err
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13739 (exit $ac_status); } && {
13740 test -z "$ac_c_werror_flag" ||
13741 test ! -s conftest.err
13742 } && test -s conftest$ac_exeext &&
13743 $as_test_x conftest$ac_exeext; then
13744 ac_cv_lib_intl_strftime=yes
13746 echo "$as_me: failed program was
:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13749 ac_cv_lib_intl_strftime=no
13752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13753 conftest$ac_exeext conftest.$ac_ext
13754 LIBS=$ac_check_lib_save_LIBS
13756 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
13757 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13758 if test $ac_cv_lib_intl_strftime = yes; then
13759 cat >>confdefs.h <<\_ACEOF
13760 #define HAVE_STRFTIME 1
13763 LIBS="-lintl $LIBS"
13769 { echo "$as_me:$LINENO: checking
for working strnlen
" >&5
13770 echo $ECHO_N "checking
for working strnlen...
$ECHO_C" >&6; }
13771 if test "${ac_cv_func_strnlen_working+set}" = set; then
13772 echo $ECHO_N "(cached
) $ECHO_C" >&6
13774 if test "$cross_compiling" = yes; then
13775 ac_cv_func_strnlen_working=no
13777 cat >conftest.$ac_ext <<_ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 $ac_includes_default
13789 #define S_LEN (sizeof S - 1)
13791 /* At least one implementation is buggy: that of AIX 4.3 would
13792 give strnlen (S, 1) == 3. */
13795 for (i = 0; i < S_LEN + 1; ++i)
13797 int expected = i <= S_LEN ? i : S_LEN;
13798 if (strnlen (S, i) != expected)
13807 rm -f conftest$ac_exeext
13808 if { (ac_try="$ac_link"
13809 case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_link") 2>&5
13816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13818 { (case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_try") 2>&5
13825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_cv_func_strnlen_working=yes
13829 echo "$as_me: program exited with status
$ac_status" >&5
13830 echo "$as_me: failed program was
:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13833 ( exit $ac_status )
13834 ac_cv_func_strnlen_working=no
13836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13841 { echo "$as_me:$LINENO: result
: $ac_cv_func_strnlen_working" >&5
13842 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13843 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13844 *" strnlen.
$ac_objext "* ) ;;
13845 *) LIBOBJS="$LIBOBJS strnlen.
$ac_objext"
13850 { echo "$as_me:$LINENO: checking
for working strtod
" >&5
13851 echo $ECHO_N "checking
for working strtod...
$ECHO_C" >&6; }
13852 if test "${ac_cv_func_strtod+set}" = set; then
13853 echo $ECHO_N "(cached
) $ECHO_C" >&6
13855 if test "$cross_compiling" = yes; then
13856 ac_cv_func_strtod=no
13858 cat >conftest.$ac_ext <<_ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13865 $ac_includes_default
13873 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13874 char *string = " +69";
13877 value = strtod (string, &term);
13878 if (value != 69 || term != (string + 4))
13883 /* Under Solaris 2.4, strtod returns the wrong value for the
13884 terminating character under some conditions. */
13885 char *string = "NaN
";
13887 strtod (string, &term);
13888 if (term != string && *(term - 1) == 0)
13895 rm -f conftest$ac_exeext
13896 if { (ac_try="$ac_link"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_link") 2>&5
13904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_func_strtod=yes
13917 echo "$as_me: program exited with status
$ac_status" >&5
13918 echo "$as_me: failed program was
:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 ( exit $ac_status )
13922 ac_cv_func_strtod=no
13924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13929 { echo "$as_me:$LINENO: result
: $ac_cv_func_strtod" >&5
13930 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13931 if test $ac_cv_func_strtod = no; then
13932 case " $LIBOBJS " in
13933 *" strtod.
$ac_objext "* ) ;;
13934 *) LIBOBJS="$LIBOBJS strtod.
$ac_objext"
13938 { echo "$as_me:$LINENO: checking
for pow
" >&5
13939 echo $ECHO_N "checking
for pow...
$ECHO_C" >&6; }
13940 if test "${ac_cv_func_pow+set}" = set; then
13941 echo $ECHO_N "(cached
) $ECHO_C" >&6
13943 cat >conftest.$ac_ext <<_ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13951 #define pow innocuous_pow
13953 /* System header to define __stub macros and hopefully few prototypes,
13954 which can conflict with char pow (); below.
13955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13956 <limits.h> exists even on freestanding compilers. */
13959 # include <limits.h>
13961 # include <assert.h>
13966 /* Override any GCC internal prototype to avoid an error.
13967 Use char because int might match the return type of a GCC
13968 builtin and then its argument prototype would still apply. */
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined __stub_pow || defined __stub___pow
13988 rm -f conftest.$ac_objext conftest$ac_exeext
13989 if { (ac_try="$ac_link"
13990 case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_link") 2>conftest.er1
13997 grep -v '^ *+' conftest.er1 >conftest.err
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14001 (exit $ac_status); } && {
14002 test -z "$ac_c_werror_flag" ||
14003 test ! -s conftest.err
14004 } && test -s conftest$ac_exeext &&
14005 $as_test_x conftest$ac_exeext; then
14008 echo "$as_me: failed program was
:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14015 conftest$ac_exeext conftest.$ac_ext
14017 { echo "$as_me:$LINENO: result
: $ac_cv_func_pow" >&5
14018 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14020 if test $ac_cv_func_pow = no; then
14021 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
14022 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
14023 if test "${ac_cv_lib_m_pow+set}" = set; then
14024 echo $ECHO_N "(cached
) $ECHO_C" >&6
14026 ac_check_lib_save_LIBS=$LIBS
14028 cat >conftest.$ac_ext <<_ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14035 /* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (ac_try="$ac_link"
14052 case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_link") 2>conftest.er1
14059 grep -v '^ *+' conftest.er1 >conftest.err
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14063 (exit $ac_status); } && {
14064 test -z "$ac_c_werror_flag" ||
14065 test ! -s conftest.err
14066 } && test -s conftest$ac_exeext &&
14067 $as_test_x conftest$ac_exeext; then
14068 ac_cv_lib_m_pow=yes
14070 echo "$as_me: failed program was
:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14077 conftest$ac_exeext conftest.$ac_ext
14078 LIBS=$ac_check_lib_save_LIBS
14080 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
14081 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14082 if test $ac_cv_lib_m_pow = yes; then
14085 { echo "$as_me:$LINENO: WARNING
: cannot
find library containing definition of pow
" >&5
14086 echo "$as_me: WARNING
: cannot
find library containing definition of pow
" >&2;}
14101 { echo "$as_me:$LINENO: checking whether utime accepts a null argument
" >&5
14102 echo $ECHO_N "checking whether utime accepts a null argument...
$ECHO_C" >&6; }
14103 if test "${ac_cv_func_utime_null+set}" = set; then
14104 echo $ECHO_N "(cached
) $ECHO_C" >&6
14106 rm -f conftest.data; >conftest.data
14107 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14108 if test "$cross_compiling" = yes; then
14109 ac_cv_func_utime_null=no
14111 cat >conftest.$ac_ext <<_ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 $ac_includes_default
14118 #ifdef HAVE_UTIME_H
14119 # include <utime.h>
14125 return ! (stat ("conftest.data
", &s) == 0
14126 && utime ("conftest.data
", 0) == 0
14127 && stat ("conftest.data
", &t) == 0
14128 && t.st_mtime >= s.st_mtime
14129 && t.st_mtime - s.st_mtime < 120);
14134 rm -f conftest$ac_exeext
14135 if { (ac_try="$ac_link"
14136 case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_link") 2>&5
14143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14145 { (case "(($ac_try" in
14146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14147 *) ac_try_echo=$ac_try;;
14149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14150 (eval "$ac_try") 2>&5
14152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14153 (exit $ac_status); }; }; then
14154 ac_cv_func_utime_null=yes
14156 echo "$as_me: program exited with status
$ac_status" >&5
14157 echo "$as_me: failed program was
:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14160 ( exit $ac_status )
14161 ac_cv_func_utime_null=no
14163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14168 { echo "$as_me:$LINENO: result
: $ac_cv_func_utime_null" >&5
14169 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14170 if test $ac_cv_func_utime_null = yes; then
14172 cat >>confdefs.h <<\_ACEOF
14173 #define HAVE_UTIME_NULL 1
14177 rm -f conftest.data
14180 for ac_func in vprintf
14182 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14183 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14184 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14185 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14186 echo $ECHO_N "(cached
) $ECHO_C" >&6
14188 cat >conftest.$ac_ext <<_ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14196 #define $ac_func innocuous_$ac_func
14198 /* System header to define __stub macros and hopefully few prototypes,
14199 which can conflict with char $ac_func (); below.
14200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14201 <limits.h> exists even on freestanding compilers. */
14204 # include <limits.h>
14206 # include <assert.h>
14211 /* Override any GCC internal prototype to avoid an error.
14212 Use char because int might match the return type of a GCC
14213 builtin and then its argument prototype would still apply. */
14218 /* The GNU C library defines this for functions which it implements
14219 to always fail with ENOSYS. Some functions are actually named
14220 something starting with __ and the normal name is an alias. */
14221 #if defined __stub_$ac_func || defined __stub___$ac_func
14228 return $ac_func ();
14233 rm -f conftest.$ac_objext conftest$ac_exeext
14234 if { (ac_try="$ac_link"
14235 case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_link") 2>conftest.er1
14242 grep -v '^ *+' conftest.er1 >conftest.err
14244 cat conftest.err >&5
14245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14246 (exit $ac_status); } && {
14247 test -z "$ac_c_werror_flag" ||
14248 test ! -s conftest.err
14249 } && test -s conftest$ac_exeext &&
14250 $as_test_x conftest$ac_exeext; then
14251 eval "$as_ac_var=yes"
14253 echo "$as_me: failed program was
:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14256 eval "$as_ac_var=no
"
14259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14260 conftest$ac_exeext conftest.$ac_ext
14262 ac_res=`eval echo '${'$as_ac_var'}'`
14263 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14264 echo "${ECHO_T}$ac_res" >&6; }
14265 if test `eval echo '${'$as_ac_var'}'` = yes; then
14266 cat >>confdefs.h <<_ACEOF
14267 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14270 { echo "$as_me:$LINENO: checking
for _doprnt
" >&5
14271 echo $ECHO_N "checking
for _doprnt...
$ECHO_C" >&6; }
14272 if test "${ac_cv_func__doprnt+set}" = set; then
14273 echo $ECHO_N "(cached
) $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14283 #define _doprnt innocuous__doprnt
14285 /* System header to define __stub macros and hopefully few prototypes,
14286 which can conflict with char _doprnt (); below.
14287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14288 <limits.h> exists even on freestanding compilers. */
14291 # include <limits.h>
14293 # include <assert.h>
14298 /* Override any GCC internal prototype to avoid an error.
14299 Use char because int might match the return type of a GCC
14300 builtin and then its argument prototype would still apply. */
14305 /* The GNU C library defines this for functions which it implements
14306 to always fail with ENOSYS. Some functions are actually named
14307 something starting with __ and the normal name is an alias. */
14308 #if defined __stub__doprnt || defined __stub____doprnt
14320 rm -f conftest.$ac_objext conftest$ac_exeext
14321 if { (ac_try="$ac_link"
14322 case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_link") 2>conftest.er1
14329 grep -v '^ *+' conftest.er1 >conftest.err
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14333 (exit $ac_status); } && {
14334 test -z "$ac_c_werror_flag" ||
14335 test ! -s conftest.err
14336 } && test -s conftest$ac_exeext &&
14337 $as_test_x conftest$ac_exeext; then
14338 ac_cv_func__doprnt=yes
14340 echo "$as_me: failed program was
:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 ac_cv_func__doprnt=no
14346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14347 conftest$ac_exeext conftest.$ac_ext
14349 { echo "$as_me:$LINENO: result
: $ac_cv_func__doprnt" >&5
14350 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14351 if test $ac_cv_func__doprnt = yes; then
14353 cat >>confdefs.h <<\_ACEOF
14354 #define HAVE_DOPRNT 1
14410 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
14412 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14413 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14414 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14415 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14416 echo $ECHO_N "(cached
) $ECHO_C" >&6
14418 cat >conftest.$ac_ext <<_ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14426 #define $ac_func innocuous_$ac_func
14428 /* System header to define __stub macros and hopefully few prototypes,
14429 which can conflict with char $ac_func (); below.
14430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14431 <limits.h> exists even on freestanding compilers. */
14434 # include <limits.h>
14436 # include <assert.h>
14441 /* Override any GCC internal prototype to avoid an error.
14442 Use char because int might match the return type of a GCC
14443 builtin and then its argument prototype would still apply. */
14448 /* The GNU C library defines this for functions which it implements
14449 to always fail with ENOSYS. Some functions are actually named
14450 something starting with __ and the normal name is an alias. */
14451 #if defined __stub_$ac_func || defined __stub___$ac_func
14458 return $ac_func ();
14463 rm -f conftest.$ac_objext conftest$ac_exeext
14464 if { (ac_try="$ac_link"
14465 case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_link") 2>conftest.er1
14472 grep -v '^ *+' conftest.er1 >conftest.err
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14476 (exit $ac_status); } && {
14477 test -z "$ac_c_werror_flag" ||
14478 test ! -s conftest.err
14479 } && test -s conftest$ac_exeext &&
14480 $as_test_x conftest$ac_exeext; then
14481 eval "$as_ac_var=yes"
14483 echo "$as_me: failed program was
:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 eval "$as_ac_var=no
"
14489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14490 conftest$ac_exeext conftest.$ac_ext
14492 ac_res=`eval echo '${'$as_ac_var'}'`
14493 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14494 echo "${ECHO_T}$ac_res" >&6; }
14495 if test `eval echo '${'$as_ac_var'}'` = yes; then
14496 cat >>confdefs.h <<_ACEOF
14497 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14504 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_INITIALIZER
" >&5
14505 echo $ECHO_N "checking
for PTHREAD_RWLOCK_INITIALIZER...
$ECHO_C" >&6; }
14506 cat >conftest.$ac_ext <<_ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 #include <pthread.h>
14516 int foo = PTHREAD_RWLOCK_INITIALIZER;
14521 rm -f conftest.$ac_objext conftest$ac_exeext
14522 if { (ac_try="$ac_link"
14523 case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_link") 2>conftest.er1
14530 grep -v '^ *+' conftest.er1 >conftest.err
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14534 (exit $ac_status); } && {
14535 test -z "$ac_c_werror_flag" ||
14536 test ! -s conftest.err
14537 } && test -s conftest$ac_exeext &&
14538 $as_test_x conftest$ac_exeext; then
14539 { echo "$as_me:$LINENO: result
: yes" >&5
14540 echo "${ECHO_T}yes" >&6; }
14542 cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14547 echo "$as_me: failed program was
:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 { echo "$as_me:$LINENO: result
: no
" >&5
14551 echo "${ECHO_T}no
" >&6; }
14555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14556 conftest$ac_exeext conftest.$ac_ext
14558 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP
" >&5
14559 echo $ECHO_N "checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP...
$ECHO_C" >&6; }
14560 cat >conftest.$ac_ext <<_ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <pthread.h>
14570 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14581 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_link") 2>conftest.er1
14584 grep -v '^ *+' conftest.er1 >conftest.err
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14588 (exit $ac_status); } && {
14589 test -z "$ac_c_werror_flag" ||
14590 test ! -s conftest.err
14591 } && test -s conftest$ac_exeext &&
14592 $as_test_x conftest$ac_exeext; then
14593 { echo "$as_me:$LINENO: result
: yes" >&5
14594 echo "${ECHO_T}yes" >&6; }
14596 cat >>confdefs.h <<\_ACEOF
14597 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14601 echo "$as_me: failed program was
:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 { echo "$as_me:$LINENO: result
: no
" >&5
14605 echo "${ECHO_T}no
" >&6; }
14609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14610 conftest$ac_exeext conftest.$ac_ext
14612 { echo "$as_me:$LINENO: checking
for compiler atomic operations
" >&5
14613 echo $ECHO_N "checking
for compiler atomic operations...
$ECHO_C" >&6; }
14614 cat >conftest.$ac_ext <<_ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14624 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14629 rm -f conftest.$ac_objext conftest$ac_exeext
14630 if { (ac_try="$ac_link"
14631 case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_link") 2>conftest.er1
14638 grep -v '^ *+' conftest.er1 >conftest.err
14640 cat conftest.err >&5
14641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14642 (exit $ac_status); } && {
14643 test -z "$ac_c_werror_flag" ||
14644 test ! -s conftest.err
14645 } && test -s conftest$ac_exeext &&
14646 $as_test_x conftest$ac_exeext; then
14647 { echo "$as_me:$LINENO: result
: yes" >&5
14648 echo "${ECHO_T}yes" >&6; }
14650 cat >>confdefs.h <<\_ACEOF
14651 #define HAVE_GCC_ATOMICS 1
14655 echo "$as_me: failed program was
:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 { echo "$as_me:$LINENO: result
: no
" >&5
14659 echo "${ECHO_T}no
" >&6; }
14663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14664 conftest$ac_exeext conftest.$ac_ext
14667 { echo "$as_me:$LINENO: checking
for compiler
'attribute pure' support
" >&5
14668 echo $ECHO_N "checking
for compiler
'attribute pure' support...
$ECHO_C" >&6; }
14669 cat >conftest.$ac_ext <<_ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14675 static int __attribute__((pure)) test(void) {}
14684 rm -f conftest.$ac_objext
14685 if { (ac_try="$ac_compile"
14686 case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_compile") 2>conftest.er1
14693 grep -v '^ *+' conftest.er1 >conftest.err
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14697 (exit $ac_status); } && {
14698 test -z "$ac_c_werror_flag" ||
14699 test ! -s conftest.err
14700 } && test -s conftest.$ac_objext; then
14701 { echo "$as_me:$LINENO: result
: yes" >&5
14702 echo "${ECHO_T}yes" >&6; }
14704 cat >>confdefs.h <<_ACEOF
14705 #define HAVE_ATTRIBUTE_pure 1
14709 echo "$as_me: failed program was
:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 { echo "$as_me:$LINENO: result
: no
" >&5
14713 echo "${ECHO_T}no
" >&6; }
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 { echo "$as_me:$LINENO: checking
for compiler
'attribute malloc' support
" >&5
14720 echo $ECHO_N "checking
for compiler
'attribute malloc' support...
$ECHO_C" >&6; }
14721 cat >conftest.$ac_ext <<_ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14727 static int __attribute__((malloc)) test(void) {}
14736 rm -f conftest.$ac_objext
14737 if { (ac_try="$ac_compile"
14738 case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_compile") 2>conftest.er1
14745 grep -v '^ *+' conftest.er1 >conftest.err
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14749 (exit $ac_status); } && {
14750 test -z "$ac_c_werror_flag" ||
14751 test ! -s conftest.err
14752 } && test -s conftest.$ac_objext; then
14753 { echo "$as_me:$LINENO: result
: yes" >&5
14754 echo "${ECHO_T}yes" >&6; }
14756 cat >>confdefs.h <<_ACEOF
14757 #define HAVE_ATTRIBUTE_malloc 1
14761 echo "$as_me: failed program was
:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14764 { echo "$as_me:$LINENO: result
: no
" >&5
14765 echo "${ECHO_T}no
" >&6; }
14768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771 { echo "$as_me:$LINENO: checking
for compiler
'attribute const' support
" >&5
14772 echo $ECHO_N "checking
for compiler
'attribute const' support...
$ECHO_C" >&6; }
14773 cat >conftest.$ac_ext <<_ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h. */
14779 static int __attribute__((const)) test(void) {}
14788 rm -f conftest.$ac_objext
14789 if { (ac_try="$ac_compile"
14790 case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_compile") 2>conftest.er1
14797 grep -v '^ *+' conftest.er1 >conftest.err
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14801 (exit $ac_status); } && {
14802 test -z "$ac_c_werror_flag" ||
14803 test ! -s conftest.err
14804 } && test -s conftest.$ac_objext; then
14805 { echo "$as_me:$LINENO: result
: yes" >&5
14806 echo "${ECHO_T}yes" >&6; }
14808 cat >>confdefs.h <<_ACEOF
14809 #define HAVE_ATTRIBUTE_const 1
14813 echo "$as_me: failed program was
:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 { echo "$as_me:$LINENO: result
: no
" >&5
14817 echo "${ECHO_T}no
" >&6; }
14820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823 { echo "$as_me:$LINENO: checking
for compiler
'attribute unused' support
" >&5
14824 echo $ECHO_N "checking
for compiler
'attribute unused' support...
$ECHO_C" >&6; }
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 static int __attribute__((unused)) test(void) {}
14840 rm -f conftest.$ac_objext
14841 if { (ac_try="$ac_compile"
14842 case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14847 (eval "$ac_compile") 2>conftest.er1
14849 grep -v '^ *+' conftest.er1 >conftest.err
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14853 (exit $ac_status); } && {
14854 test -z "$ac_c_werror_flag" ||
14855 test ! -s conftest.err
14856 } && test -s conftest.$ac_objext; then
14857 { echo "$as_me:$LINENO: result
: yes" >&5
14858 echo "${ECHO_T}yes" >&6; }
14860 cat >>confdefs.h <<_ACEOF
14861 #define HAVE_ATTRIBUTE_unused 1
14865 echo "$as_me: failed program was
:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 { echo "$as_me:$LINENO: result
: no
" >&5
14869 echo "${ECHO_T}no
" >&6; }
14872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14875 { echo "$as_me:$LINENO: checking
for compiler
'attribute always_inline' support
" >&5
14876 echo $ECHO_N "checking
for compiler
'attribute always_inline' support...
$ECHO_C" >&6; }
14877 cat >conftest.$ac_ext <<_ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14883 static int __attribute__((always_inline)) test(void) {}
14892 rm -f conftest.$ac_objext
14893 if { (ac_try="$ac_compile"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_compile") 2>conftest.er1
14901 grep -v '^ *+' conftest.er1 >conftest.err
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14905 (exit $ac_status); } && {
14906 test -z "$ac_c_werror_flag" ||
14907 test ! -s conftest.err
14908 } && test -s conftest.$ac_objext; then
14909 { echo "$as_me:$LINENO: result
: yes" >&5
14910 echo "${ECHO_T}yes" >&6; }
14912 cat >>confdefs.h <<_ACEOF
14913 #define HAVE_ATTRIBUTE_always_inline 1
14917 echo "$as_me: failed program was
:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 { echo "$as_me:$LINENO: result
: no
" >&5
14921 echo "${ECHO_T}no
" >&6; }
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14927 { echo "$as_me:$LINENO: checking
for -ffunction-sections support
" >&5
14928 echo $ECHO_N "checking
for -ffunction-sections support...
$ECHO_C" >&6; }
14929 saved_CFLAGS="${CFLAGS}"
14930 CFLAGS="${CFLAGS} -ffunction-sections"
14931 cat >conftest.$ac_ext <<_ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14946 rm -f conftest.$ac_objext
14947 if { (ac_try="$ac_compile"
14948 case "(($ac_try" in
14949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14950 *) ac_try_echo=$ac_try;;
14952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14953 (eval "$ac_compile") 2>conftest.er1
14955 grep -v '^ *+' conftest.er1 >conftest.err
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14959 (exit $ac_status); } && {
14960 test -z "$ac_c_werror_flag" ||
14961 test ! -s conftest.err
14962 } && test -s conftest.$ac_objext; then
14963 { echo "$as_me:$LINENO: result
: yes" >&5
14964 echo "${ECHO_T}yes" >&6; }
14965 saved_LDFLAGS="${LDFLAGS}"
14966 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
14967 { echo "$as_me:$LINENO: checking
for --gc-sections support
" >&5
14968 echo $ECHO_N "checking
for --gc-sections support...
$ECHO_C" >&6; }
14969 cat >conftest.$ac_ext <<_ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h. */
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (ac_try="$ac_link"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_link") 2>conftest.er1
14993 grep -v '^ *+' conftest.er1 >conftest.err
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14997 (exit $ac_status); } && {
14998 test -z "$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 } && test -s conftest$ac_exeext &&
15001 $as_test_x conftest$ac_exeext; then
15002 { echo "$as_me:$LINENO: result
: yes" >&5
15003 echo "${ECHO_T}yes" >&6; }
15004 GC_CFLAGS="-ffunction-sections"
15005 GC_LDFLAGS="-Wl,--gc-sections"
15007 echo "$as_me: failed program was
:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 { echo "$as_me:$LINENO: result
: no
" >&5
15011 echo "${ECHO_T}no
" >&6; }
15015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15016 conftest$ac_exeext conftest.$ac_ext
15017 LDFLAGS="${saved_LDFLAGS}"
15019 echo "$as_me: failed program was
:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 { echo "$as_me:$LINENO: result
: no
" >&5
15023 echo "${ECHO_T}no
" >&6; }
15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 CFLAGS="${saved_CFLAGS}"
15032 { echo "$as_me:$LINENO: checking
for res_ninit
" >&5
15033 echo $ECHO_N "checking
for res_ninit...
$ECHO_C" >&6; }
15034 cat >conftest.$ac_ext <<_ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 #include <resolv.h>
15044 int foo = res_ninit(NULL);
15049 rm -f conftest.$ac_objext conftest$ac_exeext
15050 if { (ac_try="$ac_link"
15051 case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15056 (eval "$ac_link") 2>conftest.er1
15058 grep -v '^ *+' conftest.er1 >conftest.err
15060 cat conftest.err >&5
15061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15062 (exit $ac_status); } && {
15063 test -z "$ac_c_werror_flag" ||
15064 test ! -s conftest.err
15065 } && test -s conftest$ac_exeext &&
15066 $as_test_x conftest$ac_exeext; then
15067 { echo "$as_me:$LINENO: result
: yes" >&5
15068 echo "${ECHO_T}yes" >&6; }
15070 cat >>confdefs.h <<\_ACEOF
15071 #define HAVE_RES_NINIT 1
15075 echo "$as_me: failed program was
:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 { echo "$as_me:$LINENO: result
: no
" >&5
15079 echo "${ECHO_T}no
" >&6; }
15083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15084 conftest$ac_exeext conftest.$ac_ext
15086 { echo "$as_me:$LINENO: checking
for RTLD_NOLOAD
" >&5
15087 echo $ECHO_N "checking
for RTLD_NOLOAD...
$ECHO_C" >&6; }
15088 cat >conftest.$ac_ext <<_ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15098 int foo = RTLD_NOLOAD;
15103 rm -f conftest.$ac_objext conftest$ac_exeext
15104 if { (ac_try="$ac_link"
15105 case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_link") 2>conftest.er1
15112 grep -v '^ *+' conftest.er1 >conftest.err
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15116 (exit $ac_status); } && {
15117 test -z "$ac_c_werror_flag" ||
15118 test ! -s conftest.err
15119 } && test -s conftest$ac_exeext &&
15120 $as_test_x conftest$ac_exeext; then
15121 { echo "$as_me:$LINENO: result
: yes" >&5
15122 echo "${ECHO_T}yes" >&6; }
15124 cat >>confdefs.h <<\_ACEOF
15125 #define HAVE_RTLD_NOLOAD 1
15129 echo "$as_me: failed program was
:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 { echo "$as_me:$LINENO: result
: no
" >&5
15133 echo "${ECHO_T}no
" >&6; }
15137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15138 conftest$ac_exeext conftest.$ac_ext
15140 { echo "$as_me:$LINENO: checking
for IP_MTU_DISCOVER
" >&5
15141 echo $ECHO_N "checking
for IP_MTU_DISCOVER...
$ECHO_C" >&6; }
15142 cat >conftest.$ac_ext <<_ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 #include <netinet/in.h>
15152 int foo = IP_MTU_DISCOVER;
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (ac_try="$ac_link"
15159 case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_link") 2>conftest.er1
15166 grep -v '^ *+' conftest.er1 >conftest.err
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15170 (exit $ac_status); } && {
15171 test -z "$ac_c_werror_flag" ||
15172 test ! -s conftest.err
15173 } && test -s conftest$ac_exeext &&
15174 $as_test_x conftest$ac_exeext; then
15175 { echo "$as_me:$LINENO: result
: yes" >&5
15176 echo "${ECHO_T}yes" >&6; }
15178 cat >>confdefs.h <<\_ACEOF
15179 #define HAVE_IP_MTU_DISCOVER 1
15183 echo "$as_me: failed program was
:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 { echo "$as_me:$LINENO: result
: no
" >&5
15187 echo "${ECHO_T}no
" >&6; }
15191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15192 conftest$ac_exeext conftest.$ac_ext
15194 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15195 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15196 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15197 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15198 echo $ECHO_N "(cached
) $ECHO_C" >&6
15200 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15201 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15203 # Is the header compilable?
15204 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h usability
" >&5
15205 echo $ECHO_N "checking libkern
/OSAtomic.h usability...
$ECHO_C" >&6; }
15206 cat >conftest.$ac_ext <<_ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212 $ac_includes_default
15213 #include <libkern/OSAtomic.h>
15215 rm -f conftest.$ac_objext
15216 if { (ac_try="$ac_compile"
15217 case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_compile") 2>conftest.er1
15224 grep -v '^ *+' conftest.er1 >conftest.err
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15228 (exit $ac_status); } && {
15229 test -z "$ac_c_werror_flag" ||
15230 test ! -s conftest.err
15231 } && test -s conftest.$ac_objext; then
15232 ac_header_compiler=yes
15234 echo "$as_me: failed program was
:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 ac_header_compiler=no
15240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15241 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15242 echo "${ECHO_T}$ac_header_compiler" >&6; }
15244 # Is the header present?
15245 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h presence
" >&5
15246 echo $ECHO_N "checking libkern
/OSAtomic.h presence...
$ECHO_C" >&6; }
15247 cat >conftest.$ac_ext <<_ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 #include <libkern/OSAtomic.h>
15255 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15256 case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15263 grep -v '^ *+' conftest.er1 >conftest.err
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15267 (exit $ac_status); } >/dev/null && {
15268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15269 test ! -s conftest.err
15271 ac_header_preproc=yes
15273 echo "$as_me: failed program was
:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 ac_header_preproc=no
15279 rm -f conftest.err conftest.$ac_ext
15280 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15281 echo "${ECHO_T}$ac_header_preproc" >&6; }
15283 # So? What about this header?
15284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15286 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15287 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15288 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the compiler
's result" >&5
15289 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result
" >&2;}
15290 ac_header_preproc=yes
15293 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&5
15294 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&2;}
15295 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&5
15296 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&2;}
15297 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&5
15298 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&2;}
15299 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15300 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15301 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the preprocessor
's result" >&5
15302 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result
" >&2;}
15303 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&5
15304 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&2;}
15308 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15309 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15310 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15311 echo $ECHO_N "(cached
) $ECHO_C" >&6
15313 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15315 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15316 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15319 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15321 cat >>confdefs.h <<_ACEOF
15322 #define HAVE_OSX_ATOMICS 1
15329 { echo "$as_me:$LINENO: checking
for int
" >&5
15330 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
15331 if test "${ac_cv_type_int+set}" = set; then
15332 echo $ECHO_N "(cached
) $ECHO_C" >&6
15334 cat >conftest.$ac_ext <<_ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 $ac_includes_default
15341 typedef int ac__type_new_;
15345 if ((ac__type_new_ *) 0)
15347 if (sizeof (ac__type_new_))
15353 rm -f conftest.$ac_objext
15354 if { (ac_try="$ac_compile"
15355 case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_compile") 2>conftest.er1
15362 grep -v '^ *+' conftest.er1 >conftest.err
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15366 (exit $ac_status); } && {
15367 test -z "$ac_c_werror_flag" ||
15368 test ! -s conftest.err
15369 } && test -s conftest.$ac_objext; then
15372 echo "$as_me: failed program was
:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
15381 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15383 # The cast to long int works around a bug in the HP C Compiler
15384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15386 # This bug is HP SR number 8606223364.
15387 { echo "$as_me:$LINENO: checking size of int
" >&5
15388 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
15389 if test "${ac_cv_sizeof_int+set}" = set; then
15390 echo $ECHO_N "(cached
) $ECHO_C" >&6
15392 if test "$cross_compiling" = yes; then
15393 # Depending upon the size, compute the lo and hi bounds.
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 $ac_includes_default
15401 typedef int ac__type_sizeof_;
15405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15412 rm -f conftest.$ac_objext
15413 if { (ac_try="$ac_compile"
15414 case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_compile") 2>conftest.er1
15421 grep -v '^ *+' conftest.er1 >conftest.err
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15425 (exit $ac_status); } && {
15426 test -z "$ac_c_werror_flag" ||
15427 test ! -s conftest.err
15428 } && test -s conftest.$ac_objext; then
15431 cat >conftest.$ac_ext <<_ACEOF
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h. */
15437 $ac_includes_default
15438 typedef int ac__type_sizeof_;
15442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15449 rm -f conftest.$ac_objext
15450 if { (ac_try="$ac_compile"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_compile") 2>conftest.er1
15458 grep -v '^ *+' conftest.er1 >conftest.err
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15462 (exit $ac_status); } && {
15463 test -z "$ac_c_werror_flag" ||
15464 test ! -s conftest.err
15465 } && test -s conftest.$ac_objext; then
15466 ac_hi=$ac_mid; break
15468 echo "$as_me: failed program was
:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15471 ac_lo=`expr $ac_mid + 1`
15472 if test $ac_lo -le $ac_mid; then
15476 ac_mid=`expr 2 '*' $ac_mid + 1`
15479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15482 echo "$as_me: failed program was
:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 cat >conftest.$ac_ext <<_ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15491 $ac_includes_default
15492 typedef int ac__type_sizeof_;
15496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15503 rm -f conftest.$ac_objext
15504 if { (ac_try="$ac_compile"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_compile") 2>conftest.er1
15512 grep -v '^ *+' conftest.er1 >conftest.err
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15516 (exit $ac_status); } && {
15517 test -z "$ac_c_werror_flag" ||
15518 test ! -s conftest.err
15519 } && test -s conftest.$ac_objext; then
15522 cat >conftest.$ac_ext <<_ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 $ac_includes_default
15529 typedef int ac__type_sizeof_;
15533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15540 rm -f conftest.$ac_objext
15541 if { (ac_try="$ac_compile"
15542 case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_compile") 2>conftest.er1
15549 grep -v '^ *+' conftest.er1 >conftest.err
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15553 (exit $ac_status); } && {
15554 test -z "$ac_c_werror_flag" ||
15555 test ! -s conftest.err
15556 } && test -s conftest.$ac_objext; then
15557 ac_lo=$ac_mid; break
15559 echo "$as_me: failed program was
:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15562 ac_hi=`expr '(' $ac_mid ')' - 1`
15563 if test $ac_mid -le $ac_hi; then
15567 ac_mid=`expr 2 '*' $ac_mid`
15570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573 echo "$as_me: failed program was
:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15583 # Binary search between lo and hi bounds.
15584 while test "x
$ac_lo" != "x
$ac_hi"; do
15585 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15586 cat >conftest.$ac_ext <<_ACEOF
15589 cat confdefs.h >>conftest.$ac_ext
15590 cat >>conftest.$ac_ext <<_ACEOF
15591 /* end confdefs.h. */
15592 $ac_includes_default
15593 typedef int ac__type_sizeof_;
15597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15604 rm -f conftest.$ac_objext
15605 if { (ac_try="$ac_compile"
15606 case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_compile") 2>conftest.er1
15613 grep -v '^ *+' conftest.er1 >conftest.err
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15617 (exit $ac_status); } && {
15618 test -z "$ac_c_werror_flag" ||
15619 test ! -s conftest.err
15620 } && test -s conftest.$ac_objext; then
15623 echo "$as_me: failed program was
:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15626 ac_lo=`expr '(' $ac_mid ')' + 1`
15629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15632 ?*) ac_cv_sizeof_int=$ac_lo;;
15633 '') if test "$ac_cv_type_int" = yes; then
15634 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
15635 See \
`config.log' for more details." >&5
15636 echo "$as_me: error: cannot compute sizeof (int)
15637 See \`config.log
' for more details." >&2;}
15638 { (exit 77); exit 77; }; }
15644 cat >conftest.$ac_ext <<_ACEOF
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h. */
15650 $ac_includes_default
15651 typedef int ac__type_sizeof_;
15652 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15653 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15655 #include <stdlib.h>
15660 FILE *f = fopen ("conftest.val", "w");
15663 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15665 long int i = longval ();
15666 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15668 fprintf (f, "%ld\n", i);
15672 unsigned long int i = ulongval ();
15673 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15675 fprintf (f, "%lu\n", i);
15677 return ferror (f) || fclose (f) != 0;
15683 rm -f conftest$ac_exeext
15684 if { (ac_try="$ac_link"
15685 case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_link") 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
15694 { (case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_try") 2>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 ac_cv_sizeof_int=`cat conftest.val`
15705 echo "$as_me: program exited with status $ac_status" >&5
15706 echo "$as_me: failed program was:" >&5
15707 sed 's
/^
/|
/' conftest.$ac_ext >&5
15709 ( exit $ac_status )
15710 if test "$ac_cv_type_int" = yes; then
15711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15712 See \`config.log' for more details.
" >&5
15713 echo "$as_me: error
: cannot compute sizeof
(int
)
15714 See \
`config.log' for more details." >&2;}
15715 { (exit 77); exit 77; }; }
15720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15724 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15725 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15729 cat >>confdefs.h <<_ACEOF
15730 #define SIZEOF_INT $ac_cv_sizeof_int
15735 # do the package library checks now
15738 if test "${USE_ALSA}" != "no"; then
15740 if test "x${ALSA_DIR}" != "x"; then
15741 if test -d ${ALSA_DIR}/lib; then
15742 pbxlibdir="-L${ALSA_DIR}/lib"
15744 pbxlibdir="-L${ALSA_DIR}"
15747 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
15748 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
15749 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 ac_check_lib_save_LIBS=$LIBS
15753 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15754 cat >conftest.$ac_ext <<_ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15761 /* Override any GCC internal prototype to avoid an error.
15762 Use char because int might match the return type of a GCC
15763 builtin and then its argument prototype would still apply. */
15767 char snd_spcm_init ();
15771 return snd_spcm_init ();
15776 rm -f conftest.$ac_objext conftest$ac_exeext
15777 if { (ac_try="$ac_link"
15778 case "(($ac_try" in
15779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15780 *) ac_try_echo
=$ac_try;;
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_link") 2>conftest.er1
15785 grep -v '^ *+' conftest.er1
>conftest.err
15787 cat conftest.err
>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } && {
15790 test -z "$ac_c_werror_flag" ||
15791 test ! -s conftest.err
15792 } && test -s conftest
$ac_exeext &&
15793 $as_test_x conftest
$ac_exeext; then
15794 ac_cv_lib_asound_snd_spcm_init
=yes
15796 echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.
$ac_ext >&5
15799 ac_cv_lib_asound_snd_spcm_init
=no
15802 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15803 conftest
$ac_exeext conftest.
$ac_ext
15804 LIBS
=$ac_check_lib_save_LIBS
15806 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
15807 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15808 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15815 if test "${AST_ALSA_FOUND}" = "yes"; then
15816 ALSA_LIB
="-lasound -lm -ldl"
15817 ALSA_HEADER_FOUND
="1"
15818 if test "x${ALSA_DIR}" != "x"; then
15819 ALSA_LIB
="${pbxlibdir} ${ALSA_LIB}"
15820 ALSA_INCLUDE
="-I${ALSA_DIR}/include"
15821 saved_cppflags
="${CPPFLAGS}"
15822 CPPFLAGS
="${CPPFLAGS} -I${ALSA_DIR}/include"
15823 if test "xalsa/asoundlib.h" != "x" ; then
15824 as_ac_Header
=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
15825 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15826 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15827 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15828 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 ac_res
=`eval echo '${'$as_ac_Header'}'`
15832 { echo "$as_me:$LINENO: result: $ac_res" >&5
15833 echo "${ECHO_T}$ac_res" >&6; }
15835 # Is the header compilable?
15836 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
15837 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
15838 cat >conftest.
$ac_ext <<_ACEOF
15841 cat confdefs.h
>>conftest.
$ac_ext
15842 cat >>conftest.
$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 $ac_includes_default
15845 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15847 rm -f conftest.
$ac_objext
15848 if { (ac_try
="$ac_compile"
15849 case "(($ac_try" in
15850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_compile") 2>conftest.er1
15856 grep -v '^ *+' conftest.er1 >conftest.err
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } && {
15861 test -z "$ac_c_werror_flag" ||
15862 test ! -s conftest.err
15863 } && test -s conftest.$ac_objext; then
15864 ac_header_compiler=yes
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 ac_header_compiler=no
15872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15874 echo "${ECHO_T}$ac_header_compiler" >&6; }
15876 # Is the header present?
15877 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
15878 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
15879 cat >conftest.$ac_ext <<_ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15887 if { (ac_try="$ac_cpp conftest.$ac_ext"
15888 case "(($ac_try" in
15889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15890 *) ac_try_echo
=$ac_try;;
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15895 grep -v '^ *+' conftest.er1
>conftest.err
15897 cat conftest.err
>&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } >/dev
/null
&& {
15900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15901 test ! -s conftest.err
15903 ac_header_preproc
=yes
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.
$ac_ext >&5
15908 ac_header_preproc
=no
15911 rm -f conftest.err conftest.
$ac_ext
15912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15913 echo "${ECHO_T}$ac_header_preproc" >&6; }
15915 # So? What about this header?
15916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15918 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15919 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
15921 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15922 ac_header_preproc
=yes
15925 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
15926 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15928 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
15930 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15932 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15934 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15936 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15940 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15941 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15942 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 eval "$as_ac_Header=\$ac_header_preproc"
15947 ac_res
=`eval echo '${'$as_ac_Header'}'`
15948 { echo "$as_me:$LINENO: result: $ac_res" >&5
15949 echo "${ECHO_T}$ac_res" >&6; }
15952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15953 ALSA_HEADER_FOUND
=1
15955 ALSA_HEADER_FOUND
=0
15960 CPPFLAGS
="${saved_cppflags}"
15962 if test "xalsa/asoundlib.h" != "x" ; then
15963 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15964 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15965 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15966 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15969 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15970 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15972 # Is the header compilable?
15973 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
15974 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
15975 cat >conftest.
$ac_ext <<_ACEOF
15978 cat confdefs.h
>>conftest.
$ac_ext
15979 cat >>conftest.
$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 $ac_includes_default
15982 #include <alsa/asoundlib.h>
15984 rm -f conftest.
$ac_objext
15985 if { (ac_try
="$ac_compile"
15986 case "(($ac_try" in
15987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_compile") 2>conftest.er1
15993 grep -v '^ *+' conftest.er1 >conftest.err
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } && {
15998 test -z "$ac_c_werror_flag" ||
15999 test ! -s conftest.err
16000 } && test -s conftest.$ac_objext; then
16001 ac_header_compiler=yes
16003 echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16006 ac_header_compiler=no
16009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16011 echo "${ECHO_T}$ac_header_compiler" >&6; }
16013 # Is the header present?
16014 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16015 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16016 cat >conftest.$ac_ext <<_ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16022 #include <alsa/asoundlib.h>
16024 if { (ac_try="$ac_cpp conftest.$ac_ext"
16025 case "(($ac_try" in
16026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16027 *) ac_try_echo
=$ac_try;;
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16032 grep -v '^ *+' conftest.er1
>conftest.err
16034 cat conftest.err
>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } >/dev
/null
&& {
16037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16038 test ! -s conftest.err
16040 ac_header_preproc
=yes
16042 echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.
$ac_ext >&5
16045 ac_header_preproc
=no
16048 rm -f conftest.err conftest.
$ac_ext
16049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16050 echo "${ECHO_T}$ac_header_preproc" >&6; }
16052 # So? What about this header?
16053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16055 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16056 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16057 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16058 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16059 ac_header_preproc
=yes
16062 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16063 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16065 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16067 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16069 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16071 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16073 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16077 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16078 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16079 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16080 echo $ECHO_N "(cached) $ECHO_C" >&6
16082 ac_cv_header_alsa_asoundlib_h
=$ac_header_preproc
16084 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16085 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16088 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16089 ALSA_HEADER_FOUND
=1
16091 ALSA_HEADER_FOUND
=0
16097 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16098 if test ! -z "${ALSA_MANDATORY}" ;
16100 { echo "$as_me:$LINENO: ***" >&5
16101 echo "$as_me: ***" >&6;}
16102 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16103 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16104 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16105 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16106 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16107 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16116 cat >>confdefs.h
<<_ACEOF
16117 #define HAVE_ALSA 1
16121 elif test ! -z "${ALSA_MANDATORY}";
16123 { echo "$as_me:$LINENO: ***" >&5
16124 echo "$as_me: ***" >&6;}
16125 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16126 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16127 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16128 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16129 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16130 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16137 if test "${USE_CURSES}" != "no"; then
16139 if test "x${CURSES_DIR}" != "x"; then
16140 if test -d ${CURSES_DIR}/lib
; then
16141 pbxlibdir
="-L${CURSES_DIR}/lib"
16143 pbxlibdir
="-L${CURSES_DIR}"
16146 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16147 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16148 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 ac_check_lib_save_LIBS
=$LIBS
16152 LIBS
="-lcurses ${pbxlibdir} $LIBS"
16153 cat >conftest.
$ac_ext <<_ACEOF
16156 cat confdefs.h
>>conftest.
$ac_ext
16157 cat >>conftest.
$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16160 /* Override any GCC internal prototype to avoid an error.
16161 Use char because int might match the return type of a GCC
16162 builtin and then its argument prototype would still apply. */
16175 rm -f conftest.
$ac_objext conftest
$ac_exeext
16176 if { (ac_try
="$ac_link"
16177 case "(($ac_try" in
16178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_link") 2>conftest.er1
16184 grep -v '^ *+' conftest.er1 >conftest.err
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && {
16189 test -z "$ac_c_werror_flag" ||
16190 test ! -s conftest.err
16191 } && test -s conftest$ac_exeext &&
16192 $as_test_x conftest$ac_exeext; then
16193 ac_cv_lib_curses_initscr=yes
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 ac_cv_lib_curses_initscr=no
16201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16202 conftest$ac_exeext conftest.$ac_ext
16203 LIBS=$ac_check_lib_save_LIBS
16205 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16206 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16207 if test $ac_cv_lib_curses_initscr = yes; then
16208 AST_CURSES_FOUND=yes
16210 AST_CURSES_FOUND=no
16214 if test "${AST_CURSES_FOUND}" = "yes"; then
16215 CURSES_LIB="-lcurses "
16216 CURSES_HEADER_FOUND="1"
16217 if test "x${CURSES_DIR}" != "x"; then
16218 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16219 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16220 saved_cppflags="${CPPFLAGS}"
16221 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16222 if test "xcurses.h" != "x" ; then
16223 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" |
$as_tr_sh`
16224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16225 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16226 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 ac_res=`eval echo '${'$as_ac_Header'}'`
16231 { echo "$as_me:$LINENO: result: $ac_res" >&5
16232 echo "${ECHO_T}$ac_res" >&6; }
16234 # Is the header compilable?
16235 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16236 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 $ac_includes_default
16244 #include <${CURSES_DIR}/include/curses.h>
16246 rm -f conftest.$ac_objext
16247 if { (ac_try="$ac_compile"
16248 case "(($ac_try" in
16249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16250 *) ac_try_echo
=$ac_try;;
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_compile") 2>conftest.er1
16255 grep -v '^ *+' conftest.er1
>conftest.err
16257 cat conftest.err
>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } && {
16260 test -z "$ac_c_werror_flag" ||
16261 test ! -s conftest.err
16262 } && test -s conftest.
$ac_objext; then
16263 ac_header_compiler
=yes
16265 echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.
$ac_ext >&5
16268 ac_header_compiler
=no
16271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16273 echo "${ECHO_T}$ac_header_compiler" >&6; }
16275 # Is the header present?
16276 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16277 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16278 cat >conftest.
$ac_ext <<_ACEOF
16281 cat confdefs.h
>>conftest.
$ac_ext
16282 cat >>conftest.
$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16284 #include <${CURSES_DIR}/include/curses.h>
16286 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16287 case "(($ac_try" in
16288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16289 *) ac_try_echo=$ac_try;;
16291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16294 grep -v '^ *+' conftest.er1 >conftest.err
16296 cat conftest.err >&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } >/dev/null && {
16299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16300 test ! -s conftest.err
16302 ac_header_preproc=yes
16304 echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16307 ac_header_preproc=no
16310 rm -f conftest.err conftest.$ac_ext
16311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16312 echo "${ECHO_T}$ac_header_preproc" >&6; }
16314 # So? What about this header?
16315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16317 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16318 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16320 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16321 ac_header_preproc=yes
16324 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16325 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16327 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16329 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16331 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16332 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16333 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16335 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16339 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16340 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16344 eval "$as_ac_Header=\$ac_header_preproc"
16346 ac_res=`eval echo '${'$as_ac_Header'}'`
16347 { echo "$as_me:$LINENO: result: $ac_res" >&5
16348 echo "${ECHO_T}$ac_res" >&6; }
16351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16352 CURSES_HEADER_FOUND=1
16354 CURSES_HEADER_FOUND=0
16359 CPPFLAGS="${saved_cppflags}"
16361 if test "xcurses.h" != "x" ; then
16362 if test "${ac_cv_header_curses_h+set}" = set; then
16363 { echo "$as_me:$LINENO: checking for curses.h" >&5
16364 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16365 if test "${ac_cv_header_curses_h+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16369 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16371 # Is the header compilable?
16372 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16373 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16374 cat >conftest.$ac_ext <<_ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 $ac_includes_default
16381 #include <curses.h>
16383 rm -f conftest.$ac_objext
16384 if { (ac_try="$ac_compile"
16385 case "(($ac_try" in
16386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16387 *) ac_try_echo
=$ac_try;;
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_compile") 2>conftest.er1
16392 grep -v '^ *+' conftest.er1
>conftest.err
16394 cat conftest.err
>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } && {
16397 test -z "$ac_c_werror_flag" ||
16398 test ! -s conftest.err
16399 } && test -s conftest.
$ac_objext; then
16400 ac_header_compiler
=yes
16402 echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.
$ac_ext >&5
16405 ac_header_compiler
=no
16408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16410 echo "${ECHO_T}$ac_header_compiler" >&6; }
16412 # Is the header present?
16413 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16414 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16415 cat >conftest.
$ac_ext <<_ACEOF
16418 cat confdefs.h
>>conftest.
$ac_ext
16419 cat >>conftest.
$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421 #include <curses.h>
16423 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16424 case "(($ac_try" in
16425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16431 grep -v '^ *+' conftest.er1 >conftest.err
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } >/dev/null && {
16436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16437 test ! -s conftest.err
16439 ac_header_preproc=yes
16441 echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16444 ac_header_preproc=no
16447 rm -f conftest.err conftest.$ac_ext
16448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16449 echo "${ECHO_T}$ac_header_preproc" >&6; }
16451 # So? What about this header?
16452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16454 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16455 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16457 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16458 ac_header_preproc=yes
16461 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16462 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16464 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16466 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16468 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16469 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16470 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16471 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16472 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16476 { echo "$as_me:$LINENO: checking for curses.h" >&5
16477 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16478 if test "${ac_cv_header_curses_h+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 ac_cv_header_curses_h=$ac_header_preproc
16483 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16484 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16487 if test $ac_cv_header_curses_h = yes; then
16488 CURSES_HEADER_FOUND=1
16490 CURSES_HEADER_FOUND=0
16496 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16497 if test ! -z "${CURSES_MANDATORY}" ;
16499 { echo "$as_me:$LINENO: ***" >&5
16500 echo "$as_me: ***" >&6;}
16501 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16502 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16503 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16504 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16505 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16506 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16515 cat >>confdefs.h <<_ACEOF
16516 #define HAVE_CURSES 1
16520 elif test ! -z "${CURSES_MANDATORY}";
16522 { echo "$as_me:$LINENO: ***" >&5
16523 echo "$as_me: ***" >&6;}
16524 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16525 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16526 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16527 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16528 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16529 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16538 if test "${USE_GSM}" != "no"; then
16539 if test "${GSM_DIR}" = "internal"; then
16541 elif test "${GSM_DIR}" != ""; then
16544 if test "${GSM_SYSTEM}" = "yes"; then
16546 if test "x${GSM_DIR}" != "x"; then
16547 if test -d ${GSM_DIR}/lib; then
16548 gsmlibdir="-L${GSM_DIR}/lib"
16550 gsmlibdir="-L${GSM_DIR}"
16553 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
16554 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
16555 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 ac_check_lib_save_LIBS=$LIBS
16559 LIBS="-lgsm ${gsmlibdir} $LIBS"
16560 cat >conftest.$ac_ext <<_ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16567 /* Override any GCC internal prototype to avoid an error.
16568 Use char because int might match the return type of a GCC
16569 builtin and then its argument prototype would still apply. */
16573 char gsm_create ();
16577 return gsm_create ();
16582 rm -f conftest.$ac_objext conftest$ac_exeext
16583 if { (ac_try="$ac_link"
16584 case "(($ac_try" in
16585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16586 *) ac_try_echo
=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_link") 2>conftest.er1
16591 grep -v '^ *+' conftest.er1
>conftest.err
16593 cat conftest.err
>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && {
16596 test -z "$ac_c_werror_flag" ||
16597 test ! -s conftest.err
16598 } && test -s conftest
$ac_exeext &&
16599 $as_test_x conftest
$ac_exeext; then
16600 ac_cv_lib_gsm_gsm_create
=yes
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.
$ac_ext >&5
16605 ac_cv_lib_gsm_gsm_create
=no
16608 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16609 conftest
$ac_exeext conftest.
$ac_ext
16610 LIBS
=$ac_check_lib_save_LIBS
16612 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
16613 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16614 if test $ac_cv_lib_gsm_gsm_create = yes; then
16616 cat >>confdefs.h
<<_ACEOF
16622 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16624 if test "x${GSM_DIR}" != "x"; then
16625 GSM_LIB
="${gsmlibdir} ${GSM_LIB}"
16626 GSM_INCLUDE
="-I${GSM_DIR}/include"
16632 if test "${GSM_INTERNAL}" = "yes"; then
16638 if test "${USE_IKSEMEL}" != "no"; then
16640 if test "x${IKSEMEL_DIR}" != "x"; then
16641 if test -d ${IKSEMEL_DIR}/lib
; then
16642 pbxlibdir
="-L${IKSEMEL_DIR}/lib"
16644 pbxlibdir
="-L${IKSEMEL_DIR}"
16647 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
16648 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
16649 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16652 ac_check_lib_save_LIBS
=$LIBS
16653 LIBS
="-liksemel ${pbxlibdir} $LIBS"
16654 cat >conftest.
$ac_ext <<_ACEOF
16657 cat confdefs.h
>>conftest.
$ac_ext
16658 cat >>conftest.
$ac_ext <<_ACEOF
16659 /* end confdefs.h. */
16661 /* Override any GCC internal prototype to avoid an error.
16662 Use char because int might match the return type of a GCC
16663 builtin and then its argument prototype would still apply. */
16667 char iks_start_sasl ();
16671 return iks_start_sasl ();
16676 rm -f conftest.
$ac_objext conftest
$ac_exeext
16677 if { (ac_try
="$ac_link"
16678 case "(($ac_try" in
16679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683 (eval "$ac_link") 2>conftest.er1
16685 grep -v '^ *+' conftest.er1 >conftest.err
16687 cat conftest.err >&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); } && {
16690 test -z "$ac_c_werror_flag" ||
16691 test ! -s conftest.err
16692 } && test -s conftest$ac_exeext &&
16693 $as_test_x conftest$ac_exeext; then
16694 ac_cv_lib_iksemel_iks_start_sasl=yes
16696 echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16699 ac_cv_lib_iksemel_iks_start_sasl=no
16702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16703 conftest$ac_exeext conftest.$ac_ext
16704 LIBS=$ac_check_lib_save_LIBS
16706 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16707 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16708 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16709 AST_IKSEMEL_FOUND=yes
16711 AST_IKSEMEL_FOUND=no
16715 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16716 IKSEMEL_LIB="-liksemel "
16717 IKSEMEL_HEADER_FOUND="1"
16718 if test "x${IKSEMEL_DIR}" != "x"; then
16719 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16720 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
16721 saved_cppflags="${CPPFLAGS}"
16722 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
16723 if test "xiksemel.h" != "x" ; then
16724 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" |
$as_tr_sh`
16725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16726 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16727 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 ac_res=`eval echo '${'$as_ac_Header'}'`
16732 { echo "$as_me:$LINENO: result: $ac_res" >&5
16733 echo "${ECHO_T}$ac_res" >&6; }
16735 # Is the header compilable?
16736 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
16737 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
16738 cat >conftest.$ac_ext <<_ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744 $ac_includes_default
16745 #include <${IKSEMEL_DIR}/include/iksemel.h>
16747 rm -f conftest.$ac_objext
16748 if { (ac_try="$ac_compile"
16749 case "(($ac_try" in
16750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16751 *) ac_try_echo
=$ac_try;;
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_compile") 2>conftest.er1
16756 grep -v '^ *+' conftest.er1
>conftest.err
16758 cat conftest.err
>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } && {
16761 test -z "$ac_c_werror_flag" ||
16762 test ! -s conftest.err
16763 } && test -s conftest.
$ac_objext; then
16764 ac_header_compiler
=yes
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.
$ac_ext >&5
16769 ac_header_compiler
=no
16772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16774 echo "${ECHO_T}$ac_header_compiler" >&6; }
16776 # Is the header present?
16777 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
16778 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
16779 cat >conftest.
$ac_ext <<_ACEOF
16782 cat confdefs.h
>>conftest.
$ac_ext
16783 cat >>conftest.
$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 #include <${IKSEMEL_DIR}/include/iksemel.h>
16787 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16788 case "(($ac_try" in
16789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16795 grep -v '^ *+' conftest.er1 >conftest.err
16797 cat conftest.err >&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } >/dev/null && {
16800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16801 test ! -s conftest.err
16803 ac_header_preproc=yes
16805 echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16808 ac_header_preproc=no
16811 rm -f conftest.err conftest.$ac_ext
16812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16813 echo "${ECHO_T}$ac_header_preproc" >&6; }
16815 # So? What about this header?
16816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16818 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16819 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
16821 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
16822 ac_header_preproc=yes
16825 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
16826 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
16827 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
16828 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
16829 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
16830 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
16831 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16832 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16833 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
16834 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
16835 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
16836 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
16840 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16841 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16845 eval "$as_ac_Header=\$ac_header_preproc"
16847 ac_res=`eval echo '${'$as_ac_Header'}'`
16848 { echo "$as_me:$LINENO: result: $ac_res" >&5
16849 echo "${ECHO_T}$ac_res" >&6; }
16852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16853 IKSEMEL_HEADER_FOUND=1
16855 IKSEMEL_HEADER_FOUND=0
16860 CPPFLAGS="${saved_cppflags}"
16862 if test "xiksemel.h" != "x" ; then
16863 if test "${ac_cv_header_iksemel_h+set}" = set; then
16864 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16865 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16866 if test "${ac_cv_header_iksemel_h+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16869 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16870 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16872 # Is the header compilable?
16873 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
16874 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
16875 cat >conftest.$ac_ext <<_ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16881 $ac_includes_default
16882 #include <iksemel.h>
16884 rm -f conftest.$ac_objext
16885 if { (ac_try="$ac_compile"
16886 case "(($ac_try" in
16887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16888 *) ac_try_echo
=$ac_try;;
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_compile") 2>conftest.er1
16893 grep -v '^ *+' conftest.er1
>conftest.err
16895 cat conftest.err
>&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } && {
16898 test -z "$ac_c_werror_flag" ||
16899 test ! -s conftest.err
16900 } && test -s conftest.
$ac_objext; then
16901 ac_header_compiler
=yes
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.
$ac_ext >&5
16906 ac_header_compiler
=no
16909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16911 echo "${ECHO_T}$ac_header_compiler" >&6; }
16913 # Is the header present?
16914 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
16915 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
16916 cat >conftest.
$ac_ext <<_ACEOF
16919 cat confdefs.h
>>conftest.
$ac_ext
16920 cat >>conftest.
$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922 #include <iksemel.h>
16924 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16925 case "(($ac_try" in
16926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16932 grep -v '^ *+' conftest.er1 >conftest.err
16934 cat conftest.err >&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } >/dev/null && {
16937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16938 test ! -s conftest.err
16940 ac_header_preproc=yes
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 ac_header_preproc=no
16948 rm -f conftest.err conftest.$ac_ext
16949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16950 echo "${ECHO_T}$ac_header_preproc" >&6; }
16952 # So? What about this header?
16953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16955 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16956 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16957 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
16958 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
16959 ac_header_preproc=yes
16962 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
16963 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
16965 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
16967 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
16968 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16969 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16970 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
16971 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
16972 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
16973 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
16977 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16978 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16979 if test "${ac_cv_header_iksemel_h+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16982 ac_cv_header_iksemel_h=$ac_header_preproc
16984 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16985 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16988 if test $ac_cv_header_iksemel_h = yes; then
16989 IKSEMEL_HEADER_FOUND=1
16991 IKSEMEL_HEADER_FOUND=0
16997 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
16998 if test ! -z "${IKSEMEL_MANDATORY}" ;
17000 { echo "$as_me:$LINENO: ***" >&5
17001 echo "$as_me: ***" >&6;}
17002 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
17003 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
17004 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
17005 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
17006 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
17007 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
17016 cat >>confdefs.h <<_ACEOF
17017 #define HAVE_IKSEMEL 1
17021 elif test ! -z "${IKSEMEL_MANDATORY}";
17023 { echo "$as_me:$LINENO: ***" >&5
17024 echo "$as_me: ***" >&6;}
17025 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
17026 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
17027 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17028 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17029 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
17030 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
17036 if test "${PBX_IKSEMEL}" = 1; then
17038 if test "${USE_GNUTLS}" != "no"; then
17040 if test "x${GNUTLS_DIR}" != "x"; then
17041 if test -d ${GNUTLS_DIR}/lib; then
17042 pbxlibdir="-L${GNUTLS_DIR}/lib"
17044 pbxlibdir="-L${GNUTLS_DIR}"
17047 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
17048 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
17049 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 ac_check_lib_save_LIBS=$LIBS
17053 LIBS="-lgnutls ${pbxlibdir} $LIBS"
17054 cat >conftest.$ac_ext <<_ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17061 /* Override any GCC internal prototype to avoid an error.
17062 Use char because int might match the return type of a GCC
17063 builtin and then its argument prototype would still apply. */
17067 char gnutls_bye ();
17071 return gnutls_bye ();
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (ac_try="$ac_link"
17078 case "(($ac_try" in
17079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17080 *) ac_try_echo
=$ac_try;;
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_link") 2>conftest.er1
17085 grep -v '^ *+' conftest.er1
>conftest.err
17087 cat conftest.err
>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && {
17090 test -z "$ac_c_werror_flag" ||
17091 test ! -s conftest.err
17092 } && test -s conftest
$ac_exeext &&
17093 $as_test_x conftest
$ac_exeext; then
17094 ac_cv_lib_gnutls_gnutls_bye
=yes
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.
$ac_ext >&5
17099 ac_cv_lib_gnutls_gnutls_bye
=no
17102 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17103 conftest
$ac_exeext conftest.
$ac_ext
17104 LIBS
=$ac_check_lib_save_LIBS
17106 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
17107 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
17108 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
17109 AST_GNUTLS_FOUND
=yes
17111 AST_GNUTLS_FOUND
=no
17115 if test "${AST_GNUTLS_FOUND}" = "yes"; then
17116 GNUTLS_LIB
="-lgnutls "
17117 GNUTLS_HEADER_FOUND
="1"
17118 if test "x${GNUTLS_DIR}" != "x"; then
17119 GNUTLS_LIB
="${pbxlibdir} ${GNUTLS_LIB}"
17120 GNUTLS_INCLUDE
="-I${GNUTLS_DIR}/include"
17121 saved_cppflags
="${CPPFLAGS}"
17122 CPPFLAGS
="${CPPFLAGS} -I${GNUTLS_DIR}/include"
17123 if test "x" != "x" ; then
17124 as_ac_Header
=`echo "ac_cv_header_${GNUTLS_DIR}/include/" | $as_tr_sh`
17125 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17126 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
17127 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
17128 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 ac_res
=`eval echo '${'$as_ac_Header'}'`
17132 { echo "$as_me:$LINENO: result: $ac_res" >&5
17133 echo "${ECHO_T}$ac_res" >&6; }
17135 # Is the header compilable?
17136 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ usability" >&5
17137 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ usability... $ECHO_C" >&6; }
17138 cat >conftest.
$ac_ext <<_ACEOF
17141 cat confdefs.h
>>conftest.
$ac_ext
17142 cat >>conftest.
$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17144 $ac_includes_default
17145 #include <${GNUTLS_DIR}/include/>
17147 rm -f conftest.
$ac_objext
17148 if { (ac_try
="$ac_compile"
17149 case "(($ac_try" in
17150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_compile") 2>conftest.er1
17156 grep -v '^ *+' conftest.er1 >conftest.err
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } && {
17161 test -z "$ac_c_werror_flag" ||
17162 test ! -s conftest.err
17163 } && test -s conftest.$ac_objext; then
17164 ac_header_compiler=yes
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17169 ac_header_compiler=no
17172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17174 echo "${ECHO_T}$ac_header_compiler" >&6; }
17176 # Is the header present?
17177 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ presence" >&5
17178 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ presence... $ECHO_C" >&6; }
17179 cat >conftest.$ac_ext <<_ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17185 #include <${GNUTLS_DIR}/include/>
17187 if { (ac_try="$ac_cpp conftest.$ac_ext"
17188 case "(($ac_try" in
17189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17190 *) ac_try_echo
=$ac_try;;
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17195 grep -v '^ *+' conftest.er1
>conftest.err
17197 cat conftest.err
>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } >/dev
/null
&& {
17200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17201 test ! -s conftest.err
17203 ac_header_preproc
=yes
17205 echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.
$ac_ext >&5
17208 ac_header_preproc
=no
17211 rm -f conftest.err conftest.
$ac_ext
17212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17213 echo "${ECHO_T}$ac_header_preproc" >&6; }
17215 # So? What about this header?
17216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17218 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
17219 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
17220 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&5
17221 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&2;}
17222 ac_header_preproc
=yes
17225 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&5
17226 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&2;}
17227 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&5
17228 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&2;}
17229 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&5
17230 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&2;}
17231 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
17232 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
17233 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&5
17234 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&2;}
17235 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&5
17236 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&2;}
17240 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
17241 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
17242 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17245 eval "$as_ac_Header=\$ac_header_preproc"
17247 ac_res
=`eval echo '${'$as_ac_Header'}'`
17248 { echo "$as_me:$LINENO: result: $ac_res" >&5
17249 echo "${ECHO_T}$ac_res" >&6; }
17252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17253 GNUTLS_HEADER_FOUND
=1
17255 GNUTLS_HEADER_FOUND
=0
17260 CPPFLAGS
="${saved_cppflags}"
17262 if test "x" != "x" ; then
17263 if test "${ac_cv_header_+set}" = set; then
17264 { echo "$as_me:$LINENO: checking for " >&5
17265 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
17266 if test "${ac_cv_header_+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
17270 echo "${ECHO_T}$ac_cv_header_" >&6; }
17272 # Is the header compilable?
17273 { echo "$as_me:$LINENO: checking usability" >&5
17274 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
17275 cat >conftest.
$ac_ext <<_ACEOF
17278 cat confdefs.h
>>conftest.
$ac_ext
17279 cat >>conftest.
$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 $ac_includes_default
17284 rm -f conftest.
$ac_objext
17285 if { (ac_try
="$ac_compile"
17286 case "(($ac_try" in
17287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_compile") 2>conftest.er1
17293 grep -v '^ *+' conftest.er1 >conftest.err
17295 cat conftest.err >&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } && {
17298 test -z "$ac_c_werror_flag" ||
17299 test ! -s conftest.err
17300 } && test -s conftest.$ac_objext; then
17301 ac_header_compiler=yes
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ac_header_compiler=no
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17311 echo "${ECHO_T}$ac_header_compiler" >&6; }
17313 # Is the header present?
17314 { echo "$as_me:$LINENO: checking presence" >&5
17315 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
17316 cat >conftest.$ac_ext <<_ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17324 if { (ac_try="$ac_cpp conftest.$ac_ext"
17325 case "(($ac_try" in
17326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17327 *) ac_try_echo
=$ac_try;;
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17332 grep -v '^ *+' conftest.er1
>conftest.err
17334 cat conftest.err
>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } >/dev
/null
&& {
17337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17338 test ! -s conftest.err
17340 ac_header_preproc
=yes
17342 echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.
$ac_ext >&5
17345 ac_header_preproc
=no
17348 rm -f conftest.err conftest.
$ac_ext
17349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17350 echo "${ECHO_T}$ac_header_preproc" >&6; }
17352 # So? What about this header?
17353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17355 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
17356 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
17357 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
17358 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
17359 ac_header_preproc
=yes
17362 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
17363 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
17365 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
17366 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
17367 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
17368 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
17369 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
17370 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
17371 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
17372 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
17373 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
17377 { echo "$as_me:$LINENO: checking for " >&5
17378 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
17379 if test "${ac_cv_header_+set}" = set; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 ac_cv_header_
=$ac_header_preproc
17384 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
17385 echo "${ECHO_T}$ac_cv_header_" >&6; }
17388 if test $ac_cv_header_ = yes; then
17389 GNUTLS_HEADER_FOUND
=1
17391 GNUTLS_HEADER_FOUND
=0
17397 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
17398 if test ! -z "${GNUTLS_MANDATORY}" ;
17400 { echo "$as_me:$LINENO: ***" >&5
17401 echo "$as_me: ***" >&6;}
17402 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
17403 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
17404 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
17405 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
17406 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
17407 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
17416 cat >>confdefs.h
<<_ACEOF
17417 #define HAVE_GNUTLS 1
17421 elif test ! -z "${GNUTLS_MANDATORY}";
17423 { echo "$as_me:$LINENO: ***" >&5
17424 echo "$as_me: ***" >&6;}
17425 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
17426 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
17427 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17428 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17429 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
17430 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
17435 if test "${PBX_GNUTLS}" = 1; then
17436 IKSEMEL_LIB
="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
17440 if test "${USE_IMAP_TK}" != "no"; then
17441 if test "${IMAP_TK_DIR}" = ""; then
17442 IMAP_TK_DIR
=`pwd`"/../imap-2004g"
17444 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
17445 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
17446 saved_cppflags
="${CPPFLAGS}"
17447 saved_libs
="${LIBS}"
17448 if test -f ${IMAP_TK_DIR}/c-client
/LDFLAGS
; then
17449 imap_ldflags
=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
17451 CPPFLAGS
="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
17452 LIBS
="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17453 cat >conftest.$ac_ext <<_ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 #include "c-client.h
"
17460 void mm_searched (MAILSTREAM *stream,unsigned long number)
17463 void mm_exists (MAILSTREAM *stream,unsigned long number)
17466 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17469 void mm_flags (MAILSTREAM *stream,unsigned long number)
17472 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17475 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17478 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17481 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17484 void mm_log (char *string,long errflg)
17487 void mm_dlog (char *string)
17490 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17493 void mm_critical (MAILSTREAM *stream)
17496 void mm_nocritical (MAILSTREAM *stream)
17499 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17502 void mm_fatal (char *string)
17509 MAILSTREAM *foo = mail_open(NULL, "", 0);
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (ac_try="$ac_link"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_link") 2>conftest.er1
17525 grep -v '^ *+' conftest.er1 >conftest.err
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17529 (exit $ac_status); } && {
17530 test -z "$ac_c_werror_flag" ||
17531 test ! -s conftest.err
17532 } && test -s conftest$ac_exeext &&
17533 $as_test_x conftest$ac_exeext; then
17534 ac_cv_imap_tk="yes"
17536 echo "$as_me: failed program was
:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544 conftest$ac_exeext conftest.$ac_ext
17545 if test "${ac_cv_imap_tk}" = "yes"; then
17546 cat >conftest.$ac_ext <<_ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17552 #include "c-client.h
"
17553 void mm_searched (MAILSTREAM *stream,unsigned long number)
17556 void mm_exists (MAILSTREAM *stream,unsigned long number)
17559 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17562 void mm_flags (MAILSTREAM *stream,unsigned long number)
17565 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17568 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17571 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17574 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17577 void mm_log (char *string,long errflg)
17580 void mm_dlog (char *string)
17583 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17586 void mm_critical (MAILSTREAM *stream)
17589 void mm_nocritical (MAILSTREAM *stream)
17592 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17595 void mm_fatal (char *string)
17602 long check = mail_expunge_full(NULL, "", 0);
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_link") 2>conftest.er1
17618 grep -v '^ *+' conftest.er1 >conftest.err
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_c_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest$ac_exeext &&
17626 $as_test_x conftest$ac_exeext; then
17627 ac_cv_imap_tk2006="yes"
17629 echo "$as_me: failed program was
:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17632 ac_cv_imap_tk2006="no
"
17636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637 conftest$ac_exeext conftest.$ac_ext
17639 CPPFLAGS="${saved_cppflags}"
17640 LIBS="${saved_libs}"
17641 if test "${ac_cv_imap_tk}" = "yes"; then
17642 { echo "$as_me:$LINENO: result
: yes" >&5
17643 echo "${ECHO_T}yes" >&6; }
17644 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client
/c-client.a
"`echo ${imap_ldflags}`
17645 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client
"
17648 cat >>confdefs.h <<\_ACEOF
17649 #define HAVE_IMAP_TK 1
17652 if test "${ac_cv_imap_tk2006}" = "yes"; then
17654 cat >>confdefs.h <<\_ACEOF
17655 #define HAVE_IMAP_TK2006 1
17659 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17660 { echo "$as_me:$LINENO: result
: no
" >&5
17661 echo "${ECHO_T}no
" >&6; }
17662 { echo "$as_me:$LINENO: ***" >&5
17663 echo "$as_me: ***" >&6;}
17664 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken.
" >&5
17665 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken.
" >&6;}
17666 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
17667 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
17668 { echo "$as_me:$LINENO: *** including
--without-imap.
" >&5
17669 echo "$as_me: *** including
--without-imap.
" >&6;}
17672 { echo "$as_me:$LINENO: result
: no
" >&5
17673 echo "${ECHO_T}no
" >&6; }
17678 ac_cpp='$CXXCPP $CPPFLAGS'
17679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17684 if test "${USE_KDE}" != "no
"; then
17685 { echo "$as_me:$LINENO: checking
for crashHandler
in -lkdecore" >&5
17686 echo $ECHO_N "checking
for crashHandler
in -lkdecore...
$ECHO_C" >&6; }
17687 saved_libs="${LIBS}"
17688 saved_cppflags="${CPPFLAGS}"
17689 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include
"
17690 if test -d ${KDE_DIR}/lib; then
17691 kdelibdir="${KDE_DIR}/lib
"
17693 kdelibdir="${KDE_DIR}"
17695 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17698 cat >conftest.$ac_ext <<_ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 #include "kcrash.h
"
17708 KCrash::defaultCrashHandler(1);
17714 rm -f conftest.$ac_objext conftest$ac_exeext
17715 if { (ac_try="$ac_link"
17716 case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_link") 2>conftest.er1
17723 grep -v '^ *+' conftest.er1 >conftest.err
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17727 (exit $ac_status); } && {
17728 test -z "$ac_cxx_werror_flag" ||
17729 test ! -s conftest.err
17730 } && test -s conftest$ac_exeext &&
17731 $as_test_x conftest$ac_exeext; then
17732 ac_cv_lib_kde_crash="yes"
17734 echo "$as_me: failed program was
:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_cv_lib_kde_crash="no
"
17740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17741 conftest$ac_exeext conftest.$ac_ext
17743 LIBS="${saved_libs}"
17744 CPPFLAGS="${saved_cppflags}"
17746 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17747 { echo "$as_me:$LINENO: result
: yes" >&5
17748 echo "${ECHO_T}yes" >&6; }
17749 KDE_LIB="-lkdecore -lkdeui"
17750 if test "${KDE_DIR}" != ""; then
17751 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
17752 KDE_INCLUDE="-I${KDE_DIR}/include
"
17756 cat >>confdefs.h <<\_ACEOF
17757 #define HAVE_LIBKDE 1
17760 elif test ! -z "${KDE_MANDATORY}"; then
17761 { echo "$as_me:$LINENO: result
: no
" >&5
17762 echo "${ECHO_T}no
" >&6; }
17763 { echo "$as_me:$LINENO: ***" >&5
17764 echo "$as_me: ***" >&6;}
17765 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken.
" >&5
17766 echo "$as_me: *** The KDE installation on this system appears to be broken.
" >&6;}
17767 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
17768 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
17769 { echo "$as_me:$LINENO: *** including
--without-kde.
" >&5
17770 echo "$as_me: *** including
--without-kde.
" >&6;}
17773 { echo "$as_me:$LINENO: result
: no
" >&5
17774 echo "${ECHO_T}no
" >&6; }
17777 if test "${PBX_KDE}" = 1; then
17778 if test -n "$ac_tool_prefix"; then
17779 # Extract the first word of "${ac_tool_prefix}kdeinit
", so it can be a program name with args.
17780 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
17781 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
17782 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
17783 if test "${ac_cv_path_KDEINIT+set}" = set; then
17784 echo $ECHO_N "(cached
) $ECHO_C" >&6
17788 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
17791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17792 for as_dir in $PATH
17795 test -z "$as_dir" && as_dir=.
17796 for ac_exec_ext in '' $ac_executable_extensions; do
17797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17798 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17799 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17809 KDEINIT=$ac_cv_path_KDEINIT
17810 if test -n "$KDEINIT"; then
17811 { echo "$as_me:$LINENO: result
: $KDEINIT" >&5
17812 echo "${ECHO_T}$KDEINIT" >&6; }
17814 { echo "$as_me:$LINENO: result
: no
" >&5
17815 echo "${ECHO_T}no
" >&6; }
17820 if test -z "$ac_cv_path_KDEINIT"; then
17821 ac_pt_KDEINIT=$KDEINIT
17822 # Extract the first word of "kdeinit
", so it can be a program name with args.
17823 set dummy kdeinit; ac_word=$2
17824 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
17825 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
17826 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17827 echo $ECHO_N "(cached
) $ECHO_C" >&6
17829 case $ac_pt_KDEINIT in
17831 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
17834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17835 for as_dir in $PATH
17838 test -z "$as_dir" && as_dir=.
17839 for ac_exec_ext in '' $ac_executable_extensions; do
17840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17841 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17842 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17852 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
17853 if test -n "$ac_pt_KDEINIT"; then
17854 { echo "$as_me:$LINENO: result
: $ac_pt_KDEINIT" >&5
17855 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17857 { echo "$as_me:$LINENO: result
: no
" >&5
17858 echo "${ECHO_T}no
" >&6; }
17861 if test "x
$ac_pt_KDEINIT" = x; then
17864 case $cross_compiling:$ac_tool_warned in
17866 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
17867 whose name does not start with the
host triplet. If you think this
17868 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
17869 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
17870 whose name does not start with the
host triplet. If you think this
17871 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
17872 ac_tool_warned=yes ;;
17874 KDEINIT=$ac_pt_KDEINIT
17877 KDEINIT="$ac_cv_path_KDEINIT"
17880 if test ! x"${KDEINIT}" = xNo; then
17881 KDEDIR=$(${DIRNAME} ${KDEINIT})
17882 KDEDIR=$(${DIRNAME} ${KDEDIR})
17888 ac_cpp='$CPP $CPPFLAGS'
17889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17895 if test "${USE_MISDN}" != "no
"; then
17897 if test "x
${MISDN_DIR}" != "x
"; then
17898 if test -d ${MISDN_DIR}/lib; then
17899 pbxlibdir="-L${MISDN_DIR}/lib
"
17901 pbxlibdir="-L${MISDN_DIR}"
17904 { echo "$as_me:$LINENO: checking
for mISDN_open
in -lmISDN" >&5
17905 echo $ECHO_N "checking
for mISDN_open
in -lmISDN...
$ECHO_C" >&6; }
17906 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17907 echo $ECHO_N "(cached
) $ECHO_C" >&6
17909 ac_check_lib_save_LIBS=$LIBS
17910 LIBS="-lmISDN ${pbxlibdir} $LIBS"
17911 cat >conftest.$ac_ext <<_ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17918 /* Override any GCC internal prototype to avoid an error.
17919 Use char because int might match the return type of a GCC
17920 builtin and then its argument prototype would still apply. */
17924 char mISDN_open ();
17928 return mISDN_open ();
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (ac_try="$ac_link"
17935 case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_link") 2>conftest.er1
17942 grep -v '^ *+' conftest.er1 >conftest.err
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17946 (exit $ac_status); } && {
17947 test -z "$ac_c_werror_flag" ||
17948 test ! -s conftest.err
17949 } && test -s conftest$ac_exeext &&
17950 $as_test_x conftest$ac_exeext; then
17951 ac_cv_lib_mISDN_mISDN_open=yes
17953 echo "$as_me: failed program was
:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 ac_cv_lib_mISDN_mISDN_open=no
17959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17960 conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17963 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mISDN_mISDN_open" >&5
17964 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
17965 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
17966 AST_MISDN_FOUND=yes
17972 if test "${AST_MISDN_FOUND}" = "yes"; then
17973 MISDN_LIB="-lmISDN "
17974 MISDN_HEADER_FOUND="1"
17975 if test "x
${MISDN_DIR}" != "x
"; then
17976 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
17977 MISDN_INCLUDE="-I${MISDN_DIR}/include
"
17978 saved_cppflags="${CPPFLAGS}"
17979 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include
"
17980 if test "xmISDNuser
/mISDNlib.h
" != "x
" ; then
17981 as_ac_Header=`echo "ac_cv_header_
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
" | $as_tr_sh`
17982 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17983 { echo "$as_me:$LINENO: checking
for ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
" >&5
17984 echo $ECHO_N "checking
for ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h...
$ECHO_C" >&6; }
17985 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17986 echo $ECHO_N "(cached
) $ECHO_C" >&6
17988 ac_res=`eval echo '${'$as_ac_Header'}'`
17989 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17990 echo "${ECHO_T}$ac_res" >&6; }
17992 # Is the header compilable?
17993 { echo "$as_me:$LINENO: checking
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h usability
" >&5
17994 echo $ECHO_N "checking
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h usability...
$ECHO_C" >&6; }
17995 cat >conftest.$ac_ext <<_ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18001 $ac_includes_default
18002 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
18004 rm -f conftest.$ac_objext
18005 if { (ac_try="$ac_compile"
18006 case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_compile") 2>conftest.er1
18013 grep -v '^ *+' conftest.er1 >conftest.err
18015 cat conftest.err >&5
18016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18017 (exit $ac_status); } && {
18018 test -z "$ac_c_werror_flag" ||
18019 test ! -s conftest.err
18020 } && test -s conftest.$ac_objext; then
18021 ac_header_compiler=yes
18023 echo "$as_me: failed program was
:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_header_compiler=no
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18031 echo "${ECHO_T}$ac_header_compiler" >&6; }
18033 # Is the header present?
18034 { echo "$as_me:$LINENO: checking
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h presence
" >&5
18035 echo $ECHO_N "checking
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h presence...
$ECHO_C" >&6; }
18036 cat >conftest.$ac_ext <<_ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18042 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
18044 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18045 case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18050 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18052 grep -v '^ *+' conftest.er1 >conftest.err
18054 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18056 (exit $ac_status); } >/dev/null && {
18057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18058 test ! -s conftest.err
18060 ac_header_preproc=yes
18062 echo "$as_me: failed program was
:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18065 ac_header_preproc=no
18068 rm -f conftest.err conftest.$ac_ext
18069 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18070 echo "${ECHO_T}$ac_header_preproc" >&6; }
18072 # So? What about this header?
18073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18075 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18076 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18077 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: proceeding with the compiler
's result" >&5
18078 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result
" >&2;}
18079 ac_header_preproc=yes
18082 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: present but cannot be compiled
" >&5
18083 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: present but cannot be compiled
" >&2;}
18084 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: check
for missing prerequisite headers?
" >&5
18085 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: check
for missing prerequisite headers?
" >&2;}
18086 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: see the Autoconf documentation
" >&5
18087 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: see the Autoconf documentation
" >&2;}
18088 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18089 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18090 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: proceeding with the preprocessor
's result" >&5
18091 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result
" >&2;}
18092 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: in the future
, the compiler will take precedence
" >&5
18093 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: in the future
, the compiler will take precedence
" >&2;}
18097 { echo "$as_me:$LINENO: checking
for ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
" >&5
18098 echo $ECHO_N "checking
for ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h...
$ECHO_C" >&6; }
18099 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18100 echo $ECHO_N "(cached
) $ECHO_C" >&6
18102 eval "$as_ac_Header=\
$ac_header_preproc"
18104 ac_res=`eval echo '${'$as_ac_Header'}'`
18105 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18106 echo "${ECHO_T}$ac_res" >&6; }
18109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18110 MISDN_HEADER_FOUND=1
18112 MISDN_HEADER_FOUND=0
18117 CPPFLAGS="${saved_cppflags}"
18119 if test "xmISDNuser
/mISDNlib.h
" != "x
" ; then
18120 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
18121 { echo "$as_me:$LINENO: checking
for mISDNuser
/mISDNlib.h
" >&5
18122 echo $ECHO_N "checking
for mISDNuser
/mISDNlib.h...
$ECHO_C" >&6; }
18123 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
18124 echo $ECHO_N "(cached
) $ECHO_C" >&6
18126 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
18127 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
18129 # Is the header compilable?
18130 { echo "$as_me:$LINENO: checking mISDNuser
/mISDNlib.h usability
" >&5
18131 echo $ECHO_N "checking mISDNuser
/mISDNlib.h usability...
$ECHO_C" >&6; }
18132 cat >conftest.$ac_ext <<_ACEOF
18135 cat confdefs.h >>conftest.$ac_ext
18136 cat >>conftest.$ac_ext <<_ACEOF
18137 /* end confdefs.h. */
18138 $ac_includes_default
18139 #include <mISDNuser/mISDNlib.h>
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_compile") 2>conftest.er1
18150 grep -v '^ *+' conftest.er1 >conftest.err
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18154 (exit $ac_status); } && {
18155 test -z "$ac_c_werror_flag" ||
18156 test ! -s conftest.err
18157 } && test -s conftest.$ac_objext; then
18158 ac_header_compiler=yes
18160 echo "$as_me: failed program was
:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18163 ac_header_compiler=no
18166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18167 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18168 echo "${ECHO_T}$ac_header_compiler" >&6; }
18170 # Is the header present?
18171 { echo "$as_me:$LINENO: checking mISDNuser
/mISDNlib.h presence
" >&5
18172 echo $ECHO_N "checking mISDNuser
/mISDNlib.h presence...
$ECHO_C" >&6; }
18173 cat >conftest.$ac_ext <<_ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18179 #include <mISDNuser/mISDNlib.h>
18181 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18182 case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18189 grep -v '^ *+' conftest.er1 >conftest.err
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18193 (exit $ac_status); } >/dev/null && {
18194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18195 test ! -s conftest.err
18197 ac_header_preproc=yes
18199 echo "$as_me: failed program was
:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18202 ac_header_preproc=no
18205 rm -f conftest.err conftest.$ac_ext
18206 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18207 echo "${ECHO_T}$ac_header_preproc" >&6; }
18209 # So? What about this header?
18210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18212 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18213 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18214 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: proceeding with the compiler
's result" >&5
18215 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result
" >&2;}
18216 ac_header_preproc=yes
18219 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: present but cannot be compiled
" >&5
18220 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: present but cannot be compiled
" >&2;}
18221 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: check
for missing prerequisite headers?
" >&5
18222 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: check
for missing prerequisite headers?
" >&2;}
18223 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: see the Autoconf documentation
" >&5
18224 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: see the Autoconf documentation
" >&2;}
18225 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18226 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18227 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: proceeding with the preprocessor
's result" >&5
18228 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result
" >&2;}
18229 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: in the future
, the compiler will take precedence
" >&5
18230 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: in the future
, the compiler will take precedence
" >&2;}
18234 { echo "$as_me:$LINENO: checking
for mISDNuser
/mISDNlib.h
" >&5
18235 echo $ECHO_N "checking
for mISDNuser
/mISDNlib.h...
$ECHO_C" >&6; }
18236 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
18237 echo $ECHO_N "(cached
) $ECHO_C" >&6
18239 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
18241 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
18242 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
18245 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
18246 MISDN_HEADER_FOUND=1
18248 MISDN_HEADER_FOUND=0
18254 if test "x
${MISDN_HEADER_FOUND}" = "x0
" ; then
18255 if test ! -z "${MISDN_MANDATORY}" ;
18257 { echo "$as_me:$LINENO: ***" >&5
18258 echo "$as_me: ***" >&6;}
18259 { echo "$as_me:$LINENO: *** It appears that you
do not have the mISDN development package installed.
" >&5
18260 echo "$as_me: *** It appears that you
do not have the mISDN development package installed.
" >&6;}
18261 { echo "$as_me:$LINENO: *** Please
install it to include
${MISDN_DESCRIP} support
, or re-run configure
" >&5
18262 echo "$as_me: *** Please
install it to include
${MISDN_DESCRIP} support
, or re-run configure
" >&6;}
18263 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${MISDN_OPTION}" >&5
18264 echo "$as_me: *** without explicitly specifying
--with-${MISDN_OPTION}" >&6;}
18273 cat >>confdefs.h <<_ACEOF
18274 #define HAVE_MISDN 1
18278 elif test ! -z "${MISDN_MANDATORY}";
18280 { echo "$as_me:$LINENO: ***" >&5
18281 echo "$as_me: ***" >&6;}
18282 { echo "$as_me:$LINENO: *** The
${MISDN_DESCRIP} installation on this system appears to be broken.
" >&5
18283 echo "$as_me: *** The
${MISDN_DESCRIP} installation on this system appears to be broken.
" >&6;}
18284 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
18285 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
18286 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${MISDN_OPTION}" >&5
18287 echo "$as_me: *** without explicitly specifying
--with-${MISDN_OPTION}" >&6;}
18293 if test "${PBX_MISDN}" = 1; then
18295 if test "${USE_ISDNNET}" != "no
"; then
18297 if test "x
${ISDNNET_DIR}" != "x
"; then
18298 if test -d ${ISDNNET_DIR}/lib; then
18299 pbxlibdir="-L${ISDNNET_DIR}/lib
"
18301 pbxlibdir="-L${ISDNNET_DIR}"
18304 { echo "$as_me:$LINENO: checking
for init_manager
in -lisdnnet" >&5
18305 echo $ECHO_N "checking
for init_manager
in -lisdnnet...
$ECHO_C" >&6; }
18306 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
18307 echo $ECHO_N "(cached
) $ECHO_C" >&6
18309 ac_check_lib_save_LIBS=$LIBS
18310 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
18311 cat >conftest.$ac_ext <<_ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18318 /* Override any GCC internal prototype to avoid an error.
18319 Use char because int might match the return type of a GCC
18320 builtin and then its argument prototype would still apply. */
18324 char init_manager ();
18328 return init_manager ();
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest$ac_exeext &&
18350 $as_test_x conftest$ac_exeext; then
18351 ac_cv_lib_isdnnet_init_manager=yes
18353 echo "$as_me: failed program was
:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 ac_cv_lib_isdnnet_init_manager=no
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18360 conftest$ac_exeext conftest.$ac_ext
18361 LIBS=$ac_check_lib_save_LIBS
18363 { echo "$as_me:$LINENO: result
: $ac_cv_lib_isdnnet_init_manager" >&5
18364 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
18365 if test $ac_cv_lib_isdnnet_init_manager = yes; then
18366 AST_ISDNNET_FOUND=yes
18368 AST_ISDNNET_FOUND=no
18372 if test "${AST_ISDNNET_FOUND}" = "yes"; then
18373 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
18374 ISDNNET_HEADER_FOUND="1"
18375 if test "x
${ISDNNET_DIR}" != "x
"; then
18376 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
18377 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include
"
18378 saved_cppflags="${CPPFLAGS}"
18379 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include
"
18380 if test "xmISDNuser
/isdn_net.h
" != "x
" ; then
18381 as_ac_Header=`echo "ac_cv_header_
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
" | $as_tr_sh`
18382 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18383 { echo "$as_me:$LINENO: checking
for ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
" >&5
18384 echo $ECHO_N "checking
for ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h...
$ECHO_C" >&6; }
18385 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18386 echo $ECHO_N "(cached
) $ECHO_C" >&6
18388 ac_res=`eval echo '${'$as_ac_Header'}'`
18389 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18390 echo "${ECHO_T}$ac_res" >&6; }
18392 # Is the header compilable?
18393 { echo "$as_me:$LINENO: checking
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h usability
" >&5
18394 echo $ECHO_N "checking
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h usability...
$ECHO_C" >&6; }
18395 cat >conftest.$ac_ext <<_ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 $ac_includes_default
18402 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18404 rm -f conftest.$ac_objext
18405 if { (ac_try="$ac_compile"
18406 case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_compile") 2>conftest.er1
18413 grep -v '^ *+' conftest.er1 >conftest.err
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18417 (exit $ac_status); } && {
18418 test -z "$ac_c_werror_flag" ||
18419 test ! -s conftest.err
18420 } && test -s conftest.$ac_objext; then
18421 ac_header_compiler=yes
18423 echo "$as_me: failed program was
:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18426 ac_header_compiler=no
18429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18431 echo "${ECHO_T}$ac_header_compiler" >&6; }
18433 # Is the header present?
18434 { echo "$as_me:$LINENO: checking
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h presence
" >&5
18435 echo $ECHO_N "checking
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h presence...
$ECHO_C" >&6; }
18436 cat >conftest.$ac_ext <<_ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18444 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18445 case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18452 grep -v '^ *+' conftest.er1 >conftest.err
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18456 (exit $ac_status); } >/dev/null && {
18457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18458 test ! -s conftest.err
18460 ac_header_preproc=yes
18462 echo "$as_me: failed program was
:" >&5
18463 sed 's/^/| /' conftest.$ac_ext >&5
18465 ac_header_preproc=no
18468 rm -f conftest.err conftest.$ac_ext
18469 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18470 echo "${ECHO_T}$ac_header_preproc" >&6; }
18472 # So? What about this header?
18473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18475 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18476 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18477 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: proceeding with the compiler
's result" >&5
18478 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result
" >&2;}
18479 ac_header_preproc=yes
18482 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: present but cannot be compiled
" >&5
18483 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: present but cannot be compiled
" >&2;}
18484 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: check
for missing prerequisite headers?
" >&5
18485 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: check
for missing prerequisite headers?
" >&2;}
18486 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: see the Autoconf documentation
" >&5
18487 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: see the Autoconf documentation
" >&2;}
18488 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18489 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18490 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: proceeding with the preprocessor
's result" >&5
18491 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result
" >&2;}
18492 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: in the future
, the compiler will take precedence
" >&5
18493 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: in the future
, the compiler will take precedence
" >&2;}
18497 { echo "$as_me:$LINENO: checking
for ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
" >&5
18498 echo $ECHO_N "checking
for ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h...
$ECHO_C" >&6; }
18499 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18500 echo $ECHO_N "(cached
) $ECHO_C" >&6
18502 eval "$as_ac_Header=\
$ac_header_preproc"
18504 ac_res=`eval echo '${'$as_ac_Header'}'`
18505 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18506 echo "${ECHO_T}$ac_res" >&6; }
18509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18510 ISDNNET_HEADER_FOUND=1
18512 ISDNNET_HEADER_FOUND=0
18517 CPPFLAGS="${saved_cppflags}"
18519 if test "xmISDNuser
/isdn_net.h
" != "x
" ; then
18520 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18521 { echo "$as_me:$LINENO: checking
for mISDNuser
/isdn_net.h
" >&5
18522 echo $ECHO_N "checking
for mISDNuser
/isdn_net.h...
$ECHO_C" >&6; }
18523 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18524 echo $ECHO_N "(cached
) $ECHO_C" >&6
18526 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18527 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18529 # Is the header compilable?
18530 { echo "$as_me:$LINENO: checking mISDNuser
/isdn_net.h usability
" >&5
18531 echo $ECHO_N "checking mISDNuser
/isdn_net.h usability...
$ECHO_C" >&6; }
18532 cat >conftest.$ac_ext <<_ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538 $ac_includes_default
18539 #include <mISDNuser/isdn_net.h>
18541 rm -f conftest.$ac_objext
18542 if { (ac_try="$ac_compile"
18543 case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18547 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_compile") 2>conftest.er1
18550 grep -v '^ *+' conftest.er1 >conftest.err
18552 cat conftest.err >&5
18553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18554 (exit $ac_status); } && {
18555 test -z "$ac_c_werror_flag" ||
18556 test ! -s conftest.err
18557 } && test -s conftest.$ac_objext; then
18558 ac_header_compiler=yes
18560 echo "$as_me: failed program was
:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ac_header_compiler=no
18566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18567 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18568 echo "${ECHO_T}$ac_header_compiler" >&6; }
18570 # Is the header present?
18571 { echo "$as_me:$LINENO: checking mISDNuser
/isdn_net.h presence
" >&5
18572 echo $ECHO_N "checking mISDNuser
/isdn_net.h presence...
$ECHO_C" >&6; }
18573 cat >conftest.$ac_ext <<_ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18579 #include <mISDNuser/isdn_net.h>
18581 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18582 case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18589 grep -v '^ *+' conftest.er1 >conftest.err
18591 cat conftest.err >&5
18592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18593 (exit $ac_status); } >/dev/null && {
18594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18595 test ! -s conftest.err
18597 ac_header_preproc=yes
18599 echo "$as_me: failed program was
:" >&5
18600 sed 's/^/| /' conftest.$ac_ext >&5
18602 ac_header_preproc=no
18605 rm -f conftest.err conftest.$ac_ext
18606 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18607 echo "${ECHO_T}$ac_header_preproc" >&6; }
18609 # So? What about this header?
18610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18612 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18613 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18614 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: proceeding with the compiler
's result" >&5
18615 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result
" >&2;}
18616 ac_header_preproc=yes
18619 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: present but cannot be compiled
" >&5
18620 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: present but cannot be compiled
" >&2;}
18621 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: check
for missing prerequisite headers?
" >&5
18622 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: check
for missing prerequisite headers?
" >&2;}
18623 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: see the Autoconf documentation
" >&5
18624 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: see the Autoconf documentation
" >&2;}
18625 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18626 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18627 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: proceeding with the preprocessor
's result" >&5
18628 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result
" >&2;}
18629 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: in the future
, the compiler will take precedence
" >&5
18630 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: in the future
, the compiler will take precedence
" >&2;}
18634 { echo "$as_me:$LINENO: checking
for mISDNuser
/isdn_net.h
" >&5
18635 echo $ECHO_N "checking
for mISDNuser
/isdn_net.h...
$ECHO_C" >&6; }
18636 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18637 echo $ECHO_N "(cached
) $ECHO_C" >&6
18639 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
18641 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18642 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18645 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18646 ISDNNET_HEADER_FOUND=1
18648 ISDNNET_HEADER_FOUND=0
18654 if test "x
${ISDNNET_HEADER_FOUND}" = "x0
" ; then
18655 if test ! -z "${ISDNNET_MANDATORY}" ;
18657 { echo "$as_me:$LINENO: ***" >&5
18658 echo "$as_me: ***" >&6;}
18659 { echo "$as_me:$LINENO: *** It appears that you
do not have the isdnnet development package installed.
" >&5
18660 echo "$as_me: *** It appears that you
do not have the isdnnet development package installed.
" >&6;}
18661 { echo "$as_me:$LINENO: *** Please
install it to include
${ISDNNET_DESCRIP} support
, or re-run configure
" >&5
18662 echo "$as_me: *** Please
install it to include
${ISDNNET_DESCRIP} support
, or re-run configure
" >&6;}
18663 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ISDNNET_OPTION}" >&5
18664 echo "$as_me: *** without explicitly specifying
--with-${ISDNNET_OPTION}" >&6;}
18673 cat >>confdefs.h <<_ACEOF
18674 #define HAVE_ISDNNET 1
18678 elif test ! -z "${ISDNNET_MANDATORY}";
18680 { echo "$as_me:$LINENO: ***" >&5
18681 echo "$as_me: ***" >&6;}
18682 { echo "$as_me:$LINENO: *** The
${ISDNNET_DESCRIP} installation on this system appears to be broken.
" >&5
18683 echo "$as_me: *** The
${ISDNNET_DESCRIP} installation on this system appears to be broken.
" >&6;}
18684 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
18685 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
18686 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ISDNNET_OPTION}" >&5
18687 echo "$as_me: *** without explicitly specifying
--with-${ISDNNET_OPTION}" >&6;}
18693 if test "${USE_SUPPSERV}" != "no
"; then
18695 if test "x
${SUPPSERV_DIR}" != "x
"; then
18696 if test -d ${SUPPSERV_DIR}/lib; then
18697 pbxlibdir="-L${SUPPSERV_DIR}/lib
"
18699 pbxlibdir="-L${SUPPSERV_DIR}"
18702 { echo "$as_me:$LINENO: checking
for encodeFac
in -lsuppserv" >&5
18703 echo $ECHO_N "checking
for encodeFac
in -lsuppserv...
$ECHO_C" >&6; }
18704 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18705 echo $ECHO_N "(cached
) $ECHO_C" >&6
18707 ac_check_lib_save_LIBS=$LIBS
18708 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
18709 cat >conftest.$ac_ext <<_ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18716 /* Override any GCC internal prototype to avoid an error.
18717 Use char because int might match the return type of a GCC
18718 builtin and then its argument prototype would still apply. */
18726 return encodeFac ();
18731 rm -f conftest.$ac_objext conftest$ac_exeext
18732 if { (ac_try="$ac_link"
18733 case "(($ac_try" in
18734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735 *) ac_try_echo=$ac_try;;
18737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18738 (eval "$ac_link") 2>conftest.er1
18740 grep -v '^ *+' conftest.er1 >conftest.err
18742 cat conftest.err >&5
18743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18744 (exit $ac_status); } && {
18745 test -z "$ac_c_werror_flag" ||
18746 test ! -s conftest.err
18747 } && test -s conftest$ac_exeext &&
18748 $as_test_x conftest$ac_exeext; then
18749 ac_cv_lib_suppserv_encodeFac=yes
18751 echo "$as_me: failed program was
:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18754 ac_cv_lib_suppserv_encodeFac=no
18757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18758 conftest$ac_exeext conftest.$ac_ext
18759 LIBS=$ac_check_lib_save_LIBS
18761 { echo "$as_me:$LINENO: result
: $ac_cv_lib_suppserv_encodeFac" >&5
18762 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18763 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18764 AST_SUPPSERV_FOUND=yes
18766 AST_SUPPSERV_FOUND=no
18770 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18771 SUPPSERV_LIB="-lsuppserv "
18772 SUPPSERV_HEADER_FOUND="1"
18773 if test "x
${SUPPSERV_DIR}" != "x
"; then
18774 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18775 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include
"
18776 saved_cppflags="${CPPFLAGS}"
18777 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include
"
18778 if test "xmISDNuser
/suppserv.h
" != "x
" ; then
18779 as_ac_Header=`echo "ac_cv_header_
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
" | $as_tr_sh`
18780 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18781 { echo "$as_me:$LINENO: checking
for ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
" >&5
18782 echo $ECHO_N "checking
for ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h...
$ECHO_C" >&6; }
18783 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18784 echo $ECHO_N "(cached
) $ECHO_C" >&6
18786 ac_res=`eval echo '${'$as_ac_Header'}'`
18787 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18788 echo "${ECHO_T}$ac_res" >&6; }
18790 # Is the header compilable?
18791 { echo "$as_me:$LINENO: checking
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h usability
" >&5
18792 echo $ECHO_N "checking
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h usability...
$ECHO_C" >&6; }
18793 cat >conftest.$ac_ext <<_ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 $ac_includes_default
18800 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18802 rm -f conftest.$ac_objext
18803 if { (ac_try="$ac_compile"
18804 case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18811 grep -v '^ *+' conftest.er1 >conftest.err
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ac_header_compiler=yes
18821 echo "$as_me: failed program was
:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 ac_header_compiler=no
18827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18829 echo "${ECHO_T}$ac_header_compiler" >&6; }
18831 # Is the header present?
18832 { echo "$as_me:$LINENO: checking
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h presence
" >&5
18833 echo $ECHO_N "checking
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h presence...
$ECHO_C" >&6; }
18834 cat >conftest.$ac_ext <<_ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18842 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18850 grep -v '^ *+' conftest.er1 >conftest.err
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18854 (exit $ac_status); } >/dev/null && {
18855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18856 test ! -s conftest.err
18858 ac_header_preproc=yes
18860 echo "$as_me: failed program was
:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18863 ac_header_preproc=no
18866 rm -f conftest.err conftest.$ac_ext
18867 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18868 echo "${ECHO_T}$ac_header_preproc" >&6; }
18870 # So? What about this header?
18871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18873 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18874 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18875 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: proceeding with the compiler
's result" >&5
18876 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result
" >&2;}
18877 ac_header_preproc=yes
18880 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: present but cannot be compiled
" >&5
18881 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: present but cannot be compiled
" >&2;}
18882 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: check
for missing prerequisite headers?
" >&5
18883 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: check
for missing prerequisite headers?
" >&2;}
18884 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: see the Autoconf documentation
" >&5
18885 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: see the Autoconf documentation
" >&2;}
18886 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18887 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18888 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: proceeding with the preprocessor
's result" >&5
18889 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result
" >&2;}
18890 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: in the future
, the compiler will take precedence
" >&5
18891 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: in the future
, the compiler will take precedence
" >&2;}
18895 { echo "$as_me:$LINENO: checking
for ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
" >&5
18896 echo $ECHO_N "checking
for ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h...
$ECHO_C" >&6; }
18897 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18898 echo $ECHO_N "(cached
) $ECHO_C" >&6
18900 eval "$as_ac_Header=\
$ac_header_preproc"
18902 ac_res=`eval echo '${'$as_ac_Header'}'`
18903 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18904 echo "${ECHO_T}$ac_res" >&6; }
18907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18908 SUPPSERV_HEADER_FOUND=1
18910 SUPPSERV_HEADER_FOUND=0
18915 CPPFLAGS="${saved_cppflags}"
18917 if test "xmISDNuser
/suppserv.h
" != "x
" ; then
18918 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18919 { echo "$as_me:$LINENO: checking
for mISDNuser
/suppserv.h
" >&5
18920 echo $ECHO_N "checking
for mISDNuser
/suppserv.h...
$ECHO_C" >&6; }
18921 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18922 echo $ECHO_N "(cached
) $ECHO_C" >&6
18924 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_suppserv_h" >&5
18925 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18927 # Is the header compilable?
18928 { echo "$as_me:$LINENO: checking mISDNuser
/suppserv.h usability
" >&5
18929 echo $ECHO_N "checking mISDNuser
/suppserv.h usability...
$ECHO_C" >&6; }
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 $ac_includes_default
18937 #include <mISDNuser/suppserv.h>
18939 rm -f conftest.$ac_objext
18940 if { (ac_try="$ac_compile"
18941 case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_compile") 2>conftest.er1
18948 grep -v '^ *+' conftest.er1 >conftest.err
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18952 (exit $ac_status); } && {
18953 test -z "$ac_c_werror_flag" ||
18954 test ! -s conftest.err
18955 } && test -s conftest.$ac_objext; then
18956 ac_header_compiler=yes
18958 echo "$as_me: failed program was
:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18961 ac_header_compiler=no
18964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18965 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18966 echo "${ECHO_T}$ac_header_compiler" >&6; }
18968 # Is the header present?
18969 { echo "$as_me:$LINENO: checking mISDNuser
/suppserv.h presence
" >&5
18970 echo $ECHO_N "checking mISDNuser
/suppserv.h presence...
$ECHO_C" >&6; }
18971 cat >conftest.$ac_ext <<_ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 #include <mISDNuser/suppserv.h>
18979 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18987 grep -v '^ *+' conftest.er1 >conftest.err
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18991 (exit $ac_status); } >/dev/null && {
18992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18993 test ! -s conftest.err
18995 ac_header_preproc=yes
18997 echo "$as_me: failed program was
:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 ac_header_preproc=no
19003 rm -f conftest.err conftest.$ac_ext
19004 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19005 echo "${ECHO_T}$ac_header_preproc" >&6; }
19007 # So? What about this header?
19008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19010 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19011 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19012 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: proceeding with the compiler
's result" >&5
19013 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result
" >&2;}
19014 ac_header_preproc=yes
19017 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: present but cannot be compiled
" >&5
19018 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: present but cannot be compiled
" >&2;}
19019 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: check
for missing prerequisite headers?
" >&5
19020 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: check
for missing prerequisite headers?
" >&2;}
19021 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: see the Autoconf documentation
" >&5
19022 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: see the Autoconf documentation
" >&2;}
19023 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19024 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19025 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: proceeding with the preprocessor
's result" >&5
19026 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result
" >&2;}
19027 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: in the future
, the compiler will take precedence
" >&5
19028 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: in the future
, the compiler will take precedence
" >&2;}
19032 { echo "$as_me:$LINENO: checking
for mISDNuser
/suppserv.h
" >&5
19033 echo $ECHO_N "checking
for mISDNuser
/suppserv.h...
$ECHO_C" >&6; }
19034 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
19035 echo $ECHO_N "(cached
) $ECHO_C" >&6
19037 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
19039 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_suppserv_h" >&5
19040 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
19043 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
19044 SUPPSERV_HEADER_FOUND=1
19046 SUPPSERV_HEADER_FOUND=0
19052 if test "x
${SUPPSERV_HEADER_FOUND}" = "x0
" ; then
19053 if test ! -z "${SUPPSERV_MANDATORY}" ;
19055 { echo "$as_me:$LINENO: ***" >&5
19056 echo "$as_me: ***" >&6;}
19057 { echo "$as_me:$LINENO: *** It appears that you
do not have the suppserv development package installed.
" >&5
19058 echo "$as_me: *** It appears that you
do not have the suppserv development package installed.
" >&6;}
19059 { echo "$as_me:$LINENO: *** Please
install it to include
${SUPPSERV_DESCRIP} support
, or re-run configure
" >&5
19060 echo "$as_me: *** Please
install it to include
${SUPPSERV_DESCRIP} support
, or re-run configure
" >&6;}
19061 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SUPPSERV_OPTION}" >&5
19062 echo "$as_me: *** without explicitly specifying
--with-${SUPPSERV_OPTION}" >&6;}
19066 SUPPSERV_INCLUDE=""
19071 cat >>confdefs.h <<_ACEOF
19072 #define HAVE_SUPPSERV 1
19076 elif test ! -z "${SUPPSERV_MANDATORY}";
19078 { echo "$as_me:$LINENO: ***" >&5
19079 echo "$as_me: ***" >&6;}
19080 { echo "$as_me:$LINENO: *** The
${SUPPSERV_DESCRIP} installation on this system appears to be broken.
" >&5
19081 echo "$as_me: *** The
${SUPPSERV_DESCRIP} installation on this system appears to be broken.
" >&6;}
19082 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
19083 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
19084 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SUPPSERV_OPTION}" >&5
19085 echo "$as_me: *** without explicitly specifying
--with-${SUPPSERV_OPTION}" >&6;}
19093 if test "${USE_NBS}" != "no
"; then
19095 if test "x
${NBS_DIR}" != "x
"; then
19096 if test -d ${NBS_DIR}/lib; then
19097 pbxlibdir="-L${NBS_DIR}/lib
"
19099 pbxlibdir="-L${NBS_DIR}"
19102 { echo "$as_me:$LINENO: checking
for nbs_connect
in -lnbs" >&5
19103 echo $ECHO_N "checking
for nbs_connect
in -lnbs...
$ECHO_C" >&6; }
19104 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
19105 echo $ECHO_N "(cached
) $ECHO_C" >&6
19107 ac_check_lib_save_LIBS=$LIBS
19108 LIBS="-lnbs ${pbxlibdir} $LIBS"
19109 cat >conftest.$ac_ext <<_ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19116 /* Override any GCC internal prototype to avoid an error.
19117 Use char because int might match the return type of a GCC
19118 builtin and then its argument prototype would still apply. */
19122 char nbs_connect ();
19126 return nbs_connect ();
19131 rm -f conftest.$ac_objext conftest$ac_exeext
19132 if { (ac_try="$ac_link"
19133 case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_link") 2>conftest.er1
19140 grep -v '^ *+' conftest.er1 >conftest.err
19142 cat conftest.err >&5
19143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19144 (exit $ac_status); } && {
19145 test -z "$ac_c_werror_flag" ||
19146 test ! -s conftest.err
19147 } && test -s conftest$ac_exeext &&
19148 $as_test_x conftest$ac_exeext; then
19149 ac_cv_lib_nbs_nbs_connect=yes
19151 echo "$as_me: failed program was
:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 ac_cv_lib_nbs_nbs_connect=no
19157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19158 conftest$ac_exeext conftest.$ac_ext
19159 LIBS=$ac_check_lib_save_LIBS
19161 { echo "$as_me:$LINENO: result
: $ac_cv_lib_nbs_nbs_connect" >&5
19162 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
19163 if test $ac_cv_lib_nbs_nbs_connect = yes; then
19170 if test "${AST_NBS_FOUND}" = "yes"; then
19172 NBS_HEADER_FOUND="1"
19173 if test "x
${NBS_DIR}" != "x
"; then
19174 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
19175 NBS_INCLUDE="-I${NBS_DIR}/include
"
19176 saved_cppflags="${CPPFLAGS}"
19177 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include
"
19178 if test "xnbs.h
" != "x
" ; then
19179 as_ac_Header=`echo "ac_cv_header_
${NBS_DIR}/include
/nbs.h
" | $as_tr_sh`
19180 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19181 { echo "$as_me:$LINENO: checking
for ${NBS_DIR}/include
/nbs.h
" >&5
19182 echo $ECHO_N "checking
for ${NBS_DIR}/include
/nbs.h...
$ECHO_C" >&6; }
19183 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19184 echo $ECHO_N "(cached
) $ECHO_C" >&6
19186 ac_res=`eval echo '${'$as_ac_Header'}'`
19187 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19188 echo "${ECHO_T}$ac_res" >&6; }
19190 # Is the header compilable?
19191 { echo "$as_me:$LINENO: checking
${NBS_DIR}/include
/nbs.h usability
" >&5
19192 echo $ECHO_N "checking
${NBS_DIR}/include
/nbs.h usability...
$ECHO_C" >&6; }
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 $ac_includes_default
19200 #include <${NBS_DIR}/include/nbs.h>
19202 rm -f conftest.$ac_objext
19203 if { (ac_try="$ac_compile"
19204 case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_compile") 2>conftest.er1
19211 grep -v '^ *+' conftest.er1 >conftest.err
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19215 (exit $ac_status); } && {
19216 test -z "$ac_c_werror_flag" ||
19217 test ! -s conftest.err
19218 } && test -s conftest.$ac_objext; then
19219 ac_header_compiler=yes
19221 echo "$as_me: failed program was
:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19224 ac_header_compiler=no
19227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19228 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19229 echo "${ECHO_T}$ac_header_compiler" >&6; }
19231 # Is the header present?
19232 { echo "$as_me:$LINENO: checking
${NBS_DIR}/include
/nbs.h presence
" >&5
19233 echo $ECHO_N "checking
${NBS_DIR}/include
/nbs.h presence...
$ECHO_C" >&6; }
19234 cat >conftest.$ac_ext <<_ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 #include <${NBS_DIR}/include/nbs.h>
19242 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19243 case "(($ac_try" in
19244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19245 *) ac_try_echo=$ac_try;;
19247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19248 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19250 grep -v '^ *+' conftest.er1 >conftest.err
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19254 (exit $ac_status); } >/dev/null && {
19255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19256 test ! -s conftest.err
19258 ac_header_preproc=yes
19260 echo "$as_me: failed program was
:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19263 ac_header_preproc=no
19266 rm -f conftest.err conftest.$ac_ext
19267 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19268 echo "${ECHO_T}$ac_header_preproc" >&6; }
19270 # So? What about this header?
19271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19273 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19274 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19275 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: proceeding with the compiler
's result" >&5
19276 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result
" >&2;}
19277 ac_header_preproc=yes
19280 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: present but cannot be compiled
" >&5
19281 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: present but cannot be compiled
" >&2;}
19282 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: check
for missing prerequisite headers?
" >&5
19283 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: check
for missing prerequisite headers?
" >&2;}
19284 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: see the Autoconf documentation
" >&5
19285 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: see the Autoconf documentation
" >&2;}
19286 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19287 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19288 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: proceeding with the preprocessor
's result" >&5
19289 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result
" >&2;}
19290 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: in the future
, the compiler will take precedence
" >&5
19291 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: in the future
, the compiler will take precedence
" >&2;}
19295 { echo "$as_me:$LINENO: checking
for ${NBS_DIR}/include
/nbs.h
" >&5
19296 echo $ECHO_N "checking
for ${NBS_DIR}/include
/nbs.h...
$ECHO_C" >&6; }
19297 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19298 echo $ECHO_N "(cached
) $ECHO_C" >&6
19300 eval "$as_ac_Header=\
$ac_header_preproc"
19302 ac_res=`eval echo '${'$as_ac_Header'}'`
19303 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19304 echo "${ECHO_T}$ac_res" >&6; }
19307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19315 CPPFLAGS="${saved_cppflags}"
19317 if test "xnbs.h
" != "x
" ; then
19318 if test "${ac_cv_header_nbs_h+set}" = set; then
19319 { echo "$as_me:$LINENO: checking
for nbs.h
" >&5
19320 echo $ECHO_N "checking
for nbs.h...
$ECHO_C" >&6; }
19321 if test "${ac_cv_header_nbs_h+set}" = set; then
19322 echo $ECHO_N "(cached
) $ECHO_C" >&6
19324 { echo "$as_me:$LINENO: result
: $ac_cv_header_nbs_h" >&5
19325 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19327 # Is the header compilable?
19328 { echo "$as_me:$LINENO: checking nbs.h usability
" >&5
19329 echo $ECHO_N "checking nbs.h usability...
$ECHO_C" >&6; }
19330 cat >conftest.$ac_ext <<_ACEOF
19333 cat confdefs.h >>conftest.$ac_ext
19334 cat >>conftest.$ac_ext <<_ACEOF
19335 /* end confdefs.h. */
19336 $ac_includes_default
19339 rm -f conftest.$ac_objext
19340 if { (ac_try="$ac_compile"
19341 case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_compile") 2>conftest.er1
19348 grep -v '^ *+' conftest.er1 >conftest.err
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19352 (exit $ac_status); } && {
19353 test -z "$ac_c_werror_flag" ||
19354 test ! -s conftest.err
19355 } && test -s conftest.$ac_objext; then
19356 ac_header_compiler=yes
19358 echo "$as_me: failed program was
:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19361 ac_header_compiler=no
19364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19366 echo "${ECHO_T}$ac_header_compiler" >&6; }
19368 # Is the header present?
19369 { echo "$as_me:$LINENO: checking nbs.h presence
" >&5
19370 echo $ECHO_N "checking nbs.h presence...
$ECHO_C" >&6; }
19371 cat >conftest.$ac_ext <<_ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19379 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19380 case "(($ac_try" in
19381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382 *) ac_try_echo=$ac_try;;
19384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19385 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19387 grep -v '^ *+' conftest.er1 >conftest.err
19389 cat conftest.err >&5
19390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19391 (exit $ac_status); } >/dev/null && {
19392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19393 test ! -s conftest.err
19395 ac_header_preproc=yes
19397 echo "$as_me: failed program was
:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19400 ac_header_preproc=no
19403 rm -f conftest.err conftest.$ac_ext
19404 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19405 echo "${ECHO_T}$ac_header_preproc" >&6; }
19407 # So? What about this header?
19408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19410 { echo "$as_me:$LINENO: WARNING
: nbs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19411 echo "$as_me: WARNING
: nbs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19412 { echo "$as_me:$LINENO: WARNING
: nbs.h
: proceeding with the compiler
's result" >&5
19413 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result
" >&2;}
19414 ac_header_preproc=yes
19417 { echo "$as_me:$LINENO: WARNING
: nbs.h
: present but cannot be compiled
" >&5
19418 echo "$as_me: WARNING
: nbs.h
: present but cannot be compiled
" >&2;}
19419 { echo "$as_me:$LINENO: WARNING
: nbs.h
: check
for missing prerequisite headers?
" >&5
19420 echo "$as_me: WARNING
: nbs.h
: check
for missing prerequisite headers?
" >&2;}
19421 { echo "$as_me:$LINENO: WARNING
: nbs.h
: see the Autoconf documentation
" >&5
19422 echo "$as_me: WARNING
: nbs.h
: see the Autoconf documentation
" >&2;}
19423 { echo "$as_me:$LINENO: WARNING
: nbs.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19424 echo "$as_me: WARNING
: nbs.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19425 { echo "$as_me:$LINENO: WARNING
: nbs.h
: proceeding with the preprocessor
's result" >&5
19426 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result
" >&2;}
19427 { echo "$as_me:$LINENO: WARNING
: nbs.h
: in the future
, the compiler will take precedence
" >&5
19428 echo "$as_me: WARNING
: nbs.h
: in the future
, the compiler will take precedence
" >&2;}
19432 { echo "$as_me:$LINENO: checking
for nbs.h
" >&5
19433 echo $ECHO_N "checking
for nbs.h...
$ECHO_C" >&6; }
19434 if test "${ac_cv_header_nbs_h+set}" = set; then
19435 echo $ECHO_N "(cached
) $ECHO_C" >&6
19437 ac_cv_header_nbs_h=$ac_header_preproc
19439 { echo "$as_me:$LINENO: result
: $ac_cv_header_nbs_h" >&5
19440 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19443 if test $ac_cv_header_nbs_h = yes; then
19452 if test "x
${NBS_HEADER_FOUND}" = "x0
" ; then
19453 if test ! -z "${NBS_MANDATORY}" ;
19455 { echo "$as_me:$LINENO: ***" >&5
19456 echo "$as_me: ***" >&6;}
19457 { echo "$as_me:$LINENO: *** It appears that you
do not have the nbs development package installed.
" >&5
19458 echo "$as_me: *** It appears that you
do not have the nbs development package installed.
" >&6;}
19459 { echo "$as_me:$LINENO: *** Please
install it to include
${NBS_DESCRIP} support
, or re-run configure
" >&5
19460 echo "$as_me: *** Please
install it to include
${NBS_DESCRIP} support
, or re-run configure
" >&6;}
19461 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NBS_OPTION}" >&5
19462 echo "$as_me: *** without explicitly specifying
--with-${NBS_OPTION}" >&6;}
19471 cat >>confdefs.h <<_ACEOF
19476 elif test ! -z "${NBS_MANDATORY}";
19478 { echo "$as_me:$LINENO: ***" >&5
19479 echo "$as_me: ***" >&6;}
19480 { echo "$as_me:$LINENO: *** The
${NBS_DESCRIP} installation on this system appears to be broken.
" >&5
19481 echo "$as_me: *** The
${NBS_DESCRIP} installation on this system appears to be broken.
" >&6;}
19482 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
19483 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
19484 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NBS_OPTION}" >&5
19485 echo "$as_me: *** without explicitly specifying
--with-${NBS_OPTION}" >&6;}
19492 if test "${USE_NCURSES}" != "no
"; then
19494 if test "x
${NCURSES_DIR}" != "x
"; then
19495 if test -d ${NCURSES_DIR}/lib; then
19496 pbxlibdir="-L${NCURSES_DIR}/lib
"
19498 pbxlibdir="-L${NCURSES_DIR}"
19501 { echo "$as_me:$LINENO: checking
for initscr
in -lncurses" >&5
19502 echo $ECHO_N "checking
for initscr
in -lncurses...
$ECHO_C" >&6; }
19503 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
19504 echo $ECHO_N "(cached
) $ECHO_C" >&6
19506 ac_check_lib_save_LIBS=$LIBS
19507 LIBS="-lncurses ${pbxlibdir} $LIBS"
19508 cat >conftest.$ac_ext <<_ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19515 /* Override any GCC internal prototype to avoid an error.
19516 Use char because int might match the return type of a GCC
19517 builtin and then its argument prototype would still apply. */
19530 rm -f conftest.$ac_objext conftest$ac_exeext
19531 if { (ac_try="$ac_link"
19532 case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_link") 2>conftest.er1
19539 grep -v '^ *+' conftest.er1 >conftest.err
19541 cat conftest.err >&5
19542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19543 (exit $ac_status); } && {
19544 test -z "$ac_c_werror_flag" ||
19545 test ! -s conftest.err
19546 } && test -s conftest$ac_exeext &&
19547 $as_test_x conftest$ac_exeext; then
19548 ac_cv_lib_ncurses_initscr=yes
19550 echo "$as_me: failed program was
:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ac_cv_lib_ncurses_initscr=no
19556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19557 conftest$ac_exeext conftest.$ac_ext
19558 LIBS=$ac_check_lib_save_LIBS
19560 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_initscr" >&5
19561 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
19562 if test $ac_cv_lib_ncurses_initscr = yes; then
19563 AST_NCURSES_FOUND=yes
19565 AST_NCURSES_FOUND=no
19569 if test "${AST_NCURSES_FOUND}" = "yes"; then
19570 NCURSES_LIB="-lncurses "
19571 NCURSES_HEADER_FOUND="1"
19572 if test "x
${NCURSES_DIR}" != "x
"; then
19573 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19574 NCURSES_INCLUDE="-I${NCURSES_DIR}/include
"
19575 saved_cppflags="${CPPFLAGS}"
19576 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include
"
19577 if test "xcurses.h
" != "x
" ; then
19578 as_ac_Header=`echo "ac_cv_header_
${NCURSES_DIR}/include
/curses.h
" | $as_tr_sh`
19579 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19580 { echo "$as_me:$LINENO: checking
for ${NCURSES_DIR}/include
/curses.h
" >&5
19581 echo $ECHO_N "checking
for ${NCURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
19582 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19583 echo $ECHO_N "(cached
) $ECHO_C" >&6
19585 ac_res=`eval echo '${'$as_ac_Header'}'`
19586 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19587 echo "${ECHO_T}$ac_res" >&6; }
19589 # Is the header compilable?
19590 { echo "$as_me:$LINENO: checking
${NCURSES_DIR}/include
/curses.h usability
" >&5
19591 echo $ECHO_N "checking
${NCURSES_DIR}/include
/curses.h usability...
$ECHO_C" >&6; }
19592 cat >conftest.$ac_ext <<_ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19598 $ac_includes_default
19599 #include <${NCURSES_DIR}/include/curses.h>
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19610 grep -v '^ *+' conftest.er1 >conftest.err
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest.$ac_objext; then
19618 ac_header_compiler=yes
19620 echo "$as_me: failed program was
:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19623 ac_header_compiler=no
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19627 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19628 echo "${ECHO_T}$ac_header_compiler" >&6; }
19630 # Is the header present?
19631 { echo "$as_me:$LINENO: checking
${NCURSES_DIR}/include
/curses.h presence
" >&5
19632 echo $ECHO_N "checking
${NCURSES_DIR}/include
/curses.h presence...
$ECHO_C" >&6; }
19633 cat >conftest.$ac_ext <<_ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 #include <${NCURSES_DIR}/include/curses.h>
19641 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19642 case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19646 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19647 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19649 grep -v '^ *+' conftest.er1 >conftest.err
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19653 (exit $ac_status); } >/dev/null && {
19654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19655 test ! -s conftest.err
19657 ac_header_preproc=yes
19659 echo "$as_me: failed program was
:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19662 ac_header_preproc=no
19665 rm -f conftest.err conftest.$ac_ext
19666 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19667 echo "${ECHO_T}$ac_header_preproc" >&6; }
19669 # So? What about this header?
19670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19672 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19673 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19674 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: proceeding with the compiler
's result" >&5
19675 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result
" >&2;}
19676 ac_header_preproc=yes
19679 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&5
19680 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&2;}
19681 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&5
19682 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&2;}
19683 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&5
19684 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&2;}
19685 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19686 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19687 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: proceeding with the preprocessor
's result" >&5
19688 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result
" >&2;}
19689 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&5
19690 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&2;}
19694 { echo "$as_me:$LINENO: checking
for ${NCURSES_DIR}/include
/curses.h
" >&5
19695 echo $ECHO_N "checking
for ${NCURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
19696 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19697 echo $ECHO_N "(cached
) $ECHO_C" >&6
19699 eval "$as_ac_Header=\
$ac_header_preproc"
19701 ac_res=`eval echo '${'$as_ac_Header'}'`
19702 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19703 echo "${ECHO_T}$ac_res" >&6; }
19706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19707 NCURSES_HEADER_FOUND=1
19709 NCURSES_HEADER_FOUND=0
19714 CPPFLAGS="${saved_cppflags}"
19716 if test "xcurses.h
" != "x
" ; then
19717 if test "${ac_cv_header_curses_h+set}" = set; then
19718 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
19719 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
19720 if test "${ac_cv_header_curses_h+set}" = set; then
19721 echo $ECHO_N "(cached
) $ECHO_C" >&6
19723 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
19724 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19726 # Is the header compilable?
19727 { echo "$as_me:$LINENO: checking curses.h usability
" >&5
19728 echo $ECHO_N "checking curses.h usability...
$ECHO_C" >&6; }
19729 cat >conftest.$ac_ext <<_ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19735 $ac_includes_default
19736 #include <curses.h>
19738 rm -f conftest.$ac_objext
19739 if { (ac_try="$ac_compile"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_compile") 2>conftest.er1
19747 grep -v '^ *+' conftest.er1 >conftest.err
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest.$ac_objext; then
19755 ac_header_compiler=yes
19757 echo "$as_me: failed program was
:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19760 ac_header_compiler=no
19763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19764 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19765 echo "${ECHO_T}$ac_header_compiler" >&6; }
19767 # Is the header present?
19768 { echo "$as_me:$LINENO: checking curses.h presence
" >&5
19769 echo $ECHO_N "checking curses.h presence...
$ECHO_C" >&6; }
19770 cat >conftest.$ac_ext <<_ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19776 #include <curses.h>
19778 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19779 case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19786 grep -v '^ *+' conftest.er1 >conftest.err
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19790 (exit $ac_status); } >/dev/null && {
19791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19792 test ! -s conftest.err
19794 ac_header_preproc=yes
19796 echo "$as_me: failed program was
:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 ac_header_preproc=no
19802 rm -f conftest.err conftest.$ac_ext
19803 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19804 echo "${ECHO_T}$ac_header_preproc" >&6; }
19806 # So? What about this header?
19807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19809 { echo "$as_me:$LINENO: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19810 echo "$as_me: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19811 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the compiler
's result" >&5
19812 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result
" >&2;}
19813 ac_header_preproc=yes
19816 { echo "$as_me:$LINENO: WARNING
: curses.h
: present but cannot be compiled
" >&5
19817 echo "$as_me: WARNING
: curses.h
: present but cannot be compiled
" >&2;}
19818 { echo "$as_me:$LINENO: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&5
19819 echo "$as_me: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&2;}
19820 { echo "$as_me:$LINENO: WARNING
: curses.h
: see the Autoconf documentation
" >&5
19821 echo "$as_me: WARNING
: curses.h
: see the Autoconf documentation
" >&2;}
19822 { echo "$as_me:$LINENO: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19823 echo "$as_me: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19824 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&5
19825 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result
" >&2;}
19826 { echo "$as_me:$LINENO: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&5
19827 echo "$as_me: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&2;}
19831 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
19832 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
19833 if test "${ac_cv_header_curses_h+set}" = set; then
19834 echo $ECHO_N "(cached
) $ECHO_C" >&6
19836 ac_cv_header_curses_h=$ac_header_preproc
19838 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
19839 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19842 if test $ac_cv_header_curses_h = yes; then
19843 NCURSES_HEADER_FOUND=1
19845 NCURSES_HEADER_FOUND=0
19851 if test "x
${NCURSES_HEADER_FOUND}" = "x0
" ; then
19852 if test ! -z "${NCURSES_MANDATORY}" ;
19854 { echo "$as_me:$LINENO: ***" >&5
19855 echo "$as_me: ***" >&6;}
19856 { echo "$as_me:$LINENO: *** It appears that you
do not have the ncurses development package installed.
" >&5
19857 echo "$as_me: *** It appears that you
do not have the ncurses development package installed.
" >&6;}
19858 { echo "$as_me:$LINENO: *** Please
install it to include
${NCURSES_DESCRIP} support
, or re-run configure
" >&5
19859 echo "$as_me: *** Please
install it to include
${NCURSES_DESCRIP} support
, or re-run configure
" >&6;}
19860 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NCURSES_OPTION}" >&5
19861 echo "$as_me: *** without explicitly specifying
--with-${NCURSES_OPTION}" >&6;}
19870 cat >>confdefs.h <<_ACEOF
19871 #define HAVE_NCURSES 1
19875 elif test ! -z "${NCURSES_MANDATORY}";
19877 { echo "$as_me:$LINENO: ***" >&5
19878 echo "$as_me: ***" >&6;}
19879 { echo "$as_me:$LINENO: *** The
${NCURSES_DESCRIP} installation on this system appears to be broken.
" >&5
19880 echo "$as_me: *** The
${NCURSES_DESCRIP} installation on this system appears to be broken.
" >&6;}
19881 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
19882 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
19883 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NCURSES_OPTION}" >&5
19884 echo "$as_me: *** without explicitly specifying
--with-${NCURSES_OPTION}" >&6;}
19891 if test "${USE_NETSNMP}" != "no
"; then
19892 if test "x
${NETSNMP_DIR}" != "x
"; then
19893 if test -n "$ac_tool_prefix"; then
19894 # Extract the first word of "${ac_tool_prefix}net-snmp-config
", so it can be a program name with args.
19895 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19896 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
19897 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
19898 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19899 echo $ECHO_N "(cached
) $ECHO_C" >&6
19901 case $NETSNMP_CONFIG in
19903 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19907 for as_dir in ${NETSNMP_DIR}/bin
19910 test -z "$as_dir" && as_dir=.
19911 for ac_exec_ext in '' $ac_executable_extensions; do
19912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19913 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19914 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
19924 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19925 if test -n "$NETSNMP_CONFIG"; then
19926 { echo "$as_me:$LINENO: result
: $NETSNMP_CONFIG" >&5
19927 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19929 { echo "$as_me:$LINENO: result
: no
" >&5
19930 echo "${ECHO_T}no
" >&6; }
19935 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19936 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19937 # Extract the first word of "net-snmp-config
", so it can be a program name with args.
19938 set dummy net-snmp-config; ac_word=$2
19939 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
19940 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
19941 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19942 echo $ECHO_N "(cached
) $ECHO_C" >&6
19944 case $ac_pt_NETSNMP_CONFIG in
19946 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19950 for as_dir in ${NETSNMP_DIR}/bin
19953 test -z "$as_dir" && as_dir=.
19954 for ac_exec_ext in '' $ac_executable_extensions; do
19955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19956 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19957 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
19967 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19968 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19969 { echo "$as_me:$LINENO: result
: $ac_pt_NETSNMP_CONFIG" >&5
19970 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19972 { echo "$as_me:$LINENO: result
: no
" >&5
19973 echo "${ECHO_T}no
" >&6; }
19976 if test "x
$ac_pt_NETSNMP_CONFIG" = x; then
19977 NETSNMP_CONFIG="No
"
19979 case $cross_compiling:$ac_tool_warned in
19981 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
19982 whose name does not start with the
host triplet. If you think this
19983 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
19984 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
19985 whose name does not start with the
host triplet. If you think this
19986 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
19987 ac_tool_warned=yes ;;
19989 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19992 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19995 if test x"${NETSNMP_CONFIG}" = xNo; then
19996 { echo "$as_me:$LINENO: ***" >&5
19997 echo "$as_me: ***" >&6;}
19998 { echo "$as_me:$LINENO: *** net-snmp-config was not found
in the path you specified
:" >&5
19999 echo "$as_me: *** net-snmp-config was not found
in the path you specified
:" >&6;}
20000 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin
" >&5
20001 echo "$as_me: *** ${NETSNMP_DIR}/bin
" >&6;}
20002 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
20003 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
20004 { echo "$as_me:$LINENO: *** including
--without-netsnmp" >&5
20005 echo "$as_me: *** including
--without-netsnmp" >&6;}
20009 if test -n "$ac_tool_prefix"; then
20010 # Extract the first word of "${ac_tool_prefix}net-snmp-config
", so it can be a program name with args.
20011 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
20012 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
20013 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
20014 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
20015 echo $ECHO_N "(cached
) $ECHO_C" >&6
20017 case $NETSNMP_CONFIG in
20019 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
20022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20023 for as_dir in $PATH
20026 test -z "$as_dir" && as_dir=.
20027 for ac_exec_ext in '' $ac_executable_extensions; do
20028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20029 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20030 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
20040 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
20041 if test -n "$NETSNMP_CONFIG"; then
20042 { echo "$as_me:$LINENO: result
: $NETSNMP_CONFIG" >&5
20043 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
20045 { echo "$as_me:$LINENO: result
: no
" >&5
20046 echo "${ECHO_T}no
" >&6; }
20051 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
20052 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
20053 # Extract the first word of "net-snmp-config
", so it can be a program name with args.
20054 set dummy net-snmp-config; ac_word=$2
20055 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
20056 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
20057 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
20058 echo $ECHO_N "(cached
) $ECHO_C" >&6
20060 case $ac_pt_NETSNMP_CONFIG in
20062 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
20065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20066 for as_dir in $PATH
20069 test -z "$as_dir" && as_dir=.
20070 for ac_exec_ext in '' $ac_executable_extensions; do
20071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20072 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20073 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
20083 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
20084 if test -n "$ac_pt_NETSNMP_CONFIG"; then
20085 { echo "$as_me:$LINENO: result
: $ac_pt_NETSNMP_CONFIG" >&5
20086 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
20088 { echo "$as_me:$LINENO: result
: no
" >&5
20089 echo "${ECHO_T}no
" >&6; }
20092 if test "x
$ac_pt_NETSNMP_CONFIG" = x; then
20093 NETSNMP_CONFIG="No
"
20095 case $cross_compiling:$ac_tool_warned in
20097 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
20098 whose name does not start with the
host triplet. If you think this
20099 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
20100 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
20101 whose name does not start with the
host triplet. If you think this
20102 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
20103 ac_tool_warned=yes ;;
20105 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
20108 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
20113 if test x"${NETSNMP_CONFIG}" != xNo; then
20114 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
20116 { echo "$as_me:$LINENO: checking
for snmp_register_callback
in -lnetsnmp" >&5
20117 echo $ECHO_N "checking
for snmp_register_callback
in -lnetsnmp...
$ECHO_C" >&6; }
20118 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
20119 echo $ECHO_N "(cached
) $ECHO_C" >&6
20121 ac_check_lib_save_LIBS=$LIBS
20122 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
20123 cat >conftest.$ac_ext <<_ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20130 /* Override any GCC internal prototype to avoid an error.
20131 Use char because int might match the return type of a GCC
20132 builtin and then its argument prototype would still apply. */
20136 char snmp_register_callback ();
20140 return snmp_register_callback ();
20145 rm -f conftest.$ac_objext conftest$ac_exeext
20146 if { (ac_try="$ac_link"
20147 case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_link") 2>conftest.er1
20154 grep -v '^ *+' conftest.er1 >conftest.err
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20158 (exit $ac_status); } && {
20159 test -z "$ac_c_werror_flag" ||
20160 test ! -s conftest.err
20161 } && test -s conftest$ac_exeext &&
20162 $as_test_x conftest$ac_exeext; then
20163 ac_cv_lib_netsnmp_snmp_register_callback=yes
20165 echo "$as_me: failed program was
:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ac_cv_lib_netsnmp_snmp_register_callback=no
20171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20172 conftest$ac_exeext conftest.$ac_ext
20173 LIBS=$ac_check_lib_save_LIBS
20175 { echo "$as_me:$LINENO: result
: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
20176 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
20177 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
20179 cat >>confdefs.h <<_ACEOF
20180 #define HAVE_NETSNMP 1
20186 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
20187 NETSNMP_LIB="${NETSNMP_libs}"
20189 elif test ! -z "${NETSNMP_MANDATORY}";
20191 { echo "$as_me:$LINENO: ***" >&5
20192 echo "$as_me: ***" >&6;}
20193 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken.
" >&5
20194 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken.
" >&6;}
20195 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
20196 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
20197 { echo "$as_me:$LINENO: *** including
--without-netsnmp" >&5
20198 echo "$as_me: *** including
--without-netsnmp" >&6;}
20201 elif test ! -z "${NETSNMP_MANDATORY}";
20203 { echo "$as_me:$LINENO: ***" >&5
20204 echo "$as_me: ***" >&6;}
20205 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken.
" >&5
20206 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken.
" >&6;}
20207 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
20208 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
20209 { echo "$as_me:$LINENO: *** including
--without-netsnmp" >&5
20210 echo "$as_me: *** including
--without-netsnmp" >&6;}
20215 if test "${USE_NEWT}" != "no
"; then
20217 if test "x
${NEWT_DIR}" != "x
"; then
20218 if test -d ${NEWT_DIR}/lib; then
20219 pbxlibdir="-L${NEWT_DIR}/lib
"
20221 pbxlibdir="-L${NEWT_DIR}"
20224 { echo "$as_me:$LINENO: checking
for newtBell
in -lnewt" >&5
20225 echo $ECHO_N "checking
for newtBell
in -lnewt...
$ECHO_C" >&6; }
20226 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
20227 echo $ECHO_N "(cached
) $ECHO_C" >&6
20229 ac_check_lib_save_LIBS=$LIBS
20230 LIBS="-lnewt ${pbxlibdir} $LIBS"
20231 cat >conftest.$ac_ext <<_ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20238 /* Override any GCC internal prototype to avoid an error.
20239 Use char because int might match the return type of a GCC
20240 builtin and then its argument prototype would still apply. */
20248 return newtBell ();
20253 rm -f conftest.$ac_objext conftest$ac_exeext
20254 if { (ac_try="$ac_link"
20255 case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_link") 2>conftest.er1
20262 grep -v '^ *+' conftest.er1 >conftest.err
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20266 (exit $ac_status); } && {
20267 test -z "$ac_c_werror_flag" ||
20268 test ! -s conftest.err
20269 } && test -s conftest$ac_exeext &&
20270 $as_test_x conftest$ac_exeext; then
20271 ac_cv_lib_newt_newtBell=yes
20273 echo "$as_me: failed program was
:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 ac_cv_lib_newt_newtBell=no
20279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20280 conftest$ac_exeext conftest.$ac_ext
20281 LIBS=$ac_check_lib_save_LIBS
20283 { echo "$as_me:$LINENO: result
: $ac_cv_lib_newt_newtBell" >&5
20284 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
20285 if test $ac_cv_lib_newt_newtBell = yes; then
20292 if test "${AST_NEWT_FOUND}" = "yes"; then
20294 NEWT_HEADER_FOUND="1"
20295 if test "x
${NEWT_DIR}" != "x
"; then
20296 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
20297 NEWT_INCLUDE="-I${NEWT_DIR}/include
"
20298 saved_cppflags="${CPPFLAGS}"
20299 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include
"
20300 if test "xnewt.h
" != "x
" ; then
20301 as_ac_Header=`echo "ac_cv_header_
${NEWT_DIR}/include
/newt.h
" | $as_tr_sh`
20302 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20303 { echo "$as_me:$LINENO: checking
for ${NEWT_DIR}/include
/newt.h
" >&5
20304 echo $ECHO_N "checking
for ${NEWT_DIR}/include
/newt.h...
$ECHO_C" >&6; }
20305 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20306 echo $ECHO_N "(cached
) $ECHO_C" >&6
20308 ac_res=`eval echo '${'$as_ac_Header'}'`
20309 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20310 echo "${ECHO_T}$ac_res" >&6; }
20312 # Is the header compilable?
20313 { echo "$as_me:$LINENO: checking
${NEWT_DIR}/include
/newt.h usability
" >&5
20314 echo $ECHO_N "checking
${NEWT_DIR}/include
/newt.h usability...
$ECHO_C" >&6; }
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 $ac_includes_default
20322 #include <${NEWT_DIR}/include/newt.h>
20324 rm -f conftest.$ac_objext
20325 if { (ac_try="$ac_compile"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_compile") 2>conftest.er1
20333 grep -v '^ *+' conftest.er1 >conftest.err
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest.$ac_objext; then
20341 ac_header_compiler=yes
20343 echo "$as_me: failed program was
:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ac_header_compiler=no
20349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20351 echo "${ECHO_T}$ac_header_compiler" >&6; }
20353 # Is the header present?
20354 { echo "$as_me:$LINENO: checking
${NEWT_DIR}/include
/newt.h presence
" >&5
20355 echo $ECHO_N "checking
${NEWT_DIR}/include
/newt.h presence...
$ECHO_C" >&6; }
20356 cat >conftest.$ac_ext <<_ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20362 #include <${NEWT_DIR}/include/newt.h>
20364 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20372 grep -v '^ *+' conftest.er1 >conftest.err
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20376 (exit $ac_status); } >/dev/null && {
20377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20380 ac_header_preproc=yes
20382 echo "$as_me: failed program was
:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20385 ac_header_preproc=no
20388 rm -f conftest.err conftest.$ac_ext
20389 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20390 echo "${ECHO_T}$ac_header_preproc" >&6; }
20392 # So? What about this header?
20393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20395 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
20396 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20397 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: proceeding with the compiler
's result" >&5
20398 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result
" >&2;}
20399 ac_header_preproc=yes
20402 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: present but cannot be compiled
" >&5
20403 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: present but cannot be compiled
" >&2;}
20404 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: check
for missing prerequisite headers?
" >&5
20405 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: check
for missing prerequisite headers?
" >&2;}
20406 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: see the Autoconf documentation
" >&5
20407 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: see the Autoconf documentation
" >&2;}
20408 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: section
\"Present But Cannot Be Compiled
\"" >&5
20409 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
20410 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: proceeding with the preprocessor
's result" >&5
20411 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result
" >&2;}
20412 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: in the future
, the compiler will take precedence
" >&5
20413 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: in the future
, the compiler will take precedence
" >&2;}
20417 { echo "$as_me:$LINENO: checking
for ${NEWT_DIR}/include
/newt.h
" >&5
20418 echo $ECHO_N "checking
for ${NEWT_DIR}/include
/newt.h...
$ECHO_C" >&6; }
20419 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20420 echo $ECHO_N "(cached
) $ECHO_C" >&6
20422 eval "$as_ac_Header=\
$ac_header_preproc"
20424 ac_res=`eval echo '${'$as_ac_Header'}'`
20425 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20426 echo "${ECHO_T}$ac_res" >&6; }
20429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20430 NEWT_HEADER_FOUND=1
20432 NEWT_HEADER_FOUND=0
20437 CPPFLAGS="${saved_cppflags}"
20439 if test "xnewt.h
" != "x
" ; then
20440 if test "${ac_cv_header_newt_h+set}" = set; then
20441 { echo "$as_me:$LINENO: checking
for newt.h
" >&5
20442 echo $ECHO_N "checking
for newt.h...
$ECHO_C" >&6; }
20443 if test "${ac_cv_header_newt_h+set}" = set; then
20444 echo $ECHO_N "(cached
) $ECHO_C" >&6
20446 { echo "$as_me:$LINENO: result
: $ac_cv_header_newt_h" >&5
20447 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20449 # Is the header compilable?
20450 { echo "$as_me:$LINENO: checking newt.h usability
" >&5
20451 echo $ECHO_N "checking newt.h usability...
$ECHO_C" >&6; }
20452 cat >conftest.$ac_ext <<_ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458 $ac_includes_default
20461 rm -f conftest.$ac_objext
20462 if { (ac_try="$ac_compile"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_compile") 2>conftest.er1
20470 grep -v '^ *+' conftest.er1 >conftest.err
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest.$ac_objext; then
20478 ac_header_compiler=yes
20480 echo "$as_me: failed program was
:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20483 ac_header_compiler=no
20486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20488 echo "${ECHO_T}$ac_header_compiler" >&6; }
20490 # Is the header present?
20491 { echo "$as_me:$LINENO: checking newt.h presence
" >&5
20492 echo $ECHO_N "checking newt.h presence...
$ECHO_C" >&6; }
20493 cat >conftest.$ac_ext <<_ACEOF
20496 cat confdefs.h >>conftest.$ac_ext
20497 cat >>conftest.$ac_ext <<_ACEOF
20498 /* end confdefs.h. */
20501 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20502 case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20509 grep -v '^ *+' conftest.er1 >conftest.err
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20513 (exit $ac_status); } >/dev/null && {
20514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20517 ac_header_preproc=yes
20519 echo "$as_me: failed program was
:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 ac_header_preproc=no
20525 rm -f conftest.err conftest.$ac_ext
20526 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20527 echo "${ECHO_T}$ac_header_preproc" >&6; }
20529 # So? What about this header?
20530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20532 { echo "$as_me:$LINENO: WARNING
: newt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
20533 echo "$as_me: WARNING
: newt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20534 { echo "$as_me:$LINENO: WARNING
: newt.h
: proceeding with the compiler
's result" >&5
20535 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result
" >&2;}
20536 ac_header_preproc=yes
20539 { echo "$as_me:$LINENO: WARNING
: newt.h
: present but cannot be compiled
" >&5
20540 echo "$as_me: WARNING
: newt.h
: present but cannot be compiled
" >&2;}
20541 { echo "$as_me:$LINENO: WARNING
: newt.h
: check
for missing prerequisite headers?
" >&5
20542 echo "$as_me: WARNING
: newt.h
: check
for missing prerequisite headers?
" >&2;}
20543 { echo "$as_me:$LINENO: WARNING
: newt.h
: see the Autoconf documentation
" >&5
20544 echo "$as_me: WARNING
: newt.h
: see the Autoconf documentation
" >&2;}
20545 { echo "$as_me:$LINENO: WARNING
: newt.h
: section
\"Present But Cannot Be Compiled
\"" >&5
20546 echo "$as_me: WARNING
: newt.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
20547 { echo "$as_me:$LINENO: WARNING
: newt.h
: proceeding with the preprocessor
's result" >&5
20548 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result
" >&2;}
20549 { echo "$as_me:$LINENO: WARNING
: newt.h
: in the future
, the compiler will take precedence
" >&5
20550 echo "$as_me: WARNING
: newt.h
: in the future
, the compiler will take precedence
" >&2;}
20554 { echo "$as_me:$LINENO: checking
for newt.h
" >&5
20555 echo $ECHO_N "checking
for newt.h...
$ECHO_C" >&6; }
20556 if test "${ac_cv_header_newt_h+set}" = set; then
20557 echo $ECHO_N "(cached
) $ECHO_C" >&6
20559 ac_cv_header_newt_h=$ac_header_preproc
20561 { echo "$as_me:$LINENO: result
: $ac_cv_header_newt_h" >&5
20562 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20565 if test $ac_cv_header_newt_h = yes; then
20566 NEWT_HEADER_FOUND=1
20568 NEWT_HEADER_FOUND=0
20574 if test "x
${NEWT_HEADER_FOUND}" = "x0
" ; then
20575 if test ! -z "${NEWT_MANDATORY}" ;
20577 { echo "$as_me:$LINENO: ***" >&5
20578 echo "$as_me: ***" >&6;}
20579 { echo "$as_me:$LINENO: *** It appears that you
do not have the newt development package installed.
" >&5
20580 echo "$as_me: *** It appears that you
do not have the newt development package installed.
" >&6;}
20581 { echo "$as_me:$LINENO: *** Please
install it to include
${NEWT_DESCRIP} support
, or re-run configure
" >&5
20582 echo "$as_me: *** Please
install it to include
${NEWT_DESCRIP} support
, or re-run configure
" >&6;}
20583 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NEWT_OPTION}" >&5
20584 echo "$as_me: *** without explicitly specifying
--with-${NEWT_OPTION}" >&6;}
20593 cat >>confdefs.h <<_ACEOF
20594 #define HAVE_NEWT 1
20598 elif test ! -z "${NEWT_MANDATORY}";
20600 { echo "$as_me:$LINENO: ***" >&5
20601 echo "$as_me: ***" >&6;}
20602 { echo "$as_me:$LINENO: *** The
${NEWT_DESCRIP} installation on this system appears to be broken.
" >&5
20603 echo "$as_me: *** The
${NEWT_DESCRIP} installation on this system appears to be broken.
" >&6;}
20604 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
20605 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
20606 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NEWT_OPTION}" >&5
20607 echo "$as_me: *** without explicitly specifying
--with-${NEWT_OPTION}" >&6;}
20614 if test "${USE_UNIXODBC}" != "no
"; then
20616 if test "x
${UNIXODBC_DIR}" != "x
"; then
20617 if test -d ${UNIXODBC_DIR}/lib; then
20618 pbxlibdir="-L${UNIXODBC_DIR}/lib
"
20620 pbxlibdir="-L${UNIXODBC_DIR}"
20623 { echo "$as_me:$LINENO: checking
for SQLConnect
in -lodbc" >&5
20624 echo $ECHO_N "checking
for SQLConnect
in -lodbc...
$ECHO_C" >&6; }
20625 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20626 echo $ECHO_N "(cached
) $ECHO_C" >&6
20628 ac_check_lib_save_LIBS=$LIBS
20629 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20637 /* Override any GCC internal prototype to avoid an error.
20638 Use char because int might match the return type of a GCC
20639 builtin and then its argument prototype would still apply. */
20643 char SQLConnect ();
20647 return SQLConnect ();
20652 rm -f conftest.$ac_objext conftest$ac_exeext
20653 if { (ac_try="$ac_link"
20654 case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_link") 2>conftest.er1
20661 grep -v '^ *+' conftest.er1 >conftest.err
20663 cat conftest.err >&5
20664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20665 (exit $ac_status); } && {
20666 test -z "$ac_c_werror_flag" ||
20667 test ! -s conftest.err
20668 } && test -s conftest$ac_exeext &&
20669 $as_test_x conftest$ac_exeext; then
20670 ac_cv_lib_odbc_SQLConnect=yes
20672 echo "$as_me: failed program was
:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20675 ac_cv_lib_odbc_SQLConnect=no
20678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20679 conftest$ac_exeext conftest.$ac_ext
20680 LIBS=$ac_check_lib_save_LIBS
20682 { echo "$as_me:$LINENO: result
: $ac_cv_lib_odbc_SQLConnect" >&5
20683 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
20684 if test $ac_cv_lib_odbc_SQLConnect = yes; then
20685 AST_UNIXODBC_FOUND=yes
20687 AST_UNIXODBC_FOUND=no
20691 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
20692 UNIXODBC_LIB="-lodbc -lltdl"
20693 UNIXODBC_HEADER_FOUND="1"
20694 if test "x
${UNIXODBC_DIR}" != "x
"; then
20695 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
20696 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include
"
20697 saved_cppflags="${CPPFLAGS}"
20698 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include
"
20699 if test "xsql.h
" != "x
" ; then
20700 as_ac_Header=`echo "ac_cv_header_
${UNIXODBC_DIR}/include
/sql.h
" | $as_tr_sh`
20701 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20702 { echo "$as_me:$LINENO: checking
for ${UNIXODBC_DIR}/include
/sql.h
" >&5
20703 echo $ECHO_N "checking
for ${UNIXODBC_DIR}/include
/sql.h...
$ECHO_C" >&6; }
20704 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20705 echo $ECHO_N "(cached
) $ECHO_C" >&6
20707 ac_res=`eval echo '${'$as_ac_Header'}'`
20708 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20709 echo "${ECHO_T}$ac_res" >&6; }
20711 # Is the header compilable?
20712 { echo "$as_me:$LINENO: checking
${UNIXODBC_DIR}/include
/sql.h usability
" >&5
20713 echo $ECHO_N "checking
${UNIXODBC_DIR}/include
/sql.h usability...
$ECHO_C" >&6; }
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 $ac_includes_default
20721 #include <${UNIXODBC_DIR}/include/sql.h>
20723 rm -f conftest.$ac_objext
20724 if { (ac_try="$ac_compile"
20725 case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_compile") 2>conftest.er1
20732 grep -v '^ *+' conftest.er1 >conftest.err
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20736 (exit $ac_status); } && {
20737 test -z "$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20739 } && test -s conftest.$ac_objext; then
20740 ac_header_compiler=yes
20742 echo "$as_me: failed program was
:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ac_header_compiler=no
20748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20749 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20750 echo "${ECHO_T}$ac_header_compiler" >&6; }
20752 # Is the header present?
20753 { echo "$as_me:$LINENO: checking
${UNIXODBC_DIR}/include
/sql.h presence
" >&5
20754 echo $ECHO_N "checking
${UNIXODBC_DIR}/include
/sql.h presence...
$ECHO_C" >&6; }
20755 cat >conftest.$ac_ext <<_ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20761 #include <${UNIXODBC_DIR}/include/sql.h>
20763 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20771 grep -v '^ *+' conftest.er1 >conftest.err
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20775 (exit $ac_status); } >/dev/null && {
20776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20777 test ! -s conftest.err
20779 ac_header_preproc=yes
20781 echo "$as_me: failed program was
:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 ac_header_preproc=no
20787 rm -f conftest.err conftest.$ac_ext
20788 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20789 echo "${ECHO_T}$ac_header_preproc" >&6; }
20791 # So? What about this header?
20792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20794 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
20795 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20796 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: proceeding with the compiler
's result" >&5
20797 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result
" >&2;}
20798 ac_header_preproc=yes
20801 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: present but cannot be compiled
" >&5
20802 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: present but cannot be compiled
" >&2;}
20803 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: check
for missing prerequisite headers?
" >&5
20804 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: check
for missing prerequisite headers?
" >&2;}
20805 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: see the Autoconf documentation
" >&5
20806 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: see the Autoconf documentation
" >&2;}
20807 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: section
\"Present But Cannot Be Compiled
\"" >&5
20808 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
20809 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: proceeding with the preprocessor
's result" >&5
20810 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result
" >&2;}
20811 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: in the future
, the compiler will take precedence
" >&5
20812 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: in the future
, the compiler will take precedence
" >&2;}
20816 { echo "$as_me:$LINENO: checking
for ${UNIXODBC_DIR}/include
/sql.h
" >&5
20817 echo $ECHO_N "checking
for ${UNIXODBC_DIR}/include
/sql.h...
$ECHO_C" >&6; }
20818 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20819 echo $ECHO_N "(cached
) $ECHO_C" >&6
20821 eval "$as_ac_Header=\
$ac_header_preproc"
20823 ac_res=`eval echo '${'$as_ac_Header'}'`
20824 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20825 echo "${ECHO_T}$ac_res" >&6; }
20828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20829 UNIXODBC_HEADER_FOUND=1
20831 UNIXODBC_HEADER_FOUND=0
20836 CPPFLAGS="${saved_cppflags}"
20838 if test "xsql.h
" != "x
" ; then
20839 if test "${ac_cv_header_sql_h+set}" = set; then
20840 { echo "$as_me:$LINENO: checking
for sql.h
" >&5
20841 echo $ECHO_N "checking
for sql.h...
$ECHO_C" >&6; }
20842 if test "${ac_cv_header_sql_h+set}" = set; then
20843 echo $ECHO_N "(cached
) $ECHO_C" >&6
20845 { echo "$as_me:$LINENO: result
: $ac_cv_header_sql_h" >&5
20846 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20848 # Is the header compilable?
20849 { echo "$as_me:$LINENO: checking sql.h usability
" >&5
20850 echo $ECHO_N "checking sql.h usability...
$ECHO_C" >&6; }
20851 cat >conftest.$ac_ext <<_ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857 $ac_includes_default
20860 rm -f conftest.$ac_objext
20861 if { (ac_try="$ac_compile"
20862 case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_compile") 2>conftest.er1
20869 grep -v '^ *+' conftest.er1 >conftest.err
20871 cat conftest.err >&5
20872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20873 (exit $ac_status); } && {
20874 test -z "$ac_c_werror_flag" ||
20875 test ! -s conftest.err
20876 } && test -s conftest.$ac_objext; then
20877 ac_header_compiler=yes
20879 echo "$as_me: failed program was
:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 ac_header_compiler=no
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20887 echo "${ECHO_T}$ac_header_compiler" >&6; }
20889 # Is the header present?
20890 { echo "$as_me:$LINENO: checking sql.h presence
" >&5
20891 echo $ECHO_N "checking sql.h presence...
$ECHO_C" >&6; }
20892 cat >conftest.$ac_ext <<_ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20900 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20908 grep -v '^ *+' conftest.er1 >conftest.err
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20912 (exit $ac_status); } >/dev/null && {
20913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20914 test ! -s conftest.err
20916 ac_header_preproc=yes
20918 echo "$as_me: failed program was
:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20921 ac_header_preproc=no
20924 rm -f conftest.err conftest.$ac_ext
20925 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20926 echo "${ECHO_T}$ac_header_preproc" >&6; }
20928 # So? What about this header?
20929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20931 { echo "$as_me:$LINENO: WARNING
: sql.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
20932 echo "$as_me: WARNING
: sql.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20933 { echo "$as_me:$LINENO: WARNING
: sql.h
: proceeding with the compiler
's result" >&5
20934 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result
" >&2;}
20935 ac_header_preproc=yes
20938 { echo "$as_me:$LINENO: WARNING
: sql.h
: present but cannot be compiled
" >&5
20939 echo "$as_me: WARNING
: sql.h
: present but cannot be compiled
" >&2;}
20940 { echo "$as_me:$LINENO: WARNING
: sql.h
: check
for missing prerequisite headers?
" >&5
20941 echo "$as_me: WARNING
: sql.h
: check
for missing prerequisite headers?
" >&2;}
20942 { echo "$as_me:$LINENO: WARNING
: sql.h
: see the Autoconf documentation
" >&5
20943 echo "$as_me: WARNING
: sql.h
: see the Autoconf documentation
" >&2;}
20944 { echo "$as_me:$LINENO: WARNING
: sql.h
: section
\"Present But Cannot Be Compiled
\"" >&5
20945 echo "$as_me: WARNING
: sql.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
20946 { echo "$as_me:$LINENO: WARNING
: sql.h
: proceeding with the preprocessor
's result" >&5
20947 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result
" >&2;}
20948 { echo "$as_me:$LINENO: WARNING
: sql.h
: in the future
, the compiler will take precedence
" >&5
20949 echo "$as_me: WARNING
: sql.h
: in the future
, the compiler will take precedence
" >&2;}
20953 { echo "$as_me:$LINENO: checking
for sql.h
" >&5
20954 echo $ECHO_N "checking
for sql.h...
$ECHO_C" >&6; }
20955 if test "${ac_cv_header_sql_h+set}" = set; then
20956 echo $ECHO_N "(cached
) $ECHO_C" >&6
20958 ac_cv_header_sql_h=$ac_header_preproc
20960 { echo "$as_me:$LINENO: result
: $ac_cv_header_sql_h" >&5
20961 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20964 if test $ac_cv_header_sql_h = yes; then
20965 UNIXODBC_HEADER_FOUND=1
20967 UNIXODBC_HEADER_FOUND=0
20973 if test "x
${UNIXODBC_HEADER_FOUND}" = "x0
" ; then
20974 if test ! -z "${UNIXODBC_MANDATORY}" ;
20976 { echo "$as_me:$LINENO: ***" >&5
20977 echo "$as_me: ***" >&6;}
20978 { echo "$as_me:$LINENO: *** It appears that you
do not have the odbc development package installed.
" >&5
20979 echo "$as_me: *** It appears that you
do not have the odbc development package installed.
" >&6;}
20980 { echo "$as_me:$LINENO: *** Please
install it to include
${UNIXODBC_DESCRIP} support
, or re-run configure
" >&5
20981 echo "$as_me: *** Please
install it to include
${UNIXODBC_DESCRIP} support
, or re-run configure
" >&6;}
20982 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${UNIXODBC_OPTION}" >&5
20983 echo "$as_me: *** without explicitly specifying
--with-${UNIXODBC_OPTION}" >&6;}
20987 UNIXODBC_INCLUDE=""
20992 cat >>confdefs.h <<_ACEOF
20993 #define HAVE_UNIXODBC 1
20997 elif test ! -z "${UNIXODBC_MANDATORY}";
20999 { echo "$as_me:$LINENO: ***" >&5
21000 echo "$as_me: ***" >&6;}
21001 { echo "$as_me:$LINENO: *** The
${UNIXODBC_DESCRIP} installation on this system appears to be broken.
" >&5
21002 echo "$as_me: *** The
${UNIXODBC_DESCRIP} installation on this system appears to be broken.
" >&6;}
21003 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
21004 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
21005 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${UNIXODBC_OPTION}" >&5
21006 echo "$as_me: *** without explicitly specifying
--with-${UNIXODBC_OPTION}" >&6;}
21013 if test "${USE_OGG}" != "no
"; then
21015 if test "x
${OGG_DIR}" != "x
"; then
21016 if test -d ${OGG_DIR}/lib; then
21017 pbxlibdir="-L${OGG_DIR}/lib
"
21019 pbxlibdir="-L${OGG_DIR}"
21022 { echo "$as_me:$LINENO: checking
for ogg_sync_init
in -logg" >&5
21023 echo $ECHO_N "checking
for ogg_sync_init
in -logg...
$ECHO_C" >&6; }
21024 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
21025 echo $ECHO_N "(cached
) $ECHO_C" >&6
21027 ac_check_lib_save_LIBS=$LIBS
21028 LIBS="-logg ${pbxlibdir} $LIBS"
21029 cat >conftest.$ac_ext <<_ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21036 /* Override any GCC internal prototype to avoid an error.
21037 Use char because int might match the return type of a GCC
21038 builtin and then its argument prototype would still apply. */
21042 char ogg_sync_init ();
21046 return ogg_sync_init ();
21051 rm -f conftest.$ac_objext conftest$ac_exeext
21052 if { (ac_try="$ac_link"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_link") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest$ac_exeext &&
21068 $as_test_x conftest$ac_exeext; then
21069 ac_cv_lib_ogg_ogg_sync_init=yes
21071 echo "$as_me: failed program was
:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_cv_lib_ogg_ogg_sync_init=no
21077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21078 conftest$ac_exeext conftest.$ac_ext
21079 LIBS=$ac_check_lib_save_LIBS
21081 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ogg_ogg_sync_init" >&5
21082 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
21083 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
21090 if test "${AST_OGG_FOUND}" = "yes"; then
21092 OGG_HEADER_FOUND="1"
21093 if test "x
${OGG_DIR}" != "x
"; then
21094 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
21095 OGG_INCLUDE="-I${OGG_DIR}/include
"
21096 saved_cppflags="${CPPFLAGS}"
21097 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include
"
21098 if test "x
" != "x
" ; then
21099 as_ac_Header=`echo "ac_cv_header_
${OGG_DIR}/include
/" | $as_tr_sh`
21100 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21101 { echo "$as_me:$LINENO: checking
for ${OGG_DIR}/include
/" >&5
21102 echo $ECHO_N "checking
for ${OGG_DIR}/include
/...
$ECHO_C" >&6; }
21103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21104 echo $ECHO_N "(cached
) $ECHO_C" >&6
21106 ac_res=`eval echo '${'$as_ac_Header'}'`
21107 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21108 echo "${ECHO_T}$ac_res" >&6; }
21110 # Is the header compilable?
21111 { echo "$as_me:$LINENO: checking
${OGG_DIR}/include
/ usability
" >&5
21112 echo $ECHO_N "checking
${OGG_DIR}/include
/ usability...
$ECHO_C" >&6; }
21113 cat >conftest.$ac_ext <<_ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119 $ac_includes_default
21120 #include <${OGG_DIR}/include/>
21122 rm -f conftest.$ac_objext
21123 if { (ac_try="$ac_compile"
21124 case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21129 (eval "$ac_compile") 2>conftest.er1
21131 grep -v '^ *+' conftest.er1 >conftest.err
21133 cat conftest.err >&5
21134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21135 (exit $ac_status); } && {
21136 test -z "$ac_c_werror_flag" ||
21137 test ! -s conftest.err
21138 } && test -s conftest.$ac_objext; then
21139 ac_header_compiler=yes
21141 echo "$as_me: failed program was
:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21144 ac_header_compiler=no
21147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21148 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21149 echo "${ECHO_T}$ac_header_compiler" >&6; }
21151 # Is the header present?
21152 { echo "$as_me:$LINENO: checking
${OGG_DIR}/include
/ presence
" >&5
21153 echo $ECHO_N "checking
${OGG_DIR}/include
/ presence...
$ECHO_C" >&6; }
21154 cat >conftest.$ac_ext <<_ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h. */
21160 #include <${OGG_DIR}/include/>
21162 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21163 case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21170 grep -v '^ *+' conftest.er1 >conftest.err
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21174 (exit $ac_status); } >/dev/null && {
21175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21178 ac_header_preproc=yes
21180 echo "$as_me: failed program was
:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ac_header_preproc=no
21186 rm -f conftest.err conftest.$ac_ext
21187 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21188 echo "${ECHO_T}$ac_header_preproc" >&6; }
21190 # So? What about this header?
21191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21193 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&5
21194 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21195 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: proceeding with the compiler
's result" >&5
21196 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result
" >&2;}
21197 ac_header_preproc=yes
21200 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: present but cannot be compiled
" >&5
21201 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: present but cannot be compiled
" >&2;}
21202 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: check
for missing prerequisite headers?
" >&5
21203 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: check
for missing prerequisite headers?
" >&2;}
21204 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: see the Autoconf documentation
" >&5
21205 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: see the Autoconf documentation
" >&2;}
21206 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&5
21207 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&2;}
21208 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: proceeding with the preprocessor
's result" >&5
21209 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result
" >&2;}
21210 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: in the future
, the compiler will take precedence
" >&5
21211 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: in the future
, the compiler will take precedence
" >&2;}
21215 { echo "$as_me:$LINENO: checking
for ${OGG_DIR}/include
/" >&5
21216 echo $ECHO_N "checking
for ${OGG_DIR}/include
/...
$ECHO_C" >&6; }
21217 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21218 echo $ECHO_N "(cached
) $ECHO_C" >&6
21220 eval "$as_ac_Header=\
$ac_header_preproc"
21222 ac_res=`eval echo '${'$as_ac_Header'}'`
21223 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21224 echo "${ECHO_T}$ac_res" >&6; }
21227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21235 CPPFLAGS="${saved_cppflags}"
21237 if test "x
" != "x
" ; then
21238 if test "${ac_cv_header_+set}" = set; then
21239 { echo "$as_me:$LINENO: checking
for " >&5
21240 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
21241 if test "${ac_cv_header_+set}" = set; then
21242 echo $ECHO_N "(cached
) $ECHO_C" >&6
21244 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
21245 echo "${ECHO_T}$ac_cv_header_" >&6; }
21247 # Is the header compilable?
21248 { echo "$as_me:$LINENO: checking usability
" >&5
21249 echo $ECHO_N "checking usability...
$ECHO_C" >&6; }
21250 cat >conftest.$ac_ext <<_ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21256 $ac_includes_default
21259 rm -f conftest.$ac_objext
21260 if { (ac_try="$ac_compile"
21261 case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_compile") 2>conftest.er1
21268 grep -v '^ *+' conftest.er1 >conftest.err
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21272 (exit $ac_status); } && {
21273 test -z "$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21275 } && test -s conftest.$ac_objext; then
21276 ac_header_compiler=yes
21278 echo "$as_me: failed program was
:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21281 ac_header_compiler=no
21284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21285 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21286 echo "${ECHO_T}$ac_header_compiler" >&6; }
21288 # Is the header present?
21289 { echo "$as_me:$LINENO: checking presence
" >&5
21290 echo $ECHO_N "checking presence...
$ECHO_C" >&6; }
21291 cat >conftest.$ac_ext <<_ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h. */
21299 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21311 (exit $ac_status); } >/dev/null && {
21312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21315 ac_header_preproc=yes
21317 echo "$as_me: failed program was
:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_header_preproc=no
21323 rm -f conftest.err conftest.$ac_ext
21324 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21325 echo "${ECHO_T}$ac_header_preproc" >&6; }
21327 # So? What about this header?
21328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21330 { echo "$as_me:$LINENO: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&5
21331 echo "$as_me: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21332 { echo "$as_me:$LINENO: WARNING
: : proceeding with the compiler
's result" >&5
21333 echo "$as_me: WARNING: : proceeding with the compiler's result
" >&2;}
21334 ac_header_preproc=yes
21337 { echo "$as_me:$LINENO: WARNING
: : present but cannot be compiled
" >&5
21338 echo "$as_me: WARNING
: : present but cannot be compiled
" >&2;}
21339 { echo "$as_me:$LINENO: WARNING
: : check
for missing prerequisite headers?
" >&5
21340 echo "$as_me: WARNING
: : check
for missing prerequisite headers?
" >&2;}
21341 { echo "$as_me:$LINENO: WARNING
: : see the Autoconf documentation
" >&5
21342 echo "$as_me: WARNING
: : see the Autoconf documentation
" >&2;}
21343 { echo "$as_me:$LINENO: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&5
21344 echo "$as_me: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&2;}
21345 { echo "$as_me:$LINENO: WARNING
: : proceeding with the preprocessor
's result" >&5
21346 echo "$as_me: WARNING: : proceeding with the preprocessor's result
" >&2;}
21347 { echo "$as_me:$LINENO: WARNING
: : in the future
, the compiler will take precedence
" >&5
21348 echo "$as_me: WARNING
: : in the future
, the compiler will take precedence
" >&2;}
21352 { echo "$as_me:$LINENO: checking
for " >&5
21353 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
21354 if test "${ac_cv_header_+set}" = set; then
21355 echo $ECHO_N "(cached
) $ECHO_C" >&6
21357 ac_cv_header_=$ac_header_preproc
21359 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
21360 echo "${ECHO_T}$ac_cv_header_" >&6; }
21363 if test $ac_cv_header_ = yes; then
21372 if test "x
${OGG_HEADER_FOUND}" = "x0
" ; then
21373 if test ! -z "${OGG_MANDATORY}" ;
21375 { echo "$as_me:$LINENO: ***" >&5
21376 echo "$as_me: ***" >&6;}
21377 { echo "$as_me:$LINENO: *** It appears that you
do not have the ogg development package installed.
" >&5
21378 echo "$as_me: *** It appears that you
do not have the ogg development package installed.
" >&6;}
21379 { echo "$as_me:$LINENO: *** Please
install it to include
${OGG_DESCRIP} support
, or re-run configure
" >&5
21380 echo "$as_me: *** Please
install it to include
${OGG_DESCRIP} support
, or re-run configure
" >&6;}
21381 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OGG_OPTION}" >&5
21382 echo "$as_me: *** without explicitly specifying
--with-${OGG_OPTION}" >&6;}
21391 cat >>confdefs.h <<_ACEOF
21396 elif test ! -z "${OGG_MANDATORY}";
21398 { echo "$as_me:$LINENO: ***" >&5
21399 echo "$as_me: ***" >&6;}
21400 { echo "$as_me:$LINENO: *** The
${OGG_DESCRIP} installation on this system appears to be broken.
" >&5
21401 echo "$as_me: *** The
${OGG_DESCRIP} installation on this system appears to be broken.
" >&6;}
21402 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
21403 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
21404 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OGG_OPTION}" >&5
21405 echo "$as_me: *** without explicitly specifying
--with-${OGG_OPTION}" >&6;}
21412 if test "${USE_OSPTK}" != "no
"; then
21414 if test "x
${OSPTK_DIR}" != "x
"; then
21415 if test -d ${OSPTK_DIR}/lib; then
21416 pbxlibdir="-L${OSPTK_DIR}/lib
"
21418 pbxlibdir="-L${OSPTK_DIR}"
21421 { echo "$as_me:$LINENO: checking
for OSPPCryptoDecrypt
in -losptk" >&5
21422 echo $ECHO_N "checking
for OSPPCryptoDecrypt
in -losptk...
$ECHO_C" >&6; }
21423 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
21424 echo $ECHO_N "(cached
) $ECHO_C" >&6
21426 ac_check_lib_save_LIBS=$LIBS
21427 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
21428 cat >conftest.$ac_ext <<_ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h. */
21435 /* Override any GCC internal prototype to avoid an error.
21436 Use char because int might match the return type of a GCC
21437 builtin and then its argument prototype would still apply. */
21441 char OSPPCryptoDecrypt ();
21445 return OSPPCryptoDecrypt ();
21450 rm -f conftest.$ac_objext conftest$ac_exeext
21451 if { (ac_try="$ac_link"
21452 case "(($ac_try" in
21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454 *) ac_try_echo=$ac_try;;
21456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21457 (eval "$ac_link") 2>conftest.er1
21459 grep -v '^ *+' conftest.er1 >conftest.err
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21463 (exit $ac_status); } && {
21464 test -z "$ac_c_werror_flag" ||
21465 test ! -s conftest.err
21466 } && test -s conftest$ac_exeext &&
21467 $as_test_x conftest$ac_exeext; then
21468 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
21470 echo "$as_me: failed program was
:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21473 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
21476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21477 conftest$ac_exeext conftest.$ac_ext
21478 LIBS=$ac_check_lib_save_LIBS
21480 { echo "$as_me:$LINENO: result
: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
21481 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
21482 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
21483 AST_OSPTK_FOUND=yes
21489 if test "${AST_OSPTK_FOUND}" = "yes"; then
21490 OSPTK_LIB="-losptk -lcrypto -lssl"
21491 OSPTK_HEADER_FOUND="1"
21492 if test "x
${OSPTK_DIR}" != "x
"; then
21493 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
21494 OSPTK_INCLUDE="-I${OSPTK_DIR}/include
"
21495 saved_cppflags="${CPPFLAGS}"
21496 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include
"
21497 if test "xosp
/osp.h
" != "x
" ; then
21498 as_ac_Header=`echo "ac_cv_header_
${OSPTK_DIR}/include
/osp
/osp.h
" | $as_tr_sh`
21499 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21500 { echo "$as_me:$LINENO: checking
for ${OSPTK_DIR}/include
/osp
/osp.h
" >&5
21501 echo $ECHO_N "checking
for ${OSPTK_DIR}/include
/osp
/osp.h...
$ECHO_C" >&6; }
21502 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21503 echo $ECHO_N "(cached
) $ECHO_C" >&6
21505 ac_res=`eval echo '${'$as_ac_Header'}'`
21506 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21507 echo "${ECHO_T}$ac_res" >&6; }
21509 # Is the header compilable?
21510 { echo "$as_me:$LINENO: checking
${OSPTK_DIR}/include
/osp
/osp.h usability
" >&5
21511 echo $ECHO_N "checking
${OSPTK_DIR}/include
/osp
/osp.h usability...
$ECHO_C" >&6; }
21512 cat >conftest.$ac_ext <<_ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 $ac_includes_default
21519 #include <${OSPTK_DIR}/include/osp/osp.h>
21521 rm -f conftest.$ac_objext
21522 if { (ac_try="$ac_compile"
21523 case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_compile") 2>conftest.er1
21530 grep -v '^ *+' conftest.er1 >conftest.err
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21534 (exit $ac_status); } && {
21535 test -z "$ac_c_werror_flag" ||
21536 test ! -s conftest.err
21537 } && test -s conftest.$ac_objext; then
21538 ac_header_compiler=yes
21540 echo "$as_me: failed program was
:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21543 ac_header_compiler=no
21546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21547 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21548 echo "${ECHO_T}$ac_header_compiler" >&6; }
21550 # Is the header present?
21551 { echo "$as_me:$LINENO: checking
${OSPTK_DIR}/include
/osp
/osp.h presence
" >&5
21552 echo $ECHO_N "checking
${OSPTK_DIR}/include
/osp
/osp.h presence...
$ECHO_C" >&6; }
21553 cat >conftest.$ac_ext <<_ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 #include <${OSPTK_DIR}/include/osp/osp.h>
21561 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21562 case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21569 grep -v '^ *+' conftest.er1 >conftest.err
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21573 (exit $ac_status); } >/dev/null && {
21574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21575 test ! -s conftest.err
21577 ac_header_preproc=yes
21579 echo "$as_me: failed program was
:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21582 ac_header_preproc=no
21585 rm -f conftest.err conftest.$ac_ext
21586 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21587 echo "${ECHO_T}$ac_header_preproc" >&6; }
21589 # So? What about this header?
21590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21592 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21593 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21594 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: proceeding with the compiler
's result" >&5
21595 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result
" >&2;}
21596 ac_header_preproc=yes
21599 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: present but cannot be compiled
" >&5
21600 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: present but cannot be compiled
" >&2;}
21601 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: check
for missing prerequisite headers?
" >&5
21602 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: check
for missing prerequisite headers?
" >&2;}
21603 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: see the Autoconf documentation
" >&5
21604 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: see the Autoconf documentation
" >&2;}
21605 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21606 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21607 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: proceeding with the preprocessor
's result" >&5
21608 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result
" >&2;}
21609 { echo "$as_me:$LINENO: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: in the future
, the compiler will take precedence
" >&5
21610 echo "$as_me: WARNING
: ${OSPTK_DIR}/include
/osp
/osp.h
: in the future
, the compiler will take precedence
" >&2;}
21614 { echo "$as_me:$LINENO: checking
for ${OSPTK_DIR}/include
/osp
/osp.h
" >&5
21615 echo $ECHO_N "checking
for ${OSPTK_DIR}/include
/osp
/osp.h...
$ECHO_C" >&6; }
21616 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21617 echo $ECHO_N "(cached
) $ECHO_C" >&6
21619 eval "$as_ac_Header=\
$ac_header_preproc"
21621 ac_res=`eval echo '${'$as_ac_Header'}'`
21622 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21623 echo "${ECHO_T}$ac_res" >&6; }
21626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21627 OSPTK_HEADER_FOUND=1
21629 OSPTK_HEADER_FOUND=0
21634 CPPFLAGS="${saved_cppflags}"
21636 if test "xosp
/osp.h
" != "x
" ; then
21637 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21638 { echo "$as_me:$LINENO: checking
for osp
/osp.h
" >&5
21639 echo $ECHO_N "checking
for osp
/osp.h...
$ECHO_C" >&6; }
21640 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21641 echo $ECHO_N "(cached
) $ECHO_C" >&6
21643 { echo "$as_me:$LINENO: result
: $ac_cv_header_osp_osp_h" >&5
21644 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21646 # Is the header compilable?
21647 { echo "$as_me:$LINENO: checking osp
/osp.h usability
" >&5
21648 echo $ECHO_N "checking osp
/osp.h usability...
$ECHO_C" >&6; }
21649 cat >conftest.$ac_ext <<_ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 $ac_includes_default
21656 #include <osp/osp.h>
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_compile") 2>conftest.er1
21667 grep -v '^ *+' conftest.er1 >conftest.err
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest.$ac_objext; then
21675 ac_header_compiler=yes
21677 echo "$as_me: failed program was
:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_header_compiler=no
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21684 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21685 echo "${ECHO_T}$ac_header_compiler" >&6; }
21687 # Is the header present?
21688 { echo "$as_me:$LINENO: checking osp
/osp.h presence
" >&5
21689 echo $ECHO_N "checking osp
/osp.h presence...
$ECHO_C" >&6; }
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <osp/osp.h>
21698 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21706 grep -v '^ *+' conftest.er1 >conftest.err
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21710 (exit $ac_status); } >/dev/null && {
21711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21712 test ! -s conftest.err
21714 ac_header_preproc=yes
21716 echo "$as_me: failed program was
:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_header_preproc=no
21722 rm -f conftest.err conftest.$ac_ext
21723 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21724 echo "${ECHO_T}$ac_header_preproc" >&6; }
21726 # So? What about this header?
21727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21729 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21730 echo "$as_me: WARNING
: osp
/osp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21731 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: proceeding with the compiler
's result" >&5
21732 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result
" >&2;}
21733 ac_header_preproc=yes
21736 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: present but cannot be compiled
" >&5
21737 echo "$as_me: WARNING
: osp
/osp.h
: present but cannot be compiled
" >&2;}
21738 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: check
for missing prerequisite headers?
" >&5
21739 echo "$as_me: WARNING
: osp
/osp.h
: check
for missing prerequisite headers?
" >&2;}
21740 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: see the Autoconf documentation
" >&5
21741 echo "$as_me: WARNING
: osp
/osp.h
: see the Autoconf documentation
" >&2;}
21742 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21743 echo "$as_me: WARNING
: osp
/osp.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21744 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: proceeding with the preprocessor
's result" >&5
21745 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result
" >&2;}
21746 { echo "$as_me:$LINENO: WARNING
: osp
/osp.h
: in the future
, the compiler will take precedence
" >&5
21747 echo "$as_me: WARNING
: osp
/osp.h
: in the future
, the compiler will take precedence
" >&2;}
21751 { echo "$as_me:$LINENO: checking
for osp
/osp.h
" >&5
21752 echo $ECHO_N "checking
for osp
/osp.h...
$ECHO_C" >&6; }
21753 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21754 echo $ECHO_N "(cached
) $ECHO_C" >&6
21756 ac_cv_header_osp_osp_h=$ac_header_preproc
21758 { echo "$as_me:$LINENO: result
: $ac_cv_header_osp_osp_h" >&5
21759 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21762 if test $ac_cv_header_osp_osp_h = yes; then
21763 OSPTK_HEADER_FOUND=1
21765 OSPTK_HEADER_FOUND=0
21771 if test "x
${OSPTK_HEADER_FOUND}" = "x0
" ; then
21772 if test ! -z "${OSPTK_MANDATORY}" ;
21774 { echo "$as_me:$LINENO: ***" >&5
21775 echo "$as_me: ***" >&6;}
21776 { echo "$as_me:$LINENO: *** It appears that you
do not have the osptk development package installed.
" >&5
21777 echo "$as_me: *** It appears that you
do not have the osptk development package installed.
" >&6;}
21778 { echo "$as_me:$LINENO: *** Please
install it to include
${OSPTK_DESCRIP} support
, or re-run configure
" >&5
21779 echo "$as_me: *** Please
install it to include
${OSPTK_DESCRIP} support
, or re-run configure
" >&6;}
21780 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OSPTK_OPTION}" >&5
21781 echo "$as_me: *** without explicitly specifying
--with-${OSPTK_OPTION}" >&6;}
21790 cat >>confdefs.h <<_ACEOF
21791 #define HAVE_OSPTK 1
21795 elif test ! -z "${OSPTK_MANDATORY}";
21797 { echo "$as_me:$LINENO: ***" >&5
21798 echo "$as_me: ***" >&6;}
21799 { echo "$as_me:$LINENO: *** The
${OSPTK_DESCRIP} installation on this system appears to be broken.
" >&5
21800 echo "$as_me: *** The
${OSPTK_DESCRIP} installation on this system appears to be broken.
" >&6;}
21801 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
21802 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
21803 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OSPTK_OPTION}" >&5
21804 echo "$as_me: *** without explicitly specifying
--with-${OSPTK_OPTION}" >&6;}
21811 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21812 { echo "$as_me:$LINENO: checking
for linux
/soundcard.h
" >&5
21813 echo $ECHO_N "checking
for linux
/soundcard.h...
$ECHO_C" >&6; }
21814 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21815 echo $ECHO_N "(cached
) $ECHO_C" >&6
21817 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_soundcard_h" >&5
21818 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21820 # Is the header compilable?
21821 { echo "$as_me:$LINENO: checking linux
/soundcard.h usability
" >&5
21822 echo $ECHO_N "checking linux
/soundcard.h usability...
$ECHO_C" >&6; }
21823 cat >conftest.$ac_ext <<_ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 $ac_includes_default
21830 #include <linux/soundcard.h>
21832 rm -f conftest.$ac_objext
21833 if { (ac_try="$ac_compile"
21834 case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21839 (eval "$ac_compile") 2>conftest.er1
21841 grep -v '^ *+' conftest.er1 >conftest.err
21843 cat conftest.err >&5
21844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21845 (exit $ac_status); } && {
21846 test -z "$ac_c_werror_flag" ||
21847 test ! -s conftest.err
21848 } && test -s conftest.$ac_objext; then
21849 ac_header_compiler=yes
21851 echo "$as_me: failed program was
:" >&5
21852 sed 's/^/| /' conftest.$ac_ext >&5
21854 ac_header_compiler=no
21857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21858 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21859 echo "${ECHO_T}$ac_header_compiler" >&6; }
21861 # Is the header present?
21862 { echo "$as_me:$LINENO: checking linux
/soundcard.h presence
" >&5
21863 echo $ECHO_N "checking linux
/soundcard.h presence...
$ECHO_C" >&6; }
21864 cat >conftest.$ac_ext <<_ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h. */
21870 #include <linux/soundcard.h>
21872 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21873 case "(($ac_try" in
21874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875 *) ac_try_echo=$ac_try;;
21877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21878 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21880 grep -v '^ *+' conftest.er1 >conftest.err
21882 cat conftest.err >&5
21883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21884 (exit $ac_status); } >/dev/null && {
21885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21886 test ! -s conftest.err
21888 ac_header_preproc=yes
21890 echo "$as_me: failed program was
:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21893 ac_header_preproc=no
21896 rm -f conftest.err conftest.$ac_ext
21897 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21898 echo "${ECHO_T}$ac_header_preproc" >&6; }
21900 # So? What about this header?
21901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21903 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21904 echo "$as_me: WARNING
: linux
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21905 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: proceeding with the compiler
's result" >&5
21906 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result
" >&2;}
21907 ac_header_preproc=yes
21910 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: present but cannot be compiled
" >&5
21911 echo "$as_me: WARNING
: linux
/soundcard.h
: present but cannot be compiled
" >&2;}
21912 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: check
for missing prerequisite headers?
" >&5
21913 echo "$as_me: WARNING
: linux
/soundcard.h
: check
for missing prerequisite headers?
" >&2;}
21914 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: see the Autoconf documentation
" >&5
21915 echo "$as_me: WARNING
: linux
/soundcard.h
: see the Autoconf documentation
" >&2;}
21916 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21917 echo "$as_me: WARNING
: linux
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21918 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: proceeding with the preprocessor
's result" >&5
21919 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result
" >&2;}
21920 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: in the future
, the compiler will take precedence
" >&5
21921 echo "$as_me: WARNING
: linux
/soundcard.h
: in the future
, the compiler will take precedence
" >&2;}
21925 { echo "$as_me:$LINENO: checking
for linux
/soundcard.h
" >&5
21926 echo $ECHO_N "checking
for linux
/soundcard.h...
$ECHO_C" >&6; }
21927 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21928 echo $ECHO_N "(cached
) $ECHO_C" >&6
21930 ac_cv_header_linux_soundcard_h=$ac_header_preproc
21932 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_soundcard_h" >&5
21933 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21936 if test $ac_cv_header_linux_soundcard_h = yes; then
21940 cat >>confdefs.h <<_ACEOF
21948 if test "$PBX_OSS" = "0"; then
21949 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21950 { echo "$as_me:$LINENO: checking
for sys
/soundcard.h
" >&5
21951 echo $ECHO_N "checking
for sys
/soundcard.h...
$ECHO_C" >&6; }
21952 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21953 echo $ECHO_N "(cached
) $ECHO_C" >&6
21955 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_soundcard_h" >&5
21956 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21958 # Is the header compilable?
21959 { echo "$as_me:$LINENO: checking sys
/soundcard.h usability
" >&5
21960 echo $ECHO_N "checking sys
/soundcard.h usability...
$ECHO_C" >&6; }
21961 cat >conftest.$ac_ext <<_ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967 $ac_includes_default
21968 #include <sys/soundcard.h>
21970 rm -f conftest.$ac_objext
21971 if { (ac_try="$ac_compile"
21972 case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_compile") 2>conftest.er1
21979 grep -v '^ *+' conftest.er1 >conftest.err
21981 cat conftest.err >&5
21982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21983 (exit $ac_status); } && {
21984 test -z "$ac_c_werror_flag" ||
21985 test ! -s conftest.err
21986 } && test -s conftest.$ac_objext; then
21987 ac_header_compiler=yes
21989 echo "$as_me: failed program was
:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21992 ac_header_compiler=no
21995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21996 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21997 echo "${ECHO_T}$ac_header_compiler" >&6; }
21999 # Is the header present?
22000 { echo "$as_me:$LINENO: checking sys
/soundcard.h presence
" >&5
22001 echo $ECHO_N "checking sys
/soundcard.h presence...
$ECHO_C" >&6; }
22002 cat >conftest.$ac_ext <<_ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22008 #include <sys/soundcard.h>
22010 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22011 case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22015 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22016 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22018 grep -v '^ *+' conftest.er1 >conftest.err
22020 cat conftest.err >&5
22021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22022 (exit $ac_status); } >/dev/null && {
22023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22024 test ! -s conftest.err
22026 ac_header_preproc=yes
22028 echo "$as_me: failed program was
:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22031 ac_header_preproc=no
22034 rm -f conftest.err conftest.$ac_ext
22035 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22036 echo "${ECHO_T}$ac_header_preproc" >&6; }
22038 # So? What about this header?
22039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22041 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22042 echo "$as_me: WARNING
: sys
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22043 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: proceeding with the compiler
's result" >&5
22044 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result
" >&2;}
22045 ac_header_preproc=yes
22048 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: present but cannot be compiled
" >&5
22049 echo "$as_me: WARNING
: sys
/soundcard.h
: present but cannot be compiled
" >&2;}
22050 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: check
for missing prerequisite headers?
" >&5
22051 echo "$as_me: WARNING
: sys
/soundcard.h
: check
for missing prerequisite headers?
" >&2;}
22052 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: see the Autoconf documentation
" >&5
22053 echo "$as_me: WARNING
: sys
/soundcard.h
: see the Autoconf documentation
" >&2;}
22054 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22055 echo "$as_me: WARNING
: sys
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22056 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: proceeding with the preprocessor
's result" >&5
22057 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result
" >&2;}
22058 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: in the future
, the compiler will take precedence
" >&5
22059 echo "$as_me: WARNING
: sys
/soundcard.h
: in the future
, the compiler will take precedence
" >&2;}
22063 { echo "$as_me:$LINENO: checking
for sys
/soundcard.h
" >&5
22064 echo $ECHO_N "checking
for sys
/soundcard.h...
$ECHO_C" >&6; }
22065 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22066 echo $ECHO_N "(cached
) $ECHO_C" >&6
22068 ac_cv_header_sys_soundcard_h=$ac_header_preproc
22070 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_soundcard_h" >&5
22071 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22074 if test $ac_cv_header_sys_soundcard_h = yes; then
22078 cat >>confdefs.h <<_ACEOF
22087 if test "$PBX_OSS" = "0"; then
22089 if test "${USE_OSS}" != "no
"; then
22091 if test "x
${OSS_DIR}" != "x
"; then
22092 if test -d ${OSS_DIR}/lib; then
22093 pbxlibdir="-L${OSS_DIR}/lib
"
22095 pbxlibdir="-L${OSS_DIR}"
22098 { echo "$as_me:$LINENO: checking
for oss_ioctl_mixer
in -lossaudio" >&5
22099 echo $ECHO_N "checking
for oss_ioctl_mixer
in -lossaudio...
$ECHO_C" >&6; }
22100 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
22101 echo $ECHO_N "(cached
) $ECHO_C" >&6
22103 ac_check_lib_save_LIBS=$LIBS
22104 LIBS="-lossaudio ${pbxlibdir} $LIBS"
22105 cat >conftest.$ac_ext <<_ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22112 /* Override any GCC internal prototype to avoid an error.
22113 Use char because int might match the return type of a GCC
22114 builtin and then its argument prototype would still apply. */
22118 char oss_ioctl_mixer ();
22122 return oss_ioctl_mixer ();
22127 rm -f conftest.$ac_objext conftest$ac_exeext
22128 if { (ac_try="$ac_link"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_link") 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22140 (exit $ac_status); } && {
22141 test -z "$ac_c_werror_flag" ||
22142 test ! -s conftest.err
22143 } && test -s conftest$ac_exeext &&
22144 $as_test_x conftest$ac_exeext; then
22145 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
22147 echo "$as_me: failed program was
:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22150 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
22153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22154 conftest$ac_exeext conftest.$ac_ext
22155 LIBS=$ac_check_lib_save_LIBS
22157 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
22158 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
22159 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
22166 if test "${AST_OSS_FOUND}" = "yes"; then
22167 OSS_LIB="-lossaudio "
22168 OSS_HEADER_FOUND="1"
22169 if test "x
${OSS_DIR}" != "x
"; then
22170 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
22171 OSS_INCLUDE="-I${OSS_DIR}/include
"
22172 saved_cppflags="${CPPFLAGS}"
22173 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include
"
22174 if test "xsoundcard.h
" != "x
" ; then
22175 as_ac_Header=`echo "ac_cv_header_
${OSS_DIR}/include
/soundcard.h
" | $as_tr_sh`
22176 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22177 { echo "$as_me:$LINENO: checking
for ${OSS_DIR}/include
/soundcard.h
" >&5
22178 echo $ECHO_N "checking
for ${OSS_DIR}/include
/soundcard.h...
$ECHO_C" >&6; }
22179 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22180 echo $ECHO_N "(cached
) $ECHO_C" >&6
22182 ac_res=`eval echo '${'$as_ac_Header'}'`
22183 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22184 echo "${ECHO_T}$ac_res" >&6; }
22186 # Is the header compilable?
22187 { echo "$as_me:$LINENO: checking
${OSS_DIR}/include
/soundcard.h usability
" >&5
22188 echo $ECHO_N "checking
${OSS_DIR}/include
/soundcard.h usability...
$ECHO_C" >&6; }
22189 cat >conftest.$ac_ext <<_ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 $ac_includes_default
22196 #include <${OSS_DIR}/include/soundcard.h>
22198 rm -f conftest.$ac_objext
22199 if { (ac_try="$ac_compile"
22200 case "(($ac_try" in
22201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_compile") 2>conftest.er1
22207 grep -v '^ *+' conftest.er1 >conftest.err
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest.$ac_objext; then
22215 ac_header_compiler=yes
22217 echo "$as_me: failed program was
:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 ac_header_compiler=no
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22225 echo "${ECHO_T}$ac_header_compiler" >&6; }
22227 # Is the header present?
22228 { echo "$as_me:$LINENO: checking
${OSS_DIR}/include
/soundcard.h presence
" >&5
22229 echo $ECHO_N "checking
${OSS_DIR}/include
/soundcard.h presence...
$ECHO_C" >&6; }
22230 cat >conftest.$ac_ext <<_ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 #include <${OSS_DIR}/include/soundcard.h>
22238 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22243 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22246 grep -v '^ *+' conftest.er1 >conftest.err
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22250 (exit $ac_status); } >/dev/null && {
22251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22252 test ! -s conftest.err
22254 ac_header_preproc=yes
22256 echo "$as_me: failed program was
:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 ac_header_preproc=no
22262 rm -f conftest.err conftest.$ac_ext
22263 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22264 echo "${ECHO_T}$ac_header_preproc" >&6; }
22266 # So? What about this header?
22267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22269 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22270 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22271 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: proceeding with the compiler
's result" >&5
22272 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result
" >&2;}
22273 ac_header_preproc=yes
22276 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: present but cannot be compiled
" >&5
22277 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: present but cannot be compiled
" >&2;}
22278 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: check
for missing prerequisite headers?
" >&5
22279 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: check
for missing prerequisite headers?
" >&2;}
22280 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: see the Autoconf documentation
" >&5
22281 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: see the Autoconf documentation
" >&2;}
22282 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22283 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22284 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: proceeding with the preprocessor
's result" >&5
22285 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result
" >&2;}
22286 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: in the future
, the compiler will take precedence
" >&5
22287 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: in the future
, the compiler will take precedence
" >&2;}
22291 { echo "$as_me:$LINENO: checking
for ${OSS_DIR}/include
/soundcard.h
" >&5
22292 echo $ECHO_N "checking
for ${OSS_DIR}/include
/soundcard.h...
$ECHO_C" >&6; }
22293 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22294 echo $ECHO_N "(cached
) $ECHO_C" >&6
22296 eval "$as_ac_Header=\
$ac_header_preproc"
22298 ac_res=`eval echo '${'$as_ac_Header'}'`
22299 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22300 echo "${ECHO_T}$ac_res" >&6; }
22303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22311 CPPFLAGS="${saved_cppflags}"
22313 if test "xsoundcard.h
" != "x
" ; then
22314 if test "${ac_cv_header_soundcard_h+set}" = set; then
22315 { echo "$as_me:$LINENO: checking
for soundcard.h
" >&5
22316 echo $ECHO_N "checking
for soundcard.h...
$ECHO_C" >&6; }
22317 if test "${ac_cv_header_soundcard_h+set}" = set; then
22318 echo $ECHO_N "(cached
) $ECHO_C" >&6
22320 { echo "$as_me:$LINENO: result
: $ac_cv_header_soundcard_h" >&5
22321 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22323 # Is the header compilable?
22324 { echo "$as_me:$LINENO: checking soundcard.h usability
" >&5
22325 echo $ECHO_N "checking soundcard.h usability...
$ECHO_C" >&6; }
22326 cat >conftest.$ac_ext <<_ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22332 $ac_includes_default
22333 #include <soundcard.h>
22335 rm -f conftest.$ac_objext
22336 if { (ac_try="$ac_compile"
22337 case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22342 (eval "$ac_compile") 2>conftest.er1
22344 grep -v '^ *+' conftest.er1 >conftest.err
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest.$ac_objext; then
22352 ac_header_compiler=yes
22354 echo "$as_me: failed program was
:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22357 ac_header_compiler=no
22360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22362 echo "${ECHO_T}$ac_header_compiler" >&6; }
22364 # Is the header present?
22365 { echo "$as_me:$LINENO: checking soundcard.h presence
" >&5
22366 echo $ECHO_N "checking soundcard.h presence...
$ECHO_C" >&6; }
22367 cat >conftest.$ac_ext <<_ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22373 #include <soundcard.h>
22375 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22376 case "(($ac_try" in
22377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378 *) ac_try_echo=$ac_try;;
22380 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22381 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22383 grep -v '^ *+' conftest.er1 >conftest.err
22385 cat conftest.err >&5
22386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22387 (exit $ac_status); } >/dev/null && {
22388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22389 test ! -s conftest.err
22391 ac_header_preproc=yes
22393 echo "$as_me: failed program was
:" >&5
22394 sed 's/^/| /' conftest.$ac_ext >&5
22396 ac_header_preproc=no
22399 rm -f conftest.err conftest.$ac_ext
22400 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22401 echo "${ECHO_T}$ac_header_preproc" >&6; }
22403 # So? What about this header?
22404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22406 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22407 echo "$as_me: WARNING
: soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22408 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: proceeding with the compiler
's result" >&5
22409 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result
" >&2;}
22410 ac_header_preproc=yes
22413 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: present but cannot be compiled
" >&5
22414 echo "$as_me: WARNING
: soundcard.h
: present but cannot be compiled
" >&2;}
22415 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: check
for missing prerequisite headers?
" >&5
22416 echo "$as_me: WARNING
: soundcard.h
: check
for missing prerequisite headers?
" >&2;}
22417 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: see the Autoconf documentation
" >&5
22418 echo "$as_me: WARNING
: soundcard.h
: see the Autoconf documentation
" >&2;}
22419 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22420 echo "$as_me: WARNING
: soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22421 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: proceeding with the preprocessor
's result" >&5
22422 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result
" >&2;}
22423 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: in the future
, the compiler will take precedence
" >&5
22424 echo "$as_me: WARNING
: soundcard.h
: in the future
, the compiler will take precedence
" >&2;}
22428 { echo "$as_me:$LINENO: checking
for soundcard.h
" >&5
22429 echo $ECHO_N "checking
for soundcard.h...
$ECHO_C" >&6; }
22430 if test "${ac_cv_header_soundcard_h+set}" = set; then
22431 echo $ECHO_N "(cached
) $ECHO_C" >&6
22433 ac_cv_header_soundcard_h=$ac_header_preproc
22435 { echo "$as_me:$LINENO: result
: $ac_cv_header_soundcard_h" >&5
22436 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22439 if test $ac_cv_header_soundcard_h = yes; then
22448 if test "x
${OSS_HEADER_FOUND}" = "x0
" ; then
22449 if test ! -z "${OSS_MANDATORY}" ;
22451 { echo "$as_me:$LINENO: ***" >&5
22452 echo "$as_me: ***" >&6;}
22453 { echo "$as_me:$LINENO: *** It appears that you
do not have the ossaudio development package installed.
" >&5
22454 echo "$as_me: *** It appears that you
do not have the ossaudio development package installed.
" >&6;}
22455 { echo "$as_me:$LINENO: *** Please
install it to include
${OSS_DESCRIP} support
, or re-run configure
" >&5
22456 echo "$as_me: *** Please
install it to include
${OSS_DESCRIP} support
, or re-run configure
" >&6;}
22457 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OSS_OPTION}" >&5
22458 echo "$as_me: *** without explicitly specifying
--with-${OSS_OPTION}" >&6;}
22467 cat >>confdefs.h <<_ACEOF
22472 elif test ! -z "${OSS_MANDATORY}";
22474 { echo "$as_me:$LINENO: ***" >&5
22475 echo "$as_me: ***" >&6;}
22476 { echo "$as_me:$LINENO: *** The
${OSS_DESCRIP} installation on this system appears to be broken.
" >&5
22477 echo "$as_me: *** The
${OSS_DESCRIP} installation on this system appears to be broken.
" >&6;}
22478 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
22479 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
22480 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OSS_OPTION}" >&5
22481 echo "$as_me: *** without explicitly specifying
--with-${OSS_OPTION}" >&6;}
22489 if test "${USE_PGSQL}" != "no
"; then
22490 if test "x
${PGSQL_DIR}" != "x
"; then
22491 if test -n "$ac_tool_prefix"; then
22492 # Extract the first word of "${ac_tool_prefix}pg_config
", so it can be a program name with args.
22493 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22494 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
22495 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
22496 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22497 echo $ECHO_N "(cached
) $ECHO_C" >&6
22501 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505 for as_dir in ${PGSQL_DIR}/bin
22508 test -z "$as_dir" && as_dir=.
22509 for ac_exec_ext in '' $ac_executable_extensions; do
22510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22511 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22512 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
22522 PG_CONFIG=$ac_cv_path_PG_CONFIG
22523 if test -n "$PG_CONFIG"; then
22524 { echo "$as_me:$LINENO: result
: $PG_CONFIG" >&5
22525 echo "${ECHO_T}$PG_CONFIG" >&6; }
22527 { echo "$as_me:$LINENO: result
: no
" >&5
22528 echo "${ECHO_T}no
" >&6; }
22533 if test -z "$ac_cv_path_PG_CONFIG"; then
22534 ac_pt_PG_CONFIG=$PG_CONFIG
22535 # Extract the first word of "pg_config
", so it can be a program name with args.
22536 set dummy pg_config; ac_word=$2
22537 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
22538 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
22539 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22540 echo $ECHO_N "(cached
) $ECHO_C" >&6
22542 case $ac_pt_PG_CONFIG in
22544 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22548 for as_dir in ${PGSQL_DIR}/bin
22551 test -z "$as_dir" && as_dir=.
22552 for ac_exec_ext in '' $ac_executable_extensions; do
22553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22554 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22555 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
22565 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22566 if test -n "$ac_pt_PG_CONFIG"; then
22567 { echo "$as_me:$LINENO: result
: $ac_pt_PG_CONFIG" >&5
22568 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22570 { echo "$as_me:$LINENO: result
: no
" >&5
22571 echo "${ECHO_T}no
" >&6; }
22574 if test "x
$ac_pt_PG_CONFIG" = x; then
22577 case $cross_compiling:$ac_tool_warned in
22579 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
22580 whose name does not start with the
host triplet. If you think this
22581 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
22582 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
22583 whose name does not start with the
host triplet. If you think this
22584 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
22585 ac_tool_warned=yes ;;
22587 PG_CONFIG=$ac_pt_PG_CONFIG
22590 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22593 if test x"${PG_CONFIG}" = xNo; then
22594 { echo "$as_me:$LINENO: ***" >&5
22595 echo "$as_me: ***" >&6;}
22596 { echo "$as_me:$LINENO: *** pg_config was not found
in the path you specified
:" >&5
22597 echo "$as_me: *** pg_config was not found
in the path you specified
:" >&6;}
22598 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin
" >&5
22599 echo "$as_me: *** ${PGSQL_DIR}/bin
" >&6;}
22600 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
22601 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
22602 { echo "$as_me:$LINENO: *** including
--without-postgres" >&5
22603 echo "$as_me: *** including
--without-postgres" >&6;}
22607 if test -n "$ac_tool_prefix"; then
22608 # Extract the first word of "${ac_tool_prefix}pg_config
", so it can be a program name with args.
22609 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22610 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
22611 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
22612 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22613 echo $ECHO_N "(cached
) $ECHO_C" >&6
22617 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22621 for as_dir in $PATH
22624 test -z "$as_dir" && as_dir=.
22625 for ac_exec_ext in '' $ac_executable_extensions; do
22626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22627 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22628 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
22638 PG_CONFIG=$ac_cv_path_PG_CONFIG
22639 if test -n "$PG_CONFIG"; then
22640 { echo "$as_me:$LINENO: result
: $PG_CONFIG" >&5
22641 echo "${ECHO_T}$PG_CONFIG" >&6; }
22643 { echo "$as_me:$LINENO: result
: no
" >&5
22644 echo "${ECHO_T}no
" >&6; }
22649 if test -z "$ac_cv_path_PG_CONFIG"; then
22650 ac_pt_PG_CONFIG=$PG_CONFIG
22651 # Extract the first word of "pg_config
", so it can be a program name with args.
22652 set dummy pg_config; ac_word=$2
22653 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
22654 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
22655 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22656 echo $ECHO_N "(cached
) $ECHO_C" >&6
22658 case $ac_pt_PG_CONFIG in
22660 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22664 for as_dir in $PATH
22667 test -z "$as_dir" && as_dir=.
22668 for ac_exec_ext in '' $ac_executable_extensions; do
22669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22670 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22671 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
22681 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22682 if test -n "$ac_pt_PG_CONFIG"; then
22683 { echo "$as_me:$LINENO: result
: $ac_pt_PG_CONFIG" >&5
22684 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22686 { echo "$as_me:$LINENO: result
: no
" >&5
22687 echo "${ECHO_T}no
" >&6; }
22690 if test "x
$ac_pt_PG_CONFIG" = x; then
22693 case $cross_compiling:$ac_tool_warned in
22695 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
22696 whose name does not start with the
host triplet. If you think this
22697 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
22698 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
22699 whose name does not start with the
host triplet. If you think this
22700 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
22701 ac_tool_warned=yes ;;
22703 PG_CONFIG=$ac_pt_PG_CONFIG
22706 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22711 if test "${PG_CONFIG}" != No; then
22712 PGSQL_libdir=`${PG_CONFIG} --libdir`
22713 PGSQL_includedir=`${PG_CONFIG} --includedir`
22715 { echo "$as_me:$LINENO: checking
for PQexec
in -lpq" >&5
22716 echo $ECHO_N "checking
for PQexec
in -lpq...
$ECHO_C" >&6; }
22717 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
22718 echo $ECHO_N "(cached
) $ECHO_C" >&6
22720 ac_check_lib_save_LIBS=$LIBS
22721 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
22722 cat >conftest.$ac_ext <<_ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22729 /* Override any GCC internal prototype to avoid an error.
22730 Use char because int might match the return type of a GCC
22731 builtin and then its argument prototype would still apply. */
22744 rm -f conftest.$ac_objext conftest$ac_exeext
22745 if { (ac_try="$ac_link"
22746 case "(($ac_try" in
22747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748 *) ac_try_echo=$ac_try;;
22750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22751 (eval "$ac_link") 2>conftest.er1
22753 grep -v '^ *+' conftest.er1 >conftest.err
22755 cat conftest.err >&5
22756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22757 (exit $ac_status); } && {
22758 test -z "$ac_c_werror_flag" ||
22759 test ! -s conftest.err
22760 } && test -s conftest$ac_exeext &&
22761 $as_test_x conftest$ac_exeext; then
22762 ac_cv_lib_pq_PQexec=yes
22764 echo "$as_me: failed program was
:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22767 ac_cv_lib_pq_PQexec=no
22770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22771 conftest$ac_exeext conftest.$ac_ext
22772 LIBS=$ac_check_lib_save_LIBS
22774 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pq_PQexec" >&5
22775 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
22776 if test $ac_cv_lib_pq_PQexec = yes; then
22778 cat >>confdefs.h <<_ACEOF
22779 #define HAVE_PGSQL 1
22785 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
22786 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
22787 PGSQL_INCLUDE="-I${PGSQL_includedir}"
22789 elif test ! -z "${PGSQL_MANDATORY}";
22791 { echo "$as_me:$LINENO: ***" >&5
22792 echo "$as_me: ***" >&6;}
22793 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken.
" >&5
22794 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken.
" >&6;}
22795 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
22796 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
22797 { echo "$as_me:$LINENO: *** including
--without-postgres" >&5
22798 echo "$as_me: *** including
--without-postgres" >&6;}
22801 elif test ! -z "${PGSQL_MANDATORY}";
22803 { echo "$as_me:$LINENO: ***" >&5
22804 echo "$as_me: ***" >&6;}
22805 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken.
" >&5
22806 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken.
" >&6;}
22807 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
22808 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
22809 { echo "$as_me:$LINENO: *** including
--without-postgres" >&5
22810 echo "$as_me: *** including
--without-postgres" >&6;}
22815 if test "${USE_POPT}" != "no
"; then
22817 if test "x
${POPT_DIR}" != "x
"; then
22818 if test -d ${POPT_DIR}/lib; then
22819 pbxlibdir="-L${POPT_DIR}/lib
"
22821 pbxlibdir="-L${POPT_DIR}"
22824 { echo "$as_me:$LINENO: checking
for poptStrerror
in -lpopt" >&5
22825 echo $ECHO_N "checking
for poptStrerror
in -lpopt...
$ECHO_C" >&6; }
22826 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
22827 echo $ECHO_N "(cached
) $ECHO_C" >&6
22829 ac_check_lib_save_LIBS=$LIBS
22830 LIBS="-lpopt ${pbxlibdir} $LIBS"
22831 cat >conftest.$ac_ext <<_ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22838 /* Override any GCC internal prototype to avoid an error.
22839 Use char because int might match the return type of a GCC
22840 builtin and then its argument prototype would still apply. */
22844 char poptStrerror ();
22848 return poptStrerror ();
22853 rm -f conftest.$ac_objext conftest$ac_exeext
22854 if { (ac_try="$ac_link"
22855 case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_link") 2>conftest.er1
22862 grep -v '^ *+' conftest.er1 >conftest.err
22864 cat conftest.err >&5
22865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22866 (exit $ac_status); } && {
22867 test -z "$ac_c_werror_flag" ||
22868 test ! -s conftest.err
22869 } && test -s conftest$ac_exeext &&
22870 $as_test_x conftest$ac_exeext; then
22871 ac_cv_lib_popt_poptStrerror=yes
22873 echo "$as_me: failed program was
:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22876 ac_cv_lib_popt_poptStrerror=no
22879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22880 conftest$ac_exeext conftest.$ac_ext
22881 LIBS=$ac_check_lib_save_LIBS
22883 { echo "$as_me:$LINENO: result
: $ac_cv_lib_popt_poptStrerror" >&5
22884 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
22885 if test $ac_cv_lib_popt_poptStrerror = yes; then
22892 if test "${AST_POPT_FOUND}" = "yes"; then
22894 POPT_HEADER_FOUND="1"
22895 if test "x
${POPT_DIR}" != "x
"; then
22896 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
22897 POPT_INCLUDE="-I${POPT_DIR}/include
"
22898 saved_cppflags="${CPPFLAGS}"
22899 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include
"
22900 if test "xpopt.h
" != "x
" ; then
22901 as_ac_Header=`echo "ac_cv_header_
${POPT_DIR}/include
/popt.h
" | $as_tr_sh`
22902 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22903 { echo "$as_me:$LINENO: checking
for ${POPT_DIR}/include
/popt.h
" >&5
22904 echo $ECHO_N "checking
for ${POPT_DIR}/include
/popt.h...
$ECHO_C" >&6; }
22905 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22906 echo $ECHO_N "(cached
) $ECHO_C" >&6
22908 ac_res=`eval echo '${'$as_ac_Header'}'`
22909 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22910 echo "${ECHO_T}$ac_res" >&6; }
22912 # Is the header compilable?
22913 { echo "$as_me:$LINENO: checking
${POPT_DIR}/include
/popt.h usability
" >&5
22914 echo $ECHO_N "checking
${POPT_DIR}/include
/popt.h usability...
$ECHO_C" >&6; }
22915 cat >conftest.$ac_ext <<_ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921 $ac_includes_default
22922 #include <${POPT_DIR}/include/popt.h>
22924 rm -f conftest.$ac_objext
22925 if { (ac_try="$ac_compile"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_compile") 2>conftest.er1
22933 grep -v '^ *+' conftest.er1 >conftest.err
22935 cat conftest.err >&5
22936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22937 (exit $ac_status); } && {
22938 test -z "$ac_c_werror_flag" ||
22939 test ! -s conftest.err
22940 } && test -s conftest.$ac_objext; then
22941 ac_header_compiler=yes
22943 echo "$as_me: failed program was
:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22946 ac_header_compiler=no
22949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22950 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22951 echo "${ECHO_T}$ac_header_compiler" >&6; }
22953 # Is the header present?
22954 { echo "$as_me:$LINENO: checking
${POPT_DIR}/include
/popt.h presence
" >&5
22955 echo $ECHO_N "checking
${POPT_DIR}/include
/popt.h presence...
$ECHO_C" >&6; }
22956 cat >conftest.$ac_ext <<_ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 #include <${POPT_DIR}/include/popt.h>
22964 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22965 case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22970 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22972 grep -v '^ *+' conftest.er1 >conftest.err
22974 cat conftest.err >&5
22975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22976 (exit $ac_status); } >/dev/null && {
22977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22978 test ! -s conftest.err
22980 ac_header_preproc=yes
22982 echo "$as_me: failed program was
:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22985 ac_header_preproc=no
22988 rm -f conftest.err conftest.$ac_ext
22989 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22990 echo "${ECHO_T}$ac_header_preproc" >&6; }
22992 # So? What about this header?
22993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22995 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22996 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22997 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: proceeding with the compiler
's result" >&5
22998 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result
" >&2;}
22999 ac_header_preproc=yes
23002 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: present but cannot be compiled
" >&5
23003 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: present but cannot be compiled
" >&2;}
23004 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: check
for missing prerequisite headers?
" >&5
23005 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: check
for missing prerequisite headers?
" >&2;}
23006 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: see the Autoconf documentation
" >&5
23007 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: see the Autoconf documentation
" >&2;}
23008 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23009 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23010 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: proceeding with the preprocessor
's result" >&5
23011 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result
" >&2;}
23012 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: in the future
, the compiler will take precedence
" >&5
23013 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: in the future
, the compiler will take precedence
" >&2;}
23017 { echo "$as_me:$LINENO: checking
for ${POPT_DIR}/include
/popt.h
" >&5
23018 echo $ECHO_N "checking
for ${POPT_DIR}/include
/popt.h...
$ECHO_C" >&6; }
23019 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23020 echo $ECHO_N "(cached
) $ECHO_C" >&6
23022 eval "$as_ac_Header=\
$ac_header_preproc"
23024 ac_res=`eval echo '${'$as_ac_Header'}'`
23025 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23026 echo "${ECHO_T}$ac_res" >&6; }
23029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23030 POPT_HEADER_FOUND=1
23032 POPT_HEADER_FOUND=0
23037 CPPFLAGS="${saved_cppflags}"
23039 if test "xpopt.h
" != "x
" ; then
23040 if test "${ac_cv_header_popt_h+set}" = set; then
23041 { echo "$as_me:$LINENO: checking
for popt.h
" >&5
23042 echo $ECHO_N "checking
for popt.h...
$ECHO_C" >&6; }
23043 if test "${ac_cv_header_popt_h+set}" = set; then
23044 echo $ECHO_N "(cached
) $ECHO_C" >&6
23046 { echo "$as_me:$LINENO: result
: $ac_cv_header_popt_h" >&5
23047 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23049 # Is the header compilable?
23050 { echo "$as_me:$LINENO: checking popt.h usability
" >&5
23051 echo $ECHO_N "checking popt.h usability...
$ECHO_C" >&6; }
23052 cat >conftest.$ac_ext <<_ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 $ac_includes_default
23061 rm -f conftest.$ac_objext
23062 if { (ac_try="$ac_compile"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23070 grep -v '^ *+' conftest.er1 >conftest.err
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23074 (exit $ac_status); } && {
23075 test -z "$ac_c_werror_flag" ||
23076 test ! -s conftest.err
23077 } && test -s conftest.$ac_objext; then
23078 ac_header_compiler=yes
23080 echo "$as_me: failed program was
:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23083 ac_header_compiler=no
23086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23088 echo "${ECHO_T}$ac_header_compiler" >&6; }
23090 # Is the header present?
23091 { echo "$as_me:$LINENO: checking popt.h presence
" >&5
23092 echo $ECHO_N "checking popt.h presence...
$ECHO_C" >&6; }
23093 cat >conftest.$ac_ext <<_ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23101 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23102 case "(($ac_try" in
23103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104 *) ac_try_echo=$ac_try;;
23106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23107 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23109 grep -v '^ *+' conftest.er1 >conftest.err
23111 cat conftest.err >&5
23112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23113 (exit $ac_status); } >/dev/null && {
23114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23115 test ! -s conftest.err
23117 ac_header_preproc=yes
23119 echo "$as_me: failed program was
:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23122 ac_header_preproc=no
23125 rm -f conftest.err conftest.$ac_ext
23126 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23127 echo "${ECHO_T}$ac_header_preproc" >&6; }
23129 # So? What about this header?
23130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23132 { echo "$as_me:$LINENO: WARNING
: popt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23133 echo "$as_me: WARNING
: popt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23134 { echo "$as_me:$LINENO: WARNING
: popt.h
: proceeding with the compiler
's result" >&5
23135 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result
" >&2;}
23136 ac_header_preproc=yes
23139 { echo "$as_me:$LINENO: WARNING
: popt.h
: present but cannot be compiled
" >&5
23140 echo "$as_me: WARNING
: popt.h
: present but cannot be compiled
" >&2;}
23141 { echo "$as_me:$LINENO: WARNING
: popt.h
: check
for missing prerequisite headers?
" >&5
23142 echo "$as_me: WARNING
: popt.h
: check
for missing prerequisite headers?
" >&2;}
23143 { echo "$as_me:$LINENO: WARNING
: popt.h
: see the Autoconf documentation
" >&5
23144 echo "$as_me: WARNING
: popt.h
: see the Autoconf documentation
" >&2;}
23145 { echo "$as_me:$LINENO: WARNING
: popt.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23146 echo "$as_me: WARNING
: popt.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23147 { echo "$as_me:$LINENO: WARNING
: popt.h
: proceeding with the preprocessor
's result" >&5
23148 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result
" >&2;}
23149 { echo "$as_me:$LINENO: WARNING
: popt.h
: in the future
, the compiler will take precedence
" >&5
23150 echo "$as_me: WARNING
: popt.h
: in the future
, the compiler will take precedence
" >&2;}
23154 { echo "$as_me:$LINENO: checking
for popt.h
" >&5
23155 echo $ECHO_N "checking
for popt.h...
$ECHO_C" >&6; }
23156 if test "${ac_cv_header_popt_h+set}" = set; then
23157 echo $ECHO_N "(cached
) $ECHO_C" >&6
23159 ac_cv_header_popt_h=$ac_header_preproc
23161 { echo "$as_me:$LINENO: result
: $ac_cv_header_popt_h" >&5
23162 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23165 if test $ac_cv_header_popt_h = yes; then
23166 POPT_HEADER_FOUND=1
23168 POPT_HEADER_FOUND=0
23174 if test "x
${POPT_HEADER_FOUND}" = "x0
" ; then
23175 if test ! -z "${POPT_MANDATORY}" ;
23177 { echo "$as_me:$LINENO: ***" >&5
23178 echo "$as_me: ***" >&6;}
23179 { echo "$as_me:$LINENO: *** It appears that you
do not have the popt development package installed.
" >&5
23180 echo "$as_me: *** It appears that you
do not have the popt development package installed.
" >&6;}
23181 { echo "$as_me:$LINENO: *** Please
install it to include
${POPT_DESCRIP} support
, or re-run configure
" >&5
23182 echo "$as_me: *** Please
install it to include
${POPT_DESCRIP} support
, or re-run configure
" >&6;}
23183 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${POPT_OPTION}" >&5
23184 echo "$as_me: *** without explicitly specifying
--with-${POPT_OPTION}" >&6;}
23193 cat >>confdefs.h <<_ACEOF
23194 #define HAVE_POPT 1
23198 elif test ! -z "${POPT_MANDATORY}";
23200 { echo "$as_me:$LINENO: ***" >&5
23201 echo "$as_me: ***" >&6;}
23202 { echo "$as_me:$LINENO: *** The
${POPT_DESCRIP} installation on this system appears to be broken.
" >&5
23203 echo "$as_me: *** The
${POPT_DESCRIP} installation on this system appears to be broken.
" >&6;}
23204 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
23205 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
23206 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${POPT_OPTION}" >&5
23207 echo "$as_me: *** without explicitly specifying
--with-${POPT_OPTION}" >&6;}
23214 if test "${USE_PRI}" != "no
"; then
23216 if test "x
${PRI_DIR}" != "x
"; then
23217 if test -d ${PRI_DIR}/lib; then
23218 pbxlibdir="-L${PRI_DIR}/lib
"
23220 pbxlibdir="-L${PRI_DIR}"
23223 { echo "$as_me:$LINENO: checking
for pri_call
in -lpri" >&5
23224 echo $ECHO_N "checking
for pri_call
in -lpri...
$ECHO_C" >&6; }
23225 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
23226 echo $ECHO_N "(cached
) $ECHO_C" >&6
23228 ac_check_lib_save_LIBS=$LIBS
23229 LIBS="-lpri ${pbxlibdir} $LIBS"
23230 cat >conftest.$ac_ext <<_ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23237 /* Override any GCC internal prototype to avoid an error.
23238 Use char because int might match the return type of a GCC
23239 builtin and then its argument prototype would still apply. */
23247 return pri_call ();
23252 rm -f conftest.$ac_objext conftest$ac_exeext
23253 if { (ac_try="$ac_link"
23254 case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23258 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23259 (eval "$ac_link") 2>conftest.er1
23261 grep -v '^ *+' conftest.er1 >conftest.err
23263 cat conftest.err >&5
23264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23265 (exit $ac_status); } && {
23266 test -z "$ac_c_werror_flag" ||
23267 test ! -s conftest.err
23268 } && test -s conftest$ac_exeext &&
23269 $as_test_x conftest$ac_exeext; then
23270 ac_cv_lib_pri_pri_call=yes
23272 echo "$as_me: failed program was
:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23275 ac_cv_lib_pri_pri_call=no
23278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23279 conftest$ac_exeext conftest.$ac_ext
23280 LIBS=$ac_check_lib_save_LIBS
23282 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pri_pri_call" >&5
23283 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
23284 if test $ac_cv_lib_pri_pri_call = yes; then
23291 if test "${AST_PRI_FOUND}" = "yes"; then
23293 PRI_HEADER_FOUND="1"
23294 if test "x
${PRI_DIR}" != "x
"; then
23295 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
23296 PRI_INCLUDE="-I${PRI_DIR}/include
"
23297 saved_cppflags="${CPPFLAGS}"
23298 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include
"
23299 if test "xlibpri.h
" != "x
" ; then
23300 as_ac_Header=`echo "ac_cv_header_
${PRI_DIR}/include
/libpri.h
" | $as_tr_sh`
23301 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23302 { echo "$as_me:$LINENO: checking
for ${PRI_DIR}/include
/libpri.h
" >&5
23303 echo $ECHO_N "checking
for ${PRI_DIR}/include
/libpri.h...
$ECHO_C" >&6; }
23304 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23305 echo $ECHO_N "(cached
) $ECHO_C" >&6
23307 ac_res=`eval echo '${'$as_ac_Header'}'`
23308 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23309 echo "${ECHO_T}$ac_res" >&6; }
23311 # Is the header compilable?
23312 { echo "$as_me:$LINENO: checking
${PRI_DIR}/include
/libpri.h usability
" >&5
23313 echo $ECHO_N "checking
${PRI_DIR}/include
/libpri.h usability...
$ECHO_C" >&6; }
23314 cat >conftest.$ac_ext <<_ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 $ac_includes_default
23321 #include <${PRI_DIR}/include/libpri.h>
23323 rm -f conftest.$ac_objext
23324 if { (ac_try="$ac_compile"
23325 case "(($ac_try" in
23326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327 *) ac_try_echo=$ac_try;;
23329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23330 (eval "$ac_compile") 2>conftest.er1
23332 grep -v '^ *+' conftest.er1 >conftest.err
23334 cat conftest.err >&5
23335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23336 (exit $ac_status); } && {
23337 test -z "$ac_c_werror_flag" ||
23338 test ! -s conftest.err
23339 } && test -s conftest.$ac_objext; then
23340 ac_header_compiler=yes
23342 echo "$as_me: failed program was
:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 ac_header_compiler=no
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23350 echo "${ECHO_T}$ac_header_compiler" >&6; }
23352 # Is the header present?
23353 { echo "$as_me:$LINENO: checking
${PRI_DIR}/include
/libpri.h presence
" >&5
23354 echo $ECHO_N "checking
${PRI_DIR}/include
/libpri.h presence...
$ECHO_C" >&6; }
23355 cat >conftest.$ac_ext <<_ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23361 #include <${PRI_DIR}/include/libpri.h>
23363 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23364 case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23371 grep -v '^ *+' conftest.er1 >conftest.err
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23375 (exit $ac_status); } >/dev/null && {
23376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23379 ac_header_preproc=yes
23381 echo "$as_me: failed program was
:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23384 ac_header_preproc=no
23387 rm -f conftest.err conftest.$ac_ext
23388 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23389 echo "${ECHO_T}$ac_header_preproc" >&6; }
23391 # So? What about this header?
23392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23394 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23395 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23396 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: proceeding with the compiler
's result" >&5
23397 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result
" >&2;}
23398 ac_header_preproc=yes
23401 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: present but cannot be compiled
" >&5
23402 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: present but cannot be compiled
" >&2;}
23403 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: check
for missing prerequisite headers?
" >&5
23404 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: check
for missing prerequisite headers?
" >&2;}
23405 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: see the Autoconf documentation
" >&5
23406 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: see the Autoconf documentation
" >&2;}
23407 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23408 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23409 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: proceeding with the preprocessor
's result" >&5
23410 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result
" >&2;}
23411 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: in the future
, the compiler will take precedence
" >&5
23412 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: in the future
, the compiler will take precedence
" >&2;}
23416 { echo "$as_me:$LINENO: checking
for ${PRI_DIR}/include
/libpri.h
" >&5
23417 echo $ECHO_N "checking
for ${PRI_DIR}/include
/libpri.h...
$ECHO_C" >&6; }
23418 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23419 echo $ECHO_N "(cached
) $ECHO_C" >&6
23421 eval "$as_ac_Header=\
$ac_header_preproc"
23423 ac_res=`eval echo '${'$as_ac_Header'}'`
23424 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23425 echo "${ECHO_T}$ac_res" >&6; }
23428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23436 CPPFLAGS="${saved_cppflags}"
23438 if test "xlibpri.h
" != "x
" ; then
23439 if test "${ac_cv_header_libpri_h+set}" = set; then
23440 { echo "$as_me:$LINENO: checking
for libpri.h
" >&5
23441 echo $ECHO_N "checking
for libpri.h...
$ECHO_C" >&6; }
23442 if test "${ac_cv_header_libpri_h+set}" = set; then
23443 echo $ECHO_N "(cached
) $ECHO_C" >&6
23445 { echo "$as_me:$LINENO: result
: $ac_cv_header_libpri_h" >&5
23446 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23448 # Is the header compilable?
23449 { echo "$as_me:$LINENO: checking libpri.h usability
" >&5
23450 echo $ECHO_N "checking libpri.h usability...
$ECHO_C" >&6; }
23451 cat >conftest.$ac_ext <<_ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23457 $ac_includes_default
23458 #include <libpri.h>
23460 rm -f conftest.$ac_objext
23461 if { (ac_try="$ac_compile"
23462 case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_compile") 2>conftest.er1
23469 grep -v '^ *+' conftest.er1 >conftest.err
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23473 (exit $ac_status); } && {
23474 test -z "$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 } && test -s conftest.$ac_objext; then
23477 ac_header_compiler=yes
23479 echo "$as_me: failed program was
:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_header_compiler=no
23485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23486 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23487 echo "${ECHO_T}$ac_header_compiler" >&6; }
23489 # Is the header present?
23490 { echo "$as_me:$LINENO: checking libpri.h presence
" >&5
23491 echo $ECHO_N "checking libpri.h presence...
$ECHO_C" >&6; }
23492 cat >conftest.$ac_ext <<_ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 #include <libpri.h>
23500 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23501 case "(($ac_try" in
23502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23503 *) ac_try_echo=$ac_try;;
23505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23506 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23508 grep -v '^ *+' conftest.er1 >conftest.err
23510 cat conftest.err >&5
23511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23512 (exit $ac_status); } >/dev/null && {
23513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23514 test ! -s conftest.err
23516 ac_header_preproc=yes
23518 echo "$as_me: failed program was
:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ac_header_preproc=no
23524 rm -f conftest.err conftest.$ac_ext
23525 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23526 echo "${ECHO_T}$ac_header_preproc" >&6; }
23528 # So? What about this header?
23529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23531 { echo "$as_me:$LINENO: WARNING
: libpri.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23532 echo "$as_me: WARNING
: libpri.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23533 { echo "$as_me:$LINENO: WARNING
: libpri.h
: proceeding with the compiler
's result" >&5
23534 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result
" >&2;}
23535 ac_header_preproc=yes
23538 { echo "$as_me:$LINENO: WARNING
: libpri.h
: present but cannot be compiled
" >&5
23539 echo "$as_me: WARNING
: libpri.h
: present but cannot be compiled
" >&2;}
23540 { echo "$as_me:$LINENO: WARNING
: libpri.h
: check
for missing prerequisite headers?
" >&5
23541 echo "$as_me: WARNING
: libpri.h
: check
for missing prerequisite headers?
" >&2;}
23542 { echo "$as_me:$LINENO: WARNING
: libpri.h
: see the Autoconf documentation
" >&5
23543 echo "$as_me: WARNING
: libpri.h
: see the Autoconf documentation
" >&2;}
23544 { echo "$as_me:$LINENO: WARNING
: libpri.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23545 echo "$as_me: WARNING
: libpri.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23546 { echo "$as_me:$LINENO: WARNING
: libpri.h
: proceeding with the preprocessor
's result" >&5
23547 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result
" >&2;}
23548 { echo "$as_me:$LINENO: WARNING
: libpri.h
: in the future
, the compiler will take precedence
" >&5
23549 echo "$as_me: WARNING
: libpri.h
: in the future
, the compiler will take precedence
" >&2;}
23553 { echo "$as_me:$LINENO: checking
for libpri.h
" >&5
23554 echo $ECHO_N "checking
for libpri.h...
$ECHO_C" >&6; }
23555 if test "${ac_cv_header_libpri_h+set}" = set; then
23556 echo $ECHO_N "(cached
) $ECHO_C" >&6
23558 ac_cv_header_libpri_h=$ac_header_preproc
23560 { echo "$as_me:$LINENO: result
: $ac_cv_header_libpri_h" >&5
23561 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23564 if test $ac_cv_header_libpri_h = yes; then
23573 if test "x
${PRI_HEADER_FOUND}" = "x0
" ; then
23574 if test ! -z "${PRI_MANDATORY}" ;
23576 { echo "$as_me:$LINENO: ***" >&5
23577 echo "$as_me: ***" >&6;}
23578 { echo "$as_me:$LINENO: *** It appears that you
do not have the pri development package installed.
" >&5
23579 echo "$as_me: *** It appears that you
do not have the pri development package installed.
" >&6;}
23580 { echo "$as_me:$LINENO: *** Please
install it to include
${PRI_DESCRIP} support
, or re-run configure
" >&5
23581 echo "$as_me: *** Please
install it to include
${PRI_DESCRIP} support
, or re-run configure
" >&6;}
23582 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${PRI_OPTION}" >&5
23583 echo "$as_me: *** without explicitly specifying
--with-${PRI_OPTION}" >&6;}
23592 cat >>confdefs.h <<_ACEOF
23597 elif test ! -z "${PRI_MANDATORY}";
23599 { echo "$as_me:$LINENO: ***" >&5
23600 echo "$as_me: ***" >&6;}
23601 { echo "$as_me:$LINENO: *** The
${PRI_DESCRIP} installation on this system appears to be broken.
" >&5
23602 echo "$as_me: *** The
${PRI_DESCRIP} installation on this system appears to be broken.
" >&6;}
23603 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
23604 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
23605 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${PRI_OPTION}" >&5
23606 echo "$as_me: *** without explicitly specifying
--with-${PRI_OPTION}" >&6;}
23612 if test "${USE_PWLIB}" != "no
"; then
23613 if test ! -z "${PWLIB_DIR}"; then
23614 PWLIBDIR="${PWLIB_DIR}"
23619 if test "${PWLIBDIR:-unset}" != "unset" ; then
23620 as_ac_File=`echo "ac_cv_file_
${PWLIBDIR}/version.h
" | $as_tr_sh`
23621 { echo "$as_me:$LINENO: checking
for ${PWLIBDIR}/version.h
" >&5
23622 echo $ECHO_N "checking
for ${PWLIBDIR}/version.h...
$ECHO_C" >&6; }
23623 if { as_var=$as_ac_File; eval "test \"\
${$as_var+set}\" = set"; }; then
23624 echo $ECHO_N "(cached
) $ECHO_C" >&6
23626 test "$cross_compiling" = yes &&
23627 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
23628 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
23629 { (exit 1); exit 1; }; }
23630 if test -r "${PWLIBDIR}/version.h
"; then
23631 eval "$as_ac_File=yes"
23633 eval "$as_ac_File=no
"
23636 ac_res=`eval echo '${'$as_ac_File'}'`
23637 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23638 echo "${ECHO_T}$ac_res" >&6; }
23639 if test `eval echo '${'$as_ac_File'}'` = yes; then
23644 if test "${HAS_PWLIB:-unset}" = "unset" ; then
23645 if test "${OPENH323DIR:-unset}" != "unset"; then
23646 as_ac_File=`echo "ac_cv_file_
${OPENH323DIR}/..
/pwlib
/version.h
" | $as_tr_sh`
23647 { echo "$as_me:$LINENO: checking
for ${OPENH323DIR}/..
/pwlib
/version.h
" >&5
23648 echo $ECHO_N "checking
for ${OPENH323DIR}/..
/pwlib
/version.h...
$ECHO_C" >&6; }
23649 if { as_var=$as_ac_File; eval "test \"\
${$as_var+set}\" = set"; }; then
23650 echo $ECHO_N "(cached
) $ECHO_C" >&6
23652 test "$cross_compiling" = yes &&
23653 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
23654 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
23655 { (exit 1); exit 1; }; }
23656 if test -r "${OPENH323DIR}/..
/pwlib
/version.h
"; then
23657 eval "$as_ac_File=yes"
23659 eval "$as_ac_File=no
"
23662 ac_res=`eval echo '${'$as_ac_File'}'`
23663 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23664 echo "${ECHO_T}$ac_res" >&6; }
23665 if test `eval echo '${'$as_ac_File'}'` = yes; then
23670 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23671 PWLIBDIR="${OPENH323DIR}/..
/pwlib
"
23673 as_ac_File=`echo "ac_cv_file_
${HOME}/pwlib
/include
/ptlib.h
" | $as_tr_sh`
23674 { echo "$as_me:$LINENO: checking
for ${HOME}/pwlib
/include
/ptlib.h
" >&5
23675 echo $ECHO_N "checking
for ${HOME}/pwlib
/include
/ptlib.h...
$ECHO_C" >&6; }
23676 if { as_var=$as_ac_File; eval "test \"\
${$as_var+set}\" = set"; }; then
23677 echo $ECHO_N "(cached
) $ECHO_C" >&6
23679 test "$cross_compiling" = yes &&
23680 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
23681 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
23682 { (exit 1); exit 1; }; }
23683 if test -r "${HOME}/pwlib
/include
/ptlib.h
"; then
23684 eval "$as_ac_File=yes"
23686 eval "$as_ac_File=no
"
23689 ac_res=`eval echo '${'$as_ac_File'}'`
23690 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23691 echo "${ECHO_T}$ac_res" >&6; }
23692 if test `eval echo '${'$as_ac_File'}'` = yes; then
23696 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23697 PWLIBDIR="${HOME}/pwlib
"
23699 { echo "$as_me:$LINENO: checking
for /usr
/local
/include
/ptlib.h
" >&5
23700 echo $ECHO_N "checking
for /usr
/local
/include
/ptlib.h...
$ECHO_C" >&6; }
23701 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
23702 echo $ECHO_N "(cached
) $ECHO_C" >&6
23704 test "$cross_compiling" = yes &&
23705 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
23706 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
23707 { (exit 1); exit 1; }; }
23708 if test -r "/usr
/local
/include
/ptlib.h
"; then
23709 ac_cv_file__usr_local_include_ptlib_h=yes
23711 ac_cv_file__usr_local_include_ptlib_h=no
23714 { echo "$as_me:$LINENO: result
: $ac_cv_file__usr_local_include_ptlib_h" >&5
23715 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
23716 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
23720 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23721 # Extract the first word of "ptlib-config
", so it can be a program name with args.
23722 set dummy ptlib-config; ac_word=$2
23723 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
23724 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
23725 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23726 echo $ECHO_N "(cached
) $ECHO_C" >&6
23728 case $PTLIB_CONFIG in
23730 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23734 for as_dir in /usr/local/bin
23737 test -z "$as_dir" && as_dir=.
23738 for ac_exec_ext in '' $ac_executable_extensions; do
23739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23740 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23741 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
23751 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23752 if test -n "$PTLIB_CONFIG"; then
23753 { echo "$as_me:$LINENO: result
: $PTLIB_CONFIG" >&5
23754 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23756 { echo "$as_me:$LINENO: result
: no
" >&5
23757 echo "${ECHO_T}no
" >&6; }
23761 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
23762 # Extract the first word of "ptlib-config
", so it can be a program name with args.
23763 set dummy ptlib-config; ac_word=$2
23764 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
23765 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
23766 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23767 echo $ECHO_N "(cached
) $ECHO_C" >&6
23769 case $PTLIB_CONFIG in
23771 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23775 for as_dir in /usr/local/share/pwlib/make
23778 test -z "$as_dir" && as_dir=.
23779 for ac_exec_ext in '' $ac_executable_extensions; do
23780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23781 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23782 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
23792 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23793 if test -n "$PTLIB_CONFIG"; then
23794 { echo "$as_me:$LINENO: result
: $PTLIB_CONFIG" >&5
23795 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23797 { echo "$as_me:$LINENO: result
: no
" >&5
23798 echo "${ECHO_T}no
" >&6; }
23803 PWLIB_INCDIR="/usr
/local
/include
"
23804 PWLIB_LIBDIR="/usr
/local
/lib
"
23806 { echo "$as_me:$LINENO: checking
for /usr
/include
/ptlib.h
" >&5
23807 echo $ECHO_N "checking
for /usr
/include
/ptlib.h...
$ECHO_C" >&6; }
23808 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
23809 echo $ECHO_N "(cached
) $ECHO_C" >&6
23811 test "$cross_compiling" = yes &&
23812 { { echo "$as_me:$LINENO: error
: cannot check
for file existence when cross compiling
" >&5
23813 echo "$as_me: error
: cannot check
for file existence when cross compiling
" >&2;}
23814 { (exit 1); exit 1; }; }
23815 if test -r "/usr
/include
/ptlib.h
"; then
23816 ac_cv_file__usr_include_ptlib_h=yes
23818 ac_cv_file__usr_include_ptlib_h=no
23821 { echo "$as_me:$LINENO: result
: $ac_cv_file__usr_include_ptlib_h" >&5
23822 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
23823 if test $ac_cv_file__usr_include_ptlib_h = yes; then
23827 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23828 # Extract the first word of "ptlib-config
", so it can be a program name with args.
23829 set dummy ptlib-config; ac_word=$2
23830 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
23831 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
23832 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23833 echo $ECHO_N "(cached
) $ECHO_C" >&6
23835 case $PTLIB_CONFIG in
23837 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23841 for as_dir in /usr/share/pwlib/make
23844 test -z "$as_dir" && as_dir=.
23845 for ac_exec_ext in '' $ac_executable_extensions; do
23846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23847 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23848 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
23858 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23859 if test -n "$PTLIB_CONFIG"; then
23860 { echo "$as_me:$LINENO: result
: $PTLIB_CONFIG" >&5
23861 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23863 { echo "$as_me:$LINENO: result
: no
" >&5
23864 echo "${ECHO_T}no
" >&6; }
23868 PWLIB_INCDIR="/usr
/include
"
23869 PWLIB_LIBDIR="/usr
/lib
"
23876 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
23877 # echo "Cannot
find pwlib
- please
install or
set PWLIBDIR and try again
"
23881 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23882 if test "${PWLIBDIR:-unset}" = "unset" ; then
23883 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
23884 PWLIBDIR=`$PTLIB_CONFIG --prefix`
23886 echo "Cannot
find ptlib-config
- please
install and try again
"
23891 if test "x
$PWLIBDIR" = "x
/usr
" -o "x
$PWLIBDIR" = "x
/usr
/"; then
23892 PWLIBDIR="/usr
/share
/pwlib
"
23893 PWLIB_INCDIR="/usr
/include
"
23894 PWLIB_LIBDIR="/usr
/lib
"
23896 if test "x
$PWLIBDIR" = "x
/usr
/local" -o "x
$PWLIBDIR" = "x
/usr
/"; then
23897 PWLIBDIR="/usr
/local
/share
/pwlib
"
23898 PWLIB_INCDIR="/usr
/local
/include
"
23899 PWLIB_LIBDIR="/usr
/local
/lib
"
23902 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
23903 PWLIB_INCDIR="${PWLIBDIR}/include
"
23905 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
23906 PWLIB_LIBDIR="${PWLIBDIR}/lib
"
23915 if test "${HAS_PWLIB:-unset}" != "unset"; then
23916 PWLIB_VERSION=`grep "PWLIB_VERSION
" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g
'`
23917 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
23918 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
23919 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
23920 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
23921 let PWLIB_REQ=1*10000+9*100+2
23923 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
23924 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23925 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
23926 { echo "$as_me:$LINENO: result: no" >&5
23927 echo "${ECHO_T}no" >&6; }
23930 { echo "$as_me:$LINENO: result: yes" >&5
23931 echo "${ECHO_T}yes" >&6; }
23936 if test "${HAS_PWLIB:-unset}" != "unset"; then
23940 linux*) PWLIB_OSTYPE=linux ;
23942 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
23944 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
23945 ENDLDLIBS="-lossaudio" ;
23947 netbsd* ) PWLIB_OSTYPE=NetBSD ;
23948 ENDLDLIBS="-lossaudio" ;
23950 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
23952 darwin* ) PWLIB_OSTYPE=Darwin ;
23954 beos*) PWLIB_OSTYPE=beos ;
23955 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
23957 cygwin*) PWLIB_OSTYPE=cygwin ;
23959 mingw*) PWLIB_OSTYPE=mingw ;
23960 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
23961 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
23963 * ) PWLIB_OSTYPE="$host_os" ;
23964 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
23965 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
23970 case "$host_cpu" in
23971 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
23974 x86_64) PWLIB_MACHTYPE=x86_64 ;
23979 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
23983 sparc ) PWLIB_MACHTYPE=sparc ;
23986 powerpc ) PWLIB_MACHTYPE=ppc ;
23989 ppc ) PWLIB_MACHTYPE=ppc ;
23992 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
23997 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
24002 ia64) PWLIB_MACHTYPE=ia64 ;
24006 s390x) PWLIB_MACHTYPE=s390x ;
24011 s390) PWLIB_MACHTYPE=s390 ;
24014 * ) PWLIB_MACHTYPE="$host_cpu";
24015 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
24016 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
24019 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
24024 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
24027 if test "${HAS_PWLIB:-unset}" != "unset"; then
24028 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
24029 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
24031 saved_cppflags="${CPPFLAGS}"
24032 saved_libs="${LIBS}"
24033 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
24034 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
24037 ac_cpp='$CXXCPP $CPPFLAGS'
24038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
24039 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
24040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24043 cat >conftest.$ac_ext <<_ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h. */
24053 BOOL q = PTime::IsDaylightSavings();
24058 rm -f conftest.$ac_objext conftest$ac_exeext
24059 if { (ac_try="$ac_link"
24060 case "(($ac_try" in
24061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062 *) ac_try_echo=$ac_try;;
24064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24065 (eval "$ac_link") 2>conftest.er1
24067 grep -v '^
*+' conftest.er1 >conftest.err
24069 cat conftest.err >&5
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); } && {
24072 test -z "$ac_cxx_werror_flag" ||
24073 test ! -s conftest.err
24074 } && test -s conftest$ac_exeext &&
24075 $as_test_x conftest$ac_exeext; then
24076 { echo "$as_me:$LINENO: result: yes" >&5
24077 echo "${ECHO_T}yes" >&6; }
24078 ac_cv_lib_PWLIB="yes"
24081 echo "$as_me: failed program was:" >&5
24082 sed 's
/^
/|
/' conftest.$ac_ext >&5
24084 { echo "$as_me:$LINENO: result: no" >&5
24085 echo "${ECHO_T}no" >&6; }
24086 ac_cv_lib_PWLIB="no"
24091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24092 conftest$ac_exeext conftest.$ac_ext
24095 ac_cpp='$CPP $CPPFLAGS'
24096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
24097 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
24098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24101 LIBS="${saved_libs}"
24102 CPPFLAGS="${saved_cppflags}"
24104 if test "${ac_cv_lib_PWLIB}" = "yes"; then
24105 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
24106 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
24108 PWLIB_LIB="-l${PLATFORM_PWLIB}"
24110 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
24111 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
24115 cat >>confdefs.h <<\_ACEOF
24116 #define HAVE_PWLIB 1
24125 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
24126 { echo "$as_me:$LINENO: ***" >&5
24127 echo "$as_me: ***" >&6;}
24128 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
24129 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
24130 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24131 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24132 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
24133 echo "$as_me: *** including --without-pwlib" >&6;}
24137 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
24138 if test ! -z "${OPENH323_DIR}"; then
24139 OPENH323DIR="${OPENH323_DIR}"
24144 if test "${OPENH323DIR:-unset}" != "unset" ; then
24145 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" | $as_tr_sh`
24146 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
24147 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
24148 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24149 echo $ECHO_N "(cached) $ECHO_C" >&6
24151 test "$cross_compiling" = yes &&
24152 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24153 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24154 { (exit 1); exit 1; }; }
24155 if test -r "${OPENH323DIR}/version.h"; then
24156 eval "$as_ac_File=yes"
24158 eval "$as_ac_File=no"
24161 ac_res=`eval echo '${'$as_ac_File'}'`
24162 { echo "$as_me:$LINENO: result: $ac_res" >&5
24163 echo "${ECHO_T}$ac_res" >&6; }
24164 if test `eval echo '${'$as_ac_File'}'` = yes; then
24169 if test "${HAS_OPENH323:-unset}" = "unset" ; then
24170 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
24171 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
24172 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
24173 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24176 test "$cross_compiling" = yes &&
24177 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24178 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24179 { (exit 1); exit 1; }; }
24180 if test -r "${PWLIBDIR}/../openh323/version.h"; then
24181 eval "$as_ac_File=yes"
24183 eval "$as_ac_File=no"
24186 ac_res=`eval echo '${'$as_ac_File'}'`
24187 { echo "$as_me:$LINENO: result: $ac_res" >&5
24188 echo "${ECHO_T}$ac_res" >&6; }
24189 if test `eval echo '${'$as_ac_File'}'` = yes; then
24190 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
24193 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24194 OPENH323DIR="${PWLIBDIR}/../openh323"
24195 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
24196 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
24197 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
24198 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24199 echo $ECHO_N "(cached) $ECHO_C" >&6
24201 test "$cross_compiling" = yes &&
24202 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24203 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24204 { (exit 1); exit 1; }; }
24205 if test -r "${OPENH323DIR}/include/h323.h"; then
24206 eval "$as_ac_File=yes"
24208 eval "$as_ac_File=no"
24211 ac_res=`eval echo '${'$as_ac_File'}'`
24212 { echo "$as_me:$LINENO: result: $ac_res" >&5
24213 echo "${ECHO_T}$ac_res" >&6; }
24214 if test `eval echo '${'$as_ac_File'}'` = yes; then
24217 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
24221 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" | $as_tr_sh`
24222 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
24223 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
24224 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24225 echo $ECHO_N "(cached) $ECHO_C" >&6
24227 test "$cross_compiling" = yes &&
24228 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24229 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24230 { (exit 1); exit 1; }; }
24231 if test -r "${HOME}/openh323/include/h323.h"; then
24232 eval "$as_ac_File=yes"
24234 eval "$as_ac_File=no"
24237 ac_res=`eval echo '${'$as_ac_File'}'`
24238 { echo "$as_me:$LINENO: result: $ac_res" >&5
24239 echo "${ECHO_T}$ac_res" >&6; }
24240 if test `eval echo '${'$as_ac_File'}'` = yes; then
24244 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24245 OPENH323DIR="${HOME}/openh323"
24247 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
24248 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
24249 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
24250 echo $ECHO_N "(cached) $ECHO_C" >&6
24252 test "$cross_compiling" = yes &&
24253 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24254 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24255 { (exit 1); exit 1; }; }
24256 if test -r "/usr/local/include/openh323/h323.h"; then
24257 ac_cv_file__usr_local_include_openh323_h323_h=yes
24259 ac_cv_file__usr_local_include_openh323_h323_h=no
24262 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
24263 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
24264 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
24268 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24269 OPENH323DIR="/usr/local/share/openh323"
24270 OPENH323_INCDIR="/usr/local/include/openh323"
24271 OPENH323_LIBDIR="/usr/local/lib"
24273 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
24274 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
24275 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
24276 echo $ECHO_N "(cached) $ECHO_C" >&6
24278 test "$cross_compiling" = yes &&
24279 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24280 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24281 { (exit 1); exit 1; }; }
24282 if test -r "/usr/include/openh323/h323.h"; then
24283 ac_cv_file__usr_include_openh323_h323_h=yes
24285 ac_cv_file__usr_include_openh323_h323_h=no
24288 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
24289 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
24290 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
24294 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24295 OPENH323DIR="/usr/share/openh323"
24296 OPENH323_INCDIR="/usr/include/openh323"
24297 OPENH323_LIBDIR="/usr/lib"
24304 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24305 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
24306 OPENH323_INCDIR="${OPENH323DIR}/include"
24308 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
24309 OPENH323_LIBDIR="${OPENH323DIR}/lib"
24318 if test "${HAS_OPENH323:-unset}" != "unset"; then
24319 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's
/"//g'`
24320 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
24321 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
24322 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
24323 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
24324 let OPENH323_REQ=1*10000+17*100+3
24326 { echo "$as_me:$LINENO: checking
if OpenH323 version
${OPENH323_VERSION} is compatible with chan_h323
" >&5
24327 echo $ECHO_N "checking
if OpenH323 version
${OPENH323_VERSION} is compatible with chan_h323...
$ECHO_C" >&6; }
24328 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
24329 { echo "$as_me:$LINENO: result
: no
" >&5
24330 echo "${ECHO_T}no
" >&6; }
24333 { echo "$as_me:$LINENO: result
: yes" >&5
24334 echo "${ECHO_T}yes" >&6; }
24339 if test "${HAS_OPENH323:-unset}" != "unset"; then
24340 { echo "$as_me:$LINENO: checking OpenH323 build option
" >&5
24341 echo $ECHO_N "checking OpenH323 build option...
$ECHO_C" >&6; }
24343 files=`ls -l ${OPENH323_LIBDIR}/libh323_${PWLIB_PLATFORM}_*.so*`
24345 if test -n "$files"; then
24346 for f in $files; do
24347 if test -f $f -a ! -L $f; then
24348 libfile=`basename $f`
24353 if test "${libfile:-unset}" != "unset"; then
24354 OPENH323_SUFFIX=`eval "echo ${libfile} |
sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
24356 case "${OPENH323_SUFFIX}" in
24358 OPENH323_BUILD="notrace
";;
24360 OPENH323_BUILD="opt
";;
24362 OPENH323_BUILD="debug
";;
24364 OPENH323_BUILD="notrace
";;
24366 { echo "$as_me:$LINENO: result
: ${OPENH323_BUILD}" >&5
24367 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
24373 PLATFORM_OPENH323
="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
24375 if test "${HAS_OPENH323:-unset}" != "unset"; then
24376 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
24377 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
24379 saved_cppflags
="${CPPFLAGS}"
24380 saved_libs
="${LIBS}"
24381 LIBS
="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
24382 CPPFLAGS
="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
24385 ac_cpp
='$CXXCPP $CPPFLAGS'
24386 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24387 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24388 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
24391 cat >conftest.
$ac_ext <<_ACEOF
24394 cat confdefs.h
>>conftest.
$ac_ext
24395 cat >>conftest.
$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24399 #include "h323ep.h"
24403 H323EndPoint ep = H323EndPoint();
24408 rm -f conftest.
$ac_objext conftest
$ac_exeext
24409 if { (ac_try
="$ac_link"
24410 case "(($ac_try" in
24411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24412 *) ac_try_echo=$ac_try;;
24414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24415 (eval "$ac_link") 2>conftest.er1
24417 grep -v '^ *+' conftest.er1 >conftest.err
24419 cat conftest.err >&5
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); } && {
24422 test -z "$ac_cxx_werror_flag" ||
24423 test ! -s conftest.err
24424 } && test -s conftest$ac_exeext &&
24425 $as_test_x conftest$ac_exeext; then
24426 { echo "$as_me:$LINENO: result: yes" >&5
24427 echo "${ECHO_T}yes" >&6; }
24428 ac_cv_lib_OPENH323="yes"
24431 echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24434 { echo "$as_me:$LINENO: result: no" >&5
24435 echo "${ECHO_T}no" >&6; }
24436 ac_cv_lib_OPENH323="no"
24441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24442 conftest$ac_exeext conftest.$ac_ext
24445 ac_cpp='$CPP $CPPFLAGS'
24446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24451 LIBS="${saved_libs}"
24452 CPPFLAGS="${saved_cppflags}"
24454 if test "${ac_cv_lib_OPENH323}" = "yes"; then
24455 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
24456 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
24458 OPENH323_LIB="-l${PLATFORM_OPENH323}"
24460 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
24461 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
24465 cat >>confdefs.h <<\_ACEOF
24466 #define HAVE_OPENH323 1
24473 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
24474 { echo "$as_me:$LINENO: ***" >&5
24475 echo "$as_me: ***" >&6;}
24476 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
24477 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
24478 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24479 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24480 { echo "$as_me:$LINENO: *** including --without-h323" >&5
24481 echo "$as_me: *** including --without-h323" >&6;}
24487 ac_cpp='$CXXCPP $CPPFLAGS'
24488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24493 if test "${USE_QT}" != "no"; then
24494 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
24495 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
24496 saved_libs="${LIBS}"
24497 saved_cppflags="${CPPFLAGS}"
24498 if test "x${QT_DIR}" != "x"; then
24499 LIBS="${LIBS} -L${QT_DIR}/lib"
24500 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
24502 LIBS="${LIBS} -lqt"
24504 cat >conftest.$ac_ext <<_ACEOF
24508 cat confdefs.h >>conftest.$ac_ext
24509 cat >>conftest.$ac_ext <<_ACEOF
24510 /* end confdefs.h. */
24511 #include <qt3/qdatetime.h>
24521 rm -f conftest.$ac_objext conftest$ac_exeext
24522 if { (ac_try="$ac_link"
24523 case "(($ac_try" in
24524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24525 *) ac_try_echo
=$ac_try;;
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528 (eval "$ac_link") 2>conftest.er1
24530 grep -v '^ *+' conftest.er1
>conftest.err
24532 cat conftest.err
>&5
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); } && {
24535 test -z "$ac_cxx_werror_flag" ||
24536 test ! -s conftest.err
24537 } && test -s conftest
$ac_exeext &&
24538 $as_test_x conftest
$ac_exeext; then
24539 ac_cv_lib_qt_qt_date
="yes"
24541 echo "$as_me: failed program was:" >&5
24542 sed 's/^/| /' conftest.
$ac_ext >&5
24544 ac_cv_lib_qt_qt_date
="no"
24547 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24548 conftest
$ac_exeext conftest.
$ac_ext
24549 LIBS
="${saved_libs}"
24550 CPPFLAGS
="${saved_cppflags}"
24552 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
24553 saved_libs
="${LIBS}"
24554 saved_cppflags
="${CPPFLAGS}"
24555 if test "x${QT_DIR}" != "x"; then
24556 LIBS
="${LIBS} -L${QT_DIR}/lib"
24557 CPPFLAGS
="${CPPFLAGS} -I${QT_DIR}/include"
24559 LIBS
="${LIBS} -lqt-mt"
24561 cat >conftest.
$ac_ext <<_ACEOF
24565 cat confdefs.h
>>conftest.
$ac_ext
24566 cat >>conftest.
$ac_ext <<_ACEOF
24567 /* end confdefs.h. */
24568 #include <qt3/qdatetime.h>
24578 rm -f conftest.
$ac_objext conftest
$ac_exeext
24579 if { (ac_try
="$ac_link"
24580 case "(($ac_try" in
24581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24582 *) ac_try_echo=$ac_try;;
24584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24585 (eval "$ac_link") 2>conftest.er1
24587 grep -v '^ *+' conftest.er1 >conftest.err
24589 cat conftest.err >&5
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); } && {
24592 test -z "$ac_cxx_werror_flag" ||
24593 test ! -s conftest.err
24594 } && test -s conftest$ac_exeext &&
24595 $as_test_x conftest$ac_exeext; then
24596 ac_cv_lib_qt_qt_date="yes"
24598 echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24601 ac_cv_lib_qt_qt_date="no"
24604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24605 conftest$ac_exeext conftest.$ac_ext
24606 LIBS="${saved_libs}"
24607 CPPFLAGS="${saved_cppflags}"
24610 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24611 { echo "$as_me:$LINENO: result: yes" >&5
24612 echo "${ECHO_T}yes" >&6; }
24614 { echo "$as_me:$LINENO: result: no" >&5
24615 echo "${ECHO_T}no" >&6; }
24618 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24619 QT_LIB="-l${qtlib}"
24620 if test "${QT_DIR}" != ""; then
24621 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
24622 QT_INCLUDE="-I${QT_DIR}/include"
24626 cat >>confdefs.h <<\_ACEOF
24630 if test -n "$ac_tool_prefix"; then
24631 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
24632 set dummy ${ac_tool_prefix}moc; ac_word=$2
24633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24635 if test "${ac_cv_path_QTMOC+set}" = set; then
24636 echo $ECHO_N "(cached) $ECHO_C" >&6
24640 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
24643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24644 for as_dir in $PATH
24647 test -z "$as_dir" && as_dir=.
24648 for ac_exec_ext in '' $ac_executable_extensions; do
24649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24650 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
24651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24661 QTMOC=$ac_cv_path_QTMOC
24662 if test -n "$QTMOC"; then
24663 { echo "$as_me:$LINENO: result: $QTMOC" >&5
24664 echo "${ECHO_T}$QTMOC" >&6; }
24666 { echo "$as_me:$LINENO: result: no" >&5
24667 echo "${ECHO_T}no" >&6; }
24672 if test -z "$ac_cv_path_QTMOC"; then
24674 # Extract the first word of "moc", so it can be a program name with args.
24675 set dummy moc; ac_word=$2
24676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24678 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
24679 echo $ECHO_N "(cached) $ECHO_C" >&6
24681 case $ac_pt_QTMOC in
24683 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
24686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24687 for as_dir in $PATH
24690 test -z "$as_dir" && as_dir=.
24691 for ac_exec_ext in '' $ac_executable_extensions; do
24692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24693 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
24694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24704 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
24705 if test -n "$ac_pt_QTMOC"; then
24706 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
24707 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
24709 { echo "$as_me:$LINENO: result: no" >&5
24710 echo "${ECHO_T}no" >&6; }
24713 if test "x$ac_pt_QTMOC" = x; then
24716 case $cross_compiling:$ac_tool_warned in
24718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24719 whose name does not start with the host triplet. If you think this
24720 configuration is useful to you, please write to autoconf@gnu.org." >&5
24721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24722 whose name does not start with the host triplet. If you think this
24723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24724 ac_tool_warned=yes ;;
24729 QTMOC="$ac_cv_path_QTMOC"
24732 elif test ! -z "${QT_MANDATORY}";
24734 { echo "$as_me:$LINENO: ***" >&5
24735 echo "$as_me: ***" >&6;}
24736 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
24737 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
24738 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24739 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24740 { echo "$as_me:$LINENO: *** including --without-qt." >&5
24741 echo "$as_me: *** including --without-qt." >&6;}
24747 ac_cpp='$CPP $CPPFLAGS'
24748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24754 if test "${USE_RADIUS}" != "no"; then
24756 if test "x${RADIUS_DIR}" != "x"; then
24757 if test -d ${RADIUS_DIR}/lib; then
24758 pbxlibdir="-L${RADIUS_DIR}/lib"
24760 pbxlibdir="-L${RADIUS_DIR}"
24763 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
24764 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
24765 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24768 ac_check_lib_save_LIBS=$LIBS
24769 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
24770 cat >conftest.$ac_ext <<_ACEOF
24773 cat confdefs.h >>conftest.$ac_ext
24774 cat >>conftest.$ac_ext <<_ACEOF
24775 /* end confdefs.h. */
24777 /* Override any GCC internal prototype to avoid an error.
24778 Use char because int might match the return type of a GCC
24779 builtin and then its argument prototype would still apply. */
24783 char rc_read_config ();
24787 return rc_read_config ();
24792 rm -f conftest.$ac_objext conftest$ac_exeext
24793 if { (ac_try="$ac_link"
24794 case "(($ac_try" in
24795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24796 *) ac_try_echo
=$ac_try;;
24798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24799 (eval "$ac_link") 2>conftest.er1
24801 grep -v '^ *+' conftest.er1
>conftest.err
24803 cat conftest.err
>&5
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); } && {
24806 test -z "$ac_c_werror_flag" ||
24807 test ! -s conftest.err
24808 } && test -s conftest
$ac_exeext &&
24809 $as_test_x conftest
$ac_exeext; then
24810 ac_cv_lib_radiusclient_ng_rc_read_config
=yes
24812 echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.
$ac_ext >&5
24815 ac_cv_lib_radiusclient_ng_rc_read_config
=no
24818 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24819 conftest
$ac_exeext conftest.
$ac_ext
24820 LIBS
=$ac_check_lib_save_LIBS
24822 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
24823 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
24824 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
24825 AST_RADIUS_FOUND
=yes
24827 AST_RADIUS_FOUND
=no
24831 if test "${AST_RADIUS_FOUND}" = "yes"; then
24832 RADIUS_LIB
="-lradiusclient-ng "
24833 RADIUS_HEADER_FOUND
="1"
24834 if test "x${RADIUS_DIR}" != "x"; then
24835 RADIUS_LIB
="${pbxlibdir} ${RADIUS_LIB}"
24836 RADIUS_INCLUDE
="-I${RADIUS_DIR}/include"
24837 saved_cppflags
="${CPPFLAGS}"
24838 CPPFLAGS
="${CPPFLAGS} -I${RADIUS_DIR}/include"
24839 if test "xradiusclient-ng.h" != "x" ; then
24840 as_ac_Header
=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
24841 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24842 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24843 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24844 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24847 ac_res
=`eval echo '${'$as_ac_Header'}'`
24848 { echo "$as_me:$LINENO: result: $ac_res" >&5
24849 echo "${ECHO_T}$ac_res" >&6; }
24851 # Is the header compilable?
24852 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
24853 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
24854 cat >conftest.
$ac_ext <<_ACEOF
24857 cat confdefs.h
>>conftest.
$ac_ext
24858 cat >>conftest.
$ac_ext <<_ACEOF
24859 /* end confdefs.h. */
24860 $ac_includes_default
24861 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24863 rm -f conftest.
$ac_objext
24864 if { (ac_try
="$ac_compile"
24865 case "(($ac_try" in
24866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24867 *) ac_try_echo=$ac_try;;
24869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24870 (eval "$ac_compile") 2>conftest.er1
24872 grep -v '^ *+' conftest.er1 >conftest.err
24874 cat conftest.err >&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } && {
24877 test -z "$ac_c_werror_flag" ||
24878 test ! -s conftest.err
24879 } && test -s conftest.$ac_objext; then
24880 ac_header_compiler=yes
24882 echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24885 ac_header_compiler=no
24888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24890 echo "${ECHO_T}$ac_header_compiler" >&6; }
24892 # Is the header present?
24893 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
24894 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
24895 cat >conftest.$ac_ext <<_ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24901 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24903 if { (ac_try="$ac_cpp conftest.$ac_ext"
24904 case "(($ac_try" in
24905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24906 *) ac_try_echo
=$ac_try;;
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24911 grep -v '^ *+' conftest.er1
>conftest.err
24913 cat conftest.err
>&5
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); } >/dev
/null
&& {
24916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24917 test ! -s conftest.err
24919 ac_header_preproc
=yes
24921 echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.
$ac_ext >&5
24924 ac_header_preproc
=no
24927 rm -f conftest.err conftest.
$ac_ext
24928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24929 echo "${ECHO_T}$ac_header_preproc" >&6; }
24931 # So? What about this header?
24932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24934 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24935 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24936 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
24937 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24938 ac_header_preproc
=yes
24941 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
24942 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
24943 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
24944 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24945 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
24946 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
24947 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24948 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24949 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24950 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24951 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24952 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24956 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24957 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24958 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24959 echo $ECHO_N "(cached) $ECHO_C" >&6
24961 eval "$as_ac_Header=\$ac_header_preproc"
24963 ac_res
=`eval echo '${'$as_ac_Header'}'`
24964 { echo "$as_me:$LINENO: result: $ac_res" >&5
24965 echo "${ECHO_T}$ac_res" >&6; }
24968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24969 RADIUS_HEADER_FOUND
=1
24971 RADIUS_HEADER_FOUND
=0
24976 CPPFLAGS
="${saved_cppflags}"
24978 if test "xradiusclient-ng.h" != "x" ; then
24979 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24980 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24981 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24982 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24983 echo $ECHO_N "(cached) $ECHO_C" >&6
24985 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24986 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24988 # Is the header compilable?
24989 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
24990 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
24991 cat >conftest.
$ac_ext <<_ACEOF
24994 cat confdefs.h
>>conftest.
$ac_ext
24995 cat >>conftest.
$ac_ext <<_ACEOF
24996 /* end confdefs.h. */
24997 $ac_includes_default
24998 #include <radiusclient-ng.h>
25000 rm -f conftest.
$ac_objext
25001 if { (ac_try
="$ac_compile"
25002 case "(($ac_try" in
25003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25004 *) ac_try_echo=$ac_try;;
25006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25007 (eval "$ac_compile") 2>conftest.er1
25009 grep -v '^ *+' conftest.er1 >conftest.err
25011 cat conftest.err >&5
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); } && {
25014 test -z "$ac_c_werror_flag" ||
25015 test ! -s conftest.err
25016 } && test -s conftest.$ac_objext; then
25017 ac_header_compiler=yes
25019 echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25022 ac_header_compiler=no
25025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25027 echo "${ECHO_T}$ac_header_compiler" >&6; }
25029 # Is the header present?
25030 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
25031 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
25032 cat >conftest.$ac_ext <<_ACEOF
25035 cat confdefs.h >>conftest.$ac_ext
25036 cat >>conftest.$ac_ext <<_ACEOF
25037 /* end confdefs.h. */
25038 #include <radiusclient-ng.h>
25040 if { (ac_try="$ac_cpp conftest.$ac_ext"
25041 case "(($ac_try" in
25042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25043 *) ac_try_echo
=$ac_try;;
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25048 grep -v '^ *+' conftest.er1
>conftest.err
25050 cat conftest.err
>&5
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); } >/dev
/null
&& {
25053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25054 test ! -s conftest.err
25056 ac_header_preproc
=yes
25058 echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.
$ac_ext >&5
25061 ac_header_preproc
=no
25064 rm -f conftest.err conftest.
$ac_ext
25065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25066 echo "${ECHO_T}$ac_header_preproc" >&6; }
25068 # So? What about this header?
25069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25071 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25072 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25073 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
25074 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25075 ac_header_preproc
=yes
25078 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
25079 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
25080 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
25081 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25082 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
25083 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
25084 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25085 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25086 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25087 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25088 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25089 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25093 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25094 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25095 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25096 echo $ECHO_N "(cached) $ECHO_C" >&6
25098 ac_cv_header_radiusclient_ng_h
=$ac_header_preproc
25100 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25101 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25104 if test $ac_cv_header_radiusclient_ng_h = yes; then
25105 RADIUS_HEADER_FOUND
=1
25107 RADIUS_HEADER_FOUND
=0
25113 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
25114 if test ! -z "${RADIUS_MANDATORY}" ;
25116 { echo "$as_me:$LINENO: ***" >&5
25117 echo "$as_me: ***" >&6;}
25118 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
25119 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
25120 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
25121 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
25122 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25123 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25132 cat >>confdefs.h
<<_ACEOF
25133 #define HAVE_RADIUS 1
25137 elif test ! -z "${RADIUS_MANDATORY}";
25139 { echo "$as_me:$LINENO: ***" >&5
25140 echo "$as_me: ***" >&6;}
25141 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
25142 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
25143 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25144 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25145 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25146 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25153 if test "${USE_SPEEX}" != "no"; then
25155 if test "x${SPEEX_DIR}" != "x"; then
25156 if test -d ${SPEEX_DIR}/lib
; then
25157 pbxlibdir
="-L${SPEEX_DIR}/lib"
25159 pbxlibdir
="-L${SPEEX_DIR}"
25162 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
25163 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
25164 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
25167 ac_check_lib_save_LIBS
=$LIBS
25168 LIBS
="-lspeex ${pbxlibdir} -lm $LIBS"
25169 cat >conftest.
$ac_ext <<_ACEOF
25172 cat confdefs.h
>>conftest.
$ac_ext
25173 cat >>conftest.
$ac_ext <<_ACEOF
25174 /* end confdefs.h. */
25176 /* Override any GCC internal prototype to avoid an error.
25177 Use char because int might match the return type of a GCC
25178 builtin and then its argument prototype would still apply. */
25182 char speex_encode ();
25186 return speex_encode ();
25191 rm -f conftest.
$ac_objext conftest
$ac_exeext
25192 if { (ac_try
="$ac_link"
25193 case "(($ac_try" in
25194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25195 *) ac_try_echo=$ac_try;;
25197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198 (eval "$ac_link") 2>conftest.er1
25200 grep -v '^ *+' conftest.er1 >conftest.err
25202 cat conftest.err >&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); } && {
25205 test -z "$ac_c_werror_flag" ||
25206 test ! -s conftest.err
25207 } && test -s conftest$ac_exeext &&
25208 $as_test_x conftest$ac_exeext; then
25209 ac_cv_lib_speex_speex_encode=yes
25211 echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.$ac_ext >&5
25214 ac_cv_lib_speex_speex_encode=no
25217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25218 conftest$ac_exeext conftest.$ac_ext
25219 LIBS=$ac_check_lib_save_LIBS
25221 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
25222 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
25223 if test $ac_cv_lib_speex_speex_encode = yes; then
25224 AST_SPEEX_FOUND=yes
25230 if test "${AST_SPEEX_FOUND}" = "yes"; then
25231 SPEEX_LIB="-lspeex -lm"
25232 SPEEX_HEADER_FOUND="1"
25233 if test "x${SPEEX_DIR}" != "x"; then
25234 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
25235 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
25236 saved_cppflags="${CPPFLAGS}"
25237 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
25238 if test "xspeex/speex.h" != "x" ; then
25239 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" |
$as_tr_sh`
25240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25241 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
25242 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
25243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25244 echo $ECHO_N "(cached) $ECHO_C" >&6
25246 ac_res=`eval echo '${'$as_ac_Header'}'`
25247 { echo "$as_me:$LINENO: result: $ac_res" >&5
25248 echo "${ECHO_T}$ac_res" >&6; }
25250 # Is the header compilable?
25251 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
25252 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
25253 cat >conftest.$ac_ext <<_ACEOF
25256 cat confdefs.h >>conftest.$ac_ext
25257 cat >>conftest.$ac_ext <<_ACEOF
25258 /* end confdefs.h. */
25259 $ac_includes_default
25260 #include <${SPEEX_DIR}/include/speex/speex.h>
25262 rm -f conftest.$ac_objext
25263 if { (ac_try="$ac_compile"
25264 case "(($ac_try" in
25265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25266 *) ac_try_echo
=$ac_try;;
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269 (eval "$ac_compile") 2>conftest.er1
25271 grep -v '^ *+' conftest.er1
>conftest.err
25273 cat conftest.err
>&5
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); } && {
25276 test -z "$ac_c_werror_flag" ||
25277 test ! -s conftest.err
25278 } && test -s conftest.
$ac_objext; then
25279 ac_header_compiler
=yes
25281 echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.
$ac_ext >&5
25284 ac_header_compiler
=no
25287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25289 echo "${ECHO_T}$ac_header_compiler" >&6; }
25291 # Is the header present?
25292 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
25293 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
25294 cat >conftest.
$ac_ext <<_ACEOF
25297 cat confdefs.h
>>conftest.
$ac_ext
25298 cat >>conftest.
$ac_ext <<_ACEOF
25299 /* end confdefs.h. */
25300 #include <${SPEEX_DIR}/include/speex/speex.h>
25302 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25303 case "(($ac_try" in
25304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25305 *) ac_try_echo=$ac_try;;
25307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25310 grep -v '^ *+' conftest.er1 >conftest.err
25312 cat conftest.err >&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } >/dev/null && {
25315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25316 test ! -s conftest.err
25318 ac_header_preproc=yes
25320 echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25323 ac_header_preproc=no
25326 rm -f conftest.err conftest.$ac_ext
25327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25328 echo "${ECHO_T}$ac_header_preproc" >&6; }
25330 # So? What about this header?
25331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25333 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25334 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25335 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
25336 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
25337 ac_header_preproc=yes
25340 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
25341 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
25342 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
25343 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
25344 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
25345 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
25346 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
25347 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25348 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
25349 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
25350 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
25351 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
25355 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
25356 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
25357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25358 echo $ECHO_N "(cached) $ECHO_C" >&6
25360 eval "$as_ac_Header=\$ac_header_preproc"
25362 ac_res=`eval echo '${'$as_ac_Header'}'`
25363 { echo "$as_me:$LINENO: result: $ac_res" >&5
25364 echo "${ECHO_T}$ac_res" >&6; }
25367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25368 SPEEX_HEADER_FOUND=1
25370 SPEEX_HEADER_FOUND=0
25375 CPPFLAGS="${saved_cppflags}"
25377 if test "xspeex/speex.h" != "x" ; then
25378 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25379 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
25380 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
25381 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25384 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
25385 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
25387 # Is the header compilable?
25388 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
25389 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
25390 cat >conftest.$ac_ext <<_ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h. */
25396 $ac_includes_default
25397 #include <speex/speex.h>
25399 rm -f conftest.$ac_objext
25400 if { (ac_try="$ac_compile"
25401 case "(($ac_try" in
25402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25403 *) ac_try_echo
=$ac_try;;
25405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25406 (eval "$ac_compile") 2>conftest.er1
25408 grep -v '^ *+' conftest.er1
>conftest.err
25410 cat conftest.err
>&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); } && {
25413 test -z "$ac_c_werror_flag" ||
25414 test ! -s conftest.err
25415 } && test -s conftest.
$ac_objext; then
25416 ac_header_compiler
=yes
25418 echo "$as_me: failed program was:" >&5
25419 sed 's/^/| /' conftest.
$ac_ext >&5
25421 ac_header_compiler
=no
25424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25426 echo "${ECHO_T}$ac_header_compiler" >&6; }
25428 # Is the header present?
25429 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
25430 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
25431 cat >conftest.
$ac_ext <<_ACEOF
25434 cat confdefs.h
>>conftest.
$ac_ext
25435 cat >>conftest.
$ac_ext <<_ACEOF
25436 /* end confdefs.h. */
25437 #include <speex/speex.h>
25439 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25440 case "(($ac_try" in
25441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25442 *) ac_try_echo=$ac_try;;
25444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25447 grep -v '^ *+' conftest.er1 >conftest.err
25449 cat conftest.err >&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } >/dev/null && {
25452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25453 test ! -s conftest.err
25455 ac_header_preproc=yes
25457 echo "$as_me: failed program was:" >&5
25458 sed 's/^/| /' conftest.$ac_ext >&5
25460 ac_header_preproc=no
25463 rm -f conftest.err conftest.$ac_ext
25464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25465 echo "${ECHO_T}$ac_header_preproc" >&6; }
25467 # So? What about this header?
25468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25470 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25471 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25472 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
25473 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
25474 ac_header_preproc=yes
25477 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
25478 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
25479 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
25480 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
25481 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
25482 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
25483 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
25484 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25485 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
25486 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
25487 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
25488 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
25492 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
25493 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
25494 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25495 echo $ECHO_N "(cached) $ECHO_C" >&6
25497 ac_cv_header_speex_speex_h=$ac_header_preproc
25499 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
25500 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
25503 if test $ac_cv_header_speex_speex_h = yes; then
25504 SPEEX_HEADER_FOUND=1
25506 SPEEX_HEADER_FOUND=0
25512 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
25513 if test ! -z "${SPEEX_MANDATORY}" ;
25515 { echo "$as_me:$LINENO: ***" >&5
25516 echo "$as_me: ***" >&6;}
25517 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
25518 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
25519 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
25520 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
25521 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25522 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25531 cat >>confdefs.h <<_ACEOF
25532 #define HAVE_SPEEX 1
25536 elif test ! -z "${SPEEX_MANDATORY}";
25538 { echo "$as_me:$LINENO: ***" >&5
25539 echo "$as_me: ***" >&6;}
25540 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
25541 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
25542 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25543 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25544 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25545 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25552 if test "${USE_SQLITE}" != "no"; then
25554 if test "x${SQLITE_DIR}" != "x"; then
25555 if test -d ${SQLITE_DIR}/lib; then
25556 pbxlibdir="-L${SQLITE_DIR}/lib"
25558 pbxlibdir="-L${SQLITE_DIR}"
25561 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
25562 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
25563 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
25564 echo $ECHO_N "(cached) $ECHO_C" >&6
25566 ac_check_lib_save_LIBS=$LIBS
25567 LIBS="-lsqlite ${pbxlibdir} $LIBS"
25568 cat >conftest.$ac_ext <<_ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25575 /* Override any GCC internal prototype to avoid an error.
25576 Use char because int might match the return type of a GCC
25577 builtin and then its argument prototype would still apply. */
25581 char sqlite_exec ();
25585 return sqlite_exec ();
25590 rm -f conftest.$ac_objext conftest$ac_exeext
25591 if { (ac_try="$ac_link"
25592 case "(($ac_try" in
25593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25594 *) ac_try_echo
=$ac_try;;
25596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25597 (eval "$ac_link") 2>conftest.er1
25599 grep -v '^ *+' conftest.er1
>conftest.err
25601 cat conftest.err
>&5
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); } && {
25604 test -z "$ac_c_werror_flag" ||
25605 test ! -s conftest.err
25606 } && test -s conftest
$ac_exeext &&
25607 $as_test_x conftest
$ac_exeext; then
25608 ac_cv_lib_sqlite_sqlite_exec
=yes
25610 echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.
$ac_ext >&5
25613 ac_cv_lib_sqlite_sqlite_exec
=no
25616 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25617 conftest
$ac_exeext conftest.
$ac_ext
25618 LIBS
=$ac_check_lib_save_LIBS
25620 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
25621 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
25622 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
25623 AST_SQLITE_FOUND
=yes
25625 AST_SQLITE_FOUND
=no
25629 if test "${AST_SQLITE_FOUND}" = "yes"; then
25630 SQLITE_LIB
="-lsqlite "
25631 SQLITE_HEADER_FOUND
="1"
25632 if test "x${SQLITE_DIR}" != "x"; then
25633 SQLITE_LIB
="${pbxlibdir} ${SQLITE_LIB}"
25634 SQLITE_INCLUDE
="-I${SQLITE_DIR}/include"
25635 saved_cppflags
="${CPPFLAGS}"
25636 CPPFLAGS
="${CPPFLAGS} -I${SQLITE_DIR}/include"
25637 if test "xsqlite.h" != "x" ; then
25638 as_ac_Header
=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
25639 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25640 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25641 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25642 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25643 echo $ECHO_N "(cached) $ECHO_C" >&6
25645 ac_res
=`eval echo '${'$as_ac_Header'}'`
25646 { echo "$as_me:$LINENO: result: $ac_res" >&5
25647 echo "${ECHO_T}$ac_res" >&6; }
25649 # Is the header compilable?
25650 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
25651 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
25652 cat >conftest.
$ac_ext <<_ACEOF
25655 cat confdefs.h
>>conftest.
$ac_ext
25656 cat >>conftest.
$ac_ext <<_ACEOF
25657 /* end confdefs.h. */
25658 $ac_includes_default
25659 #include <${SQLITE_DIR}/include/sqlite.h>
25661 rm -f conftest.
$ac_objext
25662 if { (ac_try
="$ac_compile"
25663 case "(($ac_try" in
25664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25665 *) ac_try_echo=$ac_try;;
25667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25668 (eval "$ac_compile") 2>conftest.er1
25670 grep -v '^ *+' conftest.er1 >conftest.err
25672 cat conftest.err >&5
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); } && {
25675 test -z "$ac_c_werror_flag" ||
25676 test ! -s conftest.err
25677 } && test -s conftest.$ac_objext; then
25678 ac_header_compiler=yes
25680 echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25683 ac_header_compiler=no
25686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25688 echo "${ECHO_T}$ac_header_compiler" >&6; }
25690 # Is the header present?
25691 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
25692 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
25693 cat >conftest.$ac_ext <<_ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h. */
25699 #include <${SQLITE_DIR}/include/sqlite.h>
25701 if { (ac_try="$ac_cpp conftest.$ac_ext"
25702 case "(($ac_try" in
25703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25704 *) ac_try_echo
=$ac_try;;
25706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25709 grep -v '^ *+' conftest.er1
>conftest.err
25711 cat conftest.err
>&5
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); } >/dev
/null
&& {
25714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25715 test ! -s conftest.err
25717 ac_header_preproc
=yes
25719 echo "$as_me: failed program was:" >&5
25720 sed 's/^/| /' conftest.
$ac_ext >&5
25722 ac_header_preproc
=no
25725 rm -f conftest.err conftest.
$ac_ext
25726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25727 echo "${ECHO_T}$ac_header_preproc" >&6; }
25729 # So? What about this header?
25730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25732 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25733 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25734 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
25735 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
25736 ac_header_preproc
=yes
25739 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
25740 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
25741 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
25742 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
25743 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
25744 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
25745 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25746 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25747 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
25748 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
25749 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
25750 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
25754 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25755 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25756 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25757 echo $ECHO_N "(cached) $ECHO_C" >&6
25759 eval "$as_ac_Header=\$ac_header_preproc"
25761 ac_res
=`eval echo '${'$as_ac_Header'}'`
25762 { echo "$as_me:$LINENO: result: $ac_res" >&5
25763 echo "${ECHO_T}$ac_res" >&6; }
25766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25767 SQLITE_HEADER_FOUND
=1
25769 SQLITE_HEADER_FOUND
=0
25774 CPPFLAGS
="${saved_cppflags}"
25776 if test "xsqlite.h" != "x" ; then
25777 if test "${ac_cv_header_sqlite_h+set}" = set; then
25778 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25779 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25780 if test "${ac_cv_header_sqlite_h+set}" = set; then
25781 echo $ECHO_N "(cached) $ECHO_C" >&6
25783 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25784 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25786 # Is the header compilable?
25787 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
25788 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
25789 cat >conftest.
$ac_ext <<_ACEOF
25792 cat confdefs.h
>>conftest.
$ac_ext
25793 cat >>conftest.
$ac_ext <<_ACEOF
25794 /* end confdefs.h. */
25795 $ac_includes_default
25796 #include <sqlite.h>
25798 rm -f conftest.
$ac_objext
25799 if { (ac_try
="$ac_compile"
25800 case "(($ac_try" in
25801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25802 *) ac_try_echo=$ac_try;;
25804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805 (eval "$ac_compile") 2>conftest.er1
25807 grep -v '^ *+' conftest.er1 >conftest.err
25809 cat conftest.err >&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } && {
25812 test -z "$ac_c_werror_flag" ||
25813 test ! -s conftest.err
25814 } && test -s conftest.$ac_objext; then
25815 ac_header_compiler=yes
25817 echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25820 ac_header_compiler=no
25823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25825 echo "${ECHO_T}$ac_header_compiler" >&6; }
25827 # Is the header present?
25828 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
25829 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
25830 cat >conftest.$ac_ext <<_ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h. */
25836 #include <sqlite.h>
25838 if { (ac_try="$ac_cpp conftest.$ac_ext"
25839 case "(($ac_try" in
25840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25841 *) ac_try_echo
=$ac_try;;
25843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25846 grep -v '^ *+' conftest.er1
>conftest.err
25848 cat conftest.err
>&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); } >/dev
/null
&& {
25851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25852 test ! -s conftest.err
25854 ac_header_preproc
=yes
25856 echo "$as_me: failed program was:" >&5
25857 sed 's/^/| /' conftest.
$ac_ext >&5
25859 ac_header_preproc
=no
25862 rm -f conftest.err conftest.
$ac_ext
25863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25864 echo "${ECHO_T}$ac_header_preproc" >&6; }
25866 # So? What about this header?
25867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25869 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25870 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25871 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
25872 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
25873 ac_header_preproc
=yes
25876 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
25877 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
25878 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
25879 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
25880 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
25881 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
25882 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25883 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25884 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
25885 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
25886 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
25887 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
25891 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25892 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25893 if test "${ac_cv_header_sqlite_h+set}" = set; then
25894 echo $ECHO_N "(cached) $ECHO_C" >&6
25896 ac_cv_header_sqlite_h
=$ac_header_preproc
25898 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25899 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25902 if test $ac_cv_header_sqlite_h = yes; then
25903 SQLITE_HEADER_FOUND
=1
25905 SQLITE_HEADER_FOUND
=0
25911 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
25912 if test ! -z "${SQLITE_MANDATORY}" ;
25914 { echo "$as_me:$LINENO: ***" >&5
25915 echo "$as_me: ***" >&6;}
25916 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
25917 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
25918 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
25919 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
25920 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25921 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25930 cat >>confdefs.h
<<_ACEOF
25931 #define HAVE_SQLITE 1
25935 elif test ! -z "${SQLITE_MANDATORY}";
25937 { echo "$as_me:$LINENO: ***" >&5
25938 echo "$as_me: ***" >&6;}
25939 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
25940 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
25941 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25942 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25943 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25944 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25951 if test "${USE_OPENSSL}" != "no"; then
25953 if test "x${OPENSSL_DIR}" != "x"; then
25954 if test -d ${OPENSSL_DIR}/lib
; then
25955 pbxlibdir
="-L${OPENSSL_DIR}/lib"
25957 pbxlibdir
="-L${OPENSSL_DIR}"
25960 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
25961 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
25962 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
25963 echo $ECHO_N "(cached) $ECHO_C" >&6
25965 ac_check_lib_save_LIBS
=$LIBS
25966 LIBS
="-lssl ${pbxlibdir} -lcrypto $LIBS"
25967 cat >conftest.
$ac_ext <<_ACEOF
25970 cat confdefs.h
>>conftest.
$ac_ext
25971 cat >>conftest.
$ac_ext <<_ACEOF
25972 /* end confdefs.h. */
25974 /* Override any GCC internal prototype to avoid an error.
25975 Use char because int might match the return type of a GCC
25976 builtin and then its argument prototype would still apply. */
25980 char ssl2_connect ();
25984 return ssl2_connect ();
25989 rm -f conftest.
$ac_objext conftest
$ac_exeext
25990 if { (ac_try
="$ac_link"
25991 case "(($ac_try" in
25992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25993 *) ac_try_echo=$ac_try;;
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996 (eval "$ac_link") 2>conftest.er1
25998 grep -v '^ *+' conftest.er1 >conftest.err
26000 cat conftest.err >&5
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); } && {
26003 test -z "$ac_c_werror_flag" ||
26004 test ! -s conftest.err
26005 } && test -s conftest$ac_exeext &&
26006 $as_test_x conftest$ac_exeext; then
26007 ac_cv_lib_ssl_ssl2_connect=yes
26009 echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26012 ac_cv_lib_ssl_ssl2_connect=no
26015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26016 conftest$ac_exeext conftest.$ac_ext
26017 LIBS=$ac_check_lib_save_LIBS
26019 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
26020 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
26021 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
26022 AST_OPENSSL_FOUND=yes
26024 AST_OPENSSL_FOUND=no
26028 if test "${AST_OPENSSL_FOUND}" = "yes"; then
26029 OPENSSL_LIB="-lssl -lcrypto"
26030 OPENSSL_HEADER_FOUND="1"
26031 if test "x${OPENSSL_DIR}" != "x"; then
26032 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
26033 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
26034 saved_cppflags="${CPPFLAGS}"
26035 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
26036 if test "xopenssl/ssl.h" != "x" ; then
26037 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" |
$as_tr_sh`
26038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26039 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26040 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26042 echo $ECHO_N "(cached) $ECHO_C" >&6
26044 ac_res=`eval echo '${'$as_ac_Header'}'`
26045 { echo "$as_me:$LINENO: result: $ac_res" >&5
26046 echo "${ECHO_T}$ac_res" >&6; }
26048 # Is the header compilable?
26049 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
26050 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
26051 cat >conftest.$ac_ext <<_ACEOF
26054 cat confdefs.h >>conftest.$ac_ext
26055 cat >>conftest.$ac_ext <<_ACEOF
26056 /* end confdefs.h. */
26057 $ac_includes_default
26058 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
26060 rm -f conftest.$ac_objext
26061 if { (ac_try="$ac_compile"
26062 case "(($ac_try" in
26063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26064 *) ac_try_echo
=$ac_try;;
26066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26067 (eval "$ac_compile") 2>conftest.er1
26069 grep -v '^ *+' conftest.er1
>conftest.err
26071 cat conftest.err
>&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } && {
26074 test -z "$ac_c_werror_flag" ||
26075 test ! -s conftest.err
26076 } && test -s conftest.
$ac_objext; then
26077 ac_header_compiler
=yes
26079 echo "$as_me: failed program was:" >&5
26080 sed 's/^/| /' conftest.
$ac_ext >&5
26082 ac_header_compiler
=no
26085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26087 echo "${ECHO_T}$ac_header_compiler" >&6; }
26089 # Is the header present?
26090 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
26091 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
26092 cat >conftest.
$ac_ext <<_ACEOF
26095 cat confdefs.h
>>conftest.
$ac_ext
26096 cat >>conftest.
$ac_ext <<_ACEOF
26097 /* end confdefs.h. */
26098 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
26100 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26101 case "(($ac_try" in
26102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26103 *) ac_try_echo=$ac_try;;
26105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26108 grep -v '^ *+' conftest.er1 >conftest.err
26110 cat conftest.err >&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } >/dev/null && {
26113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26114 test ! -s conftest.err
26116 ac_header_preproc=yes
26118 echo "$as_me: failed program was:" >&5
26119 sed 's/^/| /' conftest.$ac_ext >&5
26121 ac_header_preproc=no
26124 rm -f conftest.err conftest.$ac_ext
26125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26126 echo "${ECHO_T}$ac_header_preproc" >&6; }
26128 # So? What about this header?
26129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26131 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26132 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26133 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
26134 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
26135 ac_header_preproc=yes
26138 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
26139 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
26140 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
26141 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
26142 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
26143 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
26144 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
26145 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26146 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
26147 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
26148 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
26149 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
26153 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26154 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26156 echo $ECHO_N "(cached) $ECHO_C" >&6
26158 eval "$as_ac_Header=\$ac_header_preproc"
26160 ac_res=`eval echo '${'$as_ac_Header'}'`
26161 { echo "$as_me:$LINENO: result: $ac_res" >&5
26162 echo "${ECHO_T}$ac_res" >&6; }
26165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26166 OPENSSL_HEADER_FOUND=1
26168 OPENSSL_HEADER_FOUND=0
26173 CPPFLAGS="${saved_cppflags}"
26175 if test "xopenssl/ssl.h" != "x" ; then
26176 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26177 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
26178 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
26179 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26180 echo $ECHO_N "(cached) $ECHO_C" >&6
26182 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
26183 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
26185 # Is the header compilable?
26186 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
26187 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
26188 cat >conftest.$ac_ext <<_ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h. */
26194 $ac_includes_default
26195 #include <openssl/ssl.h>
26197 rm -f conftest.$ac_objext
26198 if { (ac_try="$ac_compile"
26199 case "(($ac_try" in
26200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26201 *) ac_try_echo
=$ac_try;;
26203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26204 (eval "$ac_compile") 2>conftest.er1
26206 grep -v '^ *+' conftest.er1
>conftest.err
26208 cat conftest.err
>&5
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } && {
26211 test -z "$ac_c_werror_flag" ||
26212 test ! -s conftest.err
26213 } && test -s conftest.
$ac_objext; then
26214 ac_header_compiler
=yes
26216 echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.
$ac_ext >&5
26219 ac_header_compiler
=no
26222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26224 echo "${ECHO_T}$ac_header_compiler" >&6; }
26226 # Is the header present?
26227 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
26228 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
26229 cat >conftest.
$ac_ext <<_ACEOF
26232 cat confdefs.h
>>conftest.
$ac_ext
26233 cat >>conftest.
$ac_ext <<_ACEOF
26234 /* end confdefs.h. */
26235 #include <openssl/ssl.h>
26237 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26238 case "(($ac_try" in
26239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26240 *) ac_try_echo=$ac_try;;
26242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26245 grep -v '^ *+' conftest.er1 >conftest.err
26247 cat conftest.err >&5
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); } >/dev/null && {
26250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26251 test ! -s conftest.err
26253 ac_header_preproc=yes
26255 echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26258 ac_header_preproc=no
26261 rm -f conftest.err conftest.$ac_ext
26262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26263 echo "${ECHO_T}$ac_header_preproc" >&6; }
26265 # So? What about this header?
26266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26268 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26269 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26270 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
26271 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
26272 ac_header_preproc=yes
26275 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
26276 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
26277 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
26278 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
26279 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
26280 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
26281 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
26282 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26283 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
26284 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
26285 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
26286 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
26290 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
26291 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
26292 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26293 echo $ECHO_N "(cached) $ECHO_C" >&6
26295 ac_cv_header_openssl_ssl_h=$ac_header_preproc
26297 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
26298 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
26301 if test $ac_cv_header_openssl_ssl_h = yes; then
26302 OPENSSL_HEADER_FOUND=1
26304 OPENSSL_HEADER_FOUND=0
26310 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
26311 if test ! -z "${OPENSSL_MANDATORY}" ;
26313 { echo "$as_me:$LINENO: ***" >&5
26314 echo "$as_me: ***" >&6;}
26315 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
26316 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
26317 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
26318 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
26319 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
26320 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
26329 cat >>confdefs.h <<_ACEOF
26330 #define HAVE_OPENSSL 1
26334 elif test ! -z "${OPENSSL_MANDATORY}";
26336 { echo "$as_me:$LINENO: ***" >&5
26337 echo "$as_me: ***" >&6;}
26338 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
26339 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
26340 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26341 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26342 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
26343 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
26350 if test "${USE_FREETDS}" != "no"; then
26352 if test "x${FREETDS_DIR}" != "x"; then
26353 if test -d ${FREETDS_DIR}/lib; then
26354 pbxlibdir="-L${FREETDS_DIR}/lib"
26356 pbxlibdir="-L${FREETDS_DIR}"
26359 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
26360 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
26361 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 ac_check_lib_save_LIBS=$LIBS
26365 LIBS="-ltds ${pbxlibdir} $LIBS"
26366 cat >conftest.$ac_ext <<_ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h. */
26373 /* Override any GCC internal prototype to avoid an error.
26374 Use char because int might match the return type of a GCC
26375 builtin and then its argument prototype would still apply. */
26379 char tds_version ();
26383 return tds_version ();
26388 rm -f conftest.$ac_objext conftest$ac_exeext
26389 if { (ac_try="$ac_link"
26390 case "(($ac_try" in
26391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26392 *) ac_try_echo
=$ac_try;;
26394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26395 (eval "$ac_link") 2>conftest.er1
26397 grep -v '^ *+' conftest.er1
>conftest.err
26399 cat conftest.err
>&5
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); } && {
26402 test -z "$ac_c_werror_flag" ||
26403 test ! -s conftest.err
26404 } && test -s conftest
$ac_exeext &&
26405 $as_test_x conftest
$ac_exeext; then
26406 ac_cv_lib_tds_tds_version
=yes
26408 echo "$as_me: failed program was:" >&5
26409 sed 's/^/| /' conftest.
$ac_ext >&5
26411 ac_cv_lib_tds_tds_version
=no
26414 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26415 conftest
$ac_exeext conftest.
$ac_ext
26416 LIBS
=$ac_check_lib_save_LIBS
26418 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
26419 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
26420 if test $ac_cv_lib_tds_tds_version = yes; then
26421 AST_FREETDS_FOUND
=yes
26423 AST_FREETDS_FOUND
=no
26427 if test "${AST_FREETDS_FOUND}" = "yes"; then
26428 FREETDS_LIB
="-ltds "
26429 FREETDS_HEADER_FOUND
="1"
26430 if test "x${FREETDS_DIR}" != "x"; then
26431 FREETDS_LIB
="${pbxlibdir} ${FREETDS_LIB}"
26432 FREETDS_INCLUDE
="-I${FREETDS_DIR}/include"
26433 saved_cppflags
="${CPPFLAGS}"
26434 CPPFLAGS
="${CPPFLAGS} -I${FREETDS_DIR}/include"
26435 if test "xtds.h" != "x" ; then
26436 as_ac_Header
=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
26437 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26438 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
26439 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
26440 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26443 ac_res
=`eval echo '${'$as_ac_Header'}'`
26444 { echo "$as_me:$LINENO: result: $ac_res" >&5
26445 echo "${ECHO_T}$ac_res" >&6; }
26447 # Is the header compilable?
26448 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
26449 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
26450 cat >conftest.
$ac_ext <<_ACEOF
26453 cat confdefs.h
>>conftest.
$ac_ext
26454 cat >>conftest.
$ac_ext <<_ACEOF
26455 /* end confdefs.h. */
26456 $ac_includes_default
26457 #include <${FREETDS_DIR}/include/tds.h>
26459 rm -f conftest.
$ac_objext
26460 if { (ac_try
="$ac_compile"
26461 case "(($ac_try" in
26462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26463 *) ac_try_echo=$ac_try;;
26465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26466 (eval "$ac_compile") 2>conftest.er1
26468 grep -v '^ *+' conftest.er1 >conftest.err
26470 cat conftest.err >&5
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); } && {
26473 test -z "$ac_c_werror_flag" ||
26474 test ! -s conftest.err
26475 } && test -s conftest.$ac_objext; then
26476 ac_header_compiler=yes
26478 echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26481 ac_header_compiler=no
26484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26486 echo "${ECHO_T}$ac_header_compiler" >&6; }
26488 # Is the header present?
26489 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
26490 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
26491 cat >conftest.$ac_ext <<_ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h. */
26497 #include <${FREETDS_DIR}/include/tds.h>
26499 if { (ac_try="$ac_cpp conftest.$ac_ext"
26500 case "(($ac_try" in
26501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26502 *) ac_try_echo
=$ac_try;;
26504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26507 grep -v '^ *+' conftest.er1
>conftest.err
26509 cat conftest.err
>&5
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); } >/dev
/null
&& {
26512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26513 test ! -s conftest.err
26515 ac_header_preproc
=yes
26517 echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.
$ac_ext >&5
26520 ac_header_preproc
=no
26523 rm -f conftest.err conftest.
$ac_ext
26524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26525 echo "${ECHO_T}$ac_header_preproc" >&6; }
26527 # So? What about this header?
26528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26530 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26531 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26532 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
26533 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
26534 ac_header_preproc
=yes
26537 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
26538 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
26539 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
26540 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
26541 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
26542 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
26543 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
26544 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26545 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
26546 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
26547 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
26548 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
26552 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
26553 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
26554 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26555 echo $ECHO_N "(cached) $ECHO_C" >&6
26557 eval "$as_ac_Header=\$ac_header_preproc"
26559 ac_res
=`eval echo '${'$as_ac_Header'}'`
26560 { echo "$as_me:$LINENO: result: $ac_res" >&5
26561 echo "${ECHO_T}$ac_res" >&6; }
26564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26565 FREETDS_HEADER_FOUND
=1
26567 FREETDS_HEADER_FOUND
=0
26572 CPPFLAGS
="${saved_cppflags}"
26574 if test "xtds.h" != "x" ; then
26575 if test "${ac_cv_header_tds_h+set}" = set; then
26576 { echo "$as_me:$LINENO: checking for tds.h" >&5
26577 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26578 if test "${ac_cv_header_tds_h+set}" = set; then
26579 echo $ECHO_N "(cached) $ECHO_C" >&6
26581 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26582 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26584 # Is the header compilable?
26585 { echo "$as_me:$LINENO: checking tds.h usability" >&5
26586 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
26587 cat >conftest.
$ac_ext <<_ACEOF
26590 cat confdefs.h
>>conftest.
$ac_ext
26591 cat >>conftest.
$ac_ext <<_ACEOF
26592 /* end confdefs.h. */
26593 $ac_includes_default
26596 rm -f conftest.
$ac_objext
26597 if { (ac_try
="$ac_compile"
26598 case "(($ac_try" in
26599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26600 *) ac_try_echo=$ac_try;;
26602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26603 (eval "$ac_compile") 2>conftest.er1
26605 grep -v '^ *+' conftest.er1 >conftest.err
26607 cat conftest.err >&5
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); } && {
26610 test -z "$ac_c_werror_flag" ||
26611 test ! -s conftest.err
26612 } && test -s conftest.$ac_objext; then
26613 ac_header_compiler=yes
26615 echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26618 ac_header_compiler=no
26621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26623 echo "${ECHO_T}$ac_header_compiler" >&6; }
26625 # Is the header present?
26626 { echo "$as_me:$LINENO: checking tds.h presence" >&5
26627 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
26628 cat >conftest.$ac_ext <<_ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h. */
26636 if { (ac_try="$ac_cpp conftest.$ac_ext"
26637 case "(($ac_try" in
26638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26639 *) ac_try_echo
=$ac_try;;
26641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26644 grep -v '^ *+' conftest.er1
>conftest.err
26646 cat conftest.err
>&5
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); } >/dev
/null
&& {
26649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26650 test ! -s conftest.err
26652 ac_header_preproc
=yes
26654 echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.
$ac_ext >&5
26657 ac_header_preproc
=no
26660 rm -f conftest.err conftest.
$ac_ext
26661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26662 echo "${ECHO_T}$ac_header_preproc" >&6; }
26664 # So? What about this header?
26665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26667 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26668 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26669 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
26670 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
26671 ac_header_preproc
=yes
26674 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
26675 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
26676 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
26677 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
26678 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
26679 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
26680 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
26681 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26682 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
26683 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
26684 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
26685 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
26689 { echo "$as_me:$LINENO: checking for tds.h" >&5
26690 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26691 if test "${ac_cv_header_tds_h+set}" = set; then
26692 echo $ECHO_N "(cached) $ECHO_C" >&6
26694 ac_cv_header_tds_h
=$ac_header_preproc
26696 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26697 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26700 if test $ac_cv_header_tds_h = yes; then
26701 FREETDS_HEADER_FOUND
=1
26703 FREETDS_HEADER_FOUND
=0
26709 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
26710 if test ! -z "${FREETDS_MANDATORY}" ;
26712 { echo "$as_me:$LINENO: ***" >&5
26713 echo "$as_me: ***" >&6;}
26714 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
26715 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
26716 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
26717 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
26718 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26719 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26728 cat >>confdefs.h
<<_ACEOF
26729 #define HAVE_FREETDS 1
26733 elif test ! -z "${FREETDS_MANDATORY}";
26735 { echo "$as_me:$LINENO: ***" >&5
26736 echo "$as_me: ***" >&6;}
26737 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
26738 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
26739 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26740 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26741 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26742 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26747 if test "${PBX_FREETDS}" != "0";
26749 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
26751 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_64"
26754 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_63"
26757 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_62"
26760 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
26766 if test "${USE_TERMCAP}" != "no"; then
26768 if test "x${TERMCAP_DIR}" != "x"; then
26769 if test -d ${TERMCAP_DIR}/lib
; then
26770 pbxlibdir
="-L${TERMCAP_DIR}/lib"
26772 pbxlibdir
="-L${TERMCAP_DIR}"
26775 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26776 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
26777 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26778 echo $ECHO_N "(cached) $ECHO_C" >&6
26780 ac_check_lib_save_LIBS
=$LIBS
26781 LIBS
="-ltermcap ${pbxlibdir} $LIBS"
26782 cat >conftest.
$ac_ext <<_ACEOF
26785 cat confdefs.h
>>conftest.
$ac_ext
26786 cat >>conftest.
$ac_ext <<_ACEOF
26787 /* end confdefs.h. */
26789 /* Override any GCC internal prototype to avoid an error.
26790 Use char because int might match the return type of a GCC
26791 builtin and then its argument prototype would still apply. */
26804 rm -f conftest.
$ac_objext conftest
$ac_exeext
26805 if { (ac_try
="$ac_link"
26806 case "(($ac_try" in
26807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26808 *) ac_try_echo=$ac_try;;
26810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26811 (eval "$ac_link") 2>conftest.er1
26813 grep -v '^ *+' conftest.er1 >conftest.err
26815 cat conftest.err >&5
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); } && {
26818 test -z "$ac_c_werror_flag" ||
26819 test ! -s conftest.err
26820 } && test -s conftest$ac_exeext &&
26821 $as_test_x conftest$ac_exeext; then
26822 ac_cv_lib_termcap_tgetent=yes
26824 echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26827 ac_cv_lib_termcap_tgetent=no
26830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26831 conftest$ac_exeext conftest.$ac_ext
26832 LIBS=$ac_check_lib_save_LIBS
26834 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26835 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
26836 if test $ac_cv_lib_termcap_tgetent = yes; then
26837 AST_TERMCAP_FOUND=yes
26839 AST_TERMCAP_FOUND=no
26843 if test "${AST_TERMCAP_FOUND}" = "yes"; then
26844 TERMCAP_LIB="-ltermcap "
26845 TERMCAP_HEADER_FOUND="1"
26846 if test "x${TERMCAP_DIR}" != "x"; then
26847 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
26848 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
26849 saved_cppflags="${CPPFLAGS}"
26850 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
26851 if test "x" != "x" ; then
26852 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" |
$as_tr_sh`
26853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26854 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26855 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26857 echo $ECHO_N "(cached) $ECHO_C" >&6
26859 ac_res=`eval echo '${'$as_ac_Header'}'`
26860 { echo "$as_me:$LINENO: result: $ac_res" >&5
26861 echo "${ECHO_T}$ac_res" >&6; }
26863 # Is the header compilable?
26864 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
26865 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
26866 cat >conftest.$ac_ext <<_ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h. */
26872 $ac_includes_default
26873 #include <${TERMCAP_DIR}/include/>
26875 rm -f conftest.$ac_objext
26876 if { (ac_try="$ac_compile"
26877 case "(($ac_try" in
26878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26879 *) ac_try_echo
=$ac_try;;
26881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26882 (eval "$ac_compile") 2>conftest.er1
26884 grep -v '^ *+' conftest.er1
>conftest.err
26886 cat conftest.err
>&5
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); } && {
26889 test -z "$ac_c_werror_flag" ||
26890 test ! -s conftest.err
26891 } && test -s conftest.
$ac_objext; then
26892 ac_header_compiler
=yes
26894 echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.
$ac_ext >&5
26897 ac_header_compiler
=no
26900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26902 echo "${ECHO_T}$ac_header_compiler" >&6; }
26904 # Is the header present?
26905 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
26906 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
26907 cat >conftest.
$ac_ext <<_ACEOF
26910 cat confdefs.h
>>conftest.
$ac_ext
26911 cat >>conftest.
$ac_ext <<_ACEOF
26912 /* end confdefs.h. */
26913 #include <${TERMCAP_DIR}/include/>
26915 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26916 case "(($ac_try" in
26917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26918 *) ac_try_echo=$ac_try;;
26920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26923 grep -v '^ *+' conftest.er1 >conftest.err
26925 cat conftest.err >&5
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } >/dev/null && {
26928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26929 test ! -s conftest.err
26931 ac_header_preproc=yes
26933 echo "$as_me: failed program was:" >&5
26934 sed 's/^/| /' conftest.$ac_ext >&5
26936 ac_header_preproc=no
26939 rm -f conftest.err conftest.$ac_ext
26940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26941 echo "${ECHO_T}$ac_header_preproc" >&6; }
26943 # So? What about this header?
26944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26946 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26947 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26948 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
26949 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
26950 ac_header_preproc=yes
26953 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
26954 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
26955 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
26956 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
26957 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
26958 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
26959 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26960 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26961 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
26962 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
26964 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26968 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26969 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26971 echo $ECHO_N "(cached) $ECHO_C" >&6
26973 eval "$as_ac_Header=\$ac_header_preproc"
26975 ac_res=`eval echo '${'$as_ac_Header'}'`
26976 { echo "$as_me:$LINENO: result: $ac_res" >&5
26977 echo "${ECHO_T}$ac_res" >&6; }
26980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26981 TERMCAP_HEADER_FOUND=1
26983 TERMCAP_HEADER_FOUND=0
26988 CPPFLAGS="${saved_cppflags}"
26990 if test "x" != "x" ; then
26991 if test "${ac_cv_header_+set}" = set; then
26992 { echo "$as_me:$LINENO: checking for " >&5
26993 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26994 if test "${ac_cv_header_+set}" = set; then
26995 echo $ECHO_N "(cached) $ECHO_C" >&6
26997 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26998 echo "${ECHO_T}$ac_cv_header_" >&6; }
27000 # Is the header compilable?
27001 { echo "$as_me:$LINENO: checking usability" >&5
27002 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27003 cat >conftest.$ac_ext <<_ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27009 $ac_includes_default
27012 rm -f conftest.$ac_objext
27013 if { (ac_try="$ac_compile"
27014 case "(($ac_try" in
27015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27016 *) ac_try_echo
=$ac_try;;
27018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27019 (eval "$ac_compile") 2>conftest.er1
27021 grep -v '^ *+' conftest.er1
>conftest.err
27023 cat conftest.err
>&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } && {
27026 test -z "$ac_c_werror_flag" ||
27027 test ! -s conftest.err
27028 } && test -s conftest.
$ac_objext; then
27029 ac_header_compiler
=yes
27031 echo "$as_me: failed program was:" >&5
27032 sed 's/^/| /' conftest.
$ac_ext >&5
27034 ac_header_compiler
=no
27037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27039 echo "${ECHO_T}$ac_header_compiler" >&6; }
27041 # Is the header present?
27042 { echo "$as_me:$LINENO: checking presence" >&5
27043 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27044 cat >conftest.
$ac_ext <<_ACEOF
27047 cat confdefs.h
>>conftest.
$ac_ext
27048 cat >>conftest.
$ac_ext <<_ACEOF
27049 /* end confdefs.h. */
27052 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27053 case "(($ac_try" in
27054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27055 *) ac_try_echo=$ac_try;;
27057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27060 grep -v '^ *+' conftest.er1 >conftest.err
27062 cat conftest.err >&5
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } >/dev/null && {
27065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27066 test ! -s conftest.err
27068 ac_header_preproc=yes
27070 echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27073 ac_header_preproc=no
27076 rm -f conftest.err conftest.$ac_ext
27077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27078 echo "${ECHO_T}$ac_header_preproc" >&6; }
27080 # So? What about this header?
27081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27083 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27084 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27085 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27086 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27087 ac_header_preproc=yes
27090 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27091 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27092 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27093 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27094 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27095 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27096 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27097 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27098 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27099 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27100 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27101 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27105 { echo "$as_me:$LINENO: checking for " >&5
27106 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27107 if test "${ac_cv_header_+set}" = set; then
27108 echo $ECHO_N "(cached) $ECHO_C" >&6
27110 ac_cv_header_=$ac_header_preproc
27112 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27113 echo "${ECHO_T}$ac_cv_header_" >&6; }
27116 if test $ac_cv_header_ = yes; then
27117 TERMCAP_HEADER_FOUND=1
27119 TERMCAP_HEADER_FOUND=0
27125 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
27126 if test ! -z "${TERMCAP_MANDATORY}" ;
27128 { echo "$as_me:$LINENO: ***" >&5
27129 echo "$as_me: ***" >&6;}
27130 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
27131 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
27132 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
27133 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
27134 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
27135 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
27144 cat >>confdefs.h <<_ACEOF
27145 #define HAVE_TERMCAP 1
27149 elif test ! -z "${TERMCAP_MANDATORY}";
27151 { echo "$as_me:$LINENO: ***" >&5
27152 echo "$as_me: ***" >&6;}
27153 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
27154 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
27155 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27156 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27157 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
27158 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
27165 if test "${USE_TINFO}" != "no"; then
27167 if test "x${TINFO_DIR}" != "x"; then
27168 if test -d ${TINFO_DIR}/lib; then
27169 pbxlibdir="-L${TINFO_DIR}/lib"
27171 pbxlibdir="-L${TINFO_DIR}"
27174 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
27175 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
27176 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
27177 echo $ECHO_N "(cached) $ECHO_C" >&6
27179 ac_check_lib_save_LIBS=$LIBS
27180 LIBS="-ltinfo ${pbxlibdir} $LIBS"
27181 cat >conftest.$ac_ext <<_ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h. */
27188 /* Override any GCC internal prototype to avoid an error.
27189 Use char because int might match the return type of a GCC
27190 builtin and then its argument prototype would still apply. */
27203 rm -f conftest.$ac_objext conftest$ac_exeext
27204 if { (ac_try="$ac_link"
27205 case "(($ac_try" in
27206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27207 *) ac_try_echo
=$ac_try;;
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210 (eval "$ac_link") 2>conftest.er1
27212 grep -v '^ *+' conftest.er1
>conftest.err
27214 cat conftest.err
>&5
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); } && {
27217 test -z "$ac_c_werror_flag" ||
27218 test ! -s conftest.err
27219 } && test -s conftest
$ac_exeext &&
27220 $as_test_x conftest
$ac_exeext; then
27221 ac_cv_lib_tinfo_tgetent
=yes
27223 echo "$as_me: failed program was:" >&5
27224 sed 's/^/| /' conftest.
$ac_ext >&5
27226 ac_cv_lib_tinfo_tgetent
=no
27229 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27230 conftest
$ac_exeext conftest.
$ac_ext
27231 LIBS
=$ac_check_lib_save_LIBS
27233 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
27234 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
27235 if test $ac_cv_lib_tinfo_tgetent = yes; then
27236 AST_TINFO_FOUND
=yes
27242 if test "${AST_TINFO_FOUND}" = "yes"; then
27243 TINFO_LIB
="-ltinfo "
27244 TINFO_HEADER_FOUND
="1"
27245 if test "x${TINFO_DIR}" != "x"; then
27246 TINFO_LIB
="${pbxlibdir} ${TINFO_LIB}"
27247 TINFO_INCLUDE
="-I${TINFO_DIR}/include"
27248 saved_cppflags
="${CPPFLAGS}"
27249 CPPFLAGS
="${CPPFLAGS} -I${TINFO_DIR}/include"
27250 if test "x" != "x" ; then
27251 as_ac_Header
=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
27252 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27253 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
27254 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
27255 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27256 echo $ECHO_N "(cached) $ECHO_C" >&6
27258 ac_res
=`eval echo '${'$as_ac_Header'}'`
27259 { echo "$as_me:$LINENO: result: $ac_res" >&5
27260 echo "${ECHO_T}$ac_res" >&6; }
27262 # Is the header compilable?
27263 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
27264 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
27265 cat >conftest.
$ac_ext <<_ACEOF
27268 cat confdefs.h
>>conftest.
$ac_ext
27269 cat >>conftest.
$ac_ext <<_ACEOF
27270 /* end confdefs.h. */
27271 $ac_includes_default
27272 #include <${TINFO_DIR}/include/>
27274 rm -f conftest.
$ac_objext
27275 if { (ac_try
="$ac_compile"
27276 case "(($ac_try" in
27277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27278 *) ac_try_echo=$ac_try;;
27280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27281 (eval "$ac_compile") 2>conftest.er1
27283 grep -v '^ *+' conftest.er1 >conftest.err
27285 cat conftest.err >&5
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); } && {
27288 test -z "$ac_c_werror_flag" ||
27289 test ! -s conftest.err
27290 } && test -s conftest.$ac_objext; then
27291 ac_header_compiler=yes
27293 echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27296 ac_header_compiler=no
27299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27301 echo "${ECHO_T}$ac_header_compiler" >&6; }
27303 # Is the header present?
27304 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
27305 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
27306 cat >conftest.$ac_ext <<_ACEOF
27309 cat confdefs.h >>conftest.$ac_ext
27310 cat >>conftest.$ac_ext <<_ACEOF
27311 /* end confdefs.h. */
27312 #include <${TINFO_DIR}/include/>
27314 if { (ac_try="$ac_cpp conftest.$ac_ext"
27315 case "(($ac_try" in
27316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27317 *) ac_try_echo
=$ac_try;;
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27322 grep -v '^ *+' conftest.er1
>conftest.err
27324 cat conftest.err
>&5
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); } >/dev
/null
&& {
27327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27328 test ! -s conftest.err
27330 ac_header_preproc
=yes
27332 echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.
$ac_ext >&5
27335 ac_header_preproc
=no
27338 rm -f conftest.err conftest.
$ac_ext
27339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27340 echo "${ECHO_T}$ac_header_preproc" >&6; }
27342 # So? What about this header?
27343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27345 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
27346 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
27347 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
27348 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
27349 ac_header_preproc
=yes
27352 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
27353 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
27354 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
27355 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
27356 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
27357 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
27358 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
27359 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
27360 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
27361 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
27362 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
27363 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
27367 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
27368 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
27369 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27370 echo $ECHO_N "(cached) $ECHO_C" >&6
27372 eval "$as_ac_Header=\$ac_header_preproc"
27374 ac_res
=`eval echo '${'$as_ac_Header'}'`
27375 { echo "$as_me:$LINENO: result: $ac_res" >&5
27376 echo "${ECHO_T}$ac_res" >&6; }
27379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27380 TINFO_HEADER_FOUND
=1
27382 TINFO_HEADER_FOUND
=0
27387 CPPFLAGS
="${saved_cppflags}"
27389 if test "x" != "x" ; then
27390 if test "${ac_cv_header_+set}" = set; then
27391 { echo "$as_me:$LINENO: checking for " >&5
27392 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27393 if test "${ac_cv_header_+set}" = set; then
27394 echo $ECHO_N "(cached) $ECHO_C" >&6
27396 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27397 echo "${ECHO_T}$ac_cv_header_" >&6; }
27399 # Is the header compilable?
27400 { echo "$as_me:$LINENO: checking usability" >&5
27401 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27402 cat >conftest.
$ac_ext <<_ACEOF
27405 cat confdefs.h
>>conftest.
$ac_ext
27406 cat >>conftest.
$ac_ext <<_ACEOF
27407 /* end confdefs.h. */
27408 $ac_includes_default
27411 rm -f conftest.
$ac_objext
27412 if { (ac_try
="$ac_compile"
27413 case "(($ac_try" in
27414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_compile") 2>conftest.er1
27420 grep -v '^ *+' conftest.er1 >conftest.err
27422 cat conftest.err >&5
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); } && {
27425 test -z "$ac_c_werror_flag" ||
27426 test ! -s conftest.err
27427 } && test -s conftest.$ac_objext; then
27428 ac_header_compiler=yes
27430 echo "$as_me: failed program was:" >&5
27431 sed 's/^/| /' conftest.$ac_ext >&5
27433 ac_header_compiler=no
27436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27438 echo "${ECHO_T}$ac_header_compiler" >&6; }
27440 # Is the header present?
27441 { echo "$as_me:$LINENO: checking presence" >&5
27442 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27443 cat >conftest.$ac_ext <<_ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h. */
27451 if { (ac_try="$ac_cpp conftest.$ac_ext"
27452 case "(($ac_try" in
27453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27454 *) ac_try_echo
=$ac_try;;
27456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27459 grep -v '^ *+' conftest.er1
>conftest.err
27461 cat conftest.err
>&5
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); } >/dev
/null
&& {
27464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27465 test ! -s conftest.err
27467 ac_header_preproc
=yes
27469 echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.
$ac_ext >&5
27472 ac_header_preproc
=no
27475 rm -f conftest.err conftest.
$ac_ext
27476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27477 echo "${ECHO_T}$ac_header_preproc" >&6; }
27479 # So? What about this header?
27480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27482 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27483 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27484 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27485 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27486 ac_header_preproc
=yes
27489 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27490 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27491 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27492 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27493 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27494 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27495 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27496 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27497 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27498 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27499 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27500 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27504 { echo "$as_me:$LINENO: checking for " >&5
27505 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27506 if test "${ac_cv_header_+set}" = set; then
27507 echo $ECHO_N "(cached) $ECHO_C" >&6
27509 ac_cv_header_
=$ac_header_preproc
27511 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27512 echo "${ECHO_T}$ac_cv_header_" >&6; }
27515 if test $ac_cv_header_ = yes; then
27516 TINFO_HEADER_FOUND
=1
27518 TINFO_HEADER_FOUND
=0
27524 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
27525 if test ! -z "${TINFO_MANDATORY}" ;
27527 { echo "$as_me:$LINENO: ***" >&5
27528 echo "$as_me: ***" >&6;}
27529 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
27530 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
27531 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
27532 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
27533 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27534 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27543 cat >>confdefs.h
<<_ACEOF
27544 #define HAVE_TINFO 1
27548 elif test ! -z "${TINFO_MANDATORY}";
27550 { echo "$as_me:$LINENO: ***" >&5
27551 echo "$as_me: ***" >&6;}
27552 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
27553 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
27554 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27555 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27556 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27557 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27563 if test "${host_os}" != "linux-gnu" ; then
27564 tonezone_extra
="-lm"
27568 if test "${USE_TONEZONE}" != "no"; then
27570 if test "x${TONEZONE_DIR}" != "x"; then
27571 if test -d ${TONEZONE_DIR}/lib
; then
27572 pbxlibdir
="-L${TONEZONE_DIR}/lib"
27574 pbxlibdir
="-L${TONEZONE_DIR}"
27577 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
27578 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
27579 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
27580 echo $ECHO_N "(cached) $ECHO_C" >&6
27582 ac_check_lib_save_LIBS
=$LIBS
27583 LIBS
="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
27584 cat >conftest.
$ac_ext <<_ACEOF
27587 cat confdefs.h
>>conftest.
$ac_ext
27588 cat >>conftest.
$ac_ext <<_ACEOF
27589 /* end confdefs.h. */
27591 /* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply. */
27597 char tone_zone_find ();
27601 return tone_zone_find ();
27606 rm -f conftest.
$ac_objext conftest
$ac_exeext
27607 if { (ac_try
="$ac_link"
27608 case "(($ac_try" in
27609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27610 *) ac_try_echo=$ac_try;;
27612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613 (eval "$ac_link") 2>conftest.er1
27615 grep -v '^ *+' conftest.er1 >conftest.err
27617 cat conftest.err >&5
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); } && {
27620 test -z "$ac_c_werror_flag" ||
27621 test ! -s conftest.err
27622 } && test -s conftest$ac_exeext &&
27623 $as_test_x conftest$ac_exeext; then
27624 ac_cv_lib_tonezone_tone_zone_find=yes
27626 echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.$ac_ext >&5
27629 ac_cv_lib_tonezone_tone_zone_find=no
27632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27633 conftest$ac_exeext conftest.$ac_ext
27634 LIBS=$ac_check_lib_save_LIBS
27636 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
27637 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
27638 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
27639 AST_TONEZONE_FOUND=yes
27641 AST_TONEZONE_FOUND=no
27645 if test "${AST_TONEZONE_FOUND}" = "yes"; then
27646 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
27647 TONEZONE_HEADER_FOUND="1"
27648 if test "x${TONEZONE_DIR}" != "x"; then
27649 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
27650 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
27651 saved_cppflags="${CPPFLAGS}"
27652 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
27653 if test "xzaptel/tonezone.h" != "x" ; then
27654 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" |
$as_tr_sh`
27655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27656 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27657 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27659 echo $ECHO_N "(cached) $ECHO_C" >&6
27661 ac_res=`eval echo '${'$as_ac_Header'}'`
27662 { echo "$as_me:$LINENO: result: $ac_res" >&5
27663 echo "${ECHO_T}$ac_res" >&6; }
27665 # Is the header compilable?
27666 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
27667 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
27668 cat >conftest.$ac_ext <<_ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h. */
27674 $ac_includes_default
27675 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27677 rm -f conftest.$ac_objext
27678 if { (ac_try="$ac_compile"
27679 case "(($ac_try" in
27680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27681 *) ac_try_echo
=$ac_try;;
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684 (eval "$ac_compile") 2>conftest.er1
27686 grep -v '^ *+' conftest.er1
>conftest.err
27688 cat conftest.err
>&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); } && {
27691 test -z "$ac_c_werror_flag" ||
27692 test ! -s conftest.err
27693 } && test -s conftest.
$ac_objext; then
27694 ac_header_compiler
=yes
27696 echo "$as_me: failed program was:" >&5
27697 sed 's/^/| /' conftest.
$ac_ext >&5
27699 ac_header_compiler
=no
27702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27704 echo "${ECHO_T}$ac_header_compiler" >&6; }
27706 # Is the header present?
27707 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
27708 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
27709 cat >conftest.
$ac_ext <<_ACEOF
27712 cat confdefs.h
>>conftest.
$ac_ext
27713 cat >>conftest.
$ac_ext <<_ACEOF
27714 /* end confdefs.h. */
27715 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27717 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27718 case "(($ac_try" in
27719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27720 *) ac_try_echo=$ac_try;;
27722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27725 grep -v '^ *+' conftest.er1 >conftest.err
27727 cat conftest.err >&5
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); } >/dev/null && {
27730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27731 test ! -s conftest.err
27733 ac_header_preproc=yes
27735 echo "$as_me: failed program was:" >&5
27736 sed 's/^/| /' conftest.$ac_ext >&5
27738 ac_header_preproc=no
27741 rm -f conftest.err conftest.$ac_ext
27742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27743 echo "${ECHO_T}$ac_header_preproc" >&6; }
27745 # So? What about this header?
27746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27748 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27749 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27750 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
27751 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27752 ac_header_preproc=yes
27755 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
27756 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
27757 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27758 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27759 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
27760 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27761 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27762 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27763 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27764 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27765 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27766 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27770 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27771 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27773 echo $ECHO_N "(cached) $ECHO_C" >&6
27775 eval "$as_ac_Header=\$ac_header_preproc"
27777 ac_res=`eval echo '${'$as_ac_Header'}'`
27778 { echo "$as_me:$LINENO: result: $ac_res" >&5
27779 echo "${ECHO_T}$ac_res" >&6; }
27782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27783 TONEZONE_HEADER_FOUND=1
27785 TONEZONE_HEADER_FOUND=0
27790 CPPFLAGS="${saved_cppflags}"
27792 if test "xzaptel/tonezone.h" != "x" ; then
27793 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27794 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27795 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27796 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27797 echo $ECHO_N "(cached) $ECHO_C" >&6
27799 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27800 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27802 # Is the header compilable?
27803 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
27804 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
27805 cat >conftest.$ac_ext <<_ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h. */
27811 $ac_includes_default
27812 #include <zaptel/tonezone.h>
27814 rm -f conftest.$ac_objext
27815 if { (ac_try="$ac_compile"
27816 case "(($ac_try" in
27817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27818 *) ac_try_echo
=$ac_try;;
27820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27821 (eval "$ac_compile") 2>conftest.er1
27823 grep -v '^ *+' conftest.er1
>conftest.err
27825 cat conftest.err
>&5
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); } && {
27828 test -z "$ac_c_werror_flag" ||
27829 test ! -s conftest.err
27830 } && test -s conftest.
$ac_objext; then
27831 ac_header_compiler
=yes
27833 echo "$as_me: failed program was:" >&5
27834 sed 's/^/| /' conftest.
$ac_ext >&5
27836 ac_header_compiler
=no
27839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27841 echo "${ECHO_T}$ac_header_compiler" >&6; }
27843 # Is the header present?
27844 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
27845 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
27846 cat >conftest.
$ac_ext <<_ACEOF
27849 cat confdefs.h
>>conftest.
$ac_ext
27850 cat >>conftest.
$ac_ext <<_ACEOF
27851 /* end confdefs.h. */
27852 #include <zaptel/tonezone.h>
27854 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27855 case "(($ac_try" in
27856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27862 grep -v '^ *+' conftest.er1 >conftest.err
27864 cat conftest.err >&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); } >/dev/null && {
27867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27868 test ! -s conftest.err
27870 ac_header_preproc=yes
27872 echo "$as_me: failed program was:" >&5
27873 sed 's/^/| /' conftest.$ac_ext >&5
27875 ac_header_preproc=no
27878 rm -f conftest.err conftest.$ac_ext
27879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27880 echo "${ECHO_T}$ac_header_preproc" >&6; }
27882 # So? What about this header?
27883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27885 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27886 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27887 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
27888 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27889 ac_header_preproc=yes
27892 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
27893 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
27894 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27895 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27896 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
27897 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27898 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27899 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27900 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27901 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27902 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27903 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27907 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27908 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27909 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27912 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
27914 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27915 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27918 if test $ac_cv_header_zaptel_tonezone_h = yes; then
27919 TONEZONE_HEADER_FOUND=1
27921 TONEZONE_HEADER_FOUND=0
27927 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
27928 if test ! -z "${TONEZONE_MANDATORY}" ;
27930 { echo "$as_me:$LINENO: ***" >&5
27931 echo "$as_me: ***" >&6;}
27932 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
27933 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
27934 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
27935 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
27936 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27937 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27941 TONEZONE_INCLUDE=""
27946 cat >>confdefs.h <<_ACEOF
27947 #define HAVE_TONEZONE 1
27951 elif test ! -z "${TONEZONE_MANDATORY}";
27953 { echo "$as_me:$LINENO: ***" >&5
27954 echo "$as_me: ***" >&6;}
27955 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
27956 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
27957 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27958 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27959 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27960 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27967 if test "${USE_VORBIS}" != "no"; then
27969 if test "x${VORBIS_DIR}" != "x"; then
27970 if test -d ${VORBIS_DIR}/lib; then
27971 pbxlibdir="-L${VORBIS_DIR}/lib"
27973 pbxlibdir="-L${VORBIS_DIR}"
27976 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
27977 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
27978 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
27979 echo $ECHO_N "(cached) $ECHO_C" >&6
27981 ac_check_lib_save_LIBS=$LIBS
27982 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
27983 cat >conftest.$ac_ext <<_ACEOF
27986 cat confdefs.h >>conftest.$ac_ext
27987 cat >>conftest.$ac_ext <<_ACEOF
27988 /* end confdefs.h. */
27990 /* Override any GCC internal prototype to avoid an error.
27991 Use char because int might match the return type of a GCC
27992 builtin and then its argument prototype would still apply. */
27996 char vorbis_info_init ();
28000 return vorbis_info_init ();
28005 rm -f conftest.$ac_objext conftest$ac_exeext
28006 if { (ac_try="$ac_link"
28007 case "(($ac_try" in
28008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28009 *) ac_try_echo
=$ac_try;;
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_link") 2>conftest.er1
28014 grep -v '^ *+' conftest.er1
>conftest.err
28016 cat conftest.err
>&5
28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); } && {
28019 test -z "$ac_c_werror_flag" ||
28020 test ! -s conftest.err
28021 } && test -s conftest
$ac_exeext &&
28022 $as_test_x conftest
$ac_exeext; then
28023 ac_cv_lib_vorbis_vorbis_info_init
=yes
28025 echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.
$ac_ext >&5
28028 ac_cv_lib_vorbis_vorbis_info_init
=no
28031 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28032 conftest
$ac_exeext conftest.
$ac_ext
28033 LIBS
=$ac_check_lib_save_LIBS
28035 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
28036 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
28037 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
28038 AST_VORBIS_FOUND
=yes
28040 AST_VORBIS_FOUND
=no
28044 if test "${AST_VORBIS_FOUND}" = "yes"; then
28045 VORBIS_LIB
="-lvorbis -lm -lvorbisenc"
28046 VORBIS_HEADER_FOUND
="1"
28047 if test "x${VORBIS_DIR}" != "x"; then
28048 VORBIS_LIB
="${pbxlibdir} ${VORBIS_LIB}"
28049 VORBIS_INCLUDE
="-I${VORBIS_DIR}/include"
28050 saved_cppflags
="${CPPFLAGS}"
28051 CPPFLAGS
="${CPPFLAGS} -I${VORBIS_DIR}/include"
28052 if test "xvorbis/codec.h" != "x" ; then
28053 as_ac_Header
=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
28054 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28055 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
28056 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
28057 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28058 echo $ECHO_N "(cached) $ECHO_C" >&6
28060 ac_res
=`eval echo '${'$as_ac_Header'}'`
28061 { echo "$as_me:$LINENO: result: $ac_res" >&5
28062 echo "${ECHO_T}$ac_res" >&6; }
28064 # Is the header compilable?
28065 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
28066 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
28067 cat >conftest.
$ac_ext <<_ACEOF
28070 cat confdefs.h
>>conftest.
$ac_ext
28071 cat >>conftest.
$ac_ext <<_ACEOF
28072 /* end confdefs.h. */
28073 $ac_includes_default
28074 #include <${VORBIS_DIR}/include/vorbis/codec.h>
28076 rm -f conftest.
$ac_objext
28077 if { (ac_try
="$ac_compile"
28078 case "(($ac_try" in
28079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28083 (eval "$ac_compile") 2>conftest.er1
28085 grep -v '^ *+' conftest.er1 >conftest.err
28087 cat conftest.err >&5
28088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); } && {
28090 test -z "$ac_c_werror_flag" ||
28091 test ! -s conftest.err
28092 } && test -s conftest.$ac_objext; then
28093 ac_header_compiler=yes
28095 echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28098 ac_header_compiler=no
28101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28103 echo "${ECHO_T}$ac_header_compiler" >&6; }
28105 # Is the header present?
28106 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
28107 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
28108 cat >conftest.$ac_ext <<_ACEOF
28111 cat confdefs.h >>conftest.$ac_ext
28112 cat >>conftest.$ac_ext <<_ACEOF
28113 /* end confdefs.h. */
28114 #include <${VORBIS_DIR}/include/vorbis/codec.h>
28116 if { (ac_try="$ac_cpp conftest.$ac_ext"
28117 case "(($ac_try" in
28118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28119 *) ac_try_echo
=$ac_try;;
28121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28124 grep -v '^ *+' conftest.er1
>conftest.err
28126 cat conftest.err
>&5
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); } >/dev
/null
&& {
28129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28130 test ! -s conftest.err
28132 ac_header_preproc
=yes
28134 echo "$as_me: failed program was:" >&5
28135 sed 's/^/| /' conftest.
$ac_ext >&5
28137 ac_header_preproc
=no
28140 rm -f conftest.err conftest.
$ac_ext
28141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28142 echo "${ECHO_T}$ac_header_preproc" >&6; }
28144 # So? What about this header?
28145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28147 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
28148 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28149 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
28150 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
28151 ac_header_preproc
=yes
28154 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
28155 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
28156 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
28157 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
28158 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
28159 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
28160 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
28161 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
28162 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
28163 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
28164 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
28165 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
28169 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
28170 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
28171 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28172 echo $ECHO_N "(cached) $ECHO_C" >&6
28174 eval "$as_ac_Header=\$ac_header_preproc"
28176 ac_res
=`eval echo '${'$as_ac_Header'}'`
28177 { echo "$as_me:$LINENO: result: $ac_res" >&5
28178 echo "${ECHO_T}$ac_res" >&6; }
28181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28182 VORBIS_HEADER_FOUND
=1
28184 VORBIS_HEADER_FOUND
=0
28189 CPPFLAGS
="${saved_cppflags}"
28191 if test "xvorbis/codec.h" != "x" ; then
28192 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
28193 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
28194 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
28195 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
28196 echo $ECHO_N "(cached) $ECHO_C" >&6
28198 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
28199 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
28201 # Is the header compilable?
28202 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
28203 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
28204 cat >conftest.
$ac_ext <<_ACEOF
28207 cat confdefs.h
>>conftest.
$ac_ext
28208 cat >>conftest.
$ac_ext <<_ACEOF
28209 /* end confdefs.h. */
28210 $ac_includes_default
28211 #include <vorbis/codec.h>
28213 rm -f conftest.
$ac_objext
28214 if { (ac_try
="$ac_compile"
28215 case "(($ac_try" in
28216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28217 *) ac_try_echo=$ac_try;;
28219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220 (eval "$ac_compile") 2>conftest.er1
28222 grep -v '^ *+' conftest.er1 >conftest.err
28224 cat conftest.err >&5
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } && {
28227 test -z "$ac_c_werror_flag" ||
28228 test ! -s conftest.err
28229 } && test -s conftest.$ac_objext; then
28230 ac_header_compiler=yes
28232 echo "$as_me: failed program was:" >&5
28233 sed 's/^/| /' conftest.$ac_ext >&5
28235 ac_header_compiler=no
28238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28240 echo "${ECHO_T}$ac_header_compiler" >&6; }
28242 # Is the header present?
28243 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
28244 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
28245 cat >conftest.$ac_ext <<_ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h. */
28251 #include <vorbis/codec.h>
28253 if { (ac_try="$ac_cpp conftest.$ac_ext"
28254 case "(($ac_try" in
28255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28256 *) ac_try_echo
=$ac_try;;
28258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28261 grep -v '^ *+' conftest.er1
>conftest.err
28263 cat conftest.err
>&5
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); } >/dev
/null
&& {
28266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28267 test ! -s conftest.err
28269 ac_header_preproc
=yes
28271 echo "$as_me: failed program was:" >&5
28272 sed 's/^/| /' conftest.
$ac_ext >&5
28274 ac_header_preproc
=no
28277 rm -f conftest.err conftest.
$ac_ext
28278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28279 echo "${ECHO_T}$ac_header_preproc" >&6; }
28281 # So? What about this header?
28282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28284 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
28285 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28286 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
28287 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
28288 ac_header_preproc
=yes
28291 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
28292 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
28293 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
28294 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
28295 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
28296 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
28297 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
28298 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
28299 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
28300 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
28301 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
28302 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
28306 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
28307 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
28308 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28311 ac_cv_header_vorbis_codec_h
=$ac_header_preproc
28313 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
28314 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
28317 if test $ac_cv_header_vorbis_codec_h = yes; then
28318 VORBIS_HEADER_FOUND
=1
28320 VORBIS_HEADER_FOUND
=0
28326 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
28327 if test ! -z "${VORBIS_MANDATORY}" ;
28329 { echo "$as_me:$LINENO: ***" >&5
28330 echo "$as_me: ***" >&6;}
28331 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
28332 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
28333 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
28334 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
28335 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
28336 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
28345 cat >>confdefs.h
<<_ACEOF
28346 #define HAVE_VORBIS 1
28350 elif test ! -z "${VORBIS_MANDATORY}";
28352 { echo "$as_me:$LINENO: ***" >&5
28353 echo "$as_me: ***" >&6;}
28354 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
28355 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
28356 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28357 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28358 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
28359 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
28366 ac_cpp
='$CXXCPP $CPPFLAGS'
28367 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28368 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28369 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
28372 if test "${USE_VPB}" != "no"; then
28373 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
28374 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
28375 saved_libs
="${LIBS}"
28376 saved_cppflags
="${CPPFLAGS}"
28377 if test "x${VPB_DIR}" != "x"; then
28378 if test -d ${VPB_DIR}/lib
; then
28379 vpblibdir
=${VPB_DIR}/lib
28381 vpblibdir
=${VPB_DIR}
28383 LIBS
="${LIBS} -L${vpblibdir}"
28384 CPPFLAGS
="${CPPFLAGS} -I${VPB_DIR}/include"
28386 LIBS
="${LIBS} -lvpb -lpthread"
28387 cat >conftest.
$ac_ext <<_ACEOF
28391 cat confdefs.h
>>conftest.
$ac_ext
28392 cat >>conftest.
$ac_ext <<_ACEOF
28393 /* end confdefs.h. */
28394 #include <vpbapi.h>
28398 int q = vpb_open(0,0);
28404 rm -f conftest.
$ac_objext conftest
$ac_exeext
28405 if { (ac_try
="$ac_link"
28406 case "(($ac_try" in
28407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28408 *) ac_try_echo=$ac_try;;
28410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411 (eval "$ac_link") 2>conftest.er1
28413 grep -v '^ *+' conftest.er1 >conftest.err
28415 cat conftest.err >&5
28416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); } && {
28418 test -z "$ac_cxx_werror_flag" ||
28419 test ! -s conftest.err
28420 } && test -s conftest$ac_exeext &&
28421 $as_test_x conftest$ac_exeext; then
28422 { echo "$as_me:$LINENO: result: yes" >&5
28423 echo "${ECHO_T}yes" >&6; }
28424 ac_cv_lib_vpb_vpb_open="yes"
28427 echo "$as_me: failed program was:" >&5
28428 sed 's/^/| /' conftest.$ac_ext >&5
28430 { echo "$as_me:$LINENO: result: no" >&5
28431 echo "${ECHO_T}no" >&6; }
28432 ac_cv_lib_vpb_vpb_open="no"
28437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28438 conftest$ac_exeext conftest.$ac_ext
28439 LIBS="${saved_libs}"
28440 CPPFLAGS="${saved_cppflags}"
28441 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
28443 if test "${VPB_DIR}" != ""; then
28444 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
28445 VPB_INCLUDE="-I${VPB_DIR}/include"
28449 cat >>confdefs.h <<\_ACEOF
28453 elif test ! -z "${VPB_MANDATORY}"; then
28454 { echo "$as_me:$LINENO: ***" >&5
28455 echo "$as_me: ***" >&6;}
28456 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
28457 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
28458 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28459 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28460 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
28461 echo "$as_me: *** including --without-vpb." >&6;}
28467 ac_cpp='$CPP $CPPFLAGS'
28468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28474 if test "${USE_ZLIB}" != "no"; then
28476 if test "x${ZLIB_DIR}" != "x"; then
28477 if test -d ${ZLIB_DIR}/lib; then
28478 pbxlibdir="-L${ZLIB_DIR}/lib"
28480 pbxlibdir="-L${ZLIB_DIR}"
28483 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
28484 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
28485 if test "${ac_cv_lib_z_compress+set}" = set; then
28486 echo $ECHO_N "(cached) $ECHO_C" >&6
28488 ac_check_lib_save_LIBS=$LIBS
28489 LIBS="-lz ${pbxlibdir} $LIBS"
28490 cat >conftest.$ac_ext <<_ACEOF
28493 cat confdefs.h >>conftest.$ac_ext
28494 cat >>conftest.$ac_ext <<_ACEOF
28495 /* end confdefs.h. */
28497 /* Override any GCC internal prototype to avoid an error.
28498 Use char because int might match the return type of a GCC
28499 builtin and then its argument prototype would still apply. */
28507 return compress ();
28512 rm -f conftest.$ac_objext conftest$ac_exeext
28513 if { (ac_try="$ac_link"
28514 case "(($ac_try" in
28515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28516 *) ac_try_echo
=$ac_try;;
28518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28519 (eval "$ac_link") 2>conftest.er1
28521 grep -v '^ *+' conftest.er1
>conftest.err
28523 cat conftest.err
>&5
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } && {
28526 test -z "$ac_c_werror_flag" ||
28527 test ! -s conftest.err
28528 } && test -s conftest
$ac_exeext &&
28529 $as_test_x conftest
$ac_exeext; then
28530 ac_cv_lib_z_compress
=yes
28532 echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.
$ac_ext >&5
28535 ac_cv_lib_z_compress
=no
28538 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28539 conftest
$ac_exeext conftest.
$ac_ext
28540 LIBS
=$ac_check_lib_save_LIBS
28542 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28543 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
28544 if test $ac_cv_lib_z_compress = yes; then
28551 if test "${AST_ZLIB_FOUND}" = "yes"; then
28553 ZLIB_HEADER_FOUND
="1"
28554 if test "x${ZLIB_DIR}" != "x"; then
28555 ZLIB_LIB
="${pbxlibdir} ${ZLIB_LIB}"
28556 ZLIB_INCLUDE
="-I${ZLIB_DIR}/include"
28557 saved_cppflags
="${CPPFLAGS}"
28558 CPPFLAGS
="${CPPFLAGS} -I${ZLIB_DIR}/include"
28559 if test "xzlib.h" != "x" ; then
28560 as_ac_Header
=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
28561 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28562 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28563 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28564 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28565 echo $ECHO_N "(cached) $ECHO_C" >&6
28567 ac_res
=`eval echo '${'$as_ac_Header'}'`
28568 { echo "$as_me:$LINENO: result: $ac_res" >&5
28569 echo "${ECHO_T}$ac_res" >&6; }
28571 # Is the header compilable?
28572 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
28573 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
28574 cat >conftest.
$ac_ext <<_ACEOF
28577 cat confdefs.h
>>conftest.
$ac_ext
28578 cat >>conftest.
$ac_ext <<_ACEOF
28579 /* end confdefs.h. */
28580 $ac_includes_default
28581 #include <${ZLIB_DIR}/include/zlib.h>
28583 rm -f conftest.
$ac_objext
28584 if { (ac_try
="$ac_compile"
28585 case "(($ac_try" in
28586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28587 *) ac_try_echo=$ac_try;;
28589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28590 (eval "$ac_compile") 2>conftest.er1
28592 grep -v '^ *+' conftest.er1 >conftest.err
28594 cat conftest.err >&5
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); } && {
28597 test -z "$ac_c_werror_flag" ||
28598 test ! -s conftest.err
28599 } && test -s conftest.$ac_objext; then
28600 ac_header_compiler=yes
28602 echo "$as_me: failed program was:" >&5
28603 sed 's/^/| /' conftest.$ac_ext >&5
28605 ac_header_compiler=no
28608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28610 echo "${ECHO_T}$ac_header_compiler" >&6; }
28612 # Is the header present?
28613 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
28614 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
28615 cat >conftest.$ac_ext <<_ACEOF
28618 cat confdefs.h >>conftest.$ac_ext
28619 cat >>conftest.$ac_ext <<_ACEOF
28620 /* end confdefs.h. */
28621 #include <${ZLIB_DIR}/include/zlib.h>
28623 if { (ac_try="$ac_cpp conftest.$ac_ext"
28624 case "(($ac_try" in
28625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28626 *) ac_try_echo
=$ac_try;;
28628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28631 grep -v '^ *+' conftest.er1
>conftest.err
28633 cat conftest.err
>&5
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); } >/dev
/null
&& {
28636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28637 test ! -s conftest.err
28639 ac_header_preproc
=yes
28641 echo "$as_me: failed program was:" >&5
28642 sed 's/^/| /' conftest.
$ac_ext >&5
28644 ac_header_preproc
=no
28647 rm -f conftest.err conftest.
$ac_ext
28648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28649 echo "${ECHO_T}$ac_header_preproc" >&6; }
28651 # So? What about this header?
28652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28654 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28655 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28656 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
28657 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
28658 ac_header_preproc
=yes
28661 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
28662 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
28663 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
28664 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
28665 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
28666 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
28667 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28668 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28669 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
28670 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
28671 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
28672 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
28676 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28677 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28678 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28679 echo $ECHO_N "(cached) $ECHO_C" >&6
28681 eval "$as_ac_Header=\$ac_header_preproc"
28683 ac_res
=`eval echo '${'$as_ac_Header'}'`
28684 { echo "$as_me:$LINENO: result: $ac_res" >&5
28685 echo "${ECHO_T}$ac_res" >&6; }
28688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28689 ZLIB_HEADER_FOUND
=1
28691 ZLIB_HEADER_FOUND
=0
28696 CPPFLAGS
="${saved_cppflags}"
28698 if test "xzlib.h" != "x" ; then
28699 if test "${ac_cv_header_zlib_h+set}" = set; then
28700 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28701 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28702 if test "${ac_cv_header_zlib_h+set}" = set; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28705 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28706 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28708 # Is the header compilable?
28709 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28710 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28711 cat >conftest.
$ac_ext <<_ACEOF
28714 cat confdefs.h
>>conftest.
$ac_ext
28715 cat >>conftest.
$ac_ext <<_ACEOF
28716 /* end confdefs.h. */
28717 $ac_includes_default
28720 rm -f conftest.
$ac_objext
28721 if { (ac_try
="$ac_compile"
28722 case "(($ac_try" in
28723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_compile") 2>conftest.er1
28729 grep -v '^ *+' conftest.er1 >conftest.err
28731 cat conftest.err >&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } && {
28734 test -z "$ac_c_werror_flag" ||
28735 test ! -s conftest.err
28736 } && test -s conftest.$ac_objext; then
28737 ac_header_compiler=yes
28739 echo "$as_me: failed program was:" >&5
28740 sed 's/^/| /' conftest.$ac_ext >&5
28742 ac_header_compiler=no
28745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28747 echo "${ECHO_T}$ac_header_compiler" >&6; }
28749 # Is the header present?
28750 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28751 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28752 cat >conftest.$ac_ext <<_ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h. */
28760 if { (ac_try="$ac_cpp conftest.$ac_ext"
28761 case "(($ac_try" in
28762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28763 *) ac_try_echo
=$ac_try;;
28765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28768 grep -v '^ *+' conftest.er1
>conftest.err
28770 cat conftest.err
>&5
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); } >/dev
/null
&& {
28773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28774 test ! -s conftest.err
28776 ac_header_preproc
=yes
28778 echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.
$ac_ext >&5
28781 ac_header_preproc
=no
28784 rm -f conftest.err conftest.
$ac_ext
28785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28786 echo "${ECHO_T}$ac_header_preproc" >&6; }
28788 # So? What about this header?
28789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28791 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28792 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28793 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28794 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28795 ac_header_preproc
=yes
28798 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28799 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28800 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
28801 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
28802 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28803 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28804 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28805 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28806 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28807 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28809 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28813 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28814 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28815 if test "${ac_cv_header_zlib_h+set}" = set; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28818 ac_cv_header_zlib_h
=$ac_header_preproc
28820 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28821 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28824 if test $ac_cv_header_zlib_h = yes; then
28825 ZLIB_HEADER_FOUND
=1
28827 ZLIB_HEADER_FOUND
=0
28833 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
28834 if test ! -z "${ZLIB_MANDATORY}" ;
28836 { echo "$as_me:$LINENO: ***" >&5
28837 echo "$as_me: ***" >&6;}
28838 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
28839 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
28840 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
28841 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
28842 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28843 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28852 cat >>confdefs.h
<<_ACEOF
28853 #define HAVE_ZLIB 1
28857 elif test ! -z "${ZLIB_MANDATORY}";
28859 { echo "$as_me:$LINENO: ***" >&5
28860 echo "$as_me: ***" >&6;}
28861 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
28862 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
28863 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28864 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28865 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28866 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28872 if test "${USE_ZAPTEL}" != "no"; then
28873 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
28874 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
28875 saved_cppflags
="${CPPFLAGS}"
28876 if test "x${ZAPTEL_DIR}" != "x"; then
28877 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28879 cat >conftest.
$ac_ext <<_ACEOF
28883 cat confdefs.h
>>conftest.
$ac_ext
28884 cat >>conftest.
$ac_ext <<_ACEOF
28885 /* end confdefs.h. */
28886 #include <zaptel/zaptel.h>
28890 int foo = ZT_DIAL_OP_CANCEL;
28896 rm -f conftest.
$ac_objext
28897 if { (ac_try
="$ac_compile"
28898 case "(($ac_try" in
28899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28900 *) ac_try_echo=$ac_try;;
28902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28903 (eval "$ac_compile") 2>conftest.er1
28905 grep -v '^ *+' conftest.er1 >conftest.err
28907 cat conftest.err >&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); } && {
28910 test -z "$ac_c_werror_flag" ||
28911 test ! -s conftest.err
28912 } && test -s conftest.$ac_objext; then
28913 { echo "$as_me:$LINENO: result: yes" >&5
28914 echo "${ECHO_T}yes" >&6; }
28915 ac_cv_zaptel_h="yes"
28918 echo "$as_me: failed program was:" >&5
28919 sed 's/^/| /' conftest.$ac_ext >&5
28921 { echo "$as_me:$LINENO: result: no" >&5
28922 echo "${ECHO_T}no" >&6; }
28923 ac_cv_zaptel_h="no"
28928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28929 CPPFLAGS="${saved_cppflags}"
28930 if test "${ac_cv_zaptel_h}" = "yes"; then
28931 if test "${ZAPTEL_DIR}" != ""; then
28932 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
28936 cat >>confdefs.h <<\_ACEOF
28937 #define HAVE_ZAPTEL 1
28940 elif test ! -z "${ZAPTEL_MANDATORY}";
28942 { echo "$as_me:$LINENO: ***" >&5
28943 echo "$as_me: ***" >&6;}
28944 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
28945 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
28946 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28947 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28948 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
28949 echo "$as_me: *** including --without-zaptel." >&6;}
28954 if test "${PBX_ZAPTEL}" = 1; then
28955 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h" >&5
28956 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h... $ECHO_C" >&6; }
28957 saved_cppflags="${CPPFLAGS}"
28958 if test "x${ZAPTEL_DIR}" != "x"; then
28959 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28961 cat >conftest.$ac_ext <<_ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h. */
28968 #include <zaptel/zaptel.h>
28972 int foo = ZT_TONE_DTMF_BASE;
28978 rm -f conftest.$ac_objext
28979 if { (ac_try="$ac_compile"
28980 case "(($ac_try" in
28981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28982 *) ac_try_echo
=$ac_try;;
28984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28985 (eval "$ac_compile") 2>conftest.er1
28987 grep -v '^ *+' conftest.er1
>conftest.err
28989 cat conftest.err
>&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); } && {
28992 test -z "$ac_c_werror_flag" ||
28993 test ! -s conftest.err
28994 } && test -s conftest.
$ac_objext; then
28995 { echo "$as_me:$LINENO: result: yes" >&5
28996 echo "${ECHO_T}yes" >&6; }
28997 ac_cv_zaptel_vldtmf
="yes"
29000 echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.
$ac_ext >&5
29003 { echo "$as_me:$LINENO: result: no" >&5
29004 echo "${ECHO_T}no" >&6; }
29005 ac_cv_zaptel_vldtmf
="no"
29010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29011 CPPFLAGS
="${saved_cppflags}"
29012 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
29013 PBX_ZAPTEL_VLDTMF
=1
29015 { echo "$as_me:$LINENO: checking for ZT_TCOP_TRANSCODE in zaptel/zaptel.h" >&5
29016 echo $ECHO_N "checking for ZT_TCOP_TRANSCODE in zaptel/zaptel.h... $ECHO_C" >&6; }
29017 saved_cppflags
="${CPPFLAGS}"
29018 if test "x${ZAPTEL_DIR}" != "x"; then
29019 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
29021 cat >conftest.
$ac_ext <<_ACEOF
29025 cat confdefs.h
>>conftest.
$ac_ext
29026 cat >>conftest.
$ac_ext <<_ACEOF
29027 /* end confdefs.h. */
29028 #include <zaptel/zaptel.h>
29032 int foo = ZT_TCOP_TRANSCODE;
29038 rm -f conftest.
$ac_objext
29039 if { (ac_try
="$ac_compile"
29040 case "(($ac_try" in
29041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29042 *) ac_try_echo=$ac_try;;
29044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29045 (eval "$ac_compile") 2>conftest.er1
29047 grep -v '^ *+' conftest.er1 >conftest.err
29049 cat conftest.err >&5
29050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051 (exit $ac_status); } && {
29052 test -z "$ac_c_werror_flag" ||
29053 test ! -s conftest.err
29054 } && test -s conftest.$ac_objext; then
29055 { echo "$as_me:$LINENO: result: yes" >&5
29056 echo "${ECHO_T}yes" >&6; }
29057 ac_cv_zaptel_transcode="yes"
29060 echo "$as_me: failed program was:" >&5
29061 sed 's/^/| /' conftest.$ac_ext >&5
29063 { echo "$as_me:$LINENO: result: no" >&5
29064 echo "${ECHO_T}no" >&6; }
29065 ac_cv_zaptel_transcode="no"
29070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29071 CPPFLAGS="${saved_cppflags}"
29072 if test "${ac_cv_zaptel_transcode}" = "yes"; then
29073 PBX_ZAPTEL_TRANSCODE=1
29080 if test "x$TERMCAP_LIB" != "x" ; then
29081 EDITLINE_LIB="$TERMCAP_LIB"
29082 elif test "x$TINFO_LIB" != "x" ; then
29083 EDITLINE_LIB="$TINFO_LIB"
29084 elif test "x$CURSES_LIB" != "x" ; then
29085 EDITLINE_LIB="$CURSES_LIB"
29086 elif test "x$NCURSES_LIB" != "x" ; then
29087 EDITLINE_LIB="$NCURSES_LIB"
29089 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
29090 echo "$as_me: error: *** termcap support not found" >&2;}
29091 { (exit 1); exit 1; }; }
29095 if test "${ac_cv_header_h323_h+set}" = set; then
29096 { echo "$as_me:$LINENO: checking for h323.h" >&5
29097 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
29098 if test "${ac_cv_header_h323_h+set}" = set; then
29099 echo $ECHO_N "(cached) $ECHO_C" >&6
29101 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
29102 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
29104 # Is the header compilable?
29105 { echo "$as_me:$LINENO: checking h323.h usability" >&5
29106 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
29107 cat >conftest.$ac_ext <<_ACEOF
29110 cat confdefs.h >>conftest.$ac_ext
29111 cat >>conftest.$ac_ext <<_ACEOF
29112 /* end confdefs.h. */
29113 $ac_includes_default
29116 rm -f conftest.$ac_objext
29117 if { (ac_try="$ac_compile"
29118 case "(($ac_try" in
29119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29120 *) ac_try_echo
=$ac_try;;
29122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29123 (eval "$ac_compile") 2>conftest.er1
29125 grep -v '^ *+' conftest.er1
>conftest.err
29127 cat conftest.err
>&5
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); } && {
29130 test -z "$ac_c_werror_flag" ||
29131 test ! -s conftest.err
29132 } && test -s conftest.
$ac_objext; then
29133 ac_header_compiler
=yes
29135 echo "$as_me: failed program was:" >&5
29136 sed 's/^/| /' conftest.
$ac_ext >&5
29138 ac_header_compiler
=no
29141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29143 echo "${ECHO_T}$ac_header_compiler" >&6; }
29145 # Is the header present?
29146 { echo "$as_me:$LINENO: checking h323.h presence" >&5
29147 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
29148 cat >conftest.
$ac_ext <<_ACEOF
29151 cat confdefs.h
>>conftest.
$ac_ext
29152 cat >>conftest.
$ac_ext <<_ACEOF
29153 /* end confdefs.h. */
29156 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29157 case "(($ac_try" in
29158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29159 *) ac_try_echo=$ac_try;;
29161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29164 grep -v '^ *+' conftest.er1 >conftest.err
29166 cat conftest.err >&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); } >/dev/null && {
29169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29170 test ! -s conftest.err
29172 ac_header_preproc=yes
29174 echo "$as_me: failed program was:" >&5
29175 sed 's/^/| /' conftest.$ac_ext >&5
29177 ac_header_preproc=no
29180 rm -f conftest.err conftest.$ac_ext
29181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29182 echo "${ECHO_T}$ac_header_preproc" >&6; }
29184 # So? What about this header?
29185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29187 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
29188 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29189 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
29190 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
29191 ac_header_preproc=yes
29194 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
29195 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
29196 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
29197 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
29198 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
29199 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
29200 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
29201 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
29202 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
29203 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
29204 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
29205 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
29209 { echo "$as_me:$LINENO: checking for h323.h" >&5
29210 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
29211 if test "${ac_cv_header_h323_h+set}" = set; then
29212 echo $ECHO_N "(cached) $ECHO_C" >&6
29214 ac_cv_header_h323_h=$ac_header_preproc
29216 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
29217 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
29220 if test $ac_cv_header_h323_h = yes; then
29229 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
29230 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
29231 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
29232 echo $ECHO_N "(cached) $ECHO_C" >&6
29234 cat >conftest.$ac_ext <<_ACEOF
29237 cat confdefs.h >>conftest.$ac_ext
29238 cat >>conftest.$ac_ext <<_ACEOF
29239 /* end confdefs.h. */
29241 #include <linux/version.h>
29242 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
29243 #include <linux/compiler.h>
29247 #include <linux/ixjuser.h>
29249 rm -f conftest.$ac_objext
29250 if { (ac_try="$ac_compile"
29251 case "(($ac_try" in
29252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29253 *) ac_try_echo
=$ac_try;;
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256 (eval "$ac_compile") 2>conftest.er1
29258 grep -v '^ *+' conftest.er1
>conftest.err
29260 cat conftest.err
>&5
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); } && {
29263 test -z "$ac_c_werror_flag" ||
29264 test ! -s conftest.err
29265 } && test -s conftest.
$ac_objext; then
29266 ac_cv_header_linux_ixjuser_h
=yes
29268 echo "$as_me: failed program was:" >&5
29269 sed 's/^/| /' conftest.
$ac_ext >&5
29271 ac_cv_header_linux_ixjuser_h
=no
29274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29276 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
29277 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
29278 if test $ac_cv_header_linux_ixjuser_h = yes; then
29288 if test -n "$ac_tool_prefix"; then
29289 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
29290 set dummy
${ac_tool_prefix}gtk-config
; ac_word
=$2
29291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29293 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
29294 echo $ECHO_N "(cached) $ECHO_C" >&6
29296 if test -n "$GTKCONFIG"; then
29297 ac_cv_prog_GTKCONFIG
="$GTKCONFIG" # Let the user override the test.
29299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29300 for as_dir
in $PATH
29303 test -z "$as_dir" && as_dir
=.
29304 for ac_exec_ext
in '' $ac_executable_extensions; do
29305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29306 ac_cv_prog_GTKCONFIG
="${ac_tool_prefix}gtk-config"
29307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29316 GTKCONFIG
=$ac_cv_prog_GTKCONFIG
29317 if test -n "$GTKCONFIG"; then
29318 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
29319 echo "${ECHO_T}$GTKCONFIG" >&6; }
29321 { echo "$as_me:$LINENO: result: no" >&5
29322 echo "${ECHO_T}no" >&6; }
29327 if test -z "$ac_cv_prog_GTKCONFIG"; then
29328 ac_ct_GTKCONFIG
=$GTKCONFIG
29329 # Extract the first word of "gtk-config", so it can be a program name with args.
29330 set dummy gtk-config
; ac_word
=$2
29331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29333 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
29334 echo $ECHO_N "(cached) $ECHO_C" >&6
29336 if test -n "$ac_ct_GTKCONFIG"; then
29337 ac_cv_prog_ac_ct_GTKCONFIG
="$ac_ct_GTKCONFIG" # Let the user override the test.
29339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29340 for as_dir
in $PATH
29343 test -z "$as_dir" && as_dir
=.
29344 for ac_exec_ext
in '' $ac_executable_extensions; do
29345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29346 ac_cv_prog_ac_ct_GTKCONFIG
="gtk-config"
29347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29356 ac_ct_GTKCONFIG
=$ac_cv_prog_ac_ct_GTKCONFIG
29357 if test -n "$ac_ct_GTKCONFIG"; then
29358 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
29359 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
29361 { echo "$as_me:$LINENO: result: no" >&5
29362 echo "${ECHO_T}no" >&6; }
29365 if test "x$ac_ct_GTKCONFIG" = x
; then
29368 case $cross_compiling:$ac_tool_warned in
29370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29371 whose name does not start with the host triplet. If you think this
29372 configuration is useful to you, please write to autoconf@gnu.org." >&5
29373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29374 whose name does not start with the host triplet. If you think this
29375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29376 ac_tool_warned
=yes ;;
29378 GTKCONFIG
=$ac_ct_GTKCONFIG
29381 GTKCONFIG
="$ac_cv_prog_GTKCONFIG"
29384 if test ! "x${GTKCONFIG}" = xNo
; then
29385 GTK_INCLUDE
=$
(${GTKCONFIG} --cflags gthread
)
29386 GTK_LIB
=$
(${GTKCONFIG} --libs gthread
)
29389 cat >>confdefs.h
<<\_ACEOF
29398 if test "${USE_CURL}" != "no"; then
29399 if test -n "$ac_tool_prefix"; then
29400 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
29401 set dummy
${ac_tool_prefix}curl-config
; ac_word
=$2
29402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29404 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
29405 echo $ECHO_N "(cached) $ECHO_C" >&6
29407 case $CURL_CONFIG in
29409 ac_cv_path_CURL_CONFIG
="$CURL_CONFIG" # Let the user override the test with a path.
29412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29413 for as_dir
in $PATH
29416 test -z "$as_dir" && as_dir
=.
29417 for ac_exec_ext
in '' $ac_executable_extensions; do
29418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29419 ac_cv_path_CURL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
29420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29430 CURL_CONFIG
=$ac_cv_path_CURL_CONFIG
29431 if test -n "$CURL_CONFIG"; then
29432 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
29433 echo "${ECHO_T}$CURL_CONFIG" >&6; }
29435 { echo "$as_me:$LINENO: result: no" >&5
29436 echo "${ECHO_T}no" >&6; }
29441 if test -z "$ac_cv_path_CURL_CONFIG"; then
29442 ac_pt_CURL_CONFIG
=$CURL_CONFIG
29443 # Extract the first word of "curl-config", so it can be a program name with args.
29444 set dummy curl-config
; ac_word
=$2
29445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29447 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29450 case $ac_pt_CURL_CONFIG in
29452 ac_cv_path_ac_pt_CURL_CONFIG
="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
29455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29456 for as_dir
in $PATH
29459 test -z "$as_dir" && as_dir
=.
29460 for ac_exec_ext
in '' $ac_executable_extensions; do
29461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29462 ac_cv_path_ac_pt_CURL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
29463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29473 ac_pt_CURL_CONFIG
=$ac_cv_path_ac_pt_CURL_CONFIG
29474 if test -n "$ac_pt_CURL_CONFIG"; then
29475 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
29476 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
29478 { echo "$as_me:$LINENO: result: no" >&5
29479 echo "${ECHO_T}no" >&6; }
29482 if test "x$ac_pt_CURL_CONFIG" = x
; then
29485 case $cross_compiling:$ac_tool_warned in
29487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29488 whose name does not start with the host triplet. If you think this
29489 configuration is useful to you, please write to autoconf@gnu.org." >&5
29490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29491 whose name does not start with the host triplet. If you think this
29492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29493 ac_tool_warned
=yes ;;
29495 CURL_CONFIG
=$ac_pt_CURL_CONFIG
29498 CURL_CONFIG
="$ac_cv_path_CURL_CONFIG"
29501 if test ! x
"${CURL_CONFIG}" = xNo
; then
29502 # check for version
29503 if test $
(printf "%d" 0x$
(${CURL_CONFIG} --vernum)) -ge $
(printf "%d" 0x070907); then
29504 CURL_INCLUDE
=$
(${CURL_CONFIG} --cflags)
29505 CURL_LIB
=$
(${CURL_CONFIG} --libs)
29508 cat >>confdefs.h
<<\_ACEOF
29509 #define HAVE_CURL 1
29516 ac_config_files
="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
29518 cat >confcache
<<\_ACEOF
29519 # This file is a shell script that caches the results of configure
29520 # tests run on this system so they can be shared between configure
29521 # scripts and configure runs, see configure's option --config-cache.
29522 # It is not useful on other systems. If it contains results you don't
29523 # want to keep, you may remove or edit it.
29525 # config.status only pays attention to the cache file if you give it
29526 # the --recheck option to rerun configure.
29528 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29529 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29530 # following values.
29534 # The following way of writing the cache mishandles newlines in values,
29535 # but we know of no workaround that is simple, portable, and efficient.
29536 # So, we kill variables containing newlines.
29537 # Ultrix sh set writes to stderr and can't be redirected directly,
29538 # and sets the high bit in the cache file unless we assign to the vars.
29540 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29541 eval ac_val
=\$
$ac_var
29545 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29546 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29549 _ | IFS | as_nl
) ;; #(
29550 *) $as_unset $ac_var ;;
29556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29557 *${as_nl}ac_space
=\
*)
29558 # `set' does not quote correctly, so add quotes (double-quote
29559 # substitution turns \\\\ into \\, and sed turns \\ into \).
29562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29565 # `set' quotes correctly as required by POSIX, so do not add quotes.
29566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29579 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29580 if test -w "$cache_file"; then
29581 test "x$cache_file" != "x/dev/null" &&
29582 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29583 echo "$as_me: updating cache $cache_file" >&6;}
29584 cat confcache
>$cache_file
29586 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29587 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29592 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29593 # Let make expand exec_prefix.
29594 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29596 DEFS
=-DHAVE_CONFIG_H
29600 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29601 # 1. Remove the extension, and $U if already installed.
29602 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29603 ac_i
=`echo "$ac_i" | sed "$ac_script"`
29604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29605 # will be set to the directory where LIBOBJS objects are built.
29606 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29607 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29609 LIBOBJS
=$ac_libobjs
29611 LTLIBOBJS
=$ac_ltlibobjs
29615 : ${CONFIG_STATUS=./config.status}
29616 ac_clean_files_save
=$ac_clean_files
29617 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29618 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29619 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29620 cat >$CONFIG_STATUS <<_ACEOF
29622 # Generated by $as_me.
29623 # Run this file to recreate the current configuration.
29624 # Compiler output produced by configure, useful for debugging
29625 # configure, is in config.log if it exists.
29628 ac_cs_recheck=false
29630 SHELL=\${CONFIG_SHELL-$SHELL}
29633 cat >>$CONFIG_STATUS <<\_ACEOF
29634 ## --------------------- ##
29635 ## M4sh Initialization. ##
29636 ## --------------------- ##
29638 # Be more Bourne compatible
29639 DUALCASE
=1; export DUALCASE
# for MKS sh
29640 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
29643 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29644 # is contrary to our usage. Disable this feature.
29645 alias -g '${1+"$@"}'='"$@"'
29646 setopt NO_GLOB_SUBST
29648 case `(set -o) 2>/dev/null` in
29649 *posix
*) set -o posix
;;
29658 # Avoid depending upon Character Ranges.
29659 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29660 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29661 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29662 as_cr_digits
='0123456789'
29663 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29665 # The user is always right.
29666 if test "${PATH_SEPARATOR+set}" != set; then
29667 echo "#! /bin/sh" >conf$$.sh
29668 echo "exit 0" >>conf$$.sh
29670 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
29678 # Support unset when possible.
29679 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
29687 # We need space, tab and new line, in precisely that order. Quoting is
29688 # there to prevent editors from complaining about space-tab.
29689 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29690 # splitting by setting IFS to empty value.)
29695 # Find who we are. Look in the path if we contain no directory separator.
29697 *[\\/]* ) as_myself
=$0 ;;
29698 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29699 for as_dir
in $PATH
29702 test -z "$as_dir" && as_dir
=.
29703 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
29709 # We did not find ourselves, most probably we were run as `sh COMMAND'
29710 # in which case we are not to be found in the path.
29711 if test "x$as_myself" = x
; then
29714 if test ! -f "$as_myself"; then
29715 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29716 { (exit 1); exit 1; }
29719 # Work around bugs in pre-3.0 UWIN ksh.
29720 for as_var
in ENV MAIL MAILPATH
29721 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
29729 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29730 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29731 LC_TELEPHONE LC_TIME
29733 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29734 eval $as_var=C
; export $as_var
29736 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
29740 # Required to use basename.
29741 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29742 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29748 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29749 as_basename
=basename
29755 # Name of the executable.
29756 as_me
=`$as_basename -- "$0" ||
29757 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29758 X"$0" : 'X\(//\)$' \| \
29759 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29761 sed '/^.*\/\([^/][^/]*\)\/*$/{
29780 as_lineno_1
=$LINENO
29781 as_lineno_2
=$LINENO
29782 test "x$as_lineno_1" != "x$as_lineno_2" &&
29783 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
29785 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29786 # uniformly replaced by the line number. The first 'sed' inserts a
29787 # line-number line after each line using $LINENO; the second 'sed'
29788 # does the real work. The second script uses 'N' to pair each
29789 # line-number line with the line containing $LINENO, and appends
29790 # trailing '-' during substitution so that $LINENO is not a special
29791 # case at line end.
29792 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29793 # scripts with optimization help from Paolo Bonzini. Blame Lee
29794 # E. McMahon (1931-1989) for sed's syntax. :-)
29806 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29809 ' >$as_me.lineno
&&
29810 chmod +x
"$as_me.lineno" ||
29811 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29812 { (exit 1); exit 1; }; }
29814 # Don't try to exec as it changes $[0], causing all sort of problems
29815 # (the dirname of $[0] is not the place where we might find the
29816 # original and so on. Autoconf is especially sensitive to this).
29817 .
"./$as_me.lineno"
29818 # Exit status is that of the last command.
29823 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29829 ECHO_C
= ECHO_N
= ECHO_T
=
29830 case `echo -n x` in
29832 case `echo 'x\c'` in
29833 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29840 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29841 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29847 rm -f conf$$ conf$$.exe conf$$.
file
29848 if test -d conf$$.dir
; then
29849 rm -f conf$$.dir
/conf$$.
file
29855 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29857 # ... but there are two gotchas:
29858 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29859 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29860 # In both cases, we have to default to `cp -p'.
29861 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29863 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29868 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29869 rmdir conf$$.dir
2>/dev
/null
29871 if mkdir
-p .
2>/dev
/null
; then
29874 test -d .
/-p && rmdir .
/-p
29878 if test -x / >/dev
/null
2>&1; then
29879 as_test_x
='test -x'
29881 if ls -dL / >/dev
/null
2>&1; then
29888 if test -d "$1"; then
29894 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29895 ???[sx]*):;;*)false;;esac;fi
29899 as_executable_p
=$as_test_x
29901 # Sed expression to map a string onto a valid CPP name.
29902 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29904 # Sed expression to map a string onto a valid variable name.
29905 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29910 # Save the log message, to keep $[0] and so on meaningful, and to
29911 # report actual input values of CONFIG_FILES etc. instead of their
29912 # values after options handling.
29914 This file was extended by $as_me, which was
29915 generated by GNU Autoconf 2.61. Invocation command line was
29917 CONFIG_FILES = $CONFIG_FILES
29918 CONFIG_HEADERS = $CONFIG_HEADERS
29919 CONFIG_LINKS = $CONFIG_LINKS
29920 CONFIG_COMMANDS = $CONFIG_COMMANDS
29923 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29928 cat >>$CONFIG_STATUS <<_ACEOF
29929 # Files that config.status was made for.
29930 config_files="$ac_config_files"
29931 config_headers="$ac_config_headers"
29935 cat >>$CONFIG_STATUS <<\_ACEOF
29937 \`$as_me' instantiates files from templates according to the
29938 current configuration.
29940 Usage: $0 [OPTIONS] [FILE]...
29942 -h, --help print this help, then exit
29943 -V, --version print version number and configuration settings, then exit
29944 -q, --quiet do not print progress messages
29945 -d, --debug don't remove temporary files
29946 --recheck update $as_me by reconfiguring in the same conditions
29947 --file=FILE[:TEMPLATE]
29948 instantiate the configuration file FILE
29949 --header=FILE[:TEMPLATE]
29950 instantiate the configuration header FILE
29952 Configuration files:
29955 Configuration headers:
29958 Report bugs to <bug-autoconf@gnu.org>."
29961 cat >>$CONFIG_STATUS <<_ACEOF
29964 configured by $0, generated by GNU Autoconf 2.61,
29965 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29967 Copyright (C) 2006 Free Software Foundation, Inc.
29968 This config.status script is free software; the Free Software Foundation
29969 gives unlimited permission to copy, distribute and modify it."
29976 cat >>$CONFIG_STATUS <<\_ACEOF
29977 # If no file are specified by the user, then we need to provide default
29978 # value. By we need to know if files were specified by the user.
29984 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29985 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29996 # Handling of the options.
29997 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29999 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30000 echo "$ac_cs_version"; exit ;;
30001 --debug |
--debu |
--deb |
--de |
--d |
-d )
30003 --file |
--fil |
--fi |
--f )
30005 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
30006 ac_need_defaults
=false
;;
30007 --header |
--heade |
--head |
--hea )
30009 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
30010 ac_need_defaults
=false
;;
30012 # Conflict between --help and --header
30013 { echo "$as_me: error: ambiguous option: $1
30014 Try \`$0 --help' for more information." >&2
30015 { (exit 1); exit 1; }; };;
30016 --help |
--hel |
-h )
30017 echo "$ac_cs_usage"; exit ;;
30018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30019 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30022 # This is an error.
30023 -*) { echo "$as_me: error: unrecognized option: $1
30024 Try \`$0 --help' for more information." >&2
30025 { (exit 1); exit 1; }; } ;;
30027 *) ac_config_targets
="$ac_config_targets $1"
30028 ac_need_defaults
=false
;;
30034 ac_configure_extra_args
=
30036 if $ac_cs_silent; then
30038 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30042 cat >>$CONFIG_STATUS <<_ACEOF
30043 if \$ac_cs_recheck; then
30044 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30045 CONFIG_SHELL=$SHELL
30046 export CONFIG_SHELL
30047 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30051 cat >>$CONFIG_STATUS <<\_ACEOF
30055 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30056 ## Running $as_me. ##
30062 cat >>$CONFIG_STATUS <<_ACEOF
30065 cat >>$CONFIG_STATUS <<\_ACEOF
30067 # Handling of arguments.
30068 for ac_config_target
in $ac_config_targets
30070 case $ac_config_target in
30071 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
30072 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
30073 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
30074 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
30076 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30077 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30078 { (exit 1); exit 1; }; };;
30083 # If the user did not use the arguments to specify the items to instantiate,
30084 # then the envvar interface is used. Set only those that are not.
30085 # We use the long form for the default assignment because of an extremely
30086 # bizarre bug on SunOS 4.1.3.
30087 if $ac_need_defaults; then
30088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30092 # Have a temporary directory for convenience. Make it in the build tree
30093 # simply because there is no reason against having it here, and in addition,
30094 # creating and moving files from /tmp can sometimes cause problems.
30095 # Hook for its removal unless debugging.
30096 # Note that there is a small window in which the directory will not be cleaned:
30097 # after its creation but before its name has been assigned to `$tmp'.
30101 trap 'exit_status=$?
30102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30104 trap '{ (exit 1); exit 1; }' 1 2 13 15
30106 # Create a (secure) tmp directory for tmp files.
30109 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30110 test -n "$tmp" && test -d "$tmp"
30113 tmp
=.
/conf$$
-$RANDOM
30114 (umask 077 && mkdir
"$tmp")
30117 echo "$me: cannot create a temporary directory in ." >&2
30118 { (exit 1); exit 1; }
30122 # Set up the sed scripts for CONFIG_FILES section.
30125 # No need to generate the scripts if there are no CONFIG_FILES.
30126 # This happens for instance when ./config.status config.h
30127 if test -n "$CONFIG_FILES"; then
30134 for ac_last_try
in false false false false false
:; do
30135 cat >conf$
$subs.
sed <<_ACEOF
30136 SHELL!$SHELL$ac_delim
30137 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30138 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30139 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30140 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30141 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30142 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30143 exec_prefix!$exec_prefix$ac_delim
30144 prefix!$prefix$ac_delim
30145 program_transform_name!$program_transform_name$ac_delim
30146 bindir!$bindir$ac_delim
30147 sbindir!$sbindir$ac_delim
30148 libexecdir!$libexecdir$ac_delim
30149 datarootdir!$datarootdir$ac_delim
30150 datadir!$datadir$ac_delim
30151 sysconfdir!$sysconfdir$ac_delim
30152 sharedstatedir!$sharedstatedir$ac_delim
30153 localstatedir!$localstatedir$ac_delim
30154 includedir!$includedir$ac_delim
30155 oldincludedir!$oldincludedir$ac_delim
30156 docdir!$docdir$ac_delim
30157 infodir!$infodir$ac_delim
30158 htmldir!$htmldir$ac_delim
30159 dvidir!$dvidir$ac_delim
30160 pdfdir!$pdfdir$ac_delim
30161 psdir!$psdir$ac_delim
30162 libdir!$libdir$ac_delim
30163 localedir!$localedir$ac_delim
30164 mandir!$mandir$ac_delim
30165 DEFS!$DEFS$ac_delim
30166 ECHO_C!$ECHO_C$ac_delim
30167 ECHO_N!$ECHO_N$ac_delim
30168 ECHO_T!$ECHO_T$ac_delim
30169 LIBS!$LIBS$ac_delim
30170 build_alias!$build_alias$ac_delim
30171 host_alias!$host_alias$ac_delim
30172 target_alias!$target_alias$ac_delim
30173 build!$build$ac_delim
30174 build_cpu!$build_cpu$ac_delim
30175 build_vendor!$build_vendor$ac_delim
30176 build_os!$build_os$ac_delim
30177 host!$host$ac_delim
30178 host_cpu!$host_cpu$ac_delim
30179 host_vendor!$host_vendor$ac_delim
30180 host_os!$host_os$ac_delim
30182 CFLAGS!$CFLAGS$ac_delim
30183 LDFLAGS!$LDFLAGS$ac_delim
30184 CPPFLAGS!$CPPFLAGS$ac_delim
30185 ac_ct_CC!$ac_ct_CC$ac_delim
30186 EXEEXT!$EXEEXT$ac_delim
30187 OBJEXT!$OBJEXT$ac_delim
30189 GREP!$GREP$ac_delim
30190 EGREP!$EGREP$ac_delim
30191 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
30192 BUILD_CPU!$BUILD_CPU$ac_delim
30193 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
30194 BUILD_OS!$BUILD_OS$ac_delim
30195 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
30196 HOST_CPU!$HOST_CPU$ac_delim
30197 HOST_VENDOR!$HOST_VENDOR$ac_delim
30198 HOST_OS!$HOST_OS$ac_delim
30199 OSARCH!$OSARCH$ac_delim
30200 UNAME!$UNAME$ac_delim
30201 PBX_OSREV!$PBX_OSREV$ac_delim
30204 RANLIB!$RANLIB$ac_delim
30206 CXXFLAGS!$CXXFLAGS$ac_delim
30207 ac_ct_CXX!$ac_ct_CXX$ac_delim
30208 CXXCPP!$CXXCPP$ac_delim
30211 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30212 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30213 INSTALL_DATA!$INSTALL_DATA$ac_delim
30214 LN_S!$LN_S$ac_delim
30215 GNU_MAKE!$GNU_MAKE$ac_delim
30216 GNU_LD!$GNU_LD$ac_delim
30217 FIND!$FIND$ac_delim
30218 COMPRESS!$COMPRESS$ac_delim
30219 BASENAME!$BASENAME$ac_delim
30221 DIRNAME!$DIRNAME$ac_delim
30224 STRIP!$STRIP$ac_delim
30225 WGET!$WGET$ac_delim
30226 FETCH!$FETCH$ac_delim
30227 DOWNLOAD!$DOWNLOAD$ac_delim
30228 acx_pthread_config!$acx_pthread_config$ac_delim
30229 PTHREAD_CC!$PTHREAD_CC$ac_delim
30230 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
30231 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
30232 AST_DEVMODE!$AST_DEVMODE$ac_delim
30235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30237 elif $ac_last_try; then
30238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30239 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30240 { (exit 1); exit 1; }; }
30242 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
30246 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30247 if test -n "$ac_eof"; then
30248 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
30249 ac_eof
=`expr $ac_eof + 1`
30252 cat >>$CONFIG_STATUS <<_ACEOF
30253 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30257 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30258 s/^/s,@/; s/!/@,|#_!!_#|/
30261 s/'"$ac_delim"'$/,g/; t
30263 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30264 ' >>$CONFIG_STATUS <conf$
$subs.
sed
30265 rm -f conf$
$subs.
sed
30266 cat >>$CONFIG_STATUS <<_ACEOF
30272 for ac_last_try
in false false false false false
:; do
30273 cat >conf$
$subs.
sed <<_ACEOF
30274 ALSA_LIB!$ALSA_LIB$ac_delim
30275 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
30276 PBX_ALSA!$PBX_ALSA$ac_delim
30277 CURL_LIB!$CURL_LIB$ac_delim
30278 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
30279 PBX_CURL!$PBX_CURL$ac_delim
30280 CURSES_LIB!$CURSES_LIB$ac_delim
30281 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
30282 PBX_CURSES!$PBX_CURSES$ac_delim
30283 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
30284 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
30285 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
30286 GSM_LIB!$GSM_LIB$ac_delim
30287 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
30288 PBX_GSM!$PBX_GSM$ac_delim
30289 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
30290 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
30291 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
30292 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
30293 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
30294 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
30295 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
30296 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
30297 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
30298 KDE_LIB!$KDE_LIB$ac_delim
30299 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
30300 PBX_KDE!$PBX_KDE$ac_delim
30301 MISDN_LIB!$MISDN_LIB$ac_delim
30302 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
30303 PBX_MISDN!$PBX_MISDN$ac_delim
30304 NBS_LIB!$NBS_LIB$ac_delim
30305 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
30306 PBX_NBS!$PBX_NBS$ac_delim
30307 NCURSES_LIB!$NCURSES_LIB$ac_delim
30308 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
30309 PBX_NCURSES!$PBX_NCURSES$ac_delim
30310 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
30311 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
30312 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
30313 NEWT_LIB!$NEWT_LIB$ac_delim
30314 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
30315 PBX_NEWT!$PBX_NEWT$ac_delim
30316 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
30317 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
30318 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
30319 OGG_LIB!$OGG_LIB$ac_delim
30320 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
30321 PBX_OGG!$PBX_OGG$ac_delim
30322 OSPTK_LIB!$OSPTK_LIB$ac_delim
30323 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
30324 PBX_OSPTK!$PBX_OSPTK$ac_delim
30325 OSS_LIB!$OSS_LIB$ac_delim
30326 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
30327 PBX_OSS!$PBX_OSS$ac_delim
30328 POPT_LIB!$POPT_LIB$ac_delim
30329 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
30330 PBX_POPT!$PBX_POPT$ac_delim
30331 PGSQL_LIB!$PGSQL_LIB$ac_delim
30332 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
30333 PBX_PGSQL!$PBX_PGSQL$ac_delim
30334 PRI_LIB!$PRI_LIB$ac_delim
30335 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
30336 PBX_PRI!$PBX_PRI$ac_delim
30337 PWLIB_LIB!$PWLIB_LIB$ac_delim
30338 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
30339 PBX_PWLIB!$PBX_PWLIB$ac_delim
30340 OPENH323_LIB!$OPENH323_LIB$ac_delim
30341 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
30342 PBX_OPENH323!$PBX_OPENH323$ac_delim
30343 QT_LIB!$QT_LIB$ac_delim
30344 QT_INCLUDE!$QT_INCLUDE$ac_delim
30345 PBX_QT!$PBX_QT$ac_delim
30346 RADIUS_LIB!$RADIUS_LIB$ac_delim
30347 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
30348 PBX_RADIUS!$PBX_RADIUS$ac_delim
30349 SPEEX_LIB!$SPEEX_LIB$ac_delim
30350 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
30351 PBX_SPEEX!$PBX_SPEEX$ac_delim
30352 SQLITE_LIB!$SQLITE_LIB$ac_delim
30353 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
30354 PBX_SQLITE!$PBX_SQLITE$ac_delim
30355 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
30356 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
30357 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
30358 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
30359 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
30360 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
30361 FREETDS_LIB!$FREETDS_LIB$ac_delim
30362 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
30363 PBX_FREETDS!$PBX_FREETDS$ac_delim
30364 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
30365 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
30366 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
30367 TINFO_LIB!$TINFO_LIB$ac_delim
30368 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
30369 PBX_TINFO!$PBX_TINFO$ac_delim
30370 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
30373 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30375 elif $ac_last_try; then
30376 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30377 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30378 { (exit 1); exit 1; }; }
30380 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
30384 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30385 if test -n "$ac_eof"; then
30386 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
30387 ac_eof
=`expr $ac_eof + 1`
30390 cat >>$CONFIG_STATUS <<_ACEOF
30391 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30395 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30396 s/^/s,@/; s/!/@,|#_!!_#|/
30399 s/'"$ac_delim"'$/,g/; t
30401 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30402 ' >>$CONFIG_STATUS <conf$
$subs.
sed
30403 rm -f conf$
$subs.
sed
30404 cat >>$CONFIG_STATUS <<_ACEOF
30410 for ac_last_try
in false false false false false
:; do
30411 cat >conf$
$subs.
sed <<_ACEOF
30412 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
30413 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
30414 VORBIS_LIB!$VORBIS_LIB$ac_delim
30415 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
30416 PBX_VORBIS!$PBX_VORBIS$ac_delim
30417 VPB_LIB!$VPB_LIB$ac_delim
30418 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
30419 PBX_VPB!$PBX_VPB$ac_delim
30420 ZLIB_LIB!$ZLIB_LIB$ac_delim
30421 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
30422 PBX_ZLIB!$PBX_ZLIB$ac_delim
30423 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
30424 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
30425 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
30426 ALLOCA!$ALLOCA$ac_delim
30427 LIBOBJS!$LIBOBJS$ac_delim
30428 POW_LIB!$POW_LIB$ac_delim
30429 GC_CFLAGS!$GC_CFLAGS$ac_delim
30430 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
30431 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
30432 KDEINIT!$KDEINIT$ac_delim
30433 KDEDIR!$KDEDIR$ac_delim
30434 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
30435 PG_CONFIG!$PG_CONFIG$ac_delim
30436 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
30437 PWLIBDIR!$PWLIBDIR$ac_delim
30438 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
30439 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
30440 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
30441 OPENH323DIR!$OPENH323DIR$ac_delim
30442 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
30443 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
30444 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
30445 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
30446 QTMOC!$QTMOC$ac_delim
30447 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
30448 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
30449 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
30450 PBX_H323!$PBX_H323$ac_delim
30451 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
30452 GTKCONFIG!$GTKCONFIG$ac_delim
30453 PBX_GTK!$PBX_GTK$ac_delim
30454 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
30455 GTK_LIB!$GTK_LIB$ac_delim
30456 CURL_CONFIG!$CURL_CONFIG$ac_delim
30457 LTLIBOBJS!$LTLIBOBJS$ac_delim
30460 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
30462 elif $ac_last_try; then
30463 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30464 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30465 { (exit 1); exit 1; }; }
30467 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
30471 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30472 if test -n "$ac_eof"; then
30473 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
30474 ac_eof
=`expr $ac_eof + 1`
30477 cat >>$CONFIG_STATUS <<_ACEOF
30478 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
30479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30482 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30483 s/^/s,@/; s/!/@,|#_!!_#|/
30486 s/'"$ac_delim"'$/,g/; t
30488 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30489 ' >>$CONFIG_STATUS <conf$
$subs.
sed
30490 rm -f conf$
$subs.
sed
30491 cat >>$CONFIG_STATUS <<_ACEOF
30498 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30499 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30500 # trailing colons and then remove the whole line if VPATH becomes empty
30501 # (actually we leave an empty line to preserve line numbers).
30502 if test "x$srcdir" = x.
; then
30503 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
30504 s/:*\$(srcdir):*/:/
30505 s/:*\${srcdir}:*/:/
30507 s/^\([^=]*=[ ]*\):*/\1/
30513 cat >>$CONFIG_STATUS <<\_ACEOF
30514 fi # test -n "$CONFIG_FILES"
30517 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
30520 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30522 case $ac_mode$ac_tag in
30524 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30525 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30526 { (exit 1); exit 1; }; };;
30527 :[FH
]-) ac_tag
=-:-;;
30528 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30545 -) ac_f
="$tmp/stdin";;
30546 *) # Look for the file first in the build tree, then in the source tree
30547 # (if the path is not absolute). The absolute path cannot be DOS-style,
30548 # because $ac_f cannot contain `:'.
30552 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30554 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30555 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30556 { (exit 1); exit 1; }; };;
30558 ac_file_inputs
="$ac_file_inputs $ac_f"
30561 # Let's still pretend it is `configure' which instantiates (i.e., don't
30562 # use $as_me), people would be surprised to read:
30563 # /* config.h. Generated by config.status. */
30564 configure_input
="Generated from "`IFS=:
30565 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30566 if test x
"$ac_file" != x-
; then
30567 configure_input
="$ac_file. $configure_input"
30568 { echo "$as_me:$LINENO: creating $ac_file" >&5
30569 echo "$as_me: creating $ac_file" >&6;}
30573 *:-:* |
*:-) cat >"$tmp/stdin";;
30578 ac_dir
=`$as_dirname -- "$ac_file" ||
30579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30580 X"$ac_file" : 'X\(//\)[^/]' \| \
30581 X"$ac_file" : 'X\(//\)$' \| \
30582 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30588 /^X\(\/\/\)[^/].*/{
30603 -*) as_dir
=.
/$as_dir;;
30605 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
30609 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30610 *) as_qdir
=$as_dir;;
30612 as_dirs
="'$as_qdir' $as_dirs"
30613 as_dir
=`$as_dirname -- "$as_dir" ||
30614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30615 X"$as_dir" : 'X\(//\)[^/]' \| \
30616 X"$as_dir" : 'X\(//\)$' \| \
30617 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30623 /^X\(\/\/\)[^/].*/{
30636 test -d "$as_dir" && break
30638 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30639 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30640 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30641 { (exit 1); exit 1; }; }; }
30645 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30647 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30648 # A ".." for each directory in $ac_dir_suffix.
30649 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30650 case $ac_top_builddir_sub in
30651 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30652 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30655 ac_abs_top_builddir
=$ac_pwd
30656 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30657 # for backward compatibility:
30658 ac_top_builddir
=$ac_top_build_prefix
30661 .
) # We are building in place.
30663 ac_top_srcdir
=$ac_top_builddir_sub
30664 ac_abs_top_srcdir
=$ac_pwd ;;
30665 [\\/]* | ?
:[\\/]* ) # Absolute name.
30666 ac_srcdir
=$srcdir$ac_dir_suffix;
30667 ac_top_srcdir
=$srcdir
30668 ac_abs_top_srcdir
=$srcdir ;;
30669 *) # Relative name.
30670 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30671 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30672 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30674 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30684 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30685 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30689 cat >>$CONFIG_STATUS <<\_ACEOF
30690 # If the template does not know about datarootdir, expand it.
30691 # FIXME: This hack should be removed a few years after 2.60.
30692 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30694 case `sed -n '/datarootdir/ {
30703 ' $ac_file_inputs` in
30704 *datarootdir
*) ac_datarootdir_seen
=yes;;
30705 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30706 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30707 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30709 cat >>$CONFIG_STATUS <<_ACEOF
30710 ac_datarootdir_hack='
30711 s&@datadir@&$datadir&g
30712 s&@docdir@&$docdir&g
30713 s&@infodir@&$infodir&g
30714 s&@localedir@&$localedir&g
30715 s&@mandir@&$mandir&g
30716 s&\\\${datarootdir}&$datarootdir&g' ;;
30720 # Neutralize VPATH when `$srcdir' = `.'.
30721 # Shell code in configure.ac might set extrasub.
30722 # FIXME: do we really want to maintain this feature?
30723 cat >>$CONFIG_STATUS <<_ACEOF
30727 cat >>$CONFIG_STATUS <<\_ACEOF
30729 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30730 s
&@configure_input@
&$configure_input&;t t
30731 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30732 s
&@srcdir@
&$ac_srcdir&;t t
30733 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30734 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30735 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30736 s
&@builddir@
&$ac_builddir&;t t
30737 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30738 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30739 s
&@INSTALL@
&$ac_INSTALL&;t t
30740 $ac_datarootdir_hack
30741 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
30743 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30744 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30745 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30746 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30747 which seems to be undefined. Please make sure it is defined." >&5
30748 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30749 which seems to be undefined. Please make sure it is defined." >&2;}
30753 -) cat "$tmp/out"; rm -f "$tmp/out";;
30754 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30763 # Transform confdefs.h into a sed script `conftest.defines', that
30764 # substitutes the proper values into config.h.in to produce config.h.
30765 rm -f conftest.defines conftest.
tail
30766 # First, append a space to every undef/define line, to ease matching.
30767 echo 's/$/ /' >conftest.defines
30768 # Then, protect against being on the right side of a sed subst, or in
30769 # an unquoted here document, in config.status. If some macros were
30770 # called several times there might be several #defines for the same
30771 # symbol, which is useless. But do not sort them, since the last
30772 # AC_DEFINE must be honored.
30773 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
30774 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30775 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30776 # PARAMS is the parameter list in the macro definition--in most cases, it's
30777 # just an empty string.
30778 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30779 ac_dB
='\\)[ (].*,\\1define\\2'
30787 s/^[ ]*#[ ]*define[ ][ ]*//
30792 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30793 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30794 ' >>conftest.defines
30796 # Remove the space that was appended to ease matching.
30797 # Then replace #undef with comments. This is necessary, for
30798 # example, in the case of _POSIX_SOURCE, which is predefined and required
30799 # on some systems where configure will not decide to define it.
30800 # (The regexp can be short, since the line contains either #define or #undef.)
30802 s,^[ #]*u.*,/* & */,' >>conftest.defines
30804 # Break up conftest.defines:
30805 ac_max_sed_lines
=50
30807 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30808 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30809 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30811 ac_in
='$ac_file_inputs'
30812 ac_out
='"$tmp/out1"'
30813 ac_nxt
='"$tmp/out2"'
30817 # Write a here document:
30818 cat >>$CONFIG_STATUS <<_ACEOF
30819 # First, check the format of the line:
30820 cat >"\$tmp/defines.sed" <<\\CEOF
30821 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30822 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30826 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
30828 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30829 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
30830 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
30831 grep . conftest.
tail >/dev
/null ||
break
30832 rm -f conftest.defines
30833 mv conftest.
tail conftest.defines
30835 rm -f conftest.defines conftest.
tail
30837 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30838 cat >>$CONFIG_STATUS <<\_ACEOF
30839 if test x
"$ac_file" != x-
; then
30840 echo "/* $configure_input */" >"$tmp/config.h"
30841 cat "$ac_result" >>"$tmp/config.h"
30842 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
30843 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30844 echo "$as_me: $ac_file is unchanged" >&6;}
30847 mv "$tmp/config.h" $ac_file
30850 echo "/* $configure_input */"
30862 { (exit 0); exit 0; }
30864 chmod +x
$CONFIG_STATUS
30865 ac_clean_files
=$ac_clean_files_save
30868 # configure is writing to config.log, and then calls config.status.
30869 # config.status does its own redirection, appending to config.log.
30870 # Unfortunately, on DOS this fails, as config.log is still kept open
30871 # by configure, so config.status won't be able to write to it; its
30872 # output is simply discarded. So we exec the FD to /dev/null,
30873 # effectively closing config.log, so it can be properly (re)opened and
30874 # appended to by config.status. When coming back to configure, we
30875 # need to make the FD available again.
30876 if test "$no_create" != yes; then
30878 ac_config_status_args
=
30879 test "$silent" = yes &&
30880 ac_config_status_args
="$ac_config_status_args --quiet"
30882 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30884 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30885 # would make configure fail if this is the last instruction.
30886 $ac_cs_success ||
{ (exit 1); exit 1; }
30890 if test "x${silent}" != "xyes" ; then
30892 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
30893 echo " .\$7\$7.. .7\$\$7:. "
30894 echo " .\$\$:. ,\$7.7 "
30895 echo " .\$7. 7\$\$\$\$ .\$\$77 "
30896 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
30897 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
30898 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
30899 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
30900 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
30901 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
30902 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
30903 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
30904 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
30905 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
30906 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
30907 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
30908 echo " \$\$\$\$\$ \$\$\$ "
30909 echo " \$\$\$\$7. \$\$ (TM) "
30910 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
30911 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
30912 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
30916 { echo "$as_me:$LINENO: Package configured for: " >&5
30917 echo "$as_me: Package configured for: " >&6;}
30918 { echo "$as_me:$LINENO: OS type : $host_os" >&5
30919 echo "$as_me: OS type : $host_os" >&6;}
30920 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
30921 echo "$as_me: Host CPU : $host_cpu" >&6;}
30922 if test "${cross_compiling}" = "yes"; then
30923 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
30924 echo "$as_me: Cross Compilation = YES" >&6;}