Merged revisions 37441-37442 via svnmerge from
[asterisk-bristuff.git] / configure
blob6885bc64be93c57ac78e839bb004229d6bff3761
1 #! /bin/sh
2 # From configure.ac Revision: 37278 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59e.
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.
11 # "Asterisk"
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
43 chmod +x conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45 PATH_SEPARATOR=';'
46 else
47 PATH_SEPARATOR=:
49 rm -f conf$$.sh
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55 else
56 as_unset=false
60 # IFS
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
67 IFS=" "" $as_nl"
69 # Find who we are. Look in the path if we contain no directory separator.
70 case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86 as_myself=$0
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
101 # NLS nuisances.
102 for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 done
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
117 as_expr=expr
118 else
119 as_expr=false
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123 as_basename=basename
124 else
125 as_basename=false
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
139 /^X\/\(\/\/\)$/{
140 s//\1/
143 /^X\/\(\/\).*/{
144 s//\1/
147 s/.*/./; q'`
149 # CDPATH.
150 $as_unset CDPATH
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156 else
157 as_have_required=no
160 if test $as_have_required = yes && (eval ":
161 (as_func_return () {
162 (exit \$1)
164 as_func_success () {
165 as_func_return 0
167 as_func_failure () {
168 as_func_return 1
170 as_func_ret_success () {
171 return 0
173 as_func_ret_failure () {
174 return 1
177 exitcode=0
178 if as_func_success; then
180 else
181 exitcode=1
182 echo as_func_success failed.
185 if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
190 if as_func_ret_success; then
192 else
193 exitcode=1
194 echo as_func_ret_success failed.
197 if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 else
205 exitcode=1
206 echo positional parameters were not saved.
209 test \$exitcode = 0) || { (exit 1); exit 1; }
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
218 else
219 as_candidate_shells=
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 case $as_dir in
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231 done
232 IFS=$as_save_IFS
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells which exist, to save several forks.
237 if test -f "$as_shell" &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
254 _ASEOF
255 }; then
256 CONFIG_SHELL=$as_shell
257 as_have_required=yes
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
274 (as_func_return () {
275 (exit $1)
277 as_func_success () {
278 as_func_return 0
280 as_func_failure () {
281 as_func_return 1
283 as_func_ret_success () {
284 return 0
286 as_func_ret_failure () {
287 return 1
290 exitcode=0
291 if as_func_success; then
293 else
294 exitcode=1
295 echo as_func_success failed.
298 if as_func_failure; then
299 exitcode=1
300 echo as_func_failure succeeded.
303 if as_func_ret_success; then
305 else
306 exitcode=1
307 echo as_func_ret_success failed.
310 if as_func_ret_failure; then
311 exitcode=1
312 echo as_func_ret_failure succeeded.
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
317 else
318 exitcode=1
319 echo positional parameters were not saved.
322 test $exitcode = 0) || { (exit 1); exit 1; }
325 as_lineno_1=$LINENO
326 as_lineno_2=$LINENO
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330 _ASEOF
331 }; then
332 break
337 done
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342 done
343 export CONFIG_SHELL
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
363 (eval "as_func_return () {
364 (exit \$1)
366 as_func_success () {
367 as_func_return 0
369 as_func_failure () {
370 as_func_return 1
372 as_func_ret_success () {
373 return 0
375 as_func_ret_failure () {
376 return 1
379 exitcode=0
380 if as_func_success; then
382 else
383 exitcode=1
384 echo as_func_success failed.
387 if as_func_failure; then
388 exitcode=1
389 echo as_func_failure succeeded.
392 if as_func_ret_success; then
394 else
395 exitcode=1
396 echo as_func_ret_success failed.
399 if as_func_ret_failure; then
400 exitcode=1
401 echo as_func_ret_failure succeeded.
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 else
407 exitcode=1
408 echo positional parameters were not saved.
411 test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
415 echo message
420 as_lineno_1=$LINENO
421 as_lineno_2=$LINENO
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
431 # case at line end.
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
443 :lineno
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in
471 -n*)
472 case `echo 'x\c'` in
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) ECHO_C='\c';;
475 esac;;
477 ECHO_N='-n';;
478 esac
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
482 as_expr=expr
483 else
484 as_expr=false
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
490 else
491 rm -f conf$$.dir
492 mkdir conf$$.dir
494 echo >conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 as_ln_s='ln -s'
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 as_ln_s='cp -p'
503 elif ln conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s=ln
505 else
506 as_ln_s='cp -p'
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p=:
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
521 #! /bin/sh
522 exit 0
523 _ASEOF
524 chmod +x conf$$.file
525 if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
527 else
528 as_executable_p=:
530 rm -f conf$$.file
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 exec 7<&0 </dev/null 6>&1
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 # Initializations.
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Identity of this package.
561 PACKAGE_NAME=
562 PACKAGE_TARNAME=
563 PACKAGE_VERSION=
564 PACKAGE_STRING=
565 PACKAGE_BUGREPORT=
567 ac_unique_file="asterisk"
568 ac_unique_file="asterisk.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 build
643 build_cpu
644 build_vendor
645 build_os
646 host
647 host_cpu
648 host_vendor
649 host_os
650 target
651 target_cpu
652 target_vendor
653 target_os
654 PBX_PLATFORM
655 PBX_CPU
656 PBX_VENDOR
657 PBX_OS
658 UNAME
659 PBX_OSREV
660 OSISWIN32
661 PBX_OSTYPE
664 RANLIB
667 WINDRES
668 DLLWRAP
669 CFLAGS
670 LDFLAGS
671 CPPFLAGS
672 ac_ct_CC
673 EXEEXT
674 OBJEXT
675 CXXFLAGS
676 ac_ct_CXX
678 CXXCPP
680 INSTALL_PROGRAM
681 INSTALL_SCRIPT
682 INSTALL_DATA
683 LN_S
684 GNU_MAKE
685 GREP
686 FIND
687 COMPRESS
688 BASENAME
689 DIRNAME
692 AST_DEVMODE
693 ALSA_LIB
694 ALSA_INCLUDE
695 PBX_ALSA
696 CURSES_LIB
697 CURSES_INCLUDE
698 PBX_CURSES
699 GSM_LIB
700 GSM_INCLUDE
701 PBX_GSM
702 IKSEMEL_LIB
703 IKSEMEL_INCLUDE
704 PBX_IKSEMEL
705 IMAP_TK_LIB
706 IMAP_TK_INCLUDE
707 PBX_IMAP_TK
708 KDE_LIB
709 KDE_INCLUDE
710 PBX_KDE
711 NBS_LIB
712 NBS_INCLUDE
713 PBX_NBS
714 NCURSES_LIB
715 NCURSES_INCLUDE
716 PBX_NCURSES
717 NETSNMP_LIB
718 NETSNMP_INCLUDE
719 PBX_NETSNMP
720 NEWT_LIB
721 NEWT_INCLUDE
722 PBX_NEWT
723 UNIXODBC_LIB
724 UNIXODBC_INCLUDE
725 PBX_UNIXODBC
726 OGG_LIB
727 OGG_INCLUDE
728 PBX_OGG
729 OSPTK_LIB
730 OSPTK_INCLUDE
731 PBX_OSPTK
732 OSS_LIB
733 OSS_INCLUDE
734 PBX_OSS
735 POPT_LIB
736 POPT_INCLUDE
737 PBX_POPT
738 PGSQL_LIB
739 PGSQL_INCLUDE
740 PBX_PGSQL
741 PRI_LIB
742 PRI_INCLUDE
743 PBX_PRI
744 PWLIB_LIB
745 PWLIB_INCLUDE
746 PBX_PWLIB
747 QT_LIB
748 QT_INCLUDE
749 PBX_QT
750 RADIUS_LIB
751 RADIUS_INCLUDE
752 PBX_RADIUS
753 SPEEX_LIB
754 SPEEX_INCLUDE
755 PBX_SPEEX
756 SQLITE_LIB
757 SQLITE_INCLUDE
758 PBX_SQLITE
759 OPENSSL_LIB
760 OPENSSL_INCLUDE
761 PBX_OPENSSL
762 FREETDS_LIB
763 FREETDS_INCLUDE
764 PBX_FREETDS
765 TERMCAP_LIB
766 TERMCAP_INCLUDE
767 PBX_TERMCAP
768 TINFO_LIB
769 TINFO_INCLUDE
770 PBX_TINFO
771 TONEZONE_LIB
772 TONEZONE_INCLUDE
773 PBX_TONEZONE
774 VORBIS_LIB
775 VORBIS_INCLUDE
776 PBX_VORBIS
777 VPB_LIB
778 VPB_INCLUDE
779 PBX_VPB
780 ZLIB_LIB
781 ZLIB_INCLUDE
782 PBX_ZLIB
783 ZAPTEL_LIB
784 ZAPTEL_INCLUDE
785 PBX_ZAPTEL
786 ALLOCA
787 EGREP
788 LIBOBJS
789 POW_LIB
790 KDEINIT
791 KDEDIR
792 NETSNMP_CONFIG
793 PG_CONFIG
794 QTMOC
795 EDITLINE_LIB
796 PBX_H323
797 PBX_IXJUSER
798 GTKCONFIG
799 PBX_GTK
800 GTK_INCLUDE
801 GTK_LIB
802 CURL
803 PBX_CURL
804 CURLLIB
805 LTLIBOBJS'
806 ac_subst_files=''
807 ac_precious_vars='build_alias
808 host_alias
809 target_alias
811 CFLAGS
812 LDFLAGS
813 CPPFLAGS
815 CXXFLAGS
818 CXXCPP'
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
867 ac_prev=
868 ac_dashdash=
869 for ac_option
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
887 ac_dashdash=yes ;;
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
906 --config-cache | -C)
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
940 -enable-* | --enable-*)
941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1137 -with-* | --with-*)
1138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 esac
1196 done
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1211 case $ac_val in
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 esac
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1217 done
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 echo X"$0" |
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1271 /^X\(\/\/\)$/{
1272 s//\1/
1275 /^X\(\/\).*/{
1276 s//\1/
1279 s/.*/./; q'`
1280 srcdir=$ac_confdir
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 srcdir=..
1284 else
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures this package to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1376 cat <<\_ACEOF
1378 System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382 _ACEOF
1385 if test -n "$ac_init_help"; then
1387 cat <<\_ACEOF
1389 Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-dev-mode Turn on developer mode
1393 --disable-largefile omit support for large files
1395 Optional Packages:
1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1398 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1399 --with-curses=PATH use curses files in PATH
1400 --with-gsm=PATH use GSM files in PATH , or 'internal'
1401 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1402 --with-imap=PATH use UW IMAP Toolkit files in PATH
1403 --with-kde=PATH use KDE files in PATH
1404 --with-nbs=PATH use Network Broadcast Sound files in PATH
1405 --with-ncurses=PATH use ncurses files in PATH
1406 --with-netsnmp=PATH use Net-SNMP files in PATH
1407 --with-newt=PATH use newt files in PATH
1408 --with-odbc=PATH use unixODBC files in PATH
1409 --with-ogg=PATH use OGG files in PATH
1410 --with-osptk=PATH use OSP Toolkit files in PATH
1411 --with-oss=PATH use Open Sound System files in PATH
1412 --with-popt=PATH use popt files in PATH
1413 --with-postgres=PATH use PostgreSQL files in PATH
1414 --with-pri=PATH use ISDN PRI files in PATH
1415 --with-pwlib=PATH use PWlib files in PATH
1416 --with-qt=PATH use Qt files in PATH
1417 --with-radius=PATH use Radius Client files in PATH
1418 --with-speex=PATH use Speex files in PATH
1419 --with-sqlite=PATH use SQLite files in PATH
1420 --with-ssl=PATH use OpenSSL files in PATH
1421 --with-tds=PATH use FreeTDS files in PATH
1422 --with-termcap=PATH use Termcap files in PATH
1423 --with-tinfo=PATH use Term Info files in PATH
1424 --with-tonezone=PATH use tonezone files in PATH
1425 --with-vorbis=PATH use Vorbis files in PATH
1426 --with-vpb=PATH use Voicetronix API files in PATH
1427 --with-z=PATH use zlib files in PATH
1428 --with-zaptel=PATH use Zaptel files in PATH
1430 Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1437 CXX C++ compiler command
1438 CXXFLAGS C++ compiler flags
1439 CPP C preprocessor
1440 CXXCPP C++ preprocessor
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1445 _ACEOF
1446 ac_status=$?
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" || continue
1453 ac_builddir=.
1455 case "$ac_dir" in
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;;
1465 esac
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1471 case $srcdir in
1472 .) # We are building in place.
1473 ac_srcdir=.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1480 *) # Relative name.
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 esac
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1495 else
1496 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 fi || ac_status=$?
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1499 done
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1504 cat <<\_ACEOF
1505 configure
1506 generated by GNU Autoconf 2.59e
1508 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1509 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1510 This configure script is free software; the Free Software Foundation
1511 gives unlimited permission to copy, distribute and modify it.
1513 "Asterisk"
1514 _ACEOF
1515 exit
1517 cat >config.log <<_ACEOF
1518 This file contains any messages produced by compilers while
1519 running configure, to aid debugging if configure makes a mistake.
1521 It was created by $as_me, which was
1522 generated by GNU Autoconf 2.59e. Invocation command line was
1524 $ $0 $@
1526 _ACEOF
1527 exec 5>>config.log
1529 cat <<_ASUNAME
1530 ## --------- ##
1531 ## Platform. ##
1532 ## --------- ##
1534 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1535 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1536 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1537 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1538 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1540 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1541 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1543 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1544 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1545 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1546 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1547 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1548 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1549 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1551 _ASUNAME
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1556 IFS=$as_save_IFS
1557 test -z "$as_dir" && as_dir=.
1558 echo "PATH: $as_dir"
1559 done
1560 IFS=$as_save_IFS
1562 } >&5
1564 cat >&5 <<_ACEOF
1567 ## ----------- ##
1568 ## Core tests. ##
1569 ## ----------- ##
1571 _ACEOF
1574 # Keep a trace of the command line.
1575 # Strip out --no-create and --no-recursion so they do not pile up.
1576 # Strip out --silent because we don't want to record it for future runs.
1577 # Also quote any args containing shell meta-characters.
1578 # Make two passes to allow for proper duplicate-argument suppression.
1579 ac_configure_args=
1580 ac_configure_args0=
1581 ac_configure_args1=
1582 ac_must_keep_next=false
1583 for ac_pass in 1 2
1585 for ac_arg
1587 case $ac_arg in
1588 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1589 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1590 | -silent | --silent | --silen | --sile | --sil)
1591 continue ;;
1592 *\'*)
1593 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1594 esac
1595 case $ac_pass in
1596 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1598 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1599 if test $ac_must_keep_next = true; then
1600 ac_must_keep_next=false # Got value, back to normal.
1601 else
1602 case $ac_arg in
1603 *=* | --config-cache | -C | -disable-* | --disable-* \
1604 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1605 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1606 | -with-* | --with-* | -without-* | --without-* | --x)
1607 case "$ac_configure_args0 " in
1608 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1609 esac
1611 -* ) ac_must_keep_next=true ;;
1612 esac
1614 ac_configure_args="$ac_configure_args '$ac_arg'"
1616 esac
1617 done
1618 done
1619 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1620 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1622 # When interrupted or exit'd, cleanup temporary files, and complete
1623 # config.log. We remove comments because anyway the quotes in there
1624 # would cause problems or look ugly.
1625 # WARNING: Use '\'' to represent an apostrophe within the trap.
1626 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1627 trap 'exit_status=$?
1628 # Save into config.log some information that might help in debugging.
1630 echo
1632 cat <<\_ASBOX
1633 ## ---------------- ##
1634 ## Cache variables. ##
1635 ## ---------------- ##
1636 _ASBOX
1637 echo
1638 # The following way of writing the cache mishandles newlines in values,
1640 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1641 eval ac_val=\$$ac_var
1642 case $ac_val in #(
1643 *${as_nl}*)
1644 case $ac_var in #(
1645 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1646 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1647 esac
1648 case $ac_var in #(
1649 _ | IFS | as_nl) ;; #(
1650 *) $as_unset $ac_var ;;
1651 esac ;;
1652 esac
1653 done
1654 (set) 2>&1 |
1655 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1656 *${as_nl}ac_space=\ *)
1657 sed -n \
1658 "s/'\''/'\''\\\\'\'''\''/g;
1659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1660 ;; #(
1662 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1664 esac |
1665 sort
1667 echo
1669 cat <<\_ASBOX
1670 ## ----------------- ##
1671 ## Output variables. ##
1672 ## ----------------- ##
1673 _ASBOX
1674 echo
1675 for ac_var in $ac_subst_vars
1677 eval ac_val=\$$ac_var
1678 case $ac_val in
1679 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1680 esac
1681 echo "$ac_var='\''$ac_val'\''"
1682 done | sort
1683 echo
1685 if test -n "$ac_subst_files"; then
1686 cat <<\_ASBOX
1687 ## ------------------- ##
1688 ## File substitutions. ##
1689 ## ------------------- ##
1690 _ASBOX
1691 echo
1692 for ac_var in $ac_subst_files
1694 eval ac_val=\$$ac_var
1695 case $ac_val in
1696 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1697 esac
1698 echo "$ac_var='\''$ac_val'\''"
1699 done | sort
1700 echo
1703 if test -s confdefs.h; then
1704 cat <<\_ASBOX
1705 ## ----------- ##
1706 ## confdefs.h. ##
1707 ## ----------- ##
1708 _ASBOX
1709 echo
1710 cat confdefs.h
1711 echo
1713 test "$ac_signal" != 0 &&
1714 echo "$as_me: caught signal $ac_signal"
1715 echo "$as_me: exit $exit_status"
1716 } >&5
1717 rm -f core *.core core.conftest.* &&
1718 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1719 exit $exit_status
1721 for ac_signal in 1 2 13 15; do
1722 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1723 done
1724 ac_signal=0
1726 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1727 rm -f -r conftest* confdefs.h
1729 # Predefined preprocessor variables.
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_NAME "$PACKAGE_NAME"
1733 _ACEOF
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1738 _ACEOF
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1743 _ACEOF
1746 cat >>confdefs.h <<_ACEOF
1747 #define PACKAGE_STRING "$PACKAGE_STRING"
1748 _ACEOF
1751 cat >>confdefs.h <<_ACEOF
1752 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1753 _ACEOF
1756 # Let the site file select an alternate cache file if it wants to.
1757 # Prefer explicitly selected file to automatically selected ones.
1758 if test -n "$CONFIG_SITE"; then
1759 set x "$CONFIG_SITE"
1760 elif test "x$prefix" != xNONE; then
1761 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1762 else
1763 set x "$ac_default_prefix/share/config.site" \
1764 "$ac_default_prefix/etc/config.site"
1766 shift
1767 for ac_site_file
1769 if test -r "$ac_site_file"; then
1770 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1771 echo "$as_me: loading site script $ac_site_file" >&6;}
1772 sed 's/^/| /' "$ac_site_file" >&5
1773 . "$ac_site_file"
1775 done
1777 if test -r "$cache_file"; then
1778 # Some versions of bash will fail to source /dev/null (special
1779 # files actually), so we avoid doing that.
1780 if test -f "$cache_file"; then
1781 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1782 echo "$as_me: loading cache $cache_file" >&6;}
1783 case $cache_file in
1784 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1785 *) . "./$cache_file";;
1786 esac
1788 else
1789 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1790 echo "$as_me: creating cache $cache_file" >&6;}
1791 >$cache_file
1794 # Check that the precious variables saved in the cache have kept the same
1795 # value.
1796 ac_cache_corrupted=false
1797 for ac_var in $ac_precious_vars; do
1798 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1799 eval ac_new_set=\$ac_env_${ac_var}_set
1800 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1801 eval ac_new_val=\$ac_env_${ac_var}_value
1802 case $ac_old_set,$ac_new_set in
1803 set,)
1804 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1805 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1806 ac_cache_corrupted=: ;;
1807 ,set)
1808 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1809 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1810 ac_cache_corrupted=: ;;
1811 ,);;
1813 if test "x$ac_old_val" != "x$ac_new_val"; then
1814 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1815 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1816 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1817 echo "$as_me: former value: $ac_old_val" >&2;}
1818 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1819 echo "$as_me: current value: $ac_new_val" >&2;}
1820 ac_cache_corrupted=:
1821 fi;;
1822 esac
1823 # Pass precious variables to config.status.
1824 if test "$ac_new_set" = set; then
1825 case $ac_new_val in
1826 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1827 *) ac_arg=$ac_var=$ac_new_val ;;
1828 esac
1829 case " $ac_configure_args " in
1830 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1831 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1832 esac
1834 done
1835 if $ac_cache_corrupted; then
1836 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1837 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1838 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1839 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1840 { (exit 1); exit 1; }; }
1859 ac_ext=c
1860 ac_cpp='$CPP $CPPFLAGS'
1861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1867 # cross-compile macros
1868 ac_aux_dir=
1869 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1870 if test -f "$ac_dir/install-sh"; then
1871 ac_aux_dir=$ac_dir
1872 ac_install_sh="$ac_aux_dir/install-sh -c"
1873 break
1874 elif test -f "$ac_dir/install.sh"; then
1875 ac_aux_dir=$ac_dir
1876 ac_install_sh="$ac_aux_dir/install.sh -c"
1877 break
1878 elif test -f "$ac_dir/shtool"; then
1879 ac_aux_dir=$ac_dir
1880 ac_install_sh="$ac_aux_dir/shtool install -c"
1881 break
1883 done
1884 if test -z "$ac_aux_dir"; then
1885 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1886 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1887 { (exit 1); exit 1; }; }
1890 # These three variables are undocumented and unsupported,
1891 # and are intended to be withdrawn in a future Autoconf release.
1892 # They can cause serious problems if a builder's source tree is in a directory
1893 # whose full name contains unusual characters.
1894 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1895 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1896 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1899 # Make sure we can run config.sub.
1900 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1901 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1902 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1903 { (exit 1); exit 1; }; }
1905 { echo "$as_me:$LINENO: checking build system type" >&5
1906 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1907 if test "${ac_cv_build+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910 ac_build_alias=$build_alias
1911 test "x$ac_build_alias" = x &&
1912 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1913 test "x$ac_build_alias" = x &&
1914 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1915 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1916 { (exit 1); exit 1; }; }
1917 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1918 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1919 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1920 { (exit 1); exit 1; }; }
1923 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1924 echo "${ECHO_T}$ac_cv_build" >&6; }
1925 case $ac_cv_build in
1926 *-*-*) ;;
1927 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1928 echo "$as_me: error: invalid value of canonical build" >&2;}
1929 { (exit 1); exit 1; }; };;
1930 esac
1931 build=$ac_cv_build
1932 ac_save_IFS=$IFS; IFS='-'
1933 set x $ac_cv_build
1934 shift
1935 build_cpu=$1
1936 build_vendor=$2
1937 shift; shift
1938 # Remember, the first character of IFS is used to create $*,
1939 # except with old shells:
1940 build_os=$*
1941 IFS=$ac_save_IFS
1942 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1945 { echo "$as_me:$LINENO: checking host system type" >&5
1946 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1947 if test "${ac_cv_host+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 if test "x$host_alias" = x; then
1951 ac_cv_host=$ac_cv_build
1952 else
1953 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1954 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1955 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1956 { (exit 1); exit 1; }; }
1960 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1961 echo "${ECHO_T}$ac_cv_host" >&6; }
1962 case $ac_cv_host in
1963 *-*-*) ;;
1964 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1965 echo "$as_me: error: invalid value of canonical host" >&2;}
1966 { (exit 1); exit 1; }; };;
1967 esac
1968 host=$ac_cv_host
1969 ac_save_IFS=$IFS; IFS='-'
1970 set x $ac_cv_host
1971 shift
1972 host_cpu=$1
1973 host_vendor=$2
1974 shift; shift
1975 # Remember, the first character of IFS is used to create $*,
1976 # except with old shells:
1977 host_os=$*
1978 IFS=$ac_save_IFS
1979 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1982 { echo "$as_me:$LINENO: checking target system type" >&5
1983 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1984 if test "${ac_cv_target+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987 if test "x$target_alias" = x; then
1988 ac_cv_target=$ac_cv_host
1989 else
1990 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1991 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1992 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1993 { (exit 1); exit 1; }; }
1997 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1998 echo "${ECHO_T}$ac_cv_target" >&6; }
1999 case $ac_cv_target in
2000 *-*-*) ;;
2001 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2002 echo "$as_me: error: invalid value of canonical target" >&2;}
2003 { (exit 1); exit 1; }; };;
2004 esac
2005 target=$ac_cv_target
2006 ac_save_IFS=$IFS; IFS='-'
2007 set x $ac_cv_target
2008 shift
2009 target_cpu=$1
2010 target_vendor=$2
2011 shift; shift
2012 # Remember, the first character of IFS is used to create $*,
2013 # except with old shells:
2014 target_os=$*
2015 IFS=$ac_save_IFS
2016 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2019 # The aliases save the names the user supplied, while $host etc.
2020 # will get canonicalized.
2021 test -n "$target_alias" &&
2022 test "$program_prefix$program_suffix$program_transform_name" = \
2023 NONENONEs,x,x, &&
2024 program_prefix=${target_alias}-
2026 # check existence of the package
2029 # specify output header file
2030 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2036 case "${host}" in
2037 *freebsd*)
2038 ac_default_prefix=/usr/local
2041 ac_default_prefix=/usr
2042 if test ${sysconfdir} = '${prefix}/etc'; then
2043 sysconfdir=/etc
2045 if test ${mandir} = '${prefix}/man'; then
2046 mandir=/usr/share/man
2049 esac
2051 if test ${localstatedir} = '${prefix}/var'; then
2052 localstatedir=/var
2055 ### ** Platform.
2057 cat >>confdefs.h <<_ACEOF
2058 #define PBX_PLATFORM "${host}"
2059 _ACEOF
2062 cat >>confdefs.h <<_ACEOF
2063 #define PBX_CPU "${host_cpu}"
2064 _ACEOF
2067 cat >>confdefs.h <<_ACEOF
2068 #define PBX_VENDOR "${host_vendor}"
2069 _ACEOF
2072 cat >>confdefs.h <<_ACEOF
2073 #define PBX_OS "${host_os}"
2074 _ACEOF
2077 # export some useful defines
2078 PBX_PLATFORM=${host}
2079 PBX_CPU=${host_cpu}
2080 PBX_VENDOR=${host_vendor}
2081 PBX_OS=${host_os}
2087 # check for uname
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}uname; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_path_UNAME+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 case $UNAME in
2097 [\\/]* | ?:[\\/]*)
2098 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2108 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 break 2
2112 done
2113 done
2114 IFS=$as_save_IFS
2117 esac
2119 UNAME=$ac_cv_path_UNAME
2120 if test -n "$UNAME"; then
2121 { echo "$as_me:$LINENO: result: $UNAME" >&5
2122 echo "${ECHO_T}$UNAME" >&6; }
2123 else
2124 { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2130 if test -z "$ac_cv_path_UNAME"; then
2131 ac_pt_UNAME=$UNAME
2132 # Extract the first word of "uname", so it can be a program name with args.
2133 set dummy uname; ac_word=$2
2134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2136 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139 case $ac_pt_UNAME in
2140 [\\/]* | ?:[\\/]*)
2141 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2
2155 done
2156 done
2157 IFS=$as_save_IFS
2160 esac
2162 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2163 if test -n "$ac_pt_UNAME"; then
2164 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2165 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2166 else
2167 { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2171 if test "x$ac_pt_UNAME" = x; then
2172 UNAME="No"
2173 else
2174 case $cross_compiling:$ac_tool_warned in
2175 yes:)
2176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2177 whose name does not start with the host triplet. If you think this
2178 configuration is useful to you, please write to autoconf@gnu.org." >&5
2179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2180 whose name does not start with the host triplet. If you think this
2181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2182 ac_tool_warned=yes ;;
2183 esac
2184 UNAME=$ac_pt_UNAME
2186 else
2187 UNAME="$ac_cv_path_UNAME"
2190 if test ! x"${UNAME}" = xNo; then
2191 PBX_OSREV=$(${UNAME} -r)
2195 # guest OS type
2196 case "${host}" in
2197 cygwin*|mingw*|windows*|winnt)
2199 cat >>confdefs.h <<\_ACEOF
2200 #define Win32 1
2201 _ACEOF
2203 PBX_OSTYPE="CYGWIN"
2204 # this is ugly - KPF
2205 OSISWIN32=1
2208 *linux*)
2210 cat >>confdefs.h <<\_ACEOF
2211 #define Linux 1
2212 _ACEOF
2214 PBX_OSTYPE="Linux"
2216 *netbsd*)
2218 cat >>confdefs.h <<\_ACEOF
2219 #define NetBSD 1
2220 _ACEOF
2222 PBX_OSTYPE="NetBSD"
2224 *freebsd*)
2226 cat >>confdefs.h <<\_ACEOF
2227 #define FreeBSD 1
2228 _ACEOF
2230 PBX_OSTYPE="FreeBSD"
2231 # XXX temporary hack to let FreeBSD use the default paths
2232 # for local stuff. We need a better solution.
2233 if test x"${CPPFLAGS}" = x; then
2234 CPPFLAGS="-I/usr/local/include"
2236 if test x"${LDFLAGS}" = x; then
2237 LDFLAGS="-L/usr/local/lib"
2240 *openbsd*)
2242 cat >>confdefs.h <<\_ACEOF
2243 #define OpenBSD 1
2244 _ACEOF
2246 PBX_OSTYPE="OpenBSD"
2248 *sun*)
2250 cat >>confdefs.h <<\_ACEOF
2251 #define SunOS 1
2252 _ACEOF
2254 PBX_OSTYPE="SunOS"
2256 *darwin*)
2258 cat >>confdefs.h <<\_ACEOF
2259 #define Darwin 1
2260 _ACEOF
2262 PBX_OSTYPE="Darwin"
2266 cat >>confdefs.h <<\_ACEOF
2267 #define Unix 1
2268 _ACEOF
2270 PBX_OSTYPE="Unix"
2272 esac
2275 # This needs to be before any macros that use the C compiler
2277 cat >>confdefs.h <<\_ACEOF
2278 #define _GNU_SOURCE 1
2279 _ACEOF
2289 # cross-compile checks
2290 if test x"${build}" != x"${host}";
2291 then
2292 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2294 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC="$CC" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2310 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 break 2
2314 done
2315 done
2316 IFS=$as_save_IFS
2320 CC=$ac_cv_prog_CC
2321 if test -n "$CC"; then
2322 { echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6; }
2324 else
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2331 if test -z "$ac_cv_prog_CC"; then
2332 ac_ct_CC=$CC
2333 # Extract the first word of "gcc", so it can be a program name with args.
2334 set dummy gcc; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340 if test -n "$ac_ct_CC"; then
2341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_ac_ct_CC="gcc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2354 done
2355 done
2356 IFS=$as_save_IFS
2360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2361 if test -n "$ac_ct_CC"; then
2362 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2363 echo "${ECHO_T}$ac_ct_CC" >&6; }
2364 else
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2369 if test "x$ac_ct_CC" = x; then
2370 CC=":"
2371 else
2372 case $cross_compiling:$ac_tool_warned in
2373 yes:)
2374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet. If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
2377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet. If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2380 ac_tool_warned=yes ;;
2381 esac
2382 CC=$ac_ct_CC
2384 else
2385 CC="$ac_cv_prog_CC"
2388 if test -n "$ac_tool_prefix"; then
2389 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2390 set dummy ${ac_tool_prefix}g++; ac_word=$2
2391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2393 if test "${ac_cv_prog_CXX+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 else
2396 if test -n "$CXX"; then
2397 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2398 else
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2406 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 break 2
2410 done
2411 done
2412 IFS=$as_save_IFS
2416 CXX=$ac_cv_prog_CXX
2417 if test -n "$CXX"; then
2418 { echo "$as_me:$LINENO: result: $CXX" >&5
2419 echo "${ECHO_T}$CXX" >&6; }
2420 else
2421 { echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6; }
2427 if test -z "$ac_cv_prog_CXX"; then
2428 ac_ct_CXX=$CXX
2429 # Extract the first word of "g++", so it can be a program name with args.
2430 set dummy g++; ac_word=$2
2431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 if test -n "$ac_ct_CXX"; then
2437 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_ac_ct_CXX="g++"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2450 done
2451 done
2452 IFS=$as_save_IFS
2456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2457 if test -n "$ac_ct_CXX"; then
2458 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2459 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2460 else
2461 { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2465 if test "x$ac_ct_CXX" = x; then
2466 CXX=":"
2467 else
2468 case $cross_compiling:$ac_tool_warned in
2469 yes:)
2470 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2471 whose name does not start with the host triplet. If you think this
2472 configuration is useful to you, please write to autoconf@gnu.org." >&5
2473 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet. If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2476 ac_tool_warned=yes ;;
2477 esac
2478 CXX=$ac_ct_CXX
2480 else
2481 CXX="$ac_cv_prog_CXX"
2484 if test -n "$ac_tool_prefix"; then
2485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2486 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_RANLIB+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492 if test -n "$RANLIB"; then
2493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2506 done
2507 done
2508 IFS=$as_save_IFS
2512 RANLIB=$ac_cv_prog_RANLIB
2513 if test -n "$RANLIB"; then
2514 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2515 echo "${ECHO_T}$RANLIB" >&6; }
2516 else
2517 { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2523 if test -z "$ac_cv_prog_RANLIB"; then
2524 ac_ct_RANLIB=$RANLIB
2525 # Extract the first word of "ranlib", so it can be a program name with args.
2526 set dummy ranlib; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532 if test -n "$ac_ct_RANLIB"; then
2533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_ac_ct_RANLIB="ranlib"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2546 done
2547 done
2548 IFS=$as_save_IFS
2552 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2553 if test -n "$ac_ct_RANLIB"; then
2554 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2555 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2556 else
2557 { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2561 if test "x$ac_ct_RANLIB" = x; then
2562 RANLIB=":"
2563 else
2564 case $cross_compiling:$ac_tool_warned in
2565 yes:)
2566 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2567 whose name does not start with the host triplet. If you think this
2568 configuration is useful to you, please write to autoconf@gnu.org." >&5
2569 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2570 whose name does not start with the host triplet. If you think this
2571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2572 ac_tool_warned=yes ;;
2573 esac
2574 RANLIB=$ac_ct_RANLIB
2576 else
2577 RANLIB="$ac_cv_prog_RANLIB"
2580 if test -n "$ac_tool_prefix"; then
2581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2582 set dummy ${ac_tool_prefix}ar; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_AR+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588 if test -n "$AR"; then
2589 ac_cv_prog_AR="$AR" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_AR="${ac_tool_prefix}ar"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2602 done
2603 done
2604 IFS=$as_save_IFS
2608 AR=$ac_cv_prog_AR
2609 if test -n "$AR"; then
2610 { echo "$as_me:$LINENO: result: $AR" >&5
2611 echo "${ECHO_T}$AR" >&6; }
2612 else
2613 { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2619 if test -z "$ac_cv_prog_AR"; then
2620 ac_ct_AR=$AR
2621 # Extract the first word of "ar", so it can be a program name with args.
2622 set dummy ar; ac_word=$2
2623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628 if test -n "$ac_ct_AR"; then
2629 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_ac_ct_AR="ar"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2642 done
2643 done
2644 IFS=$as_save_IFS
2648 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2649 if test -n "$ac_ct_AR"; then
2650 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2651 echo "${ECHO_T}$ac_ct_AR" >&6; }
2652 else
2653 { echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6; }
2657 if test "x$ac_ct_AR" = x; then
2658 AR=":"
2659 else
2660 case $cross_compiling:$ac_tool_warned in
2661 yes:)
2662 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2663 whose name does not start with the host triplet. If you think this
2664 configuration is useful to you, please write to autoconf@gnu.org." >&5
2665 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet. If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2668 ac_tool_warned=yes ;;
2669 esac
2670 AR=$ac_ct_AR
2672 else
2673 AR="$ac_cv_prog_AR"
2677 if test x"${PBX_OSTYPE}" = xWin32;
2678 then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}nm; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_NM+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if test -n "$NM"; then
2688 ac_cv_prog_NM="$NM" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_NM="${ac_tool_prefix}nm"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2703 IFS=$as_save_IFS
2707 NM=$ac_cv_prog_NM
2708 if test -n "$NM"; then
2709 { echo "$as_me:$LINENO: result: $NM" >&5
2710 echo "${ECHO_T}$NM" >&6; }
2711 else
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2718 if test -z "$ac_cv_prog_NM"; then
2719 ac_ct_NM=$NM
2720 # Extract the first word of "nm", so it can be a program name with args.
2721 set dummy nm; ac_word=$2
2722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 if test -n "$ac_ct_NM"; then
2728 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_ac_ct_NM="nm"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2748 if test -n "$ac_ct_NM"; then
2749 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2750 echo "${ECHO_T}$ac_ct_NM" >&6; }
2751 else
2752 { echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6; }
2756 if test "x$ac_ct_NM" = x; then
2757 NM=":"
2758 else
2759 case $cross_compiling:$ac_tool_warned in
2760 yes:)
2761 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2762 whose name does not start with the host triplet. If you think this
2763 configuration is useful to you, please write to autoconf@gnu.org." >&5
2764 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2765 whose name does not start with the host triplet. If you think this
2766 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2767 ac_tool_warned=yes ;;
2768 esac
2769 NM=$ac_ct_NM
2771 else
2772 NM="$ac_cv_prog_NM"
2775 if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}windres; ac_word=$2
2778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_WINDRES+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783 if test -n "$WINDRES"; then
2784 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2797 done
2798 done
2799 IFS=$as_save_IFS
2803 WINDRES=$ac_cv_prog_WINDRES
2804 if test -n "$WINDRES"; then
2805 { echo "$as_me:$LINENO: result: $WINDRES" >&5
2806 echo "${ECHO_T}$WINDRES" >&6; }
2807 else
2808 { echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6; }
2814 if test -z "$ac_cv_prog_WINDRES"; then
2815 ac_ct_WINDRES=$WINDRES
2816 # Extract the first word of "windres", so it can be a program name with args.
2817 set dummy windres; ac_word=$2
2818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2820 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 if test -n "$ac_ct_WINDRES"; then
2824 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_ac_ct_WINDRES="windres"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2837 done
2838 done
2839 IFS=$as_save_IFS
2843 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
2844 if test -n "$ac_ct_WINDRES"; then
2845 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
2846 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
2847 else
2848 { echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6; }
2852 if test "x$ac_ct_WINDRES" = x; then
2853 WINDRES=":"
2854 else
2855 case $cross_compiling:$ac_tool_warned in
2856 yes:)
2857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2858 whose name does not start with the host triplet. If you think this
2859 configuration is useful to you, please write to autoconf@gnu.org." >&5
2860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2861 whose name does not start with the host triplet. If you think this
2862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2863 ac_tool_warned=yes ;;
2864 esac
2865 WINDRES=$ac_ct_WINDRES
2867 else
2868 WINDRES="$ac_cv_prog_WINDRES"
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
2874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2876 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -n "$DLLWRAP"; then
2880 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2895 IFS=$as_save_IFS
2899 DLLWRAP=$ac_cv_prog_DLLWRAP
2900 if test -n "$DLLWRAP"; then
2901 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
2902 echo "${ECHO_T}$DLLWRAP" >&6; }
2903 else
2904 { echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6; }
2910 if test -z "$ac_cv_prog_DLLWRAP"; then
2911 ac_ct_DLLWRAP=$DLLWRAP
2912 # Extract the first word of "dllwrap", so it can be a program name with args.
2913 set dummy dllwrap; ac_word=$2
2914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$ac_ct_DLLWRAP"; then
2920 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2933 done
2934 done
2935 IFS=$as_save_IFS
2939 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
2940 if test -n "$ac_ct_DLLWRAP"; then
2941 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
2942 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
2943 else
2944 { echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6; }
2948 if test "x$ac_ct_DLLWRAP" = x; then
2949 DLLWRAP=":"
2950 else
2951 case $cross_compiling:$ac_tool_warned in
2952 yes:)
2953 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2954 whose name does not start with the host triplet. If you think this
2955 configuration is useful to you, please write to autoconf@gnu.org." >&5
2956 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2957 whose name does not start with the host triplet. If you think this
2958 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2959 ac_tool_warned=yes ;;
2960 esac
2961 DLLWRAP=$ac_ct_DLLWRAP
2963 else
2964 DLLWRAP="$ac_cv_prog_DLLWRAP"
2968 crossCompile="Yes"
2971 # Checks for programs.
2972 ac_ext=c
2973 ac_cpp='$CPP $CPPFLAGS'
2974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977 if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2979 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2982 if test "${ac_cv_prog_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3001 IFS=$as_save_IFS
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 { echo "$as_me:$LINENO: result: $CC" >&5
3008 echo "${ECHO_T}$CC" >&6; }
3009 else
3010 { echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6; }
3016 if test -z "$ac_cv_prog_CC"; then
3017 ac_ct_CC=$CC
3018 # Extract the first word of "gcc", so it can be a program name with args.
3019 set dummy gcc; ac_word=$2
3020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_ac_ct_CC="gcc"
3036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3039 done
3040 done
3041 IFS=$as_save_IFS
3045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3048 echo "${ECHO_T}$ac_ct_CC" >&6; }
3049 else
3050 { echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6; }
3054 if test "x$ac_ct_CC" = x; then
3055 CC=""
3056 else
3057 case $cross_compiling:$ac_tool_warned in
3058 yes:)
3059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3060 whose name does not start with the host triplet. If you think this
3061 configuration is useful to you, please write to autoconf@gnu.org." >&5
3062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3063 whose name does not start with the host triplet. If you think this
3064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3065 ac_tool_warned=yes ;;
3066 esac
3067 CC=$ac_ct_CC
3069 else
3070 CC="$ac_cv_prog_CC"
3073 if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}cc; ac_word=$2
3077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3079 if test "${ac_cv_prog_CC+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_CC="${ac_tool_prefix}cc"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3096 done
3097 done
3098 IFS=$as_save_IFS
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { echo "$as_me:$LINENO: result: $CC" >&5
3105 echo "${ECHO_T}$CC" >&6; }
3106 else
3107 { echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6; }
3114 if test -z "$CC"; then
3115 # Extract the first word of "cc", so it can be a program name with args.
3116 set dummy cc; ac_word=$2
3117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 ac_prog_rejected=no
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3134 ac_prog_rejected=yes
3135 continue
3137 ac_cv_prog_CC="cc"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3141 done
3142 done
3143 IFS=$as_save_IFS
3145 if test $ac_prog_rejected = yes; then
3146 # We found a bogon in the path, so make sure we never use it.
3147 set dummy $ac_cv_prog_CC
3148 shift
3149 if test $# != 0; then
3150 # We chose a different compiler from the bogus one.
3151 # However, it has the same basename, so the bogon will be chosen
3152 # first if we set CC to just the basename; use the full file name.
3153 shift
3154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161 { echo "$as_me:$LINENO: result: $CC" >&5
3162 echo "${ECHO_T}$CC" >&6; }
3163 else
3164 { echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6; }
3170 if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 for ac_prog in cl.exe
3174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3195 done
3196 done
3197 IFS=$as_save_IFS
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203 { echo "$as_me:$LINENO: result: $CC" >&5
3204 echo "${ECHO_T}$CC" >&6; }
3205 else
3206 { echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6; }
3211 test -n "$CC" && break
3212 done
3214 if test -z "$CC"; then
3215 ac_ct_CC=$CC
3216 for ac_prog in cl.exe
3218 # Extract the first word of "$ac_prog", so it can be a program name with args.
3219 set dummy $ac_prog; ac_word=$2
3220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225 if test -n "$ac_ct_CC"; then
3226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_ac_ct_CC="$ac_prog"
3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3239 done
3240 done
3241 IFS=$as_save_IFS
3245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246 if test -n "$ac_ct_CC"; then
3247 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3248 echo "${ECHO_T}$ac_ct_CC" >&6; }
3249 else
3250 { echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6; }
3255 test -n "$ac_ct_CC" && break
3256 done
3258 if test "x$ac_ct_CC" = x; then
3259 CC=""
3260 else
3261 case $cross_compiling:$ac_tool_warned in
3262 yes:)
3263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3264 whose name does not start with the host triplet. If you think this
3265 configuration is useful to you, please write to autoconf@gnu.org." >&5
3266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3267 whose name does not start with the host triplet. If you think this
3268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3269 ac_tool_warned=yes ;;
3270 esac
3271 CC=$ac_ct_CC
3278 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3279 See \`config.log' for more details." >&5
3280 echo "$as_me: error: no acceptable C compiler found in \$PATH
3281 See \`config.log' for more details." >&2;}
3282 { (exit 1); exit 1; }; }
3284 # Provide some information about the compiler.
3285 echo "$as_me:$LINENO: checking for C compiler version" >&5
3286 ac_compiler=`set X $ac_compile; echo $2`
3287 { (ac_try="$ac_compiler --version >&5"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compiler --version >&5") 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }
3297 { (ac_try="$ac_compiler -v >&5"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_compiler -v >&5") 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }
3307 { (ac_try="$ac_compiler -V >&5"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_compiler -V >&5") 2>&5
3314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }
3318 cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h. */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3326 main ()
3330 return 0;
3332 _ACEOF
3333 ac_clean_files_save=$ac_clean_files
3334 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3335 # Try to create an executable without -o first, disregard a.out.
3336 # It will help us diagnose broken compilers, and finding out an intuition
3337 # of exeext.
3338 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3339 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3340 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3342 # List of possible output files, starting from the most likely.
3343 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3344 # only as a last resort. b.out is created by i960 compilers.
3345 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3347 # The IRIX 6 linker writes into existing files which may not be
3348 # executable, retaining their permissions. Remove them first so a
3349 # subsequent execution test works.
3350 ac_rmfiles=
3351 for ac_file in $ac_files
3353 case $ac_file in
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3355 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3356 esac
3357 done
3358 rm -f $ac_rmfiles
3360 if { (ac_try="$ac_link_default"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_link_default") 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; then
3370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3372 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3373 # so that the user can short-circuit this test for compilers unknown to
3374 # Autoconf.
3375 for ac_file in $ac_files
3377 test -f "$ac_file" || continue
3378 case $ac_file in
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3381 [ab].out )
3382 # We found the default executable, but exeext='' is most
3383 # certainly right.
3384 break;;
3385 *.* )
3386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3387 then :; else
3388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 # We set ac_cv_exeext here because the later test for it is not
3391 # safe: cross compilers may not add the suffix if given an `-o'
3392 # argument, so we may need to know it at that point already.
3393 # Even if this section looks crufty: it has the advantage of
3394 # actually working.
3395 break;;
3397 break;;
3398 esac
3399 done
3400 test "$ac_cv_exeext" = no && ac_cv_exeext=
3402 else
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3407 See \`config.log' for more details." >&5
3408 echo "$as_me: error: C compiler cannot create executables
3409 See \`config.log' for more details." >&2;}
3410 { (exit 77); exit 77; }; }
3413 ac_exeext=$ac_cv_exeext
3414 { echo "$as_me:$LINENO: result: $ac_file" >&5
3415 echo "${ECHO_T}$ac_file" >&6; }
3417 # Check that the compiler produces executables we can run. If not, either
3418 # the compiler is broken, or we cross compile.
3419 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3420 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3421 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3422 # If not cross compiling, check that we can run a simple program.
3423 if test "$cross_compiling" != yes; then
3424 if { ac_try='./$ac_file'
3425 { (case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_try") 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 cross_compiling=no
3435 else
3436 if test "$cross_compiling" = maybe; then
3437 cross_compiling=yes
3438 else
3439 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3440 If you meant to cross compile, use \`--host'.
3441 See \`config.log' for more details." >&5
3442 echo "$as_me: error: cannot run C compiled programs.
3443 If you meant to cross compile, use \`--host'.
3444 See \`config.log' for more details." >&2;}
3445 { (exit 1); exit 1; }; }
3449 { echo "$as_me:$LINENO: result: yes" >&5
3450 echo "${ECHO_T}yes" >&6; }
3452 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3453 ac_clean_files=$ac_clean_files_save
3454 # Check that the compiler produces executables we can run. If not, either
3455 # the compiler is broken, or we cross compile.
3456 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3457 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3458 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3459 echo "${ECHO_T}$cross_compiling" >&6; }
3461 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3462 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3463 if { (ac_try="$ac_link"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_link") 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; then
3473 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3474 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3475 # work properly (i.e., refer to `conftest.exe'), while it won't with
3476 # `rm'.
3477 for ac_file in conftest.exe conftest conftest.*; do
3478 test -f "$ac_file" || continue
3479 case $ac_file in
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3481 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3482 break;;
3483 * ) break;;
3484 esac
3485 done
3486 else
3487 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3488 See \`config.log' for more details." >&5
3489 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3490 See \`config.log' for more details." >&2;}
3491 { (exit 1); exit 1; }; }
3494 rm -f conftest$ac_cv_exeext
3495 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3496 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3498 rm -f conftest.$ac_ext
3499 EXEEXT=$ac_cv_exeext
3500 ac_exeext=$EXEEXT
3501 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3502 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3503 if test "${ac_cv_objext+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506 cat >conftest.$ac_ext <<_ACEOF
3507 /* confdefs.h. */
3508 _ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3514 main ()
3518 return 0;
3520 _ACEOF
3521 rm -f conftest.o conftest.obj
3522 if { (ac_try="$ac_compile"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_compile") 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; then
3532 for ac_file in conftest.o conftest.obj conftest.*; do
3533 test -f "$ac_file" || continue;
3534 case $ac_file in
3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3536 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3537 break;;
3538 esac
3539 done
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3545 See \`config.log' for more details." >&5
3546 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3547 See \`config.log' for more details." >&2;}
3548 { (exit 1); exit 1; }; }
3551 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3553 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3554 echo "${ECHO_T}$ac_cv_objext" >&6; }
3555 OBJEXT=$ac_cv_objext
3556 ac_objext=$OBJEXT
3557 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3558 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3559 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h. */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3570 main ()
3572 #ifndef __GNUC__
3573 choke me
3574 #endif
3577 return 0;
3579 _ACEOF
3580 rm -f conftest.$ac_objext
3581 if { (ac_try="$ac_compile"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_compile") 2>conftest.er1
3588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } &&
3594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3595 { (case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_try") 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_try") 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 ac_compiler_gnu=yes
3615 else
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 ac_compiler_gnu=no
3622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3626 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3627 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3628 GCC=`test $ac_compiler_gnu = yes && echo yes`
3629 ac_test_CFLAGS=${CFLAGS+set}
3630 ac_save_CFLAGS=$CFLAGS
3631 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3632 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3633 if test "${ac_cv_prog_cc_g+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636 ac_save_c_werror_flag=$ac_c_werror_flag
3637 ac_c_werror_flag=yes
3638 ac_cv_prog_cc_g=no
3639 CFLAGS="-g"
3640 cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3648 main ()
3652 return 0;
3654 _ACEOF
3655 rm -f conftest.$ac_objext
3656 if { (ac_try="$ac_compile"
3657 case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_compile") 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3670 { (case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_try") 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; } &&
3679 { ac_try='test -s conftest.$ac_objext'
3680 { (case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3683 esac
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_try") 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 ac_cv_prog_cc_g=yes
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 CFLAGS=""
3695 cat >conftest.$ac_ext <<_ACEOF
3696 /* confdefs.h. */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3703 main ()
3707 return 0;
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (ac_try="$ac_compile"
3712 case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_compile") 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3725 { (case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_try") 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; } &&
3734 { ac_try='test -s conftest.$ac_objext'
3735 { (case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_try") 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3745 else
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3749 ac_c_werror_flag=$ac_save_c_werror_flag
3750 CFLAGS="-g"
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3759 main ()
3763 return 0;
3765 _ACEOF
3766 rm -f conftest.$ac_objext
3767 if { (ac_try="$ac_compile"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_compile") 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } &&
3780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3781 { (case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_try") 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try='test -s conftest.$ac_objext'
3791 { (case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_try") 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_prog_cc_g=yes
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 ac_c_werror_flag=$ac_save_c_werror_flag
3817 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3818 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3819 if test "$ac_test_CFLAGS" = set; then
3820 CFLAGS=$ac_save_CFLAGS
3821 elif test $ac_cv_prog_cc_g = yes; then
3822 if test "$GCC" = yes; then
3823 CFLAGS="-g -O2"
3824 else
3825 CFLAGS="-g"
3827 else
3828 if test "$GCC" = yes; then
3829 CFLAGS="-O2"
3830 else
3831 CFLAGS=
3834 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3835 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3836 if test "${ac_cv_prog_cc_c89+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839 ac_cv_prog_cc_c89=no
3840 ac_save_CC=$CC
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #include <stdarg.h>
3848 #include <stdio.h>
3849 #include <sys/types.h>
3850 #include <sys/stat.h>
3851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3852 struct buf { int x; };
3853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3854 static char *e (p, i)
3855 char **p;
3856 int i;
3858 return p[i];
3860 static char *f (char * (*g) (char **, int), char **p, ...)
3862 char *s;
3863 va_list v;
3864 va_start (v,p);
3865 s = g (p, va_arg (v,int));
3866 va_end (v);
3867 return s;
3870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3871 function prototypes and stuff, but not '\xHH' hex character constants.
3872 These don't provoke an error unfortunately, instead are silently treated
3873 as 'x'. The following induces an error, until -std is added to get
3874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3875 array size at least. It's necessary to write '\x00'==0 to get something
3876 that's true only with -std. */
3877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3879 int test (int i, double x);
3880 struct s1 {int (*f) (int a);};
3881 struct s2 {int (*f) (double a);};
3882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3883 int argc;
3884 char **argv;
3886 main ()
3888 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3890 return 0;
3892 _ACEOF
3893 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3894 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3896 CC="$ac_save_CC $ac_arg"
3897 rm -f conftest.$ac_objext
3898 if { (ac_try="$ac_compile"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3912 { (case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915 esac
3916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_try") 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_try") 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; }; then
3931 ac_cv_prog_cc_c89=$ac_arg
3932 else
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3939 rm -f conftest.err conftest.$ac_objext
3940 test "x$ac_cv_prog_cc_c89" != "xno" && break
3941 done
3942 rm -f conftest.$ac_ext
3943 CC=$ac_save_CC
3946 # AC_CACHE_VAL
3947 case "x$ac_cv_prog_cc_c89" in
3949 { echo "$as_me:$LINENO: result: none needed" >&5
3950 echo "${ECHO_T}none needed" >&6; } ;;
3951 xno)
3952 { echo "$as_me:$LINENO: result: unsupported" >&5
3953 echo "${ECHO_T}unsupported" >&6; } ;;
3955 CC="$CC $ac_cv_prog_cc_c89"
3956 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3957 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3958 esac
3961 ac_ext=c
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967 ac_ext=cpp
3968 ac_cpp='$CXXCPP $CPPFLAGS'
3969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3972 if test -z "$CXX"; then
3973 if test -n "$CCC"; then
3974 CXX=$CCC
3975 else
3976 if test -n "$ac_tool_prefix"; then
3977 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3983 if test "${ac_cv_prog_CXX+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 if test -n "$CXX"; then
3987 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
4000 done
4001 done
4002 IFS=$as_save_IFS
4006 CXX=$ac_cv_prog_CXX
4007 if test -n "$CXX"; then
4008 { echo "$as_me:$LINENO: result: $CXX" >&5
4009 echo "${ECHO_T}$CXX" >&6; }
4010 else
4011 { echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6; }
4016 test -n "$CXX" && break
4017 done
4019 if test -z "$CXX"; then
4020 ac_ct_CXX=$CXX
4021 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4027 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030 if test -n "$ac_ct_CXX"; then
4031 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4040 ac_cv_prog_ac_ct_CXX="$ac_prog"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4044 done
4045 done
4046 IFS=$as_save_IFS
4050 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4051 if test -n "$ac_ct_CXX"; then
4052 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4053 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4054 else
4055 { echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6; }
4060 test -n "$ac_ct_CXX" && break
4061 done
4063 if test "x$ac_ct_CXX" = x; then
4064 CXX="g++"
4065 else
4066 case $cross_compiling:$ac_tool_warned in
4067 yes:)
4068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4069 whose name does not start with the host triplet. If you think this
4070 configuration is useful to you, please write to autoconf@gnu.org." >&5
4071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4072 whose name does not start with the host triplet. If you think this
4073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4074 ac_tool_warned=yes ;;
4075 esac
4076 CXX=$ac_ct_CXX
4082 # Provide some information about the compiler.
4083 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4084 ac_compiler=`set X $ac_compile; echo $2`
4085 { (ac_try="$ac_compiler --version >&5"
4086 case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_compiler --version >&5") 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }
4095 { (ac_try="$ac_compiler -v >&5"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compiler -v >&5") 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }
4105 { (ac_try="$ac_compiler -V >&5"
4106 case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109 esac
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compiler -V >&5") 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }
4116 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4117 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4118 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4129 main ()
4131 #ifndef __GNUC__
4132 choke me
4133 #endif
4136 return 0;
4138 _ACEOF
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4141 case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_compile") 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4154 { (case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_try") 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_try") 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 ac_compiler_gnu=yes
4174 else
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4178 ac_compiler_gnu=no
4181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4182 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4185 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4186 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4187 GXX=`test $ac_compiler_gnu = yes && echo yes`
4188 ac_test_CXXFLAGS=${CXXFLAGS+set}
4189 ac_save_CXXFLAGS=$CXXFLAGS
4190 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4191 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4192 if test "${ac_cv_prog_cxx_g+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4196 ac_cxx_werror_flag=yes
4197 ac_cv_prog_cxx_g=no
4198 CXXFLAGS="-g"
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4207 main ()
4211 return 0;
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4216 case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232 esac
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242 esac
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_try") 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_prog_cxx_g=yes
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 CXXFLAGS=""
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4262 main ()
4266 return 0;
4268 _ACEOF
4269 rm -f conftest.$ac_objext
4270 if { (ac_try="$ac_compile"
4271 case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274 esac
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_compile") 2>conftest.er1
4277 ac_status=$?
4278 grep -v '^ *+' conftest.er1 >conftest.err
4279 rm -f conftest.er1
4280 cat conftest.err >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4284 { (case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_try") 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; } &&
4293 { ac_try='test -s conftest.$ac_objext'
4294 { (case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_try") 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4304 else
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4309 CXXFLAGS="-g"
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h. */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4318 main ()
4322 return 0;
4324 _ACEOF
4325 rm -f conftest.$ac_objext
4326 if { (ac_try="$ac_compile"
4327 case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_compile") 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4340 { (case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4343 esac
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_try") 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try='test -s conftest.$ac_objext'
4350 { (case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4353 esac
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_try") 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_prog_cxx_g=yes
4360 else
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4374 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4377 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4378 if test "$ac_test_CXXFLAGS" = set; then
4379 CXXFLAGS=$ac_save_CXXFLAGS
4380 elif test $ac_cv_prog_cxx_g = yes; then
4381 if test "$GXX" = yes; then
4382 CXXFLAGS="-g -O2"
4383 else
4384 CXXFLAGS="-g"
4386 else
4387 if test "$GXX" = yes; then
4388 CXXFLAGS="-O2"
4389 else
4390 CXXFLAGS=
4393 ac_ext=c
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399 ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4405 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4406 # On Suns, sometimes $CPP names a directory.
4407 if test -n "$CPP" && test -d "$CPP"; then
4408 CPP=
4410 if test -z "$CPP"; then
4411 if test "${ac_cv_prog_CPP+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 # Double quotes because CPP needs to be expanded
4415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4417 ac_preproc_ok=false
4418 for ac_c_preproc_warn_flag in '' yes
4420 # Use a header file that comes with gcc, so configuring glibc
4421 # with a fresh cross-compiler works.
4422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4423 # <limits.h> exists even on freestanding compilers.
4424 # On the NeXT, cc -E runs the code through the compiler's parser,
4425 # not just through cpp. "Syntax error" is here to catch this case.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #ifdef __STDC__
4433 # include <limits.h>
4434 #else
4435 # include <assert.h>
4436 #endif
4437 Syntax error
4438 _ACEOF
4439 if { (ac_try="$ac_cpp conftest.$ac_ext"
4440 case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443 esac
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } >/dev/null; then
4452 if test -s conftest.err; then
4453 ac_cpp_err=$ac_c_preproc_warn_flag
4454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4455 else
4456 ac_cpp_err=
4458 else
4459 ac_cpp_err=yes
4461 if test -z "$ac_cpp_err"; then
4463 else
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 # Broken: fails on valid input.
4468 continue
4471 rm -f conftest.err conftest.$ac_ext
4473 # OK, works on sane cases. Now check whether nonexistent headers
4474 # can be detected and how.
4475 cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h. */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 #include <ac_nonexistent.h>
4482 _ACEOF
4483 if { (ac_try="$ac_cpp conftest.$ac_ext"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null; then
4496 if test -s conftest.err; then
4497 ac_cpp_err=$ac_c_preproc_warn_flag
4498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4499 else
4500 ac_cpp_err=
4502 else
4503 ac_cpp_err=yes
4505 if test -z "$ac_cpp_err"; then
4506 # Broken: success on invalid input.
4507 continue
4508 else
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4512 # Passes both tests.
4513 ac_preproc_ok=:
4514 break
4517 rm -f conftest.err conftest.$ac_ext
4519 done
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.err conftest.$ac_ext
4522 if $ac_preproc_ok; then
4523 break
4526 done
4527 ac_cv_prog_CPP=$CPP
4530 CPP=$ac_cv_prog_CPP
4531 else
4532 ac_cv_prog_CPP=$CPP
4534 { echo "$as_me:$LINENO: result: $CPP" >&5
4535 echo "${ECHO_T}$CPP" >&6; }
4536 ac_preproc_ok=false
4537 for ac_c_preproc_warn_flag in '' yes
4539 # Use a header file that comes with gcc, so configuring glibc
4540 # with a fresh cross-compiler works.
4541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542 # <limits.h> exists even on freestanding compilers.
4543 # On the NeXT, cc -E runs the code through the compiler's parser,
4544 # not just through cpp. "Syntax error" is here to catch this case.
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 #ifdef __STDC__
4552 # include <limits.h>
4553 #else
4554 # include <assert.h>
4555 #endif
4556 Syntax error
4557 _ACEOF
4558 if { (ac_try="$ac_cpp conftest.$ac_ext"
4559 case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4562 esac
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null; then
4571 if test -s conftest.err; then
4572 ac_cpp_err=$ac_c_preproc_warn_flag
4573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4574 else
4575 ac_cpp_err=
4577 else
4578 ac_cpp_err=yes
4580 if test -z "$ac_cpp_err"; then
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 # Broken: fails on valid input.
4587 continue
4590 rm -f conftest.err conftest.$ac_ext
4592 # OK, works on sane cases. Now check whether nonexistent headers
4593 # can be detected and how.
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 #include <ac_nonexistent.h>
4601 _ACEOF
4602 if { (ac_try="$ac_cpp conftest.$ac_ext"
4603 case "(($ac_try" in
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4606 esac
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4609 ac_status=$?
4610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } >/dev/null; then
4615 if test -s conftest.err; then
4616 ac_cpp_err=$ac_c_preproc_warn_flag
4617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4618 else
4619 ac_cpp_err=
4621 else
4622 ac_cpp_err=yes
4624 if test -z "$ac_cpp_err"; then
4625 # Broken: success on invalid input.
4626 continue
4627 else
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631 # Passes both tests.
4632 ac_preproc_ok=:
4633 break
4636 rm -f conftest.err conftest.$ac_ext
4638 done
4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640 rm -f conftest.err conftest.$ac_ext
4641 if $ac_preproc_ok; then
4643 else
4644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4645 See \`config.log' for more details." >&5
4646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4647 See \`config.log' for more details." >&2;}
4648 { (exit 1); exit 1; }; }
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4657 ac_ext=cpp
4658 ac_cpp='$CXXCPP $CPPFLAGS'
4659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4662 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4663 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4664 if test -z "$CXXCPP"; then
4665 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 # Double quotes because CXXCPP needs to be expanded
4669 for CXXCPP in "$CXX -E" "/lib/cpp"
4671 ac_preproc_ok=false
4672 for ac_cxx_preproc_warn_flag in '' yes
4674 # Use a header file that comes with gcc, so configuring glibc
4675 # with a fresh cross-compiler works.
4676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4677 # <limits.h> exists even on freestanding compilers.
4678 # On the NeXT, cc -E runs the code through the compiler's parser,
4679 # not just through cpp. "Syntax error" is here to catch this case.
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #ifdef __STDC__
4687 # include <limits.h>
4688 #else
4689 # include <assert.h>
4690 #endif
4691 Syntax error
4692 _ACEOF
4693 if { (ac_try="$ac_cpp conftest.$ac_ext"
4694 case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697 esac
4698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev/null; then
4706 if test -s conftest.err; then
4707 ac_cpp_err=$ac_cxx_preproc_warn_flag
4708 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4709 else
4710 ac_cpp_err=
4712 else
4713 ac_cpp_err=yes
4715 if test -z "$ac_cpp_err"; then
4717 else
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4721 # Broken: fails on valid input.
4722 continue
4725 rm -f conftest.err conftest.$ac_ext
4727 # OK, works on sane cases. Now check whether nonexistent headers
4728 # can be detected and how.
4729 cat >conftest.$ac_ext <<_ACEOF
4730 /* confdefs.h. */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4735 #include <ac_nonexistent.h>
4736 _ACEOF
4737 if { (ac_try="$ac_cpp conftest.$ac_ext"
4738 case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } >/dev/null; then
4750 if test -s conftest.err; then
4751 ac_cpp_err=$ac_cxx_preproc_warn_flag
4752 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4753 else
4754 ac_cpp_err=
4756 else
4757 ac_cpp_err=yes
4759 if test -z "$ac_cpp_err"; then
4760 # Broken: success on invalid input.
4761 continue
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 # Passes both tests.
4767 ac_preproc_ok=:
4768 break
4771 rm -f conftest.err conftest.$ac_ext
4773 done
4774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4775 rm -f conftest.err conftest.$ac_ext
4776 if $ac_preproc_ok; then
4777 break
4780 done
4781 ac_cv_prog_CXXCPP=$CXXCPP
4784 CXXCPP=$ac_cv_prog_CXXCPP
4785 else
4786 ac_cv_prog_CXXCPP=$CXXCPP
4788 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4789 echo "${ECHO_T}$CXXCPP" >&6; }
4790 ac_preproc_ok=false
4791 for ac_cxx_preproc_warn_flag in '' yes
4793 # Use a header file that comes with gcc, so configuring glibc
4794 # with a fresh cross-compiler works.
4795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4796 # <limits.h> exists even on freestanding compilers.
4797 # On the NeXT, cc -E runs the code through the compiler's parser,
4798 # not just through cpp. "Syntax error" is here to catch this case.
4799 cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h. */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 #ifdef __STDC__
4806 # include <limits.h>
4807 #else
4808 # include <assert.h>
4809 #endif
4810 Syntax error
4811 _ACEOF
4812 if { (ac_try="$ac_cpp conftest.$ac_ext"
4813 case "(($ac_try" in
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4816 esac
4817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } >/dev/null; then
4825 if test -s conftest.err; then
4826 ac_cpp_err=$ac_cxx_preproc_warn_flag
4827 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4828 else
4829 ac_cpp_err=
4831 else
4832 ac_cpp_err=yes
4834 if test -z "$ac_cpp_err"; then
4836 else
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 # Broken: fails on valid input.
4841 continue
4844 rm -f conftest.err conftest.$ac_ext
4846 # OK, works on sane cases. Now check whether nonexistent headers
4847 # can be detected and how.
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <ac_nonexistent.h>
4855 _ACEOF
4856 if { (ac_try="$ac_cpp conftest.$ac_ext"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } >/dev/null; then
4869 if test -s conftest.err; then
4870 ac_cpp_err=$ac_cxx_preproc_warn_flag
4871 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4872 else
4873 ac_cpp_err=
4875 else
4876 ac_cpp_err=yes
4878 if test -z "$ac_cpp_err"; then
4879 # Broken: success on invalid input.
4880 continue
4881 else
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4885 # Passes both tests.
4886 ac_preproc_ok=:
4887 break
4890 rm -f conftest.err conftest.$ac_ext
4892 done
4893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4894 rm -f conftest.err conftest.$ac_ext
4895 if $ac_preproc_ok; then
4897 else
4898 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4899 See \`config.log' for more details." >&5
4900 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4901 See \`config.log' for more details." >&2;}
4902 { (exit 1); exit 1; }; }
4905 ac_ext=c
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911 for ac_prog in gawk mawk nawk awk
4913 # Extract the first word of "$ac_prog", so it can be a program name with args.
4914 set dummy $ac_prog; ac_word=$2
4915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4917 if test "${ac_cv_prog_AWK+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 if test -n "$AWK"; then
4921 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4930 ac_cv_prog_AWK="$ac_prog"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4934 done
4935 done
4936 IFS=$as_save_IFS
4940 AWK=$ac_cv_prog_AWK
4941 if test -n "$AWK"; then
4942 { echo "$as_me:$LINENO: result: $AWK" >&5
4943 echo "${ECHO_T}$AWK" >&6; }
4944 else
4945 { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4950 test -n "$AWK" && break
4951 done
4953 # Find a good install program. We prefer a C program (faster),
4954 # so one script is as good as another. But avoid the broken or
4955 # incompatible versions:
4956 # SysV /etc/install, /usr/sbin/install
4957 # SunOS /usr/etc/install
4958 # IRIX /sbin/install
4959 # AIX /bin/install
4960 # AmigaOS /C/install, which installs bootblocks on floppy discs
4961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4964 # OS/2's system install, which has a completely different semantic
4965 # ./install, which can be erroneously created by make from ./install.sh.
4966 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4968 if test -z "$INSTALL"; then
4969 if test "${ac_cv_path_install+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 # Account for people who put trailing slashes in PATH elements.
4978 case $as_dir/ in
4979 ./ | .// | /cC/* | \
4980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4982 /usr/ucb/* ) ;;
4984 # OSF1 and SCO ODT 3.0 have their own names for install.
4985 # Don't use installbsd from OSF since it installs stuff as root
4986 # by default.
4987 for ac_prog in ginstall scoinst install; do
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4990 if test $ac_prog = install &&
4991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4992 # AIX install. It has an incompatible calling convention.
4994 elif test $ac_prog = install &&
4995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4996 # program-specific install script used by HP pwplus--don't use.
4998 else
4999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5000 break 3
5003 done
5004 done
5006 esac
5007 done
5008 IFS=$as_save_IFS
5012 if test "${ac_cv_path_install+set}" = set; then
5013 INSTALL=$ac_cv_path_install
5014 else
5015 # As a last resort, use the slow shell script. Don't cache a
5016 # value for INSTALL within a source directory, because that will
5017 # break other packages using the cache if that directory is
5018 # removed, or if the value is a relative name.
5019 INSTALL=$ac_install_sh
5022 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5023 echo "${ECHO_T}$INSTALL" >&6; }
5025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5026 # It thinks the first close brace ends the variable substitution.
5027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5033 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5034 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5035 LN_S=$as_ln_s
5036 if test "$LN_S" = "ln -s"; then
5037 { echo "$as_me:$LINENO: result: yes" >&5
5038 echo "${ECHO_T}yes" >&6; }
5039 else
5040 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5041 echo "${ECHO_T}no, using $LN_S" >&6; }
5044 if test -n "$ac_tool_prefix"; then
5045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5049 if test "${ac_cv_prog_RANLIB+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 if test -n "$RANLIB"; then
5053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 RANLIB=$ac_cv_prog_RANLIB
5073 if test -n "$RANLIB"; then
5074 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5075 echo "${ECHO_T}$RANLIB" >&6; }
5076 else
5077 { echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6; }
5083 if test -z "$ac_cv_prog_RANLIB"; then
5084 ac_ct_RANLIB=$RANLIB
5085 # Extract the first word of "ranlib", so it can be a program name with args.
5086 set dummy ranlib; ac_word=$2
5087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5089 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 if test -n "$ac_ct_RANLIB"; then
5093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_ac_ct_RANLIB="ranlib"
5103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5108 IFS=$as_save_IFS
5112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5113 if test -n "$ac_ct_RANLIB"; then
5114 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5115 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5116 else
5117 { echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6; }
5121 if test "x$ac_ct_RANLIB" = x; then
5122 RANLIB=":"
5123 else
5124 case $cross_compiling:$ac_tool_warned in
5125 yes:)
5126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5127 whose name does not start with the host triplet. If you think this
5128 configuration is useful to you, please write to autoconf@gnu.org." >&5
5129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5130 whose name does not start with the host triplet. If you think this
5131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5132 ac_tool_warned=yes ;;
5133 esac
5134 RANLIB=$ac_ct_RANLIB
5136 else
5137 RANLIB="$ac_cv_prog_RANLIB"
5140 { echo "$as_me:$LINENO: checking for GNU make" >&5
5141 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5142 if test "${GNU_MAKE+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145 GNU_MAKE='Not Found' ;
5146 for a in make gmake gnumake ; do
5147 if test -z "$a" ; then continue ; fi ;
5148 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
5149 GNU_MAKE=$a ;
5150 break;
5152 done ;
5155 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
5156 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
5157 if test "x$GNU_MAKE" = "xNot Found" ; then
5158 echo " *** Please install GNU make. It is required to build Asterisk!"
5159 exit 1
5164 # Extract the first word of "grep", so it can be a program name with args.
5165 set dummy grep; ac_word=$2
5166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5168 if test "${ac_cv_path_GREP+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171 case $GREP in
5172 [\\/]* | ?:[\\/]*)
5173 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5187 done
5188 done
5189 IFS=$as_save_IFS
5191 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
5193 esac
5195 GREP=$ac_cv_path_GREP
5196 if test -n "$GREP"; then
5197 { echo "$as_me:$LINENO: result: $GREP" >&5
5198 echo "${ECHO_T}$GREP" >&6; }
5199 else
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5205 # Extract the first word of "ar", so it can be a program name with args.
5206 set dummy ar; ac_word=$2
5207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209 if test "${ac_cv_path_AR+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 case $AR in
5213 [\\/]* | ?:[\\/]*)
5214 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5228 done
5229 done
5230 IFS=$as_save_IFS
5232 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
5234 esac
5236 AR=$ac_cv_path_AR
5237 if test -n "$AR"; then
5238 { echo "$as_me:$LINENO: result: $AR" >&5
5239 echo "${ECHO_T}$AR" >&6; }
5240 else
5241 { echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6; }
5246 # Extract the first word of "find", so it can be a program name with args.
5247 set dummy find; ac_word=$2
5248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5250 if test "${ac_cv_path_FIND+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 case $FIND in
5254 [\\/]* | ?:[\\/]*)
5255 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5269 done
5270 done
5271 IFS=$as_save_IFS
5273 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
5275 esac
5277 FIND=$ac_cv_path_FIND
5278 if test -n "$FIND"; then
5279 { echo "$as_me:$LINENO: result: $FIND" >&5
5280 echo "${ECHO_T}$FIND" >&6; }
5281 else
5282 { echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6; }
5287 # Extract the first word of "compress", so it can be a program name with args.
5288 set dummy compress; ac_word=$2
5289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5291 if test "${ac_cv_path_COMPRESS+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294 case $COMPRESS in
5295 [\\/]* | ?:[\\/]*)
5296 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5306 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
5307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5310 done
5311 done
5312 IFS=$as_save_IFS
5314 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
5316 esac
5318 COMPRESS=$ac_cv_path_COMPRESS
5319 if test -n "$COMPRESS"; then
5320 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
5321 echo "${ECHO_T}$COMPRESS" >&6; }
5322 else
5323 { echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6; }
5328 # Extract the first word of "basename", so it can be a program name with args.
5329 set dummy basename; ac_word=$2
5330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5332 if test "${ac_cv_path_BASENAME+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335 case $BASENAME in
5336 [\\/]* | ?:[\\/]*)
5337 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5343 IFS=$as_save_IFS
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 break 2
5351 done
5352 done
5353 IFS=$as_save_IFS
5355 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
5357 esac
5359 BASENAME=$ac_cv_path_BASENAME
5360 if test -n "$BASENAME"; then
5361 { echo "$as_me:$LINENO: result: $BASENAME" >&5
5362 echo "${ECHO_T}$BASENAME" >&6; }
5363 else
5364 { echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6; }
5369 # Extract the first word of "dirname", so it can be a program name with args.
5370 set dummy dirname; ac_word=$2
5371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5373 if test "${ac_cv_path_DIRNAME+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 case $DIRNAME in
5377 [\\/]* | ?:[\\/]*)
5378 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5388 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 break 2
5392 done
5393 done
5394 IFS=$as_save_IFS
5396 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
5398 esac
5400 DIRNAME=$ac_cv_path_DIRNAME
5401 if test -n "$DIRNAME"; then
5402 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5403 echo "${ECHO_T}$DIRNAME" >&6; }
5404 else
5405 { echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6; }
5410 # Extract the first word of "sh", so it can be a program name with args.
5411 set dummy sh; ac_word=$2
5412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5414 if test "${ac_cv_path_SHELL+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417 case $SHELL in
5418 [\\/]* | ?:[\\/]*)
5419 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5429 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
5430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5433 done
5434 done
5435 IFS=$as_save_IFS
5437 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
5439 esac
5441 SHELL=$ac_cv_path_SHELL
5442 if test -n "$SHELL"; then
5443 { echo "$as_me:$LINENO: result: $SHELL" >&5
5444 echo "${ECHO_T}$SHELL" >&6; }
5445 else
5446 { echo "$as_me:$LINENO: result: no" >&5
5447 echo "${ECHO_T}no" >&6; }
5451 # Extract the first word of "ln", so it can be a program name with args.
5452 set dummy ln; ac_word=$2
5453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5455 if test "${ac_cv_path_LN+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458 case $LN in
5459 [\\/]* | ?:[\\/]*)
5460 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5474 done
5475 done
5476 IFS=$as_save_IFS
5478 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
5480 esac
5482 LN=$ac_cv_path_LN
5483 if test -n "$LN"; then
5484 { echo "$as_me:$LINENO: result: $LN" >&5
5485 echo "${ECHO_T}$LN" >&6; }
5486 else
5487 { echo "$as_me:$LINENO: result: no" >&5
5488 echo "${ECHO_T}no" >&6; }
5492 # Extract the first word of "dot", so it can be a program name with args.
5493 set dummy dot; ac_word=$2
5494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5496 if test "${ac_cv_path_DOT+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499 case $DOT in
5500 [\\/]* | ?:[\\/]*)
5501 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5515 done
5516 done
5517 IFS=$as_save_IFS
5519 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
5521 esac
5523 DOT=$ac_cv_path_DOT
5524 if test -n "$DOT"; then
5525 { echo "$as_me:$LINENO: result: $DOT" >&5
5526 echo "${ECHO_T}$DOT" >&6; }
5527 else
5528 { echo "$as_me:$LINENO: result: no" >&5
5529 echo "${ECHO_T}no" >&6; }
5534 ac_ext=c
5535 ac_cpp='$CPP $CPPFLAGS'
5536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5541 # Check whether --enable-dev-mode was given.
5542 if test "${enable_dev_mode+set}" = set; then
5543 enableval=$enable_dev_mode; case "${enableval}" in
5544 y|ye|yes) AST_DEVMODE=yes ;;
5545 n|no) AST_DEVMODE=no ;;
5546 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
5547 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
5548 { (exit 1); exit 1; }; } ;;
5549 esac
5554 # package option names should be in alphabetical order
5555 # by the --with option name, to make things easier for the users :-)
5558 ALSA_DESCRIP="Advanced Linux Sound Architecture"
5559 ALSA_OPTION="asound"
5561 # Check whether --with-asound was given.
5562 if test "${with_asound+set}" = set; then
5563 withval=$with_asound;
5564 case ${withval} in
5565 n|no)
5566 USE_ALSA=no
5568 y|ye|yes)
5569 ALSA_MANDATORY="yes"
5572 ALSA_DIR="${withval}"
5573 ALSA_MANDATORY="yes"
5575 esac
5579 PBX_ALSA=0
5585 CURSES_DESCRIP="curses"
5586 CURSES_OPTION="curses"
5588 # Check whether --with-curses was given.
5589 if test "${with_curses+set}" = set; then
5590 withval=$with_curses;
5591 case ${withval} in
5592 n|no)
5593 USE_CURSES=no
5595 y|ye|yes)
5596 CURSES_MANDATORY="yes"
5599 CURSES_DIR="${withval}"
5600 CURSES_MANDATORY="yes"
5602 esac
5606 PBX_CURSES=0
5612 GSM_DESCRIP="GSM"
5613 GSM_OPTION="gsm"
5615 # Check whether --with-gsm was given.
5616 if test "${with_gsm+set}" = set; then
5617 withval=$with_gsm;
5618 case ${withval} in
5619 n|no)
5620 USE_GSM=no
5622 y|ye|yes)
5623 GSM_MANDATORY="yes"
5626 GSM_DIR="${withval}"
5627 GSM_MANDATORY="yes"
5629 esac
5633 PBX_GSM=0
5639 IKSEMEL_DESCRIP="Iksemel Jabber Library"
5640 IKSEMEL_OPTION="iksemel"
5642 # Check whether --with-iksemel was given.
5643 if test "${with_iksemel+set}" = set; then
5644 withval=$with_iksemel;
5645 case ${withval} in
5646 n|no)
5647 USE_IKSEMEL=no
5649 y|ye|yes)
5650 IKSEMEL_MANDATORY="yes"
5653 IKSEMEL_DIR="${withval}"
5654 IKSEMEL_MANDATORY="yes"
5656 esac
5660 PBX_IKSEMEL=0
5666 IMAP_TK_DESCRIP="UW IMAP Toolkit"
5667 IMAP_TK_OPTION="imap"
5669 # Check whether --with-imap was given.
5670 if test "${with_imap+set}" = set; then
5671 withval=$with_imap;
5672 case ${withval} in
5673 n|no)
5674 USE_IMAP_TK=no
5676 y|ye|yes)
5677 IMAP_TK_MANDATORY="yes"
5680 IMAP_TK_DIR="${withval}"
5681 IMAP_TK_MANDATORY="yes"
5683 esac
5687 PBX_IMAP_TK=0
5693 KDE_DESCRIP="KDE"
5694 KDE_OPTION="kde"
5696 # Check whether --with-kde was given.
5697 if test "${with_kde+set}" = set; then
5698 withval=$with_kde;
5699 case ${withval} in
5700 n|no)
5701 USE_KDE=no
5703 y|ye|yes)
5704 KDE_MANDATORY="yes"
5707 KDE_DIR="${withval}"
5708 KDE_MANDATORY="yes"
5710 esac
5714 PBX_KDE=0
5720 NBS_DESCRIP="Network Broadcast Sound"
5721 NBS_OPTION="nbs"
5723 # Check whether --with-nbs was given.
5724 if test "${with_nbs+set}" = set; then
5725 withval=$with_nbs;
5726 case ${withval} in
5727 n|no)
5728 USE_NBS=no
5730 y|ye|yes)
5731 NBS_MANDATORY="yes"
5734 NBS_DIR="${withval}"
5735 NBS_MANDATORY="yes"
5737 esac
5741 PBX_NBS=0
5747 NCURSES_DESCRIP="ncurses"
5748 NCURSES_OPTION="ncurses"
5750 # Check whether --with-ncurses was given.
5751 if test "${with_ncurses+set}" = set; then
5752 withval=$with_ncurses;
5753 case ${withval} in
5754 n|no)
5755 USE_NCURSES=no
5757 y|ye|yes)
5758 NCURSES_MANDATORY="yes"
5761 NCURSES_DIR="${withval}"
5762 NCURSES_MANDATORY="yes"
5764 esac
5768 PBX_NCURSES=0
5774 NETSNMP_DESCRIP="Net-SNMP"
5775 NETSNMP_OPTION="netsnmp"
5777 # Check whether --with-netsnmp was given.
5778 if test "${with_netsnmp+set}" = set; then
5779 withval=$with_netsnmp;
5780 case ${withval} in
5781 n|no)
5782 USE_NETSNMP=no
5784 y|ye|yes)
5785 NETSNMP_MANDATORY="yes"
5788 NETSNMP_DIR="${withval}"
5789 NETSNMP_MANDATORY="yes"
5791 esac
5795 PBX_NETSNMP=0
5801 NEWT_DESCRIP="newt"
5802 NEWT_OPTION="newt"
5804 # Check whether --with-newt was given.
5805 if test "${with_newt+set}" = set; then
5806 withval=$with_newt;
5807 case ${withval} in
5808 n|no)
5809 USE_NEWT=no
5811 y|ye|yes)
5812 NEWT_MANDATORY="yes"
5815 NEWT_DIR="${withval}"
5816 NEWT_MANDATORY="yes"
5818 esac
5822 PBX_NEWT=0
5828 UNIXODBC_DESCRIP="unixODBC"
5829 UNIXODBC_OPTION="odbc"
5831 # Check whether --with-odbc was given.
5832 if test "${with_odbc+set}" = set; then
5833 withval=$with_odbc;
5834 case ${withval} in
5835 n|no)
5836 USE_UNIXODBC=no
5838 y|ye|yes)
5839 UNIXODBC_MANDATORY="yes"
5842 UNIXODBC_DIR="${withval}"
5843 UNIXODBC_MANDATORY="yes"
5845 esac
5849 PBX_UNIXODBC=0
5855 OGG_DESCRIP="OGG"
5856 OGG_OPTION="ogg"
5858 # Check whether --with-ogg was given.
5859 if test "${with_ogg+set}" = set; then
5860 withval=$with_ogg;
5861 case ${withval} in
5862 n|no)
5863 USE_OGG=no
5865 y|ye|yes)
5866 OGG_MANDATORY="yes"
5869 OGG_DIR="${withval}"
5870 OGG_MANDATORY="yes"
5872 esac
5876 PBX_OGG=0
5882 OSPTK_DESCRIP="OSP Toolkit"
5883 OSPTK_OPTION="osptk"
5885 # Check whether --with-osptk was given.
5886 if test "${with_osptk+set}" = set; then
5887 withval=$with_osptk;
5888 case ${withval} in
5889 n|no)
5890 USE_OSPTK=no
5892 y|ye|yes)
5893 OSPTK_MANDATORY="yes"
5896 OSPTK_DIR="${withval}"
5897 OSPTK_MANDATORY="yes"
5899 esac
5903 PBX_OSPTK=0
5909 OSS_DESCRIP="Open Sound System"
5910 OSS_OPTION="oss"
5912 # Check whether --with-oss was given.
5913 if test "${with_oss+set}" = set; then
5914 withval=$with_oss;
5915 case ${withval} in
5916 n|no)
5917 USE_OSS=no
5919 y|ye|yes)
5920 OSS_MANDATORY="yes"
5923 OSS_DIR="${withval}"
5924 OSS_MANDATORY="yes"
5926 esac
5930 PBX_OSS=0
5936 POPT_DESCRIP="popt"
5937 POPT_OPTION="popt"
5939 # Check whether --with-popt was given.
5940 if test "${with_popt+set}" = set; then
5941 withval=$with_popt;
5942 case ${withval} in
5943 n|no)
5944 USE_POPT=no
5946 y|ye|yes)
5947 POPT_MANDATORY="yes"
5950 POPT_DIR="${withval}"
5951 POPT_MANDATORY="yes"
5953 esac
5957 PBX_POPT=0
5963 PGSQL_DESCRIP="PostgreSQL"
5964 PGSQL_OPTION="postgres"
5966 # Check whether --with-postgres was given.
5967 if test "${with_postgres+set}" = set; then
5968 withval=$with_postgres;
5969 case ${withval} in
5970 n|no)
5971 USE_PGSQL=no
5973 y|ye|yes)
5974 PGSQL_MANDATORY="yes"
5977 PGSQL_DIR="${withval}"
5978 PGSQL_MANDATORY="yes"
5980 esac
5984 PBX_PGSQL=0
5990 PRI_DESCRIP="ISDN PRI"
5991 PRI_OPTION="pri"
5993 # Check whether --with-pri was given.
5994 if test "${with_pri+set}" = set; then
5995 withval=$with_pri;
5996 case ${withval} in
5997 n|no)
5998 USE_PRI=no
6000 y|ye|yes)
6001 PRI_MANDATORY="yes"
6004 PRI_DIR="${withval}"
6005 PRI_MANDATORY="yes"
6007 esac
6011 PBX_PRI=0
6017 PWLIB_DESCRIP="PWlib"
6018 PWLIB_OPTION="pwlib"
6020 # Check whether --with-pwlib was given.
6021 if test "${with_pwlib+set}" = set; then
6022 withval=$with_pwlib;
6023 case ${withval} in
6024 n|no)
6025 USE_PWLIB=no
6027 y|ye|yes)
6028 PWLIB_MANDATORY="yes"
6031 PWLIB_DIR="${withval}"
6032 PWLIB_MANDATORY="yes"
6034 esac
6038 PBX_PWLIB=0
6044 QT_DESCRIP="Qt"
6045 QT_OPTION="qt"
6047 # Check whether --with-qt was given.
6048 if test "${with_qt+set}" = set; then
6049 withval=$with_qt;
6050 case ${withval} in
6051 n|no)
6052 USE_QT=no
6054 y|ye|yes)
6055 QT_MANDATORY="yes"
6058 QT_DIR="${withval}"
6059 QT_MANDATORY="yes"
6061 esac
6065 PBX_QT=0
6071 RADIUS_DESCRIP="Radius Client"
6072 RADIUS_OPTION="radius"
6074 # Check whether --with-radius was given.
6075 if test "${with_radius+set}" = set; then
6076 withval=$with_radius;
6077 case ${withval} in
6078 n|no)
6079 USE_RADIUS=no
6081 y|ye|yes)
6082 RADIUS_MANDATORY="yes"
6085 RADIUS_DIR="${withval}"
6086 RADIUS_MANDATORY="yes"
6088 esac
6092 PBX_RADIUS=0
6098 SPEEX_DESCRIP="Speex"
6099 SPEEX_OPTION="speex"
6101 # Check whether --with-speex was given.
6102 if test "${with_speex+set}" = set; then
6103 withval=$with_speex;
6104 case ${withval} in
6105 n|no)
6106 USE_SPEEX=no
6108 y|ye|yes)
6109 SPEEX_MANDATORY="yes"
6112 SPEEX_DIR="${withval}"
6113 SPEEX_MANDATORY="yes"
6115 esac
6119 PBX_SPEEX=0
6125 SQLITE_DESCRIP="SQLite"
6126 SQLITE_OPTION="sqlite"
6128 # Check whether --with-sqlite was given.
6129 if test "${with_sqlite+set}" = set; then
6130 withval=$with_sqlite;
6131 case ${withval} in
6132 n|no)
6133 USE_SQLITE=no
6135 y|ye|yes)
6136 SQLITE_MANDATORY="yes"
6139 SQLITE_DIR="${withval}"
6140 SQLITE_MANDATORY="yes"
6142 esac
6146 PBX_SQLITE=0
6152 OPENSSL_DESCRIP="OpenSSL"
6153 OPENSSL_OPTION="ssl"
6155 # Check whether --with-ssl was given.
6156 if test "${with_ssl+set}" = set; then
6157 withval=$with_ssl;
6158 case ${withval} in
6159 n|no)
6160 USE_OPENSSL=no
6162 y|ye|yes)
6163 OPENSSL_MANDATORY="yes"
6166 OPENSSL_DIR="${withval}"
6167 OPENSSL_MANDATORY="yes"
6169 esac
6173 PBX_OPENSSL=0
6179 FREETDS_DESCRIP="FreeTDS"
6180 FREETDS_OPTION="tds"
6182 # Check whether --with-tds was given.
6183 if test "${with_tds+set}" = set; then
6184 withval=$with_tds;
6185 case ${withval} in
6186 n|no)
6187 USE_FREETDS=no
6189 y|ye|yes)
6190 FREETDS_MANDATORY="yes"
6193 FREETDS_DIR="${withval}"
6194 FREETDS_MANDATORY="yes"
6196 esac
6200 PBX_FREETDS=0
6206 TERMCAP_DESCRIP="Termcap"
6207 TERMCAP_OPTION="termcap"
6209 # Check whether --with-termcap was given.
6210 if test "${with_termcap+set}" = set; then
6211 withval=$with_termcap;
6212 case ${withval} in
6213 n|no)
6214 USE_TERMCAP=no
6216 y|ye|yes)
6217 TERMCAP_MANDATORY="yes"
6220 TERMCAP_DIR="${withval}"
6221 TERMCAP_MANDATORY="yes"
6223 esac
6227 PBX_TERMCAP=0
6233 TINFO_DESCRIP="Term Info"
6234 TINFO_OPTION="tinfo"
6236 # Check whether --with-tinfo was given.
6237 if test "${with_tinfo+set}" = set; then
6238 withval=$with_tinfo;
6239 case ${withval} in
6240 n|no)
6241 USE_TINFO=no
6243 y|ye|yes)
6244 TINFO_MANDATORY="yes"
6247 TINFO_DIR="${withval}"
6248 TINFO_MANDATORY="yes"
6250 esac
6254 PBX_TINFO=0
6260 TONEZONE_DESCRIP="tonezone"
6261 TONEZONE_OPTION="tonezone"
6263 # Check whether --with-tonezone was given.
6264 if test "${with_tonezone+set}" = set; then
6265 withval=$with_tonezone;
6266 case ${withval} in
6267 n|no)
6268 USE_TONEZONE=no
6270 y|ye|yes)
6271 TONEZONE_MANDATORY="yes"
6274 TONEZONE_DIR="${withval}"
6275 TONEZONE_MANDATORY="yes"
6277 esac
6281 PBX_TONEZONE=0
6287 VORBIS_DESCRIP="Vorbis"
6288 VORBIS_OPTION="vorbis"
6290 # Check whether --with-vorbis was given.
6291 if test "${with_vorbis+set}" = set; then
6292 withval=$with_vorbis;
6293 case ${withval} in
6294 n|no)
6295 USE_VORBIS=no
6297 y|ye|yes)
6298 VORBIS_MANDATORY="yes"
6301 VORBIS_DIR="${withval}"
6302 VORBIS_MANDATORY="yes"
6304 esac
6308 PBX_VORBIS=0
6314 VPB_DESCRIP="Voicetronix API"
6315 VPB_OPTION="vpb"
6317 # Check whether --with-vpb was given.
6318 if test "${with_vpb+set}" = set; then
6319 withval=$with_vpb;
6320 case ${withval} in
6321 n|no)
6322 USE_VPB=no
6324 y|ye|yes)
6325 VPB_MANDATORY="yes"
6328 VPB_DIR="${withval}"
6329 VPB_MANDATORY="yes"
6331 esac
6335 PBX_VPB=0
6341 ZLIB_DESCRIP="zlib"
6342 ZLIB_OPTION="z"
6344 # Check whether --with-z was given.
6345 if test "${with_z+set}" = set; then
6346 withval=$with_z;
6347 case ${withval} in
6348 n|no)
6349 USE_ZLIB=no
6351 y|ye|yes)
6352 ZLIB_MANDATORY="yes"
6355 ZLIB_DIR="${withval}"
6356 ZLIB_MANDATORY="yes"
6358 esac
6362 PBX_ZLIB=0
6368 ZAPTEL_DESCRIP="Zaptel"
6369 ZAPTEL_OPTION="zaptel"
6371 # Check whether --with-zaptel was given.
6372 if test "${with_zaptel+set}" = set; then
6373 withval=$with_zaptel;
6374 case ${withval} in
6375 n|no)
6376 USE_ZAPTEL=no
6378 y|ye|yes)
6379 ZAPTEL_MANDATORY="yes"
6382 ZAPTEL_DIR="${withval}"
6383 ZAPTEL_MANDATORY="yes"
6385 esac
6389 PBX_ZAPTEL=0
6395 # check for basic system features and functionality before
6396 # checking for package libraries
6400 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6401 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6402 if test "${ac_cv_path_GREP+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405 # Extract the first word of "grep ggrep" to use in msg output
6406 if test -z "$GREP"; then
6407 set dummy grep ggrep; ac_prog_name=$2
6408 if test "${ac_cv_path_GREP+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 ac_path_GREP_found=false
6412 # Loop through the user's path and test for each of PROGNAME-LIST
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_prog in grep ggrep; do
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6421 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6422 # Check for GNU ac_path_GREP and select it if it is found.
6423 # Check for GNU $ac_path_GREP
6424 case `"$ac_path_GREP" --version 2>&1` in
6425 *GNU*)
6426 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6428 ac_count=0
6429 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6430 while :
6432 cat "conftest.in" "conftest.in" >"conftest.tmp"
6433 mv "conftest.tmp" "conftest.in"
6434 cp "conftest.in" "conftest.nl"
6435 echo 'GREP' >> "conftest.nl"
6436 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6438 ac_count=`expr $ac_count + 1`
6439 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6440 # Best one so far, save it but keep looking for a better one
6441 ac_cv_path_GREP="$ac_path_GREP"
6442 ac_path_GREP_max=$ac_count
6444 # 10*(2^10) chars as input seems more than enough
6445 test $ac_count -gt 10 && break
6446 done
6447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6448 esac
6451 $ac_path_GREP_found && break 3
6452 done
6453 done
6455 done
6456 IFS=$as_save_IFS
6461 GREP="$ac_cv_path_GREP"
6462 if test -z "$GREP"; then
6463 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6464 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6465 { (exit 1); exit 1; }; }
6468 else
6469 ac_cv_path_GREP=$GREP
6474 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6475 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6476 GREP="$ac_cv_path_GREP"
6479 { echo "$as_me:$LINENO: checking for egrep" >&5
6480 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6481 if test "${ac_cv_path_EGREP+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6485 then ac_cv_path_EGREP="$GREP -E"
6486 else
6487 # Extract the first word of "egrep" to use in msg output
6488 if test -z "$EGREP"; then
6489 set dummy egrep; ac_prog_name=$2
6490 if test "${ac_cv_path_EGREP+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493 ac_path_EGREP_found=false
6494 # Loop through the user's path and test for each of PROGNAME-LIST
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_prog in egrep; do
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6503 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6504 # Check for GNU ac_path_EGREP and select it if it is found.
6505 # Check for GNU $ac_path_EGREP
6506 case `"$ac_path_EGREP" --version 2>&1` in
6507 *GNU*)
6508 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6510 ac_count=0
6511 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6512 while :
6514 cat "conftest.in" "conftest.in" >"conftest.tmp"
6515 mv "conftest.tmp" "conftest.in"
6516 cp "conftest.in" "conftest.nl"
6517 echo 'EGREP' >> "conftest.nl"
6518 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6520 ac_count=`expr $ac_count + 1`
6521 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6522 # Best one so far, save it but keep looking for a better one
6523 ac_cv_path_EGREP="$ac_path_EGREP"
6524 ac_path_EGREP_max=$ac_count
6526 # 10*(2^10) chars as input seems more than enough
6527 test $ac_count -gt 10 && break
6528 done
6529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6530 esac
6533 $ac_path_EGREP_found && break 3
6534 done
6535 done
6537 done
6538 IFS=$as_save_IFS
6543 EGREP="$ac_cv_path_EGREP"
6544 if test -z "$EGREP"; then
6545 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6546 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6547 { (exit 1); exit 1; }; }
6550 else
6551 ac_cv_path_EGREP=$EGREP
6557 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6558 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6559 EGREP="$ac_cv_path_EGREP"
6562 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6563 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6564 if test "${ac_cv_header_stdc+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567 cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h. */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 #include <stdlib.h>
6574 #include <stdarg.h>
6575 #include <string.h>
6576 #include <float.h>
6579 main ()
6583 return 0;
6585 _ACEOF
6586 rm -f conftest.$ac_objext
6587 if { (ac_try="$ac_compile"
6588 case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6591 esac
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_compile") 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6601 { (case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604 esac
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_try") 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try='test -s conftest.$ac_objext'
6611 { (case "(($ac_try" in
6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6614 esac
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_try") 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_header_stdc=yes
6621 else
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6625 ac_cv_header_stdc=no
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6630 if test $ac_cv_header_stdc = yes; then
6631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6632 cat >conftest.$ac_ext <<_ACEOF
6633 /* confdefs.h. */
6634 _ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6638 #include <string.h>
6640 _ACEOF
6641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6642 $EGREP "memchr" >/dev/null 2>&1; then
6644 else
6645 ac_cv_header_stdc=no
6647 rm -f conftest*
6651 if test $ac_cv_header_stdc = yes; then
6652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 #include <stdlib.h>
6661 _ACEOF
6662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6663 $EGREP "free" >/dev/null 2>&1; then
6665 else
6666 ac_cv_header_stdc=no
6668 rm -f conftest*
6672 if test $ac_cv_header_stdc = yes; then
6673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6674 if test "$cross_compiling" = yes; then
6676 else
6677 cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h. */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683 #include <ctype.h>
6684 #include <stdlib.h>
6685 #if ((' ' & 0x0FF) == 0x020)
6686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6688 #else
6689 # define ISLOWER(c) \
6690 (('a' <= (c) && (c) <= 'i') \
6691 || ('j' <= (c) && (c) <= 'r') \
6692 || ('s' <= (c) && (c) <= 'z'))
6693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6694 #endif
6696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6698 main ()
6700 int i;
6701 for (i = 0; i < 256; i++)
6702 if (XOR (islower (i), ISLOWER (i))
6703 || toupper (i) != TOUPPER (i))
6704 return 2;
6705 return 0;
6707 _ACEOF
6708 rm -f conftest$ac_exeext
6709 if { (ac_try="$ac_link"
6710 case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713 esac
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_link") 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6719 { (case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722 esac
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_try") 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6729 else
6730 echo "$as_me: program exited with status $ac_status" >&5
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6734 ( exit $ac_status )
6735 ac_cv_header_stdc=no
6737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6743 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6744 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6745 if test $ac_cv_header_stdc = yes; then
6747 cat >>confdefs.h <<\_ACEOF
6748 #define STDC_HEADERS 1
6749 _ACEOF
6753 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6763 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6764 inttypes.h stdint.h unistd.h
6766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h. */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 $ac_includes_default
6780 #include <$ac_header>
6781 _ACEOF
6782 rm -f conftest.$ac_objext
6783 if { (ac_try="$ac_compile"
6784 case "(($ac_try" in
6785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786 *) ac_try_echo=$ac_try;;
6787 esac
6788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789 (eval "$ac_compile") 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6797 { (case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_try") 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try='test -s conftest.$ac_objext'
6807 { (case "(($ac_try" in
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6810 esac
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 (eval "$ac_try") 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6816 eval "$as_ac_Header=yes"
6817 else
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6821 eval "$as_ac_Header=no"
6824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6826 ac_res=`eval echo '${'$as_ac_Header'}'`
6827 { echo "$as_me:$LINENO: result: $ac_res" >&5
6828 echo "${ECHO_T}$ac_res" >&6; }
6829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6830 cat >>confdefs.h <<_ACEOF
6831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6832 _ACEOF
6836 done
6839 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6840 # for constant arguments. Useless!
6841 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6842 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6843 if test "${ac_cv_working_alloca_h+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846 cat >conftest.$ac_ext <<_ACEOF
6847 /* confdefs.h. */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #include <alloca.h>
6854 main ()
6856 char *p = (char *) alloca (2 * sizeof (int));
6858 return 0;
6860 _ACEOF
6861 rm -f conftest.$ac_objext conftest$ac_exeext
6862 if { (ac_try="$ac_link"
6863 case "(($ac_try" in
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6866 esac
6867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_link") 2>conftest.er1
6869 ac_status=$?
6870 grep -v '^ *+' conftest.er1 >conftest.err
6871 rm -f conftest.er1
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } &&
6875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6876 { (case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879 esac
6880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6881 (eval "$ac_try") 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest$ac_exeext'
6886 { (case "(($ac_try" in
6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6889 esac
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891 (eval "$ac_try") 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_working_alloca_h=yes
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 ac_cv_working_alloca_h=no
6903 rm -f conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6906 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6907 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6908 if test $ac_cv_working_alloca_h = yes; then
6910 cat >>confdefs.h <<\_ACEOF
6911 #define HAVE_ALLOCA_H 1
6912 _ACEOF
6916 { echo "$as_me:$LINENO: checking for alloca" >&5
6917 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6918 if test "${ac_cv_func_alloca_works+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 #ifdef __GNUC__
6928 # define alloca __builtin_alloca
6929 #else
6930 # ifdef _MSC_VER
6931 # include <malloc.h>
6932 # define alloca _alloca
6933 # else
6934 # if HAVE_ALLOCA_H
6935 # include <alloca.h>
6936 # else
6937 # ifdef _AIX
6938 #pragma alloca
6939 # else
6940 # ifndef alloca /* predefined by HP cc +Olibcalls */
6941 char *alloca ();
6942 # endif
6943 # endif
6944 # endif
6945 # endif
6946 #endif
6949 main ()
6951 char *p = (char *) alloca (1);
6953 return 0;
6955 _ACEOF
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (ac_try="$ac_link"
6958 case "(($ac_try" in
6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960 *) ac_try_echo=$ac_try;;
6961 esac
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963 (eval "$ac_link") 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6971 { (case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974 esac
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_try") 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; } &&
6980 { ac_try='test -s conftest$ac_exeext'
6981 { (case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_try") 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 ac_cv_func_alloca_works=yes
6991 else
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6995 ac_cv_func_alloca_works=no
6998 rm -f conftest.err conftest.$ac_objext \
6999 conftest$ac_exeext conftest.$ac_ext
7001 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7002 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7004 if test $ac_cv_func_alloca_works = yes; then
7006 cat >>confdefs.h <<\_ACEOF
7007 #define HAVE_ALLOCA 1
7008 _ACEOF
7010 else
7011 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7012 # that cause trouble. Some versions do not even contain alloca or
7013 # contain a buggy version. If you still want to use their alloca,
7014 # use ar to extract alloca.o from them instead of compiling alloca.c.
7016 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7018 cat >>confdefs.h <<\_ACEOF
7019 #define C_ALLOCA 1
7020 _ACEOF
7023 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7024 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7025 if test "${ac_cv_os_cray+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h. */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 #if defined CRAY && ! defined CRAY2
7035 webecray
7036 #else
7037 wenotbecray
7038 #endif
7040 _ACEOF
7041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7042 $EGREP "webecray" >/dev/null 2>&1; then
7043 ac_cv_os_cray=yes
7044 else
7045 ac_cv_os_cray=no
7047 rm -f conftest*
7050 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7051 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7052 if test $ac_cv_os_cray = yes; then
7053 for ac_func in _getb67 GETB67 getb67; do
7054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060 cat >conftest.$ac_ext <<_ACEOF
7061 /* confdefs.h. */
7062 _ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h. */
7066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7068 #define $ac_func innocuous_$ac_func
7070 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char $ac_func (); below.
7072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7073 <limits.h> exists even on freestanding compilers. */
7075 #ifdef __STDC__
7076 # include <limits.h>
7077 #else
7078 # include <assert.h>
7079 #endif
7081 #undef $ac_func
7083 /* Override any GCC internal prototype to avoid an error.
7084 Use char because int might match the return type of a GCC
7085 builtin and then its argument prototype would still apply. */
7086 #ifdef __cplusplus
7087 extern "C"
7088 #endif
7089 char $ac_func ();
7090 /* The GNU C library defines this for functions which it implements
7091 to always fail with ENOSYS. Some functions are actually named
7092 something starting with __ and the normal name is an alias. */
7093 #if defined __stub_$ac_func || defined __stub___$ac_func
7094 choke me
7095 #endif
7098 main ()
7100 return $ac_func ();
7102 return 0;
7104 _ACEOF
7105 rm -f conftest.$ac_objext conftest$ac_exeext
7106 if { (ac_try="$ac_link"
7107 case "(($ac_try" in
7108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7109 *) ac_try_echo=$ac_try;;
7110 esac
7111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7112 (eval "$ac_link") 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7120 { (case "(($ac_try" in
7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122 *) ac_try_echo=$ac_try;;
7123 esac
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125 (eval "$ac_try") 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; } &&
7129 { ac_try='test -s conftest$ac_exeext'
7130 { (case "(($ac_try" in
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7133 esac
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_try") 2>&5
7136 ac_status=$?
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7139 eval "$as_ac_var=yes"
7140 else
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 eval "$as_ac_var=no"
7147 rm -f conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext conftest.$ac_ext
7150 ac_res=`eval echo '${'$as_ac_var'}'`
7151 { echo "$as_me:$LINENO: result: $ac_res" >&5
7152 echo "${ECHO_T}$ac_res" >&6; }
7153 if test `eval echo '${'$as_ac_var'}'` = yes; then
7155 cat >>confdefs.h <<_ACEOF
7156 #define CRAY_STACKSEG_END $ac_func
7157 _ACEOF
7159 break
7162 done
7165 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7166 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7167 if test "${ac_cv_c_stack_direction+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170 if test "$cross_compiling" = yes; then
7171 ac_cv_c_stack_direction=0
7172 else
7173 cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h. */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179 $ac_includes_default
7181 find_stack_direction ()
7183 static char *addr = 0;
7184 auto char dummy;
7185 if (addr == 0)
7187 addr = &dummy;
7188 return find_stack_direction ();
7190 else
7191 return (&dummy > addr) ? 1 : -1;
7195 main ()
7197 return find_stack_direction () < 0;
7199 _ACEOF
7200 rm -f conftest$ac_exeext
7201 if { (ac_try="$ac_link"
7202 case "(($ac_try" in
7203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204 *) ac_try_echo=$ac_try;;
7205 esac
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207 (eval "$ac_link") 2>&5
7208 ac_status=$?
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7211 { (case "(($ac_try" in
7212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7213 *) ac_try_echo=$ac_try;;
7214 esac
7215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7216 (eval "$ac_try") 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; }; then
7220 ac_cv_c_stack_direction=1
7221 else
7222 echo "$as_me: program exited with status $ac_status" >&5
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7226 ( exit $ac_status )
7227 ac_cv_c_stack_direction=-1
7229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7234 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7235 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7237 cat >>confdefs.h <<_ACEOF
7238 #define STACK_DIRECTION $ac_cv_c_stack_direction
7239 _ACEOF
7249 ac_header_dirent=no
7250 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7251 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7252 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7253 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h. */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 #include <sys/types.h>
7264 #include <$ac_hdr>
7267 main ()
7269 if ((DIR *) 0)
7270 return 0;
7272 return 0;
7274 _ACEOF
7275 rm -f conftest.$ac_objext
7276 if { (ac_try="$ac_compile"
7277 case "(($ac_try" in
7278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279 *) ac_try_echo=$ac_try;;
7280 esac
7281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282 (eval "$ac_compile") 2>conftest.er1
7283 ac_status=$?
7284 grep -v '^ *+' conftest.er1 >conftest.err
7285 rm -f conftest.er1
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7290 { (case "(($ac_try" in
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7293 esac
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_try") 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest.$ac_objext'
7300 { (case "(($ac_try" in
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7303 esac
7304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305 (eval "$ac_try") 2>&5
7306 ac_status=$?
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7309 eval "$as_ac_Header=yes"
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 eval "$as_ac_Header=no"
7317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7319 ac_res=`eval echo '${'$as_ac_Header'}'`
7320 { echo "$as_me:$LINENO: result: $ac_res" >&5
7321 echo "${ECHO_T}$ac_res" >&6; }
7322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7323 cat >>confdefs.h <<_ACEOF
7324 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7325 _ACEOF
7327 ac_header_dirent=$ac_hdr; break
7330 done
7331 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7332 if test $ac_header_dirent = dirent.h; then
7333 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7334 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7335 if test "${ac_cv_search_opendir+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 ac_func_search_save_LIBS=$LIBS
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h. */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7346 /* Override any GCC internal prototype to avoid an error.
7347 Use char because int might match the return type of a GCC
7348 builtin and then its argument prototype would still apply. */
7349 #ifdef __cplusplus
7350 extern "C"
7351 #endif
7352 char opendir ();
7354 main ()
7356 return opendir ();
7358 return 0;
7360 _ACEOF
7361 for ac_lib in '' dir; do
7362 if test -z "$ac_lib"; then
7363 ac_res="none required"
7364 else
7365 ac_res=-l$ac_lib
7366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7368 rm -f conftest.$ac_objext conftest$ac_exeext
7369 if { (ac_try="$ac_link"
7370 case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7373 esac
7374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375 (eval "$ac_link") 2>conftest.er1
7376 ac_status=$?
7377 grep -v '^ *+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7383 { (case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_try") 2>&5
7389 ac_status=$?
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; } &&
7392 { ac_try='test -s conftest$ac_exeext'
7393 { (case "(($ac_try" in
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7396 esac
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_try") 2>&5
7399 ac_status=$?
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; }; then
7402 ac_cv_search_opendir=$ac_res
7403 else
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7410 rm -f conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext
7412 if test "${ac_cv_search_opendir+set}" = set; then
7413 break
7415 done
7416 if test "${ac_cv_search_opendir+set}" = set; then
7418 else
7419 ac_cv_search_opendir=no
7421 rm conftest.$ac_ext
7422 LIBS=$ac_func_search_save_LIBS
7424 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7425 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7426 ac_res=$ac_cv_search_opendir
7427 if test "$ac_res" != no; then
7428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7432 else
7433 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7434 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7435 if test "${ac_cv_search_opendir+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438 ac_func_search_save_LIBS=$LIBS
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7446 /* Override any GCC internal prototype to avoid an error.
7447 Use char because int might match the return type of a GCC
7448 builtin and then its argument prototype would still apply. */
7449 #ifdef __cplusplus
7450 extern "C"
7451 #endif
7452 char opendir ();
7454 main ()
7456 return opendir ();
7458 return 0;
7460 _ACEOF
7461 for ac_lib in '' x; do
7462 if test -z "$ac_lib"; then
7463 ac_res="none required"
7464 else
7465 ac_res=-l$ac_lib
7466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7468 rm -f conftest.$ac_objext conftest$ac_exeext
7469 if { (ac_try="$ac_link"
7470 case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473 esac
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_link") 2>conftest.er1
7476 ac_status=$?
7477 grep -v '^ *+' conftest.er1 >conftest.err
7478 rm -f conftest.er1
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } &&
7482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7483 { (case "(($ac_try" in
7484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485 *) ac_try_echo=$ac_try;;
7486 esac
7487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488 (eval "$ac_try") 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; } &&
7492 { ac_try='test -s conftest$ac_exeext'
7493 { (case "(($ac_try" in
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7496 esac
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_try") 2>&5
7499 ac_status=$?
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502 ac_cv_search_opendir=$ac_res
7503 else
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7510 rm -f conftest.err conftest.$ac_objext \
7511 conftest$ac_exeext
7512 if test "${ac_cv_search_opendir+set}" = set; then
7513 break
7515 done
7516 if test "${ac_cv_search_opendir+set}" = set; then
7518 else
7519 ac_cv_search_opendir=no
7521 rm conftest.$ac_ext
7522 LIBS=$ac_func_search_save_LIBS
7524 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7525 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7526 ac_res=$ac_cv_search_opendir
7527 if test "$ac_res" != no; then
7528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7534 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7535 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7536 if test "${ac_cv_header_stdc+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539 cat >conftest.$ac_ext <<_ACEOF
7540 /* confdefs.h. */
7541 _ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 #include <stdlib.h>
7546 #include <stdarg.h>
7547 #include <string.h>
7548 #include <float.h>
7551 main ()
7555 return 0;
7557 _ACEOF
7558 rm -f conftest.$ac_objext
7559 if { (ac_try="$ac_compile"
7560 case "(($ac_try" in
7561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7562 *) ac_try_echo=$ac_try;;
7563 esac
7564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7573 { (case "(($ac_try" in
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576 esac
7577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578 (eval "$ac_try") 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest.$ac_objext'
7583 { (case "(($ac_try" in
7584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7585 *) ac_try_echo=$ac_try;;
7586 esac
7587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7588 (eval "$ac_try") 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_header_stdc=yes
7593 else
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_cv_header_stdc=no
7600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7602 if test $ac_cv_header_stdc = yes; then
7603 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7604 cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h. */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 #include <string.h>
7612 _ACEOF
7613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7614 $EGREP "memchr" >/dev/null 2>&1; then
7616 else
7617 ac_cv_header_stdc=no
7619 rm -f conftest*
7623 if test $ac_cv_header_stdc = yes; then
7624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7625 cat >conftest.$ac_ext <<_ACEOF
7626 /* confdefs.h. */
7627 _ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 #include <stdlib.h>
7633 _ACEOF
7634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7635 $EGREP "free" >/dev/null 2>&1; then
7637 else
7638 ac_cv_header_stdc=no
7640 rm -f conftest*
7644 if test $ac_cv_header_stdc = yes; then
7645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7646 if test "$cross_compiling" = yes; then
7648 else
7649 cat >conftest.$ac_ext <<_ACEOF
7650 /* confdefs.h. */
7651 _ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655 #include <ctype.h>
7656 #include <stdlib.h>
7657 #if ((' ' & 0x0FF) == 0x020)
7658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7660 #else
7661 # define ISLOWER(c) \
7662 (('a' <= (c) && (c) <= 'i') \
7663 || ('j' <= (c) && (c) <= 'r') \
7664 || ('s' <= (c) && (c) <= 'z'))
7665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7666 #endif
7668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7670 main ()
7672 int i;
7673 for (i = 0; i < 256; i++)
7674 if (XOR (islower (i), ISLOWER (i))
7675 || toupper (i) != TOUPPER (i))
7676 return 2;
7677 return 0;
7679 _ACEOF
7680 rm -f conftest$ac_exeext
7681 if { (ac_try="$ac_link"
7682 case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685 esac
7686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_link") 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7691 { (case "(($ac_try" in
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7694 esac
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696 (eval "$ac_try") 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7701 else
7702 echo "$as_me: program exited with status $ac_status" >&5
7703 echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7706 ( exit $ac_status )
7707 ac_cv_header_stdc=no
7709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7715 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7716 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7717 if test $ac_cv_header_stdc = yes; then
7719 cat >>confdefs.h <<\_ACEOF
7720 #define STDC_HEADERS 1
7721 _ACEOF
7725 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7726 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7727 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730 cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h. */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 #include <sys/types.h>
7737 #include <sys/wait.h>
7738 #ifndef WEXITSTATUS
7739 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7740 #endif
7741 #ifndef WIFEXITED
7742 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7743 #endif
7746 main ()
7748 int s;
7749 wait (&s);
7750 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7752 return 0;
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7757 case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_compile") 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7770 { (case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7773 esac
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775 (eval "$ac_try") 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest.$ac_objext'
7780 { (case "(($ac_try" in
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7783 esac
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_try") 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_header_sys_wait_h=yes
7790 else
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ac_cv_header_sys_wait_h=no
7797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7799 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7800 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7801 if test $ac_cv_header_sys_wait_h = yes; then
7803 cat >>confdefs.h <<\_ACEOF
7804 #define HAVE_SYS_WAIT_H 1
7805 _ACEOF
7832 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
7834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_res=`eval echo '${'$as_ac_Header'}'`
7842 { echo "$as_me:$LINENO: result: $ac_res" >&5
7843 echo "${ECHO_T}$ac_res" >&6; }
7844 else
7845 # Is the header compilable?
7846 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 $ac_includes_default
7855 #include <$ac_header>
7856 _ACEOF
7857 rm -f conftest.$ac_objext
7858 if { (ac_try="$ac_compile"
7859 case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7862 esac
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_compile") 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7872 { (case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875 esac
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_try") 2>&5
7878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try='test -s conftest.$ac_objext'
7882 { (case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_try") 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 ac_header_compiler=yes
7892 else
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 ac_header_compiler=no
7899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7901 echo "${ECHO_T}$ac_header_compiler" >&6; }
7903 # Is the header present?
7904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h. */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 #include <$ac_header>
7913 _ACEOF
7914 if { (ac_try="$ac_cpp conftest.$ac_ext"
7915 case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7918 esac
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } >/dev/null; then
7927 if test -s conftest.err; then
7928 ac_cpp_err=$ac_c_preproc_warn_flag
7929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7930 else
7931 ac_cpp_err=
7933 else
7934 ac_cpp_err=yes
7936 if test -z "$ac_cpp_err"; then
7937 ac_header_preproc=yes
7938 else
7939 echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7942 ac_header_preproc=no
7945 rm -f conftest.err conftest.$ac_ext
7946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7947 echo "${ECHO_T}$ac_header_preproc" >&6; }
7949 # So? What about this header?
7950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7951 yes:no: )
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7956 ac_header_preproc=yes
7958 no:yes:* )
7959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7973 esac
7974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979 eval "$as_ac_Header=\$ac_header_preproc"
7981 ac_res=`eval echo '${'$as_ac_Header'}'`
7982 { echo "$as_me:$LINENO: result: $ac_res" >&5
7983 echo "${ECHO_T}$ac_res" >&6; }
7986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7987 cat >>confdefs.h <<_ACEOF
7988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7989 _ACEOF
7993 done
7996 # Check whether --enable-largefile was given.
7997 if test "${enable_largefile+set}" = set; then
7998 enableval=$enable_largefile;
8001 if test "$enable_largefile" != no; then
8003 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8004 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
8005 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008 ac_cv_sys_largefile_CC=no
8009 if test "$GCC" != yes; then
8010 ac_save_CC=$CC
8011 while :; do
8012 # IRIX 6.2 and later do not support large files by default,
8013 # so use the C compiler's -n32 option if that helps.
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 #include <sys/types.h>
8021 /* Check that off_t can represent 2**63 - 1 correctly.
8022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8023 since some C++ compilers masquerading as C compilers
8024 incorrectly reject 9223372036854775807. */
8025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8027 && LARGE_OFF_T % 2147483647 == 1)
8028 ? 1 : -1];
8030 main ()
8034 return 0;
8036 _ACEOF
8037 rm -f conftest.$ac_objext
8038 if { (ac_try="$ac_compile"
8039 case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042 esac
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_compile") 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8052 { (case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8055 esac
8056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_try") 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; } &&
8061 { ac_try='test -s conftest.$ac_objext'
8062 { (case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065 esac
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_try") 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
8071 break
8072 else
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8079 rm -f conftest.err conftest.$ac_objext
8080 CC="$CC -n32"
8081 rm -f conftest.$ac_objext
8082 if { (ac_try="$ac_compile"
8083 case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_compile") 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8096 { (case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8099 esac
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_try") 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest.$ac_objext'
8106 { (case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109 esac
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_try") 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8115 ac_cv_sys_largefile_CC=' -n32'; break
8116 else
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8123 rm -f conftest.err conftest.$ac_objext
8124 break
8125 done
8126 CC=$ac_save_CC
8127 rm -f conftest.$ac_ext
8130 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8131 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
8132 if test "$ac_cv_sys_largefile_CC" != no; then
8133 CC=$CC$ac_cv_sys_largefile_CC
8136 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8137 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
8138 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141 while :; do
8142 ac_cv_sys_file_offset_bits=no
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 #include <sys/types.h>
8150 /* Check that off_t can represent 2**63 - 1 correctly.
8151 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8152 since some C++ compilers masquerading as C compilers
8153 incorrectly reject 9223372036854775807. */
8154 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8155 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8156 && LARGE_OFF_T % 2147483647 == 1)
8157 ? 1 : -1];
8159 main ()
8163 return 0;
8165 _ACEOF
8166 rm -f conftest.$ac_objext
8167 if { (ac_try="$ac_compile"
8168 case "(($ac_try" in
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8171 esac
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_compile") 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; } &&
8190 { ac_try='test -s conftest.$ac_objext'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194 esac
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 break
8201 else
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8209 cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h. */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8215 #define _FILE_OFFSET_BITS 64
8216 #include <sys/types.h>
8217 /* Check that off_t can represent 2**63 - 1 correctly.
8218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8219 since some C++ compilers masquerading as C compilers
8220 incorrectly reject 9223372036854775807. */
8221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8223 && LARGE_OFF_T % 2147483647 == 1)
8224 ? 1 : -1];
8226 main ()
8230 return 0;
8232 _ACEOF
8233 rm -f conftest.$ac_objext
8234 if { (ac_try="$ac_compile"
8235 case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_compile") 2>conftest.er1
8241 ac_status=$?
8242 grep -v '^ *+' conftest.er1 >conftest.err
8243 rm -f conftest.er1
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8248 { (case "(($ac_try" in
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8251 esac
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_try") 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; } &&
8257 { ac_try='test -s conftest.$ac_objext'
8258 { (case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8261 esac
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_try") 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_cv_sys_file_offset_bits=64; break
8268 else
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8276 break
8277 done
8279 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8280 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
8281 if test "$ac_cv_sys_file_offset_bits" != no; then
8283 cat >>confdefs.h <<_ACEOF
8284 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8285 _ACEOF
8288 rm -f conftest*
8289 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8290 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
8291 if test "${ac_cv_sys_large_files+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294 while :; do
8295 ac_cv_sys_large_files=no
8296 cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h. */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 #include <sys/types.h>
8303 /* Check that off_t can represent 2**63 - 1 correctly.
8304 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8305 since some C++ compilers masquerading as C compilers
8306 incorrectly reject 9223372036854775807. */
8307 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8308 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8309 && LARGE_OFF_T % 2147483647 == 1)
8310 ? 1 : -1];
8312 main ()
8316 return 0;
8318 _ACEOF
8319 rm -f conftest.$ac_objext
8320 if { (ac_try="$ac_compile"
8321 case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324 esac
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_compile") 2>conftest.er1
8327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } &&
8333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; } &&
8343 { ac_try='test -s conftest.$ac_objext'
8344 { (case "(($ac_try" in
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8347 esac
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_try") 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 break
8354 else
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8362 cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h. */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368 #define _LARGE_FILES 1
8369 #include <sys/types.h>
8370 /* Check that off_t can represent 2**63 - 1 correctly.
8371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8372 since some C++ compilers masquerading as C compilers
8373 incorrectly reject 9223372036854775807. */
8374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8376 && LARGE_OFF_T % 2147483647 == 1)
8377 ? 1 : -1];
8379 main ()
8383 return 0;
8385 _ACEOF
8386 rm -f conftest.$ac_objext
8387 if { (ac_try="$ac_compile"
8388 case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391 esac
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_compile") 2>conftest.er1
8394 ac_status=$?
8395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_try") 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest.$ac_objext'
8411 { (case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8414 esac
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_try") 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_sys_large_files=1; break
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8429 break
8430 done
8432 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8433 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
8434 if test "$ac_cv_sys_large_files" != no; then
8436 cat >>confdefs.h <<_ACEOF
8437 #define _LARGE_FILES $ac_cv_sys_large_files
8438 _ACEOF
8441 rm -f conftest*
8445 # Checks for typedefs, structures, and compiler characteristics.
8446 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8447 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
8448 if test "${ac_cv_header_stdbool_h+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8458 #include <stdbool.h>
8459 #ifndef bool
8460 "error: bool is not defined"
8461 #endif
8462 #ifndef false
8463 "error: false is not defined"
8464 #endif
8465 #if false
8466 "error: false is not 0"
8467 #endif
8468 #ifndef true
8469 "error: true is not defined"
8470 #endif
8471 #if true != 1
8472 "error: true is not 1"
8473 #endif
8474 #ifndef __bool_true_false_are_defined
8475 "error: __bool_true_false_are_defined is not defined"
8476 #endif
8478 struct s { _Bool s: 1; _Bool t; } s;
8480 char a[true == 1 ? 1 : -1];
8481 char b[false == 0 ? 1 : -1];
8482 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8483 char d[(bool) 0.5 == true ? 1 : -1];
8484 bool e = &s;
8485 char f[(_Bool) 0.0 == false ? 1 : -1];
8486 char g[true];
8487 char h[sizeof (_Bool)];
8488 char i[sizeof s.t];
8489 enum { j = false, k = true, l = false * true, m = true * 256 };
8490 _Bool n[m];
8491 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8492 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8493 # if defined __xlc__ || defined __GNUC__
8494 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8495 reported by James Lemley on 2005-10-05; see
8496 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8497 This test is not quite right, since xlc is allowed to
8498 reject this program, as the initializer for xlcbug is
8499 not one of the forms that C requires support for.
8500 However, doing the test right would require a runtime
8501 test, and that would make cross-compilation harder.
8502 Let us hope that IBM fixes the xlc bug, and also adds
8503 support for this kind of constant expression. In the
8504 meantime, this test will reject xlc, which is OK, since
8505 our stdbool.h substitute should suffice. We also test
8506 this with GCC, where it should work, to detect more
8507 quickly whether someone messes up the test in the
8508 future. */
8509 char digs[] = "0123456789";
8510 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8511 # endif
8512 /* Catch a bug in an HP-UX C compiler. See
8513 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8514 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8516 _Bool q = true;
8517 _Bool *pq = &q;
8520 main ()
8523 *pq |= q;
8524 *pq |= ! q;
8525 /* Refer to every declared value, to avoid compiler optimizations. */
8526 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8527 + !m + !n + !o + !p + !q + !pq);
8530 return 0;
8532 _ACEOF
8533 rm -f conftest.$ac_objext
8534 if { (ac_try="$ac_compile"
8535 case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8538 esac
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_compile") 2>conftest.er1
8541 ac_status=$?
8542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8548 { (case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_try") 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; } &&
8557 { ac_try='test -s conftest.$ac_objext'
8558 { (case "(($ac_try" in
8559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8560 *) ac_try_echo=$ac_try;;
8561 esac
8562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8563 (eval "$ac_try") 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_header_stdbool_h=yes
8568 else
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 ac_cv_header_stdbool_h=no
8575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8577 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8578 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
8579 { echo "$as_me:$LINENO: checking for _Bool" >&5
8580 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
8581 if test "${ac_cv_type__Bool+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h. */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8590 $ac_includes_default
8591 typedef _Bool ac__type_new_;
8593 main ()
8595 if ((ac__type_new_ *) 0)
8596 return 0;
8597 if (sizeof (ac__type_new_))
8598 return 0;
8600 return 0;
8602 _ACEOF
8603 rm -f conftest.$ac_objext
8604 if { (ac_try="$ac_compile"
8605 case "(($ac_try" in
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8608 esac
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_compile") 2>conftest.er1
8611 ac_status=$?
8612 grep -v '^ *+' conftest.er1 >conftest.err
8613 rm -f conftest.er1
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8618 { (case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_try") 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest.$ac_objext'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_type__Bool=yes
8638 else
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8642 ac_cv_type__Bool=no
8645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8647 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8648 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
8649 if test $ac_cv_type__Bool = yes; then
8651 cat >>confdefs.h <<_ACEOF
8652 #define HAVE__BOOL 1
8653 _ACEOF
8658 if test $ac_cv_header_stdbool_h = yes; then
8660 cat >>confdefs.h <<\_ACEOF
8661 #define HAVE_STDBOOL_H 1
8662 _ACEOF
8666 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8667 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8668 if test "${ac_cv_c_const+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671 cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h. */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8679 main ()
8681 /* FIXME: Include the comments suggested by Paul. */
8682 #ifndef __cplusplus
8683 /* Ultrix mips cc rejects this. */
8684 typedef int charset[2];
8685 const charset x;
8686 /* SunOS 4.1.1 cc rejects this. */
8687 char const *const *ccp;
8688 char **p;
8689 /* NEC SVR4.0.2 mips cc rejects this. */
8690 struct point {int x, y;};
8691 static struct point const zero = {0,0};
8692 /* AIX XL C 1.02.0.0 rejects this.
8693 It does not let you subtract one const X* pointer from another in
8694 an arm of an if-expression whose if-part is not a constant
8695 expression */
8696 const char *g = "string";
8697 ccp = &g + (g ? g-g : 0);
8698 /* HPUX 7.0 cc rejects these. */
8699 ++ccp;
8700 p = (char**) ccp;
8701 ccp = (char const *const *) p;
8702 { /* SCO 3.2v4 cc rejects this. */
8703 char *t;
8704 char const *s = 0 ? (char *) 0 : (char const *) 0;
8706 *t++ = 0;
8707 if (s) return 0;
8709 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8710 int x[] = {25, 17};
8711 const int *foo = &x[0];
8712 ++foo;
8714 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8715 typedef const int *iptr;
8716 iptr p = 0;
8717 ++p;
8719 { /* AIX XL C 1.02.0.0 rejects this saying
8720 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8721 struct s { int j; const int *ap[3]; };
8722 struct s *b; b->j = 5;
8724 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8725 const int foo = 10;
8726 if (!foo) return 0;
8728 return !x[0] && !zero.x;
8729 #endif
8732 return 0;
8734 _ACEOF
8735 rm -f conftest.$ac_objext
8736 if { (ac_try="$ac_compile"
8737 case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_compile") 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8750 { (case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8753 esac
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_try") 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; } &&
8759 { ac_try='test -s conftest.$ac_objext'
8760 { (case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_try") 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_c_const=yes
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_c_const=no
8777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8779 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8780 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8781 if test $ac_cv_c_const = no; then
8783 cat >>confdefs.h <<\_ACEOF
8784 #define const
8785 _ACEOF
8789 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8790 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8791 if test "${ac_cv_type_uid_t+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h. */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 #include <sys/types.h>
8802 _ACEOF
8803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8804 $EGREP "uid_t" >/dev/null 2>&1; then
8805 ac_cv_type_uid_t=yes
8806 else
8807 ac_cv_type_uid_t=no
8809 rm -f conftest*
8812 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8813 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
8814 if test $ac_cv_type_uid_t = no; then
8816 cat >>confdefs.h <<\_ACEOF
8817 #define uid_t int
8818 _ACEOF
8821 cat >>confdefs.h <<\_ACEOF
8822 #define gid_t int
8823 _ACEOF
8827 { echo "$as_me:$LINENO: checking for inline" >&5
8828 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8829 if test "${ac_cv_c_inline+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832 ac_cv_c_inline=no
8833 for ac_kw in inline __inline__ __inline; do
8834 cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h. */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840 #ifndef __cplusplus
8841 typedef int foo_t;
8842 static $ac_kw foo_t static_foo () {return 0; }
8843 $ac_kw foo_t foo () {return 0; }
8844 #endif
8846 _ACEOF
8847 rm -f conftest.$ac_objext
8848 if { (ac_try="$ac_compile"
8849 case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852 esac
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_compile") 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8862 { (case "(($ac_try" in
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8865 esac
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867 (eval "$ac_try") 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; } &&
8871 { ac_try='test -s conftest.$ac_objext'
8872 { (case "(($ac_try" in
8873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874 *) ac_try_echo=$ac_try;;
8875 esac
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_try") 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_cv_c_inline=$ac_kw
8882 else
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8890 test "$ac_cv_c_inline" != no && break
8891 done
8894 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8895 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8898 case $ac_cv_c_inline in
8899 inline | yes) ;;
8901 case $ac_cv_c_inline in
8902 no) ac_val=;;
8903 *) ac_val=$ac_cv_c_inline;;
8904 esac
8905 cat >>confdefs.h <<_ACEOF
8906 #ifndef __cplusplus
8907 #define inline $ac_val
8908 #endif
8909 _ACEOF
8911 esac
8913 { echo "$as_me:$LINENO: checking for mode_t" >&5
8914 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8915 if test "${ac_cv_type_mode_t+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 else
8918 cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h. */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924 $ac_includes_default
8925 typedef mode_t ac__type_new_;
8927 main ()
8929 if ((ac__type_new_ *) 0)
8930 return 0;
8931 if (sizeof (ac__type_new_))
8932 return 0;
8934 return 0;
8936 _ACEOF
8937 rm -f conftest.$ac_objext
8938 if { (ac_try="$ac_compile"
8939 case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8942 esac
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8952 { (case "(($ac_try" in
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8955 esac
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_try") 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest.$ac_objext'
8962 { (case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8965 esac
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_try") 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8971 ac_cv_type_mode_t=yes
8972 else
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_cv_type_mode_t=no
8979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8981 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8982 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8983 if test $ac_cv_type_mode_t = yes; then
8985 else
8987 cat >>confdefs.h <<_ACEOF
8988 #define mode_t int
8989 _ACEOF
8993 { echo "$as_me:$LINENO: checking for off_t" >&5
8994 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8995 if test "${ac_cv_type_off_t+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998 cat >conftest.$ac_ext <<_ACEOF
8999 /* confdefs.h. */
9000 _ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9004 $ac_includes_default
9005 typedef off_t ac__type_new_;
9007 main ()
9009 if ((ac__type_new_ *) 0)
9010 return 0;
9011 if (sizeof (ac__type_new_))
9012 return 0;
9014 return 0;
9016 _ACEOF
9017 rm -f conftest.$ac_objext
9018 if { (ac_try="$ac_compile"
9019 case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022 esac
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_compile") 2>conftest.er1
9025 ac_status=$?
9026 grep -v '^ *+' conftest.er1 >conftest.err
9027 rm -f conftest.er1
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9032 { (case "(($ac_try" in
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9035 esac
9036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_try") 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; } &&
9041 { ac_try='test -s conftest.$ac_objext'
9042 { (case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9045 esac
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_try") 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 ac_cv_type_off_t=yes
9052 else
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9056 ac_cv_type_off_t=no
9059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9061 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9062 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9063 if test $ac_cv_type_off_t = yes; then
9065 else
9067 cat >>confdefs.h <<_ACEOF
9068 #define off_t long int
9069 _ACEOF
9073 { echo "$as_me:$LINENO: checking for pid_t" >&5
9074 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9075 if test "${ac_cv_type_pid_t+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078 cat >conftest.$ac_ext <<_ACEOF
9079 /* confdefs.h. */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 $ac_includes_default
9085 typedef pid_t ac__type_new_;
9087 main ()
9089 if ((ac__type_new_ *) 0)
9090 return 0;
9091 if (sizeof (ac__type_new_))
9092 return 0;
9094 return 0;
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (ac_try="$ac_compile"
9099 case "(($ac_try" in
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9102 esac
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_compile") 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9112 { (case "(($ac_try" in
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9115 esac
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_try") 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest.$ac_objext'
9122 { (case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125 esac
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_cv_type_pid_t=yes
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9136 ac_cv_type_pid_t=no
9139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9141 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9142 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
9143 if test $ac_cv_type_pid_t = yes; then
9145 else
9147 cat >>confdefs.h <<_ACEOF
9148 #define pid_t int
9149 _ACEOF
9153 { echo "$as_me:$LINENO: checking for size_t" >&5
9154 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9155 if test "${ac_cv_type_size_t+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158 cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h. */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 $ac_includes_default
9165 typedef size_t ac__type_new_;
9167 main ()
9169 if ((ac__type_new_ *) 0)
9170 return 0;
9171 if (sizeof (ac__type_new_))
9172 return 0;
9174 return 0;
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9179 case "(($ac_try" in
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9182 esac
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9192 { (case "(($ac_try" in
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9195 esac
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_try") 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest.$ac_objext'
9202 { (case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_try") 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_cv_type_size_t=yes
9212 else
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 ac_cv_type_size_t=no
9219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9221 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9222 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9223 if test $ac_cv_type_size_t = yes; then
9225 else
9227 cat >>confdefs.h <<_ACEOF
9228 #define size_t unsigned int
9229 _ACEOF
9233 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9234 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
9235 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238 cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h. */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 $ac_includes_default
9246 main ()
9248 static struct stat ac_aggr;
9249 if (ac_aggr.st_blksize)
9250 return 0;
9252 return 0;
9254 _ACEOF
9255 rm -f conftest.$ac_objext
9256 if { (ac_try="$ac_compile"
9257 case "(($ac_try" in
9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259 *) ac_try_echo=$ac_try;;
9260 esac
9261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262 (eval "$ac_compile") 2>conftest.er1
9263 ac_status=$?
9264 grep -v '^ *+' conftest.er1 >conftest.err
9265 rm -f conftest.er1
9266 cat conftest.err >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } &&
9269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9270 { (case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_try") 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; } &&
9279 { ac_try='test -s conftest.$ac_objext'
9280 { (case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9283 esac
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_try") 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 ac_cv_member_struct_stat_st_blksize=yes
9290 else
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 $ac_includes_default
9302 main ()
9304 static struct stat ac_aggr;
9305 if (sizeof ac_aggr.st_blksize)
9306 return 0;
9308 return 0;
9310 _ACEOF
9311 rm -f conftest.$ac_objext
9312 if { (ac_try="$ac_compile"
9313 case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_compile") 2>conftest.er1
9319 ac_status=$?
9320 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -f conftest.er1
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
9325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9326 { (case "(($ac_try" in
9327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328 *) ac_try_echo=$ac_try;;
9329 esac
9330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331 (eval "$ac_try") 2>&5
9332 ac_status=$?
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; } &&
9335 { ac_try='test -s conftest.$ac_objext'
9336 { (case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339 esac
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_try") 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_cv_member_struct_stat_st_blksize=yes
9346 else
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9350 ac_cv_member_struct_stat_st_blksize=no
9353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9358 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9359 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
9360 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9362 cat >>confdefs.h <<_ACEOF
9363 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9364 _ACEOF
9369 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9370 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9371 if test "${ac_cv_header_time+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h. */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 #include <sys/types.h>
9381 #include <sys/time.h>
9382 #include <time.h>
9385 main ()
9387 if ((struct tm *) 0)
9388 return 0;
9390 return 0;
9392 _ACEOF
9393 rm -f conftest.$ac_objext
9394 if { (ac_try="$ac_compile"
9395 case "(($ac_try" in
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9398 esac
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_compile") 2>conftest.er1
9401 ac_status=$?
9402 grep -v '^ *+' conftest.er1 >conftest.err
9403 rm -f conftest.er1
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9408 { (case "(($ac_try" in
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9411 esac
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_try") 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; } &&
9417 { ac_try='test -s conftest.$ac_objext'
9418 { (case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421 esac
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_try") 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_header_time=yes
9428 else
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ac_cv_header_time=no
9435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9437 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9438 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9439 if test $ac_cv_header_time = yes; then
9441 cat >>confdefs.h <<\_ACEOF
9442 #define TIME_WITH_SYS_TIME 1
9443 _ACEOF
9447 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9448 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9449 if test "${ac_cv_struct_tm+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452 cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h. */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 #include <sys/types.h>
9459 #include <time.h>
9462 main ()
9464 struct tm *tp; tp->tm_sec;
9466 return 0;
9468 _ACEOF
9469 rm -f conftest.$ac_objext
9470 if { (ac_try="$ac_compile"
9471 case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_compile") 2>conftest.er1
9477 ac_status=$?
9478 grep -v '^ *+' conftest.er1 >conftest.err
9479 rm -f conftest.er1
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9484 { (case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487 esac
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_try") 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest.$ac_objext'
9494 { (case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9497 esac
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_try") 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_cv_struct_tm=time.h
9504 else
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9508 ac_cv_struct_tm=sys/time.h
9511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9513 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9514 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9515 if test $ac_cv_struct_tm = sys/time.h; then
9517 cat >>confdefs.h <<\_ACEOF
9518 #define TM_IN_SYS_TIME 1
9519 _ACEOF
9523 { echo "$as_me:$LINENO: checking for working volatile" >&5
9524 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9525 if test "${ac_cv_c_volatile+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528 cat >conftest.$ac_ext <<_ACEOF
9529 /* confdefs.h. */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9536 main ()
9539 volatile int x;
9540 int * volatile y = (int *) 0;
9541 return !x && !y;
9543 return 0;
9545 _ACEOF
9546 rm -f conftest.$ac_objext
9547 if { (ac_try="$ac_compile"
9548 case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9551 esac
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_compile") 2>conftest.er1
9554 ac_status=$?
9555 grep -v '^ *+' conftest.er1 >conftest.err
9556 rm -f conftest.er1
9557 cat conftest.err >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } &&
9560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9561 { (case "(($ac_try" in
9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9564 esac
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_try") 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try='test -s conftest.$ac_objext'
9571 { (case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574 esac
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_try") 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 ac_cv_c_volatile=yes
9581 else
9582 echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9585 ac_cv_c_volatile=no
9588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9590 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9591 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9592 if test $ac_cv_c_volatile = no; then
9594 cat >>confdefs.h <<\_ACEOF
9595 #define volatile
9596 _ACEOF
9600 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9601 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9602 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605 cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h. */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 $ac_includes_default
9612 typedef ptrdiff_t ac__type_new_;
9614 main ()
9616 if ((ac__type_new_ *) 0)
9617 return 0;
9618 if (sizeof (ac__type_new_))
9619 return 0;
9621 return 0;
9623 _ACEOF
9624 rm -f conftest.$ac_objext
9625 if { (ac_try="$ac_compile"
9626 case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_compile") 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9639 { (case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_try") 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; } &&
9648 { ac_try='test -s conftest.$ac_objext'
9649 { (case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652 esac
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_try") 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9658 ac_cv_type_ptrdiff_t=yes
9659 else
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9663 ac_cv_type_ptrdiff_t=no
9666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9668 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9669 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9670 if test $ac_cv_type_ptrdiff_t = yes; then
9672 cat >>confdefs.h <<_ACEOF
9673 #define HAVE_PTRDIFF_T 1
9674 _ACEOF
9680 # Checks for library functions.
9682 for ac_header in unistd.h
9684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 ac_res=`eval echo '${'$as_ac_Header'}'`
9692 { echo "$as_me:$LINENO: result: $ac_res" >&5
9693 echo "${ECHO_T}$ac_res" >&6; }
9694 else
9695 # Is the header compilable?
9696 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h. */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 $ac_includes_default
9705 #include <$ac_header>
9706 _ACEOF
9707 rm -f conftest.$ac_objext
9708 if { (ac_try="$ac_compile"
9709 case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9712 esac
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_compile") 2>conftest.er1
9715 ac_status=$?
9716 grep -v '^ *+' conftest.er1 >conftest.err
9717 rm -f conftest.er1
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9722 { (case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725 esac
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_try") 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try='test -s conftest.$ac_objext'
9732 { (case "(($ac_try" in
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9735 esac
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_try") 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9741 ac_header_compiler=yes
9742 else
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9746 ac_header_compiler=no
9749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9751 echo "${ECHO_T}$ac_header_compiler" >&6; }
9753 # Is the header present?
9754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9756 cat >conftest.$ac_ext <<_ACEOF
9757 /* confdefs.h. */
9758 _ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9762 #include <$ac_header>
9763 _ACEOF
9764 if { (ac_try="$ac_cpp conftest.$ac_ext"
9765 case "(($ac_try" in
9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9768 esac
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9771 ac_status=$?
9772 grep -v '^ *+' conftest.er1 >conftest.err
9773 rm -f conftest.er1
9774 cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } >/dev/null; then
9777 if test -s conftest.err; then
9778 ac_cpp_err=$ac_c_preproc_warn_flag
9779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9780 else
9781 ac_cpp_err=
9783 else
9784 ac_cpp_err=yes
9786 if test -z "$ac_cpp_err"; then
9787 ac_header_preproc=yes
9788 else
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 ac_header_preproc=no
9795 rm -f conftest.err conftest.$ac_ext
9796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9797 echo "${ECHO_T}$ac_header_preproc" >&6; }
9799 # So? What about this header?
9800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9801 yes:no: )
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9806 ac_header_preproc=yes
9808 no:yes:* )
9809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9823 esac
9824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829 eval "$as_ac_Header=\$ac_header_preproc"
9831 ac_res=`eval echo '${'$as_ac_Header'}'`
9832 { echo "$as_me:$LINENO: result: $ac_res" >&5
9833 echo "${ECHO_T}$ac_res" >&6; }
9836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9837 cat >>confdefs.h <<_ACEOF
9838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9839 _ACEOF
9843 done
9845 { echo "$as_me:$LINENO: checking for working chown" >&5
9846 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
9847 if test "${ac_cv_func_chown_works+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850 if test "$cross_compiling" = yes; then
9851 ac_cv_func_chown_works=no
9852 else
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h. */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 $ac_includes_default
9860 #include <fcntl.h>
9863 main ()
9865 char *f = "conftest.chown";
9866 struct stat before, after;
9868 if (creat (f, 0600) < 0)
9869 return 1;
9870 if (stat (f, &before) < 0)
9871 return 1;
9872 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
9873 return 1;
9874 if (stat (f, &after) < 0)
9875 return 1;
9876 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
9879 return 0;
9881 _ACEOF
9882 rm -f conftest$ac_exeext
9883 if { (ac_try="$ac_link"
9884 case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_func_chown_works=yes
9903 else
9904 echo "$as_me: program exited with status $ac_status" >&5
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ( exit $ac_status )
9909 ac_cv_func_chown_works=no
9911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9915 rm -f conftest.chown
9918 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
9919 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
9920 if test $ac_cv_func_chown_works = yes; then
9922 cat >>confdefs.h <<\_ACEOF
9923 #define HAVE_CHOWN 1
9924 _ACEOF
9928 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9929 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
9930 if test "${ac_cv_func_closedir_void+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933 if test "$cross_compiling" = yes; then
9934 ac_cv_func_closedir_void=yes
9935 else
9936 cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h. */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9942 $ac_includes_default
9943 #include <$ac_header_dirent>
9944 #ifndef __cplusplus
9945 int closedir ();
9946 #endif
9949 main ()
9951 return closedir (opendir (".")) != 0;
9953 return 0;
9955 _ACEOF
9956 rm -f conftest$ac_exeext
9957 if { (ac_try="$ac_link"
9958 case "(($ac_try" in
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9961 esac
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_link") 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9967 { (case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_try") 2>&5
9973 ac_status=$?
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_func_closedir_void=no
9977 else
9978 echo "$as_me: program exited with status $ac_status" >&5
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 ( exit $ac_status )
9983 ac_cv_func_closedir_void=yes
9985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9990 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9991 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
9992 if test $ac_cv_func_closedir_void = yes; then
9994 cat >>confdefs.h <<\_ACEOF
9995 #define CLOSEDIR_VOID 1
9996 _ACEOF
10000 { echo "$as_me:$LINENO: checking for error_at_line" >&5
10001 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
10002 if test "${ac_cv_lib_error_at_line+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 $ac_includes_default
10013 main ()
10015 error_at_line (0, 0, "", 0, "");
10017 return 0;
10019 _ACEOF
10020 rm -f conftest.$ac_objext conftest$ac_exeext
10021 if { (ac_try="$ac_link"
10022 case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10025 esac
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_link") 2>conftest.er1
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10035 { (case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038 esac
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_try") 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048 esac
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_try") 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_cv_lib_error_at_line=yes
10055 else
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_cv_lib_error_at_line=no
10062 rm -f conftest.err conftest.$ac_objext \
10063 conftest$ac_exeext conftest.$ac_ext
10065 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10066 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10067 if test $ac_cv_lib_error_at_line = no; then
10068 case " $LIBOBJS " in
10069 *" error.$ac_objext "* ) ;;
10070 *) LIBOBJS="$LIBOBJS error.$ac_objext"
10072 esac
10077 for ac_header in vfork.h
10079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 ac_res=`eval echo '${'$as_ac_Header'}'`
10087 { echo "$as_me:$LINENO: result: $ac_res" >&5
10088 echo "${ECHO_T}$ac_res" >&6; }
10089 else
10090 # Is the header compilable?
10091 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10093 cat >conftest.$ac_ext <<_ACEOF
10094 /* confdefs.h. */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10099 $ac_includes_default
10100 #include <$ac_header>
10101 _ACEOF
10102 rm -f conftest.$ac_objext
10103 if { (ac_try="$ac_compile"
10104 case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107 esac
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_compile") 2>conftest.er1
10110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
10112 rm -f conftest.er1
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10117 { (case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_try") 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; } &&
10126 { ac_try='test -s conftest.$ac_objext'
10127 { (case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10130 esac
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132 (eval "$ac_try") 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_header_compiler=yes
10137 else
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ac_header_compiler=no
10144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10146 echo "${ECHO_T}$ac_header_compiler" >&6; }
10148 # Is the header present?
10149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h. */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 #include <$ac_header>
10158 _ACEOF
10159 if { (ac_try="$ac_cpp conftest.$ac_ext"
10160 case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10166 ac_status=$?
10167 grep -v '^ *+' conftest.er1 >conftest.err
10168 rm -f conftest.er1
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } >/dev/null; then
10172 if test -s conftest.err; then
10173 ac_cpp_err=$ac_c_preproc_warn_flag
10174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10175 else
10176 ac_cpp_err=
10178 else
10179 ac_cpp_err=yes
10181 if test -z "$ac_cpp_err"; then
10182 ac_header_preproc=yes
10183 else
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_header_preproc=no
10190 rm -f conftest.err conftest.$ac_ext
10191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10192 echo "${ECHO_T}$ac_header_preproc" >&6; }
10194 # So? What about this header?
10195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10196 yes:no: )
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10201 ac_header_preproc=yes
10203 no:yes:* )
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10218 esac
10219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224 eval "$as_ac_Header=\$ac_header_preproc"
10226 ac_res=`eval echo '${'$as_ac_Header'}'`
10227 { echo "$as_me:$LINENO: result: $ac_res" >&5
10228 echo "${ECHO_T}$ac_res" >&6; }
10231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10232 cat >>confdefs.h <<_ACEOF
10233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10234 _ACEOF
10238 done
10242 for ac_func in fork vfork
10244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h. */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10258 #define $ac_func innocuous_$ac_func
10260 /* System header to define __stub macros and hopefully few prototypes,
10261 which can conflict with char $ac_func (); below.
10262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10263 <limits.h> exists even on freestanding compilers. */
10265 #ifdef __STDC__
10266 # include <limits.h>
10267 #else
10268 # include <assert.h>
10269 #endif
10271 #undef $ac_func
10273 /* Override any GCC internal prototype to avoid an error.
10274 Use char because int might match the return type of a GCC
10275 builtin and then its argument prototype would still apply. */
10276 #ifdef __cplusplus
10277 extern "C"
10278 #endif
10279 char $ac_func ();
10280 /* The GNU C library defines this for functions which it implements
10281 to always fail with ENOSYS. Some functions are actually named
10282 something starting with __ and the normal name is an alias. */
10283 #if defined __stub_$ac_func || defined __stub___$ac_func
10284 choke me
10285 #endif
10288 main ()
10290 return $ac_func ();
10292 return 0;
10294 _ACEOF
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (ac_try="$ac_link"
10297 case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10300 esac
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_link") 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10310 { (case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313 esac
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_try") 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323 esac
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_try") 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 eval "$as_ac_var=yes"
10330 else
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 eval "$as_ac_var=no"
10337 rm -f conftest.err conftest.$ac_objext \
10338 conftest$ac_exeext conftest.$ac_ext
10340 ac_res=`eval echo '${'$as_ac_var'}'`
10341 { echo "$as_me:$LINENO: result: $ac_res" >&5
10342 echo "${ECHO_T}$ac_res" >&6; }
10343 if test `eval echo '${'$as_ac_var'}'` = yes; then
10344 cat >>confdefs.h <<_ACEOF
10345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10346 _ACEOF
10349 done
10351 if test "x$ac_cv_func_fork" = xyes; then
10352 { echo "$as_me:$LINENO: checking for working fork" >&5
10353 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
10354 if test "${ac_cv_func_fork_works+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357 if test "$cross_compiling" = yes; then
10358 ac_cv_func_fork_works=cross
10359 else
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h. */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10368 main ()
10371 /* By Ruediger Kuhlmann. */
10372 return fork () < 0;
10375 return 0;
10377 _ACEOF
10378 rm -f conftest$ac_exeext
10379 if { (ac_try="$ac_link"
10380 case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10383 esac
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_link") 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10389 { (case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_try") 2>&5
10395 ac_status=$?
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; }; then
10398 ac_cv_func_fork_works=yes
10399 else
10400 echo "$as_me: program exited with status $ac_status" >&5
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10404 ( exit $ac_status )
10405 ac_cv_func_fork_works=no
10407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10412 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10413 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
10415 else
10416 ac_cv_func_fork_works=$ac_cv_func_fork
10418 if test "x$ac_cv_func_fork_works" = xcross; then
10419 case $host in
10420 *-*-amigaos* | *-*-msdosdjgpp*)
10421 # Override, as these systems have only a dummy fork() stub
10422 ac_cv_func_fork_works=no
10425 ac_cv_func_fork_works=yes
10427 esac
10428 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10429 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10431 ac_cv_func_vfork_works=$ac_cv_func_vfork
10432 if test "x$ac_cv_func_vfork" = xyes; then
10433 { echo "$as_me:$LINENO: checking for working vfork" >&5
10434 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
10435 if test "${ac_cv_func_vfork_works+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438 if test "$cross_compiling" = yes; then
10439 ac_cv_func_vfork_works=cross
10440 else
10441 cat >conftest.$ac_ext <<_ACEOF
10442 /* confdefs.h. */
10443 _ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 /* Thanks to Paul Eggert for this test. */
10448 $ac_includes_default
10449 #include <sys/wait.h>
10450 #if HAVE_VFORK_H
10451 # include <vfork.h>
10452 #endif
10453 /* On some sparc systems, changes by the child to local and incoming
10454 argument registers are propagated back to the parent. The compiler
10455 is told about this with #include <vfork.h>, but some compilers
10456 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10457 static variable whose address is put into a register that is
10458 clobbered by the vfork. */
10459 static void
10460 #ifdef __cplusplus
10461 sparc_address_test (int arg)
10462 # else
10463 sparc_address_test (arg) int arg;
10464 #endif
10466 static pid_t child;
10467 if (!child) {
10468 child = vfork ();
10469 if (child < 0) {
10470 perror ("vfork");
10471 _exit(2);
10473 if (!child) {
10474 arg = getpid();
10475 write(-1, "", 0);
10476 _exit (arg);
10482 main ()
10484 pid_t parent = getpid ();
10485 pid_t child;
10487 sparc_address_test (0);
10489 child = vfork ();
10491 if (child == 0) {
10492 /* Here is another test for sparc vfork register problems. This
10493 test uses lots of local variables, at least as many local
10494 variables as main has allocated so far including compiler
10495 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10496 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10497 reuse the register of parent for one of the local variables,
10498 since it will think that parent can't possibly be used any more
10499 in this routine. Assigning to the local variable will thus
10500 munge parent in the parent process. */
10501 pid_t
10502 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10503 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10504 /* Convince the compiler that p..p7 are live; otherwise, it might
10505 use the same hardware register for all 8 local variables. */
10506 if (p != p1 || p != p2 || p != p3 || p != p4
10507 || p != p5 || p != p6 || p != p7)
10508 _exit(1);
10510 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10511 from child file descriptors. If the child closes a descriptor
10512 before it execs or exits, this munges the parent's descriptor
10513 as well. Test for this by closing stdout in the child. */
10514 _exit(close(fileno(stdout)) != 0);
10515 } else {
10516 int status;
10517 struct stat st;
10519 while (wait(&status) != child)
10521 return (
10522 /* Was there some problem with vforking? */
10523 child < 0
10525 /* Did the child fail? (This shouldn't happen.) */
10526 || status
10528 /* Did the vfork/compiler bug occur? */
10529 || parent != getpid()
10531 /* Did the file descriptor bug occur? */
10532 || fstat(fileno(stdout), &st) != 0
10536 _ACEOF
10537 rm -f conftest$ac_exeext
10538 if { (ac_try="$ac_link"
10539 case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10542 esac
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_link") 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10548 { (case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10551 esac
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_try") 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 ac_cv_func_vfork_works=yes
10558 else
10559 echo "$as_me: program exited with status $ac_status" >&5
10560 echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10563 ( exit $ac_status )
10564 ac_cv_func_vfork_works=no
10566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10571 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10572 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10575 if test "x$ac_cv_func_fork_works" = xcross; then
10576 ac_cv_func_vfork_works=$ac_cv_func_vfork
10577 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10578 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10581 if test "x$ac_cv_func_vfork_works" = xyes; then
10583 cat >>confdefs.h <<\_ACEOF
10584 #define HAVE_WORKING_VFORK 1
10585 _ACEOF
10587 else
10589 cat >>confdefs.h <<\_ACEOF
10590 #define vfork fork
10591 _ACEOF
10594 if test "x$ac_cv_func_fork_works" = xyes; then
10596 cat >>confdefs.h <<\_ACEOF
10597 #define HAVE_WORKING_FORK 1
10598 _ACEOF
10602 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10603 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
10604 if test "${ac_cv_sys_largefile_source+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607 while :; do
10608 ac_cv_sys_largefile_source=no
10609 cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h. */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 #include <stdio.h>
10617 main ()
10619 return !fseeko;
10621 return 0;
10623 _ACEOF
10624 rm -f conftest.$ac_objext
10625 if { (ac_try="$ac_compile"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_compile") 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652 esac
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 break
10659 else
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10667 cat >conftest.$ac_ext <<_ACEOF
10668 /* confdefs.h. */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673 #define _LARGEFILE_SOURCE 1
10674 #include <stdio.h>
10676 main ()
10678 return !fseeko;
10680 return 0;
10682 _ACEOF
10683 rm -f conftest.$ac_objext
10684 if { (ac_try="$ac_compile"
10685 case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688 esac
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_compile") 2>conftest.er1
10691 ac_status=$?
10692 grep -v '^ *+' conftest.er1 >conftest.err
10693 rm -f conftest.er1
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10698 { (case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701 esac
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_try") 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; } &&
10707 { ac_try='test -s conftest.$ac_objext'
10708 { (case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_try") 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_cv_sys_largefile_source=1; break
10718 else
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10726 break
10727 done
10729 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
10730 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
10731 if test "$ac_cv_sys_largefile_source" != no; then
10733 cat >>confdefs.h <<_ACEOF
10734 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10735 _ACEOF
10738 rm -f conftest*
10740 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10741 # in glibc 2.1.3, but that breaks too many other things.
10742 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10743 { echo "$as_me:$LINENO: checking for fseeko" >&5
10744 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
10745 if test "${ac_cv_func_fseeko+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 else
10748 cat >conftest.$ac_ext <<_ACEOF
10749 /* confdefs.h. */
10750 _ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10754 #include <stdio.h>
10756 main ()
10758 return fseeko && fseeko (stdin, 0, 0);
10760 return 0;
10762 _ACEOF
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (ac_try="$ac_link"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_link") 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
10777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10778 { (case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_try") 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try='test -s conftest$ac_exeext'
10788 { (case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_try") 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 ac_cv_func_fseeko=yes
10798 else
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ac_cv_func_fseeko=no
10805 rm -f conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
10809 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
10810 if test $ac_cv_func_fseeko = yes; then
10812 cat >>confdefs.h <<\_ACEOF
10813 #define HAVE_FSEEKO 1
10814 _ACEOF
10818 if test $ac_cv_c_compiler_gnu = yes; then
10819 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10820 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
10821 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824 ac_pattern="Autoconf.*'x'"
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h. */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 #include <sgtty.h>
10832 Autoconf TIOCGETP
10833 _ACEOF
10834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10835 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10836 ac_cv_prog_gcc_traditional=yes
10837 else
10838 ac_cv_prog_gcc_traditional=no
10840 rm -f conftest*
10843 if test $ac_cv_prog_gcc_traditional = no; then
10844 cat >conftest.$ac_ext <<_ACEOF
10845 /* confdefs.h. */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 #include <termio.h>
10851 Autoconf TCGETA
10852 _ACEOF
10853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10854 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10855 ac_cv_prog_gcc_traditional=yes
10857 rm -f conftest*
10861 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10862 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
10863 if test $ac_cv_prog_gcc_traditional = yes; then
10864 CC="$CC -traditional"
10869 for ac_header in stdlib.h
10871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 ac_res=`eval echo '${'$as_ac_Header'}'`
10879 { echo "$as_me:$LINENO: result: $ac_res" >&5
10880 echo "${ECHO_T}$ac_res" >&6; }
10881 else
10882 # Is the header compilable?
10883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 $ac_includes_default
10892 #include <$ac_header>
10893 _ACEOF
10894 rm -f conftest.$ac_objext
10895 if { (ac_try="$ac_compile"
10896 case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_compile") 2>conftest.er1
10902 ac_status=$?
10903 grep -v '^ *+' conftest.er1 >conftest.err
10904 rm -f conftest.er1
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } &&
10908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10909 { (case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912 esac
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_try") 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; } &&
10918 { ac_try='test -s conftest.$ac_objext'
10919 { (case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10922 esac
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924 (eval "$ac_try") 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; }; then
10928 ac_header_compiler=yes
10929 else
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10933 ac_header_compiler=no
10936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10938 echo "${ECHO_T}$ac_header_compiler" >&6; }
10940 # Is the header present?
10941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10943 cat >conftest.$ac_ext <<_ACEOF
10944 /* confdefs.h. */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10949 #include <$ac_header>
10950 _ACEOF
10951 if { (ac_try="$ac_cpp conftest.$ac_ext"
10952 case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10958 ac_status=$?
10959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } >/dev/null; then
10964 if test -s conftest.err; then
10965 ac_cpp_err=$ac_c_preproc_warn_flag
10966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10967 else
10968 ac_cpp_err=
10970 else
10971 ac_cpp_err=yes
10973 if test -z "$ac_cpp_err"; then
10974 ac_header_preproc=yes
10975 else
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10979 ac_header_preproc=no
10982 rm -f conftest.err conftest.$ac_ext
10983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10984 echo "${ECHO_T}$ac_header_preproc" >&6; }
10986 # So? What about this header?
10987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10988 yes:no: )
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10993 ac_header_preproc=yes
10995 no:yes:* )
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11010 esac
11011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 else
11016 eval "$as_ac_Header=\$ac_header_preproc"
11018 ac_res=`eval echo '${'$as_ac_Header'}'`
11019 { echo "$as_me:$LINENO: result: $ac_res" >&5
11020 echo "${ECHO_T}$ac_res" >&6; }
11023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11024 cat >>confdefs.h <<_ACEOF
11025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11026 _ACEOF
11030 done
11032 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
11033 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
11034 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 if test "$cross_compiling" = yes; then
11038 ac_cv_func_malloc_0_nonnull=no
11039 else
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h. */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 #if STDC_HEADERS || HAVE_STDLIB_H
11047 # include <stdlib.h>
11048 #else
11049 char *malloc ();
11050 #endif
11053 main ()
11055 return ! malloc (0);
11057 return 0;
11059 _ACEOF
11060 rm -f conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_link") 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11071 { (case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11074 esac
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_try") 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 ac_cv_func_malloc_0_nonnull=yes
11081 else
11082 echo "$as_me: program exited with status $ac_status" >&5
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ( exit $ac_status )
11087 ac_cv_func_malloc_0_nonnull=no
11089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11094 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
11095 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
11096 if test $ac_cv_func_malloc_0_nonnull = yes; then
11098 cat >>confdefs.h <<\_ACEOF
11099 #define HAVE_MALLOC 1
11100 _ACEOF
11102 else
11103 cat >>confdefs.h <<\_ACEOF
11104 #define HAVE_MALLOC 0
11105 _ACEOF
11107 case " $LIBOBJS " in
11108 *" malloc.$ac_objext "* ) ;;
11109 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11111 esac
11114 cat >>confdefs.h <<\_ACEOF
11115 #define malloc rpl_malloc
11116 _ACEOF
11122 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11123 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11124 if test "${ac_cv_func_memcmp_working+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127 if test "$cross_compiling" = yes; then
11128 ac_cv_func_memcmp_working=no
11129 else
11130 cat >conftest.$ac_ext <<_ACEOF
11131 /* confdefs.h. */
11132 _ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11136 $ac_includes_default
11138 main ()
11141 /* Some versions of memcmp are not 8-bit clean. */
11142 char c0 = '\100', c1 = '\200', c2 = '\201';
11143 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11144 return 1;
11146 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11147 or more and with at least one buffer not starting on a 4-byte boundary.
11148 William Lewis provided this test program. */
11150 char foo[21];
11151 char bar[21];
11152 int i;
11153 for (i = 0; i < 4; i++)
11155 char *a = foo + i;
11156 char *b = bar + i;
11157 strcpy (a, "--------01111111");
11158 strcpy (b, "--------10000000");
11159 if (memcmp (a, b, 16) >= 0)
11160 return 1;
11162 return 0;
11166 return 0;
11168 _ACEOF
11169 rm -f conftest$ac_exeext
11170 if { (ac_try="$ac_link"
11171 case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11174 esac
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_link") 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11180 { (case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_try") 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_func_memcmp_working=yes
11190 else
11191 echo "$as_me: program exited with status $ac_status" >&5
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 ( exit $ac_status )
11196 ac_cv_func_memcmp_working=no
11198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11203 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11204 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11205 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11206 *" memcmp.$ac_objext "* ) ;;
11207 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11209 esac
11215 for ac_header in stdlib.h sys/time.h unistd.h
11217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 ac_res=`eval echo '${'$as_ac_Header'}'`
11225 { echo "$as_me:$LINENO: result: $ac_res" >&5
11226 echo "${ECHO_T}$ac_res" >&6; }
11227 else
11228 # Is the header compilable?
11229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11231 cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h. */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 $ac_includes_default
11238 #include <$ac_header>
11239 _ACEOF
11240 rm -f conftest.$ac_objext
11241 if { (ac_try="$ac_compile"
11242 case "(($ac_try" in
11243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 *) ac_try_echo=$ac_try;;
11245 esac
11246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 (eval "$ac_compile") 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11255 { (case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11258 esac
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_try") 2>&5
11261 ac_status=$?
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; } &&
11264 { ac_try='test -s conftest.$ac_objext'
11265 { (case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268 esac
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_try") 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; }; then
11274 ac_header_compiler=yes
11275 else
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11279 ac_header_compiler=no
11282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11284 echo "${ECHO_T}$ac_header_compiler" >&6; }
11286 # Is the header present?
11287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11289 cat >conftest.$ac_ext <<_ACEOF
11290 /* confdefs.h. */
11291 _ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 #include <$ac_header>
11296 _ACEOF
11297 if { (ac_try="$ac_cpp conftest.$ac_ext"
11298 case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11301 esac
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11304 ac_status=$?
11305 grep -v '^ *+' conftest.er1 >conftest.err
11306 rm -f conftest.er1
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } >/dev/null; then
11310 if test -s conftest.err; then
11311 ac_cpp_err=$ac_c_preproc_warn_flag
11312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11313 else
11314 ac_cpp_err=
11316 else
11317 ac_cpp_err=yes
11319 if test -z "$ac_cpp_err"; then
11320 ac_header_preproc=yes
11321 else
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_header_preproc=no
11328 rm -f conftest.err conftest.$ac_ext
11329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11330 echo "${ECHO_T}$ac_header_preproc" >&6; }
11332 # So? What about this header?
11333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11334 yes:no: )
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11339 ac_header_preproc=yes
11341 no:yes:* )
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11356 esac
11357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362 eval "$as_ac_Header=\$ac_header_preproc"
11364 ac_res=`eval echo '${'$as_ac_Header'}'`
11365 { echo "$as_me:$LINENO: result: $ac_res" >&5
11366 echo "${ECHO_T}$ac_res" >&6; }
11369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11370 cat >>confdefs.h <<_ACEOF
11371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11372 _ACEOF
11376 done
11379 for ac_func in alarm
11381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387 cat >conftest.$ac_ext <<_ACEOF
11388 /* confdefs.h. */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11395 #define $ac_func innocuous_$ac_func
11397 /* System header to define __stub macros and hopefully few prototypes,
11398 which can conflict with char $ac_func (); below.
11399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11400 <limits.h> exists even on freestanding compilers. */
11402 #ifdef __STDC__
11403 # include <limits.h>
11404 #else
11405 # include <assert.h>
11406 #endif
11408 #undef $ac_func
11410 /* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11413 #ifdef __cplusplus
11414 extern "C"
11415 #endif
11416 char $ac_func ();
11417 /* The GNU C library defines this for functions which it implements
11418 to always fail with ENOSYS. Some functions are actually named
11419 something starting with __ and the normal name is an alias. */
11420 #if defined __stub_$ac_func || defined __stub___$ac_func
11421 choke me
11422 #endif
11425 main ()
11427 return $ac_func ();
11429 return 0;
11431 _ACEOF
11432 rm -f conftest.$ac_objext conftest$ac_exeext
11433 if { (ac_try="$ac_link"
11434 case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_link") 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest$ac_exeext'
11457 { (case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460 esac
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_try") 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 eval "$as_ac_var=yes"
11467 else
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 eval "$as_ac_var=no"
11474 rm -f conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11477 ac_res=`eval echo '${'$as_ac_var'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11480 if test `eval echo '${'$as_ac_var'}'` = yes; then
11481 cat >>confdefs.h <<_ACEOF
11482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11483 _ACEOF
11486 done
11488 { echo "$as_me:$LINENO: checking for working mktime" >&5
11489 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
11490 if test "${ac_cv_func_working_mktime+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 else
11493 if test "$cross_compiling" = yes; then
11494 ac_cv_func_working_mktime=no
11495 else
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 /* Test program from Paul Eggert and Tony Leneis. */
11503 #if TIME_WITH_SYS_TIME
11504 # include <sys/time.h>
11505 # include <time.h>
11506 #else
11507 # if HAVE_SYS_TIME_H
11508 # include <sys/time.h>
11509 # else
11510 # include <time.h>
11511 # endif
11512 #endif
11514 #if HAVE_STDLIB_H
11515 # include <stdlib.h>
11516 #endif
11518 #if HAVE_UNISTD_H
11519 # include <unistd.h>
11520 #endif
11522 #if !HAVE_ALARM
11523 # define alarm(X) /* empty */
11524 #endif
11526 /* Work around redefinition to rpl_putenv by other config tests. */
11527 #undef putenv
11529 static time_t time_t_max;
11530 static time_t time_t_min;
11532 /* Values we'll use to set the TZ environment variable. */
11533 static char *tz_strings[] = {
11534 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11535 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11537 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11539 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11540 Based on a problem report from Andreas Jaeger. */
11541 static int
11542 spring_forward_gap ()
11544 /* glibc (up to about 1998-10-07) failed this test. */
11545 struct tm tm;
11547 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11548 instead of "TZ=America/Vancouver" in order to detect the bug even
11549 on systems that don't support the Olson extension, or don't have the
11550 full zoneinfo tables installed. */
11551 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11553 tm.tm_year = 98;
11554 tm.tm_mon = 3;
11555 tm.tm_mday = 5;
11556 tm.tm_hour = 2;
11557 tm.tm_min = 0;
11558 tm.tm_sec = 0;
11559 tm.tm_isdst = -1;
11560 return mktime (&tm) != (time_t) -1;
11563 static int
11564 mktime_test1 (now)
11565 time_t now;
11567 struct tm *lt;
11568 return ! (lt = localtime (&now)) || mktime (lt) == now;
11571 static int
11572 mktime_test (now)
11573 time_t now;
11575 return (mktime_test1 (now)
11576 && mktime_test1 ((time_t) (time_t_max - now))
11577 && mktime_test1 ((time_t) (time_t_min + now)));
11580 static int
11581 irix_6_4_bug ()
11583 /* Based on code from Ariel Faigon. */
11584 struct tm tm;
11585 tm.tm_year = 96;
11586 tm.tm_mon = 3;
11587 tm.tm_mday = 0;
11588 tm.tm_hour = 0;
11589 tm.tm_min = 0;
11590 tm.tm_sec = 0;
11591 tm.tm_isdst = -1;
11592 mktime (&tm);
11593 return tm.tm_mon == 2 && tm.tm_mday == 31;
11596 static int
11597 bigtime_test (j)
11598 int j;
11600 struct tm tm;
11601 time_t now;
11602 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11603 now = mktime (&tm);
11604 if (now != (time_t) -1)
11606 struct tm *lt = localtime (&now);
11607 if (! (lt
11608 && lt->tm_year == tm.tm_year
11609 && lt->tm_mon == tm.tm_mon
11610 && lt->tm_mday == tm.tm_mday
11611 && lt->tm_hour == tm.tm_hour
11612 && lt->tm_min == tm.tm_min
11613 && lt->tm_sec == tm.tm_sec
11614 && lt->tm_yday == tm.tm_yday
11615 && lt->tm_wday == tm.tm_wday
11616 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11617 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11618 return 0;
11620 return 1;
11624 main ()
11626 time_t t, delta;
11627 int i, j;
11629 /* This test makes some buggy mktime implementations loop.
11630 Give up after 60 seconds; a mktime slower than that
11631 isn't worth using anyway. */
11632 alarm (60);
11634 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11635 continue;
11636 time_t_max--;
11637 if ((time_t) -1 < 0)
11638 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11639 continue;
11640 delta = time_t_max / 997; /* a suitable prime number */
11641 for (i = 0; i < N_STRINGS; i++)
11643 if (tz_strings[i])
11644 putenv (tz_strings[i]);
11646 for (t = 0; t <= time_t_max - delta; t += delta)
11647 if (! mktime_test (t))
11648 return 1;
11649 if (! (mktime_test ((time_t) 1)
11650 && mktime_test ((time_t) (60 * 60))
11651 && mktime_test ((time_t) (60 * 60 * 24))))
11652 return 1;
11654 for (j = 1; 0 < j; j *= 2)
11655 if (! bigtime_test (j))
11656 return 1;
11657 if (! bigtime_test (j - 1))
11658 return 1;
11660 return ! (irix_6_4_bug () && spring_forward_gap ());
11662 _ACEOF
11663 rm -f conftest$ac_exeext
11664 if { (ac_try="$ac_link"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_link") 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11674 { (case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_try") 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 ac_cv_func_working_mktime=yes
11684 else
11685 echo "$as_me: program exited with status $ac_status" >&5
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11689 ( exit $ac_status )
11690 ac_cv_func_working_mktime=no
11692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11697 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11698 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
11699 if test $ac_cv_func_working_mktime = no; then
11700 case " $LIBOBJS " in
11701 *" mktime.$ac_objext "* ) ;;
11702 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11704 esac
11710 for ac_header in stdlib.h unistd.h
11712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 ac_res=`eval echo '${'$as_ac_Header'}'`
11720 { echo "$as_me:$LINENO: result: $ac_res" >&5
11721 echo "${ECHO_T}$ac_res" >&6; }
11722 else
11723 # Is the header compilable?
11724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11726 cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h. */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11732 $ac_includes_default
11733 #include <$ac_header>
11734 _ACEOF
11735 rm -f conftest.$ac_objext
11736 if { (ac_try="$ac_compile"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_compile") 2>conftest.er1
11743 ac_status=$?
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750 { (case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_try") 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest.$ac_objext'
11760 { (case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_try") 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_header_compiler=yes
11770 else
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11774 ac_header_compiler=no
11777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11779 echo "${ECHO_T}$ac_header_compiler" >&6; }
11781 # Is the header present?
11782 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11784 cat >conftest.$ac_ext <<_ACEOF
11785 /* confdefs.h. */
11786 _ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11790 #include <$ac_header>
11791 _ACEOF
11792 if { (ac_try="$ac_cpp conftest.$ac_ext"
11793 case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } >/dev/null; then
11805 if test -s conftest.err; then
11806 ac_cpp_err=$ac_c_preproc_warn_flag
11807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11808 else
11809 ac_cpp_err=
11811 else
11812 ac_cpp_err=yes
11814 if test -z "$ac_cpp_err"; then
11815 ac_header_preproc=yes
11816 else
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11820 ac_header_preproc=no
11823 rm -f conftest.err conftest.$ac_ext
11824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11825 echo "${ECHO_T}$ac_header_preproc" >&6; }
11827 # So? What about this header?
11828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11829 yes:no: )
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11834 ac_header_preproc=yes
11836 no:yes:* )
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11851 esac
11852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857 eval "$as_ac_Header=\$ac_header_preproc"
11859 ac_res=`eval echo '${'$as_ac_Header'}'`
11860 { echo "$as_me:$LINENO: result: $ac_res" >&5
11861 echo "${ECHO_T}$ac_res" >&6; }
11864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11865 cat >>confdefs.h <<_ACEOF
11866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11867 _ACEOF
11871 done
11874 for ac_func in getpagesize
11876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h. */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11890 #define $ac_func innocuous_$ac_func
11892 /* System header to define __stub macros and hopefully few prototypes,
11893 which can conflict with char $ac_func (); below.
11894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11895 <limits.h> exists even on freestanding compilers. */
11897 #ifdef __STDC__
11898 # include <limits.h>
11899 #else
11900 # include <assert.h>
11901 #endif
11903 #undef $ac_func
11905 /* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 char $ac_func ();
11912 /* The GNU C library defines this for functions which it implements
11913 to always fail with ENOSYS. Some functions are actually named
11914 something starting with __ and the normal name is an alias. */
11915 #if defined __stub_$ac_func || defined __stub___$ac_func
11916 choke me
11917 #endif
11920 main ()
11922 return $ac_func ();
11924 return 0;
11926 _ACEOF
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (ac_try="$ac_link"
11929 case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932 esac
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_link") 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945 esac
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest$ac_exeext'
11952 { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 eval "$as_ac_var=yes"
11962 else
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 eval "$as_ac_var=no"
11969 rm -f conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11972 ac_res=`eval echo '${'$as_ac_var'}'`
11973 { echo "$as_me:$LINENO: result: $ac_res" >&5
11974 echo "${ECHO_T}$ac_res" >&6; }
11975 if test `eval echo '${'$as_ac_var'}'` = yes; then
11976 cat >>confdefs.h <<_ACEOF
11977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978 _ACEOF
11981 done
11983 { echo "$as_me:$LINENO: checking for working mmap" >&5
11984 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
11985 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 else
11988 if test "$cross_compiling" = yes; then
11989 ac_cv_func_mmap_fixed_mapped=no
11990 else
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 $ac_includes_default
11998 /* malloc might have been renamed as rpl_malloc. */
11999 #undef malloc
12001 /* Thanks to Mike Haertel and Jim Avera for this test.
12002 Here is a matrix of mmap possibilities:
12003 mmap private not fixed
12004 mmap private fixed at somewhere currently unmapped
12005 mmap private fixed at somewhere already mapped
12006 mmap shared not fixed
12007 mmap shared fixed at somewhere currently unmapped
12008 mmap shared fixed at somewhere already mapped
12009 For private mappings, we should verify that changes cannot be read()
12010 back from the file, nor mmap's back from the file at a different
12011 address. (There have been systems where private was not correctly
12012 implemented like the infamous i386 svr4.0, and systems where the
12013 VM page cache was not coherent with the file system buffer cache
12014 like early versions of FreeBSD and possibly contemporary NetBSD.)
12015 For shared mappings, we should conversely verify that changes get
12016 propagated back to all the places they're supposed to be.
12018 Grep wants private fixed already mapped.
12019 The main things grep needs to know about mmap are:
12020 * does it exist and is it safe to write into the mmap'd area
12021 * how to use it (BSD variants) */
12023 #include <fcntl.h>
12024 #include <sys/mman.h>
12026 #if !STDC_HEADERS && !HAVE_STDLIB_H
12027 char *malloc ();
12028 #endif
12030 /* This mess was copied from the GNU getpagesize.h. */
12031 #if !HAVE_GETPAGESIZE
12032 /* Assume that all systems that can run configure have sys/param.h. */
12033 # if !HAVE_SYS_PARAM_H
12034 # define HAVE_SYS_PARAM_H 1
12035 # endif
12037 # ifdef _SC_PAGESIZE
12038 # define getpagesize() sysconf(_SC_PAGESIZE)
12039 # else /* no _SC_PAGESIZE */
12040 # if HAVE_SYS_PARAM_H
12041 # include <sys/param.h>
12042 # ifdef EXEC_PAGESIZE
12043 # define getpagesize() EXEC_PAGESIZE
12044 # else /* no EXEC_PAGESIZE */
12045 # ifdef NBPG
12046 # define getpagesize() NBPG * CLSIZE
12047 # ifndef CLSIZE
12048 # define CLSIZE 1
12049 # endif /* no CLSIZE */
12050 # else /* no NBPG */
12051 # ifdef NBPC
12052 # define getpagesize() NBPC
12053 # else /* no NBPC */
12054 # ifdef PAGESIZE
12055 # define getpagesize() PAGESIZE
12056 # endif /* PAGESIZE */
12057 # endif /* no NBPC */
12058 # endif /* no NBPG */
12059 # endif /* no EXEC_PAGESIZE */
12060 # else /* no HAVE_SYS_PARAM_H */
12061 # define getpagesize() 8192 /* punt totally */
12062 # endif /* no HAVE_SYS_PARAM_H */
12063 # endif /* no _SC_PAGESIZE */
12065 #endif /* no HAVE_GETPAGESIZE */
12068 main ()
12070 char *data, *data2, *data3;
12071 int i, pagesize;
12072 int fd;
12074 pagesize = getpagesize ();
12076 /* First, make a file with some known garbage in it. */
12077 data = (char *) malloc (pagesize);
12078 if (!data)
12079 return 1;
12080 for (i = 0; i < pagesize; ++i)
12081 *(data + i) = rand ();
12082 umask (0);
12083 fd = creat ("conftest.mmap", 0600);
12084 if (fd < 0)
12085 return 1;
12086 if (write (fd, data, pagesize) != pagesize)
12087 return 1;
12088 close (fd);
12090 /* Next, try to mmap the file at a fixed address which already has
12091 something else allocated at it. If we can, also make sure that
12092 we see the same garbage. */
12093 fd = open ("conftest.mmap", O_RDWR);
12094 if (fd < 0)
12095 return 1;
12096 data2 = (char *) malloc (2 * pagesize);
12097 if (!data2)
12098 return 1;
12099 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12100 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12101 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12102 return 1;
12103 for (i = 0; i < pagesize; ++i)
12104 if (*(data + i) != *(data2 + i))
12105 return 1;
12107 /* Finally, make sure that changes to the mapped area do not
12108 percolate back to the file as seen by read(). (This is a bug on
12109 some variants of i386 svr4.0.) */
12110 for (i = 0; i < pagesize; ++i)
12111 *(data2 + i) = *(data2 + i) + 1;
12112 data3 = (char *) malloc (pagesize);
12113 if (!data3)
12114 return 1;
12115 if (read (fd, data3, pagesize) != pagesize)
12116 return 1;
12117 for (i = 0; i < pagesize; ++i)
12118 if (*(data + i) != *(data3 + i))
12119 return 1;
12120 close (fd);
12121 return 0;
12123 _ACEOF
12124 rm -f conftest$ac_exeext
12125 if { (ac_try="$ac_link"
12126 case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_link") 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12135 { (case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12138 esac
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_try") 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_cv_func_mmap_fixed_mapped=yes
12145 else
12146 echo "$as_me: program exited with status $ac_status" >&5
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ( exit $ac_status )
12151 ac_cv_func_mmap_fixed_mapped=no
12153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12158 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12159 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12160 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12162 cat >>confdefs.h <<\_ACEOF
12163 #define HAVE_MMAP 1
12164 _ACEOF
12167 rm -f conftest.mmap
12170 for ac_header in stdlib.h
12172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 ac_res=`eval echo '${'$as_ac_Header'}'`
12180 { echo "$as_me:$LINENO: result: $ac_res" >&5
12181 echo "${ECHO_T}$ac_res" >&6; }
12182 else
12183 # Is the header compilable?
12184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12186 cat >conftest.$ac_ext <<_ACEOF
12187 /* confdefs.h. */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192 $ac_includes_default
12193 #include <$ac_header>
12194 _ACEOF
12195 rm -f conftest.$ac_objext
12196 if { (ac_try="$ac_compile"
12197 case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_compile") 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12213 esac
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest.$ac_objext'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223 esac
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_header_compiler=yes
12230 else
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_header_compiler=no
12237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12239 echo "${ECHO_T}$ac_header_compiler" >&6; }
12241 # Is the header present?
12242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 #include <$ac_header>
12251 _ACEOF
12252 if { (ac_try="$ac_cpp conftest.$ac_ext"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256 esac
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } >/dev/null; then
12265 if test -s conftest.err; then
12266 ac_cpp_err=$ac_c_preproc_warn_flag
12267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12268 else
12269 ac_cpp_err=
12271 else
12272 ac_cpp_err=yes
12274 if test -z "$ac_cpp_err"; then
12275 ac_header_preproc=yes
12276 else
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 ac_header_preproc=no
12283 rm -f conftest.err conftest.$ac_ext
12284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12285 echo "${ECHO_T}$ac_header_preproc" >&6; }
12287 # So? What about this header?
12288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12289 yes:no: )
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12294 ac_header_preproc=yes
12296 no:yes:* )
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12311 esac
12312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317 eval "$as_ac_Header=\$ac_header_preproc"
12319 ac_res=`eval echo '${'$as_ac_Header'}'`
12320 { echo "$as_me:$LINENO: result: $ac_res" >&5
12321 echo "${ECHO_T}$ac_res" >&6; }
12324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12325 cat >>confdefs.h <<_ACEOF
12326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12327 _ACEOF
12331 done
12333 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
12334 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
12335 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338 if test "$cross_compiling" = yes; then
12339 ac_cv_func_realloc_0_nonnull=no
12340 else
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h. */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 #if STDC_HEADERS || HAVE_STDLIB_H
12348 # include <stdlib.h>
12349 #else
12350 char *realloc ();
12351 #endif
12354 main ()
12356 return ! realloc (0, 0);
12358 return 0;
12360 _ACEOF
12361 rm -f conftest$ac_exeext
12362 if { (ac_try="$ac_link"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_link") 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12372 { (case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12375 esac
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_try") 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_func_realloc_0_nonnull=yes
12382 else
12383 echo "$as_me: program exited with status $ac_status" >&5
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 ( exit $ac_status )
12388 ac_cv_func_realloc_0_nonnull=no
12390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12395 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
12396 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
12397 if test $ac_cv_func_realloc_0_nonnull = yes; then
12399 cat >>confdefs.h <<\_ACEOF
12400 #define HAVE_REALLOC 1
12401 _ACEOF
12403 else
12404 cat >>confdefs.h <<\_ACEOF
12405 #define HAVE_REALLOC 0
12406 _ACEOF
12408 case " $LIBOBJS " in
12409 *" realloc.$ac_objext "* ) ;;
12410 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12412 esac
12415 cat >>confdefs.h <<\_ACEOF
12416 #define realloc rpl_realloc
12417 _ACEOF
12425 for ac_header in sys/select.h sys/socket.h
12427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 ac_res=`eval echo '${'$as_ac_Header'}'`
12435 { echo "$as_me:$LINENO: result: $ac_res" >&5
12436 echo "${ECHO_T}$ac_res" >&6; }
12437 else
12438 # Is the header compilable?
12439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12441 cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h. */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447 $ac_includes_default
12448 #include <$ac_header>
12449 _ACEOF
12450 rm -f conftest.$ac_objext
12451 if { (ac_try="$ac_compile"
12452 case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455 esac
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_compile") 2>conftest.er1
12458 ac_status=$?
12459 grep -v '^ *+' conftest.er1 >conftest.err
12460 rm -f conftest.er1
12461 cat conftest.err >&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12465 { (case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12468 esac
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_try") 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try='test -s conftest.$ac_objext'
12475 { (case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478 esac
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_try") 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_header_compiler=yes
12485 else
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12489 ac_header_compiler=no
12492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12494 echo "${ECHO_T}$ac_header_compiler" >&6; }
12496 # Is the header present?
12497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12499 cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h. */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 #include <$ac_header>
12506 _ACEOF
12507 if { (ac_try="$ac_cpp conftest.$ac_ext"
12508 case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12514 ac_status=$?
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } >/dev/null; then
12520 if test -s conftest.err; then
12521 ac_cpp_err=$ac_c_preproc_warn_flag
12522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12523 else
12524 ac_cpp_err=
12526 else
12527 ac_cpp_err=yes
12529 if test -z "$ac_cpp_err"; then
12530 ac_header_preproc=yes
12531 else
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 ac_header_preproc=no
12538 rm -f conftest.err conftest.$ac_ext
12539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12540 echo "${ECHO_T}$ac_header_preproc" >&6; }
12542 # So? What about this header?
12543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12544 yes:no: )
12545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12549 ac_header_preproc=yes
12551 no:yes:* )
12552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12566 esac
12567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572 eval "$as_ac_Header=\$ac_header_preproc"
12574 ac_res=`eval echo '${'$as_ac_Header'}'`
12575 { echo "$as_me:$LINENO: result: $ac_res" >&5
12576 echo "${ECHO_T}$ac_res" >&6; }
12579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12580 cat >>confdefs.h <<_ACEOF
12581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12582 _ACEOF
12586 done
12588 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12589 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12590 if test "${ac_cv_func_select_args+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12594 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12595 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h. */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 $ac_includes_default
12603 #if HAVE_SYS_SELECT_H
12604 # include <sys/select.h>
12605 #endif
12606 #if HAVE_SYS_SOCKET_H
12607 # include <sys/socket.h>
12608 #endif
12611 main ()
12613 extern int select ($ac_arg1,
12614 $ac_arg234, $ac_arg234, $ac_arg234,
12615 $ac_arg5);
12617 return 0;
12619 _ACEOF
12620 rm -f conftest.$ac_objext
12621 if { (ac_try="$ac_compile"
12622 case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12625 esac
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_compile") 2>conftest.er1
12628 ac_status=$?
12629 grep -v '^ *+' conftest.er1 >conftest.err
12630 rm -f conftest.er1
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12635 { (case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638 esac
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_try") 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try='test -s conftest.$ac_objext'
12645 { (case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12648 esac
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_try") 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12655 else
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12663 done
12664 done
12665 done
12666 # Provide a safe default value.
12667 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12670 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12671 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12672 ac_save_IFS=$IFS; IFS=','
12673 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12674 IFS=$ac_save_IFS
12675 shift
12677 cat >>confdefs.h <<_ACEOF
12678 #define SELECT_TYPE_ARG1 $1
12679 _ACEOF
12682 cat >>confdefs.h <<_ACEOF
12683 #define SELECT_TYPE_ARG234 ($2)
12684 _ACEOF
12687 cat >>confdefs.h <<_ACEOF
12688 #define SELECT_TYPE_ARG5 ($3)
12689 _ACEOF
12691 rm -f conftest*
12693 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12694 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12695 if test "$ac_cv_prog_cc_c89" != no; then
12696 { echo "$as_me:$LINENO: result: yes" >&5
12697 echo "${ECHO_T}yes" >&6; }
12699 cat >>confdefs.h <<\_ACEOF
12700 #define PROTOTYPES 1
12701 _ACEOF
12704 cat >>confdefs.h <<\_ACEOF
12705 #define __PROTOTYPES 1
12706 _ACEOF
12708 else
12709 { echo "$as_me:$LINENO: result: no" >&5
12710 echo "${ECHO_T}no" >&6; }
12713 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12714 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12715 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 else
12718 ac_cv_func_setvbuf_reversed=no
12719 cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h. */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 #include <stdio.h>
12726 # if PROTOTYPES
12727 int (setvbuf) (FILE *, int, char *, size_t);
12728 # endif
12730 main ()
12732 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12734 return 0;
12736 _ACEOF
12737 rm -f conftest.$ac_objext conftest$ac_exeext
12738 if { (ac_try="$ac_link"
12739 case "(($ac_try" in
12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741 *) ac_try_echo=$ac_try;;
12742 esac
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_link") 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755 esac
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest$ac_exeext'
12762 { (case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12765 esac
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_try") 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h. */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777 #include <stdio.h>
12778 # if PROTOTYPES
12779 int (setvbuf) (FILE *, int, char *, size_t);
12780 # endif
12782 main ()
12784 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12786 return 0;
12788 _ACEOF
12789 rm -f conftest.$ac_objext conftest$ac_exeext
12790 if { (ac_try="$ac_link"
12791 case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12794 esac
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_link") 2>conftest.er1
12797 ac_status=$?
12798 grep -v '^ *+' conftest.er1 >conftest.err
12799 rm -f conftest.er1
12800 cat conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12804 { (case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_try") 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; } &&
12813 { ac_try='test -s conftest$ac_exeext'
12814 { (case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817 esac
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_try") 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 # It compiles and links either way, so it must not be declared
12824 # with a prototype and most likely this is a K&R C compiler.
12825 # Try running it.
12826 if test "$cross_compiling" = yes; then
12827 : # Assume setvbuf is not reversed when cross-compiling.
12828 else
12829 cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h. */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 $ac_includes_default
12837 main ()
12839 /* This call has the arguments reversed.
12840 A reversed system may check and see that the address of buf
12841 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12842 char buf;
12843 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12844 return 1;
12845 putchar ('\r');
12846 return 0; /* Non-reversed systems SEGV here. */
12848 return 0;
12850 _ACEOF
12851 rm -f conftest$ac_exeext
12852 if { (ac_try="$ac_link"
12853 case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12856 esac
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_link") 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12862 { (case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12865 esac
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_try") 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_func_setvbuf_reversed=yes
12872 else
12873 echo "$as_me: program exited with status $ac_status" >&5
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12882 ac_cv_func_setvbuf_reversed=yes
12883 else
12884 echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12890 rm -f conftest.err conftest.$ac_objext \
12891 conftest$ac_exeext conftest.$ac_ext
12892 else
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12899 rm -f conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext conftest.$ac_ext
12902 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12903 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12904 if test $ac_cv_func_setvbuf_reversed = yes; then
12906 cat >>confdefs.h <<\_ACEOF
12907 #define SETVBUF_REVERSED 1
12908 _ACEOF
12912 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12913 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12914 if test "${ac_cv_type_signal+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 else
12917 cat >conftest.$ac_ext <<_ACEOF
12918 /* confdefs.h. */
12919 _ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12923 #include <sys/types.h>
12924 #include <signal.h>
12927 main ()
12929 return *(signal (0, 0)) (0) == 1;
12931 return 0;
12933 _ACEOF
12934 rm -f conftest.$ac_objext
12935 if { (ac_try="$ac_compile"
12936 case "(($ac_try" in
12937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938 *) ac_try_echo=$ac_try;;
12939 esac
12940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941 (eval "$ac_compile") 2>conftest.er1
12942 ac_status=$?
12943 grep -v '^ *+' conftest.er1 >conftest.err
12944 rm -f conftest.er1
12945 cat conftest.err >&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
12948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12949 { (case "(($ac_try" in
12950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12951 *) ac_try_echo=$ac_try;;
12952 esac
12953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954 (eval "$ac_try") 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; } &&
12958 { ac_try='test -s conftest.$ac_objext'
12959 { (case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_try") 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12968 ac_cv_type_signal=int
12969 else
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12973 ac_cv_type_signal=void
12976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12978 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12979 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12981 cat >>confdefs.h <<_ACEOF
12982 #define RETSIGTYPE $ac_cv_type_signal
12983 _ACEOF
12986 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12987 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12988 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 else
12991 rm -f conftest.sym conftest.file
12992 echo >conftest.file
12993 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12994 if test "$cross_compiling" = yes; then
12995 ac_cv_func_lstat_dereferences_slashed_symlink=no
12996 else
12997 cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h. */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13003 $ac_includes_default
13005 main ()
13007 struct stat sbuf;
13008 /* Linux will dereference the symlink and fail.
13009 That is better in the sense that it means we will not
13010 have to compile and use the lstat wrapper. */
13011 return lstat ("conftest.sym/", &sbuf) == 0;
13013 return 0;
13015 _ACEOF
13016 rm -f conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020 *) ac_try_echo=$ac_try;;
13021 esac
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023 (eval "$ac_link") 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13027 { (case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13030 esac
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_try") 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13037 else
13038 echo "$as_me: program exited with status $ac_status" >&5
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13042 ( exit $ac_status )
13043 ac_cv_func_lstat_dereferences_slashed_symlink=no
13045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13049 else
13050 # If the `ln -s' command failed, then we probably don't even
13051 # have an lstat function.
13052 ac_cv_func_lstat_dereferences_slashed_symlink=no
13054 rm -f conftest.sym conftest.file
13057 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13058 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13060 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13062 cat >>confdefs.h <<_ACEOF
13063 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13064 _ACEOF
13067 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13068 case " $LIBOBJS " in
13069 *" lstat.$ac_objext "* ) ;;
13070 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13072 esac
13076 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13077 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13078 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 else
13081 if test "$cross_compiling" = yes; then
13082 ac_cv_func_stat_empty_string_bug=yes
13083 else
13084 cat >conftest.$ac_ext <<_ACEOF
13085 /* confdefs.h. */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13090 $ac_includes_default
13092 main ()
13094 struct stat sbuf;
13095 return stat ("", &sbuf) == 0;
13097 return 0;
13099 _ACEOF
13100 rm -f conftest$ac_exeext
13101 if { (ac_try="$ac_link"
13102 case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13105 esac
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_link") 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13111 { (case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13114 esac
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_try") 2>&5
13117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; }; then
13120 ac_cv_func_stat_empty_string_bug=no
13121 else
13122 echo "$as_me: program exited with status $ac_status" >&5
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13126 ( exit $ac_status )
13127 ac_cv_func_stat_empty_string_bug=yes
13129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13134 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13135 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13136 if test $ac_cv_func_stat_empty_string_bug = yes; then
13137 case " $LIBOBJS " in
13138 *" stat.$ac_objext "* ) ;;
13139 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13141 esac
13144 cat >>confdefs.h <<_ACEOF
13145 #define HAVE_STAT_EMPTY_STRING_BUG 1
13146 _ACEOF
13150 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13151 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13152 if test "${ac_cv_func_strcoll_works+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155 if test "$cross_compiling" = yes; then
13156 ac_cv_func_strcoll_works=no
13157 else
13158 cat >conftest.$ac_ext <<_ACEOF
13159 /* confdefs.h. */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13164 $ac_includes_default
13166 main ()
13168 return (strcoll ("abc", "def") >= 0 ||
13169 strcoll ("ABC", "DEF") >= 0 ||
13170 strcoll ("123", "456") >= 0)
13172 return 0;
13174 _ACEOF
13175 rm -f conftest$ac_exeext
13176 if { (ac_try="$ac_link"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_link") 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13186 { (case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13189 esac
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_try") 2>&5
13192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 ac_cv_func_strcoll_works=yes
13196 else
13197 echo "$as_me: program exited with status $ac_status" >&5
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13201 ( exit $ac_status )
13202 ac_cv_func_strcoll_works=no
13204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13209 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13210 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13211 if test $ac_cv_func_strcoll_works = yes; then
13213 cat >>confdefs.h <<\_ACEOF
13214 #define HAVE_STRCOLL 1
13215 _ACEOF
13220 for ac_func in strftime
13222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228 cat >conftest.$ac_ext <<_ACEOF
13229 /* confdefs.h. */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13236 #define $ac_func innocuous_$ac_func
13238 /* System header to define __stub macros and hopefully few prototypes,
13239 which can conflict with char $ac_func (); below.
13240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13241 <limits.h> exists even on freestanding compilers. */
13243 #ifdef __STDC__
13244 # include <limits.h>
13245 #else
13246 # include <assert.h>
13247 #endif
13249 #undef $ac_func
13251 /* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13254 #ifdef __cplusplus
13255 extern "C"
13256 #endif
13257 char $ac_func ();
13258 /* The GNU C library defines this for functions which it implements
13259 to always fail with ENOSYS. Some functions are actually named
13260 something starting with __ and the normal name is an alias. */
13261 #if defined __stub_$ac_func || defined __stub___$ac_func
13262 choke me
13263 #endif
13266 main ()
13268 return $ac_func ();
13270 return 0;
13272 _ACEOF
13273 rm -f conftest.$ac_objext conftest$ac_exeext
13274 if { (ac_try="$ac_link"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_link") 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288 { (case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13291 esac
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_try") 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest$ac_exeext'
13298 { (case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13301 esac
13302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303 (eval "$ac_try") 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 eval "$as_ac_var=yes"
13308 else
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 eval "$as_ac_var=no"
13315 rm -f conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13318 ac_res=`eval echo '${'$as_ac_var'}'`
13319 { echo "$as_me:$LINENO: result: $ac_res" >&5
13320 echo "${ECHO_T}$ac_res" >&6; }
13321 if test `eval echo '${'$as_ac_var'}'` = yes; then
13322 cat >>confdefs.h <<_ACEOF
13323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13324 _ACEOF
13326 else
13327 # strftime is in -lintl on SCO UNIX.
13328 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13329 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13330 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333 ac_check_lib_save_LIBS=$LIBS
13334 LIBS="-lintl $LIBS"
13335 cat >conftest.$ac_ext <<_ACEOF
13336 /* confdefs.h. */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13342 /* Override any GCC internal prototype to avoid an error.
13343 Use char because int might match the return type of a GCC
13344 builtin and then its argument prototype would still apply. */
13345 #ifdef __cplusplus
13346 extern "C"
13347 #endif
13348 char strftime ();
13350 main ()
13352 return strftime ();
13354 return 0;
13356 _ACEOF
13357 rm -f conftest.$ac_objext conftest$ac_exeext
13358 if { (ac_try="$ac_link"
13359 case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362 esac
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_link") 2>conftest.er1
13365 ac_status=$?
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
13371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13372 { (case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_try") 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest$ac_exeext'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13385 esac
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_lib_intl_strftime=yes
13392 else
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13396 ac_cv_lib_intl_strftime=no
13399 rm -f conftest.err conftest.$ac_objext \
13400 conftest$ac_exeext conftest.$ac_ext
13401 LIBS=$ac_check_lib_save_LIBS
13403 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13404 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13405 if test $ac_cv_lib_intl_strftime = yes; then
13406 cat >>confdefs.h <<\_ACEOF
13407 #define HAVE_STRFTIME 1
13408 _ACEOF
13410 LIBS="-lintl $LIBS"
13414 done
13416 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13417 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13418 if test "${ac_cv_func_strnlen_working+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421 if test "$cross_compiling" = yes; then
13422 ac_cv_func_strnlen_working=no
13423 else
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h. */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 $ac_includes_default
13432 main ()
13435 #define S "foobar"
13436 #define S_LEN (sizeof S - 1)
13438 /* At least one implementation is buggy: that of AIX 4.3 would
13439 give strnlen (S, 1) == 3. */
13441 int i;
13442 for (i = 0; i < S_LEN + 1; ++i)
13444 int expected = i <= S_LEN ? i : S_LEN;
13445 if (strnlen (S, i) != expected)
13446 return 1;
13448 return 0;
13451 return 0;
13453 _ACEOF
13454 rm -f conftest$ac_exeext
13455 if { (ac_try="$ac_link"
13456 case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13459 esac
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_link") 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13465 { (case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13468 esac
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470 (eval "$ac_try") 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_func_strnlen_working=yes
13475 else
13476 echo "$as_me: program exited with status $ac_status" >&5
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 ( exit $ac_status )
13481 ac_cv_func_strnlen_working=no
13483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13488 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13489 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13490 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13491 *" strnlen.$ac_objext "* ) ;;
13492 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13494 esac
13497 { echo "$as_me:$LINENO: checking for working strtod" >&5
13498 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13499 if test "${ac_cv_func_strtod+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502 if test "$cross_compiling" = yes; then
13503 ac_cv_func_strtod=no
13504 else
13505 cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h. */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13512 $ac_includes_default
13513 #ifndef strtod
13514 double strtod ();
13515 #endif
13517 main()
13520 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13521 char *string = " +69";
13522 char *term;
13523 double value;
13524 value = strtod (string, &term);
13525 if (value != 69 || term != (string + 4))
13526 return 1;
13530 /* Under Solaris 2.4, strtod returns the wrong value for the
13531 terminating character under some conditions. */
13532 char *string = "NaN";
13533 char *term;
13534 strtod (string, &term);
13535 if (term != string && *(term - 1) == 0)
13536 return 1;
13538 return 0;
13541 _ACEOF
13542 rm -f conftest$ac_exeext
13543 if { (ac_try="$ac_link"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13547 esac
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_link") 2>&5
13550 ac_status=$?
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13553 { (case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13556 esac
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558 (eval "$ac_try") 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_cv_func_strtod=yes
13563 else
13564 echo "$as_me: program exited with status $ac_status" >&5
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 ( exit $ac_status )
13569 ac_cv_func_strtod=no
13571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13576 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13577 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13578 if test $ac_cv_func_strtod = no; then
13579 case " $LIBOBJS " in
13580 *" strtod.$ac_objext "* ) ;;
13581 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13583 esac
13585 { echo "$as_me:$LINENO: checking for pow" >&5
13586 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13587 if test "${ac_cv_func_pow+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h. */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13596 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13598 #define pow innocuous_pow
13600 /* System header to define __stub macros and hopefully few prototypes,
13601 which can conflict with char pow (); below.
13602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13603 <limits.h> exists even on freestanding compilers. */
13605 #ifdef __STDC__
13606 # include <limits.h>
13607 #else
13608 # include <assert.h>
13609 #endif
13611 #undef pow
13613 /* Override any GCC internal prototype to avoid an error.
13614 Use char because int might match the return type of a GCC
13615 builtin and then its argument prototype would still apply. */
13616 #ifdef __cplusplus
13617 extern "C"
13618 #endif
13619 char pow ();
13620 /* The GNU C library defines this for functions which it implements
13621 to always fail with ENOSYS. Some functions are actually named
13622 something starting with __ and the normal name is an alias. */
13623 #if defined __stub_pow || defined __stub___pow
13624 choke me
13625 #endif
13628 main ()
13630 return pow ();
13632 return 0;
13634 _ACEOF
13635 rm -f conftest.$ac_objext conftest$ac_exeext
13636 if { (ac_try="$ac_link"
13637 case "(($ac_try" in
13638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639 *) ac_try_echo=$ac_try;;
13640 esac
13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642 (eval "$ac_link") 2>conftest.er1
13643 ac_status=$?
13644 grep -v '^ *+' conftest.er1 >conftest.err
13645 rm -f conftest.er1
13646 cat conftest.err >&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } &&
13649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13650 { (case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13653 esac
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_try") 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
13659 { ac_try='test -s conftest$ac_exeext'
13660 { (case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13663 esac
13664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665 (eval "$ac_try") 2>&5
13666 ac_status=$?
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; }; then
13669 ac_cv_func_pow=yes
13670 else
13671 echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13674 ac_cv_func_pow=no
13677 rm -f conftest.err conftest.$ac_objext \
13678 conftest$ac_exeext conftest.$ac_ext
13680 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13681 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13683 if test $ac_cv_func_pow = no; then
13684 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13685 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13686 if test "${ac_cv_lib_m_pow+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689 ac_check_lib_save_LIBS=$LIBS
13690 LIBS="-lm $LIBS"
13691 cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h. */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13698 /* Override any GCC internal prototype to avoid an error.
13699 Use char because int might match the return type of a GCC
13700 builtin and then its argument prototype would still apply. */
13701 #ifdef __cplusplus
13702 extern "C"
13703 #endif
13704 char pow ();
13706 main ()
13708 return pow ();
13710 return 0;
13712 _ACEOF
13713 rm -f conftest.$ac_objext conftest$ac_exeext
13714 if { (ac_try="$ac_link"
13715 case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13718 esac
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_link") 2>conftest.er1
13721 ac_status=$?
13722 grep -v '^ *+' conftest.er1 >conftest.err
13723 rm -f conftest.er1
13724 cat conftest.err >&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13728 { (case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13731 esac
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_try") 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; } &&
13737 { ac_try='test -s conftest$ac_exeext'
13738 { (case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13741 esac
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_try") 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_cv_lib_m_pow=yes
13748 else
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 ac_cv_lib_m_pow=no
13755 rm -f conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13759 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13760 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13761 if test $ac_cv_lib_m_pow = yes; then
13762 POW_LIB=-lm
13763 else
13764 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13765 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13772 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
13773 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
13774 if test "${ac_cv_func_utime_null+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777 rm -f conftest.data; >conftest.data
13778 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13779 if test "$cross_compiling" = yes; then
13780 ac_cv_func_utime_null=no
13781 else
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h. */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13788 $ac_includes_default
13790 main ()
13792 struct stat s, t;
13793 return ! (stat ("conftest.data", &s) == 0
13794 && utime ("conftest.data", 0) == 0
13795 && stat ("conftest.data", &t) == 0
13796 && t.st_mtime >= s.st_mtime
13797 && t.st_mtime - s.st_mtime < 120);
13799 return 0;
13801 _ACEOF
13802 rm -f conftest$ac_exeext
13803 if { (ac_try="$ac_link"
13804 case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807 esac
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_link") 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13813 { (case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13816 esac
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_try") 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822 ac_cv_func_utime_null=yes
13823 else
13824 echo "$as_me: program exited with status $ac_status" >&5
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 ( exit $ac_status )
13829 ac_cv_func_utime_null=no
13831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13836 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
13837 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
13838 if test $ac_cv_func_utime_null = yes; then
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_UTIME_NULL 1
13842 _ACEOF
13845 rm -f conftest.data
13848 for ac_func in vprintf
13850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13855 else
13856 cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h. */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13864 #define $ac_func innocuous_$ac_func
13866 /* System header to define __stub macros and hopefully few prototypes,
13867 which can conflict with char $ac_func (); below.
13868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13869 <limits.h> exists even on freestanding compilers. */
13871 #ifdef __STDC__
13872 # include <limits.h>
13873 #else
13874 # include <assert.h>
13875 #endif
13877 #undef $ac_func
13879 /* Override any GCC internal prototype to avoid an error.
13880 Use char because int might match the return type of a GCC
13881 builtin and then its argument prototype would still apply. */
13882 #ifdef __cplusplus
13883 extern "C"
13884 #endif
13885 char $ac_func ();
13886 /* The GNU C library defines this for functions which it implements
13887 to always fail with ENOSYS. Some functions are actually named
13888 something starting with __ and the normal name is an alias. */
13889 #if defined __stub_$ac_func || defined __stub___$ac_func
13890 choke me
13891 #endif
13894 main ()
13896 return $ac_func ();
13898 return 0;
13900 _ACEOF
13901 rm -f conftest.$ac_objext conftest$ac_exeext
13902 if { (ac_try="$ac_link"
13903 case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13906 esac
13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908 (eval "$ac_link") 2>conftest.er1
13909 ac_status=$?
13910 grep -v '^ *+' conftest.er1 >conftest.err
13911 rm -f conftest.er1
13912 cat conftest.err >&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } &&
13915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13916 { (case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13919 esac
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_try") 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; } &&
13925 { ac_try='test -s conftest$ac_exeext'
13926 { (case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929 esac
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_try") 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 eval "$as_ac_var=yes"
13936 else
13937 echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13940 eval "$as_ac_var=no"
13943 rm -f conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
13946 ac_res=`eval echo '${'$as_ac_var'}'`
13947 { echo "$as_me:$LINENO: result: $ac_res" >&5
13948 echo "${ECHO_T}$ac_res" >&6; }
13949 if test `eval echo '${'$as_ac_var'}'` = yes; then
13950 cat >>confdefs.h <<_ACEOF
13951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13952 _ACEOF
13954 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13955 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13956 if test "${ac_cv_func__doprnt+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13967 #define _doprnt innocuous__doprnt
13969 /* System header to define __stub macros and hopefully few prototypes,
13970 which can conflict with char _doprnt (); below.
13971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13972 <limits.h> exists even on freestanding compilers. */
13974 #ifdef __STDC__
13975 # include <limits.h>
13976 #else
13977 # include <assert.h>
13978 #endif
13980 #undef _doprnt
13982 /* Override any GCC internal prototype to avoid an error.
13983 Use char because int might match the return type of a GCC
13984 builtin and then its argument prototype would still apply. */
13985 #ifdef __cplusplus
13986 extern "C"
13987 #endif
13988 char _doprnt ();
13989 /* The GNU C library defines this for functions which it implements
13990 to always fail with ENOSYS. Some functions are actually named
13991 something starting with __ and the normal name is an alias. */
13992 #if defined __stub__doprnt || defined __stub____doprnt
13993 choke me
13994 #endif
13997 main ()
13999 return _doprnt ();
14001 return 0;
14003 _ACEOF
14004 rm -f conftest.$ac_objext conftest$ac_exeext
14005 if { (ac_try="$ac_link"
14006 case "(($ac_try" in
14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14009 esac
14010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_link") 2>conftest.er1
14012 ac_status=$?
14013 grep -v '^ *+' conftest.er1 >conftest.err
14014 rm -f conftest.er1
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14019 { (case "(($ac_try" in
14020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14022 esac
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_try") 2>&5
14025 ac_status=$?
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; } &&
14028 { ac_try='test -s conftest$ac_exeext'
14029 { (case "(($ac_try" in
14030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031 *) ac_try_echo=$ac_try;;
14032 esac
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034 (eval "$ac_try") 2>&5
14035 ac_status=$?
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; }; then
14038 ac_cv_func__doprnt=yes
14039 else
14040 echo "$as_me: failed program was:" >&5
14041 sed 's/^/| /' conftest.$ac_ext >&5
14043 ac_cv_func__doprnt=no
14046 rm -f conftest.err conftest.$ac_objext \
14047 conftest$ac_exeext conftest.$ac_ext
14049 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14050 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14051 if test $ac_cv_func__doprnt = yes; then
14053 cat >>confdefs.h <<\_ACEOF
14054 #define HAVE_DOPRNT 1
14055 _ACEOF
14060 done
14109 for ac_func in atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strndup strnlen strrchr strsep strspn strstr strtol unsetenv utime strtoq strcasestr asprintf vasprintf
14111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117 cat >conftest.$ac_ext <<_ACEOF
14118 /* confdefs.h. */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14125 #define $ac_func innocuous_$ac_func
14127 /* System header to define __stub macros and hopefully few prototypes,
14128 which can conflict with char $ac_func (); below.
14129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14130 <limits.h> exists even on freestanding compilers. */
14132 #ifdef __STDC__
14133 # include <limits.h>
14134 #else
14135 # include <assert.h>
14136 #endif
14138 #undef $ac_func
14140 /* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
14143 #ifdef __cplusplus
14144 extern "C"
14145 #endif
14146 char $ac_func ();
14147 /* The GNU C library defines this for functions which it implements
14148 to always fail with ENOSYS. Some functions are actually named
14149 something starting with __ and the normal name is an alias. */
14150 #if defined __stub_$ac_func || defined __stub___$ac_func
14151 choke me
14152 #endif
14155 main ()
14157 return $ac_func ();
14159 return 0;
14161 _ACEOF
14162 rm -f conftest.$ac_objext conftest$ac_exeext
14163 if { (ac_try="$ac_link"
14164 case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14167 esac
14168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169 (eval "$ac_link") 2>conftest.er1
14170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14177 { (case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14180 esac
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_try") 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try='test -s conftest$ac_exeext'
14187 { (case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14190 esac
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_try") 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 eval "$as_ac_var=yes"
14197 else
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 eval "$as_ac_var=no"
14204 rm -f conftest.err conftest.$ac_objext \
14205 conftest$ac_exeext conftest.$ac_ext
14207 ac_res=`eval echo '${'$as_ac_var'}'`
14208 { echo "$as_me:$LINENO: result: $ac_res" >&5
14209 echo "${ECHO_T}$ac_res" >&6; }
14210 if test `eval echo '${'$as_ac_var'}'` = yes; then
14211 cat >>confdefs.h <<_ACEOF
14212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14213 _ACEOF
14216 done
14219 echo -n "checking for compiler atomic operations... "
14220 cat >conftest.$ac_ext <<_ACEOF
14221 /* confdefs.h. */
14222 _ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14228 main ()
14230 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14232 return 0;
14234 _ACEOF
14235 rm -f conftest.$ac_objext conftest$ac_exeext
14236 if { (ac_try="$ac_link"
14237 case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_link") 2>conftest.er1
14243 ac_status=$?
14244 grep -v '^ *+' conftest.er1 >conftest.err
14245 rm -f conftest.er1
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14250 { (case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14253 esac
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_try") 2>&5
14256 ac_status=$?
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; } &&
14259 { ac_try='test -s conftest$ac_exeext'
14260 { (case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14263 esac
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265 (eval "$ac_try") 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 { echo "$as_me:$LINENO: result: yes" >&5
14270 echo "${ECHO_T}yes" >&6; }
14272 cat >>confdefs.h <<\_ACEOF
14273 #define HAVE_GCC_ATOMICS 1
14274 _ACEOF
14276 else
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 { echo "$as_me:$LINENO: result: no" >&5
14281 echo "${ECHO_T}no" >&6; }
14285 rm -f conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14288 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14289 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14290 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14291 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14295 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14296 else
14297 # Is the header compilable?
14298 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
14299 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
14300 cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h. */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 $ac_includes_default
14307 #include <libkern/OSAtomic.h>
14308 _ACEOF
14309 rm -f conftest.$ac_objext
14310 if { (ac_try="$ac_compile"
14311 case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14314 esac
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_compile") 2>conftest.er1
14317 ac_status=$?
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14324 { (case "(($ac_try" in
14325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326 *) ac_try_echo=$ac_try;;
14327 esac
14328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329 (eval "$ac_try") 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337 esac
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_try") 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_header_compiler=yes
14344 else
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 ac_header_compiler=no
14351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14353 echo "${ECHO_T}$ac_header_compiler" >&6; }
14355 # Is the header present?
14356 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
14357 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
14358 cat >conftest.$ac_ext <<_ACEOF
14359 /* confdefs.h. */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 #include <libkern/OSAtomic.h>
14365 _ACEOF
14366 if { (ac_try="$ac_cpp conftest.$ac_ext"
14367 case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14370 esac
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14373 ac_status=$?
14374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } >/dev/null; then
14379 if test -s conftest.err; then
14380 ac_cpp_err=$ac_c_preproc_warn_flag
14381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14382 else
14383 ac_cpp_err=
14385 else
14386 ac_cpp_err=yes
14388 if test -z "$ac_cpp_err"; then
14389 ac_header_preproc=yes
14390 else
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ac_header_preproc=no
14397 rm -f conftest.err conftest.$ac_ext
14398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14399 echo "${ECHO_T}$ac_header_preproc" >&6; }
14401 # So? What about this header?
14402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14403 yes:no: )
14404 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
14405 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
14407 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
14408 ac_header_preproc=yes
14410 no:yes:* )
14411 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
14412 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
14413 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
14414 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
14416 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
14417 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
14418 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
14420 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
14421 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
14422 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
14425 esac
14426 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14427 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14428 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
14433 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14434 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14437 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
14439 cat >>confdefs.h <<_ACEOF
14440 #define HAVE_OSX_ATOMICS 1
14441 _ACEOF
14447 { echo "$as_me:$LINENO: checking for int" >&5
14448 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14449 if test "${ac_cv_type_int+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452 cat >conftest.$ac_ext <<_ACEOF
14453 /* confdefs.h. */
14454 _ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14458 $ac_includes_default
14459 typedef int ac__type_new_;
14461 main ()
14463 if ((ac__type_new_ *) 0)
14464 return 0;
14465 if (sizeof (ac__type_new_))
14466 return 0;
14468 return 0;
14470 _ACEOF
14471 rm -f conftest.$ac_objext
14472 if { (ac_try="$ac_compile"
14473 case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_compile") 2>conftest.er1
14479 ac_status=$?
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14486 { (case "(($ac_try" in
14487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488 *) ac_try_echo=$ac_try;;
14489 esac
14490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14491 (eval "$ac_try") 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; } &&
14495 { ac_try='test -s conftest.$ac_objext'
14496 { (case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14499 esac
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_try") 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }; then
14505 ac_cv_type_int=yes
14506 else
14507 echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14510 ac_cv_type_int=no
14513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14515 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14516 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14518 { echo "$as_me:$LINENO: checking size of int" >&5
14519 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14520 if test "${ac_cv_sizeof_int+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523 if test "$ac_cv_type_int" = yes; then
14524 # The cast to long int works around a bug in the HP C Compiler
14525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14527 # This bug is HP SR number 8606223364.
14528 if test "$cross_compiling" = yes; then
14529 # Depending upon the size, compute the lo and hi bounds.
14530 cat >conftest.$ac_ext <<_ACEOF
14531 /* confdefs.h. */
14532 _ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h. */
14536 $ac_includes_default
14537 typedef int ac__type_sizeof_;
14539 main ()
14541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14542 test_array [0] = 0
14545 return 0;
14547 _ACEOF
14548 rm -f conftest.$ac_objext
14549 if { (ac_try="$ac_compile"
14550 case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553 esac
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_compile") 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14563 { (case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14566 esac
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_try") 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest.$ac_objext'
14573 { (case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14576 esac
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_try") 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }; then
14582 ac_lo=0 ac_mid=0
14583 while :; do
14584 cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h. */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 $ac_includes_default
14591 typedef int ac__type_sizeof_;
14593 main ()
14595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14596 test_array [0] = 0
14599 return 0;
14601 _ACEOF
14602 rm -f conftest.$ac_objext
14603 if { (ac_try="$ac_compile"
14604 case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14607 esac
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_compile") 2>conftest.er1
14610 ac_status=$?
14611 grep -v '^ *+' conftest.er1 >conftest.err
14612 rm -f conftest.er1
14613 cat conftest.err >&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } &&
14616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14617 { (case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_try") 2>&5
14623 ac_status=$?
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; } &&
14626 { ac_try='test -s conftest.$ac_objext'
14627 { (case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14630 esac
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_try") 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_hi=$ac_mid; break
14637 else
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 ac_lo=`expr $ac_mid + 1`
14642 if test $ac_lo -le $ac_mid; then
14643 ac_lo= ac_hi=
14644 break
14646 ac_mid=`expr 2 '*' $ac_mid + 1`
14649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14650 done
14651 else
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14655 cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h. */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14661 $ac_includes_default
14662 typedef int ac__type_sizeof_;
14664 main ()
14666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14667 test_array [0] = 0
14670 return 0;
14672 _ACEOF
14673 rm -f conftest.$ac_objext
14674 if { (ac_try="$ac_compile"
14675 case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14678 esac
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_compile") 2>conftest.er1
14681 ac_status=$?
14682 grep -v '^ *+' conftest.er1 >conftest.err
14683 rm -f conftest.er1
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
14687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14688 { (case "(($ac_try" in
14689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14691 esac
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_try") 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; } &&
14697 { ac_try='test -s conftest.$ac_objext'
14698 { (case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_try") 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14707 ac_hi=-1 ac_mid=-1
14708 while :; do
14709 cat >conftest.$ac_ext <<_ACEOF
14710 /* confdefs.h. */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14715 $ac_includes_default
14716 typedef int ac__type_sizeof_;
14718 main ()
14720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14721 test_array [0] = 0
14724 return 0;
14726 _ACEOF
14727 rm -f conftest.$ac_objext
14728 if { (ac_try="$ac_compile"
14729 case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14732 esac
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_compile") 2>conftest.er1
14735 ac_status=$?
14736 grep -v '^ *+' conftest.er1 >conftest.err
14737 rm -f conftest.er1
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14742 { (case "(($ac_try" in
14743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744 *) ac_try_echo=$ac_try;;
14745 esac
14746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747 (eval "$ac_try") 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest.$ac_objext'
14752 { (case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_try") 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_lo=$ac_mid; break
14762 else
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14766 ac_hi=`expr '(' $ac_mid ')' - 1`
14767 if test $ac_mid -le $ac_hi; then
14768 ac_lo= ac_hi=
14769 break
14771 ac_mid=`expr 2 '*' $ac_mid`
14774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14775 done
14776 else
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_lo= ac_hi=
14783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14787 # Binary search between lo and hi bounds.
14788 while test "x$ac_lo" != "x$ac_hi"; do
14789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14790 cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h. */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 $ac_includes_default
14797 typedef int ac__type_sizeof_;
14799 main ()
14801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14802 test_array [0] = 0
14805 return 0;
14807 _ACEOF
14808 rm -f conftest.$ac_objext
14809 if { (ac_try="$ac_compile"
14810 case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14813 esac
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_compile") 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_try") 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; } &&
14832 { ac_try='test -s conftest.$ac_objext'
14833 { (case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836 esac
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_try") 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14842 ac_hi=$ac_mid
14843 else
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14847 ac_lo=`expr '(' $ac_mid ')' + 1`
14850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14851 done
14852 case $ac_lo in
14853 ?*) ac_cv_sizeof_int=$ac_lo;;
14854 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14855 See \`config.log' for more details." >&5
14856 echo "$as_me: error: cannot compute sizeof (int)
14857 See \`config.log' for more details." >&2;}
14858 { (exit 77); exit 77; }; } ;;
14859 esac
14860 else
14861 cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h. */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 $ac_includes_default
14868 typedef int ac__type_sizeof_;
14869 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14870 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14871 #include <stdio.h>
14872 #include <stdlib.h>
14874 main ()
14877 FILE *f = fopen ("conftest.val", "w");
14878 if (! f)
14879 return 1;
14880 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14882 long int i = longval ();
14883 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14884 return 1;
14885 fprintf (f, "%ld\n", i);
14887 else
14889 unsigned long int i = ulongval ();
14890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14891 return 1;
14892 fprintf (f, "%lu\n", i);
14894 return ferror (f) || fclose (f) != 0;
14897 return 0;
14899 _ACEOF
14900 rm -f conftest$ac_exeext
14901 if { (ac_try="$ac_link"
14902 case "(($ac_try" in
14903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904 *) ac_try_echo=$ac_try;;
14905 esac
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907 (eval "$ac_link") 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14911 { (case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_try") 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_cv_sizeof_int=`cat conftest.val`
14921 else
14922 echo "$as_me: program exited with status $ac_status" >&5
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14926 ( exit $ac_status )
14927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14928 See \`config.log' for more details." >&5
14929 echo "$as_me: error: cannot compute sizeof (int)
14930 See \`config.log' for more details." >&2;}
14931 { (exit 77); exit 77; }; }
14933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14935 rm -f conftest.val
14936 else
14937 ac_cv_sizeof_int=0
14940 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14941 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
14942 cat >>confdefs.h <<_ACEOF
14943 #define SIZEOF_INT $ac_cv_sizeof_int
14944 _ACEOF
14948 # do the package library checks now
14951 if test "${USE_ALSA}" != "no"; then
14952 pbxlibdir=""
14953 if test "x${ALSA_DIR}" != "x"; then
14954 if test -d ${ALSA_DIR}/lib; then
14955 pbxlibdir="-L${ALSA_DIR}/lib"
14956 else
14957 pbxlibdir="-L${ALSA_DIR}"
14960 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
14961 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
14962 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965 ac_check_lib_save_LIBS=$LIBS
14966 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
14967 cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h. */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14974 /* Override any GCC internal prototype to avoid an error.
14975 Use char because int might match the return type of a GCC
14976 builtin and then its argument prototype would still apply. */
14977 #ifdef __cplusplus
14978 extern "C"
14979 #endif
14980 char snd_spcm_init ();
14982 main ()
14984 return snd_spcm_init ();
14986 return 0;
14988 _ACEOF
14989 rm -f conftest.$ac_objext conftest$ac_exeext
14990 if { (ac_try="$ac_link"
14991 case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14994 esac
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_link") 2>conftest.er1
14997 ac_status=$?
14998 grep -v '^ *+' conftest.er1 >conftest.err
14999 rm -f conftest.er1
15000 cat conftest.err >&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } &&
15003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15004 { (case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15007 esac
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_try") 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try='test -s conftest$ac_exeext'
15014 { (case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15017 esac
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_try") 2>&5
15020 ac_status=$?
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }; then
15023 ac_cv_lib_asound_snd_spcm_init=yes
15024 else
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 ac_cv_lib_asound_snd_spcm_init=no
15031 rm -f conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15035 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
15036 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15037 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15038 AST_ALSA_FOUND=yes
15039 else
15040 AST_ALSA_FOUND=no
15044 if test "${AST_ALSA_FOUND}" = "yes"; then
15045 ALSA_LIB="-lasound -lm -ldl"
15046 ALSA_HEADER_FOUND="1"
15047 if test "x${ALSA_DIR}" != "x"; then
15048 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15049 ALSA_INCLUDE="-I${ALSA_DIR}/include"
15050 if test "xalsa/asoundlib.h" != "x" ; then
15051 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
15052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15054 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 ac_res=`eval echo '${'$as_ac_Header'}'`
15059 { echo "$as_me:$LINENO: result: $ac_res" >&5
15060 echo "${ECHO_T}$ac_res" >&6; }
15061 else
15062 # Is the header compilable?
15063 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
15064 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
15065 cat >conftest.$ac_ext <<_ACEOF
15066 /* confdefs.h. */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071 $ac_includes_default
15072 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15073 _ACEOF
15074 rm -f conftest.$ac_objext
15075 if { (ac_try="$ac_compile"
15076 case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15079 esac
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_compile") 2>conftest.er1
15082 ac_status=$?
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } &&
15088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15089 { (case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15092 esac
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_try") 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; } &&
15098 { ac_try='test -s conftest.$ac_objext'
15099 { (case "(($ac_try" in
15100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15101 *) ac_try_echo=$ac_try;;
15102 esac
15103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15104 (eval "$ac_try") 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 ac_header_compiler=yes
15109 else
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 ac_header_compiler=no
15116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15118 echo "${ECHO_T}$ac_header_compiler" >&6; }
15120 # Is the header present?
15121 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
15122 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
15123 cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h. */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15130 _ACEOF
15131 if { (ac_try="$ac_cpp conftest.$ac_ext"
15132 case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15135 esac
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } >/dev/null; then
15144 if test -s conftest.err; then
15145 ac_cpp_err=$ac_c_preproc_warn_flag
15146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15147 else
15148 ac_cpp_err=
15150 else
15151 ac_cpp_err=yes
15153 if test -z "$ac_cpp_err"; then
15154 ac_header_preproc=yes
15155 else
15156 echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15159 ac_header_preproc=no
15162 rm -f conftest.err conftest.$ac_ext
15163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15164 echo "${ECHO_T}$ac_header_preproc" >&6; }
15166 # So? What about this header?
15167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15168 yes:no: )
15169 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15170 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15171 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
15172 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15173 ac_header_preproc=yes
15175 no:yes:* )
15176 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
15177 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15179 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15180 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
15181 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15183 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15185 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15187 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15190 esac
15191 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15192 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196 eval "$as_ac_Header=\$ac_header_preproc"
15198 ac_res=`eval echo '${'$as_ac_Header'}'`
15199 { echo "$as_me:$LINENO: result: $ac_res" >&5
15200 echo "${ECHO_T}$ac_res" >&6; }
15203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15204 ALSA_HEADER_FOUND=1
15205 else
15206 ALSA_HEADER_FOUND=0
15211 else
15212 if test "xalsa/asoundlib.h" != "x" ; then
15213 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15214 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15215 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15216 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15220 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15221 else
15222 # Is the header compilable?
15223 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
15224 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
15225 cat >conftest.$ac_ext <<_ACEOF
15226 /* confdefs.h. */
15227 _ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15231 $ac_includes_default
15232 #include <alsa/asoundlib.h>
15233 _ACEOF
15234 rm -f conftest.$ac_objext
15235 if { (ac_try="$ac_compile"
15236 case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15239 esac
15240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241 (eval "$ac_compile") 2>conftest.er1
15242 ac_status=$?
15243 grep -v '^ *+' conftest.er1 >conftest.err
15244 rm -f conftest.er1
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15249 { (case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_try") 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; } &&
15258 { ac_try='test -s conftest.$ac_objext'
15259 { (case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15262 esac
15263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_try") 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_header_compiler=yes
15269 else
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 ac_header_compiler=no
15276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15278 echo "${ECHO_T}$ac_header_compiler" >&6; }
15280 # Is the header present?
15281 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
15282 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
15283 cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h. */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15289 #include <alsa/asoundlib.h>
15290 _ACEOF
15291 if { (ac_try="$ac_cpp conftest.$ac_ext"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } >/dev/null; then
15304 if test -s conftest.err; then
15305 ac_cpp_err=$ac_c_preproc_warn_flag
15306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15307 else
15308 ac_cpp_err=
15310 else
15311 ac_cpp_err=yes
15313 if test -z "$ac_cpp_err"; then
15314 ac_header_preproc=yes
15315 else
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15319 ac_header_preproc=no
15322 rm -f conftest.err conftest.$ac_ext
15323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15324 echo "${ECHO_T}$ac_header_preproc" >&6; }
15326 # So? What about this header?
15327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15328 yes:no: )
15329 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15330 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15331 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
15332 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15333 ac_header_preproc=yes
15335 no:yes:* )
15336 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
15337 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
15338 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15339 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15340 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
15341 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15342 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15343 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15345 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15347 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15350 esac
15351 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15352 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15353 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15354 echo $ECHO_N "(cached) $ECHO_C" >&6
15355 else
15356 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
15358 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15359 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15362 if test $ac_cv_header_alsa_asoundlib_h = yes; then
15363 ALSA_HEADER_FOUND=1
15364 else
15365 ALSA_HEADER_FOUND=0
15371 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
15372 if test ! -z "${ALSA_MANDATORY}" ;
15373 then
15374 echo " ***"
15375 echo " *** It appears that you do not have the asound development package installed."
15376 echo " *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure"
15377 echo " *** without explicitly specifying --with-${ALSA_OPTION}"
15378 exit 1
15380 ALSA_LIB=""
15381 ALSA_INCLUDE=""
15382 PBX_ALSA=0
15383 else
15384 PBX_ALSA=1
15386 cat >>confdefs.h <<_ACEOF
15387 #define HAVE_ALSA 1
15388 _ACEOF
15391 elif test ! -z "${ALSA_MANDATORY}";
15392 then
15393 echo "***"
15394 echo "*** The ${ALSA_DESCRIP} installation on this system appears to be broken."
15395 echo "*** Either correct the installation, or run configure"
15396 echo "*** without explicitly specifying --with-${ALSA_OPTION}"
15397 exit 1
15403 if test "${USE_CURSES}" != "no"; then
15404 pbxlibdir=""
15405 if test "x${CURSES_DIR}" != "x"; then
15406 if test -d ${CURSES_DIR}/lib; then
15407 pbxlibdir="-L${CURSES_DIR}/lib"
15408 else
15409 pbxlibdir="-L${CURSES_DIR}"
15412 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15413 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
15414 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 else
15417 ac_check_lib_save_LIBS=$LIBS
15418 LIBS="-lcurses ${pbxlibdir} $LIBS"
15419 cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h. */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15426 /* Override any GCC internal prototype to avoid an error.
15427 Use char because int might match the return type of a GCC
15428 builtin and then its argument prototype would still apply. */
15429 #ifdef __cplusplus
15430 extern "C"
15431 #endif
15432 char initscr ();
15434 main ()
15436 return initscr ();
15438 return 0;
15440 _ACEOF
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (ac_try="$ac_link"
15443 case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15446 esac
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_link") 2>conftest.er1
15449 ac_status=$?
15450 grep -v '^ *+' conftest.er1 >conftest.err
15451 rm -f conftest.er1
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } &&
15455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15456 { (case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15459 esac
15460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_try") 2>&5
15462 ac_status=$?
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; } &&
15465 { ac_try='test -s conftest$ac_exeext'
15466 { (case "(($ac_try" in
15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468 *) ac_try_echo=$ac_try;;
15469 esac
15470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471 (eval "$ac_try") 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; }; then
15475 ac_cv_lib_curses_initscr=yes
15476 else
15477 echo "$as_me: failed program was:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15480 ac_cv_lib_curses_initscr=no
15483 rm -f conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
15485 LIBS=$ac_check_lib_save_LIBS
15487 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15488 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
15489 if test $ac_cv_lib_curses_initscr = yes; then
15490 AST_CURSES_FOUND=yes
15491 else
15492 AST_CURSES_FOUND=no
15496 if test "${AST_CURSES_FOUND}" = "yes"; then
15497 CURSES_LIB="-lcurses "
15498 CURSES_HEADER_FOUND="1"
15499 if test "x${CURSES_DIR}" != "x"; then
15500 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
15501 CURSES_INCLUDE="-I${CURSES_DIR}/include"
15502 if test "xcurses.h" != "x" ; then
15503 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15506 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15510 ac_res=`eval echo '${'$as_ac_Header'}'`
15511 { echo "$as_me:$LINENO: result: $ac_res" >&5
15512 echo "${ECHO_T}$ac_res" >&6; }
15513 else
15514 # Is the header compilable?
15515 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
15516 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h. */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 $ac_includes_default
15524 #include <${CURSES_DIR}/include/curses.h>
15525 _ACEOF
15526 rm -f conftest.$ac_objext
15527 if { (ac_try="$ac_compile"
15528 case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15531 esac
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_compile") 2>conftest.er1
15534 ac_status=$?
15535 grep -v '^ *+' conftest.er1 >conftest.err
15536 rm -f conftest.er1
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15541 { (case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15544 esac
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_try") 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest.$ac_objext'
15551 { (case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_try") 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 ac_header_compiler=yes
15561 else
15562 echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 ac_header_compiler=no
15568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15570 echo "${ECHO_T}$ac_header_compiler" >&6; }
15572 # Is the header present?
15573 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
15574 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
15575 cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h. */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15581 #include <${CURSES_DIR}/include/curses.h>
15582 _ACEOF
15583 if { (ac_try="$ac_cpp conftest.$ac_ext"
15584 case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15590 ac_status=$?
15591 grep -v '^ *+' conftest.er1 >conftest.err
15592 rm -f conftest.er1
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } >/dev/null; then
15596 if test -s conftest.err; then
15597 ac_cpp_err=$ac_c_preproc_warn_flag
15598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15599 else
15600 ac_cpp_err=
15602 else
15603 ac_cpp_err=yes
15605 if test -z "$ac_cpp_err"; then
15606 ac_header_preproc=yes
15607 else
15608 echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 ac_header_preproc=no
15614 rm -f conftest.err conftest.$ac_ext
15615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15616 echo "${ECHO_T}$ac_header_preproc" >&6; }
15618 # So? What about this header?
15619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15620 yes:no: )
15621 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
15622 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15623 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
15624 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
15625 ac_header_preproc=yes
15627 no:yes:* )
15628 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
15629 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
15630 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
15631 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
15632 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
15633 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
15634 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
15635 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
15637 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
15638 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
15639 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
15642 esac
15643 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15644 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 else
15648 eval "$as_ac_Header=\$ac_header_preproc"
15650 ac_res=`eval echo '${'$as_ac_Header'}'`
15651 { echo "$as_me:$LINENO: result: $ac_res" >&5
15652 echo "${ECHO_T}$ac_res" >&6; }
15655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15656 CURSES_HEADER_FOUND=1
15657 else
15658 CURSES_HEADER_FOUND=0
15663 else
15664 if test "xcurses.h" != "x" ; then
15665 if test "${ac_cv_header_curses_h+set}" = set; then
15666 { echo "$as_me:$LINENO: checking for curses.h" >&5
15667 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
15668 if test "${ac_cv_header_curses_h+set}" = set; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
15672 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15673 else
15674 # Is the header compilable?
15675 { echo "$as_me:$LINENO: checking curses.h usability" >&5
15676 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h. */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 $ac_includes_default
15684 #include <curses.h>
15685 _ACEOF
15686 rm -f conftest.$ac_objext
15687 if { (ac_try="$ac_compile"
15688 case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15691 esac
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_compile") 2>conftest.er1
15694 ac_status=$?
15695 grep -v '^ *+' conftest.er1 >conftest.err
15696 rm -f conftest.er1
15697 cat conftest.err >&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15701 { (case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_try") 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest.$ac_objext'
15711 { (case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15714 esac
15715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716 (eval "$ac_try") 2>&5
15717 ac_status=$?
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }; then
15720 ac_header_compiler=yes
15721 else
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 ac_header_compiler=no
15728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15730 echo "${ECHO_T}$ac_header_compiler" >&6; }
15732 # Is the header present?
15733 { echo "$as_me:$LINENO: checking curses.h presence" >&5
15734 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
15735 cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h. */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 #include <curses.h>
15742 _ACEOF
15743 if { (ac_try="$ac_cpp conftest.$ac_ext"
15744 case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15750 ac_status=$?
15751 grep -v '^ *+' conftest.er1 >conftest.err
15752 rm -f conftest.er1
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } >/dev/null; then
15756 if test -s conftest.err; then
15757 ac_cpp_err=$ac_c_preproc_warn_flag
15758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15759 else
15760 ac_cpp_err=
15762 else
15763 ac_cpp_err=yes
15765 if test -z "$ac_cpp_err"; then
15766 ac_header_preproc=yes
15767 else
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ac_header_preproc=no
15774 rm -f conftest.err conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15776 echo "${ECHO_T}$ac_header_preproc" >&6; }
15778 # So? What about this header?
15779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15780 yes:no: )
15781 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
15782 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
15784 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
15785 ac_header_preproc=yes
15787 no:yes:* )
15788 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
15789 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
15791 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
15793 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
15795 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
15797 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
15799 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
15802 esac
15803 { echo "$as_me:$LINENO: checking for curses.h" >&5
15804 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
15805 if test "${ac_cv_header_curses_h+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15807 else
15808 ac_cv_header_curses_h=$ac_header_preproc
15810 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
15811 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15814 if test $ac_cv_header_curses_h = yes; then
15815 CURSES_HEADER_FOUND=1
15816 else
15817 CURSES_HEADER_FOUND=0
15823 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
15824 if test ! -z "${CURSES_MANDATORY}" ;
15825 then
15826 echo " ***"
15827 echo " *** It appears that you do not have the curses development package installed."
15828 echo " *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure"
15829 echo " *** without explicitly specifying --with-${CURSES_OPTION}"
15830 exit 1
15832 CURSES_LIB=""
15833 CURSES_INCLUDE=""
15834 PBX_CURSES=0
15835 else
15836 PBX_CURSES=1
15838 cat >>confdefs.h <<_ACEOF
15839 #define HAVE_CURSES 1
15840 _ACEOF
15843 elif test ! -z "${CURSES_MANDATORY}";
15844 then
15845 echo "***"
15846 echo "*** The ${CURSES_DESCRIP} installation on this system appears to be broken."
15847 echo "*** Either correct the installation, or run configure"
15848 echo "*** without explicitly specifying --with-${CURSES_OPTION}"
15849 exit 1
15854 GSM_INTERNAL="yes"
15855 GSM_SYSTEM="yes"
15856 if test "${USE_GSM}" != "no"; then
15857 if test "${GSM_DIR}" = "internal"; then
15858 GSM_SYSTEM="no"
15859 elif test "${GSM_DIR}" != ""; then
15860 GSM_INTERNAL="no"
15862 if test "${GSM_SYSTEM}" = "yes"; then
15863 gsmlibdir=""
15864 if test "x${GSM_DIR}" != "x"; then
15865 if test -d ${GSM_DIR}/lib; then
15866 gsmlibdir="-L${GSM_DIR}/lib"
15867 else
15868 gsmlibdir="-L${GSM_DIR}"
15871 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
15872 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
15873 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876 ac_check_lib_save_LIBS=$LIBS
15877 LIBS="-lgsm ${gsmlibdir} $LIBS"
15878 cat >conftest.$ac_ext <<_ACEOF
15879 /* confdefs.h. */
15880 _ACEOF
15881 cat confdefs.h >>conftest.$ac_ext
15882 cat >>conftest.$ac_ext <<_ACEOF
15883 /* end confdefs.h. */
15885 /* Override any GCC internal prototype to avoid an error.
15886 Use char because int might match the return type of a GCC
15887 builtin and then its argument prototype would still apply. */
15888 #ifdef __cplusplus
15889 extern "C"
15890 #endif
15891 char gsm_create ();
15893 main ()
15895 return gsm_create ();
15897 return 0;
15899 _ACEOF
15900 rm -f conftest.$ac_objext conftest$ac_exeext
15901 if { (ac_try="$ac_link"
15902 case "(($ac_try" in
15903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15905 esac
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907 (eval "$ac_link") 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15915 { (case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_try") 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; } &&
15924 { ac_try='test -s conftest$ac_exeext'
15925 { (case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15928 esac
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930 (eval "$ac_try") 2>&5
15931 ac_status=$?
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
15934 ac_cv_lib_gsm_gsm_create=yes
15935 else
15936 echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15939 ac_cv_lib_gsm_gsm_create=no
15942 rm -f conftest.err conftest.$ac_objext \
15943 conftest$ac_exeext conftest.$ac_ext
15944 LIBS=$ac_check_lib_save_LIBS
15946 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
15947 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
15948 if test $ac_cv_lib_gsm_gsm_create = yes; then
15950 cat >>confdefs.h <<_ACEOF
15951 #define HAVE_GSM 1
15952 _ACEOF
15956 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
15957 GSM_LIB="-lgsm"
15958 if test "x${GSM_DIR}" != "x"; then
15959 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
15960 GSM_INCLUDE="-I${GSM_DIR}/include"
15962 PBX_GSM=1
15963 GSM_INTERNAL="no"
15966 if test "${GSM_INTERNAL}" = "yes"; then
15967 GSM_LIB="internal"
15968 PBX_GSM=1
15973 if test "${USE_IKSEMEL}" != "no"; then
15974 pbxlibdir=""
15975 if test "x${IKSEMEL_DIR}" != "x"; then
15976 if test -d ${IKSEMEL_DIR}/lib; then
15977 pbxlibdir="-L${IKSEMEL_DIR}/lib"
15978 else
15979 pbxlibdir="-L${IKSEMEL_DIR}"
15982 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
15983 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
15984 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 else
15987 ac_check_lib_save_LIBS=$LIBS
15988 LIBS="-liksemel ${pbxlibdir} $LIBS"
15989 cat >conftest.$ac_ext <<_ACEOF
15990 /* confdefs.h. */
15991 _ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15996 /* Override any GCC internal prototype to avoid an error.
15997 Use char because int might match the return type of a GCC
15998 builtin and then its argument prototype would still apply. */
15999 #ifdef __cplusplus
16000 extern "C"
16001 #endif
16002 char iks_start_sasl ();
16004 main ()
16006 return iks_start_sasl ();
16008 return 0;
16010 _ACEOF
16011 rm -f conftest.$ac_objext conftest$ac_exeext
16012 if { (ac_try="$ac_link"
16013 case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16016 esac
16017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018 (eval "$ac_link") 2>conftest.er1
16019 ac_status=$?
16020 grep -v '^ *+' conftest.er1 >conftest.err
16021 rm -f conftest.er1
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16026 { (case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_try") 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; } &&
16035 { ac_try='test -s conftest$ac_exeext'
16036 { (case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16039 esac
16040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041 (eval "$ac_try") 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; }; then
16045 ac_cv_lib_iksemel_iks_start_sasl=yes
16046 else
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16050 ac_cv_lib_iksemel_iks_start_sasl=no
16053 rm -f conftest.err conftest.$ac_objext \
16054 conftest$ac_exeext conftest.$ac_ext
16055 LIBS=$ac_check_lib_save_LIBS
16057 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16058 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16059 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16060 AST_IKSEMEL_FOUND=yes
16061 else
16062 AST_IKSEMEL_FOUND=no
16066 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16067 IKSEMEL_LIB="-liksemel "
16068 IKSEMEL_HEADER_FOUND="1"
16069 if test "x${IKSEMEL_DIR}" != "x"; then
16070 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16071 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
16072 if test "xiksemel.h" != "x" ; then
16073 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
16074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16075 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16076 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16078 echo $ECHO_N "(cached) $ECHO_C" >&6
16080 ac_res=`eval echo '${'$as_ac_Header'}'`
16081 { echo "$as_me:$LINENO: result: $ac_res" >&5
16082 echo "${ECHO_T}$ac_res" >&6; }
16083 else
16084 # Is the header compilable?
16085 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
16086 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
16087 cat >conftest.$ac_ext <<_ACEOF
16088 /* confdefs.h. */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16093 $ac_includes_default
16094 #include <${IKSEMEL_DIR}/include/iksemel.h>
16095 _ACEOF
16096 rm -f conftest.$ac_objext
16097 if { (ac_try="$ac_compile"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16101 esac
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_compile") 2>conftest.er1
16104 ac_status=$?
16105 grep -v '^ *+' conftest.er1 >conftest.err
16106 rm -f conftest.er1
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try='test -s conftest.$ac_objext'
16121 { (case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16124 esac
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_try") 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 ac_header_compiler=yes
16131 else
16132 echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16135 ac_header_compiler=no
16138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16140 echo "${ECHO_T}$ac_header_compiler" >&6; }
16142 # Is the header present?
16143 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
16144 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
16145 cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h. */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 #include <${IKSEMEL_DIR}/include/iksemel.h>
16152 _ACEOF
16153 if { (ac_try="$ac_cpp conftest.$ac_ext"
16154 case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16157 esac
16158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16160 ac_status=$?
16161 grep -v '^ *+' conftest.er1 >conftest.err
16162 rm -f conftest.er1
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } >/dev/null; then
16166 if test -s conftest.err; then
16167 ac_cpp_err=$ac_c_preproc_warn_flag
16168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16169 else
16170 ac_cpp_err=
16172 else
16173 ac_cpp_err=yes
16175 if test -z "$ac_cpp_err"; then
16176 ac_header_preproc=yes
16177 else
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 ac_header_preproc=no
16184 rm -f conftest.err conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16186 echo "${ECHO_T}$ac_header_preproc" >&6; }
16188 # So? What about this header?
16189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16190 yes:no: )
16191 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16192 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16193 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
16194 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
16195 ac_header_preproc=yes
16197 no:yes:* )
16198 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
16199 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
16201 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
16202 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
16203 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16205 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
16207 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
16209 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
16212 esac
16213 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16214 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
16218 eval "$as_ac_Header=\$ac_header_preproc"
16220 ac_res=`eval echo '${'$as_ac_Header'}'`
16221 { echo "$as_me:$LINENO: result: $ac_res" >&5
16222 echo "${ECHO_T}$ac_res" >&6; }
16225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16226 IKSEMEL_HEADER_FOUND=1
16227 else
16228 IKSEMEL_HEADER_FOUND=0
16233 else
16234 if test "xiksemel.h" != "x" ; then
16235 if test "${ac_cv_header_iksemel_h+set}" = set; then
16236 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16237 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16238 if test "${ac_cv_header_iksemel_h+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16242 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16243 else
16244 # Is the header compilable?
16245 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
16246 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
16247 cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h. */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 $ac_includes_default
16254 #include <iksemel.h>
16255 _ACEOF
16256 rm -f conftest.$ac_objext
16257 if { (ac_try="$ac_compile"
16258 case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16261 esac
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_compile") 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16271 { (case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16274 esac
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_try") 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest.$ac_objext'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16284 esac
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_header_compiler=yes
16291 else
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 ac_header_compiler=no
16298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16300 echo "${ECHO_T}$ac_header_compiler" >&6; }
16302 # Is the header present?
16303 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
16304 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
16305 cat >conftest.$ac_ext <<_ACEOF
16306 /* confdefs.h. */
16307 _ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 #include <iksemel.h>
16312 _ACEOF
16313 if { (ac_try="$ac_cpp conftest.$ac_ext"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16317 esac
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16320 ac_status=$?
16321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } >/dev/null; then
16326 if test -s conftest.err; then
16327 ac_cpp_err=$ac_c_preproc_warn_flag
16328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16329 else
16330 ac_cpp_err=
16332 else
16333 ac_cpp_err=yes
16335 if test -z "$ac_cpp_err"; then
16336 ac_header_preproc=yes
16337 else
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16341 ac_header_preproc=no
16344 rm -f conftest.err conftest.$ac_ext
16345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16346 echo "${ECHO_T}$ac_header_preproc" >&6; }
16348 # So? What about this header?
16349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16350 yes:no: )
16351 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16352 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16353 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
16354 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
16355 ac_header_preproc=yes
16357 no:yes:* )
16358 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
16359 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
16360 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
16361 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
16362 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
16363 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
16364 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16365 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16366 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
16367 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
16368 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
16369 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
16372 esac
16373 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16374 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16375 if test "${ac_cv_header_iksemel_h+set}" = set; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 else
16378 ac_cv_header_iksemel_h=$ac_header_preproc
16380 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16381 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16384 if test $ac_cv_header_iksemel_h = yes; then
16385 IKSEMEL_HEADER_FOUND=1
16386 else
16387 IKSEMEL_HEADER_FOUND=0
16393 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
16394 if test ! -z "${IKSEMEL_MANDATORY}" ;
16395 then
16396 echo " ***"
16397 echo " *** It appears that you do not have the iksemel development package installed."
16398 echo " *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure"
16399 echo " *** without explicitly specifying --with-${IKSEMEL_OPTION}"
16400 exit 1
16402 IKSEMEL_LIB=""
16403 IKSEMEL_INCLUDE=""
16404 PBX_IKSEMEL=0
16405 else
16406 PBX_IKSEMEL=1
16408 cat >>confdefs.h <<_ACEOF
16409 #define HAVE_IKSEMEL 1
16410 _ACEOF
16413 elif test ! -z "${IKSEMEL_MANDATORY}";
16414 then
16415 echo "***"
16416 echo "*** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken."
16417 echo "*** Either correct the installation, or run configure"
16418 echo "*** without explicitly specifying --with-${IKSEMEL_OPTION}"
16419 exit 1
16424 if test "${USE_IMAP_TK}" != "no"; then
16425 if test "${IMAP_TK_DIR}" = ""; then
16426 IMAP_TK_DIR=`pwd`"/../imap-2004g"
16428 echo -n "checking for UW IMAP Toolkit c-client library... "
16429 saved_cppflags="${CPPFLAGS}"
16430 saved_libs="${LIBS}"
16431 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
16432 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
16434 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
16435 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
16436 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h. */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16442 #include "c-client.h"
16444 main ()
16447 void mm_searched (MAILSTREAM *stream,unsigned long number)
16450 void mm_exists (MAILSTREAM *stream,unsigned long number)
16453 void mm_expunged (MAILSTREAM *stream,unsigned long number)
16456 void mm_flags (MAILSTREAM *stream,unsigned long number)
16459 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
16462 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16465 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16468 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
16471 void mm_log (char *string,long errflg)
16474 void mm_dlog (char *string)
16477 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
16480 void mm_critical (MAILSTREAM *stream)
16483 void mm_nocritical (MAILSTREAM *stream)
16486 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
16489 void mm_fatal (char *string)
16492 int main()
16494 MAILSTREAM *foo = mail_open(NULL, "", 0);
16499 return 0;
16501 _ACEOF
16502 rm -f conftest.$ac_objext conftest$ac_exeext
16503 if { (ac_try="$ac_link"
16504 case "(($ac_try" in
16505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16506 *) ac_try_echo=$ac_try;;
16507 esac
16508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16509 (eval "$ac_link") 2>conftest.er1
16510 ac_status=$?
16511 grep -v '^ *+' conftest.er1 >conftest.err
16512 rm -f conftest.er1
16513 cat conftest.err >&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
16516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16517 { (case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_try") 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest$ac_exeext'
16527 { (case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_try") 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16536 ac_cv_imap_tk="yes"
16537 else
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_cv_imap_tk="no"
16545 rm -f conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16547 CPPFLAGS="${saved_cppflags}"
16548 LIBS="${saved_libs}"
16549 if test "${ac_cv_imap_tk}" = "yes"; then
16550 { echo "$as_me:$LINENO: result: yes" >&5
16551 echo "${ECHO_T}yes" >&6; }
16552 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
16553 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
16554 PBX_IMAP_TK=1
16556 cat >>confdefs.h <<\_ACEOF
16557 #define HAVE_IMAP_TK 1
16558 _ACEOF
16560 elif test ! -z "${IMAP_TK_MANDATORY}"; then
16561 { echo "$as_me:$LINENO: result: no" >&5
16562 echo "${ECHO_T}no" >&6; }
16563 echo "***"
16564 echo "*** The UW IMAP Toolkit installation on this system appears to be broken."
16565 echo "*** Either correct the installation, or run configure"
16566 echo "*** including --without-imap."
16567 exit 1
16568 else
16569 { echo "$as_me:$LINENO: result: no" >&5
16570 echo "${ECHO_T}no" >&6; }
16574 ac_ext=cpp
16575 ac_cpp='$CXXCPP $CPPFLAGS'
16576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16581 if test "${USE_KDE}" != "no"; then
16582 echo -n "checking for crashHandler in -lkdecore... "
16583 saved_libs="${LIBS}"
16584 saved_cppflags="${CPPFLAGS}"
16585 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
16586 if test -d ${KDE_DIR}/lib; then
16587 kdelibdir="${KDE_DIR}/lib"
16588 else
16589 kdelibdir="${KDE_DIR}"
16591 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
16594 cat >conftest.$ac_ext <<_ACEOF
16595 /* confdefs.h. */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 #include "kcrash.h"
16602 main ()
16604 KCrash::defaultCrashHandler(1);
16606 return 0;
16609 _ACEOF
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (ac_try="$ac_link"
16612 case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16615 esac
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_link") 2>conftest.er1
16618 ac_status=$?
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16625 { (case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16628 esac
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_try") 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest$ac_exeext'
16635 { (case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_try") 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_lib_kde_crash="yes"
16645 else
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ac_cv_lib_kde_crash="no"
16652 rm -f conftest.err conftest.$ac_objext \
16653 conftest$ac_exeext conftest.$ac_ext
16655 LIBS="${saved_libs}"
16656 CPPFLAGS="${saved_cppflags}"
16658 if test "${ac_cv_lib_kde_crash}" = "yes"; then
16659 { echo "$as_me:$LINENO: result: yes" >&5
16660 echo "${ECHO_T}yes" >&6; }
16661 KDE_LIB="-lkdecore -lkdeui"
16662 if test "${KDE_DIR}" != ""; then
16663 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
16664 KDE_INCLUDE="-I${KDE_DIR}/include"
16666 PBX_KDE=1
16668 cat >>confdefs.h <<\_ACEOF
16669 #define HAVE_LIBKDE 1
16670 _ACEOF
16672 elif test ! -z "${KDE_MANDATORY}"; then
16673 { echo "$as_me:$LINENO: result: no" >&5
16674 echo "${ECHO_T}no" >&6; }
16675 echo "***"
16676 echo "*** The KDE installation on this system appears to be broken."
16677 echo "*** Either correct the installation, or run configure"
16678 echo "*** including --without-kde."
16679 exit 1
16680 else
16681 { echo "$as_me:$LINENO: result: no" >&5
16682 echo "${ECHO_T}no" >&6; }
16685 if test "${PBX_KDE}" = 1; then
16686 if test -n "$ac_tool_prefix"; then
16687 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
16688 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
16689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16691 if test "${ac_cv_path_KDEINIT+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694 case $KDEINIT in
16695 [\\/]* | ?:[\\/]*)
16696 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
16699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16700 for as_dir in $PATH
16702 IFS=$as_save_IFS
16703 test -z "$as_dir" && as_dir=.
16704 for ac_exec_ext in '' $ac_executable_extensions; do
16705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16706 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
16707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16708 break 2
16710 done
16711 done
16712 IFS=$as_save_IFS
16715 esac
16717 KDEINIT=$ac_cv_path_KDEINIT
16718 if test -n "$KDEINIT"; then
16719 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
16720 echo "${ECHO_T}$KDEINIT" >&6; }
16721 else
16722 { echo "$as_me:$LINENO: result: no" >&5
16723 echo "${ECHO_T}no" >&6; }
16728 if test -z "$ac_cv_path_KDEINIT"; then
16729 ac_pt_KDEINIT=$KDEINIT
16730 # Extract the first word of "kdeinit", so it can be a program name with args.
16731 set dummy kdeinit; ac_word=$2
16732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16734 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 else
16737 case $ac_pt_KDEINIT in
16738 [\\/]* | ?:[\\/]*)
16739 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
16742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16745 IFS=$as_save_IFS
16746 test -z "$as_dir" && as_dir=.
16747 for ac_exec_ext in '' $ac_executable_extensions; do
16748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16749 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
16750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16751 break 2
16753 done
16754 done
16755 IFS=$as_save_IFS
16758 esac
16760 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
16761 if test -n "$ac_pt_KDEINIT"; then
16762 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
16763 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
16764 else
16765 { echo "$as_me:$LINENO: result: no" >&5
16766 echo "${ECHO_T}no" >&6; }
16769 if test "x$ac_pt_KDEINIT" = x; then
16770 KDEINIT="No"
16771 else
16772 case $cross_compiling:$ac_tool_warned in
16773 yes:)
16774 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16775 whose name does not start with the host triplet. If you think this
16776 configuration is useful to you, please write to autoconf@gnu.org." >&5
16777 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16778 whose name does not start with the host triplet. If you think this
16779 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16780 ac_tool_warned=yes ;;
16781 esac
16782 KDEINIT=$ac_pt_KDEINIT
16784 else
16785 KDEINIT="$ac_cv_path_KDEINIT"
16788 if test ! x"${KDEINIT}" = xNo; then
16789 KDEDIR=$(${DIRNAME} ${KDEINIT})
16790 KDEDIR=$(${DIRNAME} ${KDEDIR})
16795 ac_ext=c
16796 ac_cpp='$CPP $CPPFLAGS'
16797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16803 if test "${USE_NBS}" != "no"; then
16804 pbxlibdir=""
16805 if test "x${NBS_DIR}" != "x"; then
16806 if test -d ${NBS_DIR}/lib; then
16807 pbxlibdir="-L${NBS_DIR}/lib"
16808 else
16809 pbxlibdir="-L${NBS_DIR}"
16812 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
16813 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
16814 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 else
16817 ac_check_lib_save_LIBS=$LIBS
16818 LIBS="-lnbs ${pbxlibdir} $LIBS"
16819 cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h. */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16826 /* Override any GCC internal prototype to avoid an error.
16827 Use char because int might match the return type of a GCC
16828 builtin and then its argument prototype would still apply. */
16829 #ifdef __cplusplus
16830 extern "C"
16831 #endif
16832 char nbs_connect ();
16834 main ()
16836 return nbs_connect ();
16838 return 0;
16840 _ACEOF
16841 rm -f conftest.$ac_objext conftest$ac_exeext
16842 if { (ac_try="$ac_link"
16843 case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16846 esac
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_link") 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16856 { (case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_try") 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try='test -s conftest$ac_exeext'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 ac_cv_lib_nbs_nbs_connect=yes
16876 else
16877 echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16880 ac_cv_lib_nbs_nbs_connect=no
16883 rm -f conftest.err conftest.$ac_objext \
16884 conftest$ac_exeext conftest.$ac_ext
16885 LIBS=$ac_check_lib_save_LIBS
16887 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
16888 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
16889 if test $ac_cv_lib_nbs_nbs_connect = yes; then
16890 AST_NBS_FOUND=yes
16891 else
16892 AST_NBS_FOUND=no
16896 if test "${AST_NBS_FOUND}" = "yes"; then
16897 NBS_LIB="-lnbs "
16898 NBS_HEADER_FOUND="1"
16899 if test "x${NBS_DIR}" != "x"; then
16900 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
16901 NBS_INCLUDE="-I${NBS_DIR}/include"
16902 if test "xnbs.h" != "x" ; then
16903 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
16904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16905 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
16906 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
16907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 ac_res=`eval echo '${'$as_ac_Header'}'`
16911 { echo "$as_me:$LINENO: result: $ac_res" >&5
16912 echo "${ECHO_T}$ac_res" >&6; }
16913 else
16914 # Is the header compilable?
16915 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
16916 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
16917 cat >conftest.$ac_ext <<_ACEOF
16918 /* confdefs.h. */
16919 _ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16923 $ac_includes_default
16924 #include <${NBS_DIR}/include/nbs.h>
16925 _ACEOF
16926 rm -f conftest.$ac_objext
16927 if { (ac_try="$ac_compile"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16931 esac
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_compile") 2>conftest.er1
16934 ac_status=$?
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16941 { (case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16944 esac
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_try") 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; } &&
16950 { ac_try='test -s conftest.$ac_objext'
16951 { (case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16954 esac
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_try") 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 ac_header_compiler=yes
16961 else
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_header_compiler=no
16968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16970 echo "${ECHO_T}$ac_header_compiler" >&6; }
16972 # Is the header present?
16973 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
16974 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
16975 cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h. */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 #include <${NBS_DIR}/include/nbs.h>
16982 _ACEOF
16983 if { (ac_try="$ac_cpp conftest.$ac_ext"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16990 ac_status=$?
16991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } >/dev/null; then
16996 if test -s conftest.err; then
16997 ac_cpp_err=$ac_c_preproc_warn_flag
16998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16999 else
17000 ac_cpp_err=
17002 else
17003 ac_cpp_err=yes
17005 if test -z "$ac_cpp_err"; then
17006 ac_header_preproc=yes
17007 else
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ac_header_preproc=no
17014 rm -f conftest.err conftest.$ac_ext
17015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17016 echo "${ECHO_T}$ac_header_preproc" >&6; }
17018 # So? What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17020 yes:no: )
17021 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
17022 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
17024 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
17025 ac_header_preproc=yes
17027 no:yes:* )
17028 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
17029 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
17031 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
17033 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
17034 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
17035 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
17037 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
17039 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
17042 esac
17043 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
17044 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
17045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048 eval "$as_ac_Header=\$ac_header_preproc"
17050 ac_res=`eval echo '${'$as_ac_Header'}'`
17051 { echo "$as_me:$LINENO: result: $ac_res" >&5
17052 echo "${ECHO_T}$ac_res" >&6; }
17055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17056 NBS_HEADER_FOUND=1
17057 else
17058 NBS_HEADER_FOUND=0
17063 else
17064 if test "xnbs.h" != "x" ; then
17065 if test "${ac_cv_header_nbs_h+set}" = set; then
17066 { echo "$as_me:$LINENO: checking for nbs.h" >&5
17067 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
17068 if test "${ac_cv_header_nbs_h+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
17072 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
17073 else
17074 # Is the header compilable?
17075 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
17076 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
17077 cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h. */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 $ac_includes_default
17084 #include <nbs.h>
17085 _ACEOF
17086 rm -f conftest.$ac_objext
17087 if { (ac_try="$ac_compile"
17088 case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_compile") 2>conftest.er1
17094 ac_status=$?
17095 grep -v '^ *+' conftest.er1 >conftest.err
17096 rm -f conftest.er1
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } &&
17100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17101 { (case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_try") 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try='test -s conftest.$ac_objext'
17111 { (case "(($ac_try" in
17112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17114 esac
17115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_try") 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
17120 ac_header_compiler=yes
17121 else
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 ac_header_compiler=no
17128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17130 echo "${ECHO_T}$ac_header_compiler" >&6; }
17132 # Is the header present?
17133 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
17134 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
17135 cat >conftest.$ac_ext <<_ACEOF
17136 /* confdefs.h. */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17141 #include <nbs.h>
17142 _ACEOF
17143 if { (ac_try="$ac_cpp conftest.$ac_ext"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } >/dev/null; then
17156 if test -s conftest.err; then
17157 ac_cpp_err=$ac_c_preproc_warn_flag
17158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17159 else
17160 ac_cpp_err=
17162 else
17163 ac_cpp_err=yes
17165 if test -z "$ac_cpp_err"; then
17166 ac_header_preproc=yes
17167 else
17168 echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17171 ac_header_preproc=no
17174 rm -f conftest.err conftest.$ac_ext
17175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17176 echo "${ECHO_T}$ac_header_preproc" >&6; }
17178 # So? What about this header?
17179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17180 yes:no: )
17181 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
17182 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17183 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
17184 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
17185 ac_header_preproc=yes
17187 no:yes:* )
17188 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
17189 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
17191 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
17192 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
17193 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
17194 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
17195 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
17196 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
17197 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
17199 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
17202 esac
17203 { echo "$as_me:$LINENO: checking for nbs.h" >&5
17204 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
17205 if test "${ac_cv_header_nbs_h+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208 ac_cv_header_nbs_h=$ac_header_preproc
17210 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
17211 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
17214 if test $ac_cv_header_nbs_h = yes; then
17215 NBS_HEADER_FOUND=1
17216 else
17217 NBS_HEADER_FOUND=0
17223 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
17224 if test ! -z "${NBS_MANDATORY}" ;
17225 then
17226 echo " ***"
17227 echo " *** It appears that you do not have the nbs development package installed."
17228 echo " *** Please install it to include ${NBS_DESCRIP} support, or re-run configure"
17229 echo " *** without explicitly specifying --with-${NBS_OPTION}"
17230 exit 1
17232 NBS_LIB=""
17233 NBS_INCLUDE=""
17234 PBX_NBS=0
17235 else
17236 PBX_NBS=1
17238 cat >>confdefs.h <<_ACEOF
17239 #define HAVE_NBS 1
17240 _ACEOF
17243 elif test ! -z "${NBS_MANDATORY}";
17244 then
17245 echo "***"
17246 echo "*** The ${NBS_DESCRIP} installation on this system appears to be broken."
17247 echo "*** Either correct the installation, or run configure"
17248 echo "*** without explicitly specifying --with-${NBS_OPTION}"
17249 exit 1
17255 if test "${USE_NCURSES}" != "no"; then
17256 pbxlibdir=""
17257 if test "x${NCURSES_DIR}" != "x"; then
17258 if test -d ${NCURSES_DIR}/lib; then
17259 pbxlibdir="-L${NCURSES_DIR}/lib"
17260 else
17261 pbxlibdir="-L${NCURSES_DIR}"
17264 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
17265 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
17266 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269 ac_check_lib_save_LIBS=$LIBS
17270 LIBS="-lncurses ${pbxlibdir} $LIBS"
17271 cat >conftest.$ac_ext <<_ACEOF
17272 /* confdefs.h. */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17278 /* Override any GCC internal prototype to avoid an error.
17279 Use char because int might match the return type of a GCC
17280 builtin and then its argument prototype would still apply. */
17281 #ifdef __cplusplus
17282 extern "C"
17283 #endif
17284 char initscr ();
17286 main ()
17288 return initscr ();
17290 return 0;
17292 _ACEOF
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_link") 2>conftest.er1
17301 ac_status=$?
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
17307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308 { (case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17311 esac
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_try") 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; } &&
17317 { ac_try='test -s conftest$ac_exeext'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_cv_lib_ncurses_initscr=yes
17328 else
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 ac_cv_lib_ncurses_initscr=no
17335 rm -f conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17339 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
17340 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
17341 if test $ac_cv_lib_ncurses_initscr = yes; then
17342 AST_NCURSES_FOUND=yes
17343 else
17344 AST_NCURSES_FOUND=no
17348 if test "${AST_NCURSES_FOUND}" = "yes"; then
17349 NCURSES_LIB="-lncurses "
17350 NCURSES_HEADER_FOUND="1"
17351 if test "x${NCURSES_DIR}" != "x"; then
17352 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
17353 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
17354 if test "xcurses.h" != "x" ; then
17355 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
17356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17357 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
17358 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
17359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 ac_res=`eval echo '${'$as_ac_Header'}'`
17363 { echo "$as_me:$LINENO: result: $ac_res" >&5
17364 echo "${ECHO_T}$ac_res" >&6; }
17365 else
17366 # Is the header compilable?
17367 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
17368 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
17369 cat >conftest.$ac_ext <<_ACEOF
17370 /* confdefs.h. */
17371 _ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h. */
17375 $ac_includes_default
17376 #include <${NCURSES_DIR}/include/curses.h>
17377 _ACEOF
17378 rm -f conftest.$ac_objext
17379 if { (ac_try="$ac_compile"
17380 case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17383 esac
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_compile") 2>conftest.er1
17386 ac_status=$?
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
17392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17393 { (case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17396 esac
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_try") 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; } &&
17402 { ac_try='test -s conftest.$ac_objext'
17403 { (case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17406 esac
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_try") 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_header_compiler=yes
17413 else
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 ac_header_compiler=no
17420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17422 echo "${ECHO_T}$ac_header_compiler" >&6; }
17424 # Is the header present?
17425 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
17426 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
17427 cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h. */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 #include <${NCURSES_DIR}/include/curses.h>
17434 _ACEOF
17435 if { (ac_try="$ac_cpp conftest.$ac_ext"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17442 ac_status=$?
17443 grep -v '^ *+' conftest.er1 >conftest.err
17444 rm -f conftest.er1
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } >/dev/null; then
17448 if test -s conftest.err; then
17449 ac_cpp_err=$ac_c_preproc_warn_flag
17450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17451 else
17452 ac_cpp_err=
17454 else
17455 ac_cpp_err=yes
17457 if test -z "$ac_cpp_err"; then
17458 ac_header_preproc=yes
17459 else
17460 echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17463 ac_header_preproc=no
17466 rm -f conftest.err conftest.$ac_ext
17467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17468 echo "${ECHO_T}$ac_header_preproc" >&6; }
17470 # So? What about this header?
17471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17472 yes:no: )
17473 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
17474 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17475 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
17476 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
17477 ac_header_preproc=yes
17479 no:yes:* )
17480 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
17481 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
17482 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
17483 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
17484 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
17485 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
17486 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
17487 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
17488 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
17489 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
17490 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
17491 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
17494 esac
17495 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
17496 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
17497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500 eval "$as_ac_Header=\$ac_header_preproc"
17502 ac_res=`eval echo '${'$as_ac_Header'}'`
17503 { echo "$as_me:$LINENO: result: $ac_res" >&5
17504 echo "${ECHO_T}$ac_res" >&6; }
17507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17508 NCURSES_HEADER_FOUND=1
17509 else
17510 NCURSES_HEADER_FOUND=0
17515 else
17516 if test "xcurses.h" != "x" ; then
17517 if test "${ac_cv_header_curses_h+set}" = set; then
17518 { echo "$as_me:$LINENO: checking for curses.h" >&5
17519 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
17520 if test "${ac_cv_header_curses_h+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
17524 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
17525 else
17526 # Is the header compilable?
17527 { echo "$as_me:$LINENO: checking curses.h usability" >&5
17528 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 $ac_includes_default
17536 #include <curses.h>
17537 _ACEOF
17538 rm -f conftest.$ac_objext
17539 if { (ac_try="$ac_compile"
17540 case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17543 esac
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_compile") 2>conftest.er1
17546 ac_status=$?
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17553 { (case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17556 esac
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_try") 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest.$ac_objext'
17563 { (case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17566 esac
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_try") 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17572 ac_header_compiler=yes
17573 else
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17577 ac_header_compiler=no
17580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17582 echo "${ECHO_T}$ac_header_compiler" >&6; }
17584 # Is the header present?
17585 { echo "$as_me:$LINENO: checking curses.h presence" >&5
17586 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
17587 cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h. */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 #include <curses.h>
17594 _ACEOF
17595 if { (ac_try="$ac_cpp conftest.$ac_ext"
17596 case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17599 esac
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17602 ac_status=$?
17603 grep -v '^ *+' conftest.er1 >conftest.err
17604 rm -f conftest.er1
17605 cat conftest.err >&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } >/dev/null; then
17608 if test -s conftest.err; then
17609 ac_cpp_err=$ac_c_preproc_warn_flag
17610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17611 else
17612 ac_cpp_err=
17614 else
17615 ac_cpp_err=yes
17617 if test -z "$ac_cpp_err"; then
17618 ac_header_preproc=yes
17619 else
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 ac_header_preproc=no
17626 rm -f conftest.err conftest.$ac_ext
17627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17628 echo "${ECHO_T}$ac_header_preproc" >&6; }
17630 # So? What about this header?
17631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17632 yes:no: )
17633 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
17634 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17635 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
17636 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
17637 ac_header_preproc=yes
17639 no:yes:* )
17640 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
17641 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
17642 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
17643 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
17644 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
17645 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
17646 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
17647 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
17648 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
17649 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
17650 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
17651 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
17654 esac
17655 { echo "$as_me:$LINENO: checking for curses.h" >&5
17656 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
17657 if test "${ac_cv_header_curses_h+set}" = set; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 else
17660 ac_cv_header_curses_h=$ac_header_preproc
17662 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
17663 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
17666 if test $ac_cv_header_curses_h = yes; then
17667 NCURSES_HEADER_FOUND=1
17668 else
17669 NCURSES_HEADER_FOUND=0
17675 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
17676 if test ! -z "${NCURSES_MANDATORY}" ;
17677 then
17678 echo " ***"
17679 echo " *** It appears that you do not have the ncurses development package installed."
17680 echo " *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure"
17681 echo " *** without explicitly specifying --with-${NCURSES_OPTION}"
17682 exit 1
17684 NCURSES_LIB=""
17685 NCURSES_INCLUDE=""
17686 PBX_NCURSES=0
17687 else
17688 PBX_NCURSES=1
17690 cat >>confdefs.h <<_ACEOF
17691 #define HAVE_NCURSES 1
17692 _ACEOF
17695 elif test ! -z "${NCURSES_MANDATORY}";
17696 then
17697 echo "***"
17698 echo "*** The ${NCURSES_DESCRIP} installation on this system appears to be broken."
17699 echo "*** Either correct the installation, or run configure"
17700 echo "*** without explicitly specifying --with-${NCURSES_OPTION}"
17701 exit 1
17706 NETSNMP_CONFIG=No
17707 if test "${USE_NETSNMP}" != "no"; then
17708 if test "x${NETSNMP_DIR}" != "x"; then
17709 if test -n "$ac_tool_prefix"; then
17710 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
17711 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
17712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17714 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717 case $NETSNMP_CONFIG in
17718 [\\/]* | ?:[\\/]*)
17719 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
17722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17723 for as_dir in ${NETSNMP_DIR}/bin
17725 IFS=$as_save_IFS
17726 test -z "$as_dir" && as_dir=.
17727 for ac_exec_ext in '' $ac_executable_extensions; do
17728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17729 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17731 break 2
17733 done
17734 done
17735 IFS=$as_save_IFS
17738 esac
17740 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
17741 if test -n "$NETSNMP_CONFIG"; then
17742 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
17743 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
17744 else
17745 { echo "$as_me:$LINENO: result: no" >&5
17746 echo "${ECHO_T}no" >&6; }
17751 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
17752 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
17753 # Extract the first word of "net-snmp-config", so it can be a program name with args.
17754 set dummy net-snmp-config; ac_word=$2
17755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17757 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 else
17760 case $ac_pt_NETSNMP_CONFIG in
17761 [\\/]* | ?:[\\/]*)
17762 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
17765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17766 for as_dir in ${NETSNMP_DIR}/bin
17768 IFS=$as_save_IFS
17769 test -z "$as_dir" && as_dir=.
17770 for ac_exec_ext in '' $ac_executable_extensions; do
17771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17772 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17774 break 2
17776 done
17777 done
17778 IFS=$as_save_IFS
17781 esac
17783 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
17784 if test -n "$ac_pt_NETSNMP_CONFIG"; then
17785 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
17786 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
17787 else
17788 { echo "$as_me:$LINENO: result: no" >&5
17789 echo "${ECHO_T}no" >&6; }
17792 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
17793 NETSNMP_CONFIG="No"
17794 else
17795 case $cross_compiling:$ac_tool_warned in
17796 yes:)
17797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17798 whose name does not start with the host triplet. If you think this
17799 configuration is useful to you, please write to autoconf@gnu.org." >&5
17800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17801 whose name does not start with the host triplet. If you think this
17802 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17803 ac_tool_warned=yes ;;
17804 esac
17805 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
17807 else
17808 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
17811 if test x"${NETSNMP_CONFIG}" = xNo; then
17812 echo "***"
17813 echo "*** net-snmp-config was not found in the path you specified:"
17814 echo "*** ${NETSNMP_DIR}/bin"
17815 echo "*** Either correct the installation, or run configure"
17816 echo "*** including --without-netsnmp"
17817 exit 1
17819 else
17820 if test -n "$ac_tool_prefix"; then
17821 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
17822 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
17823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17825 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 else
17828 case $NETSNMP_CONFIG in
17829 [\\/]* | ?:[\\/]*)
17830 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
17833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17834 for as_dir in $PATH
17836 IFS=$as_save_IFS
17837 test -z "$as_dir" && as_dir=.
17838 for ac_exec_ext in '' $ac_executable_extensions; do
17839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17840 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17842 break 2
17844 done
17845 done
17846 IFS=$as_save_IFS
17849 esac
17851 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
17852 if test -n "$NETSNMP_CONFIG"; then
17853 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
17854 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
17855 else
17856 { echo "$as_me:$LINENO: result: no" >&5
17857 echo "${ECHO_T}no" >&6; }
17862 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
17863 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
17864 # Extract the first word of "net-snmp-config", so it can be a program name with args.
17865 set dummy net-snmp-config; ac_word=$2
17866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17868 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17870 else
17871 case $ac_pt_NETSNMP_CONFIG in
17872 [\\/]* | ?:[\\/]*)
17873 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
17876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17877 for as_dir in $PATH
17879 IFS=$as_save_IFS
17880 test -z "$as_dir" && as_dir=.
17881 for ac_exec_ext in '' $ac_executable_extensions; do
17882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17883 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17885 break 2
17887 done
17888 done
17889 IFS=$as_save_IFS
17892 esac
17894 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
17895 if test -n "$ac_pt_NETSNMP_CONFIG"; then
17896 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
17897 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
17898 else
17899 { echo "$as_me:$LINENO: result: no" >&5
17900 echo "${ECHO_T}no" >&6; }
17903 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
17904 NETSNMP_CONFIG="No"
17905 else
17906 case $cross_compiling:$ac_tool_warned in
17907 yes:)
17908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17909 whose name does not start with the host triplet. If you think this
17910 configuration is useful to you, please write to autoconf@gnu.org." >&5
17911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17912 whose name does not start with the host triplet. If you think this
17913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17914 ac_tool_warned=yes ;;
17915 esac
17916 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
17918 else
17919 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
17924 if test x"${NETSNMP_CONFIG}" != xNo; then
17925 NETSNMP_libs=`net-snmp-config --agent-libs`
17927 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
17928 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
17929 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932 ac_check_lib_save_LIBS=$LIBS
17933 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
17934 cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h. */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17941 /* Override any GCC internal prototype to avoid an error.
17942 Use char because int might match the return type of a GCC
17943 builtin and then its argument prototype would still apply. */
17944 #ifdef __cplusplus
17945 extern "C"
17946 #endif
17947 char snmp_register_callback ();
17949 main ()
17951 return snmp_register_callback ();
17953 return 0;
17955 _ACEOF
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (ac_try="$ac_link"
17958 case "(($ac_try" in
17959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960 *) ac_try_echo=$ac_try;;
17961 esac
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963 (eval "$ac_link") 2>conftest.er1
17964 ac_status=$?
17965 grep -v '^ *+' conftest.er1 >conftest.err
17966 rm -f conftest.er1
17967 cat conftest.err >&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } &&
17970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17971 { (case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17974 esac
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_try") 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; } &&
17980 { ac_try='test -s conftest$ac_exeext'
17981 { (case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17984 esac
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_try") 2>&5
17987 ac_status=$?
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; }; then
17990 ac_cv_lib_netsnmp_snmp_register_callback=yes
17991 else
17992 echo "$as_me: failed program was:" >&5
17993 sed 's/^/| /' conftest.$ac_ext >&5
17995 ac_cv_lib_netsnmp_snmp_register_callback=no
17998 rm -f conftest.err conftest.$ac_objext \
17999 conftest$ac_exeext conftest.$ac_ext
18000 LIBS=$ac_check_lib_save_LIBS
18002 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
18003 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
18004 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
18006 cat >>confdefs.h <<_ACEOF
18007 #define HAVE_NETSNMP 1
18008 _ACEOF
18013 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
18014 NETSNMP_LIB="${NETSNMP_libs}"
18015 PBX_NETSNMP=1
18016 elif test ! -z "${NETSNMP_MANDATORY}";
18017 then
18018 echo "***"
18019 echo "*** The Net-SNMP installation on this system appears to be broken."
18020 echo "*** Either correct the installation, or run configure"
18021 echo "*** including --without-netsnmp"
18022 exit 1
18024 elif test ! -z "${NETSNMP_MANDATORY}";
18025 then
18026 echo "***"
18027 echo "*** The Net-SNMP installation on this system appears to be broken."
18028 echo "*** Either correct the installation, or run configure"
18029 echo "*** including --without-netsnmp"
18030 exit 1
18034 if test "${USE_NEWT}" != "no"; then
18035 pbxlibdir=""
18036 if test "x${NEWT_DIR}" != "x"; then
18037 if test -d ${NEWT_DIR}/lib; then
18038 pbxlibdir="-L${NEWT_DIR}/lib"
18039 else
18040 pbxlibdir="-L${NEWT_DIR}"
18043 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
18044 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
18045 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048 ac_check_lib_save_LIBS=$LIBS
18049 LIBS="-lnewt ${pbxlibdir} $LIBS"
18050 cat >conftest.$ac_ext <<_ACEOF
18051 /* confdefs.h. */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18057 /* Override any GCC internal prototype to avoid an error.
18058 Use char because int might match the return type of a GCC
18059 builtin and then its argument prototype would still apply. */
18060 #ifdef __cplusplus
18061 extern "C"
18062 #endif
18063 char newtBell ();
18065 main ()
18067 return newtBell ();
18069 return 0;
18071 _ACEOF
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (ac_try="$ac_link"
18074 case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18077 esac
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_link") 2>conftest.er1
18080 ac_status=$?
18081 grep -v '^ *+' conftest.er1 >conftest.err
18082 rm -f conftest.er1
18083 cat conftest.err >&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } &&
18086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18087 { (case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18090 esac
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_try") 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest$ac_exeext'
18097 { (case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18100 esac
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_try") 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18106 ac_cv_lib_newt_newtBell=yes
18107 else
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_cv_lib_newt_newtBell=no
18114 rm -f conftest.err conftest.$ac_objext \
18115 conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18118 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
18119 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
18120 if test $ac_cv_lib_newt_newtBell = yes; then
18121 AST_NEWT_FOUND=yes
18122 else
18123 AST_NEWT_FOUND=no
18127 if test "${AST_NEWT_FOUND}" = "yes"; then
18128 NEWT_LIB="-lnewt "
18129 NEWT_HEADER_FOUND="1"
18130 if test "x${NEWT_DIR}" != "x"; then
18131 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
18132 NEWT_INCLUDE="-I${NEWT_DIR}/include"
18133 if test "xnewt.h" != "x" ; then
18134 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
18135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18136 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
18137 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
18138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 ac_res=`eval echo '${'$as_ac_Header'}'`
18142 { echo "$as_me:$LINENO: result: $ac_res" >&5
18143 echo "${ECHO_T}$ac_res" >&6; }
18144 else
18145 # Is the header compilable?
18146 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
18147 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
18148 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h. */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 $ac_includes_default
18155 #include <${NEWT_DIR}/include/newt.h>
18156 _ACEOF
18157 rm -f conftest.$ac_objext
18158 if { (ac_try="$ac_compile"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18162 esac
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_compile") 2>conftest.er1
18165 ac_status=$?
18166 grep -v '^ *+' conftest.er1 >conftest.err
18167 rm -f conftest.er1
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18172 { (case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18175 esac
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_try") 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; } &&
18181 { ac_try='test -s conftest.$ac_objext'
18182 { (case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_try") 2>&5
18188 ac_status=$?
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 ac_header_compiler=yes
18192 else
18193 echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18196 ac_header_compiler=no
18199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18201 echo "${ECHO_T}$ac_header_compiler" >&6; }
18203 # Is the header present?
18204 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
18205 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
18206 cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h. */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18212 #include <${NEWT_DIR}/include/newt.h>
18213 _ACEOF
18214 if { (ac_try="$ac_cpp conftest.$ac_ext"
18215 case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18218 esac
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } >/dev/null; then
18227 if test -s conftest.err; then
18228 ac_cpp_err=$ac_c_preproc_warn_flag
18229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18230 else
18231 ac_cpp_err=
18233 else
18234 ac_cpp_err=yes
18236 if test -z "$ac_cpp_err"; then
18237 ac_header_preproc=yes
18238 else
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 ac_header_preproc=no
18245 rm -f conftest.err conftest.$ac_ext
18246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18247 echo "${ECHO_T}$ac_header_preproc" >&6; }
18249 # So? What about this header?
18250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18251 yes:no: )
18252 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
18253 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18254 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
18255 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
18256 ac_header_preproc=yes
18258 no:yes:* )
18259 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
18260 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
18261 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
18262 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
18263 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
18264 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
18265 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
18266 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
18267 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
18268 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
18269 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
18270 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
18273 esac
18274 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
18275 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
18276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 else
18279 eval "$as_ac_Header=\$ac_header_preproc"
18281 ac_res=`eval echo '${'$as_ac_Header'}'`
18282 { echo "$as_me:$LINENO: result: $ac_res" >&5
18283 echo "${ECHO_T}$ac_res" >&6; }
18286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18287 NEWT_HEADER_FOUND=1
18288 else
18289 NEWT_HEADER_FOUND=0
18294 else
18295 if test "xnewt.h" != "x" ; then
18296 if test "${ac_cv_header_newt_h+set}" = set; then
18297 { echo "$as_me:$LINENO: checking for newt.h" >&5
18298 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
18299 if test "${ac_cv_header_newt_h+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18302 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
18303 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
18304 else
18305 # Is the header compilable?
18306 { echo "$as_me:$LINENO: checking newt.h usability" >&5
18307 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
18308 cat >conftest.$ac_ext <<_ACEOF
18309 /* confdefs.h. */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 $ac_includes_default
18315 #include <newt.h>
18316 _ACEOF
18317 rm -f conftest.$ac_objext
18318 if { (ac_try="$ac_compile"
18319 case "(($ac_try" in
18320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321 *) ac_try_echo=$ac_try;;
18322 esac
18323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324 (eval "$ac_compile") 2>conftest.er1
18325 ac_status=$?
18326 grep -v '^ *+' conftest.er1 >conftest.err
18327 rm -f conftest.er1
18328 cat conftest.err >&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } &&
18331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18332 { (case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18335 esac
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_try") 2>&5
18338 ac_status=$?
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; } &&
18341 { ac_try='test -s conftest.$ac_objext'
18342 { (case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18345 esac
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_try") 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18351 ac_header_compiler=yes
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 ac_header_compiler=no
18359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18361 echo "${ECHO_T}$ac_header_compiler" >&6; }
18363 # Is the header present?
18364 { echo "$as_me:$LINENO: checking newt.h presence" >&5
18365 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 #include <newt.h>
18373 _ACEOF
18374 if { (ac_try="$ac_cpp conftest.$ac_ext"
18375 case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18381 ac_status=$?
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } >/dev/null; then
18387 if test -s conftest.err; then
18388 ac_cpp_err=$ac_c_preproc_warn_flag
18389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18390 else
18391 ac_cpp_err=
18393 else
18394 ac_cpp_err=yes
18396 if test -z "$ac_cpp_err"; then
18397 ac_header_preproc=yes
18398 else
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18402 ac_header_preproc=no
18405 rm -f conftest.err conftest.$ac_ext
18406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18407 echo "${ECHO_T}$ac_header_preproc" >&6; }
18409 # So? What about this header?
18410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18411 yes:no: )
18412 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
18413 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18414 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
18415 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
18416 ac_header_preproc=yes
18418 no:yes:* )
18419 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
18420 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
18421 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
18422 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
18423 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
18424 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
18425 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
18426 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
18427 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
18428 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
18429 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
18430 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
18433 esac
18434 { echo "$as_me:$LINENO: checking for newt.h" >&5
18435 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
18436 if test "${ac_cv_header_newt_h+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18439 ac_cv_header_newt_h=$ac_header_preproc
18441 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
18442 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
18445 if test $ac_cv_header_newt_h = yes; then
18446 NEWT_HEADER_FOUND=1
18447 else
18448 NEWT_HEADER_FOUND=0
18454 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
18455 if test ! -z "${NEWT_MANDATORY}" ;
18456 then
18457 echo " ***"
18458 echo " *** It appears that you do not have the newt development package installed."
18459 echo " *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure"
18460 echo " *** without explicitly specifying --with-${NEWT_OPTION}"
18461 exit 1
18463 NEWT_LIB=""
18464 NEWT_INCLUDE=""
18465 PBX_NEWT=0
18466 else
18467 PBX_NEWT=1
18469 cat >>confdefs.h <<_ACEOF
18470 #define HAVE_NEWT 1
18471 _ACEOF
18474 elif test ! -z "${NEWT_MANDATORY}";
18475 then
18476 echo "***"
18477 echo "*** The ${NEWT_DESCRIP} installation on this system appears to be broken."
18478 echo "*** Either correct the installation, or run configure"
18479 echo "*** without explicitly specifying --with-${NEWT_OPTION}"
18480 exit 1
18486 if test "${USE_UNIXODBC}" != "no"; then
18487 pbxlibdir=""
18488 if test "x${UNIXODBC_DIR}" != "x"; then
18489 if test -d ${UNIXODBC_DIR}/lib; then
18490 pbxlibdir="-L${UNIXODBC_DIR}/lib"
18491 else
18492 pbxlibdir="-L${UNIXODBC_DIR}"
18495 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
18496 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
18497 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18499 else
18500 ac_check_lib_save_LIBS=$LIBS
18501 LIBS="-lodbc ${pbxlibdir} $LIBS"
18502 cat >conftest.$ac_ext <<_ACEOF
18503 /* confdefs.h. */
18504 _ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18509 /* Override any GCC internal prototype to avoid an error.
18510 Use char because int might match the return type of a GCC
18511 builtin and then its argument prototype would still apply. */
18512 #ifdef __cplusplus
18513 extern "C"
18514 #endif
18515 char SQLConnect ();
18517 main ()
18519 return SQLConnect ();
18521 return 0;
18523 _ACEOF
18524 rm -f conftest.$ac_objext conftest$ac_exeext
18525 if { (ac_try="$ac_link"
18526 case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_link") 2>conftest.er1
18532 ac_status=$?
18533 grep -v '^ *+' conftest.er1 >conftest.err
18534 rm -f conftest.er1
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } &&
18538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18539 { (case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18542 esac
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_try") 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest$ac_exeext'
18549 { (case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18552 esac
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_try") 2>&5
18555 ac_status=$?
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18558 ac_cv_lib_odbc_SQLConnect=yes
18559 else
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ac_cv_lib_odbc_SQLConnect=no
18566 rm -f conftest.err conftest.$ac_objext \
18567 conftest$ac_exeext conftest.$ac_ext
18568 LIBS=$ac_check_lib_save_LIBS
18570 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
18571 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
18572 if test $ac_cv_lib_odbc_SQLConnect = yes; then
18573 AST_UNIXODBC_FOUND=yes
18574 else
18575 AST_UNIXODBC_FOUND=no
18579 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
18580 UNIXODBC_LIB="-lodbc "
18581 UNIXODBC_HEADER_FOUND="1"
18582 if test "x${UNIXODBC_DIR}" != "x"; then
18583 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
18584 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
18585 if test "xsql.h" != "x" ; then
18586 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
18587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18588 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
18589 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
18590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 ac_res=`eval echo '${'$as_ac_Header'}'`
18594 { echo "$as_me:$LINENO: result: $ac_res" >&5
18595 echo "${ECHO_T}$ac_res" >&6; }
18596 else
18597 # Is the header compilable?
18598 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
18599 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
18600 cat >conftest.$ac_ext <<_ACEOF
18601 /* confdefs.h. */
18602 _ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18606 $ac_includes_default
18607 #include <${UNIXODBC_DIR}/include/sql.h>
18608 _ACEOF
18609 rm -f conftest.$ac_objext
18610 if { (ac_try="$ac_compile"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_compile") 2>conftest.er1
18617 ac_status=$?
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
18623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18624 { (case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_try") 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest.$ac_objext'
18634 { (case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 ac_header_compiler=yes
18644 else
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 ac_header_compiler=no
18651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18653 echo "${ECHO_T}$ac_header_compiler" >&6; }
18655 # Is the header present?
18656 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
18657 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
18658 cat >conftest.$ac_ext <<_ACEOF
18659 /* confdefs.h. */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18664 #include <${UNIXODBC_DIR}/include/sql.h>
18665 _ACEOF
18666 if { (ac_try="$ac_cpp conftest.$ac_ext"
18667 case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18670 esac
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18673 ac_status=$?
18674 grep -v '^ *+' conftest.er1 >conftest.err
18675 rm -f conftest.er1
18676 cat conftest.err >&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); } >/dev/null; then
18679 if test -s conftest.err; then
18680 ac_cpp_err=$ac_c_preproc_warn_flag
18681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18682 else
18683 ac_cpp_err=
18685 else
18686 ac_cpp_err=yes
18688 if test -z "$ac_cpp_err"; then
18689 ac_header_preproc=yes
18690 else
18691 echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18694 ac_header_preproc=no
18697 rm -f conftest.err conftest.$ac_ext
18698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18699 echo "${ECHO_T}$ac_header_preproc" >&6; }
18701 # So? What about this header?
18702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18703 yes:no: )
18704 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
18705 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18706 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
18707 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
18708 ac_header_preproc=yes
18710 no:yes:* )
18711 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
18712 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
18713 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
18714 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
18716 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
18717 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
18718 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
18719 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
18720 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
18721 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
18722 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
18725 esac
18726 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
18727 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
18728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731 eval "$as_ac_Header=\$ac_header_preproc"
18733 ac_res=`eval echo '${'$as_ac_Header'}'`
18734 { echo "$as_me:$LINENO: result: $ac_res" >&5
18735 echo "${ECHO_T}$ac_res" >&6; }
18738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18739 UNIXODBC_HEADER_FOUND=1
18740 else
18741 UNIXODBC_HEADER_FOUND=0
18746 else
18747 if test "xsql.h" != "x" ; then
18748 if test "${ac_cv_header_sql_h+set}" = set; then
18749 { echo "$as_me:$LINENO: checking for sql.h" >&5
18750 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
18751 if test "${ac_cv_header_sql_h+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
18755 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
18756 else
18757 # Is the header compilable?
18758 { echo "$as_me:$LINENO: checking sql.h usability" >&5
18759 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
18760 cat >conftest.$ac_ext <<_ACEOF
18761 /* confdefs.h. */
18762 _ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18766 $ac_includes_default
18767 #include <sql.h>
18768 _ACEOF
18769 rm -f conftest.$ac_objext
18770 if { (ac_try="$ac_compile"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_compile") 2>conftest.er1
18777 ac_status=$?
18778 grep -v '^ *+' conftest.er1 >conftest.err
18779 rm -f conftest.er1
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } &&
18783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18784 { (case "(($ac_try" in
18785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786 *) ac_try_echo=$ac_try;;
18787 esac
18788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789 (eval "$ac_try") 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; } &&
18793 { ac_try='test -s conftest.$ac_objext'
18794 { (case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18797 esac
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_try") 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; }; then
18803 ac_header_compiler=yes
18804 else
18805 echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18808 ac_header_compiler=no
18811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18813 echo "${ECHO_T}$ac_header_compiler" >&6; }
18815 # Is the header present?
18816 { echo "$as_me:$LINENO: checking sql.h presence" >&5
18817 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
18818 cat >conftest.$ac_ext <<_ACEOF
18819 /* confdefs.h. */
18820 _ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h. */
18824 #include <sql.h>
18825 _ACEOF
18826 if { (ac_try="$ac_cpp conftest.$ac_ext"
18827 case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18830 esac
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18833 ac_status=$?
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } >/dev/null; then
18839 if test -s conftest.err; then
18840 ac_cpp_err=$ac_c_preproc_warn_flag
18841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18842 else
18843 ac_cpp_err=
18845 else
18846 ac_cpp_err=yes
18848 if test -z "$ac_cpp_err"; then
18849 ac_header_preproc=yes
18850 else
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 ac_header_preproc=no
18857 rm -f conftest.err conftest.$ac_ext
18858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18859 echo "${ECHO_T}$ac_header_preproc" >&6; }
18861 # So? What about this header?
18862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18863 yes:no: )
18864 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
18865 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18866 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
18867 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
18868 ac_header_preproc=yes
18870 no:yes:* )
18871 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
18872 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
18874 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
18875 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
18876 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
18877 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
18878 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
18879 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
18880 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
18882 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
18885 esac
18886 { echo "$as_me:$LINENO: checking for sql.h" >&5
18887 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
18888 if test "${ac_cv_header_sql_h+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891 ac_cv_header_sql_h=$ac_header_preproc
18893 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
18894 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
18897 if test $ac_cv_header_sql_h = yes; then
18898 UNIXODBC_HEADER_FOUND=1
18899 else
18900 UNIXODBC_HEADER_FOUND=0
18906 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
18907 if test ! -z "${UNIXODBC_MANDATORY}" ;
18908 then
18909 echo " ***"
18910 echo " *** It appears that you do not have the odbc development package installed."
18911 echo " *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure"
18912 echo " *** without explicitly specifying --with-${UNIXODBC_OPTION}"
18913 exit 1
18915 UNIXODBC_LIB=""
18916 UNIXODBC_INCLUDE=""
18917 PBX_UNIXODBC=0
18918 else
18919 PBX_UNIXODBC=1
18921 cat >>confdefs.h <<_ACEOF
18922 #define HAVE_UNIXODBC 1
18923 _ACEOF
18926 elif test ! -z "${UNIXODBC_MANDATORY}";
18927 then
18928 echo "***"
18929 echo "*** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken."
18930 echo "*** Either correct the installation, or run configure"
18931 echo "*** without explicitly specifying --with-${UNIXODBC_OPTION}"
18932 exit 1
18938 if test "${USE_OGG}" != "no"; then
18939 pbxlibdir=""
18940 if test "x${OGG_DIR}" != "x"; then
18941 if test -d ${OGG_DIR}/lib; then
18942 pbxlibdir="-L${OGG_DIR}/lib"
18943 else
18944 pbxlibdir="-L${OGG_DIR}"
18947 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
18948 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
18949 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18951 else
18952 ac_check_lib_save_LIBS=$LIBS
18953 LIBS="-logg ${pbxlibdir} $LIBS"
18954 cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h. */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18961 /* Override any GCC internal prototype to avoid an error.
18962 Use char because int might match the return type of a GCC
18963 builtin and then its argument prototype would still apply. */
18964 #ifdef __cplusplus
18965 extern "C"
18966 #endif
18967 char ogg_sync_init ();
18969 main ()
18971 return ogg_sync_init ();
18973 return 0;
18975 _ACEOF
18976 rm -f conftest.$ac_objext conftest$ac_exeext
18977 if { (ac_try="$ac_link"
18978 case "(($ac_try" in
18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18981 esac
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_link") 2>conftest.er1
18984 ac_status=$?
18985 grep -v '^ *+' conftest.er1 >conftest.err
18986 rm -f conftest.er1
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
18990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18991 { (case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18994 esac
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_try") 2>&5
18997 ac_status=$?
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; } &&
19000 { ac_try='test -s conftest$ac_exeext'
19001 { (case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19004 esac
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_try") 2>&5
19007 ac_status=$?
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; }; then
19010 ac_cv_lib_ogg_ogg_sync_init=yes
19011 else
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19015 ac_cv_lib_ogg_ogg_sync_init=no
19018 rm -f conftest.err conftest.$ac_objext \
19019 conftest$ac_exeext conftest.$ac_ext
19020 LIBS=$ac_check_lib_save_LIBS
19022 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
19023 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
19024 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
19025 AST_OGG_FOUND=yes
19026 else
19027 AST_OGG_FOUND=no
19031 if test "${AST_OGG_FOUND}" = "yes"; then
19032 OGG_LIB="-logg "
19033 OGG_HEADER_FOUND="1"
19034 if test "x${OGG_DIR}" != "x"; then
19035 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
19036 OGG_INCLUDE="-I${OGG_DIR}/include"
19037 if test "x" != "x" ; then
19038 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
19039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19040 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
19041 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
19042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 ac_res=`eval echo '${'$as_ac_Header'}'`
19046 { echo "$as_me:$LINENO: result: $ac_res" >&5
19047 echo "${ECHO_T}$ac_res" >&6; }
19048 else
19049 # Is the header compilable?
19050 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
19051 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
19052 cat >conftest.$ac_ext <<_ACEOF
19053 /* confdefs.h. */
19054 _ACEOF
19055 cat confdefs.h >>conftest.$ac_ext
19056 cat >>conftest.$ac_ext <<_ACEOF
19057 /* end confdefs.h. */
19058 $ac_includes_default
19059 #include <${OGG_DIR}/include/>
19060 _ACEOF
19061 rm -f conftest.$ac_objext
19062 if { (ac_try="$ac_compile"
19063 case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_compile") 2>conftest.er1
19069 ac_status=$?
19070 grep -v '^ *+' conftest.er1 >conftest.err
19071 rm -f conftest.er1
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19076 { (case "(($ac_try" in
19077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19079 esac
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081 (eval "$ac_try") 2>&5
19082 ac_status=$?
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try='test -s conftest.$ac_objext'
19086 { (case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_try") 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 ac_header_compiler=yes
19096 else
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19100 ac_header_compiler=no
19103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19105 echo "${ECHO_T}$ac_header_compiler" >&6; }
19107 # Is the header present?
19108 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
19109 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
19110 cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h. */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116 #include <${OGG_DIR}/include/>
19117 _ACEOF
19118 if { (ac_try="$ac_cpp conftest.$ac_ext"
19119 case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19122 esac
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19125 ac_status=$?
19126 grep -v '^ *+' conftest.er1 >conftest.err
19127 rm -f conftest.er1
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } >/dev/null; then
19131 if test -s conftest.err; then
19132 ac_cpp_err=$ac_c_preproc_warn_flag
19133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19134 else
19135 ac_cpp_err=
19137 else
19138 ac_cpp_err=yes
19140 if test -z "$ac_cpp_err"; then
19141 ac_header_preproc=yes
19142 else
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_header_preproc=no
19149 rm -f conftest.err conftest.$ac_ext
19150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19151 echo "${ECHO_T}$ac_header_preproc" >&6; }
19153 # So? What about this header?
19154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19155 yes:no: )
19156 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
19157 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
19158 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
19159 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
19160 ac_header_preproc=yes
19162 no:yes:* )
19163 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
19164 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
19166 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
19167 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
19168 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
19169 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
19170 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
19171 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
19172 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
19173 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
19174 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
19177 esac
19178 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
19179 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
19180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19182 else
19183 eval "$as_ac_Header=\$ac_header_preproc"
19185 ac_res=`eval echo '${'$as_ac_Header'}'`
19186 { echo "$as_me:$LINENO: result: $ac_res" >&5
19187 echo "${ECHO_T}$ac_res" >&6; }
19190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19191 OGG_HEADER_FOUND=1
19192 else
19193 OGG_HEADER_FOUND=0
19198 else
19199 if test "x" != "x" ; then
19200 if test "${ac_cv_header_+set}" = set; then
19201 { echo "$as_me:$LINENO: checking for " >&5
19202 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19203 if test "${ac_cv_header_+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19206 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19207 echo "${ECHO_T}$ac_cv_header_" >&6; }
19208 else
19209 # Is the header compilable?
19210 { echo "$as_me:$LINENO: checking usability" >&5
19211 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19212 cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h. */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218 $ac_includes_default
19219 #include <>
19220 _ACEOF
19221 rm -f conftest.$ac_objext
19222 if { (ac_try="$ac_compile"
19223 case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19226 esac
19227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_compile") 2>conftest.er1
19229 ac_status=$?
19230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } &&
19235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19236 { (case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19239 esac
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_try") 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest.$ac_objext'
19246 { (case "(($ac_try" in
19247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248 *) ac_try_echo=$ac_try;;
19249 esac
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251 (eval "$ac_try") 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; }; then
19255 ac_header_compiler=yes
19256 else
19257 echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19260 ac_header_compiler=no
19263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19265 echo "${ECHO_T}$ac_header_compiler" >&6; }
19267 # Is the header present?
19268 { echo "$as_me:$LINENO: checking presence" >&5
19269 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19270 cat >conftest.$ac_ext <<_ACEOF
19271 /* confdefs.h. */
19272 _ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19276 #include <>
19277 _ACEOF
19278 if { (ac_try="$ac_cpp conftest.$ac_ext"
19279 case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19285 ac_status=$?
19286 grep -v '^ *+' conftest.er1 >conftest.err
19287 rm -f conftest.er1
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } >/dev/null; then
19291 if test -s conftest.err; then
19292 ac_cpp_err=$ac_c_preproc_warn_flag
19293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19294 else
19295 ac_cpp_err=
19297 else
19298 ac_cpp_err=yes
19300 if test -z "$ac_cpp_err"; then
19301 ac_header_preproc=yes
19302 else
19303 echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19306 ac_header_preproc=no
19309 rm -f conftest.err conftest.$ac_ext
19310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19311 echo "${ECHO_T}$ac_header_preproc" >&6; }
19313 # So? What about this header?
19314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19315 yes:no: )
19316 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19317 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19318 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19319 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19320 ac_header_preproc=yes
19322 no:yes:* )
19323 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19324 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19325 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19326 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19327 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19328 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19329 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19330 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19331 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19332 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19334 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19337 esac
19338 { echo "$as_me:$LINENO: checking for " >&5
19339 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19340 if test "${ac_cv_header_+set}" = set; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 else
19343 ac_cv_header_=$ac_header_preproc
19345 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19346 echo "${ECHO_T}$ac_cv_header_" >&6; }
19349 if test $ac_cv_header_ = yes; then
19350 OGG_HEADER_FOUND=1
19351 else
19352 OGG_HEADER_FOUND=0
19358 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
19359 if test ! -z "${OGG_MANDATORY}" ;
19360 then
19361 echo " ***"
19362 echo " *** It appears that you do not have the ogg development package installed."
19363 echo " *** Please install it to include ${OGG_DESCRIP} support, or re-run configure"
19364 echo " *** without explicitly specifying --with-${OGG_OPTION}"
19365 exit 1
19367 OGG_LIB=""
19368 OGG_INCLUDE=""
19369 PBX_OGG=0
19370 else
19371 PBX_OGG=1
19373 cat >>confdefs.h <<_ACEOF
19374 #define HAVE_OGG 1
19375 _ACEOF
19378 elif test ! -z "${OGG_MANDATORY}";
19379 then
19380 echo "***"
19381 echo "*** The ${OGG_DESCRIP} installation on this system appears to be broken."
19382 echo "*** Either correct the installation, or run configure"
19383 echo "*** without explicitly specifying --with-${OGG_OPTION}"
19384 exit 1
19390 if test "${USE_OSPTK}" != "no"; then
19391 pbxlibdir=""
19392 if test "x${OSPTK_DIR}" != "x"; then
19393 if test -d ${OSPTK_DIR}/lib; then
19394 pbxlibdir="-L${OSPTK_DIR}/lib"
19395 else
19396 pbxlibdir="-L${OSPTK_DIR}"
19399 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
19400 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
19401 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19403 else
19404 ac_check_lib_save_LIBS=$LIBS
19405 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
19406 cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h. */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19416 #ifdef __cplusplus
19417 extern "C"
19418 #endif
19419 char OSPPCryptoDecrypt ();
19421 main ()
19423 return OSPPCryptoDecrypt ();
19425 return 0;
19427 _ACEOF
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_link") 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19443 { (case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19446 esac
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_try") 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest$ac_exeext'
19453 { (case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19456 esac
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_try") 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
19462 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
19463 else
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19467 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
19470 rm -f conftest.err conftest.$ac_objext \
19471 conftest$ac_exeext conftest.$ac_ext
19472 LIBS=$ac_check_lib_save_LIBS
19474 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
19475 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
19476 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
19477 AST_OSPTK_FOUND=yes
19478 else
19479 AST_OSPTK_FOUND=no
19483 if test "${AST_OSPTK_FOUND}" = "yes"; then
19484 OSPTK_LIB="-losptk -lcrypto -lssl"
19485 OSPTK_HEADER_FOUND="1"
19486 if test "x${OSPTK_DIR}" != "x"; then
19487 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
19488 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
19489 if test "xosp/osp.h" != "x" ; then
19490 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
19491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19492 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
19493 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
19494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19497 ac_res=`eval echo '${'$as_ac_Header'}'`
19498 { echo "$as_me:$LINENO: result: $ac_res" >&5
19499 echo "${ECHO_T}$ac_res" >&6; }
19500 else
19501 # Is the header compilable?
19502 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
19503 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
19504 cat >conftest.$ac_ext <<_ACEOF
19505 /* confdefs.h. */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 $ac_includes_default
19511 #include <${OSPTK_DIR}/include/osp/osp.h>
19512 _ACEOF
19513 rm -f conftest.$ac_objext
19514 if { (ac_try="$ac_compile"
19515 case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19518 esac
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_compile") 2>conftest.er1
19521 ac_status=$?
19522 grep -v '^ *+' conftest.er1 >conftest.err
19523 rm -f conftest.er1
19524 cat conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19528 { (case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19531 esac
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_try") 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; } &&
19537 { ac_try='test -s conftest.$ac_objext'
19538 { (case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19541 esac
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_try") 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 ac_header_compiler=yes
19548 else
19549 echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19552 ac_header_compiler=no
19555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19557 echo "${ECHO_T}$ac_header_compiler" >&6; }
19559 # Is the header present?
19560 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
19561 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
19562 cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h. */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 #include <${OSPTK_DIR}/include/osp/osp.h>
19569 _ACEOF
19570 if { (ac_try="$ac_cpp conftest.$ac_ext"
19571 case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19574 esac
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } >/dev/null; then
19583 if test -s conftest.err; then
19584 ac_cpp_err=$ac_c_preproc_warn_flag
19585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19586 else
19587 ac_cpp_err=
19589 else
19590 ac_cpp_err=yes
19592 if test -z "$ac_cpp_err"; then
19593 ac_header_preproc=yes
19594 else
19595 echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19598 ac_header_preproc=no
19601 rm -f conftest.err conftest.$ac_ext
19602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19603 echo "${ECHO_T}$ac_header_preproc" >&6; }
19605 # So? What about this header?
19606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19607 yes:no: )
19608 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
19609 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19610 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
19611 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
19612 ac_header_preproc=yes
19614 no:yes:* )
19615 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
19616 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
19617 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
19618 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
19619 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
19620 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
19622 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
19624 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
19626 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
19629 esac
19630 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
19631 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
19632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19633 echo $ECHO_N "(cached) $ECHO_C" >&6
19634 else
19635 eval "$as_ac_Header=\$ac_header_preproc"
19637 ac_res=`eval echo '${'$as_ac_Header'}'`
19638 { echo "$as_me:$LINENO: result: $ac_res" >&5
19639 echo "${ECHO_T}$ac_res" >&6; }
19642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19643 OSPTK_HEADER_FOUND=1
19644 else
19645 OSPTK_HEADER_FOUND=0
19650 else
19651 if test "xosp/osp.h" != "x" ; then
19652 if test "${ac_cv_header_osp_osp_h+set}" = set; then
19653 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
19654 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
19655 if test "${ac_cv_header_osp_osp_h+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
19659 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
19660 else
19661 # Is the header compilable?
19662 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
19663 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
19664 cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h. */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19670 $ac_includes_default
19671 #include <osp/osp.h>
19672 _ACEOF
19673 rm -f conftest.$ac_objext
19674 if { (ac_try="$ac_compile"
19675 case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19678 esac
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_compile") 2>conftest.er1
19681 ac_status=$?
19682 grep -v '^ *+' conftest.er1 >conftest.err
19683 rm -f conftest.er1
19684 cat conftest.err >&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } &&
19687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19688 { (case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19691 esac
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_try") 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try='test -s conftest.$ac_objext'
19698 { (case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19701 esac
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_try") 2>&5
19704 ac_status=$?
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; }; then
19707 ac_header_compiler=yes
19708 else
19709 echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19712 ac_header_compiler=no
19715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19717 echo "${ECHO_T}$ac_header_compiler" >&6; }
19719 # Is the header present?
19720 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
19721 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
19722 cat >conftest.$ac_ext <<_ACEOF
19723 /* confdefs.h. */
19724 _ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19728 #include <osp/osp.h>
19729 _ACEOF
19730 if { (ac_try="$ac_cpp conftest.$ac_ext"
19731 case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19734 esac
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19737 ac_status=$?
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } >/dev/null; then
19743 if test -s conftest.err; then
19744 ac_cpp_err=$ac_c_preproc_warn_flag
19745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19746 else
19747 ac_cpp_err=
19749 else
19750 ac_cpp_err=yes
19752 if test -z "$ac_cpp_err"; then
19753 ac_header_preproc=yes
19754 else
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19758 ac_header_preproc=no
19761 rm -f conftest.err conftest.$ac_ext
19762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19763 echo "${ECHO_T}$ac_header_preproc" >&6; }
19765 # So? What about this header?
19766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19767 yes:no: )
19768 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
19769 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19770 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
19771 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
19772 ac_header_preproc=yes
19774 no:yes:* )
19775 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
19776 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
19777 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
19778 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
19779 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
19780 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
19781 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
19782 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
19783 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
19784 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
19785 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
19786 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
19789 esac
19790 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
19791 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
19792 if test "${ac_cv_header_osp_osp_h+set}" = set; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
19794 else
19795 ac_cv_header_osp_osp_h=$ac_header_preproc
19797 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
19798 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
19801 if test $ac_cv_header_osp_osp_h = yes; then
19802 OSPTK_HEADER_FOUND=1
19803 else
19804 OSPTK_HEADER_FOUND=0
19810 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
19811 if test ! -z "${OSPTK_MANDATORY}" ;
19812 then
19813 echo " ***"
19814 echo " *** It appears that you do not have the osptk development package installed."
19815 echo " *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure"
19816 echo " *** without explicitly specifying --with-${OSPTK_OPTION}"
19817 exit 1
19819 OSPTK_LIB=""
19820 OSPTK_INCLUDE=""
19821 PBX_OSPTK=0
19822 else
19823 PBX_OSPTK=1
19825 cat >>confdefs.h <<_ACEOF
19826 #define HAVE_OSPTK 1
19827 _ACEOF
19830 elif test ! -z "${OSPTK_MANDATORY}";
19831 then
19832 echo "***"
19833 echo "*** The ${OSPTK_DESCRIP} installation on this system appears to be broken."
19834 echo "*** Either correct the installation, or run configure"
19835 echo "*** without explicitly specifying --with-${OSPTK_OPTION}"
19836 exit 1
19841 PBX_OSS=0
19842 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
19843 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
19844 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
19845 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
19849 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
19850 else
19851 # Is the header compilable?
19852 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
19853 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h. */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 $ac_includes_default
19861 #include <linux/soundcard.h>
19862 _ACEOF
19863 rm -f conftest.$ac_objext
19864 if { (ac_try="$ac_compile"
19865 case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19868 esac
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_compile") 2>conftest.er1
19871 ac_status=$?
19872 grep -v '^ *+' conftest.er1 >conftest.err
19873 rm -f conftest.er1
19874 cat conftest.err >&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); } &&
19877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19878 { (case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19881 esac
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_try") 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; } &&
19887 { ac_try='test -s conftest.$ac_objext'
19888 { (case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_try") 2>&5
19894 ac_status=$?
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; }; then
19897 ac_header_compiler=yes
19898 else
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_header_compiler=no
19905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19907 echo "${ECHO_T}$ac_header_compiler" >&6; }
19909 # Is the header present?
19910 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
19911 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
19912 cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h. */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 #include <linux/soundcard.h>
19919 _ACEOF
19920 if { (ac_try="$ac_cpp conftest.$ac_ext"
19921 case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19924 esac
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19927 ac_status=$?
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } >/dev/null; then
19933 if test -s conftest.err; then
19934 ac_cpp_err=$ac_c_preproc_warn_flag
19935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19936 else
19937 ac_cpp_err=
19939 else
19940 ac_cpp_err=yes
19942 if test -z "$ac_cpp_err"; then
19943 ac_header_preproc=yes
19944 else
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 ac_header_preproc=no
19951 rm -f conftest.err conftest.$ac_ext
19952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19953 echo "${ECHO_T}$ac_header_preproc" >&6; }
19955 # So? What about this header?
19956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19957 yes:no: )
19958 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
19959 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19960 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
19961 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
19962 ac_header_preproc=yes
19964 no:yes:* )
19965 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
19966 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
19967 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
19968 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
19969 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
19970 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
19972 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
19973 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
19974 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
19975 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
19976 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
19979 esac
19980 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
19981 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
19982 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 else
19985 ac_cv_header_linux_soundcard_h=$ac_header_preproc
19987 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
19988 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
19991 if test $ac_cv_header_linux_soundcard_h = yes; then
19993 PBX_OSS=1
19995 cat >>confdefs.h <<_ACEOF
19996 #define HAVE_OSS 1
19997 _ACEOF
20003 if test "$PBX_OSS" = "0"; then
20004 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20005 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
20006 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
20007 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
20011 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
20012 else
20013 # Is the header compilable?
20014 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
20015 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h. */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 $ac_includes_default
20023 #include <sys/soundcard.h>
20024 _ACEOF
20025 rm -f conftest.$ac_objext
20026 if { (ac_try="$ac_compile"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_compile") 2>conftest.er1
20033 ac_status=$?
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
20039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20040 { (case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20043 esac
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_try") 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; } &&
20049 { ac_try='test -s conftest.$ac_objext'
20050 { (case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_try") 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059 ac_header_compiler=yes
20060 else
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_header_compiler=no
20067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20069 echo "${ECHO_T}$ac_header_compiler" >&6; }
20071 # Is the header present?
20072 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
20073 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
20074 cat >conftest.$ac_ext <<_ACEOF
20075 /* confdefs.h. */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20080 #include <sys/soundcard.h>
20081 _ACEOF
20082 if { (ac_try="$ac_cpp conftest.$ac_ext"
20083 case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20086 esac
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20089 ac_status=$?
20090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } >/dev/null; then
20095 if test -s conftest.err; then
20096 ac_cpp_err=$ac_c_preproc_warn_flag
20097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20098 else
20099 ac_cpp_err=
20101 else
20102 ac_cpp_err=yes
20104 if test -z "$ac_cpp_err"; then
20105 ac_header_preproc=yes
20106 else
20107 echo "$as_me: failed program was:" >&5
20108 sed 's/^/| /' conftest.$ac_ext >&5
20110 ac_header_preproc=no
20113 rm -f conftest.err conftest.$ac_ext
20114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20115 echo "${ECHO_T}$ac_header_preproc" >&6; }
20117 # So? What about this header?
20118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20119 yes:no: )
20120 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20121 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
20123 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
20124 ac_header_preproc=yes
20126 no:yes:* )
20127 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
20128 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
20129 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
20130 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
20131 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
20132 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
20133 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20134 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20135 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
20136 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
20137 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
20138 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
20141 esac
20142 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
20143 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
20144 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147 ac_cv_header_sys_soundcard_h=$ac_header_preproc
20149 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
20150 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
20153 if test $ac_cv_header_sys_soundcard_h = yes; then
20155 PBX_OSS=1
20157 cat >>confdefs.h <<_ACEOF
20158 #define HAVE_OSS 1
20159 _ACEOF
20166 if test "$PBX_OSS" = "0"; then
20168 if test "${USE_OSS}" != "no"; then
20169 pbxlibdir=""
20170 if test "x${OSS_DIR}" != "x"; then
20171 if test -d ${OSS_DIR}/lib; then
20172 pbxlibdir="-L${OSS_DIR}/lib"
20173 else
20174 pbxlibdir="-L${OSS_DIR}"
20177 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
20178 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
20179 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182 ac_check_lib_save_LIBS=$LIBS
20183 LIBS="-lossaudio ${pbxlibdir} $LIBS"
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h. */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20191 /* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
20194 #ifdef __cplusplus
20195 extern "C"
20196 #endif
20197 char oss_ioctl_mixer ();
20199 main ()
20201 return oss_ioctl_mixer ();
20203 return 0;
20205 _ACEOF
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (ac_try="$ac_link"
20208 case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_link") 2>conftest.er1
20214 ac_status=$?
20215 grep -v '^ *+' conftest.er1 >conftest.err
20216 rm -f conftest.er1
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } &&
20220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20221 { (case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_try") 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; } &&
20230 { ac_try='test -s conftest$ac_exeext'
20231 { (case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234 esac
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_try") 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
20240 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
20241 else
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20245 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
20248 rm -f conftest.err conftest.$ac_objext \
20249 conftest$ac_exeext conftest.$ac_ext
20250 LIBS=$ac_check_lib_save_LIBS
20252 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
20253 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
20254 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
20255 AST_OSS_FOUND=yes
20256 else
20257 AST_OSS_FOUND=no
20261 if test "${AST_OSS_FOUND}" = "yes"; then
20262 OSS_LIB="-lossaudio "
20263 OSS_HEADER_FOUND="1"
20264 if test "x${OSS_DIR}" != "x"; then
20265 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
20266 OSS_INCLUDE="-I${OSS_DIR}/include"
20267 if test "xsoundcard.h" != "x" ; then
20268 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
20269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20270 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
20271 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
20272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20273 echo $ECHO_N "(cached) $ECHO_C" >&6
20275 ac_res=`eval echo '${'$as_ac_Header'}'`
20276 { echo "$as_me:$LINENO: result: $ac_res" >&5
20277 echo "${ECHO_T}$ac_res" >&6; }
20278 else
20279 # Is the header compilable?
20280 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
20281 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
20282 cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h. */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 $ac_includes_default
20289 #include <${OSS_DIR}/include/soundcard.h>
20290 _ACEOF
20291 rm -f conftest.$ac_objext
20292 if { (ac_try="$ac_compile"
20293 case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20296 esac
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_compile") 2>conftest.er1
20299 ac_status=$?
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
20305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20306 { (case "(($ac_try" in
20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20309 esac
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311 (eval "$ac_try") 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; } &&
20315 { ac_try='test -s conftest.$ac_objext'
20316 { (case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20319 esac
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_try") 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325 ac_header_compiler=yes
20326 else
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20330 ac_header_compiler=no
20333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20335 echo "${ECHO_T}$ac_header_compiler" >&6; }
20337 # Is the header present?
20338 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
20339 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
20340 cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h. */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20346 #include <${OSS_DIR}/include/soundcard.h>
20347 _ACEOF
20348 if { (ac_try="$ac_cpp conftest.$ac_ext"
20349 case "(($ac_try" in
20350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351 *) ac_try_echo=$ac_try;;
20352 esac
20353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20355 ac_status=$?
20356 grep -v '^ *+' conftest.er1 >conftest.err
20357 rm -f conftest.er1
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } >/dev/null; then
20361 if test -s conftest.err; then
20362 ac_cpp_err=$ac_c_preproc_warn_flag
20363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20364 else
20365 ac_cpp_err=
20367 else
20368 ac_cpp_err=yes
20370 if test -z "$ac_cpp_err"; then
20371 ac_header_preproc=yes
20372 else
20373 echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20376 ac_header_preproc=no
20379 rm -f conftest.err conftest.$ac_ext
20380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20381 echo "${ECHO_T}$ac_header_preproc" >&6; }
20383 # So? What about this header?
20384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20385 yes:no: )
20386 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20387 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20388 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
20389 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
20390 ac_header_preproc=yes
20392 no:yes:* )
20393 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
20394 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
20395 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
20396 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
20398 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20400 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
20402 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
20403 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
20404 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
20407 esac
20408 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
20409 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
20410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413 eval "$as_ac_Header=\$ac_header_preproc"
20415 ac_res=`eval echo '${'$as_ac_Header'}'`
20416 { echo "$as_me:$LINENO: result: $ac_res" >&5
20417 echo "${ECHO_T}$ac_res" >&6; }
20420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20421 OSS_HEADER_FOUND=1
20422 else
20423 OSS_HEADER_FOUND=0
20428 else
20429 if test "xsoundcard.h" != "x" ; then
20430 if test "${ac_cv_header_soundcard_h+set}" = set; then
20431 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
20432 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
20433 if test "${ac_cv_header_soundcard_h+set}" = set; then
20434 echo $ECHO_N "(cached) $ECHO_C" >&6
20436 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
20437 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
20438 else
20439 # Is the header compilable?
20440 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
20441 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h. */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20448 $ac_includes_default
20449 #include <soundcard.h>
20450 _ACEOF
20451 rm -f conftest.$ac_objext
20452 if { (ac_try="$ac_compile"
20453 case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20456 esac
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_compile") 2>conftest.er1
20459 ac_status=$?
20460 grep -v '^ *+' conftest.er1 >conftest.err
20461 rm -f conftest.er1
20462 cat conftest.err >&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } &&
20465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20466 { (case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_try") 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; } &&
20475 { ac_try='test -s conftest.$ac_objext'
20476 { (case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_try") 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_header_compiler=yes
20486 else
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20490 ac_header_compiler=no
20493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20495 echo "${ECHO_T}$ac_header_compiler" >&6; }
20497 # Is the header present?
20498 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
20499 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
20500 cat >conftest.$ac_ext <<_ACEOF
20501 /* confdefs.h. */
20502 _ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20506 #include <soundcard.h>
20507 _ACEOF
20508 if { (ac_try="$ac_cpp conftest.$ac_ext"
20509 case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20512 esac
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20515 ac_status=$?
20516 grep -v '^ *+' conftest.er1 >conftest.err
20517 rm -f conftest.er1
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } >/dev/null; then
20521 if test -s conftest.err; then
20522 ac_cpp_err=$ac_c_preproc_warn_flag
20523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20524 else
20525 ac_cpp_err=
20527 else
20528 ac_cpp_err=yes
20530 if test -z "$ac_cpp_err"; then
20531 ac_header_preproc=yes
20532 else
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20536 ac_header_preproc=no
20539 rm -f conftest.err conftest.$ac_ext
20540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20541 echo "${ECHO_T}$ac_header_preproc" >&6; }
20543 # So? What about this header?
20544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20545 yes:no: )
20546 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20547 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
20549 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
20550 ac_header_preproc=yes
20552 no:yes:* )
20553 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
20554 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
20556 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
20557 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
20558 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
20559 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20560 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20561 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
20562 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
20563 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
20564 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
20567 esac
20568 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
20569 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
20570 if test "${ac_cv_header_soundcard_h+set}" = set; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 else
20573 ac_cv_header_soundcard_h=$ac_header_preproc
20575 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
20576 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
20579 if test $ac_cv_header_soundcard_h = yes; then
20580 OSS_HEADER_FOUND=1
20581 else
20582 OSS_HEADER_FOUND=0
20588 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
20589 if test ! -z "${OSS_MANDATORY}" ;
20590 then
20591 echo " ***"
20592 echo " *** It appears that you do not have the ossaudio development package installed."
20593 echo " *** Please install it to include ${OSS_DESCRIP} support, or re-run configure"
20594 echo " *** without explicitly specifying --with-${OSS_OPTION}"
20595 exit 1
20597 OSS_LIB=""
20598 OSS_INCLUDE=""
20599 PBX_OSS=0
20600 else
20601 PBX_OSS=1
20603 cat >>confdefs.h <<_ACEOF
20604 #define HAVE_OSS 1
20605 _ACEOF
20608 elif test ! -z "${OSS_MANDATORY}";
20609 then
20610 echo "***"
20611 echo "*** The ${OSS_DESCRIP} installation on this system appears to be broken."
20612 echo "*** Either correct the installation, or run configure"
20613 echo "*** without explicitly specifying --with-${OSS_OPTION}"
20614 exit 1
20620 PG_CONFIG=No
20621 if test "${USE_PGSQL}" != "no"; then
20622 if test "x${PGSQL_DIR}" != "x"; then
20623 if test -n "$ac_tool_prefix"; then
20624 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
20625 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
20626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20628 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
20629 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 else
20631 case $PG_CONFIG in
20632 [\\/]* | ?:[\\/]*)
20633 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
20636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20637 for as_dir in ${PGSQL_DIR}/bin
20639 IFS=$as_save_IFS
20640 test -z "$as_dir" && as_dir=.
20641 for ac_exec_ext in '' $ac_executable_extensions; do
20642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20643 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20645 break 2
20647 done
20648 done
20649 IFS=$as_save_IFS
20652 esac
20654 PG_CONFIG=$ac_cv_path_PG_CONFIG
20655 if test -n "$PG_CONFIG"; then
20656 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
20657 echo "${ECHO_T}$PG_CONFIG" >&6; }
20658 else
20659 { echo "$as_me:$LINENO: result: no" >&5
20660 echo "${ECHO_T}no" >&6; }
20665 if test -z "$ac_cv_path_PG_CONFIG"; then
20666 ac_pt_PG_CONFIG=$PG_CONFIG
20667 # Extract the first word of "pg_config", so it can be a program name with args.
20668 set dummy pg_config; ac_word=$2
20669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20671 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674 case $ac_pt_PG_CONFIG in
20675 [\\/]* | ?:[\\/]*)
20676 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
20679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20680 for as_dir in ${PGSQL_DIR}/bin
20682 IFS=$as_save_IFS
20683 test -z "$as_dir" && as_dir=.
20684 for ac_exec_ext in '' $ac_executable_extensions; do
20685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20686 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20688 break 2
20690 done
20691 done
20692 IFS=$as_save_IFS
20695 esac
20697 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
20698 if test -n "$ac_pt_PG_CONFIG"; then
20699 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
20700 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
20701 else
20702 { echo "$as_me:$LINENO: result: no" >&5
20703 echo "${ECHO_T}no" >&6; }
20706 if test "x$ac_pt_PG_CONFIG" = x; then
20707 PG_CONFIG="No"
20708 else
20709 case $cross_compiling:$ac_tool_warned in
20710 yes:)
20711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20712 whose name does not start with the host triplet. If you think this
20713 configuration is useful to you, please write to autoconf@gnu.org." >&5
20714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20715 whose name does not start with the host triplet. If you think this
20716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20717 ac_tool_warned=yes ;;
20718 esac
20719 PG_CONFIG=$ac_pt_PG_CONFIG
20721 else
20722 PG_CONFIG="$ac_cv_path_PG_CONFIG"
20725 if test x"${PG_CONFIG}" = xNo; then
20726 echo "***"
20727 echo "*** pg_config was not found in the path you specified:"
20728 echo "*** ${PGSQL_DIR}/bin"
20729 echo "*** Either correct the installation, or run configure"
20730 echo "*** including --without-postgres"
20731 exit 1
20733 else
20734 if test -n "$ac_tool_prefix"; then
20735 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
20736 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
20737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20739 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
20741 else
20742 case $PG_CONFIG in
20743 [\\/]* | ?:[\\/]*)
20744 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
20747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20748 for as_dir in $PATH
20750 IFS=$as_save_IFS
20751 test -z "$as_dir" && as_dir=.
20752 for ac_exec_ext in '' $ac_executable_extensions; do
20753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20754 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20756 break 2
20758 done
20759 done
20760 IFS=$as_save_IFS
20763 esac
20765 PG_CONFIG=$ac_cv_path_PG_CONFIG
20766 if test -n "$PG_CONFIG"; then
20767 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
20768 echo "${ECHO_T}$PG_CONFIG" >&6; }
20769 else
20770 { echo "$as_me:$LINENO: result: no" >&5
20771 echo "${ECHO_T}no" >&6; }
20776 if test -z "$ac_cv_path_PG_CONFIG"; then
20777 ac_pt_PG_CONFIG=$PG_CONFIG
20778 # Extract the first word of "pg_config", so it can be a program name with args.
20779 set dummy pg_config; ac_word=$2
20780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20782 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20784 else
20785 case $ac_pt_PG_CONFIG in
20786 [\\/]* | ?:[\\/]*)
20787 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
20790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20791 for as_dir in $PATH
20793 IFS=$as_save_IFS
20794 test -z "$as_dir" && as_dir=.
20795 for ac_exec_ext in '' $ac_executable_extensions; do
20796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20797 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20799 break 2
20801 done
20802 done
20803 IFS=$as_save_IFS
20806 esac
20808 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
20809 if test -n "$ac_pt_PG_CONFIG"; then
20810 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
20811 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
20812 else
20813 { echo "$as_me:$LINENO: result: no" >&5
20814 echo "${ECHO_T}no" >&6; }
20817 if test "x$ac_pt_PG_CONFIG" = x; then
20818 PG_CONFIG="No"
20819 else
20820 case $cross_compiling:$ac_tool_warned in
20821 yes:)
20822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20823 whose name does not start with the host triplet. If you think this
20824 configuration is useful to you, please write to autoconf@gnu.org." >&5
20825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20826 whose name does not start with the host triplet. If you think this
20827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20828 ac_tool_warned=yes ;;
20829 esac
20830 PG_CONFIG=$ac_pt_PG_CONFIG
20832 else
20833 PG_CONFIG="$ac_cv_path_PG_CONFIG"
20838 if test "${PG_CONFIG}" != No; then
20839 PGSQL_libdir=`pg_config --libdir`
20840 PGSQL_includedir=`pg_config --includedir`
20842 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
20843 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
20844 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847 ac_check_lib_save_LIBS=$LIBS
20848 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
20849 cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h. */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20856 /* Override any GCC internal prototype to avoid an error.
20857 Use char because int might match the return type of a GCC
20858 builtin and then its argument prototype would still apply. */
20859 #ifdef __cplusplus
20860 extern "C"
20861 #endif
20862 char PQexec ();
20864 main ()
20866 return PQexec ();
20868 return 0;
20870 _ACEOF
20871 rm -f conftest.$ac_objext conftest$ac_exeext
20872 if { (ac_try="$ac_link"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_link") 2>conftest.er1
20879 ac_status=$?
20880 grep -v '^ *+' conftest.er1 >conftest.err
20881 rm -f conftest.er1
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } &&
20885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20886 { (case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_try") 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; } &&
20895 { ac_try='test -s conftest$ac_exeext'
20896 { (case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_try") 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
20905 ac_cv_lib_pq_PQexec=yes
20906 else
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20910 ac_cv_lib_pq_PQexec=no
20913 rm -f conftest.err conftest.$ac_objext \
20914 conftest$ac_exeext conftest.$ac_ext
20915 LIBS=$ac_check_lib_save_LIBS
20917 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
20918 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
20919 if test $ac_cv_lib_pq_PQexec = yes; then
20921 cat >>confdefs.h <<_ACEOF
20922 #define HAVE_PGSQL 1
20923 _ACEOF
20928 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
20929 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
20930 PGSQL_INCLUDE="-I${PGSQL_includedir}"
20931 PBX_PGSQL=1
20932 elif test ! -z "${PGSQL_MANDATORY}";
20933 then
20934 echo "***"
20935 echo "*** The PostgreSQL installation on this system appears to be broken."
20936 echo "*** Either correct the installation, or run configure"
20937 echo "*** including --without-postgres"
20938 exit 1
20940 elif test ! -z "${PGSQL_MANDATORY}";
20941 then
20942 echo "***"
20943 echo "*** The PostgreSQL installation on this system appears to be broken."
20944 echo "*** Either correct the installation, or run configure"
20945 echo "*** including --without-postgres"
20946 exit 1
20950 if test "${USE_POPT}" != "no"; then
20951 pbxlibdir=""
20952 if test "x${POPT_DIR}" != "x"; then
20953 if test -d ${POPT_DIR}/lib; then
20954 pbxlibdir="-L${POPT_DIR}/lib"
20955 else
20956 pbxlibdir="-L${POPT_DIR}"
20959 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
20960 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
20961 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
20962 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 else
20964 ac_check_lib_save_LIBS=$LIBS
20965 LIBS="-lpopt ${pbxlibdir} $LIBS"
20966 cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h. */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20973 /* Override any GCC internal prototype to avoid an error.
20974 Use char because int might match the return type of a GCC
20975 builtin and then its argument prototype would still apply. */
20976 #ifdef __cplusplus
20977 extern "C"
20978 #endif
20979 char poptStrerror ();
20981 main ()
20983 return poptStrerror ();
20985 return 0;
20987 _ACEOF
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_link") 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
21002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21003 { (case "(($ac_try" in
21004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005 *) ac_try_echo=$ac_try;;
21006 esac
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008 (eval "$ac_try") 2>&5
21009 ac_status=$?
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); }; } &&
21012 { ac_try='test -s conftest$ac_exeext'
21013 { (case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21016 esac
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_try") 2>&5
21019 ac_status=$?
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_lib_popt_poptStrerror=yes
21023 else
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21027 ac_cv_lib_popt_poptStrerror=no
21030 rm -f conftest.err conftest.$ac_objext \
21031 conftest$ac_exeext conftest.$ac_ext
21032 LIBS=$ac_check_lib_save_LIBS
21034 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
21035 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
21036 if test $ac_cv_lib_popt_poptStrerror = yes; then
21037 AST_POPT_FOUND=yes
21038 else
21039 AST_POPT_FOUND=no
21043 if test "${AST_POPT_FOUND}" = "yes"; then
21044 POPT_LIB="-lpopt "
21045 POPT_HEADER_FOUND="1"
21046 if test "x${POPT_DIR}" != "x"; then
21047 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
21048 POPT_INCLUDE="-I${POPT_DIR}/include"
21049 if test "xpopt.h" != "x" ; then
21050 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
21051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21052 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
21053 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21057 ac_res=`eval echo '${'$as_ac_Header'}'`
21058 { echo "$as_me:$LINENO: result: $ac_res" >&5
21059 echo "${ECHO_T}$ac_res" >&6; }
21060 else
21061 # Is the header compilable?
21062 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
21063 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
21064 cat >conftest.$ac_ext <<_ACEOF
21065 /* confdefs.h. */
21066 _ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h. */
21070 $ac_includes_default
21071 #include <${POPT_DIR}/include/popt.h>
21072 _ACEOF
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21078 esac
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_compile") 2>conftest.er1
21081 ac_status=$?
21082 grep -v '^ *+' conftest.er1 >conftest.err
21083 rm -f conftest.er1
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } &&
21087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21088 { (case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21091 esac
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_try") 2>&5
21094 ac_status=$?
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; } &&
21097 { ac_try='test -s conftest.$ac_objext'
21098 { (case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21101 esac
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_try") 2>&5
21104 ac_status=$?
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 ac_header_compiler=yes
21108 else
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21112 ac_header_compiler=no
21115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21117 echo "${ECHO_T}$ac_header_compiler" >&6; }
21119 # Is the header present?
21120 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
21121 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
21122 cat >conftest.$ac_ext <<_ACEOF
21123 /* confdefs.h. */
21124 _ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21128 #include <${POPT_DIR}/include/popt.h>
21129 _ACEOF
21130 if { (ac_try="$ac_cpp conftest.$ac_ext"
21131 case "(($ac_try" in
21132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21133 *) ac_try_echo=$ac_try;;
21134 esac
21135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21137 ac_status=$?
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } >/dev/null; then
21143 if test -s conftest.err; then
21144 ac_cpp_err=$ac_c_preproc_warn_flag
21145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21146 else
21147 ac_cpp_err=
21149 else
21150 ac_cpp_err=yes
21152 if test -z "$ac_cpp_err"; then
21153 ac_header_preproc=yes
21154 else
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ac_header_preproc=no
21161 rm -f conftest.err conftest.$ac_ext
21162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21163 echo "${ECHO_T}$ac_header_preproc" >&6; }
21165 # So? What about this header?
21166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21167 yes:no: )
21168 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21169 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
21171 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
21172 ac_header_preproc=yes
21174 no:yes:* )
21175 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
21176 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
21177 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
21178 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
21180 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
21181 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
21182 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21183 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
21184 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
21185 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
21186 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
21189 esac
21190 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
21191 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
21192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21194 else
21195 eval "$as_ac_Header=\$ac_header_preproc"
21197 ac_res=`eval echo '${'$as_ac_Header'}'`
21198 { echo "$as_me:$LINENO: result: $ac_res" >&5
21199 echo "${ECHO_T}$ac_res" >&6; }
21202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21203 POPT_HEADER_FOUND=1
21204 else
21205 POPT_HEADER_FOUND=0
21210 else
21211 if test "xpopt.h" != "x" ; then
21212 if test "${ac_cv_header_popt_h+set}" = set; then
21213 { echo "$as_me:$LINENO: checking for popt.h" >&5
21214 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21215 if test "${ac_cv_header_popt_h+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21219 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21220 else
21221 # Is the header compilable?
21222 { echo "$as_me:$LINENO: checking popt.h usability" >&5
21223 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
21224 cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h. */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 $ac_includes_default
21231 #include <popt.h>
21232 _ACEOF
21233 rm -f conftest.$ac_objext
21234 if { (ac_try="$ac_compile"
21235 case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_compile") 2>conftest.er1
21241 ac_status=$?
21242 grep -v '^ *+' conftest.er1 >conftest.err
21243 rm -f conftest.er1
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } &&
21247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21248 { (case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21251 esac
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_try") 2>&5
21254 ac_status=$?
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; } &&
21257 { ac_try='test -s conftest.$ac_objext'
21258 { (case "(($ac_try" in
21259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260 *) ac_try_echo=$ac_try;;
21261 esac
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263 (eval "$ac_try") 2>&5
21264 ac_status=$?
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 ac_header_compiler=yes
21268 else
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ac_header_compiler=no
21275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21277 echo "${ECHO_T}$ac_header_compiler" >&6; }
21279 # Is the header present?
21280 { echo "$as_me:$LINENO: checking popt.h presence" >&5
21281 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
21282 cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h. */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21288 #include <popt.h>
21289 _ACEOF
21290 if { (ac_try="$ac_cpp conftest.$ac_ext"
21291 case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21294 esac
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21297 ac_status=$?
21298 grep -v '^ *+' conftest.er1 >conftest.err
21299 rm -f conftest.er1
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } >/dev/null; then
21303 if test -s conftest.err; then
21304 ac_cpp_err=$ac_c_preproc_warn_flag
21305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21306 else
21307 ac_cpp_err=
21309 else
21310 ac_cpp_err=yes
21312 if test -z "$ac_cpp_err"; then
21313 ac_header_preproc=yes
21314 else
21315 echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ac_header_preproc=no
21321 rm -f conftest.err conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21323 echo "${ECHO_T}$ac_header_preproc" >&6; }
21325 # So? What about this header?
21326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21327 yes:no: )
21328 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21329 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21330 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
21331 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
21332 ac_header_preproc=yes
21334 no:yes:* )
21335 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
21336 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
21338 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
21340 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
21342 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
21344 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
21346 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
21349 esac
21350 { echo "$as_me:$LINENO: checking for popt.h" >&5
21351 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21352 if test "${ac_cv_header_popt_h+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 else
21355 ac_cv_header_popt_h=$ac_header_preproc
21357 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21358 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21361 if test $ac_cv_header_popt_h = yes; then
21362 POPT_HEADER_FOUND=1
21363 else
21364 POPT_HEADER_FOUND=0
21370 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
21371 if test ! -z "${POPT_MANDATORY}" ;
21372 then
21373 echo " ***"
21374 echo " *** It appears that you do not have the popt development package installed."
21375 echo " *** Please install it to include ${POPT_DESCRIP} support, or re-run configure"
21376 echo " *** without explicitly specifying --with-${POPT_OPTION}"
21377 exit 1
21379 POPT_LIB=""
21380 POPT_INCLUDE=""
21381 PBX_POPT=0
21382 else
21383 PBX_POPT=1
21385 cat >>confdefs.h <<_ACEOF
21386 #define HAVE_POPT 1
21387 _ACEOF
21390 elif test ! -z "${POPT_MANDATORY}";
21391 then
21392 echo "***"
21393 echo "*** The ${POPT_DESCRIP} installation on this system appears to be broken."
21394 echo "*** Either correct the installation, or run configure"
21395 echo "*** without explicitly specifying --with-${POPT_OPTION}"
21396 exit 1
21402 if test "${USE_PRI}" != "no"; then
21403 pbxlibdir=""
21404 if test "x${PRI_DIR}" != "x"; then
21405 if test -d ${PRI_DIR}/lib; then
21406 pbxlibdir="-L${PRI_DIR}/lib"
21407 else
21408 pbxlibdir="-L${PRI_DIR}"
21411 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
21412 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
21413 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 else
21416 ac_check_lib_save_LIBS=$LIBS
21417 LIBS="-lpri ${pbxlibdir} $LIBS"
21418 cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h. */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21425 /* Override any GCC internal prototype to avoid an error.
21426 Use char because int might match the return type of a GCC
21427 builtin and then its argument prototype would still apply. */
21428 #ifdef __cplusplus
21429 extern "C"
21430 #endif
21431 char pri_call ();
21433 main ()
21435 return pri_call ();
21437 return 0;
21439 _ACEOF
21440 rm -f conftest.$ac_objext conftest$ac_exeext
21441 if { (ac_try="$ac_link"
21442 case "(($ac_try" in
21443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444 *) ac_try_echo=$ac_try;;
21445 esac
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447 (eval "$ac_link") 2>conftest.er1
21448 ac_status=$?
21449 grep -v '^ *+' conftest.er1 >conftest.err
21450 rm -f conftest.er1
21451 cat conftest.err >&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); } &&
21454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21455 { (case "(($ac_try" in
21456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457 *) ac_try_echo=$ac_try;;
21458 esac
21459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21460 (eval "$ac_try") 2>&5
21461 ac_status=$?
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); }; } &&
21464 { ac_try='test -s conftest$ac_exeext'
21465 { (case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21468 esac
21469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21470 (eval "$ac_try") 2>&5
21471 ac_status=$?
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; }; then
21474 ac_cv_lib_pri_pri_call=yes
21475 else
21476 echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21479 ac_cv_lib_pri_pri_call=no
21482 rm -f conftest.err conftest.$ac_objext \
21483 conftest$ac_exeext conftest.$ac_ext
21484 LIBS=$ac_check_lib_save_LIBS
21486 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
21487 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
21488 if test $ac_cv_lib_pri_pri_call = yes; then
21489 AST_PRI_FOUND=yes
21490 else
21491 AST_PRI_FOUND=no
21495 if test "${AST_PRI_FOUND}" = "yes"; then
21496 PRI_LIB="-lpri "
21497 PRI_HEADER_FOUND="1"
21498 if test "x${PRI_DIR}" != "x"; then
21499 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
21500 PRI_INCLUDE="-I${PRI_DIR}/include"
21501 if test "xlibpri.h" != "x" ; then
21502 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
21503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21504 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
21505 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
21506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21509 ac_res=`eval echo '${'$as_ac_Header'}'`
21510 { echo "$as_me:$LINENO: result: $ac_res" >&5
21511 echo "${ECHO_T}$ac_res" >&6; }
21512 else
21513 # Is the header compilable?
21514 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
21515 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
21516 cat >conftest.$ac_ext <<_ACEOF
21517 /* confdefs.h. */
21518 _ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21522 $ac_includes_default
21523 #include <${PRI_DIR}/include/libpri.h>
21524 _ACEOF
21525 rm -f conftest.$ac_objext
21526 if { (ac_try="$ac_compile"
21527 case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21530 esac
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_compile") 2>conftest.er1
21533 ac_status=$?
21534 grep -v '^ *+' conftest.er1 >conftest.err
21535 rm -f conftest.er1
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } &&
21539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21540 { (case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_try") 2>&5
21546 ac_status=$?
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; } &&
21549 { ac_try='test -s conftest.$ac_objext'
21550 { (case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21553 esac
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555 (eval "$ac_try") 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; }; then
21559 ac_header_compiler=yes
21560 else
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21564 ac_header_compiler=no
21567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21569 echo "${ECHO_T}$ac_header_compiler" >&6; }
21571 # Is the header present?
21572 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
21573 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h. */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 #include <${PRI_DIR}/include/libpri.h>
21581 _ACEOF
21582 if { (ac_try="$ac_cpp conftest.$ac_ext"
21583 case "(($ac_try" in
21584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585 *) ac_try_echo=$ac_try;;
21586 esac
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21589 ac_status=$?
21590 grep -v '^ *+' conftest.er1 >conftest.err
21591 rm -f conftest.er1
21592 cat conftest.err >&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } >/dev/null; then
21595 if test -s conftest.err; then
21596 ac_cpp_err=$ac_c_preproc_warn_flag
21597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21598 else
21599 ac_cpp_err=
21601 else
21602 ac_cpp_err=yes
21604 if test -z "$ac_cpp_err"; then
21605 ac_header_preproc=yes
21606 else
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ac_header_preproc=no
21613 rm -f conftest.err conftest.$ac_ext
21614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21615 echo "${ECHO_T}$ac_header_preproc" >&6; }
21617 # So? What about this header?
21618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21619 yes:no: )
21620 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
21621 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21622 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
21623 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
21624 ac_header_preproc=yes
21626 no:yes:* )
21627 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
21628 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
21630 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
21632 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
21634 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
21636 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
21637 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
21638 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
21641 esac
21642 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
21643 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
21644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 else
21647 eval "$as_ac_Header=\$ac_header_preproc"
21649 ac_res=`eval echo '${'$as_ac_Header'}'`
21650 { echo "$as_me:$LINENO: result: $ac_res" >&5
21651 echo "${ECHO_T}$ac_res" >&6; }
21654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21655 PRI_HEADER_FOUND=1
21656 else
21657 PRI_HEADER_FOUND=0
21662 else
21663 if test "xlibpri.h" != "x" ; then
21664 if test "${ac_cv_header_libpri_h+set}" = set; then
21665 { echo "$as_me:$LINENO: checking for libpri.h" >&5
21666 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
21667 if test "${ac_cv_header_libpri_h+set}" = set; then
21668 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
21671 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
21672 else
21673 # Is the header compilable?
21674 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
21675 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
21676 cat >conftest.$ac_ext <<_ACEOF
21677 /* confdefs.h. */
21678 _ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 $ac_includes_default
21683 #include <libpri.h>
21684 _ACEOF
21685 rm -f conftest.$ac_objext
21686 if { (ac_try="$ac_compile"
21687 case "(($ac_try" in
21688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21690 esac
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692 (eval "$ac_compile") 2>conftest.er1
21693 ac_status=$?
21694 grep -v '^ *+' conftest.er1 >conftest.err
21695 rm -f conftest.er1
21696 cat conftest.err >&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } &&
21699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21700 { (case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_try") 2>&5
21706 ac_status=$?
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; } &&
21709 { ac_try='test -s conftest.$ac_objext'
21710 { (case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21713 esac
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715 (eval "$ac_try") 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }; then
21719 ac_header_compiler=yes
21720 else
21721 echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.$ac_ext >&5
21724 ac_header_compiler=no
21727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21729 echo "${ECHO_T}$ac_header_compiler" >&6; }
21731 # Is the header present?
21732 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
21733 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
21734 cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h. */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 #include <libpri.h>
21741 _ACEOF
21742 if { (ac_try="$ac_cpp conftest.$ac_ext"
21743 case "(($ac_try" in
21744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745 *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21749 ac_status=$?
21750 grep -v '^ *+' conftest.er1 >conftest.err
21751 rm -f conftest.er1
21752 cat conftest.err >&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } >/dev/null; then
21755 if test -s conftest.err; then
21756 ac_cpp_err=$ac_c_preproc_warn_flag
21757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21758 else
21759 ac_cpp_err=
21761 else
21762 ac_cpp_err=yes
21764 if test -z "$ac_cpp_err"; then
21765 ac_header_preproc=yes
21766 else
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21770 ac_header_preproc=no
21773 rm -f conftest.err conftest.$ac_ext
21774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21775 echo "${ECHO_T}$ac_header_preproc" >&6; }
21777 # So? What about this header?
21778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21779 yes:no: )
21780 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
21781 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21782 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
21783 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
21784 ac_header_preproc=yes
21786 no:yes:* )
21787 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
21788 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
21789 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
21790 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
21791 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
21792 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
21793 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
21794 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
21795 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
21796 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
21797 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
21798 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
21801 esac
21802 { echo "$as_me:$LINENO: checking for libpri.h" >&5
21803 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
21804 if test "${ac_cv_header_libpri_h+set}" = set; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21806 else
21807 ac_cv_header_libpri_h=$ac_header_preproc
21809 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
21810 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
21813 if test $ac_cv_header_libpri_h = yes; then
21814 PRI_HEADER_FOUND=1
21815 else
21816 PRI_HEADER_FOUND=0
21822 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
21823 if test ! -z "${PRI_MANDATORY}" ;
21824 then
21825 echo " ***"
21826 echo " *** It appears that you do not have the pri development package installed."
21827 echo " *** Please install it to include ${PRI_DESCRIP} support, or re-run configure"
21828 echo " *** without explicitly specifying --with-${PRI_OPTION}"
21829 exit 1
21831 PRI_LIB=""
21832 PRI_INCLUDE=""
21833 PBX_PRI=0
21834 else
21835 PBX_PRI=1
21837 cat >>confdefs.h <<_ACEOF
21838 #define HAVE_PRI 1
21839 _ACEOF
21842 elif test ! -z "${PRI_MANDATORY}";
21843 then
21844 echo "***"
21845 echo "*** The ${PRI_DESCRIP} installation on this system appears to be broken."
21846 echo "*** Either correct the installation, or run configure"
21847 echo "*** without explicitly specifying --with-${PRI_OPTION}"
21848 exit 1
21853 PLATFORM_PTLIB="ptlib_${OSTYPE}_${MACHTYPE}_r"
21854 if test "${USE_PWLIB}" != "no"; then
21855 echo -n "checking for existence of pwlib... "
21857 saved_cppflags="${CPPFLAGS}"
21858 saved_libs="${LIBS}"
21859 LIBS="${LIBS} -L${PWLIB_DIR} -l${PLATFORM_PTLIB}"
21860 CPPFLAGS="${CPPFLAGS} -I${PWLIB_DIR}/include"
21862 cat >conftest.$ac_ext <<_ACEOF
21864 /* confdefs.h. */
21865 _ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869 #include "ptime.h"
21871 main ()
21873 int q = PTime::IsDaylightSaving();
21875 return 0;
21878 _ACEOF
21879 rm -f conftest.$ac_objext conftest$ac_exeext
21880 if { (ac_try="$ac_link"
21881 case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21884 esac
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_link") 2>conftest.er1
21887 ac_status=$?
21888 grep -v '^ *+' conftest.er1 >conftest.err
21889 rm -f conftest.er1
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } &&
21893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21894 { (case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21897 esac
21898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_try") 2>&5
21900 ac_status=$?
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; } &&
21903 { ac_try='test -s conftest$ac_exeext'
21904 { (case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21907 esac
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_try") 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 { echo "$as_me:$LINENO: result: yes" >&5
21914 echo "${ECHO_T}yes" >&6; }
21915 ac_cv_lib_pwlib="yes"
21917 else
21918 echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21921 { echo "$as_me:$LINENO: result: no" >&5
21922 echo "${ECHO_T}no" >&6; }
21923 ac_cv_lib_pwlib="no"
21928 rm -f conftest.err conftest.$ac_objext \
21929 conftest$ac_exeext conftest.$ac_ext
21931 LIBS="${saved_libs}"
21932 CPPFLAGS="${saved_cppflags}"
21934 if test "${ac_cv_lib_pwlib}" = "yes"; then
21935 PWLIB_LIB="-l{PLATFORM_PWLIB}"
21936 if test "${PWLIB_DIR}" != ""; then
21937 PWLIB_LIB="-L${PWLIB_DIR}/lib ${PWLIB_LIB}"
21938 PWLIB_INCLUDE="-I${PWLIB_DIR}/include"
21940 PBX_PWLIB=1
21942 cat >>confdefs.h <<\_ACEOF
21943 #define HAVE_PWLIB 1
21944 _ACEOF
21946 elif test ! -z "${PWLIB_MANDATORY}"; then
21947 echo "***"
21948 echo "*** The PWLIB installation on this system appears to be broken."
21949 echo "*** Either correct the installation, or run configure"
21950 echo "*** including --without-pwlib"
21951 exit 1
21955 ac_ext=cpp
21956 ac_cpp='$CXXCPP $CPPFLAGS'
21957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21962 if test "${USE_QT}" != "no"; then
21963 echo -n "checking for QDate in -lqt... "
21964 saved_libs="${LIBS}"
21965 saved_cppflags="${CPPFLAGS}"
21966 if test "x${QT_DIR}" != "x"; then
21967 LIBS="${LIBS} -L${QT_DIR}/lib"
21968 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
21970 LIBS="${LIBS} -lqt"
21971 qtlib="qt"
21972 cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h. */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21979 #include <qt3/qdatetime.h>
21981 main ()
21983 QDate date();
21985 return 0;
21988 _ACEOF
21989 rm -f conftest.$ac_objext conftest$ac_exeext
21990 if { (ac_try="$ac_link"
21991 case "(($ac_try" in
21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21994 esac
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_link") 2>conftest.er1
21997 ac_status=$?
21998 grep -v '^ *+' conftest.er1 >conftest.err
21999 rm -f conftest.er1
22000 cat conftest.err >&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } &&
22003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22004 { (case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_try") 2>&5
22010 ac_status=$?
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; } &&
22013 { ac_try='test -s conftest$ac_exeext'
22014 { (case "(($ac_try" in
22015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22016 *) ac_try_echo=$ac_try;;
22017 esac
22018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22019 (eval "$ac_try") 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_cv_lib_qt_qt_date="yes"
22024 else
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 ac_cv_lib_qt_qt_date="no"
22031 rm -f conftest.err conftest.$ac_objext \
22032 conftest$ac_exeext conftest.$ac_ext
22033 LIBS="${saved_libs}"
22034 CPPFLAGS="${saved_cppflags}"
22036 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
22037 saved_libs="${LIBS}"
22038 saved_cppflags="${CPPFLAGS}"
22039 if test "x${QT_DIR}" != "x"; then
22040 LIBS="${LIBS} -L${QT_DIR}/lib"
22041 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
22043 LIBS="${LIBS} -lqt-mt"
22044 qtlib="qt-mt"
22045 cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h. */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 #include <qt3/qdatetime.h>
22054 main ()
22056 QDate date();
22058 return 0;
22061 _ACEOF
22062 rm -f conftest.$ac_objext conftest$ac_exeext
22063 if { (ac_try="$ac_link"
22064 case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22067 esac
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$ac_link") 2>conftest.er1
22070 ac_status=$?
22071 grep -v '^ *+' conftest.er1 >conftest.err
22072 rm -f conftest.er1
22073 cat conftest.err >&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } &&
22076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22077 { (case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22080 esac
22081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082 (eval "$ac_try") 2>&5
22083 ac_status=$?
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; } &&
22086 { ac_try='test -s conftest$ac_exeext'
22087 { (case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22090 esac
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_try") 2>&5
22093 ac_status=$?
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; }; then
22096 ac_cv_lib_qt_qt_date="yes"
22097 else
22098 echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22101 ac_cv_lib_qt_qt_date="no"
22104 rm -f conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22106 LIBS="${saved_libs}"
22107 CPPFLAGS="${saved_cppflags}"
22110 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
22111 { echo "$as_me:$LINENO: result: yes" >&5
22112 echo "${ECHO_T}yes" >&6; }
22113 else
22114 { echo "$as_me:$LINENO: result: no" >&5
22115 echo "${ECHO_T}no" >&6; }
22118 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
22119 QT_LIB="-l${qtlib}"
22120 if test "${QT_DIR}" != ""; then
22121 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
22122 QT_INCLUDE="-I${QT_DIR}/include"
22124 PBX_QT=1
22126 cat >>confdefs.h <<\_ACEOF
22127 #define HAVE_QT 1
22128 _ACEOF
22130 if test -n "$ac_tool_prefix"; then
22131 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
22132 set dummy ${ac_tool_prefix}moc; ac_word=$2
22133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22135 if test "${ac_cv_path_QTMOC+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 else
22138 case $QTMOC in
22139 [\\/]* | ?:[\\/]*)
22140 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
22143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22144 for as_dir in $PATH
22146 IFS=$as_save_IFS
22147 test -z "$as_dir" && as_dir=.
22148 for ac_exec_ext in '' $ac_executable_extensions; do
22149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22150 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
22151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22152 break 2
22154 done
22155 done
22156 IFS=$as_save_IFS
22159 esac
22161 QTMOC=$ac_cv_path_QTMOC
22162 if test -n "$QTMOC"; then
22163 { echo "$as_me:$LINENO: result: $QTMOC" >&5
22164 echo "${ECHO_T}$QTMOC" >&6; }
22165 else
22166 { echo "$as_me:$LINENO: result: no" >&5
22167 echo "${ECHO_T}no" >&6; }
22172 if test -z "$ac_cv_path_QTMOC"; then
22173 ac_pt_QTMOC=$QTMOC
22174 # Extract the first word of "moc", so it can be a program name with args.
22175 set dummy moc; ac_word=$2
22176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22178 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
22179 echo $ECHO_N "(cached) $ECHO_C" >&6
22180 else
22181 case $ac_pt_QTMOC in
22182 [\\/]* | ?:[\\/]*)
22183 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
22186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22187 for as_dir in $PATH
22189 IFS=$as_save_IFS
22190 test -z "$as_dir" && as_dir=.
22191 for ac_exec_ext in '' $ac_executable_extensions; do
22192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22193 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
22194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22195 break 2
22197 done
22198 done
22199 IFS=$as_save_IFS
22202 esac
22204 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
22205 if test -n "$ac_pt_QTMOC"; then
22206 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
22207 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
22208 else
22209 { echo "$as_me:$LINENO: result: no" >&5
22210 echo "${ECHO_T}no" >&6; }
22213 if test "x$ac_pt_QTMOC" = x; then
22214 QTMOC="No"
22215 else
22216 case $cross_compiling:$ac_tool_warned in
22217 yes:)
22218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22219 whose name does not start with the host triplet. If you think this
22220 configuration is useful to you, please write to autoconf@gnu.org." >&5
22221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22222 whose name does not start with the host triplet. If you think this
22223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22224 ac_tool_warned=yes ;;
22225 esac
22226 QTMOC=$ac_pt_QTMOC
22228 else
22229 QTMOC="$ac_cv_path_QTMOC"
22232 elif test ! -z "${QT_MANDATORY}";
22233 then
22234 echo "***"
22235 echo "*** The Qt installation on this system appears to be broken."
22236 echo "*** Either correct the installation, or run configure"
22237 echo "*** including --without-qt."
22238 exit 1
22242 ac_ext=c
22243 ac_cpp='$CPP $CPPFLAGS'
22244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22250 if test "${USE_RADIUS}" != "no"; then
22251 pbxlibdir=""
22252 if test "x${RADIUS_DIR}" != "x"; then
22253 if test -d ${RADIUS_DIR}/lib; then
22254 pbxlibdir="-L${RADIUS_DIR}/lib"
22255 else
22256 pbxlibdir="-L${RADIUS_DIR}"
22259 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
22260 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
22261 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22263 else
22264 ac_check_lib_save_LIBS=$LIBS
22265 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
22266 cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h. */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22273 /* Override any GCC internal prototype to avoid an error.
22274 Use char because int might match the return type of a GCC
22275 builtin and then its argument prototype would still apply. */
22276 #ifdef __cplusplus
22277 extern "C"
22278 #endif
22279 char rc_read_config ();
22281 main ()
22283 return rc_read_config ();
22285 return 0;
22287 _ACEOF
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22293 esac
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_link") 2>conftest.er1
22296 ac_status=$?
22297 grep -v '^ *+' conftest.er1 >conftest.err
22298 rm -f conftest.er1
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } &&
22302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22303 { (case "(($ac_try" in
22304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305 *) ac_try_echo=$ac_try;;
22306 esac
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308 (eval "$ac_try") 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest$ac_exeext'
22313 { (case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22316 esac
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_try") 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_lib_radiusclient_ng_rc_read_config=yes
22323 else
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 ac_cv_lib_radiusclient_ng_rc_read_config=no
22330 rm -f conftest.err conftest.$ac_objext \
22331 conftest$ac_exeext conftest.$ac_ext
22332 LIBS=$ac_check_lib_save_LIBS
22334 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
22335 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
22336 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
22337 AST_RADIUS_FOUND=yes
22338 else
22339 AST_RADIUS_FOUND=no
22343 if test "${AST_RADIUS_FOUND}" = "yes"; then
22344 RADIUS_LIB="-lradiusclient-ng "
22345 RADIUS_HEADER_FOUND="1"
22346 if test "x${RADIUS_DIR}" != "x"; then
22347 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
22348 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
22349 if test "xradiusclient-ng.h" != "x" ; then
22350 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
22351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22352 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
22353 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
22354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 ac_res=`eval echo '${'$as_ac_Header'}'`
22358 { echo "$as_me:$LINENO: result: $ac_res" >&5
22359 echo "${ECHO_T}$ac_res" >&6; }
22360 else
22361 # Is the header compilable?
22362 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
22363 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
22364 cat >conftest.$ac_ext <<_ACEOF
22365 /* confdefs.h. */
22366 _ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h. */
22370 $ac_includes_default
22371 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
22372 _ACEOF
22373 rm -f conftest.$ac_objext
22374 if { (ac_try="$ac_compile"
22375 case "(($ac_try" in
22376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377 *) ac_try_echo=$ac_try;;
22378 esac
22379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22380 (eval "$ac_compile") 2>conftest.er1
22381 ac_status=$?
22382 grep -v '^ *+' conftest.er1 >conftest.err
22383 rm -f conftest.er1
22384 cat conftest.err >&5
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); } &&
22387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22388 { (case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22391 esac
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_try") 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; } &&
22397 { ac_try='test -s conftest.$ac_objext'
22398 { (case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_try") 2>&5
22404 ac_status=$?
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22407 ac_header_compiler=yes
22408 else
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22412 ac_header_compiler=no
22415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22417 echo "${ECHO_T}$ac_header_compiler" >&6; }
22419 # Is the header present?
22420 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
22421 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
22422 cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h. */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22428 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
22429 _ACEOF
22430 if { (ac_try="$ac_cpp conftest.$ac_ext"
22431 case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22434 esac
22435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22437 ac_status=$?
22438 grep -v '^ *+' conftest.er1 >conftest.err
22439 rm -f conftest.er1
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } >/dev/null; then
22443 if test -s conftest.err; then
22444 ac_cpp_err=$ac_c_preproc_warn_flag
22445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22446 else
22447 ac_cpp_err=
22449 else
22450 ac_cpp_err=yes
22452 if test -z "$ac_cpp_err"; then
22453 ac_header_preproc=yes
22454 else
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22458 ac_header_preproc=no
22461 rm -f conftest.err conftest.$ac_ext
22462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22463 echo "${ECHO_T}$ac_header_preproc" >&6; }
22465 # So? What about this header?
22466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22467 yes:no: )
22468 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
22469 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22470 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
22471 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
22472 ac_header_preproc=yes
22474 no:yes:* )
22475 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
22476 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
22477 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
22478 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
22479 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
22480 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
22481 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
22482 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
22483 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
22484 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
22485 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
22486 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
22489 esac
22490 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
22491 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
22492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22494 else
22495 eval "$as_ac_Header=\$ac_header_preproc"
22497 ac_res=`eval echo '${'$as_ac_Header'}'`
22498 { echo "$as_me:$LINENO: result: $ac_res" >&5
22499 echo "${ECHO_T}$ac_res" >&6; }
22502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22503 RADIUS_HEADER_FOUND=1
22504 else
22505 RADIUS_HEADER_FOUND=0
22510 else
22511 if test "xradiusclient-ng.h" != "x" ; then
22512 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
22513 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
22514 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
22515 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22518 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
22519 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
22520 else
22521 # Is the header compilable?
22522 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
22523 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
22524 cat >conftest.$ac_ext <<_ACEOF
22525 /* confdefs.h. */
22526 _ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 $ac_includes_default
22531 #include <radiusclient-ng.h>
22532 _ACEOF
22533 rm -f conftest.$ac_objext
22534 if { (ac_try="$ac_compile"
22535 case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22538 esac
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540 (eval "$ac_compile") 2>conftest.er1
22541 ac_status=$?
22542 grep -v '^ *+' conftest.er1 >conftest.err
22543 rm -f conftest.er1
22544 cat conftest.err >&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } &&
22547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22548 { (case "(($ac_try" in
22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550 *) ac_try_echo=$ac_try;;
22551 esac
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553 (eval "$ac_try") 2>&5
22554 ac_status=$?
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; } &&
22557 { ac_try='test -s conftest.$ac_objext'
22558 { (case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22561 esac
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_try") 2>&5
22564 ac_status=$?
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); }; }; then
22567 ac_header_compiler=yes
22568 else
22569 echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22572 ac_header_compiler=no
22575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22577 echo "${ECHO_T}$ac_header_compiler" >&6; }
22579 # Is the header present?
22580 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
22581 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
22582 cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h. */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 #include <radiusclient-ng.h>
22589 _ACEOF
22590 if { (ac_try="$ac_cpp conftest.$ac_ext"
22591 case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22594 esac
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22597 ac_status=$?
22598 grep -v '^ *+' conftest.er1 >conftest.err
22599 rm -f conftest.er1
22600 cat conftest.err >&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } >/dev/null; then
22603 if test -s conftest.err; then
22604 ac_cpp_err=$ac_c_preproc_warn_flag
22605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22606 else
22607 ac_cpp_err=
22609 else
22610 ac_cpp_err=yes
22612 if test -z "$ac_cpp_err"; then
22613 ac_header_preproc=yes
22614 else
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22618 ac_header_preproc=no
22621 rm -f conftest.err conftest.$ac_ext
22622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22623 echo "${ECHO_T}$ac_header_preproc" >&6; }
22625 # So? What about this header?
22626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22627 yes:no: )
22628 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
22629 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22630 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
22631 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
22632 ac_header_preproc=yes
22634 no:yes:* )
22635 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
22636 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
22637 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
22638 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
22639 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
22640 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
22641 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
22642 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
22643 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
22644 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
22645 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
22646 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
22649 esac
22650 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
22651 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
22652 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
22653 echo $ECHO_N "(cached) $ECHO_C" >&6
22654 else
22655 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
22657 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
22658 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
22661 if test $ac_cv_header_radiusclient_ng_h = yes; then
22662 RADIUS_HEADER_FOUND=1
22663 else
22664 RADIUS_HEADER_FOUND=0
22670 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
22671 if test ! -z "${RADIUS_MANDATORY}" ;
22672 then
22673 echo " ***"
22674 echo " *** It appears that you do not have the radiusclient-ng development package installed."
22675 echo " *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure"
22676 echo " *** without explicitly specifying --with-${RADIUS_OPTION}"
22677 exit 1
22679 RADIUS_LIB=""
22680 RADIUS_INCLUDE=""
22681 PBX_RADIUS=0
22682 else
22683 PBX_RADIUS=1
22685 cat >>confdefs.h <<_ACEOF
22686 #define HAVE_RADIUS 1
22687 _ACEOF
22690 elif test ! -z "${RADIUS_MANDATORY}";
22691 then
22692 echo "***"
22693 echo "*** The ${RADIUS_DESCRIP} installation on this system appears to be broken."
22694 echo "*** Either correct the installation, or run configure"
22695 echo "*** without explicitly specifying --with-${RADIUS_OPTION}"
22696 exit 1
22702 if test "${USE_SPEEX}" != "no"; then
22703 pbxlibdir=""
22704 if test "x${SPEEX_DIR}" != "x"; then
22705 if test -d ${SPEEX_DIR}/lib; then
22706 pbxlibdir="-L${SPEEX_DIR}/lib"
22707 else
22708 pbxlibdir="-L${SPEEX_DIR}"
22711 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
22712 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
22713 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22715 else
22716 ac_check_lib_save_LIBS=$LIBS
22717 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
22718 cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h. */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22725 /* Override any GCC internal prototype to avoid an error.
22726 Use char because int might match the return type of a GCC
22727 builtin and then its argument prototype would still apply. */
22728 #ifdef __cplusplus
22729 extern "C"
22730 #endif
22731 char speex_encode ();
22733 main ()
22735 return speex_encode ();
22737 return 0;
22739 _ACEOF
22740 rm -f conftest.$ac_objext conftest$ac_exeext
22741 if { (ac_try="$ac_link"
22742 case "(($ac_try" in
22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22745 esac
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747 (eval "$ac_link") 2>conftest.er1
22748 ac_status=$?
22749 grep -v '^ *+' conftest.er1 >conftest.err
22750 rm -f conftest.er1
22751 cat conftest.err >&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } &&
22754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22755 { (case "(($ac_try" in
22756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22757 *) ac_try_echo=$ac_try;;
22758 esac
22759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22760 (eval "$ac_try") 2>&5
22761 ac_status=$?
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); }; } &&
22764 { ac_try='test -s conftest$ac_exeext'
22765 { (case "(($ac_try" in
22766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767 *) ac_try_echo=$ac_try;;
22768 esac
22769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22770 (eval "$ac_try") 2>&5
22771 ac_status=$?
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); }; }; then
22774 ac_cv_lib_speex_speex_encode=yes
22775 else
22776 echo "$as_me: failed program was:" >&5
22777 sed 's/^/| /' conftest.$ac_ext >&5
22779 ac_cv_lib_speex_speex_encode=no
22782 rm -f conftest.err conftest.$ac_objext \
22783 conftest$ac_exeext conftest.$ac_ext
22784 LIBS=$ac_check_lib_save_LIBS
22786 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
22787 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
22788 if test $ac_cv_lib_speex_speex_encode = yes; then
22789 AST_SPEEX_FOUND=yes
22790 else
22791 AST_SPEEX_FOUND=no
22795 if test "${AST_SPEEX_FOUND}" = "yes"; then
22796 SPEEX_LIB="-lspeex -lm"
22797 SPEEX_HEADER_FOUND="1"
22798 if test "x${SPEEX_DIR}" != "x"; then
22799 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
22800 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
22801 if test "xspeex/speex.h" != "x" ; then
22802 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
22803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22804 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
22805 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
22806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22809 ac_res=`eval echo '${'$as_ac_Header'}'`
22810 { echo "$as_me:$LINENO: result: $ac_res" >&5
22811 echo "${ECHO_T}$ac_res" >&6; }
22812 else
22813 # Is the header compilable?
22814 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
22815 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
22816 cat >conftest.$ac_ext <<_ACEOF
22817 /* confdefs.h. */
22818 _ACEOF
22819 cat confdefs.h >>conftest.$ac_ext
22820 cat >>conftest.$ac_ext <<_ACEOF
22821 /* end confdefs.h. */
22822 $ac_includes_default
22823 #include <${SPEEX_DIR}/include/speex/speex.h>
22824 _ACEOF
22825 rm -f conftest.$ac_objext
22826 if { (ac_try="$ac_compile"
22827 case "(($ac_try" in
22828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829 *) ac_try_echo=$ac_try;;
22830 esac
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_compile") 2>conftest.er1
22833 ac_status=$?
22834 grep -v '^ *+' conftest.er1 >conftest.err
22835 rm -f conftest.er1
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } &&
22839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22840 { (case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22843 esac
22844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_try") 2>&5
22846 ac_status=$?
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; } &&
22849 { ac_try='test -s conftest.$ac_objext'
22850 { (case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22853 esac
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_try") 2>&5
22856 ac_status=$?
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }; then
22859 ac_header_compiler=yes
22860 else
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22864 ac_header_compiler=no
22867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22869 echo "${ECHO_T}$ac_header_compiler" >&6; }
22871 # Is the header present?
22872 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
22873 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
22874 cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h. */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22880 #include <${SPEEX_DIR}/include/speex/speex.h>
22881 _ACEOF
22882 if { (ac_try="$ac_cpp conftest.$ac_ext"
22883 case "(($ac_try" in
22884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22886 esac
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22889 ac_status=$?
22890 grep -v '^ *+' conftest.er1 >conftest.err
22891 rm -f conftest.er1
22892 cat conftest.err >&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } >/dev/null; then
22895 if test -s conftest.err; then
22896 ac_cpp_err=$ac_c_preproc_warn_flag
22897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22898 else
22899 ac_cpp_err=
22901 else
22902 ac_cpp_err=yes
22904 if test -z "$ac_cpp_err"; then
22905 ac_header_preproc=yes
22906 else
22907 echo "$as_me: failed program was:" >&5
22908 sed 's/^/| /' conftest.$ac_ext >&5
22910 ac_header_preproc=no
22913 rm -f conftest.err conftest.$ac_ext
22914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22915 echo "${ECHO_T}$ac_header_preproc" >&6; }
22917 # So? What about this header?
22918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22919 yes:no: )
22920 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22921 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22922 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
22923 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
22924 ac_header_preproc=yes
22926 no:yes:* )
22927 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
22928 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
22929 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
22930 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
22931 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
22932 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
22933 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
22934 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
22935 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
22936 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
22937 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
22938 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
22941 esac
22942 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
22943 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
22944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22945 echo $ECHO_N "(cached) $ECHO_C" >&6
22946 else
22947 eval "$as_ac_Header=\$ac_header_preproc"
22949 ac_res=`eval echo '${'$as_ac_Header'}'`
22950 { echo "$as_me:$LINENO: result: $ac_res" >&5
22951 echo "${ECHO_T}$ac_res" >&6; }
22954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22955 SPEEX_HEADER_FOUND=1
22956 else
22957 SPEEX_HEADER_FOUND=0
22962 else
22963 if test "xspeex/speex.h" != "x" ; then
22964 if test "${ac_cv_header_speex_speex_h+set}" = set; then
22965 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
22966 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
22967 if test "${ac_cv_header_speex_speex_h+set}" = set; then
22968 echo $ECHO_N "(cached) $ECHO_C" >&6
22970 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
22971 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
22972 else
22973 # Is the header compilable?
22974 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
22975 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
22976 cat >conftest.$ac_ext <<_ACEOF
22977 /* confdefs.h. */
22978 _ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22982 $ac_includes_default
22983 #include <speex/speex.h>
22984 _ACEOF
22985 rm -f conftest.$ac_objext
22986 if { (ac_try="$ac_compile"
22987 case "(($ac_try" in
22988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989 *) ac_try_echo=$ac_try;;
22990 esac
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_compile") 2>conftest.er1
22993 ac_status=$?
22994 grep -v '^ *+' conftest.er1 >conftest.err
22995 rm -f conftest.er1
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } &&
22999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23000 { (case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23003 esac
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_try") 2>&5
23006 ac_status=$?
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); }; } &&
23009 { ac_try='test -s conftest.$ac_objext'
23010 { (case "(($ac_try" in
23011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012 *) ac_try_echo=$ac_try;;
23013 esac
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_try") 2>&5
23016 ac_status=$?
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; }; then
23019 ac_header_compiler=yes
23020 else
23021 echo "$as_me: failed program was:" >&5
23022 sed 's/^/| /' conftest.$ac_ext >&5
23024 ac_header_compiler=no
23027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23029 echo "${ECHO_T}$ac_header_compiler" >&6; }
23031 # Is the header present?
23032 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
23033 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
23034 cat >conftest.$ac_ext <<_ACEOF
23035 /* confdefs.h. */
23036 _ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23040 #include <speex/speex.h>
23041 _ACEOF
23042 if { (ac_try="$ac_cpp conftest.$ac_ext"
23043 case "(($ac_try" in
23044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23045 *) ac_try_echo=$ac_try;;
23046 esac
23047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23049 ac_status=$?
23050 grep -v '^ *+' conftest.er1 >conftest.err
23051 rm -f conftest.er1
23052 cat conftest.err >&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } >/dev/null; then
23055 if test -s conftest.err; then
23056 ac_cpp_err=$ac_c_preproc_warn_flag
23057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23058 else
23059 ac_cpp_err=
23061 else
23062 ac_cpp_err=yes
23064 if test -z "$ac_cpp_err"; then
23065 ac_header_preproc=yes
23066 else
23067 echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23070 ac_header_preproc=no
23073 rm -f conftest.err conftest.$ac_ext
23074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23075 echo "${ECHO_T}$ac_header_preproc" >&6; }
23077 # So? What about this header?
23078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23079 yes:no: )
23080 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23081 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23082 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
23083 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
23084 ac_header_preproc=yes
23086 no:yes:* )
23087 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
23088 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
23089 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
23090 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
23091 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
23092 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
23093 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
23094 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
23095 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
23096 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
23097 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
23098 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
23101 esac
23102 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
23103 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
23104 if test "${ac_cv_header_speex_speex_h+set}" = set; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 else
23107 ac_cv_header_speex_speex_h=$ac_header_preproc
23109 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
23110 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
23113 if test $ac_cv_header_speex_speex_h = yes; then
23114 SPEEX_HEADER_FOUND=1
23115 else
23116 SPEEX_HEADER_FOUND=0
23122 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
23123 if test ! -z "${SPEEX_MANDATORY}" ;
23124 then
23125 echo " ***"
23126 echo " *** It appears that you do not have the speex development package installed."
23127 echo " *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure"
23128 echo " *** without explicitly specifying --with-${SPEEX_OPTION}"
23129 exit 1
23131 SPEEX_LIB=""
23132 SPEEX_INCLUDE=""
23133 PBX_SPEEX=0
23134 else
23135 PBX_SPEEX=1
23137 cat >>confdefs.h <<_ACEOF
23138 #define HAVE_SPEEX 1
23139 _ACEOF
23142 elif test ! -z "${SPEEX_MANDATORY}";
23143 then
23144 echo "***"
23145 echo "*** The ${SPEEX_DESCRIP} installation on this system appears to be broken."
23146 echo "*** Either correct the installation, or run configure"
23147 echo "*** without explicitly specifying --with-${SPEEX_OPTION}"
23148 exit 1
23154 if test "${USE_SQLITE}" != "no"; then
23155 pbxlibdir=""
23156 if test "x${SQLITE_DIR}" != "x"; then
23157 if test -d ${SQLITE_DIR}/lib; then
23158 pbxlibdir="-L${SQLITE_DIR}/lib"
23159 else
23160 pbxlibdir="-L${SQLITE_DIR}"
23163 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
23164 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
23165 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
23166 echo $ECHO_N "(cached) $ECHO_C" >&6
23167 else
23168 ac_check_lib_save_LIBS=$LIBS
23169 LIBS="-lsqlite ${pbxlibdir} $LIBS"
23170 cat >conftest.$ac_ext <<_ACEOF
23171 /* confdefs.h. */
23172 _ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h. */
23177 /* Override any GCC internal prototype to avoid an error.
23178 Use char because int might match the return type of a GCC
23179 builtin and then its argument prototype would still apply. */
23180 #ifdef __cplusplus
23181 extern "C"
23182 #endif
23183 char sqlite_exec ();
23185 main ()
23187 return sqlite_exec ();
23189 return 0;
23191 _ACEOF
23192 rm -f conftest.$ac_objext conftest$ac_exeext
23193 if { (ac_try="$ac_link"
23194 case "(($ac_try" in
23195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196 *) ac_try_echo=$ac_try;;
23197 esac
23198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23199 (eval "$ac_link") 2>conftest.er1
23200 ac_status=$?
23201 grep -v '^ *+' conftest.er1 >conftest.err
23202 rm -f conftest.er1
23203 cat conftest.err >&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } &&
23206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23207 { (case "(($ac_try" in
23208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209 *) ac_try_echo=$ac_try;;
23210 esac
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212 (eval "$ac_try") 2>&5
23213 ac_status=$?
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); }; } &&
23216 { ac_try='test -s conftest$ac_exeext'
23217 { (case "(($ac_try" in
23218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219 *) ac_try_echo=$ac_try;;
23220 esac
23221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23222 (eval "$ac_try") 2>&5
23223 ac_status=$?
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; }; then
23226 ac_cv_lib_sqlite_sqlite_exec=yes
23227 else
23228 echo "$as_me: failed program was:" >&5
23229 sed 's/^/| /' conftest.$ac_ext >&5
23231 ac_cv_lib_sqlite_sqlite_exec=no
23234 rm -f conftest.err conftest.$ac_objext \
23235 conftest$ac_exeext conftest.$ac_ext
23236 LIBS=$ac_check_lib_save_LIBS
23238 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
23239 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
23240 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
23241 AST_SQLITE_FOUND=yes
23242 else
23243 AST_SQLITE_FOUND=no
23247 if test "${AST_SQLITE_FOUND}" = "yes"; then
23248 SQLITE_LIB="-lsqlite "
23249 SQLITE_HEADER_FOUND="1"
23250 if test "x${SQLITE_DIR}" != "x"; then
23251 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
23252 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
23253 if test "xsqlite.h" != "x" ; then
23254 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
23255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23256 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
23257 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
23258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23259 echo $ECHO_N "(cached) $ECHO_C" >&6
23261 ac_res=`eval echo '${'$as_ac_Header'}'`
23262 { echo "$as_me:$LINENO: result: $ac_res" >&5
23263 echo "${ECHO_T}$ac_res" >&6; }
23264 else
23265 # Is the header compilable?
23266 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
23267 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
23268 cat >conftest.$ac_ext <<_ACEOF
23269 /* confdefs.h. */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 $ac_includes_default
23275 #include <${SQLITE_DIR}/include/sqlite.h>
23276 _ACEOF
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23282 esac
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284 (eval "$ac_compile") 2>conftest.er1
23285 ac_status=$?
23286 grep -v '^ *+' conftest.er1 >conftest.err
23287 rm -f conftest.er1
23288 cat conftest.err >&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } &&
23291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23292 { (case "(($ac_try" in
23293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294 *) ac_try_echo=$ac_try;;
23295 esac
23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297 (eval "$ac_try") 2>&5
23298 ac_status=$?
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); }; } &&
23301 { ac_try='test -s conftest.$ac_objext'
23302 { (case "(($ac_try" in
23303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23304 *) ac_try_echo=$ac_try;;
23305 esac
23306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23307 (eval "$ac_try") 2>&5
23308 ac_status=$?
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); }; }; then
23311 ac_header_compiler=yes
23312 else
23313 echo "$as_me: failed program was:" >&5
23314 sed 's/^/| /' conftest.$ac_ext >&5
23316 ac_header_compiler=no
23319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23321 echo "${ECHO_T}$ac_header_compiler" >&6; }
23323 # Is the header present?
23324 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
23325 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
23326 cat >conftest.$ac_ext <<_ACEOF
23327 /* confdefs.h. */
23328 _ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23332 #include <${SQLITE_DIR}/include/sqlite.h>
23333 _ACEOF
23334 if { (ac_try="$ac_cpp conftest.$ac_ext"
23335 case "(($ac_try" in
23336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23337 *) ac_try_echo=$ac_try;;
23338 esac
23339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23341 ac_status=$?
23342 grep -v '^ *+' conftest.er1 >conftest.err
23343 rm -f conftest.er1
23344 cat conftest.err >&5
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } >/dev/null; then
23347 if test -s conftest.err; then
23348 ac_cpp_err=$ac_c_preproc_warn_flag
23349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23350 else
23351 ac_cpp_err=
23353 else
23354 ac_cpp_err=yes
23356 if test -z "$ac_cpp_err"; then
23357 ac_header_preproc=yes
23358 else
23359 echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23362 ac_header_preproc=no
23365 rm -f conftest.err conftest.$ac_ext
23366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23367 echo "${ECHO_T}$ac_header_preproc" >&6; }
23369 # So? What about this header?
23370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23371 yes:no: )
23372 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
23373 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23374 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
23375 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
23376 ac_header_preproc=yes
23378 no:yes:* )
23379 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
23380 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
23381 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
23382 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
23383 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
23384 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
23385 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
23386 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
23387 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
23388 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
23389 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
23390 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
23393 esac
23394 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
23395 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
23396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23397 echo $ECHO_N "(cached) $ECHO_C" >&6
23398 else
23399 eval "$as_ac_Header=\$ac_header_preproc"
23401 ac_res=`eval echo '${'$as_ac_Header'}'`
23402 { echo "$as_me:$LINENO: result: $ac_res" >&5
23403 echo "${ECHO_T}$ac_res" >&6; }
23406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23407 SQLITE_HEADER_FOUND=1
23408 else
23409 SQLITE_HEADER_FOUND=0
23414 else
23415 if test "xsqlite.h" != "x" ; then
23416 if test "${ac_cv_header_sqlite_h+set}" = set; then
23417 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
23418 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
23419 if test "${ac_cv_header_sqlite_h+set}" = set; then
23420 echo $ECHO_N "(cached) $ECHO_C" >&6
23422 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
23423 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
23424 else
23425 # Is the header compilable?
23426 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
23427 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
23428 cat >conftest.$ac_ext <<_ACEOF
23429 /* confdefs.h. */
23430 _ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h. */
23434 $ac_includes_default
23435 #include <sqlite.h>
23436 _ACEOF
23437 rm -f conftest.$ac_objext
23438 if { (ac_try="$ac_compile"
23439 case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23442 esac
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_compile") 2>conftest.er1
23445 ac_status=$?
23446 grep -v '^ *+' conftest.er1 >conftest.err
23447 rm -f conftest.er1
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } &&
23451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23452 { (case "(($ac_try" in
23453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23454 *) ac_try_echo=$ac_try;;
23455 esac
23456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23457 (eval "$ac_try") 2>&5
23458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } &&
23461 { ac_try='test -s conftest.$ac_objext'
23462 { (case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23465 esac
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_try") 2>&5
23468 ac_status=$?
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 ac_header_compiler=yes
23472 else
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 ac_header_compiler=no
23479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23481 echo "${ECHO_T}$ac_header_compiler" >&6; }
23483 # Is the header present?
23484 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
23485 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
23486 cat >conftest.$ac_ext <<_ACEOF
23487 /* confdefs.h. */
23488 _ACEOF
23489 cat confdefs.h >>conftest.$ac_ext
23490 cat >>conftest.$ac_ext <<_ACEOF
23491 /* end confdefs.h. */
23492 #include <sqlite.h>
23493 _ACEOF
23494 if { (ac_try="$ac_cpp conftest.$ac_ext"
23495 case "(($ac_try" in
23496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497 *) ac_try_echo=$ac_try;;
23498 esac
23499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23501 ac_status=$?
23502 grep -v '^ *+' conftest.er1 >conftest.err
23503 rm -f conftest.er1
23504 cat conftest.err >&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } >/dev/null; then
23507 if test -s conftest.err; then
23508 ac_cpp_err=$ac_c_preproc_warn_flag
23509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23510 else
23511 ac_cpp_err=
23513 else
23514 ac_cpp_err=yes
23516 if test -z "$ac_cpp_err"; then
23517 ac_header_preproc=yes
23518 else
23519 echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23522 ac_header_preproc=no
23525 rm -f conftest.err conftest.$ac_ext
23526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23527 echo "${ECHO_T}$ac_header_preproc" >&6; }
23529 # So? What about this header?
23530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23531 yes:no: )
23532 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
23533 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23534 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
23535 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
23536 ac_header_preproc=yes
23538 no:yes:* )
23539 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
23540 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
23541 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
23542 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
23543 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
23544 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
23545 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
23546 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
23547 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
23548 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
23549 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
23550 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
23553 esac
23554 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
23555 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
23556 if test "${ac_cv_header_sqlite_h+set}" = set; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23558 else
23559 ac_cv_header_sqlite_h=$ac_header_preproc
23561 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
23562 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
23565 if test $ac_cv_header_sqlite_h = yes; then
23566 SQLITE_HEADER_FOUND=1
23567 else
23568 SQLITE_HEADER_FOUND=0
23574 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
23575 if test ! -z "${SQLITE_MANDATORY}" ;
23576 then
23577 echo " ***"
23578 echo " *** It appears that you do not have the sqlite development package installed."
23579 echo " *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure"
23580 echo " *** without explicitly specifying --with-${SQLITE_OPTION}"
23581 exit 1
23583 SQLITE_LIB=""
23584 SQLITE_INCLUDE=""
23585 PBX_SQLITE=0
23586 else
23587 PBX_SQLITE=1
23589 cat >>confdefs.h <<_ACEOF
23590 #define HAVE_SQLITE 1
23591 _ACEOF
23594 elif test ! -z "${SQLITE_MANDATORY}";
23595 then
23596 echo "***"
23597 echo "*** The ${SQLITE_DESCRIP} installation on this system appears to be broken."
23598 echo "*** Either correct the installation, or run configure"
23599 echo "*** without explicitly specifying --with-${SQLITE_OPTION}"
23600 exit 1
23606 if test "${USE_OPENSSL}" != "no"; then
23607 pbxlibdir=""
23608 if test "x${OPENSSL_DIR}" != "x"; then
23609 if test -d ${OPENSSL_DIR}/lib; then
23610 pbxlibdir="-L${OPENSSL_DIR}/lib"
23611 else
23612 pbxlibdir="-L${OPENSSL_DIR}"
23615 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
23616 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
23617 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
23618 echo $ECHO_N "(cached) $ECHO_C" >&6
23619 else
23620 ac_check_lib_save_LIBS=$LIBS
23621 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
23622 cat >conftest.$ac_ext <<_ACEOF
23623 /* confdefs.h. */
23624 _ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h. */
23629 /* Override any GCC internal prototype to avoid an error.
23630 Use char because int might match the return type of a GCC
23631 builtin and then its argument prototype would still apply. */
23632 #ifdef __cplusplus
23633 extern "C"
23634 #endif
23635 char ssl2_connect ();
23637 main ()
23639 return ssl2_connect ();
23641 return 0;
23643 _ACEOF
23644 rm -f conftest.$ac_objext conftest$ac_exeext
23645 if { (ac_try="$ac_link"
23646 case "(($ac_try" in
23647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23648 *) ac_try_echo=$ac_try;;
23649 esac
23650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23651 (eval "$ac_link") 2>conftest.er1
23652 ac_status=$?
23653 grep -v '^ *+' conftest.er1 >conftest.err
23654 rm -f conftest.er1
23655 cat conftest.err >&5
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); } &&
23658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23659 { (case "(($ac_try" in
23660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23661 *) ac_try_echo=$ac_try;;
23662 esac
23663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23664 (eval "$ac_try") 2>&5
23665 ac_status=$?
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); }; } &&
23668 { ac_try='test -s conftest$ac_exeext'
23669 { (case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23672 esac
23673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23674 (eval "$ac_try") 2>&5
23675 ac_status=$?
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); }; }; then
23678 ac_cv_lib_ssl_ssl2_connect=yes
23679 else
23680 echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.$ac_ext >&5
23683 ac_cv_lib_ssl_ssl2_connect=no
23686 rm -f conftest.err conftest.$ac_objext \
23687 conftest$ac_exeext conftest.$ac_ext
23688 LIBS=$ac_check_lib_save_LIBS
23690 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
23691 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
23692 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
23693 AST_OPENSSL_FOUND=yes
23694 else
23695 AST_OPENSSL_FOUND=no
23699 if test "${AST_OPENSSL_FOUND}" = "yes"; then
23700 OPENSSL_LIB="-lssl -lcrypto"
23701 OPENSSL_HEADER_FOUND="1"
23702 if test "x${OPENSSL_DIR}" != "x"; then
23703 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
23704 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
23705 if test "xopenssl/ssl.h" != "x" ; then
23706 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
23707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23708 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
23709 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
23710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23711 echo $ECHO_N "(cached) $ECHO_C" >&6
23713 ac_res=`eval echo '${'$as_ac_Header'}'`
23714 { echo "$as_me:$LINENO: result: $ac_res" >&5
23715 echo "${ECHO_T}$ac_res" >&6; }
23716 else
23717 # Is the header compilable?
23718 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
23719 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
23720 cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h. */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h. */
23726 $ac_includes_default
23727 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
23728 _ACEOF
23729 rm -f conftest.$ac_objext
23730 if { (ac_try="$ac_compile"
23731 case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23734 esac
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736 (eval "$ac_compile") 2>conftest.er1
23737 ac_status=$?
23738 grep -v '^ *+' conftest.er1 >conftest.err
23739 rm -f conftest.er1
23740 cat conftest.err >&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } &&
23743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23744 { (case "(($ac_try" in
23745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746 *) ac_try_echo=$ac_try;;
23747 esac
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749 (eval "$ac_try") 2>&5
23750 ac_status=$?
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); }; } &&
23753 { ac_try='test -s conftest.$ac_objext'
23754 { (case "(($ac_try" in
23755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23756 *) ac_try_echo=$ac_try;;
23757 esac
23758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23759 (eval "$ac_try") 2>&5
23760 ac_status=$?
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); }; }; then
23763 ac_header_compiler=yes
23764 else
23765 echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23768 ac_header_compiler=no
23771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23773 echo "${ECHO_T}$ac_header_compiler" >&6; }
23775 # Is the header present?
23776 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
23777 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
23778 cat >conftest.$ac_ext <<_ACEOF
23779 /* confdefs.h. */
23780 _ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h. */
23784 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
23785 _ACEOF
23786 if { (ac_try="$ac_cpp conftest.$ac_ext"
23787 case "(($ac_try" in
23788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23789 *) ac_try_echo=$ac_try;;
23790 esac
23791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23793 ac_status=$?
23794 grep -v '^ *+' conftest.er1 >conftest.err
23795 rm -f conftest.er1
23796 cat conftest.err >&5
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); } >/dev/null; then
23799 if test -s conftest.err; then
23800 ac_cpp_err=$ac_c_preproc_warn_flag
23801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23802 else
23803 ac_cpp_err=
23805 else
23806 ac_cpp_err=yes
23808 if test -z "$ac_cpp_err"; then
23809 ac_header_preproc=yes
23810 else
23811 echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23814 ac_header_preproc=no
23817 rm -f conftest.err conftest.$ac_ext
23818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23819 echo "${ECHO_T}$ac_header_preproc" >&6; }
23821 # So? What about this header?
23822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23823 yes:no: )
23824 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23825 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23826 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
23827 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
23828 ac_header_preproc=yes
23830 no:yes:* )
23831 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
23832 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
23833 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
23834 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
23835 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
23836 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
23837 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
23838 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
23839 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
23840 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
23841 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
23842 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
23845 esac
23846 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
23847 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
23848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23849 echo $ECHO_N "(cached) $ECHO_C" >&6
23850 else
23851 eval "$as_ac_Header=\$ac_header_preproc"
23853 ac_res=`eval echo '${'$as_ac_Header'}'`
23854 { echo "$as_me:$LINENO: result: $ac_res" >&5
23855 echo "${ECHO_T}$ac_res" >&6; }
23858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23859 OPENSSL_HEADER_FOUND=1
23860 else
23861 OPENSSL_HEADER_FOUND=0
23866 else
23867 if test "xopenssl/ssl.h" != "x" ; then
23868 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
23869 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
23870 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
23871 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23874 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
23875 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
23876 else
23877 # Is the header compilable?
23878 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
23879 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
23880 cat >conftest.$ac_ext <<_ACEOF
23881 /* confdefs.h. */
23882 _ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h. */
23886 $ac_includes_default
23887 #include <openssl/ssl.h>
23888 _ACEOF
23889 rm -f conftest.$ac_objext
23890 if { (ac_try="$ac_compile"
23891 case "(($ac_try" in
23892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23893 *) ac_try_echo=$ac_try;;
23894 esac
23895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23896 (eval "$ac_compile") 2>conftest.er1
23897 ac_status=$?
23898 grep -v '^ *+' conftest.er1 >conftest.err
23899 rm -f conftest.er1
23900 cat conftest.err >&5
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); } &&
23903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23904 { (case "(($ac_try" in
23905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23906 *) ac_try_echo=$ac_try;;
23907 esac
23908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23909 (eval "$ac_try") 2>&5
23910 ac_status=$?
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; } &&
23913 { ac_try='test -s conftest.$ac_objext'
23914 { (case "(($ac_try" in
23915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916 *) ac_try_echo=$ac_try;;
23917 esac
23918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919 (eval "$ac_try") 2>&5
23920 ac_status=$?
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); }; }; then
23923 ac_header_compiler=yes
23924 else
23925 echo "$as_me: failed program was:" >&5
23926 sed 's/^/| /' conftest.$ac_ext >&5
23928 ac_header_compiler=no
23931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23933 echo "${ECHO_T}$ac_header_compiler" >&6; }
23935 # Is the header present?
23936 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
23937 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
23938 cat >conftest.$ac_ext <<_ACEOF
23939 /* confdefs.h. */
23940 _ACEOF
23941 cat confdefs.h >>conftest.$ac_ext
23942 cat >>conftest.$ac_ext <<_ACEOF
23943 /* end confdefs.h. */
23944 #include <openssl/ssl.h>
23945 _ACEOF
23946 if { (ac_try="$ac_cpp conftest.$ac_ext"
23947 case "(($ac_try" in
23948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23949 *) ac_try_echo=$ac_try;;
23950 esac
23951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23953 ac_status=$?
23954 grep -v '^ *+' conftest.er1 >conftest.err
23955 rm -f conftest.er1
23956 cat conftest.err >&5
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); } >/dev/null; then
23959 if test -s conftest.err; then
23960 ac_cpp_err=$ac_c_preproc_warn_flag
23961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23962 else
23963 ac_cpp_err=
23965 else
23966 ac_cpp_err=yes
23968 if test -z "$ac_cpp_err"; then
23969 ac_header_preproc=yes
23970 else
23971 echo "$as_me: failed program was:" >&5
23972 sed 's/^/| /' conftest.$ac_ext >&5
23974 ac_header_preproc=no
23977 rm -f conftest.err conftest.$ac_ext
23978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23979 echo "${ECHO_T}$ac_header_preproc" >&6; }
23981 # So? What about this header?
23982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23983 yes:no: )
23984 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23985 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23986 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
23987 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
23988 ac_header_preproc=yes
23990 no:yes:* )
23991 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
23992 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
23993 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
23994 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
23995 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
23996 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
23997 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
23998 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
23999 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
24000 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
24001 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
24002 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
24005 esac
24006 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
24007 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
24008 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
24009 echo $ECHO_N "(cached) $ECHO_C" >&6
24010 else
24011 ac_cv_header_openssl_ssl_h=$ac_header_preproc
24013 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
24014 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
24017 if test $ac_cv_header_openssl_ssl_h = yes; then
24018 OPENSSL_HEADER_FOUND=1
24019 else
24020 OPENSSL_HEADER_FOUND=0
24026 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
24027 if test ! -z "${OPENSSL_MANDATORY}" ;
24028 then
24029 echo " ***"
24030 echo " *** It appears that you do not have the ssl development package installed."
24031 echo " *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure"
24032 echo " *** without explicitly specifying --with-${OPENSSL_OPTION}"
24033 exit 1
24035 OPENSSL_LIB=""
24036 OPENSSL_INCLUDE=""
24037 PBX_OPENSSL=0
24038 else
24039 PBX_OPENSSL=1
24041 cat >>confdefs.h <<_ACEOF
24042 #define HAVE_OPENSSL 1
24043 _ACEOF
24046 elif test ! -z "${OPENSSL_MANDATORY}";
24047 then
24048 echo "***"
24049 echo "*** The ${OPENSSL_DESCRIP} installation on this system appears to be broken."
24050 echo "*** Either correct the installation, or run configure"
24051 echo "*** without explicitly specifying --with-${OPENSSL_OPTION}"
24052 exit 1
24058 if test "${USE_FREETDS}" != "no"; then
24059 pbxlibdir=""
24060 if test "x${FREETDS_DIR}" != "x"; then
24061 if test -d ${FREETDS_DIR}/lib; then
24062 pbxlibdir="-L${FREETDS_DIR}/lib"
24063 else
24064 pbxlibdir="-L${FREETDS_DIR}"
24067 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
24068 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
24069 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24071 else
24072 ac_check_lib_save_LIBS=$LIBS
24073 LIBS="-ltds ${pbxlibdir} $LIBS"
24074 cat >conftest.$ac_ext <<_ACEOF
24075 /* confdefs.h. */
24076 _ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h. */
24081 /* Override any GCC internal prototype to avoid an error.
24082 Use char because int might match the return type of a GCC
24083 builtin and then its argument prototype would still apply. */
24084 #ifdef __cplusplus
24085 extern "C"
24086 #endif
24087 char tds_version ();
24089 main ()
24091 return tds_version ();
24093 return 0;
24095 _ACEOF
24096 rm -f conftest.$ac_objext conftest$ac_exeext
24097 if { (ac_try="$ac_link"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24101 esac
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_link") 2>conftest.er1
24104 ac_status=$?
24105 grep -v '^ *+' conftest.er1 >conftest.err
24106 rm -f conftest.er1
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } &&
24110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24111 { (case "(($ac_try" in
24112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24113 *) ac_try_echo=$ac_try;;
24114 esac
24115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24116 (eval "$ac_try") 2>&5
24117 ac_status=$?
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); }; } &&
24120 { ac_try='test -s conftest$ac_exeext'
24121 { (case "(($ac_try" in
24122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123 *) ac_try_echo=$ac_try;;
24124 esac
24125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24126 (eval "$ac_try") 2>&5
24127 ac_status=$?
24128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); }; }; then
24130 ac_cv_lib_tds_tds_version=yes
24131 else
24132 echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.$ac_ext >&5
24135 ac_cv_lib_tds_tds_version=no
24138 rm -f conftest.err conftest.$ac_objext \
24139 conftest$ac_exeext conftest.$ac_ext
24140 LIBS=$ac_check_lib_save_LIBS
24142 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
24143 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
24144 if test $ac_cv_lib_tds_tds_version = yes; then
24145 AST_FREETDS_FOUND=yes
24146 else
24147 AST_FREETDS_FOUND=no
24151 if test "${AST_FREETDS_FOUND}" = "yes"; then
24152 FREETDS_LIB="-ltds "
24153 FREETDS_HEADER_FOUND="1"
24154 if test "x${FREETDS_DIR}" != "x"; then
24155 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
24156 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
24157 if test "xtds.h" != "x" ; then
24158 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
24159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24160 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
24161 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
24162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24163 echo $ECHO_N "(cached) $ECHO_C" >&6
24165 ac_res=`eval echo '${'$as_ac_Header'}'`
24166 { echo "$as_me:$LINENO: result: $ac_res" >&5
24167 echo "${ECHO_T}$ac_res" >&6; }
24168 else
24169 # Is the header compilable?
24170 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
24171 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
24172 cat >conftest.$ac_ext <<_ACEOF
24173 /* confdefs.h. */
24174 _ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h. */
24178 $ac_includes_default
24179 #include <${FREETDS_DIR}/include/tds.h>
24180 _ACEOF
24181 rm -f conftest.$ac_objext
24182 if { (ac_try="$ac_compile"
24183 case "(($ac_try" in
24184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185 *) ac_try_echo=$ac_try;;
24186 esac
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188 (eval "$ac_compile") 2>conftest.er1
24189 ac_status=$?
24190 grep -v '^ *+' conftest.er1 >conftest.err
24191 rm -f conftest.er1
24192 cat conftest.err >&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } &&
24195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24196 { (case "(($ac_try" in
24197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24198 *) ac_try_echo=$ac_try;;
24199 esac
24200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24201 (eval "$ac_try") 2>&5
24202 ac_status=$?
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); }; } &&
24205 { ac_try='test -s conftest.$ac_objext'
24206 { (case "(($ac_try" in
24207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24208 *) ac_try_echo=$ac_try;;
24209 esac
24210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24211 (eval "$ac_try") 2>&5
24212 ac_status=$?
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); }; }; then
24215 ac_header_compiler=yes
24216 else
24217 echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24220 ac_header_compiler=no
24223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24225 echo "${ECHO_T}$ac_header_compiler" >&6; }
24227 # Is the header present?
24228 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
24229 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
24230 cat >conftest.$ac_ext <<_ACEOF
24231 /* confdefs.h. */
24232 _ACEOF
24233 cat confdefs.h >>conftest.$ac_ext
24234 cat >>conftest.$ac_ext <<_ACEOF
24235 /* end confdefs.h. */
24236 #include <${FREETDS_DIR}/include/tds.h>
24237 _ACEOF
24238 if { (ac_try="$ac_cpp conftest.$ac_ext"
24239 case "(($ac_try" in
24240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24241 *) ac_try_echo=$ac_try;;
24242 esac
24243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24245 ac_status=$?
24246 grep -v '^ *+' conftest.er1 >conftest.err
24247 rm -f conftest.er1
24248 cat conftest.err >&5
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); } >/dev/null; then
24251 if test -s conftest.err; then
24252 ac_cpp_err=$ac_c_preproc_warn_flag
24253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24254 else
24255 ac_cpp_err=
24257 else
24258 ac_cpp_err=yes
24260 if test -z "$ac_cpp_err"; then
24261 ac_header_preproc=yes
24262 else
24263 echo "$as_me: failed program was:" >&5
24264 sed 's/^/| /' conftest.$ac_ext >&5
24266 ac_header_preproc=no
24269 rm -f conftest.err conftest.$ac_ext
24270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24271 echo "${ECHO_T}$ac_header_preproc" >&6; }
24273 # So? What about this header?
24274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24275 yes:no: )
24276 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
24277 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24278 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
24279 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
24280 ac_header_preproc=yes
24282 no:yes:* )
24283 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
24284 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
24285 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
24286 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
24287 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
24288 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
24289 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
24290 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
24291 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
24292 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
24293 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
24294 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
24297 esac
24298 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
24299 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
24300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24301 echo $ECHO_N "(cached) $ECHO_C" >&6
24302 else
24303 eval "$as_ac_Header=\$ac_header_preproc"
24305 ac_res=`eval echo '${'$as_ac_Header'}'`
24306 { echo "$as_me:$LINENO: result: $ac_res" >&5
24307 echo "${ECHO_T}$ac_res" >&6; }
24310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24311 FREETDS_HEADER_FOUND=1
24312 else
24313 FREETDS_HEADER_FOUND=0
24318 else
24319 if test "xtds.h" != "x" ; then
24320 if test "${ac_cv_header_tds_h+set}" = set; then
24321 { echo "$as_me:$LINENO: checking for tds.h" >&5
24322 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
24323 if test "${ac_cv_header_tds_h+set}" = set; then
24324 echo $ECHO_N "(cached) $ECHO_C" >&6
24326 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
24327 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
24328 else
24329 # Is the header compilable?
24330 { echo "$as_me:$LINENO: checking tds.h usability" >&5
24331 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
24332 cat >conftest.$ac_ext <<_ACEOF
24333 /* confdefs.h. */
24334 _ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24338 $ac_includes_default
24339 #include <tds.h>
24340 _ACEOF
24341 rm -f conftest.$ac_objext
24342 if { (ac_try="$ac_compile"
24343 case "(($ac_try" in
24344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345 *) ac_try_echo=$ac_try;;
24346 esac
24347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24348 (eval "$ac_compile") 2>conftest.er1
24349 ac_status=$?
24350 grep -v '^ *+' conftest.er1 >conftest.err
24351 rm -f conftest.er1
24352 cat conftest.err >&5
24353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354 (exit $ac_status); } &&
24355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24356 { (case "(($ac_try" in
24357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24358 *) ac_try_echo=$ac_try;;
24359 esac
24360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24361 (eval "$ac_try") 2>&5
24362 ac_status=$?
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; } &&
24365 { ac_try='test -s conftest.$ac_objext'
24366 { (case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24369 esac
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371 (eval "$ac_try") 2>&5
24372 ac_status=$?
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); }; }; then
24375 ac_header_compiler=yes
24376 else
24377 echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 ac_header_compiler=no
24383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24385 echo "${ECHO_T}$ac_header_compiler" >&6; }
24387 # Is the header present?
24388 { echo "$as_me:$LINENO: checking tds.h presence" >&5
24389 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
24390 cat >conftest.$ac_ext <<_ACEOF
24391 /* confdefs.h. */
24392 _ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h. */
24396 #include <tds.h>
24397 _ACEOF
24398 if { (ac_try="$ac_cpp conftest.$ac_ext"
24399 case "(($ac_try" in
24400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401 *) ac_try_echo=$ac_try;;
24402 esac
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24405 ac_status=$?
24406 grep -v '^ *+' conftest.er1 >conftest.err
24407 rm -f conftest.er1
24408 cat conftest.err >&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } >/dev/null; then
24411 if test -s conftest.err; then
24412 ac_cpp_err=$ac_c_preproc_warn_flag
24413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24414 else
24415 ac_cpp_err=
24417 else
24418 ac_cpp_err=yes
24420 if test -z "$ac_cpp_err"; then
24421 ac_header_preproc=yes
24422 else
24423 echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.$ac_ext >&5
24426 ac_header_preproc=no
24429 rm -f conftest.err conftest.$ac_ext
24430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24431 echo "${ECHO_T}$ac_header_preproc" >&6; }
24433 # So? What about this header?
24434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24435 yes:no: )
24436 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
24437 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24438 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
24439 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
24440 ac_header_preproc=yes
24442 no:yes:* )
24443 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
24444 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
24445 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
24446 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
24447 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
24448 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
24449 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
24450 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
24451 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
24452 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
24453 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
24454 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
24457 esac
24458 { echo "$as_me:$LINENO: checking for tds.h" >&5
24459 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
24460 if test "${ac_cv_header_tds_h+set}" = set; then
24461 echo $ECHO_N "(cached) $ECHO_C" >&6
24462 else
24463 ac_cv_header_tds_h=$ac_header_preproc
24465 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
24466 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
24469 if test $ac_cv_header_tds_h = yes; then
24470 FREETDS_HEADER_FOUND=1
24471 else
24472 FREETDS_HEADER_FOUND=0
24478 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
24479 if test ! -z "${FREETDS_MANDATORY}" ;
24480 then
24481 echo " ***"
24482 echo " *** It appears that you do not have the tds development package installed."
24483 echo " *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure"
24484 echo " *** without explicitly specifying --with-${FREETDS_OPTION}"
24485 exit 1
24487 FREETDS_LIB=""
24488 FREETDS_INCLUDE=""
24489 PBX_FREETDS=0
24490 else
24491 PBX_FREETDS=1
24493 cat >>confdefs.h <<_ACEOF
24494 #define HAVE_FREETDS 1
24495 _ACEOF
24498 elif test ! -z "${FREETDS_MANDATORY}";
24499 then
24500 echo "***"
24501 echo "*** The ${FREETDS_DESCRIP} installation on this system appears to be broken."
24502 echo "*** Either correct the installation, or run configure"
24503 echo "*** without explicitly specifying --with-${FREETDS_OPTION}"
24504 exit 1
24508 if test "${PBX_FREETDS}" != "0";
24509 then
24510 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
24511 *0.63*)
24512 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
24514 *0.62*)
24515 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
24518 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
24520 esac
24524 if test "${USE_TERMCAP}" != "no"; then
24525 pbxlibdir=""
24526 if test "x${TERMCAP_DIR}" != "x"; then
24527 if test -d ${TERMCAP_DIR}/lib; then
24528 pbxlibdir="-L${TERMCAP_DIR}/lib"
24529 else
24530 pbxlibdir="-L${TERMCAP_DIR}"
24533 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24534 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24535 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24536 echo $ECHO_N "(cached) $ECHO_C" >&6
24537 else
24538 ac_check_lib_save_LIBS=$LIBS
24539 LIBS="-ltermcap ${pbxlibdir} $LIBS"
24540 cat >conftest.$ac_ext <<_ACEOF
24541 /* confdefs.h. */
24542 _ACEOF
24543 cat confdefs.h >>conftest.$ac_ext
24544 cat >>conftest.$ac_ext <<_ACEOF
24545 /* end confdefs.h. */
24547 /* Override any GCC internal prototype to avoid an error.
24548 Use char because int might match the return type of a GCC
24549 builtin and then its argument prototype would still apply. */
24550 #ifdef __cplusplus
24551 extern "C"
24552 #endif
24553 char tgetent ();
24555 main ()
24557 return tgetent ();
24559 return 0;
24561 _ACEOF
24562 rm -f conftest.$ac_objext conftest$ac_exeext
24563 if { (ac_try="$ac_link"
24564 case "(($ac_try" in
24565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566 *) ac_try_echo=$ac_try;;
24567 esac
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569 (eval "$ac_link") 2>conftest.er1
24570 ac_status=$?
24571 grep -v '^ *+' conftest.er1 >conftest.err
24572 rm -f conftest.er1
24573 cat conftest.err >&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } &&
24576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24577 { (case "(($ac_try" in
24578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579 *) ac_try_echo=$ac_try;;
24580 esac
24581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582 (eval "$ac_try") 2>&5
24583 ac_status=$?
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); }; } &&
24586 { ac_try='test -s conftest$ac_exeext'
24587 { (case "(($ac_try" in
24588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589 *) ac_try_echo=$ac_try;;
24590 esac
24591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592 (eval "$ac_try") 2>&5
24593 ac_status=$?
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; }; then
24596 ac_cv_lib_termcap_tgetent=yes
24597 else
24598 echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24601 ac_cv_lib_termcap_tgetent=no
24604 rm -f conftest.err conftest.$ac_objext \
24605 conftest$ac_exeext conftest.$ac_ext
24606 LIBS=$ac_check_lib_save_LIBS
24608 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24609 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24610 if test $ac_cv_lib_termcap_tgetent = yes; then
24611 AST_TERMCAP_FOUND=yes
24612 else
24613 AST_TERMCAP_FOUND=no
24617 if test "${AST_TERMCAP_FOUND}" = "yes"; then
24618 TERMCAP_LIB="-ltermcap "
24619 TERMCAP_HEADER_FOUND="1"
24620 if test "x${TERMCAP_DIR}" != "x"; then
24621 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
24622 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
24623 if test "x" != "x" ; then
24624 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
24625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24626 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
24627 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
24628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24631 ac_res=`eval echo '${'$as_ac_Header'}'`
24632 { echo "$as_me:$LINENO: result: $ac_res" >&5
24633 echo "${ECHO_T}$ac_res" >&6; }
24634 else
24635 # Is the header compilable?
24636 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
24637 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
24638 cat >conftest.$ac_ext <<_ACEOF
24639 /* confdefs.h. */
24640 _ACEOF
24641 cat confdefs.h >>conftest.$ac_ext
24642 cat >>conftest.$ac_ext <<_ACEOF
24643 /* end confdefs.h. */
24644 $ac_includes_default
24645 #include <${TERMCAP_DIR}/include/>
24646 _ACEOF
24647 rm -f conftest.$ac_objext
24648 if { (ac_try="$ac_compile"
24649 case "(($ac_try" in
24650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24651 *) ac_try_echo=$ac_try;;
24652 esac
24653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24654 (eval "$ac_compile") 2>conftest.er1
24655 ac_status=$?
24656 grep -v '^ *+' conftest.er1 >conftest.err
24657 rm -f conftest.er1
24658 cat conftest.err >&5
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); } &&
24661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24662 { (case "(($ac_try" in
24663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24664 *) ac_try_echo=$ac_try;;
24665 esac
24666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24667 (eval "$ac_try") 2>&5
24668 ac_status=$?
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; } &&
24671 { ac_try='test -s conftest.$ac_objext'
24672 { (case "(($ac_try" in
24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24675 esac
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_try") 2>&5
24678 ac_status=$?
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); }; }; then
24681 ac_header_compiler=yes
24682 else
24683 echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24686 ac_header_compiler=no
24689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24691 echo "${ECHO_T}$ac_header_compiler" >&6; }
24693 # Is the header present?
24694 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
24695 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
24696 cat >conftest.$ac_ext <<_ACEOF
24697 /* confdefs.h. */
24698 _ACEOF
24699 cat confdefs.h >>conftest.$ac_ext
24700 cat >>conftest.$ac_ext <<_ACEOF
24701 /* end confdefs.h. */
24702 #include <${TERMCAP_DIR}/include/>
24703 _ACEOF
24704 if { (ac_try="$ac_cpp conftest.$ac_ext"
24705 case "(($ac_try" in
24706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24707 *) ac_try_echo=$ac_try;;
24708 esac
24709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24711 ac_status=$?
24712 grep -v '^ *+' conftest.er1 >conftest.err
24713 rm -f conftest.er1
24714 cat conftest.err >&5
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); } >/dev/null; then
24717 if test -s conftest.err; then
24718 ac_cpp_err=$ac_c_preproc_warn_flag
24719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24720 else
24721 ac_cpp_err=
24723 else
24724 ac_cpp_err=yes
24726 if test -z "$ac_cpp_err"; then
24727 ac_header_preproc=yes
24728 else
24729 echo "$as_me: failed program was:" >&5
24730 sed 's/^/| /' conftest.$ac_ext >&5
24732 ac_header_preproc=no
24735 rm -f conftest.err conftest.$ac_ext
24736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24737 echo "${ECHO_T}$ac_header_preproc" >&6; }
24739 # So? What about this header?
24740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24741 yes:no: )
24742 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
24743 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
24744 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
24745 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
24746 ac_header_preproc=yes
24748 no:yes:* )
24749 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
24750 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
24752 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
24753 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
24754 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
24755 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
24756 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
24757 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
24758 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
24759 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
24760 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
24763 esac
24764 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
24765 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
24766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24767 echo $ECHO_N "(cached) $ECHO_C" >&6
24768 else
24769 eval "$as_ac_Header=\$ac_header_preproc"
24771 ac_res=`eval echo '${'$as_ac_Header'}'`
24772 { echo "$as_me:$LINENO: result: $ac_res" >&5
24773 echo "${ECHO_T}$ac_res" >&6; }
24776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24777 TERMCAP_HEADER_FOUND=1
24778 else
24779 TERMCAP_HEADER_FOUND=0
24784 else
24785 if test "x" != "x" ; then
24786 if test "${ac_cv_header_+set}" = set; then
24787 { echo "$as_me:$LINENO: checking for " >&5
24788 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24789 if test "${ac_cv_header_+set}" = set; then
24790 echo $ECHO_N "(cached) $ECHO_C" >&6
24792 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24793 echo "${ECHO_T}$ac_cv_header_" >&6; }
24794 else
24795 # Is the header compilable?
24796 { echo "$as_me:$LINENO: checking usability" >&5
24797 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24798 cat >conftest.$ac_ext <<_ACEOF
24799 /* confdefs.h. */
24800 _ACEOF
24801 cat confdefs.h >>conftest.$ac_ext
24802 cat >>conftest.$ac_ext <<_ACEOF
24803 /* end confdefs.h. */
24804 $ac_includes_default
24805 #include <>
24806 _ACEOF
24807 rm -f conftest.$ac_objext
24808 if { (ac_try="$ac_compile"
24809 case "(($ac_try" in
24810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811 *) ac_try_echo=$ac_try;;
24812 esac
24813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24814 (eval "$ac_compile") 2>conftest.er1
24815 ac_status=$?
24816 grep -v '^ *+' conftest.er1 >conftest.err
24817 rm -f conftest.er1
24818 cat conftest.err >&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); } &&
24821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24822 { (case "(($ac_try" in
24823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824 *) ac_try_echo=$ac_try;;
24825 esac
24826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24827 (eval "$ac_try") 2>&5
24828 ac_status=$?
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); }; } &&
24831 { ac_try='test -s conftest.$ac_objext'
24832 { (case "(($ac_try" in
24833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24834 *) ac_try_echo=$ac_try;;
24835 esac
24836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24837 (eval "$ac_try") 2>&5
24838 ac_status=$?
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); }; }; then
24841 ac_header_compiler=yes
24842 else
24843 echo "$as_me: failed program was:" >&5
24844 sed 's/^/| /' conftest.$ac_ext >&5
24846 ac_header_compiler=no
24849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24851 echo "${ECHO_T}$ac_header_compiler" >&6; }
24853 # Is the header present?
24854 { echo "$as_me:$LINENO: checking presence" >&5
24855 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24856 cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h. */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h. */
24862 #include <>
24863 _ACEOF
24864 if { (ac_try="$ac_cpp conftest.$ac_ext"
24865 case "(($ac_try" in
24866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867 *) ac_try_echo=$ac_try;;
24868 esac
24869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24871 ac_status=$?
24872 grep -v '^ *+' conftest.er1 >conftest.err
24873 rm -f conftest.er1
24874 cat conftest.err >&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } >/dev/null; then
24877 if test -s conftest.err; then
24878 ac_cpp_err=$ac_c_preproc_warn_flag
24879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24880 else
24881 ac_cpp_err=
24883 else
24884 ac_cpp_err=yes
24886 if test -z "$ac_cpp_err"; then
24887 ac_header_preproc=yes
24888 else
24889 echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24892 ac_header_preproc=no
24895 rm -f conftest.err conftest.$ac_ext
24896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24897 echo "${ECHO_T}$ac_header_preproc" >&6; }
24899 # So? What about this header?
24900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24901 yes:no: )
24902 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24903 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24904 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24905 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24906 ac_header_preproc=yes
24908 no:yes:* )
24909 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24910 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24911 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24912 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24913 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24914 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24915 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24916 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24917 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24918 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24919 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24920 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24923 esac
24924 { echo "$as_me:$LINENO: checking for " >&5
24925 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24926 if test "${ac_cv_header_+set}" = set; then
24927 echo $ECHO_N "(cached) $ECHO_C" >&6
24928 else
24929 ac_cv_header_=$ac_header_preproc
24931 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24932 echo "${ECHO_T}$ac_cv_header_" >&6; }
24935 if test $ac_cv_header_ = yes; then
24936 TERMCAP_HEADER_FOUND=1
24937 else
24938 TERMCAP_HEADER_FOUND=0
24944 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
24945 if test ! -z "${TERMCAP_MANDATORY}" ;
24946 then
24947 echo " ***"
24948 echo " *** It appears that you do not have the termcap development package installed."
24949 echo " *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure"
24950 echo " *** without explicitly specifying --with-${TERMCAP_OPTION}"
24951 exit 1
24953 TERMCAP_LIB=""
24954 TERMCAP_INCLUDE=""
24955 PBX_TERMCAP=0
24956 else
24957 PBX_TERMCAP=1
24959 cat >>confdefs.h <<_ACEOF
24960 #define HAVE_TERMCAP 1
24961 _ACEOF
24964 elif test ! -z "${TERMCAP_MANDATORY}";
24965 then
24966 echo "***"
24967 echo "*** The ${TERMCAP_DESCRIP} installation on this system appears to be broken."
24968 echo "*** Either correct the installation, or run configure"
24969 echo "*** without explicitly specifying --with-${TERMCAP_OPTION}"
24970 exit 1
24976 if test "${USE_TINFO}" != "no"; then
24977 pbxlibdir=""
24978 if test "x${TINFO_DIR}" != "x"; then
24979 if test -d ${TINFO_DIR}/lib; then
24980 pbxlibdir="-L${TINFO_DIR}/lib"
24981 else
24982 pbxlibdir="-L${TINFO_DIR}"
24985 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
24986 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
24987 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
24988 echo $ECHO_N "(cached) $ECHO_C" >&6
24989 else
24990 ac_check_lib_save_LIBS=$LIBS
24991 LIBS="-ltinfo ${pbxlibdir} $LIBS"
24992 cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h. */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24999 /* Override any GCC internal prototype to avoid an error.
25000 Use char because int might match the return type of a GCC
25001 builtin and then its argument prototype would still apply. */
25002 #ifdef __cplusplus
25003 extern "C"
25004 #endif
25005 char tgetent ();
25007 main ()
25009 return tgetent ();
25011 return 0;
25013 _ACEOF
25014 rm -f conftest.$ac_objext conftest$ac_exeext
25015 if { (ac_try="$ac_link"
25016 case "(($ac_try" in
25017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25018 *) ac_try_echo=$ac_try;;
25019 esac
25020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25021 (eval "$ac_link") 2>conftest.er1
25022 ac_status=$?
25023 grep -v '^ *+' conftest.er1 >conftest.err
25024 rm -f conftest.er1
25025 cat conftest.err >&5
25026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027 (exit $ac_status); } &&
25028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25029 { (case "(($ac_try" in
25030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25031 *) ac_try_echo=$ac_try;;
25032 esac
25033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25034 (eval "$ac_try") 2>&5
25035 ac_status=$?
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); }; } &&
25038 { ac_try='test -s conftest$ac_exeext'
25039 { (case "(($ac_try" in
25040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25041 *) ac_try_echo=$ac_try;;
25042 esac
25043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25044 (eval "$ac_try") 2>&5
25045 ac_status=$?
25046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); }; }; then
25048 ac_cv_lib_tinfo_tgetent=yes
25049 else
25050 echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25053 ac_cv_lib_tinfo_tgetent=no
25056 rm -f conftest.err conftest.$ac_objext \
25057 conftest$ac_exeext conftest.$ac_ext
25058 LIBS=$ac_check_lib_save_LIBS
25060 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
25061 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
25062 if test $ac_cv_lib_tinfo_tgetent = yes; then
25063 AST_TINFO_FOUND=yes
25064 else
25065 AST_TINFO_FOUND=no
25069 if test "${AST_TINFO_FOUND}" = "yes"; then
25070 TINFO_LIB="-ltinfo "
25071 TINFO_HEADER_FOUND="1"
25072 if test "x${TINFO_DIR}" != "x"; then
25073 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
25074 TINFO_INCLUDE="-I${TINFO_DIR}/include"
25075 if test "x" != "x" ; then
25076 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
25077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25078 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
25079 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
25080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25081 echo $ECHO_N "(cached) $ECHO_C" >&6
25083 ac_res=`eval echo '${'$as_ac_Header'}'`
25084 { echo "$as_me:$LINENO: result: $ac_res" >&5
25085 echo "${ECHO_T}$ac_res" >&6; }
25086 else
25087 # Is the header compilable?
25088 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
25089 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
25090 cat >conftest.$ac_ext <<_ACEOF
25091 /* confdefs.h. */
25092 _ACEOF
25093 cat confdefs.h >>conftest.$ac_ext
25094 cat >>conftest.$ac_ext <<_ACEOF
25095 /* end confdefs.h. */
25096 $ac_includes_default
25097 #include <${TINFO_DIR}/include/>
25098 _ACEOF
25099 rm -f conftest.$ac_objext
25100 if { (ac_try="$ac_compile"
25101 case "(($ac_try" in
25102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25103 *) ac_try_echo=$ac_try;;
25104 esac
25105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25106 (eval "$ac_compile") 2>conftest.er1
25107 ac_status=$?
25108 grep -v '^ *+' conftest.er1 >conftest.err
25109 rm -f conftest.er1
25110 cat conftest.err >&5
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } &&
25113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25114 { (case "(($ac_try" in
25115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25116 *) ac_try_echo=$ac_try;;
25117 esac
25118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25119 (eval "$ac_try") 2>&5
25120 ac_status=$?
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); }; } &&
25123 { ac_try='test -s conftest.$ac_objext'
25124 { (case "(($ac_try" in
25125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25126 *) ac_try_echo=$ac_try;;
25127 esac
25128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25129 (eval "$ac_try") 2>&5
25130 ac_status=$?
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); }; }; then
25133 ac_header_compiler=yes
25134 else
25135 echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25138 ac_header_compiler=no
25141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25143 echo "${ECHO_T}$ac_header_compiler" >&6; }
25145 # Is the header present?
25146 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
25147 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
25148 cat >conftest.$ac_ext <<_ACEOF
25149 /* confdefs.h. */
25150 _ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h. */
25154 #include <${TINFO_DIR}/include/>
25155 _ACEOF
25156 if { (ac_try="$ac_cpp conftest.$ac_ext"
25157 case "(($ac_try" in
25158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159 *) ac_try_echo=$ac_try;;
25160 esac
25161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25163 ac_status=$?
25164 grep -v '^ *+' conftest.er1 >conftest.err
25165 rm -f conftest.er1
25166 cat conftest.err >&5
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); } >/dev/null; then
25169 if test -s conftest.err; then
25170 ac_cpp_err=$ac_c_preproc_warn_flag
25171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25172 else
25173 ac_cpp_err=
25175 else
25176 ac_cpp_err=yes
25178 if test -z "$ac_cpp_err"; then
25179 ac_header_preproc=yes
25180 else
25181 echo "$as_me: failed program was:" >&5
25182 sed 's/^/| /' conftest.$ac_ext >&5
25184 ac_header_preproc=no
25187 rm -f conftest.err conftest.$ac_ext
25188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25189 echo "${ECHO_T}$ac_header_preproc" >&6; }
25191 # So? What about this header?
25192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25193 yes:no: )
25194 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
25195 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
25196 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
25197 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
25198 ac_header_preproc=yes
25200 no:yes:* )
25201 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
25202 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
25203 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
25204 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
25205 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
25206 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
25207 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
25208 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
25209 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
25210 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
25211 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
25212 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
25215 esac
25216 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
25217 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
25218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25219 echo $ECHO_N "(cached) $ECHO_C" >&6
25220 else
25221 eval "$as_ac_Header=\$ac_header_preproc"
25223 ac_res=`eval echo '${'$as_ac_Header'}'`
25224 { echo "$as_me:$LINENO: result: $ac_res" >&5
25225 echo "${ECHO_T}$ac_res" >&6; }
25228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25229 TINFO_HEADER_FOUND=1
25230 else
25231 TINFO_HEADER_FOUND=0
25236 else
25237 if test "x" != "x" ; then
25238 if test "${ac_cv_header_+set}" = set; then
25239 { echo "$as_me:$LINENO: checking for " >&5
25240 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25241 if test "${ac_cv_header_+set}" = set; then
25242 echo $ECHO_N "(cached) $ECHO_C" >&6
25244 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25245 echo "${ECHO_T}$ac_cv_header_" >&6; }
25246 else
25247 # Is the header compilable?
25248 { echo "$as_me:$LINENO: checking usability" >&5
25249 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25250 cat >conftest.$ac_ext <<_ACEOF
25251 /* confdefs.h. */
25252 _ACEOF
25253 cat confdefs.h >>conftest.$ac_ext
25254 cat >>conftest.$ac_ext <<_ACEOF
25255 /* end confdefs.h. */
25256 $ac_includes_default
25257 #include <>
25258 _ACEOF
25259 rm -f conftest.$ac_objext
25260 if { (ac_try="$ac_compile"
25261 case "(($ac_try" in
25262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25263 *) ac_try_echo=$ac_try;;
25264 esac
25265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25266 (eval "$ac_compile") 2>conftest.er1
25267 ac_status=$?
25268 grep -v '^ *+' conftest.er1 >conftest.err
25269 rm -f conftest.er1
25270 cat conftest.err >&5
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); } &&
25273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25274 { (case "(($ac_try" in
25275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25276 *) ac_try_echo=$ac_try;;
25277 esac
25278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25279 (eval "$ac_try") 2>&5
25280 ac_status=$?
25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); }; } &&
25283 { ac_try='test -s conftest.$ac_objext'
25284 { (case "(($ac_try" in
25285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25286 *) ac_try_echo=$ac_try;;
25287 esac
25288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25289 (eval "$ac_try") 2>&5
25290 ac_status=$?
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; }; then
25293 ac_header_compiler=yes
25294 else
25295 echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25298 ac_header_compiler=no
25301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25303 echo "${ECHO_T}$ac_header_compiler" >&6; }
25305 # Is the header present?
25306 { echo "$as_me:$LINENO: checking presence" >&5
25307 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25308 cat >conftest.$ac_ext <<_ACEOF
25309 /* confdefs.h. */
25310 _ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h. */
25314 #include <>
25315 _ACEOF
25316 if { (ac_try="$ac_cpp conftest.$ac_ext"
25317 case "(($ac_try" in
25318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319 *) ac_try_echo=$ac_try;;
25320 esac
25321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25323 ac_status=$?
25324 grep -v '^ *+' conftest.er1 >conftest.err
25325 rm -f conftest.er1
25326 cat conftest.err >&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } >/dev/null; then
25329 if test -s conftest.err; then
25330 ac_cpp_err=$ac_c_preproc_warn_flag
25331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25332 else
25333 ac_cpp_err=
25335 else
25336 ac_cpp_err=yes
25338 if test -z "$ac_cpp_err"; then
25339 ac_header_preproc=yes
25340 else
25341 echo "$as_me: failed program was:" >&5
25342 sed 's/^/| /' conftest.$ac_ext >&5
25344 ac_header_preproc=no
25347 rm -f conftest.err conftest.$ac_ext
25348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25349 echo "${ECHO_T}$ac_header_preproc" >&6; }
25351 # So? What about this header?
25352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25353 yes:no: )
25354 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25355 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25356 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25357 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25358 ac_header_preproc=yes
25360 no:yes:* )
25361 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25362 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25363 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25364 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25365 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25366 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25367 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25368 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25369 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25370 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25371 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25372 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25375 esac
25376 { echo "$as_me:$LINENO: checking for " >&5
25377 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25378 if test "${ac_cv_header_+set}" = set; then
25379 echo $ECHO_N "(cached) $ECHO_C" >&6
25380 else
25381 ac_cv_header_=$ac_header_preproc
25383 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25384 echo "${ECHO_T}$ac_cv_header_" >&6; }
25387 if test $ac_cv_header_ = yes; then
25388 TINFO_HEADER_FOUND=1
25389 else
25390 TINFO_HEADER_FOUND=0
25396 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
25397 if test ! -z "${TINFO_MANDATORY}" ;
25398 then
25399 echo " ***"
25400 echo " *** It appears that you do not have the tinfo development package installed."
25401 echo " *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure"
25402 echo " *** without explicitly specifying --with-${TINFO_OPTION}"
25403 exit 1
25405 TINFO_LIB=""
25406 TINFO_INCLUDE=""
25407 PBX_TINFO=0
25408 else
25409 PBX_TINFO=1
25411 cat >>confdefs.h <<_ACEOF
25412 #define HAVE_TINFO 1
25413 _ACEOF
25416 elif test ! -z "${TINFO_MANDATORY}";
25417 then
25418 echo "***"
25419 echo "*** The ${TINFO_DESCRIP} installation on this system appears to be broken."
25420 echo "*** Either correct the installation, or run configure"
25421 echo "*** without explicitly specifying --with-${TINFO_OPTION}"
25422 exit 1
25427 if test "${PBX_OSTYPE}" != "Linux" ; then
25428 tonezone_extra="-lm"
25432 if test "${USE_TONEZONE}" != "no"; then
25433 pbxlibdir=""
25434 if test "x${TONEZONE_DIR}" != "x"; then
25435 if test -d ${TONEZONE_DIR}/lib; then
25436 pbxlibdir="-L${TONEZONE_DIR}/lib"
25437 else
25438 pbxlibdir="-L${TONEZONE_DIR}"
25441 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
25442 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
25443 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
25444 echo $ECHO_N "(cached) $ECHO_C" >&6
25445 else
25446 ac_check_lib_save_LIBS=$LIBS
25447 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
25448 cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h. */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25455 /* Override any GCC internal prototype to avoid an error.
25456 Use char because int might match the return type of a GCC
25457 builtin and then its argument prototype would still apply. */
25458 #ifdef __cplusplus
25459 extern "C"
25460 #endif
25461 char tone_zone_find ();
25463 main ()
25465 return tone_zone_find ();
25467 return 0;
25469 _ACEOF
25470 rm -f conftest.$ac_objext conftest$ac_exeext
25471 if { (ac_try="$ac_link"
25472 case "(($ac_try" in
25473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25474 *) ac_try_echo=$ac_try;;
25475 esac
25476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25477 (eval "$ac_link") 2>conftest.er1
25478 ac_status=$?
25479 grep -v '^ *+' conftest.er1 >conftest.err
25480 rm -f conftest.er1
25481 cat conftest.err >&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); } &&
25484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25485 { (case "(($ac_try" in
25486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25487 *) ac_try_echo=$ac_try;;
25488 esac
25489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25490 (eval "$ac_try") 2>&5
25491 ac_status=$?
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); }; } &&
25494 { ac_try='test -s conftest$ac_exeext'
25495 { (case "(($ac_try" in
25496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25497 *) ac_try_echo=$ac_try;;
25498 esac
25499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25500 (eval "$ac_try") 2>&5
25501 ac_status=$?
25502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); }; }; then
25504 ac_cv_lib_tonezone_tone_zone_find=yes
25505 else
25506 echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25509 ac_cv_lib_tonezone_tone_zone_find=no
25512 rm -f conftest.err conftest.$ac_objext \
25513 conftest$ac_exeext conftest.$ac_ext
25514 LIBS=$ac_check_lib_save_LIBS
25516 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
25517 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
25518 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
25519 AST_TONEZONE_FOUND=yes
25520 else
25521 AST_TONEZONE_FOUND=no
25525 if test "${AST_TONEZONE_FOUND}" = "yes"; then
25526 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
25527 TONEZONE_HEADER_FOUND="1"
25528 if test "x${TONEZONE_DIR}" != "x"; then
25529 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
25530 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
25531 if test "xzaptel/tonezone.h" != "x" ; then
25532 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
25533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25534 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
25535 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
25536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25537 echo $ECHO_N "(cached) $ECHO_C" >&6
25539 ac_res=`eval echo '${'$as_ac_Header'}'`
25540 { echo "$as_me:$LINENO: result: $ac_res" >&5
25541 echo "${ECHO_T}$ac_res" >&6; }
25542 else
25543 # Is the header compilable?
25544 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
25545 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
25546 cat >conftest.$ac_ext <<_ACEOF
25547 /* confdefs.h. */
25548 _ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h. */
25552 $ac_includes_default
25553 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
25554 _ACEOF
25555 rm -f conftest.$ac_objext
25556 if { (ac_try="$ac_compile"
25557 case "(($ac_try" in
25558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25559 *) ac_try_echo=$ac_try;;
25560 esac
25561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25562 (eval "$ac_compile") 2>conftest.er1
25563 ac_status=$?
25564 grep -v '^ *+' conftest.er1 >conftest.err
25565 rm -f conftest.er1
25566 cat conftest.err >&5
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } &&
25569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25570 { (case "(($ac_try" in
25571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25572 *) ac_try_echo=$ac_try;;
25573 esac
25574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25575 (eval "$ac_try") 2>&5
25576 ac_status=$?
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); }; } &&
25579 { ac_try='test -s conftest.$ac_objext'
25580 { (case "(($ac_try" in
25581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25582 *) ac_try_echo=$ac_try;;
25583 esac
25584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25585 (eval "$ac_try") 2>&5
25586 ac_status=$?
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; }; then
25589 ac_header_compiler=yes
25590 else
25591 echo "$as_me: failed program was:" >&5
25592 sed 's/^/| /' conftest.$ac_ext >&5
25594 ac_header_compiler=no
25597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25599 echo "${ECHO_T}$ac_header_compiler" >&6; }
25601 # Is the header present?
25602 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
25603 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
25604 cat >conftest.$ac_ext <<_ACEOF
25605 /* confdefs.h. */
25606 _ACEOF
25607 cat confdefs.h >>conftest.$ac_ext
25608 cat >>conftest.$ac_ext <<_ACEOF
25609 /* end confdefs.h. */
25610 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
25611 _ACEOF
25612 if { (ac_try="$ac_cpp conftest.$ac_ext"
25613 case "(($ac_try" in
25614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615 *) ac_try_echo=$ac_try;;
25616 esac
25617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25619 ac_status=$?
25620 grep -v '^ *+' conftest.er1 >conftest.err
25621 rm -f conftest.er1
25622 cat conftest.err >&5
25623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624 (exit $ac_status); } >/dev/null; then
25625 if test -s conftest.err; then
25626 ac_cpp_err=$ac_c_preproc_warn_flag
25627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25628 else
25629 ac_cpp_err=
25631 else
25632 ac_cpp_err=yes
25634 if test -z "$ac_cpp_err"; then
25635 ac_header_preproc=yes
25636 else
25637 echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25640 ac_header_preproc=no
25643 rm -f conftest.err conftest.$ac_ext
25644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25645 echo "${ECHO_T}$ac_header_preproc" >&6; }
25647 # So? What about this header?
25648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25649 yes:no: )
25650 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
25651 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25652 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
25653 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
25654 ac_header_preproc=yes
25656 no:yes:* )
25657 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
25658 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
25659 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
25660 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
25661 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
25662 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
25663 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
25664 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
25665 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
25666 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
25667 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
25668 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
25671 esac
25672 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
25673 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
25674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25675 echo $ECHO_N "(cached) $ECHO_C" >&6
25676 else
25677 eval "$as_ac_Header=\$ac_header_preproc"
25679 ac_res=`eval echo '${'$as_ac_Header'}'`
25680 { echo "$as_me:$LINENO: result: $ac_res" >&5
25681 echo "${ECHO_T}$ac_res" >&6; }
25684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25685 TONEZONE_HEADER_FOUND=1
25686 else
25687 TONEZONE_HEADER_FOUND=0
25692 else
25693 if test "xzaptel/tonezone.h" != "x" ; then
25694 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
25695 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
25696 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
25697 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
25698 echo $ECHO_N "(cached) $ECHO_C" >&6
25700 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
25701 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
25702 else
25703 # Is the header compilable?
25704 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
25705 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
25706 cat >conftest.$ac_ext <<_ACEOF
25707 /* confdefs.h. */
25708 _ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h. */
25712 $ac_includes_default
25713 #include <zaptel/tonezone.h>
25714 _ACEOF
25715 rm -f conftest.$ac_objext
25716 if { (ac_try="$ac_compile"
25717 case "(($ac_try" in
25718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25719 *) ac_try_echo=$ac_try;;
25720 esac
25721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25722 (eval "$ac_compile") 2>conftest.er1
25723 ac_status=$?
25724 grep -v '^ *+' conftest.er1 >conftest.err
25725 rm -f conftest.er1
25726 cat conftest.err >&5
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); } &&
25729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25730 { (case "(($ac_try" in
25731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25732 *) ac_try_echo=$ac_try;;
25733 esac
25734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25735 (eval "$ac_try") 2>&5
25736 ac_status=$?
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); }; } &&
25739 { ac_try='test -s conftest.$ac_objext'
25740 { (case "(($ac_try" in
25741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25742 *) ac_try_echo=$ac_try;;
25743 esac
25744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25745 (eval "$ac_try") 2>&5
25746 ac_status=$?
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; }; then
25749 ac_header_compiler=yes
25750 else
25751 echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25754 ac_header_compiler=no
25757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25759 echo "${ECHO_T}$ac_header_compiler" >&6; }
25761 # Is the header present?
25762 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
25763 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
25764 cat >conftest.$ac_ext <<_ACEOF
25765 /* confdefs.h. */
25766 _ACEOF
25767 cat confdefs.h >>conftest.$ac_ext
25768 cat >>conftest.$ac_ext <<_ACEOF
25769 /* end confdefs.h. */
25770 #include <zaptel/tonezone.h>
25771 _ACEOF
25772 if { (ac_try="$ac_cpp conftest.$ac_ext"
25773 case "(($ac_try" in
25774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25775 *) ac_try_echo=$ac_try;;
25776 esac
25777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25779 ac_status=$?
25780 grep -v '^ *+' conftest.er1 >conftest.err
25781 rm -f conftest.er1
25782 cat conftest.err >&5
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); } >/dev/null; then
25785 if test -s conftest.err; then
25786 ac_cpp_err=$ac_c_preproc_warn_flag
25787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25788 else
25789 ac_cpp_err=
25791 else
25792 ac_cpp_err=yes
25794 if test -z "$ac_cpp_err"; then
25795 ac_header_preproc=yes
25796 else
25797 echo "$as_me: failed program was:" >&5
25798 sed 's/^/| /' conftest.$ac_ext >&5
25800 ac_header_preproc=no
25803 rm -f conftest.err conftest.$ac_ext
25804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25805 echo "${ECHO_T}$ac_header_preproc" >&6; }
25807 # So? What about this header?
25808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25809 yes:no: )
25810 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
25811 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25812 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
25813 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
25814 ac_header_preproc=yes
25816 no:yes:* )
25817 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
25818 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
25819 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
25820 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
25821 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
25822 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
25823 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
25824 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
25825 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
25826 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
25827 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
25828 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
25831 esac
25832 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
25833 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
25834 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25836 else
25837 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
25839 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
25840 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
25843 if test $ac_cv_header_zaptel_tonezone_h = yes; then
25844 TONEZONE_HEADER_FOUND=1
25845 else
25846 TONEZONE_HEADER_FOUND=0
25852 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
25853 if test ! -z "${TONEZONE_MANDATORY}" ;
25854 then
25855 echo " ***"
25856 echo " *** It appears that you do not have the tonezone development package installed."
25857 echo " *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure"
25858 echo " *** without explicitly specifying --with-${TONEZONE_OPTION}"
25859 exit 1
25861 TONEZONE_LIB=""
25862 TONEZONE_INCLUDE=""
25863 PBX_TONEZONE=0
25864 else
25865 PBX_TONEZONE=1
25867 cat >>confdefs.h <<_ACEOF
25868 #define HAVE_TONEZONE 1
25869 _ACEOF
25872 elif test ! -z "${TONEZONE_MANDATORY}";
25873 then
25874 echo "***"
25875 echo "*** The ${TONEZONE_DESCRIP} installation on this system appears to be broken."
25876 echo "*** Either correct the installation, or run configure"
25877 echo "*** without explicitly specifying --with-${TONEZONE_OPTION}"
25878 exit 1
25884 if test "${USE_VORBIS}" != "no"; then
25885 pbxlibdir=""
25886 if test "x${VORBIS_DIR}" != "x"; then
25887 if test -d ${VORBIS_DIR}/lib; then
25888 pbxlibdir="-L${VORBIS_DIR}/lib"
25889 else
25890 pbxlibdir="-L${VORBIS_DIR}"
25893 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
25894 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
25895 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
25896 echo $ECHO_N "(cached) $ECHO_C" >&6
25897 else
25898 ac_check_lib_save_LIBS=$LIBS
25899 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
25900 cat >conftest.$ac_ext <<_ACEOF
25901 /* confdefs.h. */
25902 _ACEOF
25903 cat confdefs.h >>conftest.$ac_ext
25904 cat >>conftest.$ac_ext <<_ACEOF
25905 /* end confdefs.h. */
25907 /* Override any GCC internal prototype to avoid an error.
25908 Use char because int might match the return type of a GCC
25909 builtin and then its argument prototype would still apply. */
25910 #ifdef __cplusplus
25911 extern "C"
25912 #endif
25913 char vorbis_info_init ();
25915 main ()
25917 return vorbis_info_init ();
25919 return 0;
25921 _ACEOF
25922 rm -f conftest.$ac_objext conftest$ac_exeext
25923 if { (ac_try="$ac_link"
25924 case "(($ac_try" in
25925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25926 *) ac_try_echo=$ac_try;;
25927 esac
25928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25929 (eval "$ac_link") 2>conftest.er1
25930 ac_status=$?
25931 grep -v '^ *+' conftest.er1 >conftest.err
25932 rm -f conftest.er1
25933 cat conftest.err >&5
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); } &&
25936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25937 { (case "(($ac_try" in
25938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25939 *) ac_try_echo=$ac_try;;
25940 esac
25941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25942 (eval "$ac_try") 2>&5
25943 ac_status=$?
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); }; } &&
25946 { ac_try='test -s conftest$ac_exeext'
25947 { (case "(($ac_try" in
25948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25949 *) ac_try_echo=$ac_try;;
25950 esac
25951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25952 (eval "$ac_try") 2>&5
25953 ac_status=$?
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); }; }; then
25956 ac_cv_lib_vorbis_vorbis_info_init=yes
25957 else
25958 echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25961 ac_cv_lib_vorbis_vorbis_info_init=no
25964 rm -f conftest.err conftest.$ac_objext \
25965 conftest$ac_exeext conftest.$ac_ext
25966 LIBS=$ac_check_lib_save_LIBS
25968 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
25969 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
25970 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
25971 AST_VORBIS_FOUND=yes
25972 else
25973 AST_VORBIS_FOUND=no
25977 if test "${AST_VORBIS_FOUND}" = "yes"; then
25978 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
25979 VORBIS_HEADER_FOUND="1"
25980 if test "x${VORBIS_DIR}" != "x"; then
25981 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
25982 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
25983 if test "xvorbis/codec.h" != "x" ; then
25984 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
25985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25986 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
25987 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
25988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25991 ac_res=`eval echo '${'$as_ac_Header'}'`
25992 { echo "$as_me:$LINENO: result: $ac_res" >&5
25993 echo "${ECHO_T}$ac_res" >&6; }
25994 else
25995 # Is the header compilable?
25996 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
25997 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
25998 cat >conftest.$ac_ext <<_ACEOF
25999 /* confdefs.h. */
26000 _ACEOF
26001 cat confdefs.h >>conftest.$ac_ext
26002 cat >>conftest.$ac_ext <<_ACEOF
26003 /* end confdefs.h. */
26004 $ac_includes_default
26005 #include <${VORBIS_DIR}/include/vorbis/codec.h>
26006 _ACEOF
26007 rm -f conftest.$ac_objext
26008 if { (ac_try="$ac_compile"
26009 case "(($ac_try" in
26010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26011 *) ac_try_echo=$ac_try;;
26012 esac
26013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26014 (eval "$ac_compile") 2>conftest.er1
26015 ac_status=$?
26016 grep -v '^ *+' conftest.er1 >conftest.err
26017 rm -f conftest.er1
26018 cat conftest.err >&5
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); } &&
26021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26022 { (case "(($ac_try" in
26023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024 *) ac_try_echo=$ac_try;;
26025 esac
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027 (eval "$ac_try") 2>&5
26028 ac_status=$?
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; } &&
26031 { ac_try='test -s conftest.$ac_objext'
26032 { (case "(($ac_try" in
26033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26034 *) ac_try_echo=$ac_try;;
26035 esac
26036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26037 (eval "$ac_try") 2>&5
26038 ac_status=$?
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; }; then
26041 ac_header_compiler=yes
26042 else
26043 echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26046 ac_header_compiler=no
26049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26051 echo "${ECHO_T}$ac_header_compiler" >&6; }
26053 # Is the header present?
26054 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
26055 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
26056 cat >conftest.$ac_ext <<_ACEOF
26057 /* confdefs.h. */
26058 _ACEOF
26059 cat confdefs.h >>conftest.$ac_ext
26060 cat >>conftest.$ac_ext <<_ACEOF
26061 /* end confdefs.h. */
26062 #include <${VORBIS_DIR}/include/vorbis/codec.h>
26063 _ACEOF
26064 if { (ac_try="$ac_cpp conftest.$ac_ext"
26065 case "(($ac_try" in
26066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067 *) ac_try_echo=$ac_try;;
26068 esac
26069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26071 ac_status=$?
26072 grep -v '^ *+' conftest.er1 >conftest.err
26073 rm -f conftest.er1
26074 cat conftest.err >&5
26075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076 (exit $ac_status); } >/dev/null; then
26077 if test -s conftest.err; then
26078 ac_cpp_err=$ac_c_preproc_warn_flag
26079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26080 else
26081 ac_cpp_err=
26083 else
26084 ac_cpp_err=yes
26086 if test -z "$ac_cpp_err"; then
26087 ac_header_preproc=yes
26088 else
26089 echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26092 ac_header_preproc=no
26095 rm -f conftest.err conftest.$ac_ext
26096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26097 echo "${ECHO_T}$ac_header_preproc" >&6; }
26099 # So? What about this header?
26100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26101 yes:no: )
26102 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
26103 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26104 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
26105 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
26106 ac_header_preproc=yes
26108 no:yes:* )
26109 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
26110 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
26111 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
26112 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
26113 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
26114 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
26115 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
26116 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
26117 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
26118 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
26119 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
26120 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
26123 esac
26124 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
26125 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
26126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26127 echo $ECHO_N "(cached) $ECHO_C" >&6
26128 else
26129 eval "$as_ac_Header=\$ac_header_preproc"
26131 ac_res=`eval echo '${'$as_ac_Header'}'`
26132 { echo "$as_me:$LINENO: result: $ac_res" >&5
26133 echo "${ECHO_T}$ac_res" >&6; }
26136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26137 VORBIS_HEADER_FOUND=1
26138 else
26139 VORBIS_HEADER_FOUND=0
26144 else
26145 if test "xvorbis/codec.h" != "x" ; then
26146 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
26147 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
26148 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
26149 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
26150 echo $ECHO_N "(cached) $ECHO_C" >&6
26152 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
26153 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
26154 else
26155 # Is the header compilable?
26156 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
26157 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
26158 cat >conftest.$ac_ext <<_ACEOF
26159 /* confdefs.h. */
26160 _ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h. */
26164 $ac_includes_default
26165 #include <vorbis/codec.h>
26166 _ACEOF
26167 rm -f conftest.$ac_objext
26168 if { (ac_try="$ac_compile"
26169 case "(($ac_try" in
26170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26171 *) ac_try_echo=$ac_try;;
26172 esac
26173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26174 (eval "$ac_compile") 2>conftest.er1
26175 ac_status=$?
26176 grep -v '^ *+' conftest.er1 >conftest.err
26177 rm -f conftest.er1
26178 cat conftest.err >&5
26179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180 (exit $ac_status); } &&
26181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26182 { (case "(($ac_try" in
26183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26184 *) ac_try_echo=$ac_try;;
26185 esac
26186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26187 (eval "$ac_try") 2>&5
26188 ac_status=$?
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); }; } &&
26191 { ac_try='test -s conftest.$ac_objext'
26192 { (case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26195 esac
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197 (eval "$ac_try") 2>&5
26198 ac_status=$?
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); }; }; then
26201 ac_header_compiler=yes
26202 else
26203 echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26206 ac_header_compiler=no
26209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26211 echo "${ECHO_T}$ac_header_compiler" >&6; }
26213 # Is the header present?
26214 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
26215 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
26216 cat >conftest.$ac_ext <<_ACEOF
26217 /* confdefs.h. */
26218 _ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h. */
26222 #include <vorbis/codec.h>
26223 _ACEOF
26224 if { (ac_try="$ac_cpp conftest.$ac_ext"
26225 case "(($ac_try" in
26226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26227 *) ac_try_echo=$ac_try;;
26228 esac
26229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26231 ac_status=$?
26232 grep -v '^ *+' conftest.er1 >conftest.err
26233 rm -f conftest.er1
26234 cat conftest.err >&5
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } >/dev/null; then
26237 if test -s conftest.err; then
26238 ac_cpp_err=$ac_c_preproc_warn_flag
26239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26240 else
26241 ac_cpp_err=
26243 else
26244 ac_cpp_err=yes
26246 if test -z "$ac_cpp_err"; then
26247 ac_header_preproc=yes
26248 else
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26252 ac_header_preproc=no
26255 rm -f conftest.err conftest.$ac_ext
26256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26257 echo "${ECHO_T}$ac_header_preproc" >&6; }
26259 # So? What about this header?
26260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26261 yes:no: )
26262 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
26263 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26264 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
26265 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
26266 ac_header_preproc=yes
26268 no:yes:* )
26269 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
26270 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
26271 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
26272 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
26273 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
26274 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
26275 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
26276 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
26277 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
26278 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
26279 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
26280 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
26283 esac
26284 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
26285 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
26286 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
26287 echo $ECHO_N "(cached) $ECHO_C" >&6
26288 else
26289 ac_cv_header_vorbis_codec_h=$ac_header_preproc
26291 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
26292 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
26295 if test $ac_cv_header_vorbis_codec_h = yes; then
26296 VORBIS_HEADER_FOUND=1
26297 else
26298 VORBIS_HEADER_FOUND=0
26304 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
26305 if test ! -z "${VORBIS_MANDATORY}" ;
26306 then
26307 echo " ***"
26308 echo " *** It appears that you do not have the vorbis development package installed."
26309 echo " *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure"
26310 echo " *** without explicitly specifying --with-${VORBIS_OPTION}"
26311 exit 1
26313 VORBIS_LIB=""
26314 VORBIS_INCLUDE=""
26315 PBX_VORBIS=0
26316 else
26317 PBX_VORBIS=1
26319 cat >>confdefs.h <<_ACEOF
26320 #define HAVE_VORBIS 1
26321 _ACEOF
26324 elif test ! -z "${VORBIS_MANDATORY}";
26325 then
26326 echo "***"
26327 echo "*** The ${VORBIS_DESCRIP} installation on this system appears to be broken."
26328 echo "*** Either correct the installation, or run configure"
26329 echo "*** without explicitly specifying --with-${VORBIS_OPTION}"
26330 exit 1
26335 ac_ext=cpp
26336 ac_cpp='$CXXCPP $CPPFLAGS'
26337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26342 if test "${USE_VPB}" != "no"; then
26343 echo -n "checking for vpb_open in -lvpb... "
26344 saved_libs="${LIBS}"
26345 saved_cppflags="${CPPFLAGS}"
26346 if test "x${VPB_DIR}" != "x"; then
26347 if test -d ${VPB_DIR}/lib; then
26348 vpblibdir=${VPB_DIR}/lib
26349 else
26350 vpblibdir=${VPB_DIR}
26352 LIBS="${LIBS} -L${vpblibdir}"
26353 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
26355 LIBS="${LIBS} -lvpb -lpthread"
26356 cat >conftest.$ac_ext <<_ACEOF
26358 /* confdefs.h. */
26359 _ACEOF
26360 cat confdefs.h >>conftest.$ac_ext
26361 cat >>conftest.$ac_ext <<_ACEOF
26362 /* end confdefs.h. */
26363 #include <vpbapi.h>
26365 main ()
26367 int q = vpb_open(0,0);
26369 return 0;
26372 _ACEOF
26373 rm -f conftest.$ac_objext conftest$ac_exeext
26374 if { (ac_try="$ac_link"
26375 case "(($ac_try" in
26376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26377 *) ac_try_echo=$ac_try;;
26378 esac
26379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26380 (eval "$ac_link") 2>conftest.er1
26381 ac_status=$?
26382 grep -v '^ *+' conftest.er1 >conftest.err
26383 rm -f conftest.er1
26384 cat conftest.err >&5
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); } &&
26387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26388 { (case "(($ac_try" in
26389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390 *) ac_try_echo=$ac_try;;
26391 esac
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393 (eval "$ac_try") 2>&5
26394 ac_status=$?
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; } &&
26397 { ac_try='test -s conftest$ac_exeext'
26398 { (case "(($ac_try" in
26399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26400 *) ac_try_echo=$ac_try;;
26401 esac
26402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26403 (eval "$ac_try") 2>&5
26404 ac_status=$?
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); }; }; then
26407 { echo "$as_me:$LINENO: result: yes" >&5
26408 echo "${ECHO_T}yes" >&6; }
26409 ac_cv_lib_vpb_vpb_open="yes"
26411 else
26412 echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26415 { echo "$as_me:$LINENO: result: no" >&5
26416 echo "${ECHO_T}no" >&6; }
26417 ac_cv_lib_vpb_vpb_open="no"
26422 rm -f conftest.err conftest.$ac_objext \
26423 conftest$ac_exeext conftest.$ac_ext
26424 LIBS="${saved_libs}"
26425 CPPFLAGS="${saved_cppflags}"
26426 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
26427 VPB_LIB="-lvpb"
26428 if test "${VPB_DIR}" != ""; then
26429 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
26430 VPB_INCLUDE="-I${VPB_DIR}/include"
26432 PBX_VPB=1
26434 cat >>confdefs.h <<\_ACEOF
26435 #define HAVE_VPB 1
26436 _ACEOF
26438 elif test ! -z "${VPB_MANDATORY}"; then
26439 echo "***"
26440 echo "*** The VoiceTronix (vpb) installation on this system appears to be broken."
26441 echo "*** Either correct the installation, or run configure"
26442 echo "*** including --without-vpb."
26443 exit 1
26447 ac_ext=c
26448 ac_cpp='$CPP $CPPFLAGS'
26449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26455 if test "${USE_ZLIB}" != "no"; then
26456 pbxlibdir=""
26457 if test "x${ZLIB_DIR}" != "x"; then
26458 if test -d ${ZLIB_DIR}/lib; then
26459 pbxlibdir="-L${ZLIB_DIR}/lib"
26460 else
26461 pbxlibdir="-L${ZLIB_DIR}"
26464 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
26465 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
26466 if test "${ac_cv_lib_z_compress+set}" = set; then
26467 echo $ECHO_N "(cached) $ECHO_C" >&6
26468 else
26469 ac_check_lib_save_LIBS=$LIBS
26470 LIBS="-lz ${pbxlibdir} $LIBS"
26471 cat >conftest.$ac_ext <<_ACEOF
26472 /* confdefs.h. */
26473 _ACEOF
26474 cat confdefs.h >>conftest.$ac_ext
26475 cat >>conftest.$ac_ext <<_ACEOF
26476 /* end confdefs.h. */
26478 /* Override any GCC internal prototype to avoid an error.
26479 Use char because int might match the return type of a GCC
26480 builtin and then its argument prototype would still apply. */
26481 #ifdef __cplusplus
26482 extern "C"
26483 #endif
26484 char compress ();
26486 main ()
26488 return compress ();
26490 return 0;
26492 _ACEOF
26493 rm -f conftest.$ac_objext conftest$ac_exeext
26494 if { (ac_try="$ac_link"
26495 case "(($ac_try" in
26496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497 *) ac_try_echo=$ac_try;;
26498 esac
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500 (eval "$ac_link") 2>conftest.er1
26501 ac_status=$?
26502 grep -v '^ *+' conftest.er1 >conftest.err
26503 rm -f conftest.er1
26504 cat conftest.err >&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); } &&
26507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26508 { (case "(($ac_try" in
26509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26510 *) ac_try_echo=$ac_try;;
26511 esac
26512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26513 (eval "$ac_try") 2>&5
26514 ac_status=$?
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); }; } &&
26517 { ac_try='test -s conftest$ac_exeext'
26518 { (case "(($ac_try" in
26519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26520 *) ac_try_echo=$ac_try;;
26521 esac
26522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26523 (eval "$ac_try") 2>&5
26524 ac_status=$?
26525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; }; then
26527 ac_cv_lib_z_compress=yes
26528 else
26529 echo "$as_me: failed program was:" >&5
26530 sed 's/^/| /' conftest.$ac_ext >&5
26532 ac_cv_lib_z_compress=no
26535 rm -f conftest.err conftest.$ac_objext \
26536 conftest$ac_exeext conftest.$ac_ext
26537 LIBS=$ac_check_lib_save_LIBS
26539 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
26540 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
26541 if test $ac_cv_lib_z_compress = yes; then
26542 AST_ZLIB_FOUND=yes
26543 else
26544 AST_ZLIB_FOUND=no
26548 if test "${AST_ZLIB_FOUND}" = "yes"; then
26549 ZLIB_LIB="-lz "
26550 ZLIB_HEADER_FOUND="1"
26551 if test "x${ZLIB_DIR}" != "x"; then
26552 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
26553 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
26554 if test "xzlib.h" != "x" ; then
26555 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
26556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26557 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
26558 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
26559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26560 echo $ECHO_N "(cached) $ECHO_C" >&6
26562 ac_res=`eval echo '${'$as_ac_Header'}'`
26563 { echo "$as_me:$LINENO: result: $ac_res" >&5
26564 echo "${ECHO_T}$ac_res" >&6; }
26565 else
26566 # Is the header compilable?
26567 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
26568 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
26569 cat >conftest.$ac_ext <<_ACEOF
26570 /* confdefs.h. */
26571 _ACEOF
26572 cat confdefs.h >>conftest.$ac_ext
26573 cat >>conftest.$ac_ext <<_ACEOF
26574 /* end confdefs.h. */
26575 $ac_includes_default
26576 #include <${ZLIB_DIR}/include/zlib.h>
26577 _ACEOF
26578 rm -f conftest.$ac_objext
26579 if { (ac_try="$ac_compile"
26580 case "(($ac_try" in
26581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582 *) ac_try_echo=$ac_try;;
26583 esac
26584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26585 (eval "$ac_compile") 2>conftest.er1
26586 ac_status=$?
26587 grep -v '^ *+' conftest.er1 >conftest.err
26588 rm -f conftest.er1
26589 cat conftest.err >&5
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); } &&
26592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26593 { (case "(($ac_try" in
26594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26595 *) ac_try_echo=$ac_try;;
26596 esac
26597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26598 (eval "$ac_try") 2>&5
26599 ac_status=$?
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); }; } &&
26602 { ac_try='test -s conftest.$ac_objext'
26603 { (case "(($ac_try" in
26604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26605 *) ac_try_echo=$ac_try;;
26606 esac
26607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26608 (eval "$ac_try") 2>&5
26609 ac_status=$?
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); }; }; then
26612 ac_header_compiler=yes
26613 else
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26617 ac_header_compiler=no
26620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26622 echo "${ECHO_T}$ac_header_compiler" >&6; }
26624 # Is the header present?
26625 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
26626 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
26627 cat >conftest.$ac_ext <<_ACEOF
26628 /* confdefs.h. */
26629 _ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h. */
26633 #include <${ZLIB_DIR}/include/zlib.h>
26634 _ACEOF
26635 if { (ac_try="$ac_cpp conftest.$ac_ext"
26636 case "(($ac_try" in
26637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26638 *) ac_try_echo=$ac_try;;
26639 esac
26640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26642 ac_status=$?
26643 grep -v '^ *+' conftest.er1 >conftest.err
26644 rm -f conftest.er1
26645 cat conftest.err >&5
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); } >/dev/null; then
26648 if test -s conftest.err; then
26649 ac_cpp_err=$ac_c_preproc_warn_flag
26650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26651 else
26652 ac_cpp_err=
26654 else
26655 ac_cpp_err=yes
26657 if test -z "$ac_cpp_err"; then
26658 ac_header_preproc=yes
26659 else
26660 echo "$as_me: failed program was:" >&5
26661 sed 's/^/| /' conftest.$ac_ext >&5
26663 ac_header_preproc=no
26666 rm -f conftest.err conftest.$ac_ext
26667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26668 echo "${ECHO_T}$ac_header_preproc" >&6; }
26670 # So? What about this header?
26671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26672 yes:no: )
26673 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26674 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26675 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
26676 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
26677 ac_header_preproc=yes
26679 no:yes:* )
26680 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
26681 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
26682 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
26683 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
26684 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
26685 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
26686 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
26687 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26688 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
26689 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
26690 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
26691 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
26694 esac
26695 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
26696 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
26697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26698 echo $ECHO_N "(cached) $ECHO_C" >&6
26699 else
26700 eval "$as_ac_Header=\$ac_header_preproc"
26702 ac_res=`eval echo '${'$as_ac_Header'}'`
26703 { echo "$as_me:$LINENO: result: $ac_res" >&5
26704 echo "${ECHO_T}$ac_res" >&6; }
26707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26708 ZLIB_HEADER_FOUND=1
26709 else
26710 ZLIB_HEADER_FOUND=0
26715 else
26716 if test "xzlib.h" != "x" ; then
26717 if test "${ac_cv_header_zlib_h+set}" = set; then
26718 { echo "$as_me:$LINENO: checking for zlib.h" >&5
26719 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26720 if test "${ac_cv_header_zlib_h+set}" = set; then
26721 echo $ECHO_N "(cached) $ECHO_C" >&6
26723 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26724 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26725 else
26726 # Is the header compilable?
26727 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
26728 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
26729 cat >conftest.$ac_ext <<_ACEOF
26730 /* confdefs.h. */
26731 _ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26735 $ac_includes_default
26736 #include <zlib.h>
26737 _ACEOF
26738 rm -f conftest.$ac_objext
26739 if { (ac_try="$ac_compile"
26740 case "(($ac_try" in
26741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742 *) ac_try_echo=$ac_try;;
26743 esac
26744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745 (eval "$ac_compile") 2>conftest.er1
26746 ac_status=$?
26747 grep -v '^ *+' conftest.er1 >conftest.err
26748 rm -f conftest.er1
26749 cat conftest.err >&5
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); } &&
26752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26753 { (case "(($ac_try" in
26754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26755 *) ac_try_echo=$ac_try;;
26756 esac
26757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26758 (eval "$ac_try") 2>&5
26759 ac_status=$?
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); }; } &&
26762 { ac_try='test -s conftest.$ac_objext'
26763 { (case "(($ac_try" in
26764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26765 *) ac_try_echo=$ac_try;;
26766 esac
26767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26768 (eval "$ac_try") 2>&5
26769 ac_status=$?
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); }; }; then
26772 ac_header_compiler=yes
26773 else
26774 echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26777 ac_header_compiler=no
26780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26782 echo "${ECHO_T}$ac_header_compiler" >&6; }
26784 # Is the header present?
26785 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
26786 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
26787 cat >conftest.$ac_ext <<_ACEOF
26788 /* confdefs.h. */
26789 _ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26793 #include <zlib.h>
26794 _ACEOF
26795 if { (ac_try="$ac_cpp conftest.$ac_ext"
26796 case "(($ac_try" in
26797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26798 *) ac_try_echo=$ac_try;;
26799 esac
26800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26802 ac_status=$?
26803 grep -v '^ *+' conftest.er1 >conftest.err
26804 rm -f conftest.er1
26805 cat conftest.err >&5
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); } >/dev/null; then
26808 if test -s conftest.err; then
26809 ac_cpp_err=$ac_c_preproc_warn_flag
26810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26811 else
26812 ac_cpp_err=
26814 else
26815 ac_cpp_err=yes
26817 if test -z "$ac_cpp_err"; then
26818 ac_header_preproc=yes
26819 else
26820 echo "$as_me: failed program was:" >&5
26821 sed 's/^/| /' conftest.$ac_ext >&5
26823 ac_header_preproc=no
26826 rm -f conftest.err conftest.$ac_ext
26827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26828 echo "${ECHO_T}$ac_header_preproc" >&6; }
26830 # So? What about this header?
26831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26832 yes:no: )
26833 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26834 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26835 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
26836 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
26837 ac_header_preproc=yes
26839 no:yes:* )
26840 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
26841 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
26842 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
26843 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
26844 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
26845 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
26846 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
26847 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26848 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
26849 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
26850 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
26851 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
26854 esac
26855 { echo "$as_me:$LINENO: checking for zlib.h" >&5
26856 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26857 if test "${ac_cv_header_zlib_h+set}" = set; then
26858 echo $ECHO_N "(cached) $ECHO_C" >&6
26859 else
26860 ac_cv_header_zlib_h=$ac_header_preproc
26862 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26863 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26866 if test $ac_cv_header_zlib_h = yes; then
26867 ZLIB_HEADER_FOUND=1
26868 else
26869 ZLIB_HEADER_FOUND=0
26875 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
26876 if test ! -z "${ZLIB_MANDATORY}" ;
26877 then
26878 echo " ***"
26879 echo " *** It appears that you do not have the z development package installed."
26880 echo " *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure"
26881 echo " *** without explicitly specifying --with-${ZLIB_OPTION}"
26882 exit 1
26884 ZLIB_LIB=""
26885 ZLIB_INCLUDE=""
26886 PBX_ZLIB=0
26887 else
26888 PBX_ZLIB=1
26890 cat >>confdefs.h <<_ACEOF
26891 #define HAVE_ZLIB 1
26892 _ACEOF
26895 elif test ! -z "${ZLIB_MANDATORY}";
26896 then
26897 echo "***"
26898 echo "*** The ${ZLIB_DESCRIP} installation on this system appears to be broken."
26899 echo "*** Either correct the installation, or run configure"
26900 echo "*** without explicitly specifying --with-${ZLIB_OPTION}"
26901 exit 1
26906 if test "${USE_ZAPTEL}" != "no"; then
26907 echo -n "checking for zt_transcode_header in zaptel.h... "
26908 saved_cppflags="${CPPFLAGS}"
26909 if test "x${ZAPTEL_DIR}" != "x"; then
26910 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
26912 cat >conftest.$ac_ext <<_ACEOF
26914 /* confdefs.h. */
26915 _ACEOF
26916 cat confdefs.h >>conftest.$ac_ext
26917 cat >>conftest.$ac_ext <<_ACEOF
26918 /* end confdefs.h. */
26919 #include <zaptel/zaptel.h>
26921 main ()
26923 struct zt_transcode_header test;
26925 return 0;
26928 _ACEOF
26929 rm -f conftest.$ac_objext
26930 if { (ac_try="$ac_compile"
26931 case "(($ac_try" in
26932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26933 *) ac_try_echo=$ac_try;;
26934 esac
26935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26936 (eval "$ac_compile") 2>conftest.er1
26937 ac_status=$?
26938 grep -v '^ *+' conftest.er1 >conftest.err
26939 rm -f conftest.er1
26940 cat conftest.err >&5
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } &&
26943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26944 { (case "(($ac_try" in
26945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26946 *) ac_try_echo=$ac_try;;
26947 esac
26948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26949 (eval "$ac_try") 2>&5
26950 ac_status=$?
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; } &&
26953 { ac_try='test -s conftest.$ac_objext'
26954 { (case "(($ac_try" in
26955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26956 *) ac_try_echo=$ac_try;;
26957 esac
26958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26959 (eval "$ac_try") 2>&5
26960 ac_status=$?
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); }; }; then
26963 { echo "$as_me:$LINENO: result: yes" >&5
26964 echo "${ECHO_T}yes" >&6; }
26965 ac_cv_zaptel_h="yes"
26967 else
26968 echo "$as_me: failed program was:" >&5
26969 sed 's/^/| /' conftest.$ac_ext >&5
26971 { echo "$as_me:$LINENO: result: no" >&5
26972 echo "${ECHO_T}no" >&6; }
26973 ac_cv_zaptel_h="no"
26978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26979 CPPFLAGS="${saved_cppflags}"
26980 if test "${ac_cv_zaptel_h}" = "yes"; then
26981 if test "${ZAPTEL_DIR}" != ""; then
26982 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
26984 PBX_ZAPTEL=1
26986 cat >>confdefs.h <<\_ACEOF
26987 #define HAVE_ZAPTEL 1
26988 _ACEOF
26990 elif test ! -z "${ZAPTEL_MANDATORY}";
26991 then
26992 echo "***"
26993 echo "*** The Zaptel installation on this system appears to be broken."
26994 echo "*** Either correct the installation, or run configure"
26995 echo "*** including --without-zaptel."
26996 exit 1
27000 EDITLINE_LIB=""
27001 if test "x$TERMCAP_LIB" != "x" ; then
27002 EDITLINE_LIB="$TERMCAP_LIB"
27003 elif test "x$TINFO_LIB" != "x" ; then
27004 EDITLINE_LIB="$TINFO_LIB"
27005 elif test "x$CURSES_LIB" != "x" ; then
27006 EDITLINE_LIB="$CURSES_LIB"
27007 elif test "x$NCURSES_LIB" != "x" ; then
27008 EDITLINE_LIB="$NCURSES_LIB"
27009 else
27010 echo "*** termcap support not found"
27011 exit 1
27015 if test "${ac_cv_header_h323_h+set}" = set; then
27016 { echo "$as_me:$LINENO: checking for h323.h" >&5
27017 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
27018 if test "${ac_cv_header_h323_h+set}" = set; then
27019 echo $ECHO_N "(cached) $ECHO_C" >&6
27021 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
27022 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
27023 else
27024 # Is the header compilable?
27025 { echo "$as_me:$LINENO: checking h323.h usability" >&5
27026 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
27027 cat >conftest.$ac_ext <<_ACEOF
27028 /* confdefs.h. */
27029 _ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h. */
27033 $ac_includes_default
27034 #include <h323.h>
27035 _ACEOF
27036 rm -f conftest.$ac_objext
27037 if { (ac_try="$ac_compile"
27038 case "(($ac_try" in
27039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040 *) ac_try_echo=$ac_try;;
27041 esac
27042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043 (eval "$ac_compile") 2>conftest.er1
27044 ac_status=$?
27045 grep -v '^ *+' conftest.er1 >conftest.err
27046 rm -f conftest.er1
27047 cat conftest.err >&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); } &&
27050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27051 { (case "(($ac_try" in
27052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053 *) ac_try_echo=$ac_try;;
27054 esac
27055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056 (eval "$ac_try") 2>&5
27057 ac_status=$?
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); }; } &&
27060 { ac_try='test -s conftest.$ac_objext'
27061 { (case "(($ac_try" in
27062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27063 *) ac_try_echo=$ac_try;;
27064 esac
27065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27066 (eval "$ac_try") 2>&5
27067 ac_status=$?
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); }; }; then
27070 ac_header_compiler=yes
27071 else
27072 echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27075 ac_header_compiler=no
27078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27080 echo "${ECHO_T}$ac_header_compiler" >&6; }
27082 # Is the header present?
27083 { echo "$as_me:$LINENO: checking h323.h presence" >&5
27084 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
27085 cat >conftest.$ac_ext <<_ACEOF
27086 /* confdefs.h. */
27087 _ACEOF
27088 cat confdefs.h >>conftest.$ac_ext
27089 cat >>conftest.$ac_ext <<_ACEOF
27090 /* end confdefs.h. */
27091 #include <h323.h>
27092 _ACEOF
27093 if { (ac_try="$ac_cpp conftest.$ac_ext"
27094 case "(($ac_try" in
27095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27096 *) ac_try_echo=$ac_try;;
27097 esac
27098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27100 ac_status=$?
27101 grep -v '^ *+' conftest.er1 >conftest.err
27102 rm -f conftest.er1
27103 cat conftest.err >&5
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); } >/dev/null; then
27106 if test -s conftest.err; then
27107 ac_cpp_err=$ac_c_preproc_warn_flag
27108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27109 else
27110 ac_cpp_err=
27112 else
27113 ac_cpp_err=yes
27115 if test -z "$ac_cpp_err"; then
27116 ac_header_preproc=yes
27117 else
27118 echo "$as_me: failed program was:" >&5
27119 sed 's/^/| /' conftest.$ac_ext >&5
27121 ac_header_preproc=no
27124 rm -f conftest.err conftest.$ac_ext
27125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27126 echo "${ECHO_T}$ac_header_preproc" >&6; }
27128 # So? What about this header?
27129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27130 yes:no: )
27131 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
27132 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27133 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
27134 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
27135 ac_header_preproc=yes
27137 no:yes:* )
27138 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
27139 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
27140 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
27141 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
27142 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
27143 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
27144 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
27145 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
27146 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
27147 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
27148 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
27149 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
27152 esac
27153 { echo "$as_me:$LINENO: checking for h323.h" >&5
27154 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
27155 if test "${ac_cv_header_h323_h+set}" = set; then
27156 echo $ECHO_N "(cached) $ECHO_C" >&6
27157 else
27158 ac_cv_header_h323_h=$ac_header_preproc
27160 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
27161 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
27164 if test $ac_cv_header_h323_h = yes; then
27165 PBX_H323=1
27166 else
27167 PBX_H323=0
27173 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
27174 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
27175 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
27176 echo $ECHO_N "(cached) $ECHO_C" >&6
27177 else
27178 cat >conftest.$ac_ext <<_ACEOF
27179 /* confdefs.h. */
27180 _ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h. */
27185 #include <linux/version.h>
27186 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
27187 #include <linux/compiler.h>
27188 #endif
27191 #include <linux/ixjuser.h>
27192 _ACEOF
27193 rm -f conftest.$ac_objext
27194 if { (ac_try="$ac_compile"
27195 case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27198 esac
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_compile") 2>conftest.er1
27201 ac_status=$?
27202 grep -v '^ *+' conftest.er1 >conftest.err
27203 rm -f conftest.er1
27204 cat conftest.err >&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); } &&
27207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27208 { (case "(($ac_try" in
27209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210 *) ac_try_echo=$ac_try;;
27211 esac
27212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213 (eval "$ac_try") 2>&5
27214 ac_status=$?
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); }; } &&
27217 { ac_try='test -s conftest.$ac_objext'
27218 { (case "(($ac_try" in
27219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27220 *) ac_try_echo=$ac_try;;
27221 esac
27222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27223 (eval "$ac_try") 2>&5
27224 ac_status=$?
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; }; then
27227 ac_cv_header_linux_ixjuser_h=yes
27228 else
27229 echo "$as_me: failed program was:" >&5
27230 sed 's/^/| /' conftest.$ac_ext >&5
27232 ac_cv_header_linux_ixjuser_h=no
27235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27237 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
27238 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
27239 if test $ac_cv_header_linux_ixjuser_h = yes; then
27240 PBX_IXJUSER=1
27241 else
27242 PBX_IXJUSER=0
27248 PBX_GTK=0
27249 if test -n "$ac_tool_prefix"; then
27250 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
27251 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
27252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27254 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
27255 echo $ECHO_N "(cached) $ECHO_C" >&6
27256 else
27257 if test -n "$GTKCONFIG"; then
27258 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
27259 else
27260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27261 for as_dir in $PATH
27263 IFS=$as_save_IFS
27264 test -z "$as_dir" && as_dir=.
27265 for ac_exec_ext in '' $ac_executable_extensions; do
27266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27267 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
27268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27269 break 2
27271 done
27272 done
27273 IFS=$as_save_IFS
27277 GTKCONFIG=$ac_cv_prog_GTKCONFIG
27278 if test -n "$GTKCONFIG"; then
27279 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
27280 echo "${ECHO_T}$GTKCONFIG" >&6; }
27281 else
27282 { echo "$as_me:$LINENO: result: no" >&5
27283 echo "${ECHO_T}no" >&6; }
27288 if test -z "$ac_cv_prog_GTKCONFIG"; then
27289 ac_ct_GTKCONFIG=$GTKCONFIG
27290 # Extract the first word of "gtk-config", so it can be a program name with args.
27291 set dummy gtk-config; ac_word=$2
27292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27294 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
27295 echo $ECHO_N "(cached) $ECHO_C" >&6
27296 else
27297 if test -n "$ac_ct_GTKCONFIG"; then
27298 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
27299 else
27300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27301 for as_dir in $PATH
27303 IFS=$as_save_IFS
27304 test -z "$as_dir" && as_dir=.
27305 for ac_exec_ext in '' $ac_executable_extensions; do
27306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27307 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
27308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27309 break 2
27311 done
27312 done
27313 IFS=$as_save_IFS
27317 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
27318 if test -n "$ac_ct_GTKCONFIG"; then
27319 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
27320 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
27321 else
27322 { echo "$as_me:$LINENO: result: no" >&5
27323 echo "${ECHO_T}no" >&6; }
27326 if test "x$ac_ct_GTKCONFIG" = x; then
27327 GTKCONFIG="No"
27328 else
27329 case $cross_compiling:$ac_tool_warned in
27330 yes:)
27331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27332 whose name does not start with the host triplet. If you think this
27333 configuration is useful to you, please write to autoconf@gnu.org." >&5
27334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27335 whose name does not start with the host triplet. If you think this
27336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27337 ac_tool_warned=yes ;;
27338 esac
27339 GTKCONFIG=$ac_ct_GTKCONFIG
27341 else
27342 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
27345 if test ! "x${GTKCONFIG}" = xNo; then
27346 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
27347 GTK_LIB=$(${GTKCONFIG} --libs gthread)
27348 PBX_GTK=1
27350 cat >>confdefs.h <<\_ACEOF
27351 #define HAVE_GTK 1
27352 _ACEOF
27359 PBX_CURL=0
27360 if test -n "$ac_tool_prefix"; then
27361 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
27362 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
27363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27365 if test "${ac_cv_path_CURL+set}" = set; then
27366 echo $ECHO_N "(cached) $ECHO_C" >&6
27367 else
27368 case $CURL in
27369 [\\/]* | ?:[\\/]*)
27370 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
27373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27374 for as_dir in $PATH
27376 IFS=$as_save_IFS
27377 test -z "$as_dir" && as_dir=.
27378 for ac_exec_ext in '' $ac_executable_extensions; do
27379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27380 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
27381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27382 break 2
27384 done
27385 done
27386 IFS=$as_save_IFS
27389 esac
27391 CURL=$ac_cv_path_CURL
27392 if test -n "$CURL"; then
27393 { echo "$as_me:$LINENO: result: $CURL" >&5
27394 echo "${ECHO_T}$CURL" >&6; }
27395 else
27396 { echo "$as_me:$LINENO: result: no" >&5
27397 echo "${ECHO_T}no" >&6; }
27402 if test -z "$ac_cv_path_CURL"; then
27403 ac_pt_CURL=$CURL
27404 # Extract the first word of "curl-config", so it can be a program name with args.
27405 set dummy curl-config; ac_word=$2
27406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27408 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
27409 echo $ECHO_N "(cached) $ECHO_C" >&6
27410 else
27411 case $ac_pt_CURL in
27412 [\\/]* | ?:[\\/]*)
27413 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
27416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27417 for as_dir in $PATH
27419 IFS=$as_save_IFS
27420 test -z "$as_dir" && as_dir=.
27421 for ac_exec_ext in '' $ac_executable_extensions; do
27422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27423 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
27424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27425 break 2
27427 done
27428 done
27429 IFS=$as_save_IFS
27432 esac
27434 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
27435 if test -n "$ac_pt_CURL"; then
27436 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
27437 echo "${ECHO_T}$ac_pt_CURL" >&6; }
27438 else
27439 { echo "$as_me:$LINENO: result: no" >&5
27440 echo "${ECHO_T}no" >&6; }
27443 if test "x$ac_pt_CURL" = x; then
27444 CURL="No"
27445 else
27446 case $cross_compiling:$ac_tool_warned in
27447 yes:)
27448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27449 whose name does not start with the host triplet. If you think this
27450 configuration is useful to you, please write to autoconf@gnu.org." >&5
27451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27452 whose name does not start with the host triplet. If you think this
27453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27454 ac_tool_warned=yes ;;
27455 esac
27456 CURL=$ac_pt_CURL
27458 else
27459 CURL="$ac_cv_path_CURL"
27462 if test ! x"${CURL}" = xNo; then
27463 # check for version
27464 CURLLIB=$(${CURL} --libs)
27465 PBX_CURL=1
27467 cat >>confdefs.h <<\_ACEOF
27468 #define HAVE_CURL 1
27469 _ACEOF
27475 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts"
27477 cat >confcache <<\_ACEOF
27478 # This file is a shell script that caches the results of configure
27479 # tests run on this system so they can be shared between configure
27480 # scripts and configure runs, see configure's option --config-cache.
27481 # It is not useful on other systems. If it contains results you don't
27482 # want to keep, you may remove or edit it.
27484 # config.status only pays attention to the cache file if you give it
27485 # the --recheck option to rerun configure.
27487 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27488 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27489 # following values.
27491 _ACEOF
27493 # The following way of writing the cache mishandles newlines in values,
27494 # but we know of no workaround that is simple, portable, and efficient.
27495 # So, we kill variables containing newlines.
27496 # Ultrix sh set writes to stderr and can't be redirected directly,
27497 # and sets the high bit in the cache file unless we assign to the vars.
27499 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27500 eval ac_val=\$$ac_var
27501 case $ac_val in #(
27502 *${as_nl}*)
27503 case $ac_var in #(
27504 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27505 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27506 esac
27507 case $ac_var in #(
27508 _ | IFS | as_nl) ;; #(
27509 *) $as_unset $ac_var ;;
27510 esac ;;
27511 esac
27512 done
27514 (set) 2>&1 |
27515 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27516 *${as_nl}ac_space=\ *)
27517 # `set' does not quote correctly, so add quotes (double-quote
27518 # substitution turns \\\\ into \\, and sed turns \\ into \).
27519 sed -n \
27520 "s/'/'\\\\''/g;
27521 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27522 ;; #(
27524 # `set' quotes correctly as required by POSIX, so do not add quotes.
27525 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27527 esac |
27528 sort
27530 sed '
27531 /^ac_cv_env_/b end
27532 t clear
27533 :clear
27534 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27535 t end
27536 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27537 :end' >>confcache
27538 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27539 if test -w "$cache_file"; then
27540 test "x$cache_file" != "x/dev/null" &&
27541 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27542 echo "$as_me: updating cache $cache_file" >&6;}
27543 cat confcache >$cache_file
27544 else
27545 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27546 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27549 rm -f confcache
27551 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27552 # Let make expand exec_prefix.
27553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27555 DEFS=-DHAVE_CONFIG_H
27557 ac_libobjs=
27558 ac_ltlibobjs=
27559 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27560 # 1. Remove the extension, and $U if already installed.
27561 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27562 ac_i=`echo "$ac_i" | sed "$ac_script"`
27563 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27564 # will be set to the directory where LIBOBJS objects are built.
27565 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27566 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27567 done
27568 LIBOBJS=$ac_libobjs
27570 LTLIBOBJS=$ac_ltlibobjs
27574 : ${CONFIG_STATUS=./config.status}
27575 ac_clean_files_save=$ac_clean_files
27576 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27577 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27578 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27579 cat >$CONFIG_STATUS <<_ACEOF
27580 #! $SHELL
27581 # Generated by $as_me.
27582 # Run this file to recreate the current configuration.
27583 # Compiler output produced by configure, useful for debugging
27584 # configure, is in config.log if it exists.
27586 debug=false
27587 ac_cs_recheck=false
27588 ac_cs_silent=false
27589 SHELL=\${CONFIG_SHELL-$SHELL}
27590 _ACEOF
27592 cat >>$CONFIG_STATUS <<\_ACEOF
27593 ## --------------------- ##
27594 ## M4sh Initialization. ##
27595 ## --------------------- ##
27597 # Be Bourne compatible
27598 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27599 emulate sh
27600 NULLCMD=:
27601 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27602 # is contrary to our usage. Disable this feature.
27603 alias -g '${1+"$@"}'='"$@"'
27604 setopt NO_GLOB_SUBST
27605 else
27606 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27608 BIN_SH=xpg4; export BIN_SH # for Tru64
27609 DUALCASE=1; export DUALCASE # for MKS sh
27612 # PATH needs CR
27613 # Avoid depending upon Character Ranges.
27614 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27615 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27616 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27617 as_cr_digits='0123456789'
27618 as_cr_alnum=$as_cr_Letters$as_cr_digits
27620 # The user is always right.
27621 if test "${PATH_SEPARATOR+set}" != set; then
27622 echo "#! /bin/sh" >conf$$.sh
27623 echo "exit 0" >>conf$$.sh
27624 chmod +x conf$$.sh
27625 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27626 PATH_SEPARATOR=';'
27627 else
27628 PATH_SEPARATOR=:
27630 rm -f conf$$.sh
27633 # Support unset when possible.
27634 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27635 as_unset=unset
27636 else
27637 as_unset=false
27641 # IFS
27642 # We need space, tab and new line, in precisely that order. Quoting is
27643 # there to prevent editors from complaining about space-tab.
27644 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27645 # splitting by setting IFS to empty value.)
27646 as_nl='
27648 IFS=" "" $as_nl"
27650 # Find who we are. Look in the path if we contain no directory separator.
27651 case $0 in
27652 *[\\/]* ) as_myself=$0 ;;
27653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27654 for as_dir in $PATH
27656 IFS=$as_save_IFS
27657 test -z "$as_dir" && as_dir=.
27658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27659 done
27660 IFS=$as_save_IFS
27663 esac
27664 # We did not find ourselves, most probably we were run as `sh COMMAND'
27665 # in which case we are not to be found in the path.
27666 if test "x$as_myself" = x; then
27667 as_myself=$0
27669 if test ! -f "$as_myself"; then
27670 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27671 { (exit 1); exit 1; }
27674 # Work around bugs in pre-3.0 UWIN ksh.
27675 for as_var in ENV MAIL MAILPATH
27676 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27677 done
27678 PS1='$ '
27679 PS2='> '
27680 PS4='+ '
27682 # NLS nuisances.
27683 for as_var in \
27684 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27685 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27686 LC_TELEPHONE LC_TIME
27688 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27689 eval $as_var=C; export $as_var
27690 else
27691 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27693 done
27695 # Required to use basename.
27696 if expr a : '\(a\)' >/dev/null 2>&1 &&
27697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27698 as_expr=expr
27699 else
27700 as_expr=false
27703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27704 as_basename=basename
27705 else
27706 as_basename=false
27710 # Name of the executable.
27711 as_me=`$as_basename -- "$0" ||
27712 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27713 X"$0" : 'X\(//\)$' \| \
27714 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27715 echo X/"$0" |
27716 sed '/^.*\/\([^/][^/]*\)\/*$/{
27717 s//\1/
27720 /^X\/\(\/\/\)$/{
27721 s//\1/
27724 /^X\/\(\/\).*/{
27725 s//\1/
27728 s/.*/./; q'`
27730 # CDPATH.
27731 $as_unset CDPATH
27735 as_lineno_1=$LINENO
27736 as_lineno_2=$LINENO
27737 test "x$as_lineno_1" != "x$as_lineno_2" &&
27738 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27740 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27741 # uniformly replaced by the line number. The first 'sed' inserts a
27742 # line-number line after each line using $LINENO; the second 'sed'
27743 # does the real work. The second script uses 'N' to pair each
27744 # line-number line with the line containing $LINENO, and appends
27745 # trailing '-' during substitution so that $LINENO is not a special
27746 # case at line end.
27747 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27748 # scripts with optimization help from Paolo Bonzini. Blame Lee
27749 # E. McMahon (1931-1989) for sed's syntax. :-)
27750 sed -n '
27752 /[$]LINENO/=
27753 ' <$as_myself |
27754 sed '
27755 s/[$]LINENO.*/&-/
27756 t lineno
27758 :lineno
27760 :loop
27761 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27762 t loop
27763 s/-\n.*//
27764 ' >$as_me.lineno &&
27765 chmod +x "$as_me.lineno" ||
27766 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27767 { (exit 1); exit 1; }; }
27769 # Don't try to exec as it changes $[0], causing all sort of problems
27770 # (the dirname of $[0] is not the place where we might find the
27771 # original and so on. Autoconf is especially sensitive to this).
27772 . "./$as_me.lineno"
27773 # Exit status is that of the last command.
27774 exit
27778 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27779 as_dirname=dirname
27780 else
27781 as_dirname=false
27784 ECHO_C= ECHO_N= ECHO_T=
27785 case `echo -n x` in
27786 -n*)
27787 case `echo 'x\c'` in
27788 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27789 *) ECHO_C='\c';;
27790 esac;;
27792 ECHO_N='-n';;
27793 esac
27795 if expr a : '\(a\)' >/dev/null 2>&1 &&
27796 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27797 as_expr=expr
27798 else
27799 as_expr=false
27802 rm -f conf$$ conf$$.exe conf$$.file
27803 if test -d conf$$.dir; then
27804 rm -f conf$$.dir/conf$$.file
27805 else
27806 rm -f conf$$.dir
27807 mkdir conf$$.dir
27809 echo >conf$$.file
27810 if ln -s conf$$.file conf$$ 2>/dev/null; then
27811 as_ln_s='ln -s'
27812 # ... but there are two gotchas:
27813 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27814 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27815 # In both cases, we have to default to `cp -p'.
27816 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27817 as_ln_s='cp -p'
27818 elif ln conf$$.file conf$$ 2>/dev/null; then
27819 as_ln_s=ln
27820 else
27821 as_ln_s='cp -p'
27823 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27824 rmdir conf$$.dir 2>/dev/null
27826 if mkdir -p . 2>/dev/null; then
27827 as_mkdir_p=:
27828 else
27829 test -d ./-p && rmdir ./-p
27830 as_mkdir_p=false
27833 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
27834 # systems may use methods other than mode bits to determine executability.
27835 cat >conf$$.file <<_ASEOF
27836 #! /bin/sh
27837 exit 0
27838 _ASEOF
27839 chmod +x conf$$.file
27840 if test -x conf$$.file >/dev/null 2>&1; then
27841 as_executable_p="test -x"
27842 else
27843 as_executable_p=:
27845 rm -f conf$$.file
27847 # Sed expression to map a string onto a valid CPP name.
27848 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27850 # Sed expression to map a string onto a valid variable name.
27851 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27854 exec 6>&1
27856 # Save the log message, to keep $[0] and so on meaningful, and to
27857 # report actual input values of CONFIG_FILES etc. instead of their
27858 # values after options handling.
27859 ac_log="
27860 This file was extended by $as_me, which was
27861 generated by GNU Autoconf 2.59e. Invocation command line was
27863 CONFIG_FILES = $CONFIG_FILES
27864 CONFIG_HEADERS = $CONFIG_HEADERS
27865 CONFIG_LINKS = $CONFIG_LINKS
27866 CONFIG_COMMANDS = $CONFIG_COMMANDS
27867 $ $0 $@
27869 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27872 _ACEOF
27874 cat >>$CONFIG_STATUS <<_ACEOF
27875 # Files that config.status was made for.
27876 config_files="$ac_config_files"
27877 config_headers="$ac_config_headers"
27879 _ACEOF
27881 cat >>$CONFIG_STATUS <<\_ACEOF
27882 ac_cs_usage="\
27883 \`$as_me' instantiates files from templates according to the
27884 current configuration.
27886 Usage: $0 [OPTIONS] [FILE]...
27888 -h, --help print this help, then exit
27889 -V, --version print version number, then exit
27890 -q, --quiet do not print progress messages
27891 -d, --debug don't remove temporary files
27892 --recheck update $as_me by reconfiguring in the same conditions
27893 --file=FILE[:TEMPLATE]
27894 instantiate the configuration file FILE
27895 --header=FILE[:TEMPLATE]
27896 instantiate the configuration header FILE
27898 Configuration files:
27899 $config_files
27901 Configuration headers:
27902 $config_headers
27904 Report bugs to <bug-autoconf@gnu.org>."
27906 _ACEOF
27907 cat >>$CONFIG_STATUS <<_ACEOF
27908 ac_cs_version="\\
27909 config.status
27910 configured by $0, generated by GNU Autoconf 2.59e,
27911 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27913 Copyright (C) 2006 Free Software Foundation, Inc.
27914 This config.status script is free software; the Free Software Foundation
27915 gives unlimited permission to copy, distribute and modify it."
27917 ac_pwd='$ac_pwd'
27918 srcdir='$srcdir'
27919 INSTALL='$INSTALL'
27920 _ACEOF
27922 cat >>$CONFIG_STATUS <<\_ACEOF
27923 # If no file are specified by the user, then we need to provide default
27924 # value. By we need to know if files were specified by the user.
27925 ac_need_defaults=:
27926 while test $# != 0
27928 case $1 in
27929 --*=*)
27930 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27931 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27932 ac_shift=:
27935 ac_option=$1
27936 ac_optarg=$2
27937 ac_shift=shift
27939 esac
27941 case $ac_option in
27942 # Handling of the options.
27943 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27944 ac_cs_recheck=: ;;
27945 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27946 echo "$ac_cs_version"; exit ;;
27947 --debug | --debu | --deb | --de | --d | -d )
27948 debug=: ;;
27949 --file | --fil | --fi | --f )
27950 $ac_shift
27951 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27952 ac_need_defaults=false;;
27953 --header | --heade | --head | --hea )
27954 $ac_shift
27955 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27956 ac_need_defaults=false;;
27957 --he | --h)
27958 # Conflict between --help and --header
27959 { echo "$as_me: error: ambiguous option: $1
27960 Try \`$0 --help' for more information." >&2
27961 { (exit 1); exit 1; }; };;
27962 --help | --hel | -h )
27963 echo "$ac_cs_usage"; exit ;;
27964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27965 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27966 ac_cs_silent=: ;;
27968 # This is an error.
27969 -*) { echo "$as_me: error: unrecognized option: $1
27970 Try \`$0 --help' for more information." >&2
27971 { (exit 1); exit 1; }; } ;;
27973 *) ac_config_targets="$ac_config_targets $1"
27974 ac_need_defaults=false ;;
27976 esac
27977 shift
27978 done
27980 ac_configure_extra_args=
27982 if $ac_cs_silent; then
27983 exec 6>/dev/null
27984 ac_configure_extra_args="$ac_configure_extra_args --silent"
27987 _ACEOF
27988 cat >>$CONFIG_STATUS <<_ACEOF
27989 if \$ac_cs_recheck; then
27990 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27991 CONFIG_SHELL=$SHELL
27992 export CONFIG_SHELL
27993 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27996 _ACEOF
27997 cat >>$CONFIG_STATUS <<\_ACEOF
27998 exec 5>>config.log
28000 echo
28001 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28002 ## Running $as_me. ##
28003 _ASBOX
28004 echo "$ac_log"
28005 } >&5
28007 _ACEOF
28008 cat >>$CONFIG_STATUS <<_ACEOF
28009 _ACEOF
28011 cat >>$CONFIG_STATUS <<\_ACEOF
28013 # Handling of arguments.
28014 for ac_config_target in $ac_config_targets
28016 case $ac_config_target in
28017 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
28018 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
28019 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
28021 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28022 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28023 { (exit 1); exit 1; }; };;
28024 esac
28025 done
28028 # If the user did not use the arguments to specify the items to instantiate,
28029 # then the envvar interface is used. Set only those that are not.
28030 # We use the long form for the default assignment because of an extremely
28031 # bizarre bug on SunOS 4.1.3.
28032 if $ac_need_defaults; then
28033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28037 # Have a temporary directory for convenience. Make it in the build tree
28038 # simply because there is no reason against having it here, and in addition,
28039 # creating and moving files from /tmp can sometimes cause problems.
28040 # Hook for its removal unless debugging.
28041 # Note that there is a small window in which the directory will not be cleaned:
28042 # after its creation but before its name has been assigned to `$tmp'.
28043 $debug ||
28045 tmp=
28046 trap 'exit_status=$?
28047 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28049 trap '{ (exit 1); exit 1; }' 1 2 13 15
28051 # Create a (secure) tmp directory for tmp files.
28054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28055 test -n "$tmp" && test -d "$tmp"
28056 } ||
28058 tmp=./conf$$-$RANDOM
28059 (umask 077 && mkdir "$tmp")
28060 } ||
28062 echo "$me: cannot create a temporary directory in ." >&2
28063 { (exit 1); exit 1; }
28067 # Set up the sed scripts for CONFIG_FILES section.
28070 # No need to generate the scripts if there are no CONFIG_FILES.
28071 # This happens for instance when ./config.status config.h
28072 if test -n "$CONFIG_FILES"; then
28074 _ACEOF
28078 ac_delim='%!_!# '
28079 for ac_last_try in false false false false false :; do
28080 cat >conf$$subs.sed <<_ACEOF
28081 SHELL!$SHELL$ac_delim
28082 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28083 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28084 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28085 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28086 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28087 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28088 exec_prefix!$exec_prefix$ac_delim
28089 prefix!$prefix$ac_delim
28090 program_transform_name!$program_transform_name$ac_delim
28091 bindir!$bindir$ac_delim
28092 sbindir!$sbindir$ac_delim
28093 libexecdir!$libexecdir$ac_delim
28094 datarootdir!$datarootdir$ac_delim
28095 datadir!$datadir$ac_delim
28096 sysconfdir!$sysconfdir$ac_delim
28097 sharedstatedir!$sharedstatedir$ac_delim
28098 localstatedir!$localstatedir$ac_delim
28099 includedir!$includedir$ac_delim
28100 oldincludedir!$oldincludedir$ac_delim
28101 docdir!$docdir$ac_delim
28102 infodir!$infodir$ac_delim
28103 htmldir!$htmldir$ac_delim
28104 dvidir!$dvidir$ac_delim
28105 pdfdir!$pdfdir$ac_delim
28106 psdir!$psdir$ac_delim
28107 libdir!$libdir$ac_delim
28108 localedir!$localedir$ac_delim
28109 mandir!$mandir$ac_delim
28110 DEFS!$DEFS$ac_delim
28111 ECHO_C!$ECHO_C$ac_delim
28112 ECHO_N!$ECHO_N$ac_delim
28113 ECHO_T!$ECHO_T$ac_delim
28114 LIBS!$LIBS$ac_delim
28115 build_alias!$build_alias$ac_delim
28116 host_alias!$host_alias$ac_delim
28117 target_alias!$target_alias$ac_delim
28118 build!$build$ac_delim
28119 build_cpu!$build_cpu$ac_delim
28120 build_vendor!$build_vendor$ac_delim
28121 build_os!$build_os$ac_delim
28122 host!$host$ac_delim
28123 host_cpu!$host_cpu$ac_delim
28124 host_vendor!$host_vendor$ac_delim
28125 host_os!$host_os$ac_delim
28126 target!$target$ac_delim
28127 target_cpu!$target_cpu$ac_delim
28128 target_vendor!$target_vendor$ac_delim
28129 target_os!$target_os$ac_delim
28130 PBX_PLATFORM!$PBX_PLATFORM$ac_delim
28131 PBX_CPU!$PBX_CPU$ac_delim
28132 PBX_VENDOR!$PBX_VENDOR$ac_delim
28133 PBX_OS!$PBX_OS$ac_delim
28134 UNAME!$UNAME$ac_delim
28135 PBX_OSREV!$PBX_OSREV$ac_delim
28136 OSISWIN32!$OSISWIN32$ac_delim
28137 PBX_OSTYPE!$PBX_OSTYPE$ac_delim
28138 CC!$CC$ac_delim
28139 CXX!$CXX$ac_delim
28140 RANLIB!$RANLIB$ac_delim
28141 AR!$AR$ac_delim
28142 NM!$NM$ac_delim
28143 WINDRES!$WINDRES$ac_delim
28144 DLLWRAP!$DLLWRAP$ac_delim
28145 CFLAGS!$CFLAGS$ac_delim
28146 LDFLAGS!$LDFLAGS$ac_delim
28147 CPPFLAGS!$CPPFLAGS$ac_delim
28148 ac_ct_CC!$ac_ct_CC$ac_delim
28149 EXEEXT!$EXEEXT$ac_delim
28150 OBJEXT!$OBJEXT$ac_delim
28151 CXXFLAGS!$CXXFLAGS$ac_delim
28152 ac_ct_CXX!$ac_ct_CXX$ac_delim
28153 CPP!$CPP$ac_delim
28154 CXXCPP!$CXXCPP$ac_delim
28155 AWK!$AWK$ac_delim
28156 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28157 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28158 INSTALL_DATA!$INSTALL_DATA$ac_delim
28159 LN_S!$LN_S$ac_delim
28160 GNU_MAKE!$GNU_MAKE$ac_delim
28161 GREP!$GREP$ac_delim
28162 FIND!$FIND$ac_delim
28163 COMPRESS!$COMPRESS$ac_delim
28164 BASENAME!$BASENAME$ac_delim
28165 DIRNAME!$DIRNAME$ac_delim
28166 LN!$LN$ac_delim
28167 DOT!$DOT$ac_delim
28168 AST_DEVMODE!$AST_DEVMODE$ac_delim
28169 ALSA_LIB!$ALSA_LIB$ac_delim
28170 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
28171 PBX_ALSA!$PBX_ALSA$ac_delim
28172 CURSES_LIB!$CURSES_LIB$ac_delim
28173 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
28174 PBX_CURSES!$PBX_CURSES$ac_delim
28175 GSM_LIB!$GSM_LIB$ac_delim
28176 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
28177 PBX_GSM!$PBX_GSM$ac_delim
28178 _ACEOF
28180 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28181 break
28182 elif $ac_last_try; then
28183 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28184 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28185 { (exit 1); exit 1; }; }
28186 else
28187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28189 done
28191 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28192 if test -n "$ac_eof"; then
28193 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28194 ac_eof=`expr $ac_eof + 1`
28197 cat >>$CONFIG_STATUS <<_ACEOF
28198 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28200 _ACEOF
28201 sed '
28202 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28203 s/^/s,@/; s/!/@,|#_!!_#|/
28206 s/'"$ac_delim"'$/,g/; t
28207 s/$/\\/; p
28208 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28209 ' >>$CONFIG_STATUS <conf$$subs.sed
28210 rm -f conf$$subs.sed
28211 cat >>$CONFIG_STATUS <<_ACEOF
28212 CEOF$ac_eof
28213 _ACEOF
28216 ac_delim='%!_!# '
28217 for ac_last_try in false false false false false :; do
28218 cat >conf$$subs.sed <<_ACEOF
28219 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
28220 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
28221 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
28222 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
28223 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
28224 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
28225 KDE_LIB!$KDE_LIB$ac_delim
28226 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
28227 PBX_KDE!$PBX_KDE$ac_delim
28228 NBS_LIB!$NBS_LIB$ac_delim
28229 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
28230 PBX_NBS!$PBX_NBS$ac_delim
28231 NCURSES_LIB!$NCURSES_LIB$ac_delim
28232 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
28233 PBX_NCURSES!$PBX_NCURSES$ac_delim
28234 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
28235 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
28236 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
28237 NEWT_LIB!$NEWT_LIB$ac_delim
28238 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
28239 PBX_NEWT!$PBX_NEWT$ac_delim
28240 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
28241 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
28242 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
28243 OGG_LIB!$OGG_LIB$ac_delim
28244 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
28245 PBX_OGG!$PBX_OGG$ac_delim
28246 OSPTK_LIB!$OSPTK_LIB$ac_delim
28247 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
28248 PBX_OSPTK!$PBX_OSPTK$ac_delim
28249 OSS_LIB!$OSS_LIB$ac_delim
28250 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
28251 PBX_OSS!$PBX_OSS$ac_delim
28252 POPT_LIB!$POPT_LIB$ac_delim
28253 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
28254 PBX_POPT!$PBX_POPT$ac_delim
28255 PGSQL_LIB!$PGSQL_LIB$ac_delim
28256 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
28257 PBX_PGSQL!$PBX_PGSQL$ac_delim
28258 PRI_LIB!$PRI_LIB$ac_delim
28259 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
28260 PBX_PRI!$PBX_PRI$ac_delim
28261 PWLIB_LIB!$PWLIB_LIB$ac_delim
28262 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
28263 PBX_PWLIB!$PBX_PWLIB$ac_delim
28264 QT_LIB!$QT_LIB$ac_delim
28265 QT_INCLUDE!$QT_INCLUDE$ac_delim
28266 PBX_QT!$PBX_QT$ac_delim
28267 RADIUS_LIB!$RADIUS_LIB$ac_delim
28268 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
28269 PBX_RADIUS!$PBX_RADIUS$ac_delim
28270 SPEEX_LIB!$SPEEX_LIB$ac_delim
28271 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
28272 PBX_SPEEX!$PBX_SPEEX$ac_delim
28273 SQLITE_LIB!$SQLITE_LIB$ac_delim
28274 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
28275 PBX_SQLITE!$PBX_SQLITE$ac_delim
28276 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
28277 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
28278 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
28279 FREETDS_LIB!$FREETDS_LIB$ac_delim
28280 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
28281 PBX_FREETDS!$PBX_FREETDS$ac_delim
28282 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
28283 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
28284 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
28285 TINFO_LIB!$TINFO_LIB$ac_delim
28286 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
28287 PBX_TINFO!$PBX_TINFO$ac_delim
28288 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
28289 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
28290 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
28291 VORBIS_LIB!$VORBIS_LIB$ac_delim
28292 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
28293 PBX_VORBIS!$PBX_VORBIS$ac_delim
28294 VPB_LIB!$VPB_LIB$ac_delim
28295 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
28296 PBX_VPB!$PBX_VPB$ac_delim
28297 ZLIB_LIB!$ZLIB_LIB$ac_delim
28298 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
28299 PBX_ZLIB!$PBX_ZLIB$ac_delim
28300 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
28301 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
28302 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
28303 ALLOCA!$ALLOCA$ac_delim
28304 EGREP!$EGREP$ac_delim
28305 LIBOBJS!$LIBOBJS$ac_delim
28306 POW_LIB!$POW_LIB$ac_delim
28307 KDEINIT!$KDEINIT$ac_delim
28308 KDEDIR!$KDEDIR$ac_delim
28309 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
28310 PG_CONFIG!$PG_CONFIG$ac_delim
28311 QTMOC!$QTMOC$ac_delim
28312 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
28313 PBX_H323!$PBX_H323$ac_delim
28314 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
28315 GTKCONFIG!$GTKCONFIG$ac_delim
28316 _ACEOF
28318 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28319 break
28320 elif $ac_last_try; then
28321 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28322 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28323 { (exit 1); exit 1; }; }
28324 else
28325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28327 done
28329 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28330 if test -n "$ac_eof"; then
28331 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28332 ac_eof=`expr $ac_eof + 1`
28335 cat >>$CONFIG_STATUS <<_ACEOF
28336 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28338 _ACEOF
28339 sed '
28340 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28341 s/^/s,@/; s/!/@,|#_!!_#|/
28344 s/'"$ac_delim"'$/,g/; t
28345 s/$/\\/; p
28346 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28347 ' >>$CONFIG_STATUS <conf$$subs.sed
28348 rm -f conf$$subs.sed
28349 cat >>$CONFIG_STATUS <<_ACEOF
28350 CEOF$ac_eof
28351 _ACEOF
28354 ac_delim='%!_!# '
28355 for ac_last_try in false false false false false :; do
28356 cat >conf$$subs.sed <<_ACEOF
28357 PBX_GTK!$PBX_GTK$ac_delim
28358 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
28359 GTK_LIB!$GTK_LIB$ac_delim
28360 CURL!$CURL$ac_delim
28361 PBX_CURL!$PBX_CURL$ac_delim
28362 CURLLIB!$CURLLIB$ac_delim
28363 LTLIBOBJS!$LTLIBOBJS$ac_delim
28364 _ACEOF
28366 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
28367 break
28368 elif $ac_last_try; then
28369 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28370 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28371 { (exit 1); exit 1; }; }
28372 else
28373 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28375 done
28377 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28378 if test -n "$ac_eof"; then
28379 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28380 ac_eof=`expr $ac_eof + 1`
28383 cat >>$CONFIG_STATUS <<_ACEOF
28384 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
28385 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28386 _ACEOF
28387 sed '
28388 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28389 s/^/s,@/; s/!/@,|#_!!_#|/
28392 s/'"$ac_delim"'$/,g/; t
28393 s/$/\\/; p
28394 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28395 ' >>$CONFIG_STATUS <conf$$subs.sed
28396 rm -f conf$$subs.sed
28397 cat >>$CONFIG_STATUS <<_ACEOF
28398 :end
28399 s/|#_!!_#|//g
28400 CEOF$ac_eof
28401 _ACEOF
28404 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28405 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28406 # trailing colons and then remove the whole line if VPATH becomes empty
28407 # (actually we leave an empty line to preserve line numbers).
28408 if test "x$srcdir" = x.; then
28409 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28410 s/:*\$(srcdir):*/:/
28411 s/:*\${srcdir}:*/:/
28412 s/:*@srcdir@:*/:/
28413 s/^\([^=]*=[ ]*\):*/\1/
28414 s/:*$//
28415 s/^[^=]*=[ ]*$//
28419 cat >>$CONFIG_STATUS <<\_ACEOF
28420 fi # test -n "$CONFIG_FILES"
28423 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
28425 case $ac_tag in
28426 :[FHLC]) ac_mode=$ac_tag; continue;;
28427 esac
28428 case $ac_mode$ac_tag in
28429 :[FHL]*:*);;
28430 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28431 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28432 { (exit 1); exit 1; }; };;
28433 :[FH]-) ac_tag=-:-;;
28434 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28435 esac
28436 ac_save_IFS=$IFS
28437 IFS=:
28438 set x $ac_tag
28439 IFS=$ac_save_IFS
28440 shift
28441 ac_file=$1
28442 shift
28444 case $ac_mode in
28445 :L) ac_source=$1;;
28446 :[FH])
28447 ac_file_inputs=
28448 for ac_f
28450 case $ac_f in
28451 -) ac_f="$tmp/stdin";;
28452 *) # Look for the file first in the build tree, then in the source tree
28453 # (if the path is not absolute). The absolute path cannot be DOS-style,
28454 # because $ac_f cannot contain `:'.
28455 test -f "$ac_f" ||
28456 case $ac_f in
28457 [\\/$]*) false;;
28458 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28459 esac ||
28460 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28461 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28462 { (exit 1); exit 1; }; };;
28463 esac
28464 ac_file_inputs="$ac_file_inputs $ac_f"
28465 done
28467 # Let's still pretend it is `configure' which instantiates (i.e., don't
28468 # use $as_me), people would be surprised to read:
28469 # /* config.h. Generated by config.status. */
28470 configure_input="Generated from "`IFS=:
28471 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28472 if test x"$ac_file" != x-; then
28473 configure_input="$ac_file. $configure_input"
28474 { echo "$as_me:$LINENO: creating $ac_file" >&5
28475 echo "$as_me: creating $ac_file" >&6;}
28478 case $ac_tag in
28479 *:-:* | *:-) cat >"$tmp/stdin";;
28480 esac
28482 esac
28484 ac_dir=`$as_dirname -- "$ac_file" ||
28485 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28486 X"$ac_file" : 'X\(//\)[^/]' \| \
28487 X"$ac_file" : 'X\(//\)$' \| \
28488 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28489 echo X"$ac_file" |
28490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28491 s//\1/
28494 /^X\(\/\/\)[^/].*/{
28495 s//\1/
28498 /^X\(\/\/\)$/{
28499 s//\1/
28502 /^X\(\/\).*/{
28503 s//\1/
28506 s/.*/./; q'`
28507 { as_dir="$ac_dir"
28508 case $as_dir in #(
28509 -*) as_dir=./$as_dir;;
28510 esac
28511 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28512 as_dirs=
28513 while :; do
28514 case $as_dir in #(
28515 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28516 *) as_qdir=$as_dir;;
28517 esac
28518 as_dirs="'$as_qdir' $as_dirs"
28519 as_dir=`$as_dirname -- "$as_dir" ||
28520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28521 X"$as_dir" : 'X\(//\)[^/]' \| \
28522 X"$as_dir" : 'X\(//\)$' \| \
28523 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28524 echo X"$as_dir" |
28525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28526 s//\1/
28529 /^X\(\/\/\)[^/].*/{
28530 s//\1/
28533 /^X\(\/\/\)$/{
28534 s//\1/
28537 /^X\(\/\).*/{
28538 s//\1/
28541 s/.*/./; q'`
28542 test -d "$as_dir" && break
28543 done
28544 test -z "$as_dirs" || eval "mkdir $as_dirs"
28545 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28546 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28547 { (exit 1); exit 1; }; }; }
28548 ac_builddir=.
28550 case "$ac_dir" in
28551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28553 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28554 # A ".." for each directory in $ac_dir_suffix.
28555 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28556 case $ac_top_builddir_sub in
28557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28559 esac ;;
28560 esac
28561 ac_abs_top_builddir=$ac_pwd
28562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28563 # for backward compatibility:
28564 ac_top_builddir=$ac_top_build_prefix
28566 case $srcdir in
28567 .) # We are building in place.
28568 ac_srcdir=.
28569 ac_top_srcdir=$ac_top_builddir_sub
28570 ac_abs_top_srcdir=$ac_pwd ;;
28571 [\\/]* | ?:[\\/]* ) # Absolute name.
28572 ac_srcdir=$srcdir$ac_dir_suffix;
28573 ac_top_srcdir=$srcdir
28574 ac_abs_top_srcdir=$srcdir ;;
28575 *) # Relative name.
28576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28577 ac_top_srcdir=$ac_top_build_prefix$srcdir
28578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28579 esac
28580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28583 case $ac_mode in
28586 # CONFIG_FILE
28589 case $INSTALL in
28590 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28591 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28592 esac
28593 _ACEOF
28595 cat >>$CONFIG_STATUS <<\_ACEOF
28596 # If the template does not know about datarootdir, expand it.
28597 # FIXME: This hack should be removed a few years after 2.60.
28598 ac_datarootdir_hack=; ac_datarootdir_seen=
28600 case `sed -n '/datarootdir/ {
28604 /@datadir@/p
28605 /@docdir@/p
28606 /@infodir@/p
28607 /@localedir@/p
28608 /@mandir@/p
28609 ' $ac_file_inputs` in
28610 *datarootdir*) ac_datarootdir_seen=yes;;
28611 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28612 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28613 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28614 _ACEOF
28615 cat >>$CONFIG_STATUS <<_ACEOF
28616 ac_datarootdir_hack='
28617 s&@datadir@&$datadir&g
28618 s&@docdir@&$docdir&g
28619 s&@infodir@&$infodir&g
28620 s&@localedir@&$localedir&g
28621 s&@mandir@&$mandir&g
28622 s&\\\${datarootdir}&$datarootdir&g' ;;
28623 esac
28624 _ACEOF
28626 # Neutralize VPATH when `$srcdir' = `.'.
28627 # Shell code in configure.ac might set extrasub.
28628 # FIXME: do we really want to maintain this feature?
28629 cat >>$CONFIG_STATUS <<_ACEOF
28630 sed "$ac_vpsub
28631 $extrasub
28632 _ACEOF
28633 cat >>$CONFIG_STATUS <<\_ACEOF
28635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28636 s&@configure_input@&$configure_input&;t t
28637 s&@top_builddir@&$ac_top_builddir_sub&;t t
28638 s&@srcdir@&$ac_srcdir&;t t
28639 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28640 s&@top_srcdir@&$ac_top_srcdir&;t t
28641 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28642 s&@builddir@&$ac_builddir&;t t
28643 s&@abs_builddir@&$ac_abs_builddir&;t t
28644 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28645 s&@INSTALL@&$ac_INSTALL&;t t
28646 $ac_datarootdir_hack
28647 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
28649 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28650 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28651 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28652 which seems to be undefined. Please make sure it is defined." >&5
28653 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28654 which seems to be undefined. Please make sure it is defined." >&2;}
28656 rm -f "$tmp/stdin"
28657 case $ac_file in
28658 -) cat "$tmp/out"; rm -f "$tmp/out";;
28659 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28660 esac
28664 # CONFIG_HEADER
28666 _ACEOF
28668 # Transform confdefs.h into a sed script `conftest.defines', that
28669 # substitutes the proper values into config.h.in to produce config.h.
28670 rm -f conftest.defines conftest.tail
28671 # First, append a space to every undef/define line, to ease matching.
28672 echo 's/$/ /' >conftest.defines
28673 # Then, protect against being on the right side of a sed subst, or in
28674 # an unquoted here document, in config.status. If some macros were
28675 # called several times there might be several #defines for the same
28676 # symbol, which is useless. But do not sort them, since the last
28677 # AC_DEFINE must be honored.
28678 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28679 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28680 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28681 # PARAMS is the parameter list in the macro definition--in most cases, it's
28682 # just an empty string.
28683 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28684 ac_dB='\\)[ (].*,\\1define\\2'
28685 ac_dC=' '
28686 ac_dD=' ,'
28688 uniq confdefs.h |
28689 sed -n '
28690 t rset
28691 :rset
28692 s/^[ ]*#[ ]*define[ ][ ]*//
28693 t ok
28696 s/[\\&,]/\\&/g
28697 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28698 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28699 ' >>conftest.defines
28701 # Remove the space that was appended to ease matching.
28702 # Then replace #undef with comments. This is necessary, for
28703 # example, in the case of _POSIX_SOURCE, which is predefined and required
28704 # on some systems where configure will not decide to define it.
28705 # (The regexp can be short, since the line contains either #define or #undef.)
28706 echo 's/ $//
28707 s,^[ #]*u.*,/* & */,' >>conftest.defines
28709 # Break up conftest.defines:
28710 ac_max_sed_lines=50
28712 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28713 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28714 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28715 # et cetera.
28716 ac_in='$ac_file_inputs'
28717 ac_out='"$tmp/out1"'
28718 ac_nxt='"$tmp/out2"'
28720 while :
28722 # Write a here document:
28723 cat >>$CONFIG_STATUS <<_ACEOF
28724 # First, check the format of the line:
28725 cat >"\$tmp/defines.sed" <<\\CEOF
28726 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28727 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28729 :def
28730 _ACEOF
28731 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28732 echo 'CEOF
28733 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28734 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28735 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28736 grep . conftest.tail >/dev/null || break
28737 rm -f conftest.defines
28738 mv conftest.tail conftest.defines
28739 done
28740 rm -f conftest.defines conftest.tail
28742 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28743 cat >>$CONFIG_STATUS <<\_ACEOF
28744 if test x"$ac_file" != x-; then
28745 echo "/* $configure_input */" >"$tmp/config.h"
28746 cat "$ac_result" >>"$tmp/config.h"
28747 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28748 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28749 echo "$as_me: $ac_file is unchanged" >&6;}
28750 else
28751 rm -f $ac_file
28752 mv "$tmp/config.h" $ac_file
28754 else
28755 echo "/* $configure_input */"
28756 cat "$ac_result"
28758 rm -f "$tmp/out12"
28762 esac
28764 done # for ac_tag
28767 { (exit 0); exit 0; }
28768 _ACEOF
28769 chmod +x $CONFIG_STATUS
28770 ac_clean_files=$ac_clean_files_save
28773 # configure is writing to config.log, and then calls config.status.
28774 # config.status does its own redirection, appending to config.log.
28775 # Unfortunately, on DOS this fails, as config.log is still kept open
28776 # by configure, so config.status won't be able to write to it; its
28777 # output is simply discarded. So we exec the FD to /dev/null,
28778 # effectively closing config.log, so it can be properly (re)opened and
28779 # appended to by config.status. When coming back to configure, we
28780 # need to make the FD available again.
28781 if test "$no_create" != yes; then
28782 ac_cs_success=:
28783 ac_config_status_args=
28784 test "$silent" = yes &&
28785 ac_config_status_args="$ac_config_status_args --quiet"
28786 exec 5>/dev/null
28787 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28788 exec 5>>config.log
28789 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28790 # would make configure fail if this is the last instruction.
28791 $ac_cs_success || { (exit 1); exit 1; }
28795 echo
28796 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
28797 echo " .\$7\$7.. .7\$\$7:. "
28798 echo " .\$\$:. ,\$7.7 "
28799 echo " .\$7. 7\$\$\$\$ .\$\$77 "
28800 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
28801 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
28802 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
28803 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
28804 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
28805 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
28806 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
28807 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
28808 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
28809 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
28810 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
28811 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
28812 echo " \$\$\$\$\$ \$\$\$ "
28813 echo " \$\$\$\$7. \$\$ (TM) "
28814 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
28815 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
28816 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
28817 echo
28819 echo "Package configured for: "
28820 echo " OS type : $PBX_OSTYPE"
28821 echo " Host CPU : $host_cpu"
28822 if test "x${crossCompile}" = xYes; then
28823 echo ""
28824 echo " Cross Compilation = YES"
28825 echo " Target = ${host}"