make Local channel return sensible device state values
[asterisk-bristuff.git] / configure
blob541ee3b58c66d13f2ea4f42102f766930ef55c0e
1 #! /bin/sh
2 # From configure.ac Revision: 33953 .
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 EGREP
694 ALSA_LIB
695 ALSA_INCLUDE
696 PBX_LIBALSA
697 CURSES_LIB
698 CURSES_INCLUDE
699 PBX_LIBCURSES
700 IKSEMEL_LIB
701 IKSEMEL_INCLUDE
702 PBX_LIBIKSEMEL
703 NBS_LIB
704 NBS_INCLUDE
705 PBX_LIBNBS
706 NCURSES_LIB
707 NCURSES_INCLUDE
708 PBX_LIBNCURSES
709 NEWT_LIB
710 NEWT_INCLUDE
711 PBX_LIBNEWT
712 UNIXODBC_LIB
713 UNIXODBC_INCLUDE
714 PBX_LIBUNIXODBC
715 OGG_LIB
716 OGG_INCLUDE
717 PBX_LIBOGG
718 OSPTK_LIB
719 OSPTK_INCLUDE
720 PBX_LIBOSPTK
721 POPT_LIB
722 POPT_INCLUDE
723 PBX_LIBPOPT
724 LIBPRI_LIB
725 LIBPRI_INCLUDE
726 PBX_LIBLIBPRI
727 RADIUSCLIENT_LIB
728 RADIUSCLIENT_INCLUDE
729 PBX_LIBRADIUSCLIENT
730 SPEEX_LIB
731 SPEEX_INCLUDE
732 PBX_LIBSPEEX
733 SQLITE_LIB
734 SQLITE_INCLUDE
735 PBX_LIBSQLITE
736 OPENSSL_LIB
737 OPENSSL_INCLUDE
738 PBX_LIBOPENSSL
739 FREETDS_LIB
740 FREETDS_INCLUDE
741 PBX_LIBFREETDS
742 TERMCAP_LIB
743 TERMCAP_INCLUDE
744 PBX_LIBTERMCAP
745 TINFO_LIB
746 TINFO_INCLUDE
747 PBX_LIBTINFO
748 VORBIS_LIB
749 VORBIS_INCLUDE
750 PBX_LIBVORBIS
751 ZLIB_LIB
752 ZLIB_INCLUDE
753 PBX_LIBZLIB
754 EDITLINE_LIBS
755 OSS_LIB
756 OSS_INCLUDE
757 PBX_LIBOSS
758 ZAPTEL_LIB
759 ZAPTEL_INCLUDE
760 PBX_LIBZAPTEL
761 gsm_LIB
762 gsm_INCLUDE
763 PBX_LIBgsm
764 PG_CONFIG
765 pq_INCLUDE
766 pq_LIB
767 PBX_LIBpq
768 PBX_H323
769 PBX_IXJUSER
770 VPB_INCLUDE
771 VPB_LIB
772 PBX_LIBvpb
773 QT_INCLUDE
774 QT_LIB
775 QTMOC
776 PBX_QT
777 KDE_INCLUDE
778 KDE_LIBS
779 PBX_KDE
780 KDEINIT
781 KDEDIR
782 GTKCONFIG
783 PBX_GTK
784 GTK_INCLUDE
785 GTK_LIBS
786 PWLIB_INCLUDE
787 PWLIB_LIB
788 PBX_LIBPWLIB
789 CURL
790 PBX_CURL
791 CURLLIBS
792 ALLOCA
793 LIBOBJS
794 POW_LIB
795 LTLIBOBJS'
796 ac_subst_files=''
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
801 CFLAGS
802 LDFLAGS
803 CPPFLAGS
805 CXXFLAGS
808 CXXCPP'
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
857 ac_prev=
858 ac_dashdash=
859 for ac_option
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
868 case $ac_option in
869 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *) ac_optarg=yes ;;
871 esac
873 # Accept the important Cygnus configure options, so we can diagnose typos.
875 case $ac_dashdash$ac_option in
877 ac_dashdash=yes ;;
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 ac_prev=bindir ;;
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 bindir=$ac_optarg ;;
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
896 --config-cache | -C)
897 cache_file=config.cache ;;
899 -datadir | --datadir | --datadi | --datad)
900 ac_prev=datadir ;;
901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
902 datadir=$ac_optarg ;;
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
911 -disable-* | --disable-*)
912 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916 { (exit 1); exit 1; }; }
917 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
918 eval enable_$ac_feature=no ;;
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
930 -enable-* | --enable-*)
931 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
934 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935 { (exit 1); exit 1; }; }
936 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
937 eval enable_$ac_feature=\$ac_optarg ;;
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941 | --exec | --exe | --ex)
942 ac_prev=exec_prefix ;;
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945 | --exec=* | --exe=* | --ex=*)
946 exec_prefix=$ac_optarg ;;
948 -gas | --gas | --ga | --g)
949 # Obsolete; use --with-gas.
950 with_gas=yes ;;
952 -help | --help | --hel | --he | -h)
953 ac_init_help=long ;;
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955 ac_init_help=recursive ;;
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957 ac_init_help=short ;;
959 -host | --host | --hos | --ho)
960 ac_prev=host_alias ;;
961 -host=* | --host=* | --hos=* | --ho=*)
962 host_alias=$ac_optarg ;;
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965 ac_prev=htmldir ;;
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967 | --ht=*)
968 htmldir=$ac_optarg ;;
970 -includedir | --includedir | --includedi | --included | --include \
971 | --includ | --inclu | --incl | --inc)
972 ac_prev=includedir ;;
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974 | --includ=* | --inclu=* | --incl=* | --inc=*)
975 includedir=$ac_optarg ;;
977 -infodir | --infodir | --infodi | --infod | --info | --inf)
978 ac_prev=infodir ;;
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980 infodir=$ac_optarg ;;
982 -libdir | --libdir | --libdi | --libd)
983 ac_prev=libdir ;;
984 -libdir=* | --libdir=* | --libdi=* | --libd=*)
985 libdir=$ac_optarg ;;
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988 | --libexe | --libex | --libe)
989 ac_prev=libexecdir ;;
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991 | --libexe=* | --libex=* | --libe=*)
992 libexecdir=$ac_optarg ;;
994 -localedir | --localedir | --localedi | --localed | --locale)
995 ac_prev=localedir ;;
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997 localedir=$ac_optarg ;;
999 -localstatedir | --localstatedir | --localstatedi | --localstated \
1000 | --localstate | --localstat | --localsta | --localst | --locals)
1001 ac_prev=localstatedir ;;
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004 localstatedir=$ac_optarg ;;
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007 ac_prev=mandir ;;
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009 mandir=$ac_optarg ;;
1011 -nfp | --nfp | --nf)
1012 # Obsolete; use --without-fp.
1013 with_fp=no ;;
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n)
1017 no_create=yes ;;
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 no_recursion=yes ;;
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025 | --oldin | --oldi | --old | --ol | --o)
1026 ac_prev=oldincludedir ;;
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030 oldincludedir=$ac_optarg ;;
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033 ac_prev=prefix ;;
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035 prefix=$ac_optarg ;;
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038 | --program-pre | --program-pr | --program-p)
1039 ac_prev=program_prefix ;;
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042 program_prefix=$ac_optarg ;;
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045 | --program-suf | --program-su | --program-s)
1046 ac_prev=program_suffix ;;
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049 program_suffix=$ac_optarg ;;
1051 -program-transform-name | --program-transform-name \
1052 | --program-transform-nam | --program-transform-na \
1053 | --program-transform-n | --program-transform- \
1054 | --program-transform | --program-transfor \
1055 | --program-transfo | --program-transf \
1056 | --program-trans | --program-tran \
1057 | --progr-tra | --program-tr | --program-t)
1058 ac_prev=program_transform_name ;;
1059 -program-transform-name=* | --program-transform-name=* \
1060 | --program-transform-nam=* | --program-transform-na=* \
1061 | --program-transform-n=* | --program-transform-=* \
1062 | --program-transform=* | --program-transfor=* \
1063 | --program-transfo=* | --program-transf=* \
1064 | --program-trans=* | --program-tran=* \
1065 | --progr-tra=* | --program-tr=* | --program-t=*)
1066 program_transform_name=$ac_optarg ;;
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069 ac_prev=pdfdir ;;
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071 pdfdir=$ac_optarg ;;
1073 -psdir | --psdir | --psdi | --psd | --ps)
1074 ac_prev=psdir ;;
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076 psdir=$ac_optarg ;;
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1080 silent=yes ;;
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 ac_prev=sbindir ;;
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 | --sbi=* | --sb=*)
1086 sbindir=$ac_optarg ;;
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1091 | --sha | --sh)
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 | --sha=* | --sh=*)
1097 sharedstatedir=$ac_optarg ;;
1099 -site | --site | --sit)
1100 ac_prev=site ;;
1101 -site=* | --site=* | --sit=*)
1102 site=$ac_optarg ;;
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 ac_prev=srcdir ;;
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 verbose=yes ;;
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1127 -with-* | --with-*)
1128 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1131 { echo "$as_me: error: invalid package name: $ac_package" >&2
1132 { (exit 1); exit 1; }; }
1133 ac_package=`echo $ac_package| sed 's/-/_/g'`
1134 eval with_$ac_package=\$ac_optarg ;;
1136 -without-* | --without-*)
1137 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package | sed 's/-/_/g'`
1143 eval with_$ac_package=no ;;
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1163 -*) { echo "$as_me: error: unrecognized option: $ac_option
1164 Try \`$0 --help' for more information." >&2
1165 { (exit 1); exit 1; }; }
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1172 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1173 { (exit 1); exit 1; }; }
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1185 esac
1186 done
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 { echo "$as_me: error: missing argument to $ac_option" >&2
1191 { (exit 1); exit 1; }; }
1194 # Be sure to have absolute directory names.
1195 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val=\$$ac_var
1201 case $ac_val in
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 esac
1205 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1206 { (exit 1); exit 1; }; }
1207 done
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1212 build=$build_alias
1213 host=$host_alias
1214 target=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
1220 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1223 cross_compiling=yes
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230 test "$silent" = yes && exec 6>/dev/null
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 { echo "$as_me: error: Working directory cannot be determined" >&2
1237 { (exit 1); exit 1; }; }
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 { echo "$as_me: error: pwd does not report name of working directory" >&2
1240 { (exit 1); exit 1; }; }
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$0" ||
1248 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$0" : 'X\(//\)[^/]' \| \
1250 X"$0" : 'X\(//\)$' \| \
1251 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1252 echo X"$0" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 s//\1/
1257 /^X\(\/\/\)[^/].*/{
1258 s//\1/
1261 /^X\(\/\/\)$/{
1262 s//\1/
1265 /^X\(\/\).*/{
1266 s//\1/
1269 s/.*/./; q'`
1270 srcdir=$ac_confdir
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 srcdir=..
1274 else
1275 ac_srcdir_defaulted=no
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1280 { (exit 1); exit 1; }; }
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 ac_abs_confdir=`(
1284 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1285 { (exit 1); exit 1; }; }
1286 pwd)`
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 srcdir=.
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1294 case $srcdir in
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 esac
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302 done
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1310 cat <<_ACEOF
1311 \`configure' configures this package to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1320 Configuration:
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1335 [PREFIX]
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1364 _ACEOF
1366 cat <<\_ACEOF
1368 System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 --target=TARGET configure for building compilers for TARGET [HOST]
1372 _ACEOF
1375 if test -n "$ac_init_help"; then
1377 cat <<\_ACEOF
1379 Optional Features:
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --enable-dev-mode Turn on developer mode
1383 --disable-largefile omit support for large files
1385 Optional Packages:
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1389 --with-curses=PATH use curses files in PATH
1390 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1391 --with-nbs=PATH use Network Broadcast Sound files in PATH
1392 --with-ncurses=PATH use ncurses files in PATH
1393 --with-newt=PATH use newt files in PATH
1394 --with-odbc=PATH use unixODBC files in PATH
1395 --with-ogg=PATH use OGG files in PATH
1396 --with-osptk=PATH use OSP Toolkit files in PATH
1397 --with-popt=PATH use popt files in PATH
1398 --with-pri=PATH use ISDN PRI files in PATH
1399 --with-radiusclient-ng=PATH
1400 use Radius Client files in PATH
1401 --with-speex=PATH use Speex files in PATH
1402 --with-sqlite=PATH use SQLite files in PATH
1403 --with-ssl=PATH use OpenSSL files in PATH
1404 --with-tds=PATH use FreeTDS files in PATH
1405 --with-termcap=PATH use Termcap files in PATH
1406 --with-tinfo=PATH use Term Info files in PATH
1407 --with-vorbis=PATH use Vorbis files in PATH
1408 --with-z=PATH use zlib files in PATH
1409 --with-ossaudio=PATH use Open Sound System files in PATH
1410 --with-tonezone=PATH use Zaptel files in PATH
1411 --with-gsm=PATH use libgsm files in PATH, or 'internal'
1412 --with-pq=PATH use PostgreSQL files in PATH
1413 --with-vpb=PATH use vpb files in PATH
1414 --with-qt=PATH use Qt files in PATH
1415 --with-kde=PATH use KDE files in PATH
1416 --with-pwlib=PATH use PWLib files in PATH
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1424 you have headers in a nonstandard directory <include dir>
1425 CXX C++ compiler command
1426 CXXFLAGS C++ compiler flags
1427 CPP C preprocessor
1428 CXXCPP C++ preprocessor
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1433 _ACEOF
1434 ac_status=$?
1437 if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" || continue
1441 ac_builddir=.
1443 case "$ac_dir" in
1444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1447 # A ".." for each directory in $ac_dir_suffix.
1448 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1449 case $ac_top_builddir_sub in
1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1452 esac ;;
1453 esac
1454 ac_abs_top_builddir=$ac_pwd
1455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1456 # for backward compatibility:
1457 ac_top_builddir=$ac_top_build_prefix
1459 case $srcdir in
1460 .) # We are building in place.
1461 ac_srcdir=.
1462 ac_top_srcdir=$ac_top_builddir_sub
1463 ac_abs_top_srcdir=$ac_pwd ;;
1464 [\\/]* | ?:[\\/]* ) # Absolute name.
1465 ac_srcdir=$srcdir$ac_dir_suffix;
1466 ac_top_srcdir=$srcdir
1467 ac_abs_top_srcdir=$srcdir ;;
1468 *) # Relative name.
1469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470 ac_top_srcdir=$ac_top_build_prefix$srcdir
1471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1472 esac
1473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475 cd "$ac_dir" || { ac_status=$?; continue; }
1476 # Check for guested configure.
1477 if test -f "$ac_srcdir/configure.gnu"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480 elif test -f "$ac_srcdir/configure"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure" --help=recursive
1483 else
1484 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1485 fi || ac_status=$?
1486 cd "$ac_pwd" || { ac_status=$?; break; }
1487 done
1490 test -n "$ac_init_help" && exit $ac_status
1491 if $ac_init_version; then
1492 cat <<\_ACEOF
1493 configure
1494 generated by GNU Autoconf 2.59e
1496 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1497 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1501 "Asterisk"
1502 _ACEOF
1503 exit
1505 cat >config.log <<_ACEOF
1506 This file contains any messages produced by compilers while
1507 running configure, to aid debugging if configure makes a mistake.
1509 It was created by $as_me, which was
1510 generated by GNU Autoconf 2.59e. Invocation command line was
1512 $ $0 $@
1514 _ACEOF
1515 exec 5>>config.log
1517 cat <<_ASUNAME
1518 ## --------- ##
1519 ## Platform. ##
1520 ## --------- ##
1522 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1523 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1524 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1525 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1526 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1528 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1529 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1531 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1532 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1533 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1534 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1535 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1536 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1537 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1539 _ASUNAME
1541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542 for as_dir in $PATH
1544 IFS=$as_save_IFS
1545 test -z "$as_dir" && as_dir=.
1546 echo "PATH: $as_dir"
1547 done
1548 IFS=$as_save_IFS
1550 } >&5
1552 cat >&5 <<_ACEOF
1555 ## ----------- ##
1556 ## Core tests. ##
1557 ## ----------- ##
1559 _ACEOF
1562 # Keep a trace of the command line.
1563 # Strip out --no-create and --no-recursion so they do not pile up.
1564 # Strip out --silent because we don't want to record it for future runs.
1565 # Also quote any args containing shell meta-characters.
1566 # Make two passes to allow for proper duplicate-argument suppression.
1567 ac_configure_args=
1568 ac_configure_args0=
1569 ac_configure_args1=
1570 ac_must_keep_next=false
1571 for ac_pass in 1 2
1573 for ac_arg
1575 case $ac_arg in
1576 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1578 | -silent | --silent | --silen | --sile | --sil)
1579 continue ;;
1580 *\'*)
1581 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1582 esac
1583 case $ac_pass in
1584 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1586 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1587 if test $ac_must_keep_next = true; then
1588 ac_must_keep_next=false # Got value, back to normal.
1589 else
1590 case $ac_arg in
1591 *=* | --config-cache | -C | -disable-* | --disable-* \
1592 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1593 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1594 | -with-* | --with-* | -without-* | --without-* | --x)
1595 case "$ac_configure_args0 " in
1596 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1597 esac
1599 -* ) ac_must_keep_next=true ;;
1600 esac
1602 ac_configure_args="$ac_configure_args '$ac_arg'"
1604 esac
1605 done
1606 done
1607 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1608 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1610 # When interrupted or exit'd, cleanup temporary files, and complete
1611 # config.log. We remove comments because anyway the quotes in there
1612 # would cause problems or look ugly.
1613 # WARNING: Use '\'' to represent an apostrophe within the trap.
1614 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1615 trap 'exit_status=$?
1616 # Save into config.log some information that might help in debugging.
1618 echo
1620 cat <<\_ASBOX
1621 ## ---------------- ##
1622 ## Cache variables. ##
1623 ## ---------------- ##
1624 _ASBOX
1625 echo
1626 # The following way of writing the cache mishandles newlines in values,
1628 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1629 eval ac_val=\$$ac_var
1630 case $ac_val in #(
1631 *${as_nl}*)
1632 case $ac_var in #(
1633 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1634 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1635 esac
1636 case $ac_var in #(
1637 _ | IFS | as_nl) ;; #(
1638 *) $as_unset $ac_var ;;
1639 esac ;;
1640 esac
1641 done
1642 (set) 2>&1 |
1643 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1644 *${as_nl}ac_space=\ *)
1645 sed -n \
1646 "s/'\''/'\''\\\\'\'''\''/g;
1647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1648 ;; #(
1650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1652 esac |
1653 sort
1655 echo
1657 cat <<\_ASBOX
1658 ## ----------------- ##
1659 ## Output variables. ##
1660 ## ----------------- ##
1661 _ASBOX
1662 echo
1663 for ac_var in $ac_subst_vars
1665 eval ac_val=\$$ac_var
1666 case $ac_val in
1667 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1668 esac
1669 echo "$ac_var='\''$ac_val'\''"
1670 done | sort
1671 echo
1673 if test -n "$ac_subst_files"; then
1674 cat <<\_ASBOX
1675 ## ------------------- ##
1676 ## File substitutions. ##
1677 ## ------------------- ##
1678 _ASBOX
1679 echo
1680 for ac_var in $ac_subst_files
1682 eval ac_val=\$$ac_var
1683 case $ac_val in
1684 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1685 esac
1686 echo "$ac_var='\''$ac_val'\''"
1687 done | sort
1688 echo
1691 if test -s confdefs.h; then
1692 cat <<\_ASBOX
1693 ## ----------- ##
1694 ## confdefs.h. ##
1695 ## ----------- ##
1696 _ASBOX
1697 echo
1698 cat confdefs.h
1699 echo
1701 test "$ac_signal" != 0 &&
1702 echo "$as_me: caught signal $ac_signal"
1703 echo "$as_me: exit $exit_status"
1704 } >&5
1705 rm -f core *.core core.conftest.* &&
1706 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1707 exit $exit_status
1709 for ac_signal in 1 2 13 15; do
1710 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1711 done
1712 ac_signal=0
1714 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1715 rm -f -r conftest* confdefs.h
1717 # Predefined preprocessor variables.
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_NAME "$PACKAGE_NAME"
1721 _ACEOF
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1726 _ACEOF
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1731 _ACEOF
1734 cat >>confdefs.h <<_ACEOF
1735 #define PACKAGE_STRING "$PACKAGE_STRING"
1736 _ACEOF
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1741 _ACEOF
1744 # Let the site file select an alternate cache file if it wants to.
1745 # Prefer explicitly selected file to automatically selected ones.
1746 if test -n "$CONFIG_SITE"; then
1747 set x "$CONFIG_SITE"
1748 elif test "x$prefix" != xNONE; then
1749 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1750 else
1751 set x "$ac_default_prefix/share/config.site" \
1752 "$ac_default_prefix/etc/config.site"
1754 shift
1755 for ac_site_file
1757 if test -r "$ac_site_file"; then
1758 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1759 echo "$as_me: loading site script $ac_site_file" >&6;}
1760 sed 's/^/| /' "$ac_site_file" >&5
1761 . "$ac_site_file"
1763 done
1765 if test -r "$cache_file"; then
1766 # Some versions of bash will fail to source /dev/null (special
1767 # files actually), so we avoid doing that.
1768 if test -f "$cache_file"; then
1769 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1770 echo "$as_me: loading cache $cache_file" >&6;}
1771 case $cache_file in
1772 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1773 *) . "./$cache_file";;
1774 esac
1776 else
1777 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1778 echo "$as_me: creating cache $cache_file" >&6;}
1779 >$cache_file
1782 # Check that the precious variables saved in the cache have kept the same
1783 # value.
1784 ac_cache_corrupted=false
1785 for ac_var in $ac_precious_vars; do
1786 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1787 eval ac_new_set=\$ac_env_${ac_var}_set
1788 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1789 eval ac_new_val=\$ac_env_${ac_var}_value
1790 case $ac_old_set,$ac_new_set in
1791 set,)
1792 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1793 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1794 ac_cache_corrupted=: ;;
1795 ,set)
1796 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1797 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1798 ac_cache_corrupted=: ;;
1799 ,);;
1801 if test "x$ac_old_val" != "x$ac_new_val"; then
1802 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1803 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1804 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1805 echo "$as_me: former value: $ac_old_val" >&2;}
1806 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1807 echo "$as_me: current value: $ac_new_val" >&2;}
1808 ac_cache_corrupted=:
1809 fi;;
1810 esac
1811 # Pass precious variables to config.status.
1812 if test "$ac_new_set" = set; then
1813 case $ac_new_val in
1814 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1815 *) ac_arg=$ac_var=$ac_new_val ;;
1816 esac
1817 case " $ac_configure_args " in
1818 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1819 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1820 esac
1822 done
1823 if $ac_cache_corrupted; then
1824 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1825 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1826 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1827 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1828 { (exit 1); exit 1; }; }
1847 ac_ext=c
1848 ac_cpp='$CPP $CPPFLAGS'
1849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855 # cross-compile macros
1856 ac_aux_dir=
1857 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1858 if test -f "$ac_dir/install-sh"; then
1859 ac_aux_dir=$ac_dir
1860 ac_install_sh="$ac_aux_dir/install-sh -c"
1861 break
1862 elif test -f "$ac_dir/install.sh"; then
1863 ac_aux_dir=$ac_dir
1864 ac_install_sh="$ac_aux_dir/install.sh -c"
1865 break
1866 elif test -f "$ac_dir/shtool"; then
1867 ac_aux_dir=$ac_dir
1868 ac_install_sh="$ac_aux_dir/shtool install -c"
1869 break
1871 done
1872 if test -z "$ac_aux_dir"; then
1873 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1874 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1875 { (exit 1); exit 1; }; }
1878 # These three variables are undocumented and unsupported,
1879 # and are intended to be withdrawn in a future Autoconf release.
1880 # They can cause serious problems if a builder's source tree is in a directory
1881 # whose full name contains unusual characters.
1882 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1883 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1884 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1887 # Make sure we can run config.sub.
1888 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1889 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1890 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1891 { (exit 1); exit 1; }; }
1893 { echo "$as_me:$LINENO: checking build system type" >&5
1894 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1895 if test "${ac_cv_build+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898 ac_build_alias=$build_alias
1899 test "x$ac_build_alias" = x &&
1900 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1901 test "x$ac_build_alias" = x &&
1902 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1903 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1904 { (exit 1); exit 1; }; }
1905 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1906 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1907 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1908 { (exit 1); exit 1; }; }
1911 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1912 echo "${ECHO_T}$ac_cv_build" >&6; }
1913 case $ac_cv_build in
1914 *-*-*) ;;
1915 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1916 echo "$as_me: error: invalid value of canonical build" >&2;}
1917 { (exit 1); exit 1; }; };;
1918 esac
1919 build=$ac_cv_build
1920 ac_save_IFS=$IFS; IFS='-'
1921 set x $ac_cv_build
1922 shift
1923 build_cpu=$1
1924 build_vendor=$2
1925 shift; shift
1926 # Remember, the first character of IFS is used to create $*,
1927 # except with old shells:
1928 build_os=$*
1929 IFS=$ac_save_IFS
1930 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1933 { echo "$as_me:$LINENO: checking host system type" >&5
1934 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1935 if test "${ac_cv_host+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938 if test "x$host_alias" = x; then
1939 ac_cv_host=$ac_cv_build
1940 else
1941 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1948 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1949 echo "${ECHO_T}$ac_cv_host" >&6; }
1950 case $ac_cv_host in
1951 *-*-*) ;;
1952 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1953 echo "$as_me: error: invalid value of canonical host" >&2;}
1954 { (exit 1); exit 1; }; };;
1955 esac
1956 host=$ac_cv_host
1957 ac_save_IFS=$IFS; IFS='-'
1958 set x $ac_cv_host
1959 shift
1960 host_cpu=$1
1961 host_vendor=$2
1962 shift; shift
1963 # Remember, the first character of IFS is used to create $*,
1964 # except with old shells:
1965 host_os=$*
1966 IFS=$ac_save_IFS
1967 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1970 { echo "$as_me:$LINENO: checking target system type" >&5
1971 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1972 if test "${ac_cv_target+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 if test "x$target_alias" = x; then
1976 ac_cv_target=$ac_cv_host
1977 else
1978 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1979 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1980 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1981 { (exit 1); exit 1; }; }
1985 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1986 echo "${ECHO_T}$ac_cv_target" >&6; }
1987 case $ac_cv_target in
1988 *-*-*) ;;
1989 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1990 echo "$as_me: error: invalid value of canonical target" >&2;}
1991 { (exit 1); exit 1; }; };;
1992 esac
1993 target=$ac_cv_target
1994 ac_save_IFS=$IFS; IFS='-'
1995 set x $ac_cv_target
1996 shift
1997 target_cpu=$1
1998 target_vendor=$2
1999 shift; shift
2000 # Remember, the first character of IFS is used to create $*,
2001 # except with old shells:
2002 target_os=$*
2003 IFS=$ac_save_IFS
2004 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2007 # The aliases save the names the user supplied, while $host etc.
2008 # will get canonicalized.
2009 test -n "$target_alias" &&
2010 test "$program_prefix$program_suffix$program_transform_name" = \
2011 NONENONEs,x,x, &&
2012 program_prefix=${target_alias}-
2014 # check existence of the package
2017 # specify output header file
2018 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2024 case "${host}" in
2025 *freebsd*)
2026 ac_default_prefix=/usr/local
2029 ac_default_prefix=/usr
2030 if test ${sysconfdir} = '${prefix}/etc'; then
2031 sysconfdir=/etc
2033 if test ${mandir} = '${prefix}/man'; then
2034 mandir=/usr/share/man
2037 esac
2039 if test ${localstatedir} = '${prefix}/var'; then
2040 localstatedir=/var
2043 ### ** Platform.
2045 cat >>confdefs.h <<_ACEOF
2046 #define PBX_PLATFORM "${host}"
2047 _ACEOF
2050 cat >>confdefs.h <<_ACEOF
2051 #define PBX_CPU "${host_cpu}"
2052 _ACEOF
2055 cat >>confdefs.h <<_ACEOF
2056 #define PBX_VENDOR "${host_vendor}"
2057 _ACEOF
2060 cat >>confdefs.h <<_ACEOF
2061 #define PBX_OS "${host_os}"
2062 _ACEOF
2065 # export some useful defines
2066 PBX_PLATFORM=${host}
2067 PBX_CPU=${host_cpu}
2068 PBX_VENDOR=${host_vendor}
2069 PBX_OS=${host_os}
2075 # check for uname
2076 if test -n "$ac_tool_prefix"; then
2077 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2078 set dummy ${ac_tool_prefix}uname; ac_word=$2
2079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2081 if test "${ac_cv_path_UNAME+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084 case $UNAME in
2085 [\\/]* | ?:[\\/]*)
2086 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2096 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2100 done
2101 done
2102 IFS=$as_save_IFS
2105 esac
2107 UNAME=$ac_cv_path_UNAME
2108 if test -n "$UNAME"; then
2109 { echo "$as_me:$LINENO: result: $UNAME" >&5
2110 echo "${ECHO_T}$UNAME" >&6; }
2111 else
2112 { echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6; }
2118 if test -z "$ac_cv_path_UNAME"; then
2119 ac_pt_UNAME=$UNAME
2120 # Extract the first word of "uname", so it can be a program name with args.
2121 set dummy uname; ac_word=$2
2122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 case $ac_pt_UNAME in
2128 [\\/]* | ?:[\\/]*)
2129 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2139 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 break 2
2143 done
2144 done
2145 IFS=$as_save_IFS
2148 esac
2150 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2151 if test -n "$ac_pt_UNAME"; then
2152 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2153 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2154 else
2155 { echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6; }
2159 if test "x$ac_pt_UNAME" = x; then
2160 UNAME="No"
2161 else
2162 case $cross_compiling:$ac_tool_warned in
2163 yes:)
2164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2165 whose name does not start with the host triplet. If you think this
2166 configuration is useful to you, please write to autoconf@gnu.org." >&5
2167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2168 whose name does not start with the host triplet. If you think this
2169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2170 ac_tool_warned=yes ;;
2171 esac
2172 UNAME=$ac_pt_UNAME
2174 else
2175 UNAME="$ac_cv_path_UNAME"
2178 if test ! x"${UNAME}" = xNo; then
2179 PBX_OSREV=$(${UNAME} -r)
2183 # guest OS type
2184 case "${host}" in
2185 cygwin*|mingw*|windows*|winnt)
2187 cat >>confdefs.h <<\_ACEOF
2188 #define Win32 1
2189 _ACEOF
2191 PBX_OSTYPE="CYGWIN"
2192 # this is ugly - KPF
2193 OSISWIN32=1
2196 *linux*)
2198 cat >>confdefs.h <<\_ACEOF
2199 #define Linux 1
2200 _ACEOF
2202 PBX_OSTYPE="Linux"
2204 *netbsd*)
2206 cat >>confdefs.h <<\_ACEOF
2207 #define NetBSD 1
2208 _ACEOF
2210 PBX_OSTYPE="NetBSD"
2212 *freebsd*)
2214 cat >>confdefs.h <<\_ACEOF
2215 #define FreeBSD 1
2216 _ACEOF
2218 PBX_OSTYPE="FreeBSD"
2219 # XXX temporary hack to let FreeBSD use the default paths
2220 # for local stuff. We need a better solution.
2221 if test x"${CPPFLAGS}" = x; then
2222 CPPFLAGS="-I /usr/local/include"
2224 if test x"${LDFLAGS}" = x; then
2225 LDFLAGS="-L /usr/local/lib"
2228 *openbsd*)
2230 cat >>confdefs.h <<\_ACEOF
2231 #define OpenBSD 1
2232 _ACEOF
2234 PBX_OSTYPE="OpenBSD"
2236 *sun*)
2238 cat >>confdefs.h <<\_ACEOF
2239 #define SunOS 1
2240 _ACEOF
2242 PBX_OSTYPE="SunOS"
2244 *darwin*)
2246 cat >>confdefs.h <<\_ACEOF
2247 #define Darwin 1
2248 _ACEOF
2250 PBX_OSTYPE="Darwin"
2254 cat >>confdefs.h <<\_ACEOF
2255 #define Unix 1
2256 _ACEOF
2258 PBX_OSTYPE="Unix"
2260 esac
2263 # This needs to be before any macros that use the C compiler
2265 cat >>confdefs.h <<\_ACEOF
2266 #define _GNU_SOURCE 1
2267 _ACEOF
2277 # cross-compile checks
2278 if test x"${build}" != x"${host}";
2279 then
2280 if test -n "$ac_tool_prefix"; then
2281 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2282 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285 if test "${ac_cv_prog_CC+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288 if test -n "$CC"; then
2289 ac_cv_prog_CC="$CC" # Let the user override the test.
2290 else
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 break 2
2302 done
2303 done
2304 IFS=$as_save_IFS
2308 CC=$ac_cv_prog_CC
2309 if test -n "$CC"; then
2310 { echo "$as_me:$LINENO: result: $CC" >&5
2311 echo "${ECHO_T}$CC" >&6; }
2312 else
2313 { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2319 if test -z "$ac_cv_prog_CC"; then
2320 ac_ct_CC=$CC
2321 # Extract the first word of "gcc", so it can be a program name with args.
2322 set dummy gcc; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 if test -n "$ac_ct_CC"; then
2329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_prog_ac_ct_CC="gcc"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 break 2
2342 done
2343 done
2344 IFS=$as_save_IFS
2348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2349 if test -n "$ac_ct_CC"; then
2350 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2351 echo "${ECHO_T}$ac_ct_CC" >&6; }
2352 else
2353 { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2357 if test "x$ac_ct_CC" = x; then
2358 CC=":"
2359 else
2360 case $cross_compiling:$ac_tool_warned in
2361 yes:)
2362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2363 whose name does not start with the host triplet. If you think this
2364 configuration is useful to you, please write to autoconf@gnu.org." >&5
2365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2366 whose name does not start with the host triplet. If you think this
2367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2368 ac_tool_warned=yes ;;
2369 esac
2370 CC=$ac_ct_CC
2372 else
2373 CC="$ac_cv_prog_CC"
2376 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2378 set dummy ${ac_tool_prefix}g++; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_CXX+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384 if test -n "$CXX"; then
2385 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2398 done
2399 done
2400 IFS=$as_save_IFS
2404 CXX=$ac_cv_prog_CXX
2405 if test -n "$CXX"; then
2406 { echo "$as_me:$LINENO: result: $CXX" >&5
2407 echo "${ECHO_T}$CXX" >&6; }
2408 else
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2415 if test -z "$ac_cv_prog_CXX"; then
2416 ac_ct_CXX=$CXX
2417 # Extract the first word of "g++", so it can be a program name with args.
2418 set dummy g++; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 else
2424 if test -n "$ac_ct_CXX"; then
2425 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_ac_ct_CXX="g++"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 break 2
2438 done
2439 done
2440 IFS=$as_save_IFS
2444 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2445 if test -n "$ac_ct_CXX"; then
2446 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2447 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2448 else
2449 { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2453 if test "x$ac_ct_CXX" = x; then
2454 CXX=":"
2455 else
2456 case $cross_compiling:$ac_tool_warned in
2457 yes:)
2458 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2459 whose name does not start with the host triplet. If you think this
2460 configuration is useful to you, please write to autoconf@gnu.org." >&5
2461 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2462 whose name does not start with the host triplet. If you think this
2463 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2464 ac_tool_warned=yes ;;
2465 esac
2466 CXX=$ac_ct_CXX
2468 else
2469 CXX="$ac_cv_prog_CXX"
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_RANLIB+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 if test -n "$RANLIB"; then
2481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2494 done
2495 done
2496 IFS=$as_save_IFS
2500 RANLIB=$ac_cv_prog_RANLIB
2501 if test -n "$RANLIB"; then
2502 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2503 echo "${ECHO_T}$RANLIB" >&6; }
2504 else
2505 { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2511 if test -z "$ac_cv_prog_RANLIB"; then
2512 ac_ct_RANLIB=$RANLIB
2513 # Extract the first word of "ranlib", so it can be a program name with args.
2514 set dummy ranlib; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520 if test -n "$ac_ct_RANLIB"; then
2521 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_ac_ct_RANLIB="ranlib"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2534 done
2535 done
2536 IFS=$as_save_IFS
2540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2541 if test -n "$ac_ct_RANLIB"; then
2542 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2543 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2544 else
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2549 if test "x$ac_ct_RANLIB" = x; then
2550 RANLIB=":"
2551 else
2552 case $cross_compiling:$ac_tool_warned in
2553 yes:)
2554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2555 whose name does not start with the host triplet. If you think this
2556 configuration is useful to you, please write to autoconf@gnu.org." >&5
2557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2558 whose name does not start with the host triplet. If you think this
2559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2560 ac_tool_warned=yes ;;
2561 esac
2562 RANLIB=$ac_ct_RANLIB
2564 else
2565 RANLIB="$ac_cv_prog_RANLIB"
2568 if test -n "$ac_tool_prefix"; then
2569 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2570 set dummy ${ac_tool_prefix}ar; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_AR+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576 if test -n "$AR"; then
2577 ac_cv_prog_AR="$AR" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AR="${ac_tool_prefix}ar"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2590 done
2591 done
2592 IFS=$as_save_IFS
2596 AR=$ac_cv_prog_AR
2597 if test -n "$AR"; then
2598 { echo "$as_me:$LINENO: result: $AR" >&5
2599 echo "${ECHO_T}$AR" >&6; }
2600 else
2601 { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2607 if test -z "$ac_cv_prog_AR"; then
2608 ac_ct_AR=$AR
2609 # Extract the first word of "ar", so it can be a program name with args.
2610 set dummy ar; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616 if test -n "$ac_ct_AR"; then
2617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_ac_ct_AR="ar"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2630 done
2631 done
2632 IFS=$as_save_IFS
2636 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2637 if test -n "$ac_ct_AR"; then
2638 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2639 echo "${ECHO_T}$ac_ct_AR" >&6; }
2640 else
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2645 if test "x$ac_ct_AR" = x; then
2646 AR=":"
2647 else
2648 case $cross_compiling:$ac_tool_warned in
2649 yes:)
2650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet. If you think this
2652 configuration is useful to you, please write to autoconf@gnu.org." >&5
2653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2654 whose name does not start with the host triplet. If you think this
2655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2656 ac_tool_warned=yes ;;
2657 esac
2658 AR=$ac_ct_AR
2660 else
2661 AR="$ac_cv_prog_AR"
2665 if test x"${PBX_OSTYPE}" = xWin32;
2666 then
2667 if test -n "$ac_tool_prefix"; then
2668 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2669 set dummy ${ac_tool_prefix}nm; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_NM+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675 if test -n "$NM"; then
2676 ac_cv_prog_NM="$NM" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_NM="${ac_tool_prefix}nm"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2689 done
2690 done
2691 IFS=$as_save_IFS
2695 NM=$ac_cv_prog_NM
2696 if test -n "$NM"; then
2697 { echo "$as_me:$LINENO: result: $NM" >&5
2698 echo "${ECHO_T}$NM" >&6; }
2699 else
2700 { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2706 if test -z "$ac_cv_prog_NM"; then
2707 ac_ct_NM=$NM
2708 # Extract the first word of "nm", so it can be a program name with args.
2709 set dummy nm; ac_word=$2
2710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715 if test -n "$ac_ct_NM"; then
2716 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_ac_ct_NM="nm"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2729 done
2730 done
2731 IFS=$as_save_IFS
2735 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2736 if test -n "$ac_ct_NM"; then
2737 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2738 echo "${ECHO_T}$ac_ct_NM" >&6; }
2739 else
2740 { echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6; }
2744 if test "x$ac_ct_NM" = x; then
2745 NM=":"
2746 else
2747 case $cross_compiling:$ac_tool_warned in
2748 yes:)
2749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2750 whose name does not start with the host triplet. If you think this
2751 configuration is useful to you, please write to autoconf@gnu.org." >&5
2752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2753 whose name does not start with the host triplet. If you think this
2754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2755 ac_tool_warned=yes ;;
2756 esac
2757 NM=$ac_ct_NM
2759 else
2760 NM="$ac_cv_prog_NM"
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}windres; ac_word=$2
2766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_WINDRES+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 if test -n "$WINDRES"; then
2772 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2785 done
2786 done
2787 IFS=$as_save_IFS
2791 WINDRES=$ac_cv_prog_WINDRES
2792 if test -n "$WINDRES"; then
2793 { echo "$as_me:$LINENO: result: $WINDRES" >&5
2794 echo "${ECHO_T}$WINDRES" >&6; }
2795 else
2796 { echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6; }
2802 if test -z "$ac_cv_prog_WINDRES"; then
2803 ac_ct_WINDRES=$WINDRES
2804 # Extract the first word of "windres", so it can be a program name with args.
2805 set dummy windres; ac_word=$2
2806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811 if test -n "$ac_ct_WINDRES"; then
2812 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_ac_ct_WINDRES="windres"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2827 IFS=$as_save_IFS
2831 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
2832 if test -n "$ac_ct_WINDRES"; then
2833 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
2834 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
2835 else
2836 { echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6; }
2840 if test "x$ac_ct_WINDRES" = x; then
2841 WINDRES=":"
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844 yes:)
2845 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2846 whose name does not start with the host triplet. If you think this
2847 configuration is useful to you, please write to autoconf@gnu.org." >&5
2848 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2849 whose name does not start with the host triplet. If you think this
2850 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2851 ac_tool_warned=yes ;;
2852 esac
2853 WINDRES=$ac_ct_WINDRES
2855 else
2856 WINDRES="$ac_cv_prog_WINDRES"
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
2861 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 if test -n "$DLLWRAP"; then
2868 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2881 done
2882 done
2883 IFS=$as_save_IFS
2887 DLLWRAP=$ac_cv_prog_DLLWRAP
2888 if test -n "$DLLWRAP"; then
2889 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
2890 echo "${ECHO_T}$DLLWRAP" >&6; }
2891 else
2892 { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2898 if test -z "$ac_cv_prog_DLLWRAP"; then
2899 ac_ct_DLLWRAP=$DLLWRAP
2900 # Extract the first word of "dllwrap", so it can be a program name with args.
2901 set dummy dllwrap; ac_word=$2
2902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2904 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 else
2907 if test -n "$ac_ct_DLLWRAP"; then
2908 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2921 done
2922 done
2923 IFS=$as_save_IFS
2927 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
2928 if test -n "$ac_ct_DLLWRAP"; then
2929 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
2930 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
2931 else
2932 { echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6; }
2936 if test "x$ac_ct_DLLWRAP" = x; then
2937 DLLWRAP=":"
2938 else
2939 case $cross_compiling:$ac_tool_warned in
2940 yes:)
2941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2942 whose name does not start with the host triplet. If you think this
2943 configuration is useful to you, please write to autoconf@gnu.org." >&5
2944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2945 whose name does not start with the host triplet. If you think this
2946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2947 ac_tool_warned=yes ;;
2948 esac
2949 DLLWRAP=$ac_ct_DLLWRAP
2951 else
2952 DLLWRAP="$ac_cv_prog_DLLWRAP"
2956 crossCompile="Yes"
2959 # Checks for programs.
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2987 done
2988 done
2989 IFS=$as_save_IFS
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995 { echo "$as_me:$LINENO: result: $CC" >&5
2996 echo "${ECHO_T}$CC" >&6; }
2997 else
2998 { echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6; }
3004 if test -z "$ac_cv_prog_CC"; then
3005 ac_ct_CC=$CC
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc; ac_word=$2
3008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_ac_ct_CC="gcc"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3027 done
3028 done
3029 IFS=$as_save_IFS
3033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3036 echo "${ECHO_T}$ac_ct_CC" >&6; }
3037 else
3038 { echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6; }
3042 if test "x$ac_ct_CC" = x; then
3043 CC=""
3044 else
3045 case $cross_compiling:$ac_tool_warned in
3046 yes:)
3047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3048 whose name does not start with the host triplet. If you think this
3049 configuration is useful to you, please write to autoconf@gnu.org." >&5
3050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3051 whose name does not start with the host triplet. If you think this
3052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3053 ac_tool_warned=yes ;;
3054 esac
3055 CC=$ac_ct_CC
3057 else
3058 CC="$ac_cv_prog_CC"
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}cc; ac_word=$2
3065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3067 if test "${ac_cv_prog_CC+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_CC="${ac_tool_prefix}cc"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3084 done
3085 done
3086 IFS=$as_save_IFS
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 { echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6; }
3094 else
3095 { echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6; }
3102 if test -z "$CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc; ac_word=$2
3105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3107 if test "${ac_cv_prog_CC+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 else
3113 ac_prog_rejected=no
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122 ac_prog_rejected=yes
3123 continue
3125 ac_cv_prog_CC="cc"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3129 done
3130 done
3131 IFS=$as_save_IFS
3133 if test $ac_prog_rejected = yes; then
3134 # We found a bogon in the path, so make sure we never use it.
3135 set dummy $ac_cv_prog_CC
3136 shift
3137 if test $# != 0; then
3138 # We chose a different compiler from the bogus one.
3139 # However, it has the same basename, so the bogon will be chosen
3140 # first if we set CC to just the basename; use the full file name.
3141 shift
3142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3147 CC=$ac_cv_prog_CC
3148 if test -n "$CC"; then
3149 { echo "$as_me:$LINENO: result: $CC" >&5
3150 echo "${ECHO_T}$CC" >&6; }
3151 else
3152 { echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6; }
3158 if test -z "$CC"; then
3159 if test -n "$ac_tool_prefix"; then
3160 for ac_prog in cl.exe
3162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3183 done
3184 done
3185 IFS=$as_save_IFS
3189 CC=$ac_cv_prog_CC
3190 if test -n "$CC"; then
3191 { echo "$as_me:$LINENO: result: $CC" >&5
3192 echo "${ECHO_T}$CC" >&6; }
3193 else
3194 { echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6; }
3199 test -n "$CC" && break
3200 done
3202 if test -z "$CC"; then
3203 ac_ct_CC=$CC
3204 for ac_prog in cl.exe
3206 # Extract the first word of "$ac_prog", so it can be a program name with args.
3207 set dummy $ac_prog; ac_word=$2
3208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_CC="$ac_prog"
3224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3227 done
3228 done
3229 IFS=$as_save_IFS
3233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3236 echo "${ECHO_T}$ac_ct_CC" >&6; }
3237 else
3238 { echo "$as_me:$LINENO: result: no" >&5
3239 echo "${ECHO_T}no" >&6; }
3243 test -n "$ac_ct_CC" && break
3244 done
3246 if test "x$ac_ct_CC" = x; then
3247 CC=""
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3252 whose name does not start with the host triplet. If you think this
3253 configuration is useful to you, please write to autoconf@gnu.org." >&5
3254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3255 whose name does not start with the host triplet. If you think this
3256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3257 ac_tool_warned=yes ;;
3258 esac
3259 CC=$ac_ct_CC
3266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details." >&5
3268 echo "$as_me: error: no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3272 # Provide some information about the compiler.
3273 echo "$as_me:$LINENO: checking for C compiler version" >&5
3274 ac_compiler=`set X $ac_compile; echo $2`
3275 { (ac_try="$ac_compiler --version >&5"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compiler --version >&5") 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }
3285 { (ac_try="$ac_compiler -v >&5"
3286 case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compiler -v >&5") 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }
3295 { (ac_try="$ac_compiler -V >&5"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_compiler -V >&5") 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h. */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3314 main ()
3318 return 0;
3320 _ACEOF
3321 ac_clean_files_save=$ac_clean_files
3322 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3323 # Try to create an executable without -o first, disregard a.out.
3324 # It will help us diagnose broken compilers, and finding out an intuition
3325 # of exeext.
3326 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3327 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3328 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3330 # List of possible output files, starting from the most likely.
3331 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3332 # only as a last resort. b.out is created by i960 compilers.
3333 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3335 # The IRIX 6 linker writes into existing files which may not be
3336 # executable, retaining their permissions. Remove them first so a
3337 # subsequent execution test works.
3338 ac_rmfiles=
3339 for ac_file in $ac_files
3341 case $ac_file in
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3343 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3344 esac
3345 done
3346 rm -f $ac_rmfiles
3348 if { (ac_try="$ac_link_default"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_link_default") 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; then
3358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3361 # so that the user can short-circuit this test for compilers unknown to
3362 # Autoconf.
3363 for ac_file in $ac_files
3365 test -f "$ac_file" || continue
3366 case $ac_file in
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3369 [ab].out )
3370 # We found the default executable, but exeext='' is most
3371 # certainly right.
3372 break;;
3373 *.* )
3374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3375 then :; else
3376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 # We set ac_cv_exeext here because the later test for it is not
3379 # safe: cross compilers may not add the suffix if given an `-o'
3380 # argument, so we may need to know it at that point already.
3381 # Even if this section looks crufty: it has the advantage of
3382 # actually working.
3383 break;;
3385 break;;
3386 esac
3387 done
3388 test "$ac_cv_exeext" = no && ac_cv_exeext=
3390 else
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3395 See \`config.log' for more details." >&5
3396 echo "$as_me: error: C compiler cannot create executables
3397 See \`config.log' for more details." >&2;}
3398 { (exit 77); exit 77; }; }
3401 ac_exeext=$ac_cv_exeext
3402 { echo "$as_me:$LINENO: result: $ac_file" >&5
3403 echo "${ECHO_T}$ac_file" >&6; }
3405 # Check that the compiler produces executables we can run. If not, either
3406 # the compiler is broken, or we cross compile.
3407 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3408 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3409 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3410 # If not cross compiling, check that we can run a simple program.
3411 if test "$cross_compiling" != yes; then
3412 if { ac_try='./$ac_file'
3413 { (case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_try") 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 cross_compiling=no
3423 else
3424 if test "$cross_compiling" = maybe; then
3425 cross_compiling=yes
3426 else
3427 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3428 If you meant to cross compile, use \`--host'.
3429 See \`config.log' for more details." >&5
3430 echo "$as_me: error: cannot run C compiled programs.
3431 If you meant to cross compile, use \`--host'.
3432 See \`config.log' for more details." >&2;}
3433 { (exit 1); exit 1; }; }
3437 { echo "$as_me:$LINENO: result: yes" >&5
3438 echo "${ECHO_T}yes" >&6; }
3440 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3441 ac_clean_files=$ac_clean_files_save
3442 # Check that the compiler produces executables we can run. If not, either
3443 # the compiler is broken, or we cross compile.
3444 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3445 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3446 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3447 echo "${ECHO_T}$cross_compiling" >&6; }
3449 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3450 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3451 if { (ac_try="$ac_link"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_link") 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; then
3461 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3462 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3463 # work properly (i.e., refer to `conftest.exe'), while it won't with
3464 # `rm'.
3465 for ac_file in conftest.exe conftest conftest.*; do
3466 test -f "$ac_file" || continue
3467 case $ac_file in
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3469 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3470 break;;
3471 * ) break;;
3472 esac
3473 done
3474 else
3475 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3476 See \`config.log' for more details." >&5
3477 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3478 See \`config.log' for more details." >&2;}
3479 { (exit 1); exit 1; }; }
3482 rm -f conftest$ac_cv_exeext
3483 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3484 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3486 rm -f conftest.$ac_ext
3487 EXEEXT=$ac_cv_exeext
3488 ac_exeext=$EXEEXT
3489 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3490 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3491 if test "${ac_cv_objext+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494 cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3502 main ()
3506 return 0;
3508 _ACEOF
3509 rm -f conftest.o conftest.obj
3510 if { (ac_try="$ac_compile"
3511 case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514 esac
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_compile") 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; then
3520 for ac_file in conftest.o conftest.obj conftest.*; do
3521 test -f "$ac_file" || continue;
3522 case $ac_file in
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3525 break;;
3526 esac
3527 done
3528 else
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3533 See \`config.log' for more details." >&5
3534 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3535 See \`config.log' for more details." >&2;}
3536 { (exit 1); exit 1; }; }
3539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3541 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3542 echo "${ECHO_T}$ac_cv_objext" >&6; }
3543 OBJEXT=$ac_cv_objext
3544 ac_objext=$OBJEXT
3545 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3546 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3547 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550 cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h. */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3558 main ()
3560 #ifndef __GNUC__
3561 choke me
3562 #endif
3565 return 0;
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3570 case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compile") 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3583 { (case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_try") 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; } &&
3592 { ac_try='test -s conftest.$ac_objext'
3593 { (case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_try") 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3602 ac_compiler_gnu=yes
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 ac_compiler_gnu=no
3610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3614 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3615 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3616 GCC=`test $ac_compiler_gnu = yes && echo yes`
3617 ac_test_CFLAGS=${CFLAGS+set}
3618 ac_save_CFLAGS=$CFLAGS
3619 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3620 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3621 if test "${ac_cv_prog_cc_g+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624 ac_save_c_werror_flag=$ac_c_werror_flag
3625 ac_c_werror_flag=yes
3626 ac_cv_prog_cc_g=no
3627 CFLAGS="-g"
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3636 main ()
3640 return 0;
3642 _ACEOF
3643 rm -f conftest.$ac_objext
3644 if { (ac_try="$ac_compile"
3645 case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650 (eval "$ac_compile") 2>conftest.er1
3651 ac_status=$?
3652 grep -v '^ *+' conftest.er1 >conftest.err
3653 rm -f conftest.er1
3654 cat conftest.err >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3658 { (case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_try") 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest.$ac_objext'
3668 { (case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_try") 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_cv_prog_cc_g=yes
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3682 CFLAGS=""
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h. */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3691 main ()
3695 return 0;
3697 _ACEOF
3698 rm -f conftest.$ac_objext
3699 if { (ac_try="$ac_compile"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_compile") 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3713 { (case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_try") 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest.$ac_objext'
3723 { (case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_try") 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3733 else
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 ac_c_werror_flag=$ac_save_c_werror_flag
3738 CFLAGS="-g"
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3747 main ()
3751 return 0;
3753 _ACEOF
3754 rm -f conftest.$ac_objext
3755 if { (ac_try="$ac_compile"
3756 case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759 esac
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_compile") 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3769 { (case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_try") 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; } &&
3778 { ac_try='test -s conftest.$ac_objext'
3779 { (case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784 (eval "$ac_try") 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 ac_cv_prog_cc_g=yes
3789 else
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3803 ac_c_werror_flag=$ac_save_c_werror_flag
3805 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3806 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3807 if test "$ac_test_CFLAGS" = set; then
3808 CFLAGS=$ac_save_CFLAGS
3809 elif test $ac_cv_prog_cc_g = yes; then
3810 if test "$GCC" = yes; then
3811 CFLAGS="-g -O2"
3812 else
3813 CFLAGS="-g"
3815 else
3816 if test "$GCC" = yes; then
3817 CFLAGS="-O2"
3818 else
3819 CFLAGS=
3822 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3823 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3824 if test "${ac_cv_prog_cc_c89+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827 ac_cv_prog_cc_c89=no
3828 ac_save_CC=$CC
3829 cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h. */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3835 #include <stdarg.h>
3836 #include <stdio.h>
3837 #include <sys/types.h>
3838 #include <sys/stat.h>
3839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3840 struct buf { int x; };
3841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3842 static char *e (p, i)
3843 char **p;
3844 int i;
3846 return p[i];
3848 static char *f (char * (*g) (char **, int), char **p, ...)
3850 char *s;
3851 va_list v;
3852 va_start (v,p);
3853 s = g (p, va_arg (v,int));
3854 va_end (v);
3855 return s;
3858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3859 function prototypes and stuff, but not '\xHH' hex character constants.
3860 These don't provoke an error unfortunately, instead are silently treated
3861 as 'x'. The following induces an error, until -std is added to get
3862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3863 array size at least. It's necessary to write '\x00'==0 to get something
3864 that's true only with -std. */
3865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3867 int test (int i, double x);
3868 struct s1 {int (*f) (int a);};
3869 struct s2 {int (*f) (double a);};
3870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3871 int argc;
3872 char **argv;
3874 main ()
3876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3878 return 0;
3880 _ACEOF
3881 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3884 CC="$ac_save_CC $ac_arg"
3885 rm -f conftest.$ac_objext
3886 if { (ac_try="$ac_compile"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_compile") 2>conftest.er1
3893 ac_status=$?
3894 grep -v '^ *+' conftest.er1 >conftest.err
3895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3900 { (case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903 esac
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_try") 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; } &&
3909 { ac_try='test -s conftest.$ac_objext'
3910 { (case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_try") 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_prog_cc_c89=$ac_arg
3920 else
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3927 rm -f conftest.err conftest.$ac_objext
3928 test "x$ac_cv_prog_cc_c89" != "xno" && break
3929 done
3930 rm -f conftest.$ac_ext
3931 CC=$ac_save_CC
3934 # AC_CACHE_VAL
3935 case "x$ac_cv_prog_cc_c89" in
3937 { echo "$as_me:$LINENO: result: none needed" >&5
3938 echo "${ECHO_T}none needed" >&6; } ;;
3939 xno)
3940 { echo "$as_me:$LINENO: result: unsupported" >&5
3941 echo "${ECHO_T}unsupported" >&6; } ;;
3943 CC="$CC $ac_cv_prog_cc_c89"
3944 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3945 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3946 esac
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955 ac_ext=cpp
3956 ac_cpp='$CXXCPP $CPPFLAGS'
3957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3960 if test -z "$CXX"; then
3961 if test -n "$CCC"; then
3962 CXX=$CCC
3963 else
3964 if test -n "$ac_tool_prefix"; then
3965 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3971 if test "${ac_cv_prog_CXX+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974 if test -n "$CXX"; then
3975 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3976 else
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3984 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 break 2
3988 done
3989 done
3990 IFS=$as_save_IFS
3994 CXX=$ac_cv_prog_CXX
3995 if test -n "$CXX"; then
3996 { echo "$as_me:$LINENO: result: $CXX" >&5
3997 echo "${ECHO_T}$CXX" >&6; }
3998 else
3999 { echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6; }
4004 test -n "$CXX" && break
4005 done
4007 if test -z "$CXX"; then
4008 ac_ct_CXX=$CXX
4009 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4011 # Extract the first word of "$ac_prog", so it can be a program name with args.
4012 set dummy $ac_prog; ac_word=$2
4013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4015 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 if test -n "$ac_ct_CXX"; then
4019 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4020 else
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4028 ac_cv_prog_ac_ct_CXX="$ac_prog"
4029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 break 2
4032 done
4033 done
4034 IFS=$as_save_IFS
4038 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4039 if test -n "$ac_ct_CXX"; then
4040 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4041 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4042 else
4043 { echo "$as_me:$LINENO: result: no" >&5
4044 echo "${ECHO_T}no" >&6; }
4048 test -n "$ac_ct_CXX" && break
4049 done
4051 if test "x$ac_ct_CXX" = x; then
4052 CXX="g++"
4053 else
4054 case $cross_compiling:$ac_tool_warned in
4055 yes:)
4056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4057 whose name does not start with the host triplet. If you think this
4058 configuration is useful to you, please write to autoconf@gnu.org." >&5
4059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4060 whose name does not start with the host triplet. If you think this
4061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4062 ac_tool_warned=yes ;;
4063 esac
4064 CXX=$ac_ct_CXX
4070 # Provide some information about the compiler.
4071 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4072 ac_compiler=`set X $ac_compile; echo $2`
4073 { (ac_try="$ac_compiler --version >&5"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compiler --version >&5") 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }
4083 { (ac_try="$ac_compiler -v >&5"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_compiler -v >&5") 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }
4093 { (ac_try="$ac_compiler -V >&5"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_compiler -V >&5") 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }
4104 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4105 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4106 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109 cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h. */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4117 main ()
4119 #ifndef __GNUC__
4120 choke me
4121 #endif
4124 return 0;
4126 _ACEOF
4127 rm -f conftest.$ac_objext
4128 if { (ac_try="$ac_compile"
4129 case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_compile") 2>conftest.er1
4135 ac_status=$?
4136 grep -v '^ *+' conftest.er1 >conftest.err
4137 rm -f conftest.er1
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_try") 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 ac_compiler_gnu=yes
4162 else
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 ac_compiler_gnu=no
4169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4170 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4173 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4174 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4175 GXX=`test $ac_compiler_gnu = yes && echo yes`
4176 ac_test_CXXFLAGS=${CXXFLAGS+set}
4177 ac_save_CXXFLAGS=$CXXFLAGS
4178 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4179 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4180 if test "${ac_cv_prog_cxx_g+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4184 ac_cxx_werror_flag=yes
4185 ac_cv_prog_cxx_g=no
4186 CXXFLAGS="-g"
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4195 main ()
4199 return 0;
4201 _ACEOF
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4204 case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207 esac
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4210 ac_status=$?
4211 grep -v '^ *+' conftest.er1 >conftest.err
4212 rm -f conftest.er1
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4217 { (case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_try") 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 ac_cv_prog_cxx_g=yes
4237 else
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 CXXFLAGS=""
4242 cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h. */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4250 main ()
4254 return 0;
4256 _ACEOF
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest.$ac_objext'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_try") 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4292 else
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4297 CXXFLAGS="-g"
4298 cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h. */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4306 main ()
4310 return 0;
4312 _ACEOF
4313 rm -f conftest.$ac_objext
4314 if { (ac_try="$ac_compile"
4315 case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318 esac
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_compile") 2>conftest.er1
4321 ac_status=$?
4322 grep -v '^ *+' conftest.er1 >conftest.err
4323 rm -f conftest.er1
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4328 { (case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_try") 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; } &&
4337 { ac_try='test -s conftest.$ac_objext'
4338 { (case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341 esac
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_try") 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_prog_cxx_g=yes
4348 else
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4364 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4365 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4366 if test "$ac_test_CXXFLAGS" = set; then
4367 CXXFLAGS=$ac_save_CXXFLAGS
4368 elif test $ac_cv_prog_cxx_g = yes; then
4369 if test "$GXX" = yes; then
4370 CXXFLAGS="-g -O2"
4371 else
4372 CXXFLAGS="-g"
4374 else
4375 if test "$GXX" = yes; then
4376 CXXFLAGS="-O2"
4377 else
4378 CXXFLAGS=
4381 ac_ext=c
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387 ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4394 # On Suns, sometimes $CPP names a directory.
4395 if test -n "$CPP" && test -d "$CPP"; then
4396 CPP=
4398 if test -z "$CPP"; then
4399 if test "${ac_cv_prog_CPP+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 # Double quotes because CPP needs to be expanded
4403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4405 ac_preproc_ok=false
4406 for ac_c_preproc_warn_flag in '' yes
4408 # Use a header file that comes with gcc, so configuring glibc
4409 # with a fresh cross-compiler works.
4410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4411 # <limits.h> exists even on freestanding compilers.
4412 # On the NeXT, cc -E runs the code through the compiler's parser,
4413 # not just through cpp. "Syntax error" is here to catch this case.
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #ifdef __STDC__
4421 # include <limits.h>
4422 #else
4423 # include <assert.h>
4424 #endif
4425 Syntax error
4426 _ACEOF
4427 if { (ac_try="$ac_cpp conftest.$ac_ext"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } >/dev/null; then
4440 if test -s conftest.err; then
4441 ac_cpp_err=$ac_c_preproc_warn_flag
4442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4443 else
4444 ac_cpp_err=
4446 else
4447 ac_cpp_err=yes
4449 if test -z "$ac_cpp_err"; then
4451 else
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 # Broken: fails on valid input.
4456 continue
4459 rm -f conftest.err conftest.$ac_ext
4461 # OK, works on sane cases. Now check whether nonexistent headers
4462 # can be detected and how.
4463 cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h. */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <ac_nonexistent.h>
4470 _ACEOF
4471 if { (ac_try="$ac_cpp conftest.$ac_ext"
4472 case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4478 ac_status=$?
4479 grep -v '^ *+' conftest.er1 >conftest.err
4480 rm -f conftest.er1
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } >/dev/null; then
4484 if test -s conftest.err; then
4485 ac_cpp_err=$ac_c_preproc_warn_flag
4486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4487 else
4488 ac_cpp_err=
4490 else
4491 ac_cpp_err=yes
4493 if test -z "$ac_cpp_err"; then
4494 # Broken: success on invalid input.
4495 continue
4496 else
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 # Passes both tests.
4501 ac_preproc_ok=:
4502 break
4505 rm -f conftest.err conftest.$ac_ext
4507 done
4508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4509 rm -f conftest.err conftest.$ac_ext
4510 if $ac_preproc_ok; then
4511 break
4514 done
4515 ac_cv_prog_CPP=$CPP
4518 CPP=$ac_cv_prog_CPP
4519 else
4520 ac_cv_prog_CPP=$CPP
4522 { echo "$as_me:$LINENO: result: $CPP" >&5
4523 echo "${ECHO_T}$CPP" >&6; }
4524 ac_preproc_ok=false
4525 for ac_c_preproc_warn_flag in '' yes
4527 # Use a header file that comes with gcc, so configuring glibc
4528 # with a fresh cross-compiler works.
4529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4530 # <limits.h> exists even on freestanding compilers.
4531 # On the NeXT, cc -E runs the code through the compiler's parser,
4532 # not just through cpp. "Syntax error" is here to catch this case.
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 #ifdef __STDC__
4540 # include <limits.h>
4541 #else
4542 # include <assert.h>
4543 #endif
4544 Syntax error
4545 _ACEOF
4546 if { (ac_try="$ac_cpp conftest.$ac_ext"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } >/dev/null; then
4559 if test -s conftest.err; then
4560 ac_cpp_err=$ac_c_preproc_warn_flag
4561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4562 else
4563 ac_cpp_err=
4565 else
4566 ac_cpp_err=yes
4568 if test -z "$ac_cpp_err"; then
4570 else
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 # Broken: fails on valid input.
4575 continue
4578 rm -f conftest.err conftest.$ac_ext
4580 # OK, works on sane cases. Now check whether nonexistent headers
4581 # can be detected and how.
4582 cat >conftest.$ac_ext <<_ACEOF
4583 /* confdefs.h. */
4584 _ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4588 #include <ac_nonexistent.h>
4589 _ACEOF
4590 if { (ac_try="$ac_cpp conftest.$ac_ext"
4591 case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594 esac
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } >/dev/null; then
4603 if test -s conftest.err; then
4604 ac_cpp_err=$ac_c_preproc_warn_flag
4605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4606 else
4607 ac_cpp_err=
4609 else
4610 ac_cpp_err=yes
4612 if test -z "$ac_cpp_err"; then
4613 # Broken: success on invalid input.
4614 continue
4615 else
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4619 # Passes both tests.
4620 ac_preproc_ok=:
4621 break
4624 rm -f conftest.err conftest.$ac_ext
4626 done
4627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4628 rm -f conftest.err conftest.$ac_ext
4629 if $ac_preproc_ok; then
4631 else
4632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4633 See \`config.log' for more details." >&5
4634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4635 See \`config.log' for more details." >&2;}
4636 { (exit 1); exit 1; }; }
4639 ac_ext=c
4640 ac_cpp='$CPP $CPPFLAGS'
4641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645 ac_ext=cpp
4646 ac_cpp='$CXXCPP $CPPFLAGS'
4647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4650 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4651 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4652 if test -z "$CXXCPP"; then
4653 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656 # Double quotes because CXXCPP needs to be expanded
4657 for CXXCPP in "$CXX -E" "/lib/cpp"
4659 ac_preproc_ok=false
4660 for ac_cxx_preproc_warn_flag in '' yes
4662 # Use a header file that comes with gcc, so configuring glibc
4663 # with a fresh cross-compiler works.
4664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 # <limits.h> exists even on freestanding compilers.
4666 # On the NeXT, cc -E runs the code through the compiler's parser,
4667 # not just through cpp. "Syntax error" is here to catch this case.
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 #ifdef __STDC__
4675 # include <limits.h>
4676 #else
4677 # include <assert.h>
4678 #endif
4679 Syntax error
4680 _ACEOF
4681 if { (ac_try="$ac_cpp conftest.$ac_ext"
4682 case "(($ac_try" in
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4685 esac
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4688 ac_status=$?
4689 grep -v '^ *+' conftest.er1 >conftest.err
4690 rm -f conftest.er1
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } >/dev/null; then
4694 if test -s conftest.err; then
4695 ac_cpp_err=$ac_cxx_preproc_warn_flag
4696 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4697 else
4698 ac_cpp_err=
4700 else
4701 ac_cpp_err=yes
4703 if test -z "$ac_cpp_err"; then
4705 else
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 # Broken: fails on valid input.
4710 continue
4713 rm -f conftest.err conftest.$ac_ext
4715 # OK, works on sane cases. Now check whether nonexistent headers
4716 # can be detected and how.
4717 cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h. */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4723 #include <ac_nonexistent.h>
4724 _ACEOF
4725 if { (ac_try="$ac_cpp conftest.$ac_ext"
4726 case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } >/dev/null; then
4738 if test -s conftest.err; then
4739 ac_cpp_err=$ac_cxx_preproc_warn_flag
4740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4741 else
4742 ac_cpp_err=
4744 else
4745 ac_cpp_err=yes
4747 if test -z "$ac_cpp_err"; then
4748 # Broken: success on invalid input.
4749 continue
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 # Passes both tests.
4755 ac_preproc_ok=:
4756 break
4759 rm -f conftest.err conftest.$ac_ext
4761 done
4762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4763 rm -f conftest.err conftest.$ac_ext
4764 if $ac_preproc_ok; then
4765 break
4768 done
4769 ac_cv_prog_CXXCPP=$CXXCPP
4772 CXXCPP=$ac_cv_prog_CXXCPP
4773 else
4774 ac_cv_prog_CXXCPP=$CXXCPP
4776 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4777 echo "${ECHO_T}$CXXCPP" >&6; }
4778 ac_preproc_ok=false
4779 for ac_cxx_preproc_warn_flag in '' yes
4781 # Use a header file that comes with gcc, so configuring glibc
4782 # with a fresh cross-compiler works.
4783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4784 # <limits.h> exists even on freestanding compilers.
4785 # On the NeXT, cc -E runs the code through the compiler's parser,
4786 # not just through cpp. "Syntax error" is here to catch this case.
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 #ifdef __STDC__
4794 # include <limits.h>
4795 #else
4796 # include <assert.h>
4797 #endif
4798 Syntax error
4799 _ACEOF
4800 if { (ac_try="$ac_cpp conftest.$ac_ext"
4801 case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804 esac
4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } >/dev/null; then
4813 if test -s conftest.err; then
4814 ac_cpp_err=$ac_cxx_preproc_warn_flag
4815 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4816 else
4817 ac_cpp_err=
4819 else
4820 ac_cpp_err=yes
4822 if test -z "$ac_cpp_err"; then
4824 else
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4828 # Broken: fails on valid input.
4829 continue
4832 rm -f conftest.err conftest.$ac_ext
4834 # OK, works on sane cases. Now check whether nonexistent headers
4835 # can be detected and how.
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h. */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include <ac_nonexistent.h>
4843 _ACEOF
4844 if { (ac_try="$ac_cpp conftest.$ac_ext"
4845 case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848 esac
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } >/dev/null; then
4857 if test -s conftest.err; then
4858 ac_cpp_err=$ac_cxx_preproc_warn_flag
4859 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4860 else
4861 ac_cpp_err=
4863 else
4864 ac_cpp_err=yes
4866 if test -z "$ac_cpp_err"; then
4867 # Broken: success on invalid input.
4868 continue
4869 else
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4873 # Passes both tests.
4874 ac_preproc_ok=:
4875 break
4878 rm -f conftest.err conftest.$ac_ext
4880 done
4881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4882 rm -f conftest.err conftest.$ac_ext
4883 if $ac_preproc_ok; then
4885 else
4886 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4887 See \`config.log' for more details." >&5
4888 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4889 See \`config.log' for more details." >&2;}
4890 { (exit 1); exit 1; }; }
4893 ac_ext=c
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4899 for ac_prog in gawk mawk nawk awk
4901 # Extract the first word of "$ac_prog", so it can be a program name with args.
4902 set dummy $ac_prog; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_prog_AWK+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 if test -n "$AWK"; then
4909 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_AWK="$ac_prog"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4922 done
4923 done
4924 IFS=$as_save_IFS
4928 AWK=$ac_cv_prog_AWK
4929 if test -n "$AWK"; then
4930 { echo "$as_me:$LINENO: result: $AWK" >&5
4931 echo "${ECHO_T}$AWK" >&6; }
4932 else
4933 { echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6; }
4938 test -n "$AWK" && break
4939 done
4941 # Find a good install program. We prefer a C program (faster),
4942 # so one script is as good as another. But avoid the broken or
4943 # incompatible versions:
4944 # SysV /etc/install, /usr/sbin/install
4945 # SunOS /usr/etc/install
4946 # IRIX /sbin/install
4947 # AIX /bin/install
4948 # AmigaOS /C/install, which installs bootblocks on floppy discs
4949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4952 # OS/2's system install, which has a completely different semantic
4953 # ./install, which can be erroneously created by make from ./install.sh.
4954 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4955 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4956 if test -z "$INSTALL"; then
4957 if test "${ac_cv_path_install+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 # Account for people who put trailing slashes in PATH elements.
4966 case $as_dir/ in
4967 ./ | .// | /cC/* | \
4968 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4969 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4970 /usr/ucb/* ) ;;
4972 # OSF1 and SCO ODT 3.0 have their own names for install.
4973 # Don't use installbsd from OSF since it installs stuff as root
4974 # by default.
4975 for ac_prog in ginstall scoinst install; do
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4978 if test $ac_prog = install &&
4979 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4980 # AIX install. It has an incompatible calling convention.
4982 elif test $ac_prog = install &&
4983 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4984 # program-specific install script used by HP pwplus--don't use.
4986 else
4987 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4988 break 3
4991 done
4992 done
4994 esac
4995 done
4996 IFS=$as_save_IFS
5000 if test "${ac_cv_path_install+set}" = set; then
5001 INSTALL=$ac_cv_path_install
5002 else
5003 # As a last resort, use the slow shell script. Don't cache a
5004 # value for INSTALL within a source directory, because that will
5005 # break other packages using the cache if that directory is
5006 # removed, or if the value is a relative name.
5007 INSTALL=$ac_install_sh
5010 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5011 echo "${ECHO_T}$INSTALL" >&6; }
5013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5014 # It thinks the first close brace ends the variable substitution.
5015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5019 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5021 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5022 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5023 LN_S=$as_ln_s
5024 if test "$LN_S" = "ln -s"; then
5025 { echo "$as_me:$LINENO: result: yes" >&5
5026 echo "${ECHO_T}yes" >&6; }
5027 else
5028 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5029 echo "${ECHO_T}no, using $LN_S" >&6; }
5032 if test -n "$ac_tool_prefix"; then
5033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5034 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5037 if test "${ac_cv_prog_RANLIB+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040 if test -n "$RANLIB"; then
5041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5054 done
5055 done
5056 IFS=$as_save_IFS
5060 RANLIB=$ac_cv_prog_RANLIB
5061 if test -n "$RANLIB"; then
5062 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5063 echo "${ECHO_T}$RANLIB" >&6; }
5064 else
5065 { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5071 if test -z "$ac_cv_prog_RANLIB"; then
5072 ac_ct_RANLIB=$RANLIB
5073 # Extract the first word of "ranlib", so it can be a program name with args.
5074 set dummy ranlib; ac_word=$2
5075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5077 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080 if test -n "$ac_ct_RANLIB"; then
5081 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5082 else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5086 IFS=$as_save_IFS
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5090 ac_cv_prog_ac_ct_RANLIB="ranlib"
5091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 break 2
5094 done
5095 done
5096 IFS=$as_save_IFS
5100 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5101 if test -n "$ac_ct_RANLIB"; then
5102 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5103 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5104 else
5105 { echo "$as_me:$LINENO: result: no" >&5
5106 echo "${ECHO_T}no" >&6; }
5109 if test "x$ac_ct_RANLIB" = x; then
5110 RANLIB=":"
5111 else
5112 case $cross_compiling:$ac_tool_warned in
5113 yes:)
5114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5115 whose name does not start with the host triplet. If you think this
5116 configuration is useful to you, please write to autoconf@gnu.org." >&5
5117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5118 whose name does not start with the host triplet. If you think this
5119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5120 ac_tool_warned=yes ;;
5121 esac
5122 RANLIB=$ac_ct_RANLIB
5124 else
5125 RANLIB="$ac_cv_prog_RANLIB"
5128 { echo "$as_me:$LINENO: checking for GNU make" >&5
5129 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5130 if test "${GNU_MAKE+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 GNU_MAKE='Not Found' ;
5134 for a in make gmake gnumake ; do
5135 if test -z "$a" ; then continue ; fi ;
5136 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
5137 GNU_MAKE=$a ;
5138 break;
5140 done ;
5143 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
5144 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
5145 if test "x$GNU_MAKE" = "xNot Found" ; then
5146 echo " *** Please install GNU make. It is required to build Asterisk!"
5147 exit 1
5152 # Extract the first word of "grep", so it can be a program name with args.
5153 set dummy grep; ac_word=$2
5154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5156 if test "${ac_cv_path_GREP+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 case $GREP in
5160 [\\/]* | ?:[\\/]*)
5161 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5175 done
5176 done
5177 IFS=$as_save_IFS
5179 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
5181 esac
5183 GREP=$ac_cv_path_GREP
5184 if test -n "$GREP"; then
5185 { echo "$as_me:$LINENO: result: $GREP" >&5
5186 echo "${ECHO_T}$GREP" >&6; }
5187 else
5188 { echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6; }
5193 # Extract the first word of "ar", so it can be a program name with args.
5194 set dummy ar; ac_word=$2
5195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5197 if test "${ac_cv_path_AR+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 case $AR in
5201 [\\/]* | ?:[\\/]*)
5202 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5216 done
5217 done
5218 IFS=$as_save_IFS
5220 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
5222 esac
5224 AR=$ac_cv_path_AR
5225 if test -n "$AR"; then
5226 { echo "$as_me:$LINENO: result: $AR" >&5
5227 echo "${ECHO_T}$AR" >&6; }
5228 else
5229 { echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6; }
5234 # Extract the first word of "find", so it can be a program name with args.
5235 set dummy find; ac_word=$2
5236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5238 if test "${ac_cv_path_FIND+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 case $FIND in
5242 [\\/]* | ?:[\\/]*)
5243 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5259 IFS=$as_save_IFS
5261 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
5263 esac
5265 FIND=$ac_cv_path_FIND
5266 if test -n "$FIND"; then
5267 { echo "$as_me:$LINENO: result: $FIND" >&5
5268 echo "${ECHO_T}$FIND" >&6; }
5269 else
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5275 # Extract the first word of "compress", so it can be a program name with args.
5276 set dummy compress; ac_word=$2
5277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279 if test "${ac_cv_path_COMPRESS+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282 case $COMPRESS in
5283 [\\/]* | ?:[\\/]*)
5284 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5300 IFS=$as_save_IFS
5302 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
5304 esac
5306 COMPRESS=$ac_cv_path_COMPRESS
5307 if test -n "$COMPRESS"; then
5308 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
5309 echo "${ECHO_T}$COMPRESS" >&6; }
5310 else
5311 { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5316 # Extract the first word of "basename", so it can be a program name with args.
5317 set dummy basename; ac_word=$2
5318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5320 if test "${ac_cv_path_BASENAME+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323 case $BASENAME in
5324 [\\/]* | ?:[\\/]*)
5325 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5335 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 break 2
5339 done
5340 done
5341 IFS=$as_save_IFS
5343 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
5345 esac
5347 BASENAME=$ac_cv_path_BASENAME
5348 if test -n "$BASENAME"; then
5349 { echo "$as_me:$LINENO: result: $BASENAME" >&5
5350 echo "${ECHO_T}$BASENAME" >&6; }
5351 else
5352 { echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6; }
5357 # Extract the first word of "dirname", so it can be a program name with args.
5358 set dummy dirname; ac_word=$2
5359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5361 if test "${ac_cv_path_DIRNAME+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 case $DIRNAME in
5365 [\\/]* | ?:[\\/]*)
5366 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5376 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5380 done
5381 done
5382 IFS=$as_save_IFS
5384 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
5386 esac
5388 DIRNAME=$ac_cv_path_DIRNAME
5389 if test -n "$DIRNAME"; then
5390 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5391 echo "${ECHO_T}$DIRNAME" >&6; }
5392 else
5393 { echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6; }
5398 # Extract the first word of "sh", so it can be a program name with args.
5399 set dummy sh; ac_word=$2
5400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5402 if test "${ac_cv_path_SHELL+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 case $SHELL in
5406 [\\/]* | ?:[\\/]*)
5407 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5421 done
5422 done
5423 IFS=$as_save_IFS
5425 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
5427 esac
5429 SHELL=$ac_cv_path_SHELL
5430 if test -n "$SHELL"; then
5431 { echo "$as_me:$LINENO: result: $SHELL" >&5
5432 echo "${ECHO_T}$SHELL" >&6; }
5433 else
5434 { echo "$as_me:$LINENO: result: no" >&5
5435 echo "${ECHO_T}no" >&6; }
5439 # Extract the first word of "ln", so it can be a program name with args.
5440 set dummy ln; ac_word=$2
5441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5443 if test "${ac_cv_path_LN+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446 case $LN in
5447 [\\/]* | ?:[\\/]*)
5448 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5462 done
5463 done
5464 IFS=$as_save_IFS
5466 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
5468 esac
5470 LN=$ac_cv_path_LN
5471 if test -n "$LN"; then
5472 { echo "$as_me:$LINENO: result: $LN" >&5
5473 echo "${ECHO_T}$LN" >&6; }
5474 else
5475 { echo "$as_me:$LINENO: result: no" >&5
5476 echo "${ECHO_T}no" >&6; }
5480 # Extract the first word of "dot", so it can be a program name with args.
5481 set dummy dot; ac_word=$2
5482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5484 if test "${ac_cv_path_DOT+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 else
5487 case $DOT in
5488 [\\/]* | ?:[\\/]*)
5489 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5503 done
5504 done
5505 IFS=$as_save_IFS
5507 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
5509 esac
5511 DOT=$ac_cv_path_DOT
5512 if test -n "$DOT"; then
5513 { echo "$as_me:$LINENO: result: $DOT" >&5
5514 echo "${ECHO_T}$DOT" >&6; }
5515 else
5516 { echo "$as_me:$LINENO: result: no" >&5
5517 echo "${ECHO_T}no" >&6; }
5522 ac_ext=c
5523 ac_cpp='$CPP $CPPFLAGS'
5524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5529 # Check whether --enable-dev-mode was given.
5530 if test "${enable_dev_mode+set}" = set; then
5531 enableval=$enable_dev_mode; case "${enableval}" in
5532 y|ye|yes) AST_DEVMODE=yes ;;
5533 n|no) AST_DEVMODE=no ;;
5534 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
5535 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
5536 { (exit 1); exit 1; }; } ;;
5537 esac
5544 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5545 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5546 if test "${ac_cv_path_GREP+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549 # Extract the first word of "grep ggrep" to use in msg output
5550 if test -z "$GREP"; then
5551 set dummy grep ggrep; ac_prog_name=$2
5552 if test "${ac_cv_path_GREP+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555 ac_path_GREP_found=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_prog in grep ggrep; do
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5565 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5566 # Check for GNU ac_path_GREP and select it if it is found.
5567 # Check for GNU $ac_path_GREP
5568 case `"$ac_path_GREP" --version 2>&1` in
5569 *GNU*)
5570 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5572 ac_count=0
5573 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5574 while :
5576 cat "conftest.in" "conftest.in" >"conftest.tmp"
5577 mv "conftest.tmp" "conftest.in"
5578 cp "conftest.in" "conftest.nl"
5579 echo 'GREP' >> "conftest.nl"
5580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5582 ac_count=`expr $ac_count + 1`
5583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5584 # Best one so far, save it but keep looking for a better one
5585 ac_cv_path_GREP="$ac_path_GREP"
5586 ac_path_GREP_max=$ac_count
5588 # 10*(2^10) chars as input seems more than enough
5589 test $ac_count -gt 10 && break
5590 done
5591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5592 esac
5595 $ac_path_GREP_found && break 3
5596 done
5597 done
5599 done
5600 IFS=$as_save_IFS
5605 GREP="$ac_cv_path_GREP"
5606 if test -z "$GREP"; then
5607 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5609 { (exit 1); exit 1; }; }
5612 else
5613 ac_cv_path_GREP=$GREP
5618 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5619 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5620 GREP="$ac_cv_path_GREP"
5623 { echo "$as_me:$LINENO: checking for egrep" >&5
5624 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5625 if test "${ac_cv_path_EGREP+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5629 then ac_cv_path_EGREP="$GREP -E"
5630 else
5631 # Extract the first word of "egrep" to use in msg output
5632 if test -z "$EGREP"; then
5633 set dummy egrep; ac_prog_name=$2
5634 if test "${ac_cv_path_EGREP+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637 ac_path_EGREP_found=false
5638 # Loop through the user's path and test for each of PROGNAME-LIST
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_prog in egrep; do
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5647 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5648 # Check for GNU ac_path_EGREP and select it if it is found.
5649 # Check for GNU $ac_path_EGREP
5650 case `"$ac_path_EGREP" --version 2>&1` in
5651 *GNU*)
5652 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5654 ac_count=0
5655 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5656 while :
5658 cat "conftest.in" "conftest.in" >"conftest.tmp"
5659 mv "conftest.tmp" "conftest.in"
5660 cp "conftest.in" "conftest.nl"
5661 echo 'EGREP' >> "conftest.nl"
5662 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5664 ac_count=`expr $ac_count + 1`
5665 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5666 # Best one so far, save it but keep looking for a better one
5667 ac_cv_path_EGREP="$ac_path_EGREP"
5668 ac_path_EGREP_max=$ac_count
5670 # 10*(2^10) chars as input seems more than enough
5671 test $ac_count -gt 10 && break
5672 done
5673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5674 esac
5677 $ac_path_EGREP_found && break 3
5678 done
5679 done
5681 done
5682 IFS=$as_save_IFS
5687 EGREP="$ac_cv_path_EGREP"
5688 if test -z "$EGREP"; then
5689 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5690 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5691 { (exit 1); exit 1; }; }
5694 else
5695 ac_cv_path_EGREP=$EGREP
5701 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5702 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5703 EGREP="$ac_cv_path_EGREP"
5706 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5707 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5708 if test "${ac_cv_header_stdc+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <stdlib.h>
5718 #include <stdarg.h>
5719 #include <string.h>
5720 #include <float.h>
5723 main ()
5727 return 0;
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5732 case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735 esac
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5745 { (case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748 esac
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_try") 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try='test -s conftest.$ac_objext'
5755 { (case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758 esac
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_try") 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 ac_cv_header_stdc=yes
5765 else
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 ac_cv_header_stdc=no
5772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5774 if test $ac_cv_header_stdc = yes; then
5775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #include <string.h>
5784 _ACEOF
5785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5786 $EGREP "memchr" >/dev/null 2>&1; then
5788 else
5789 ac_cv_header_stdc=no
5791 rm -f conftest*
5795 if test $ac_cv_header_stdc = yes; then
5796 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #include <stdlib.h>
5805 _ACEOF
5806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5807 $EGREP "free" >/dev/null 2>&1; then
5809 else
5810 ac_cv_header_stdc=no
5812 rm -f conftest*
5816 if test $ac_cv_header_stdc = yes; then
5817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5818 if test "$cross_compiling" = yes; then
5820 else
5821 cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h. */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 #include <ctype.h>
5828 #include <stdlib.h>
5829 #if ((' ' & 0x0FF) == 0x020)
5830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5832 #else
5833 # define ISLOWER(c) \
5834 (('a' <= (c) && (c) <= 'i') \
5835 || ('j' <= (c) && (c) <= 'r') \
5836 || ('s' <= (c) && (c) <= 'z'))
5837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5838 #endif
5840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5842 main ()
5844 int i;
5845 for (i = 0; i < 256; i++)
5846 if (XOR (islower (i), ISLOWER (i))
5847 || toupper (i) != TOUPPER (i))
5848 return 2;
5849 return 0;
5851 _ACEOF
5852 rm -f conftest$ac_exeext
5853 if { (ac_try="$ac_link"
5854 case "(($ac_try" in
5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5857 esac
5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859 (eval "$ac_link") 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5863 { (case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5866 esac
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_try") 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5873 else
5874 echo "$as_me: program exited with status $ac_status" >&5
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 ( exit $ac_status )
5879 ac_cv_header_stdc=no
5881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5887 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5888 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5889 if test $ac_cv_header_stdc = yes; then
5891 cat >>confdefs.h <<\_ACEOF
5892 #define STDC_HEADERS 1
5893 _ACEOF
5897 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5907 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5908 inttypes.h stdint.h unistd.h
5910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916 cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h. */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 $ac_includes_default
5924 #include <$ac_header>
5925 _ACEOF
5926 rm -f conftest.$ac_objext
5927 if { (ac_try="$ac_compile"
5928 case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_compile") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5941 { (case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944 esac
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_try") 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest.$ac_objext'
5951 { (case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954 esac
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_try") 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
5960 eval "$as_ac_Header=yes"
5961 else
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5965 eval "$as_ac_Header=no"
5968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5970 ac_res=`eval echo '${'$as_ac_Header'}'`
5971 { echo "$as_me:$LINENO: result: $ac_res" >&5
5972 echo "${ECHO_T}$ac_res" >&6; }
5973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5974 cat >>confdefs.h <<_ACEOF
5975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5976 _ACEOF
5980 done
5985 # Check whether --with-asound was given.
5986 if test "${with_asound+set}" = set; then
5987 withval=$with_asound;
5988 case ${withval} in
5989 n|no)
5990 USE_ALSA=no
5992 y|ye|yes)
5993 ALSA_MANDATORY="yes"
5996 ALSA_DIR="${withval}"
5997 ALSA_MANDATORY="yes"
5999 esac
6004 PBX_LIBALSA=0
6006 if test "${USE_ALSA}" != "no"; then
6007 pbxlibdir=""
6008 if test "x${ALSA_DIR}" != "x"; then
6009 pbxlibdir="-L${asound_DIR}/lib"
6011 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
6012 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
6013 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 ac_check_lib_save_LIBS=$LIBS
6017 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6025 /* Override any GCC internal prototype to avoid an error.
6026 Use char because int might match the return type of a GCC
6027 builtin and then its argument prototype would still apply. */
6028 #ifdef __cplusplus
6029 extern "C"
6030 #endif
6031 char snd_spcm_init ();
6033 main ()
6035 return snd_spcm_init ();
6037 return 0;
6039 _ACEOF
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (ac_try="$ac_link"
6042 case "(($ac_try" in
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_link") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6055 { (case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_try") 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try='test -s conftest$ac_exeext'
6065 { (case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068 esac
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_try") 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6074 ac_cv_lib_asound_snd_spcm_init=yes
6075 else
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 ac_cv_lib_asound_snd_spcm_init=no
6082 rm -f conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
6084 LIBS=$ac_check_lib_save_LIBS
6086 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
6087 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
6088 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
6089 AST_ALSA_FOUND=yes
6090 else
6091 AST_ALSA_FOUND=no
6095 if test "${AST_ALSA_FOUND}" = "yes"; then
6096 ALSA_LIB="-lasound -lm -ldl"
6097 ALSA_HEADER_FOUND="1"
6098 if test "x${ALSA_DIR}" != "x"; then
6099 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
6100 ALSA_INCLUDE="-I${ALSA_DIR}/include"
6101 if test "xalsa/asoundlib.h" != "x" ; then
6102 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
6103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6104 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
6105 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
6106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 ac_res=`eval echo '${'$as_ac_Header'}'`
6110 { echo "$as_me:$LINENO: result: $ac_res" >&5
6111 echo "${ECHO_T}$ac_res" >&6; }
6112 else
6113 # Is the header compilable?
6114 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
6115 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 $ac_includes_default
6123 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
6124 _ACEOF
6125 rm -f conftest.$ac_objext
6126 if { (ac_try="$ac_compile"
6127 case "(($ac_try" in
6128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6130 esac
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132 (eval "$ac_compile") 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6140 { (case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143 esac
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_try") 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; } &&
6149 { ac_try='test -s conftest.$ac_objext'
6150 { (case "(($ac_try" in
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6153 esac
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155 (eval "$ac_try") 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_header_compiler=yes
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_header_compiler=no
6167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6169 echo "${ECHO_T}$ac_header_compiler" >&6; }
6171 # Is the header present?
6172 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
6173 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
6181 _ACEOF
6182 if { (ac_try="$ac_cpp conftest.$ac_ext"
6183 case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186 esac
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } >/dev/null; then
6195 if test -s conftest.err; then
6196 ac_cpp_err=$ac_c_preproc_warn_flag
6197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6198 else
6199 ac_cpp_err=
6201 else
6202 ac_cpp_err=yes
6204 if test -z "$ac_cpp_err"; then
6205 ac_header_preproc=yes
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 ac_header_preproc=no
6213 rm -f conftest.err conftest.$ac_ext
6214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6215 echo "${ECHO_T}$ac_header_preproc" >&6; }
6217 # So? What about this header?
6218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6219 yes:no: )
6220 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6221 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6222 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
6223 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
6224 ac_header_preproc=yes
6226 no:yes:* )
6227 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
6228 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
6229 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
6230 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
6231 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
6232 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
6233 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
6234 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6235 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6236 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6237 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
6238 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
6241 esac
6242 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
6243 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
6244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247 eval "$as_ac_Header=\$ac_header_preproc"
6249 ac_res=`eval echo '${'$as_ac_Header'}'`
6250 { echo "$as_me:$LINENO: result: $ac_res" >&5
6251 echo "${ECHO_T}$ac_res" >&6; }
6254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6255 ALSA_HEADER_FOUND=1
6256 else
6257 ALSA_HEADER_FOUND=0
6262 else
6263 if test "xalsa/asoundlib.h" != "x" ; then
6264 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6265 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6266 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
6267 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6271 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
6272 else
6273 # Is the header compilable?
6274 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
6275 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
6276 cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h. */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 $ac_includes_default
6283 #include <alsa/asoundlib.h>
6284 _ACEOF
6285 rm -f conftest.$ac_objext
6286 if { (ac_try="$ac_compile"
6287 case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290 esac
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compile") 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6300 { (case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_try") 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest.$ac_objext'
6310 { (case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_try") 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_header_compiler=yes
6320 else
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 ac_header_compiler=no
6327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6329 echo "${ECHO_T}$ac_header_compiler" >&6; }
6331 # Is the header present?
6332 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
6333 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #include <alsa/asoundlib.h>
6341 _ACEOF
6342 if { (ac_try="$ac_cpp conftest.$ac_ext"
6343 case "(($ac_try" in
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6346 esac
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } >/dev/null; then
6355 if test -s conftest.err; then
6356 ac_cpp_err=$ac_c_preproc_warn_flag
6357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6358 else
6359 ac_cpp_err=
6361 else
6362 ac_cpp_err=yes
6364 if test -z "$ac_cpp_err"; then
6365 ac_header_preproc=yes
6366 else
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ac_header_preproc=no
6373 rm -f conftest.err conftest.$ac_ext
6374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6375 echo "${ECHO_T}$ac_header_preproc" >&6; }
6377 # So? What about this header?
6378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6379 yes:no: )
6380 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6381 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6382 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
6383 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
6384 ac_header_preproc=yes
6386 no:yes:* )
6387 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
6388 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
6390 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
6392 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
6393 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
6394 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6395 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
6396 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
6397 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
6398 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
6401 esac
6402 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
6403 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
6404 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
6409 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
6410 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
6413 if test $ac_cv_header_alsa_asoundlib_h = yes; then
6414 ALSA_HEADER_FOUND=1
6415 else
6416 ALSA_HEADER_FOUND=0
6422 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
6423 if test ! -z "${ALSA_MANDATORY}" ;
6424 then
6425 echo " ***"
6426 echo " *** It appears that you do not have the asound development package installed."
6427 echo " *** Please install it to include Advanced Linux Sound Architecture support, or re-run configure"
6428 echo " *** without explicitly specifying --with-asound"
6429 exit 1
6431 ALSA_LIB=""
6432 ALSA_INCLUDE=""
6433 PBX_LIBALSA=0
6434 else
6435 PBX_LIBALSA=1
6437 cat >>confdefs.h <<_ACEOF
6438 #define HAVE_ALSA 1
6439 _ACEOF
6442 elif test ! -z "${ALSA_MANDATORY}";
6443 then
6444 echo "***"
6445 echo "*** The Advanced Linux Sound Architecture installation on this system appears to be broken."
6446 echo "*** Either correct the installation, or run configure"
6447 echo "*** without explicity specifying --with-asound"
6448 exit 1
6457 # Check whether --with-curses was given.
6458 if test "${with_curses+set}" = set; then
6459 withval=$with_curses;
6460 case ${withval} in
6461 n|no)
6462 USE_CURSES=no
6464 y|ye|yes)
6465 CURSES_MANDATORY="yes"
6468 CURSES_DIR="${withval}"
6469 CURSES_MANDATORY="yes"
6471 esac
6476 PBX_LIBCURSES=0
6478 if test "${USE_CURSES}" != "no"; then
6479 pbxlibdir=""
6480 if test "x${CURSES_DIR}" != "x"; then
6481 pbxlibdir="-L${curses_DIR}/lib"
6483 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
6484 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
6485 if test "${ac_cv_lib_curses_initscr+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488 ac_check_lib_save_LIBS=$LIBS
6489 LIBS="-lcurses ${pbxlibdir} $LIBS"
6490 cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h. */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6497 /* Override any GCC internal prototype to avoid an error.
6498 Use char because int might match the return type of a GCC
6499 builtin and then its argument prototype would still apply. */
6500 #ifdef __cplusplus
6501 extern "C"
6502 #endif
6503 char initscr ();
6505 main ()
6507 return initscr ();
6509 return 0;
6511 _ACEOF
6512 rm -f conftest.$ac_objext conftest$ac_exeext
6513 if { (ac_try="$ac_link"
6514 case "(($ac_try" in
6515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516 *) ac_try_echo=$ac_try;;
6517 esac
6518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519 (eval "$ac_link") 2>conftest.er1
6520 ac_status=$?
6521 grep -v '^ *+' conftest.er1 >conftest.err
6522 rm -f conftest.er1
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6527 { (case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530 esac
6531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_try") 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (case "(($ac_try" in
6538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539 *) ac_try_echo=$ac_try;;
6540 esac
6541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6542 (eval "$ac_try") 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 ac_cv_lib_curses_initscr=yes
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 ac_cv_lib_curses_initscr=no
6554 rm -f conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6556 LIBS=$ac_check_lib_save_LIBS
6558 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
6559 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
6560 if test $ac_cv_lib_curses_initscr = yes; then
6561 AST_CURSES_FOUND=yes
6562 else
6563 AST_CURSES_FOUND=no
6567 if test "${AST_CURSES_FOUND}" = "yes"; then
6568 CURSES_LIB="-lcurses "
6569 CURSES_HEADER_FOUND="1"
6570 if test "x${CURSES_DIR}" != "x"; then
6571 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
6572 CURSES_INCLUDE="-I${CURSES_DIR}/include"
6573 if test "xcurses.h" != "x" ; then
6574 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
6575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6576 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
6577 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
6578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 ac_res=`eval echo '${'$as_ac_Header'}'`
6582 { echo "$as_me:$LINENO: result: $ac_res" >&5
6583 echo "${ECHO_T}$ac_res" >&6; }
6584 else
6585 # Is the header compilable?
6586 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
6587 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
6588 cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h. */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 $ac_includes_default
6595 #include <${CURSES_DIR}/include/curses.h>
6596 _ACEOF
6597 rm -f conftest.$ac_objext
6598 if { (ac_try="$ac_compile"
6599 case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602 esac
6603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604 (eval "$ac_compile") 2>conftest.er1
6605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } &&
6611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6612 { (case "(($ac_try" in
6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6615 esac
6616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617 (eval "$ac_try") 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; } &&
6621 { ac_try='test -s conftest.$ac_objext'
6622 { (case "(($ac_try" in
6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6625 esac
6626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627 (eval "$ac_try") 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; }; then
6631 ac_header_compiler=yes
6632 else
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6636 ac_header_compiler=no
6639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6641 echo "${ECHO_T}$ac_header_compiler" >&6; }
6643 # Is the header present?
6644 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
6645 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
6646 cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h. */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 #include <${CURSES_DIR}/include/curses.h>
6653 _ACEOF
6654 if { (ac_try="$ac_cpp conftest.$ac_ext"
6655 case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6661 ac_status=$?
6662 grep -v '^ *+' conftest.er1 >conftest.err
6663 rm -f conftest.er1
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } >/dev/null; then
6667 if test -s conftest.err; then
6668 ac_cpp_err=$ac_c_preproc_warn_flag
6669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6670 else
6671 ac_cpp_err=
6673 else
6674 ac_cpp_err=yes
6676 if test -z "$ac_cpp_err"; then
6677 ac_header_preproc=yes
6678 else
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6682 ac_header_preproc=no
6685 rm -f conftest.err conftest.$ac_ext
6686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6687 echo "${ECHO_T}$ac_header_preproc" >&6; }
6689 # So? What about this header?
6690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6691 yes:no: )
6692 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
6693 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6694 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
6695 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
6696 ac_header_preproc=yes
6698 no:yes:* )
6699 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
6700 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
6702 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
6704 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
6706 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
6708 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
6709 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
6710 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
6713 esac
6714 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
6715 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
6716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719 eval "$as_ac_Header=\$ac_header_preproc"
6721 ac_res=`eval echo '${'$as_ac_Header'}'`
6722 { echo "$as_me:$LINENO: result: $ac_res" >&5
6723 echo "${ECHO_T}$ac_res" >&6; }
6726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6727 CURSES_HEADER_FOUND=1
6728 else
6729 CURSES_HEADER_FOUND=0
6734 else
6735 if test "xcurses.h" != "x" ; then
6736 if test "${ac_cv_header_curses_h+set}" = set; then
6737 { echo "$as_me:$LINENO: checking for curses.h" >&5
6738 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
6739 if test "${ac_cv_header_curses_h+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
6743 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
6744 else
6745 # Is the header compilable?
6746 { echo "$as_me:$LINENO: checking curses.h usability" >&5
6747 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h. */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 $ac_includes_default
6755 #include <curses.h>
6756 _ACEOF
6757 rm -f conftest.$ac_objext
6758 if { (ac_try="$ac_compile"
6759 case "(($ac_try" in
6760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6762 esac
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764 (eval "$ac_compile") 2>conftest.er1
6765 ac_status=$?
6766 grep -v '^ *+' conftest.er1 >conftest.err
6767 rm -f conftest.er1
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } &&
6771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6772 { (case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775 esac
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_try") 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest.$ac_objext'
6782 { (case "(($ac_try" in
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6785 esac
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_try") 2>&5
6788 ac_status=$?
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 ac_header_compiler=yes
6792 else
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6796 ac_header_compiler=no
6799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6801 echo "${ECHO_T}$ac_header_compiler" >&6; }
6803 # Is the header present?
6804 { echo "$as_me:$LINENO: checking curses.h presence" >&5
6805 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #include <curses.h>
6813 _ACEOF
6814 if { (ac_try="$ac_cpp conftest.$ac_ext"
6815 case "(($ac_try" in
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6818 esac
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6821 ac_status=$?
6822 grep -v '^ *+' conftest.er1 >conftest.err
6823 rm -f conftest.er1
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } >/dev/null; then
6827 if test -s conftest.err; then
6828 ac_cpp_err=$ac_c_preproc_warn_flag
6829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6830 else
6831 ac_cpp_err=
6833 else
6834 ac_cpp_err=yes
6836 if test -z "$ac_cpp_err"; then
6837 ac_header_preproc=yes
6838 else
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6842 ac_header_preproc=no
6845 rm -f conftest.err conftest.$ac_ext
6846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6847 echo "${ECHO_T}$ac_header_preproc" >&6; }
6849 # So? What about this header?
6850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6851 yes:no: )
6852 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
6853 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6854 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
6855 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
6856 ac_header_preproc=yes
6858 no:yes:* )
6859 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
6860 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
6861 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
6862 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
6863 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
6864 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
6865 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
6866 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
6867 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
6868 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
6869 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
6870 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
6873 esac
6874 { echo "$as_me:$LINENO: checking for curses.h" >&5
6875 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
6876 if test "${ac_cv_header_curses_h+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879 ac_cv_header_curses_h=$ac_header_preproc
6881 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
6882 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
6885 if test $ac_cv_header_curses_h = yes; then
6886 CURSES_HEADER_FOUND=1
6887 else
6888 CURSES_HEADER_FOUND=0
6894 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
6895 if test ! -z "${CURSES_MANDATORY}" ;
6896 then
6897 echo " ***"
6898 echo " *** It appears that you do not have the curses development package installed."
6899 echo " *** Please install it to include curses support, or re-run configure"
6900 echo " *** without explicitly specifying --with-curses"
6901 exit 1
6903 CURSES_LIB=""
6904 CURSES_INCLUDE=""
6905 PBX_LIBCURSES=0
6906 else
6907 PBX_LIBCURSES=1
6909 cat >>confdefs.h <<_ACEOF
6910 #define HAVE_CURSES 1
6911 _ACEOF
6914 elif test ! -z "${CURSES_MANDATORY}";
6915 then
6916 echo "***"
6917 echo "*** The curses installation on this system appears to be broken."
6918 echo "*** Either correct the installation, or run configure"
6919 echo "*** without explicity specifying --with-curses"
6920 exit 1
6929 # Check whether --with-iksemel was given.
6930 if test "${with_iksemel+set}" = set; then
6931 withval=$with_iksemel;
6932 case ${withval} in
6933 n|no)
6934 USE_IKSEMEL=no
6936 y|ye|yes)
6937 IKSEMEL_MANDATORY="yes"
6940 IKSEMEL_DIR="${withval}"
6941 IKSEMEL_MANDATORY="yes"
6943 esac
6948 PBX_LIBIKSEMEL=0
6950 if test "${USE_IKSEMEL}" != "no"; then
6951 pbxlibdir=""
6952 if test "x${IKSEMEL_DIR}" != "x"; then
6953 pbxlibdir="-L${iksemel_DIR}/lib"
6955 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
6956 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
6957 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960 ac_check_lib_save_LIBS=$LIBS
6961 LIBS="-liksemel ${pbxlibdir} $LIBS"
6962 cat >conftest.$ac_ext <<_ACEOF
6963 /* confdefs.h. */
6964 _ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6972 #ifdef __cplusplus
6973 extern "C"
6974 #endif
6975 char iks_start_sasl ();
6977 main ()
6979 return iks_start_sasl ();
6981 return 0;
6983 _ACEOF
6984 rm -f conftest.$ac_objext conftest$ac_exeext
6985 if { (ac_try="$ac_link"
6986 case "(($ac_try" in
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6989 esac
6990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991 (eval "$ac_link") 2>conftest.er1
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6999 { (case "(($ac_try" in
7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7002 esac
7003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7004 (eval "$ac_try") 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; } &&
7008 { ac_try='test -s conftest$ac_exeext'
7009 { (case "(($ac_try" in
7010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011 *) ac_try_echo=$ac_try;;
7012 esac
7013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7014 (eval "$ac_try") 2>&5
7015 ac_status=$?
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; }; then
7018 ac_cv_lib_iksemel_iks_start_sasl=yes
7019 else
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7023 ac_cv_lib_iksemel_iks_start_sasl=no
7026 rm -f conftest.err conftest.$ac_objext \
7027 conftest$ac_exeext conftest.$ac_ext
7028 LIBS=$ac_check_lib_save_LIBS
7030 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
7031 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
7032 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
7033 AST_IKSEMEL_FOUND=yes
7034 else
7035 AST_IKSEMEL_FOUND=no
7039 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
7040 IKSEMEL_LIB="-liksemel "
7041 IKSEMEL_HEADER_FOUND="1"
7042 if test "x${IKSEMEL_DIR}" != "x"; then
7043 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
7044 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
7045 if test "xiksemel.h" != "x" ; then
7046 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
7047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7048 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
7049 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
7050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 ac_res=`eval echo '${'$as_ac_Header'}'`
7054 { echo "$as_me:$LINENO: result: $ac_res" >&5
7055 echo "${ECHO_T}$ac_res" >&6; }
7056 else
7057 # Is the header compilable?
7058 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
7059 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
7067 #include <${IKSEMEL_DIR}/include/iksemel.h>
7068 _ACEOF
7069 rm -f conftest.$ac_objext
7070 if { (ac_try="$ac_compile"
7071 case "(($ac_try" in
7072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073 *) ac_try_echo=$ac_try;;
7074 esac
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076 (eval "$ac_compile") 2>conftest.er1
7077 ac_status=$?
7078 grep -v '^ *+' conftest.er1 >conftest.err
7079 rm -f conftest.er1
7080 cat conftest.err >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } &&
7083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7084 { (case "(($ac_try" in
7085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086 *) ac_try_echo=$ac_try;;
7087 esac
7088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7089 (eval "$ac_try") 2>&5
7090 ac_status=$?
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; } &&
7093 { ac_try='test -s conftest.$ac_objext'
7094 { (case "(($ac_try" in
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7097 esac
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_try") 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 ac_header_compiler=yes
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_header_compiler=no
7111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7113 echo "${ECHO_T}$ac_header_compiler" >&6; }
7115 # Is the header present?
7116 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
7117 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <${IKSEMEL_DIR}/include/iksemel.h>
7125 _ACEOF
7126 if { (ac_try="$ac_cpp conftest.$ac_ext"
7127 case "(($ac_try" in
7128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7130 esac
7131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7133 ac_status=$?
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } >/dev/null; then
7139 if test -s conftest.err; then
7140 ac_cpp_err=$ac_c_preproc_warn_flag
7141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7142 else
7143 ac_cpp_err=
7145 else
7146 ac_cpp_err=yes
7148 if test -z "$ac_cpp_err"; then
7149 ac_header_preproc=yes
7150 else
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7154 ac_header_preproc=no
7157 rm -f conftest.err conftest.$ac_ext
7158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7159 echo "${ECHO_T}$ac_header_preproc" >&6; }
7161 # So? What about this header?
7162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7163 yes:no: )
7164 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
7165 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7166 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
7167 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
7168 ac_header_preproc=yes
7170 no:yes:* )
7171 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
7172 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
7173 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
7174 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
7175 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
7176 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
7178 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
7179 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
7180 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
7182 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
7185 esac
7186 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
7187 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
7188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191 eval "$as_ac_Header=\$ac_header_preproc"
7193 ac_res=`eval echo '${'$as_ac_Header'}'`
7194 { echo "$as_me:$LINENO: result: $ac_res" >&5
7195 echo "${ECHO_T}$ac_res" >&6; }
7198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7199 IKSEMEL_HEADER_FOUND=1
7200 else
7201 IKSEMEL_HEADER_FOUND=0
7206 else
7207 if test "xiksemel.h" != "x" ; then
7208 if test "${ac_cv_header_iksemel_h+set}" = set; then
7209 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
7210 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
7211 if test "${ac_cv_header_iksemel_h+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
7215 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
7216 else
7217 # Is the header compilable?
7218 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
7219 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
7220 cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h. */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 $ac_includes_default
7227 #include <iksemel.h>
7228 _ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7231 case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234 esac
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compile") 2>conftest.er1
7237 ac_status=$?
7238 grep -v '^ *+' conftest.er1 >conftest.err
7239 rm -f conftest.er1
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7244 { (case "(($ac_try" in
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7247 esac
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_try") 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (case "(($ac_try" in
7255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7257 esac
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_try") 2>&5
7260 ac_status=$?
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7263 ac_header_compiler=yes
7264 else
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 ac_header_compiler=no
7271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7273 echo "${ECHO_T}$ac_header_compiler" >&6; }
7275 # Is the header present?
7276 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
7277 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 #include <iksemel.h>
7285 _ACEOF
7286 if { (ac_try="$ac_cpp conftest.$ac_ext"
7287 case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } >/dev/null; then
7299 if test -s conftest.err; then
7300 ac_cpp_err=$ac_c_preproc_warn_flag
7301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7302 else
7303 ac_cpp_err=
7305 else
7306 ac_cpp_err=yes
7308 if test -z "$ac_cpp_err"; then
7309 ac_header_preproc=yes
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 ac_header_preproc=no
7317 rm -f conftest.err conftest.$ac_ext
7318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7319 echo "${ECHO_T}$ac_header_preproc" >&6; }
7321 # So? What about this header?
7322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7323 yes:no: )
7324 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
7325 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7326 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
7327 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
7328 ac_header_preproc=yes
7330 no:yes:* )
7331 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
7332 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
7333 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
7334 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
7336 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
7337 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
7338 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
7339 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
7340 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
7341 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
7342 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
7345 esac
7346 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
7347 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
7348 if test "${ac_cv_header_iksemel_h+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351 ac_cv_header_iksemel_h=$ac_header_preproc
7353 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
7354 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
7357 if test $ac_cv_header_iksemel_h = yes; then
7358 IKSEMEL_HEADER_FOUND=1
7359 else
7360 IKSEMEL_HEADER_FOUND=0
7366 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
7367 if test ! -z "${IKSEMEL_MANDATORY}" ;
7368 then
7369 echo " ***"
7370 echo " *** It appears that you do not have the iksemel development package installed."
7371 echo " *** Please install it to include Iksemel Jabber Library support, or re-run configure"
7372 echo " *** without explicitly specifying --with-iksemel"
7373 exit 1
7375 IKSEMEL_LIB=""
7376 IKSEMEL_INCLUDE=""
7377 PBX_LIBIKSEMEL=0
7378 else
7379 PBX_LIBIKSEMEL=1
7381 cat >>confdefs.h <<_ACEOF
7382 #define HAVE_IKSEMEL 1
7383 _ACEOF
7386 elif test ! -z "${IKSEMEL_MANDATORY}";
7387 then
7388 echo "***"
7389 echo "*** The Iksemel Jabber Library installation on this system appears to be broken."
7390 echo "*** Either correct the installation, or run configure"
7391 echo "*** without explicity specifying --with-iksemel"
7392 exit 1
7401 # Check whether --with-nbs was given.
7402 if test "${with_nbs+set}" = set; then
7403 withval=$with_nbs;
7404 case ${withval} in
7405 n|no)
7406 USE_NBS=no
7408 y|ye|yes)
7409 NBS_MANDATORY="yes"
7412 NBS_DIR="${withval}"
7413 NBS_MANDATORY="yes"
7415 esac
7420 PBX_LIBNBS=0
7422 if test "${USE_NBS}" != "no"; then
7423 pbxlibdir=""
7424 if test "x${NBS_DIR}" != "x"; then
7425 pbxlibdir="-L${nbs_DIR}/lib"
7427 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
7428 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
7429 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432 ac_check_lib_save_LIBS=$LIBS
7433 LIBS="-lnbs ${pbxlibdir} $LIBS"
7434 cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h. */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7441 /* Override any GCC internal prototype to avoid an error.
7442 Use char because int might match the return type of a GCC
7443 builtin and then its argument prototype would still apply. */
7444 #ifdef __cplusplus
7445 extern "C"
7446 #endif
7447 char nbs_connect ();
7449 main ()
7451 return nbs_connect ();
7453 return 0;
7455 _ACEOF
7456 rm -f conftest.$ac_objext conftest$ac_exeext
7457 if { (ac_try="$ac_link"
7458 case "(($ac_try" in
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7461 esac
7462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7463 (eval "$ac_link") 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7471 { (case "(($ac_try" in
7472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7474 esac
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476 (eval "$ac_try") 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; } &&
7480 { ac_try='test -s conftest$ac_exeext'
7481 { (case "(($ac_try" in
7482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7484 esac
7485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7486 (eval "$ac_try") 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_lib_nbs_nbs_connect=yes
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 ac_cv_lib_nbs_nbs_connect=no
7498 rm -f conftest.err conftest.$ac_objext \
7499 conftest$ac_exeext conftest.$ac_ext
7500 LIBS=$ac_check_lib_save_LIBS
7502 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
7503 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
7504 if test $ac_cv_lib_nbs_nbs_connect = yes; then
7505 AST_NBS_FOUND=yes
7506 else
7507 AST_NBS_FOUND=no
7511 if test "${AST_NBS_FOUND}" = "yes"; then
7512 NBS_LIB="-lnbs "
7513 NBS_HEADER_FOUND="1"
7514 if test "x${NBS_DIR}" != "x"; then
7515 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
7516 NBS_INCLUDE="-I${NBS_DIR}/include"
7517 if test "xnbs.h" != "x" ; then
7518 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
7519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7520 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
7521 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
7522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 ac_res=`eval echo '${'$as_ac_Header'}'`
7526 { echo "$as_me:$LINENO: result: $ac_res" >&5
7527 echo "${ECHO_T}$ac_res" >&6; }
7528 else
7529 # Is the header compilable?
7530 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
7531 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 $ac_includes_default
7539 #include <${NBS_DIR}/include/nbs.h>
7540 _ACEOF
7541 rm -f conftest.$ac_objext
7542 if { (ac_try="$ac_compile"
7543 case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546 esac
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_compile") 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7556 { (case "(($ac_try" in
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7559 esac
7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_try") 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; } &&
7565 { ac_try='test -s conftest.$ac_objext'
7566 { (case "(($ac_try" in
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7569 esac
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571 (eval "$ac_try") 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 ac_header_compiler=yes
7576 else
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7580 ac_header_compiler=no
7583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7585 echo "${ECHO_T}$ac_header_compiler" >&6; }
7587 # Is the header present?
7588 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
7589 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
7590 cat >conftest.$ac_ext <<_ACEOF
7591 /* confdefs.h. */
7592 _ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h. */
7596 #include <${NBS_DIR}/include/nbs.h>
7597 _ACEOF
7598 if { (ac_try="$ac_cpp conftest.$ac_ext"
7599 case "(($ac_try" in
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7602 esac
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7605 ac_status=$?
7606 grep -v '^ *+' conftest.er1 >conftest.err
7607 rm -f conftest.er1
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } >/dev/null; then
7611 if test -s conftest.err; then
7612 ac_cpp_err=$ac_c_preproc_warn_flag
7613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7614 else
7615 ac_cpp_err=
7617 else
7618 ac_cpp_err=yes
7620 if test -z "$ac_cpp_err"; then
7621 ac_header_preproc=yes
7622 else
7623 echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7626 ac_header_preproc=no
7629 rm -f conftest.err conftest.$ac_ext
7630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7631 echo "${ECHO_T}$ac_header_preproc" >&6; }
7633 # So? What about this header?
7634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7635 yes:no: )
7636 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7637 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7638 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
7639 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
7640 ac_header_preproc=yes
7642 no:yes:* )
7643 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
7644 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
7645 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
7646 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
7648 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
7649 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
7650 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
7651 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
7652 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
7654 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
7657 esac
7658 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
7659 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
7660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663 eval "$as_ac_Header=\$ac_header_preproc"
7665 ac_res=`eval echo '${'$as_ac_Header'}'`
7666 { echo "$as_me:$LINENO: result: $ac_res" >&5
7667 echo "${ECHO_T}$ac_res" >&6; }
7670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7671 NBS_HEADER_FOUND=1
7672 else
7673 NBS_HEADER_FOUND=0
7678 else
7679 if test "xnbs.h" != "x" ; then
7680 if test "${ac_cv_header_nbs_h+set}" = set; then
7681 { echo "$as_me:$LINENO: checking for nbs.h" >&5
7682 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
7683 if test "${ac_cv_header_nbs_h+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
7687 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
7688 else
7689 # Is the header compilable?
7690 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
7691 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
7692 cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h. */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 $ac_includes_default
7699 #include <nbs.h>
7700 _ACEOF
7701 rm -f conftest.$ac_objext
7702 if { (ac_try="$ac_compile"
7703 case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706 esac
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_compile") 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7716 { (case "(($ac_try" in
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7719 esac
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_try") 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; } &&
7725 { ac_try='test -s conftest.$ac_objext'
7726 { (case "(($ac_try" in
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7729 esac
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731 (eval "$ac_try") 2>&5
7732 ac_status=$?
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then
7735 ac_header_compiler=yes
7736 else
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7740 ac_header_compiler=no
7743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7745 echo "${ECHO_T}$ac_header_compiler" >&6; }
7747 # Is the header present?
7748 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
7749 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 #include <nbs.h>
7757 _ACEOF
7758 if { (ac_try="$ac_cpp conftest.$ac_ext"
7759 case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } >/dev/null; then
7771 if test -s conftest.err; then
7772 ac_cpp_err=$ac_c_preproc_warn_flag
7773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7774 else
7775 ac_cpp_err=
7777 else
7778 ac_cpp_err=yes
7780 if test -z "$ac_cpp_err"; then
7781 ac_header_preproc=yes
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 ac_header_preproc=no
7789 rm -f conftest.err conftest.$ac_ext
7790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7791 echo "${ECHO_T}$ac_header_preproc" >&6; }
7793 # So? What about this header?
7794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7795 yes:no: )
7796 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7797 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7798 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
7799 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
7800 ac_header_preproc=yes
7802 no:yes:* )
7803 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
7804 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
7805 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
7806 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
7807 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
7808 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
7809 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
7810 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
7811 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
7812 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
7813 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
7814 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
7817 esac
7818 { echo "$as_me:$LINENO: checking for nbs.h" >&5
7819 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
7820 if test "${ac_cv_header_nbs_h+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823 ac_cv_header_nbs_h=$ac_header_preproc
7825 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
7826 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
7829 if test $ac_cv_header_nbs_h = yes; then
7830 NBS_HEADER_FOUND=1
7831 else
7832 NBS_HEADER_FOUND=0
7838 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
7839 if test ! -z "${NBS_MANDATORY}" ;
7840 then
7841 echo " ***"
7842 echo " *** It appears that you do not have the nbs development package installed."
7843 echo " *** Please install it to include Network Broadcast Sound support, or re-run configure"
7844 echo " *** without explicitly specifying --with-nbs"
7845 exit 1
7847 NBS_LIB=""
7848 NBS_INCLUDE=""
7849 PBX_LIBNBS=0
7850 else
7851 PBX_LIBNBS=1
7853 cat >>confdefs.h <<_ACEOF
7854 #define HAVE_NBS 1
7855 _ACEOF
7858 elif test ! -z "${NBS_MANDATORY}";
7859 then
7860 echo "***"
7861 echo "*** The Network Broadcast Sound installation on this system appears to be broken."
7862 echo "*** Either correct the installation, or run configure"
7863 echo "*** without explicity specifying --with-nbs"
7864 exit 1
7873 # Check whether --with-ncurses was given.
7874 if test "${with_ncurses+set}" = set; then
7875 withval=$with_ncurses;
7876 case ${withval} in
7877 n|no)
7878 USE_NCURSES=no
7880 y|ye|yes)
7881 NCURSES_MANDATORY="yes"
7884 NCURSES_DIR="${withval}"
7885 NCURSES_MANDATORY="yes"
7887 esac
7892 PBX_LIBNCURSES=0
7894 if test "${USE_NCURSES}" != "no"; then
7895 pbxlibdir=""
7896 if test "x${NCURSES_DIR}" != "x"; then
7897 pbxlibdir="-L${ncurses_DIR}/lib"
7899 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
7900 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
7901 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 ac_check_lib_save_LIBS=$LIBS
7905 LIBS="-lncurses ${pbxlibdir} $LIBS"
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. */
7913 /* Override any GCC internal prototype to avoid an error.
7914 Use char because int might match the return type of a GCC
7915 builtin and then its argument prototype would still apply. */
7916 #ifdef __cplusplus
7917 extern "C"
7918 #endif
7919 char initscr ();
7921 main ()
7923 return initscr ();
7925 return 0;
7927 _ACEOF
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7930 case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7943 { (case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946 esac
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_try") 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try='test -s conftest$ac_exeext'
7953 { (case "(($ac_try" in
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7956 esac
7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958 (eval "$ac_try") 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 ac_cv_lib_ncurses_initscr=yes
7963 else
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 ac_cv_lib_ncurses_initscr=no
7970 rm -f conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7972 LIBS=$ac_check_lib_save_LIBS
7974 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
7975 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
7976 if test $ac_cv_lib_ncurses_initscr = yes; then
7977 AST_NCURSES_FOUND=yes
7978 else
7979 AST_NCURSES_FOUND=no
7983 if test "${AST_NCURSES_FOUND}" = "yes"; then
7984 NCURSES_LIB="-lncurses "
7985 NCURSES_HEADER_FOUND="1"
7986 if test "x${NCURSES_DIR}" != "x"; then
7987 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
7988 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
7989 if test "xcurses.h" != "x" ; then
7990 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
7991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7992 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
7993 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
7994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 ac_res=`eval echo '${'$as_ac_Header'}'`
7998 { echo "$as_me:$LINENO: result: $ac_res" >&5
7999 echo "${ECHO_T}$ac_res" >&6; }
8000 else
8001 # Is the header compilable?
8002 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
8003 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 $ac_includes_default
8011 #include <${NCURSES_DIR}/include/curses.h>
8012 _ACEOF
8013 rm -f conftest.$ac_objext
8014 if { (ac_try="$ac_compile"
8015 case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018 esac
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_compile") 2>conftest.er1
8021 ac_status=$?
8022 grep -v '^ *+' conftest.er1 >conftest.err
8023 rm -f conftest.er1
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } &&
8027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8028 { (case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8031 esac
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_try") 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; } &&
8037 { ac_try='test -s conftest.$ac_objext'
8038 { (case "(($ac_try" in
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8041 esac
8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043 (eval "$ac_try") 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_header_compiler=yes
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 ac_header_compiler=no
8055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8057 echo "${ECHO_T}$ac_header_compiler" >&6; }
8059 # Is the header present?
8060 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
8061 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 #include <${NCURSES_DIR}/include/curses.h>
8069 _ACEOF
8070 if { (ac_try="$ac_cpp conftest.$ac_ext"
8071 case "(($ac_try" in
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } >/dev/null; then
8083 if test -s conftest.err; then
8084 ac_cpp_err=$ac_c_preproc_warn_flag
8085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8086 else
8087 ac_cpp_err=
8089 else
8090 ac_cpp_err=yes
8092 if test -z "$ac_cpp_err"; then
8093 ac_header_preproc=yes
8094 else
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 ac_header_preproc=no
8101 rm -f conftest.err conftest.$ac_ext
8102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8103 echo "${ECHO_T}$ac_header_preproc" >&6; }
8105 # So? What about this header?
8106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8107 yes:no: )
8108 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
8109 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8110 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
8111 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
8112 ac_header_preproc=yes
8114 no:yes:* )
8115 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
8116 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
8117 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
8118 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
8119 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
8120 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
8122 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
8124 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
8126 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
8129 esac
8130 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
8131 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
8132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135 eval "$as_ac_Header=\$ac_header_preproc"
8137 ac_res=`eval echo '${'$as_ac_Header'}'`
8138 { echo "$as_me:$LINENO: result: $ac_res" >&5
8139 echo "${ECHO_T}$ac_res" >&6; }
8142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8143 NCURSES_HEADER_FOUND=1
8144 else
8145 NCURSES_HEADER_FOUND=0
8150 else
8151 if test "xcurses.h" != "x" ; then
8152 if test "${ac_cv_header_curses_h+set}" = set; then
8153 { echo "$as_me:$LINENO: checking for curses.h" >&5
8154 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
8155 if test "${ac_cv_header_curses_h+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
8159 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
8160 else
8161 # Is the header compilable?
8162 { echo "$as_me:$LINENO: checking curses.h usability" >&5
8163 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h. */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 $ac_includes_default
8171 #include <curses.h>
8172 _ACEOF
8173 rm -f conftest.$ac_objext
8174 if { (ac_try="$ac_compile"
8175 case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_compile") 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8188 { (case "(($ac_try" in
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8191 esac
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_try") 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; } &&
8197 { ac_try='test -s conftest.$ac_objext'
8198 { (case "(($ac_try" in
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8201 esac
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_try") 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8207 ac_header_compiler=yes
8208 else
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8212 ac_header_compiler=no
8215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8217 echo "${ECHO_T}$ac_header_compiler" >&6; }
8219 # Is the header present?
8220 { echo "$as_me:$LINENO: checking curses.h presence" >&5
8221 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
8222 cat >conftest.$ac_ext <<_ACEOF
8223 /* confdefs.h. */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8228 #include <curses.h>
8229 _ACEOF
8230 if { (ac_try="$ac_cpp conftest.$ac_ext"
8231 case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8234 esac
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } >/dev/null; then
8243 if test -s conftest.err; then
8244 ac_cpp_err=$ac_c_preproc_warn_flag
8245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8246 else
8247 ac_cpp_err=
8249 else
8250 ac_cpp_err=yes
8252 if test -z "$ac_cpp_err"; then
8253 ac_header_preproc=yes
8254 else
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8258 ac_header_preproc=no
8261 rm -f conftest.err conftest.$ac_ext
8262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8263 echo "${ECHO_T}$ac_header_preproc" >&6; }
8265 # So? What about this header?
8266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8267 yes:no: )
8268 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
8269 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8270 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
8271 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
8272 ac_header_preproc=yes
8274 no:yes:* )
8275 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
8276 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
8278 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
8280 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
8282 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
8283 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
8284 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
8285 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
8286 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
8289 esac
8290 { echo "$as_me:$LINENO: checking for curses.h" >&5
8291 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
8292 if test "${ac_cv_header_curses_h+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295 ac_cv_header_curses_h=$ac_header_preproc
8297 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
8298 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
8301 if test $ac_cv_header_curses_h = yes; then
8302 NCURSES_HEADER_FOUND=1
8303 else
8304 NCURSES_HEADER_FOUND=0
8310 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
8311 if test ! -z "${NCURSES_MANDATORY}" ;
8312 then
8313 echo " ***"
8314 echo " *** It appears that you do not have the ncurses development package installed."
8315 echo " *** Please install it to include ncurses support, or re-run configure"
8316 echo " *** without explicitly specifying --with-ncurses"
8317 exit 1
8319 NCURSES_LIB=""
8320 NCURSES_INCLUDE=""
8321 PBX_LIBNCURSES=0
8322 else
8323 PBX_LIBNCURSES=1
8325 cat >>confdefs.h <<_ACEOF
8326 #define HAVE_NCURSES 1
8327 _ACEOF
8330 elif test ! -z "${NCURSES_MANDATORY}";
8331 then
8332 echo "***"
8333 echo "*** The ncurses installation on this system appears to be broken."
8334 echo "*** Either correct the installation, or run configure"
8335 echo "*** without explicity specifying --with-ncurses"
8336 exit 1
8345 # Check whether --with-newt was given.
8346 if test "${with_newt+set}" = set; then
8347 withval=$with_newt;
8348 case ${withval} in
8349 n|no)
8350 USE_NEWT=no
8352 y|ye|yes)
8353 NEWT_MANDATORY="yes"
8356 NEWT_DIR="${withval}"
8357 NEWT_MANDATORY="yes"
8359 esac
8364 PBX_LIBNEWT=0
8366 if test "${USE_NEWT}" != "no"; then
8367 pbxlibdir=""
8368 if test "x${NEWT_DIR}" != "x"; then
8369 pbxlibdir="-L${newt_DIR}/lib"
8371 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
8372 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
8373 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376 ac_check_lib_save_LIBS=$LIBS
8377 LIBS="-lnewt ${pbxlibdir} $LIBS"
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8385 /* Override any GCC internal prototype to avoid an error.
8386 Use char because int might match the return type of a GCC
8387 builtin and then its argument prototype would still apply. */
8388 #ifdef __cplusplus
8389 extern "C"
8390 #endif
8391 char newtBell ();
8393 main ()
8395 return newtBell ();
8397 return 0;
8399 _ACEOF
8400 rm -f conftest.$ac_objext conftest$ac_exeext
8401 if { (ac_try="$ac_link"
8402 case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_link") 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8415 { (case "(($ac_try" in
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8418 esac
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_try") 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest$ac_exeext'
8425 { (case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_try") 2>&5
8431 ac_status=$?
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_cv_lib_newt_newtBell=yes
8435 else
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 ac_cv_lib_newt_newtBell=no
8442 rm -f conftest.err conftest.$ac_objext \
8443 conftest$ac_exeext conftest.$ac_ext
8444 LIBS=$ac_check_lib_save_LIBS
8446 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
8447 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
8448 if test $ac_cv_lib_newt_newtBell = yes; then
8449 AST_NEWT_FOUND=yes
8450 else
8451 AST_NEWT_FOUND=no
8455 if test "${AST_NEWT_FOUND}" = "yes"; then
8456 NEWT_LIB="-lnewt "
8457 NEWT_HEADER_FOUND="1"
8458 if test "x${NEWT_DIR}" != "x"; then
8459 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
8460 NEWT_INCLUDE="-I${NEWT_DIR}/include"
8461 if test "xnewt.h" != "x" ; then
8462 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
8463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8464 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
8465 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
8466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 ac_res=`eval echo '${'$as_ac_Header'}'`
8470 { echo "$as_me:$LINENO: result: $ac_res" >&5
8471 echo "${ECHO_T}$ac_res" >&6; }
8472 else
8473 # Is the header compilable?
8474 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
8475 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
8476 cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h. */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8482 $ac_includes_default
8483 #include <${NEWT_DIR}/include/newt.h>
8484 _ACEOF
8485 rm -f conftest.$ac_objext
8486 if { (ac_try="$ac_compile"
8487 case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8503 esac
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest.$ac_objext'
8510 { (case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513 esac
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_try") 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_header_compiler=yes
8520 else
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_header_compiler=no
8527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8529 echo "${ECHO_T}$ac_header_compiler" >&6; }
8531 # Is the header present?
8532 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
8533 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 #include <${NEWT_DIR}/include/newt.h>
8541 _ACEOF
8542 if { (ac_try="$ac_cpp conftest.$ac_ext"
8543 case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546 esac
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8549 ac_status=$?
8550 grep -v '^ *+' conftest.er1 >conftest.err
8551 rm -f conftest.er1
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } >/dev/null; then
8555 if test -s conftest.err; then
8556 ac_cpp_err=$ac_c_preproc_warn_flag
8557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8558 else
8559 ac_cpp_err=
8561 else
8562 ac_cpp_err=yes
8564 if test -z "$ac_cpp_err"; then
8565 ac_header_preproc=yes
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8570 ac_header_preproc=no
8573 rm -f conftest.err conftest.$ac_ext
8574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8575 echo "${ECHO_T}$ac_header_preproc" >&6; }
8577 # So? What about this header?
8578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8579 yes:no: )
8580 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
8581 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
8583 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
8584 ac_header_preproc=yes
8586 no:yes:* )
8587 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
8588 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
8590 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
8592 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
8594 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
8595 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
8596 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
8598 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
8601 esac
8602 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
8603 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
8604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607 eval "$as_ac_Header=\$ac_header_preproc"
8609 ac_res=`eval echo '${'$as_ac_Header'}'`
8610 { echo "$as_me:$LINENO: result: $ac_res" >&5
8611 echo "${ECHO_T}$ac_res" >&6; }
8614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8615 NEWT_HEADER_FOUND=1
8616 else
8617 NEWT_HEADER_FOUND=0
8622 else
8623 if test "xnewt.h" != "x" ; then
8624 if test "${ac_cv_header_newt_h+set}" = set; then
8625 { echo "$as_me:$LINENO: checking for newt.h" >&5
8626 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
8627 if test "${ac_cv_header_newt_h+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
8631 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
8632 else
8633 # Is the header compilable?
8634 { echo "$as_me:$LINENO: checking newt.h usability" >&5
8635 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 #include <newt.h>
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8647 case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_compile") 2>conftest.er1
8653 ac_status=$?
8654 grep -v '^ *+' conftest.er1 >conftest.err
8655 rm -f conftest.er1
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8660 { (case "(($ac_try" in
8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662 *) ac_try_echo=$ac_try;;
8663 esac
8664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665 (eval "$ac_try") 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; } &&
8669 { ac_try='test -s conftest.$ac_objext'
8670 { (case "(($ac_try" in
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8673 esac
8674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_try") 2>&5
8676 ac_status=$?
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; }; then
8679 ac_header_compiler=yes
8680 else
8681 echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8684 ac_header_compiler=no
8687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8689 echo "${ECHO_T}$ac_header_compiler" >&6; }
8691 # Is the header present?
8692 { echo "$as_me:$LINENO: checking newt.h presence" >&5
8693 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
8694 cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h. */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700 #include <newt.h>
8701 _ACEOF
8702 if { (ac_try="$ac_cpp conftest.$ac_ext"
8703 case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8709 ac_status=$?
8710 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } >/dev/null; then
8715 if test -s conftest.err; then
8716 ac_cpp_err=$ac_c_preproc_warn_flag
8717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8718 else
8719 ac_cpp_err=
8721 else
8722 ac_cpp_err=yes
8724 if test -z "$ac_cpp_err"; then
8725 ac_header_preproc=yes
8726 else
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8730 ac_header_preproc=no
8733 rm -f conftest.err conftest.$ac_ext
8734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8735 echo "${ECHO_T}$ac_header_preproc" >&6; }
8737 # So? What about this header?
8738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8739 yes:no: )
8740 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
8741 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
8743 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
8744 ac_header_preproc=yes
8746 no:yes:* )
8747 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
8748 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
8750 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
8752 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
8754 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
8756 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
8758 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
8761 esac
8762 { echo "$as_me:$LINENO: checking for newt.h" >&5
8763 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
8764 if test "${ac_cv_header_newt_h+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 else
8767 ac_cv_header_newt_h=$ac_header_preproc
8769 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
8770 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
8773 if test $ac_cv_header_newt_h = yes; then
8774 NEWT_HEADER_FOUND=1
8775 else
8776 NEWT_HEADER_FOUND=0
8782 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
8783 if test ! -z "${NEWT_MANDATORY}" ;
8784 then
8785 echo " ***"
8786 echo " *** It appears that you do not have the newt development package installed."
8787 echo " *** Please install it to include newt support, or re-run configure"
8788 echo " *** without explicitly specifying --with-newt"
8789 exit 1
8791 NEWT_LIB=""
8792 NEWT_INCLUDE=""
8793 PBX_LIBNEWT=0
8794 else
8795 PBX_LIBNEWT=1
8797 cat >>confdefs.h <<_ACEOF
8798 #define HAVE_NEWT 1
8799 _ACEOF
8802 elif test ! -z "${NEWT_MANDATORY}";
8803 then
8804 echo "***"
8805 echo "*** The newt installation on this system appears to be broken."
8806 echo "*** Either correct the installation, or run configure"
8807 echo "*** without explicity specifying --with-newt"
8808 exit 1
8817 # Check whether --with-odbc was given.
8818 if test "${with_odbc+set}" = set; then
8819 withval=$with_odbc;
8820 case ${withval} in
8821 n|no)
8822 USE_UNIXODBC=no
8824 y|ye|yes)
8825 UNIXODBC_MANDATORY="yes"
8828 UNIXODBC_DIR="${withval}"
8829 UNIXODBC_MANDATORY="yes"
8831 esac
8836 PBX_LIBUNIXODBC=0
8838 if test "${USE_UNIXODBC}" != "no"; then
8839 pbxlibdir=""
8840 if test "x${UNIXODBC_DIR}" != "x"; then
8841 pbxlibdir="-L${odbc_DIR}/lib"
8843 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
8844 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
8845 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 ac_check_lib_save_LIBS=$LIBS
8849 LIBS="-lodbc ${pbxlibdir} $LIBS"
8850 cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h. */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8857 /* Override any GCC internal prototype to avoid an error.
8858 Use char because int might match the return type of a GCC
8859 builtin and then its argument prototype would still apply. */
8860 #ifdef __cplusplus
8861 extern "C"
8862 #endif
8863 char SQLConnect ();
8865 main ()
8867 return SQLConnect ();
8869 return 0;
8871 _ACEOF
8872 rm -f conftest.$ac_objext conftest$ac_exeext
8873 if { (ac_try="$ac_link"
8874 case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8877 esac
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_link") 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8887 { (case "(($ac_try" in
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8890 esac
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_try") 2>&5
8893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; } &&
8896 { ac_try='test -s conftest$ac_exeext'
8897 { (case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8900 esac
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_try") 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_lib_odbc_SQLConnect=yes
8907 else
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ac_cv_lib_odbc_SQLConnect=no
8914 rm -f conftest.err conftest.$ac_objext \
8915 conftest$ac_exeext conftest.$ac_ext
8916 LIBS=$ac_check_lib_save_LIBS
8918 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
8919 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
8920 if test $ac_cv_lib_odbc_SQLConnect = yes; then
8921 AST_UNIXODBC_FOUND=yes
8922 else
8923 AST_UNIXODBC_FOUND=no
8927 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
8928 UNIXODBC_LIB="-lodbc "
8929 UNIXODBC_HEADER_FOUND="1"
8930 if test "x${UNIXODBC_DIR}" != "x"; then
8931 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
8932 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
8933 if test "xsql.h" != "x" ; then
8934 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
8935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8936 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
8937 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
8938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 ac_res=`eval echo '${'$as_ac_Header'}'`
8942 { echo "$as_me:$LINENO: result: $ac_res" >&5
8943 echo "${ECHO_T}$ac_res" >&6; }
8944 else
8945 # Is the header compilable?
8946 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
8947 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h. */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 $ac_includes_default
8955 #include <${UNIXODBC_DIR}/include/sql.h>
8956 _ACEOF
8957 rm -f conftest.$ac_objext
8958 if { (ac_try="$ac_compile"
8959 case "(($ac_try" in
8960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8961 *) ac_try_echo=$ac_try;;
8962 esac
8963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964 (eval "$ac_compile") 2>conftest.er1
8965 ac_status=$?
8966 grep -v '^ *+' conftest.er1 >conftest.err
8967 rm -f conftest.er1
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8972 { (case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8975 esac
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_try") 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest.$ac_objext'
8982 { (case "(($ac_try" in
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8985 esac
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_try") 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 ac_header_compiler=yes
8992 else
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 ac_header_compiler=no
8999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9001 echo "${ECHO_T}$ac_header_compiler" >&6; }
9003 # Is the header present?
9004 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
9005 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h. */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012 #include <${UNIXODBC_DIR}/include/sql.h>
9013 _ACEOF
9014 if { (ac_try="$ac_cpp conftest.$ac_ext"
9015 case "(($ac_try" in
9016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017 *) ac_try_echo=$ac_try;;
9018 esac
9019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9021 ac_status=$?
9022 grep -v '^ *+' conftest.er1 >conftest.err
9023 rm -f conftest.er1
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } >/dev/null; then
9027 if test -s conftest.err; then
9028 ac_cpp_err=$ac_c_preproc_warn_flag
9029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9030 else
9031 ac_cpp_err=
9033 else
9034 ac_cpp_err=yes
9036 if test -z "$ac_cpp_err"; then
9037 ac_header_preproc=yes
9038 else
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9042 ac_header_preproc=no
9045 rm -f conftest.err conftest.$ac_ext
9046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9047 echo "${ECHO_T}$ac_header_preproc" >&6; }
9049 # So? What about this header?
9050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9051 yes:no: )
9052 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
9053 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9054 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
9055 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
9056 ac_header_preproc=yes
9058 no:yes:* )
9059 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
9060 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
9062 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
9064 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
9066 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
9067 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
9068 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
9070 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
9073 esac
9074 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
9075 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
9076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079 eval "$as_ac_Header=\$ac_header_preproc"
9081 ac_res=`eval echo '${'$as_ac_Header'}'`
9082 { echo "$as_me:$LINENO: result: $ac_res" >&5
9083 echo "${ECHO_T}$ac_res" >&6; }
9086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9087 UNIXODBC_HEADER_FOUND=1
9088 else
9089 UNIXODBC_HEADER_FOUND=0
9094 else
9095 if test "xsql.h" != "x" ; then
9096 if test "${ac_cv_header_sql_h+set}" = set; then
9097 { echo "$as_me:$LINENO: checking for sql.h" >&5
9098 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
9099 if test "${ac_cv_header_sql_h+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
9103 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
9104 else
9105 # Is the header compilable?
9106 { echo "$as_me:$LINENO: checking sql.h usability" >&5
9107 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 $ac_includes_default
9115 #include <sql.h>
9116 _ACEOF
9117 rm -f conftest.$ac_objext
9118 if { (ac_try="$ac_compile"
9119 case "(($ac_try" in
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9122 esac
9123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9124 (eval "$ac_compile") 2>conftest.er1
9125 ac_status=$?
9126 grep -v '^ *+' conftest.er1 >conftest.err
9127 rm -f conftest.er1
9128 cat conftest.err >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9132 { (case "(($ac_try" in
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9135 esac
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_try") 2>&5
9138 ac_status=$?
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try='test -s conftest.$ac_objext'
9142 { (case "(($ac_try" in
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9145 esac
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_try") 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 ac_header_compiler=yes
9152 else
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9156 ac_header_compiler=no
9159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9161 echo "${ECHO_T}$ac_header_compiler" >&6; }
9163 # Is the header present?
9164 { echo "$as_me:$LINENO: checking sql.h presence" >&5
9165 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
9166 cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h. */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 #include <sql.h>
9173 _ACEOF
9174 if { (ac_try="$ac_cpp conftest.$ac_ext"
9175 case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178 esac
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } >/dev/null; then
9187 if test -s conftest.err; then
9188 ac_cpp_err=$ac_c_preproc_warn_flag
9189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9190 else
9191 ac_cpp_err=
9193 else
9194 ac_cpp_err=yes
9196 if test -z "$ac_cpp_err"; then
9197 ac_header_preproc=yes
9198 else
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9202 ac_header_preproc=no
9205 rm -f conftest.err conftest.$ac_ext
9206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9207 echo "${ECHO_T}$ac_header_preproc" >&6; }
9209 # So? What about this header?
9210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9211 yes:no: )
9212 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
9213 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
9215 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
9216 ac_header_preproc=yes
9218 no:yes:* )
9219 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
9220 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
9222 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
9223 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
9224 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
9226 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
9228 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
9230 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
9233 esac
9234 { echo "$as_me:$LINENO: checking for sql.h" >&5
9235 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
9236 if test "${ac_cv_header_sql_h+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239 ac_cv_header_sql_h=$ac_header_preproc
9241 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
9242 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
9245 if test $ac_cv_header_sql_h = yes; then
9246 UNIXODBC_HEADER_FOUND=1
9247 else
9248 UNIXODBC_HEADER_FOUND=0
9254 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
9255 if test ! -z "${UNIXODBC_MANDATORY}" ;
9256 then
9257 echo " ***"
9258 echo " *** It appears that you do not have the odbc development package installed."
9259 echo " *** Please install it to include unixODBC support, or re-run configure"
9260 echo " *** without explicitly specifying --with-odbc"
9261 exit 1
9263 UNIXODBC_LIB=""
9264 UNIXODBC_INCLUDE=""
9265 PBX_LIBUNIXODBC=0
9266 else
9267 PBX_LIBUNIXODBC=1
9269 cat >>confdefs.h <<_ACEOF
9270 #define HAVE_UNIXODBC 1
9271 _ACEOF
9274 elif test ! -z "${UNIXODBC_MANDATORY}";
9275 then
9276 echo "***"
9277 echo "*** The unixODBC installation on this system appears to be broken."
9278 echo "*** Either correct the installation, or run configure"
9279 echo "*** without explicity specifying --with-odbc"
9280 exit 1
9289 # Check whether --with-ogg was given.
9290 if test "${with_ogg+set}" = set; then
9291 withval=$with_ogg;
9292 case ${withval} in
9293 n|no)
9294 USE_OGG=no
9296 y|ye|yes)
9297 OGG_MANDATORY="yes"
9300 OGG_DIR="${withval}"
9301 OGG_MANDATORY="yes"
9303 esac
9308 PBX_LIBOGG=0
9310 if test "${USE_OGG}" != "no"; then
9311 pbxlibdir=""
9312 if test "x${OGG_DIR}" != "x"; then
9313 pbxlibdir="-L${ogg_DIR}/lib"
9315 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
9316 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
9317 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320 ac_check_lib_save_LIBS=$LIBS
9321 LIBS="-logg ${pbxlibdir} $LIBS"
9322 cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h. */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9329 /* Override any GCC internal prototype to avoid an error.
9330 Use char because int might match the return type of a GCC
9331 builtin and then its argument prototype would still apply. */
9332 #ifdef __cplusplus
9333 extern "C"
9334 #endif
9335 char ogg_sync_init ();
9337 main ()
9339 return ogg_sync_init ();
9341 return 0;
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (ac_try="$ac_link"
9346 case "(($ac_try" in
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9349 esac
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_link") 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9359 { (case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9362 esac
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_try") 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; } &&
9368 { ac_try='test -s conftest$ac_exeext'
9369 { (case "(($ac_try" in
9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371 *) ac_try_echo=$ac_try;;
9372 esac
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374 (eval "$ac_try") 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 ac_cv_lib_ogg_ogg_sync_init=yes
9379 else
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9383 ac_cv_lib_ogg_ogg_sync_init=no
9386 rm -f conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9390 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
9391 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
9392 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
9393 AST_OGG_FOUND=yes
9394 else
9395 AST_OGG_FOUND=no
9399 if test "${AST_OGG_FOUND}" = "yes"; then
9400 OGG_LIB="-logg "
9401 OGG_HEADER_FOUND="1"
9402 if test "x${OGG_DIR}" != "x"; then
9403 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
9404 OGG_INCLUDE="-I${OGG_DIR}/include"
9405 if test "x" != "x" ; then
9406 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
9407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9408 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
9409 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
9410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 ac_res=`eval echo '${'$as_ac_Header'}'`
9414 { echo "$as_me:$LINENO: result: $ac_res" >&5
9415 echo "${ECHO_T}$ac_res" >&6; }
9416 else
9417 # Is the header compilable?
9418 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
9419 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426 $ac_includes_default
9427 #include <${OGG_DIR}/include/>
9428 _ACEOF
9429 rm -f conftest.$ac_objext
9430 if { (ac_try="$ac_compile"
9431 case "(($ac_try" in
9432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9433 *) ac_try_echo=$ac_try;;
9434 esac
9435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9436 (eval "$ac_compile") 2>conftest.er1
9437 ac_status=$?
9438 grep -v '^ *+' conftest.er1 >conftest.err
9439 rm -f conftest.er1
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
9443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9444 { (case "(($ac_try" in
9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9447 esac
9448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9449 (eval "$ac_try") 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; } &&
9453 { ac_try='test -s conftest.$ac_objext'
9454 { (case "(($ac_try" in
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9457 esac
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_try") 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 ac_header_compiler=yes
9464 else
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 ac_header_compiler=no
9471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9473 echo "${ECHO_T}$ac_header_compiler" >&6; }
9475 # Is the header present?
9476 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
9477 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
9478 cat >conftest.$ac_ext <<_ACEOF
9479 /* confdefs.h. */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9484 #include <${OGG_DIR}/include/>
9485 _ACEOF
9486 if { (ac_try="$ac_cpp conftest.$ac_ext"
9487 case "(($ac_try" in
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9490 esac
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } >/dev/null; then
9499 if test -s conftest.err; then
9500 ac_cpp_err=$ac_c_preproc_warn_flag
9501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9502 else
9503 ac_cpp_err=
9505 else
9506 ac_cpp_err=yes
9508 if test -z "$ac_cpp_err"; then
9509 ac_header_preproc=yes
9510 else
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 ac_header_preproc=no
9517 rm -f conftest.err conftest.$ac_ext
9518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9519 echo "${ECHO_T}$ac_header_preproc" >&6; }
9521 # So? What about this header?
9522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9523 yes:no: )
9524 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
9525 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
9526 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
9527 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
9528 ac_header_preproc=yes
9530 no:yes:* )
9531 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
9532 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
9534 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
9535 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
9536 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
9537 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
9538 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
9539 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
9540 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
9541 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
9542 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
9545 esac
9546 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
9547 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
9548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 eval "$as_ac_Header=\$ac_header_preproc"
9553 ac_res=`eval echo '${'$as_ac_Header'}'`
9554 { echo "$as_me:$LINENO: result: $ac_res" >&5
9555 echo "${ECHO_T}$ac_res" >&6; }
9558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9559 OGG_HEADER_FOUND=1
9560 else
9561 OGG_HEADER_FOUND=0
9566 else
9567 if test "x" != "x" ; then
9568 if test "${ac_cv_header_+set}" = set; then
9569 { echo "$as_me:$LINENO: checking for " >&5
9570 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
9571 if test "${ac_cv_header_+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
9575 echo "${ECHO_T}$ac_cv_header_" >&6; }
9576 else
9577 # Is the header compilable?
9578 { echo "$as_me:$LINENO: checking usability" >&5
9579 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h. */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 $ac_includes_default
9587 #include <>
9588 _ACEOF
9589 rm -f conftest.$ac_objext
9590 if { (ac_try="$ac_compile"
9591 case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594 esac
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_compile") 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } &&
9603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9604 { (case "(($ac_try" in
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9607 esac
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_try") 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; } &&
9613 { ac_try='test -s conftest.$ac_objext'
9614 { (case "(($ac_try" in
9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9617 esac
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_try") 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 ac_header_compiler=yes
9624 else
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 ac_header_compiler=no
9631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9633 echo "${ECHO_T}$ac_header_compiler" >&6; }
9635 # Is the header present?
9636 { echo "$as_me:$LINENO: checking presence" >&5
9637 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
9638 cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h. */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9644 #include <>
9645 _ACEOF
9646 if { (ac_try="$ac_cpp conftest.$ac_ext"
9647 case "(($ac_try" in
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9650 esac
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } >/dev/null; then
9659 if test -s conftest.err; then
9660 ac_cpp_err=$ac_c_preproc_warn_flag
9661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9662 else
9663 ac_cpp_err=
9665 else
9666 ac_cpp_err=yes
9668 if test -z "$ac_cpp_err"; then
9669 ac_header_preproc=yes
9670 else
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_header_preproc=no
9677 rm -f conftest.err conftest.$ac_ext
9678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9679 echo "${ECHO_T}$ac_header_preproc" >&6; }
9681 # So? What about this header?
9682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9683 yes:no: )
9684 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
9685 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
9687 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
9688 ac_header_preproc=yes
9690 no:yes:* )
9691 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
9692 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
9694 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
9696 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
9698 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
9700 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
9702 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
9705 esac
9706 { echo "$as_me:$LINENO: checking for " >&5
9707 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
9708 if test "${ac_cv_header_+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711 ac_cv_header_=$ac_header_preproc
9713 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
9714 echo "${ECHO_T}$ac_cv_header_" >&6; }
9717 if test $ac_cv_header_ = yes; then
9718 OGG_HEADER_FOUND=1
9719 else
9720 OGG_HEADER_FOUND=0
9726 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
9727 if test ! -z "${OGG_MANDATORY}" ;
9728 then
9729 echo " ***"
9730 echo " *** It appears that you do not have the ogg development package installed."
9731 echo " *** Please install it to include OGG support, or re-run configure"
9732 echo " *** without explicitly specifying --with-ogg"
9733 exit 1
9735 OGG_LIB=""
9736 OGG_INCLUDE=""
9737 PBX_LIBOGG=0
9738 else
9739 PBX_LIBOGG=1
9741 cat >>confdefs.h <<_ACEOF
9742 #define HAVE_OGG 1
9743 _ACEOF
9746 elif test ! -z "${OGG_MANDATORY}";
9747 then
9748 echo "***"
9749 echo "*** The OGG installation on this system appears to be broken."
9750 echo "*** Either correct the installation, or run configure"
9751 echo "*** without explicity specifying --with-ogg"
9752 exit 1
9761 # Check whether --with-osptk was given.
9762 if test "${with_osptk+set}" = set; then
9763 withval=$with_osptk;
9764 case ${withval} in
9765 n|no)
9766 USE_OSPTK=no
9768 y|ye|yes)
9769 OSPTK_MANDATORY="yes"
9772 OSPTK_DIR="${withval}"
9773 OSPTK_MANDATORY="yes"
9775 esac
9780 PBX_LIBOSPTK=0
9782 if test "${USE_OSPTK}" != "no"; then
9783 pbxlibdir=""
9784 if test "x${OSPTK_DIR}" != "x"; then
9785 pbxlibdir="-L${osptk_DIR}/lib"
9787 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
9788 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
9789 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792 ac_check_lib_save_LIBS=$LIBS
9793 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h. */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9801 /* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 char OSPPCryptoDecrypt ();
9809 main ()
9811 return OSPPCryptoDecrypt ();
9813 return 0;
9815 _ACEOF
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9818 case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9831 { (case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834 esac
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_try") 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest$ac_exeext'
9841 { (case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
9851 else
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
9858 rm -f conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860 LIBS=$ac_check_lib_save_LIBS
9862 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
9863 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
9864 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
9865 AST_OSPTK_FOUND=yes
9866 else
9867 AST_OSPTK_FOUND=no
9871 if test "${AST_OSPTK_FOUND}" = "yes"; then
9872 OSPTK_LIB="-losptk -lcrypto -lssl"
9873 OSPTK_HEADER_FOUND="1"
9874 if test "x${OSPTK_DIR}" != "x"; then
9875 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
9876 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
9877 if test "xosp/osp.h" != "x" ; then
9878 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
9879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9880 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
9881 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
9882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 ac_res=`eval echo '${'$as_ac_Header'}'`
9886 { echo "$as_me:$LINENO: result: $ac_res" >&5
9887 echo "${ECHO_T}$ac_res" >&6; }
9888 else
9889 # Is the header compilable?
9890 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
9891 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
9892 cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h. */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 $ac_includes_default
9899 #include <${OSPTK_DIR}/include/osp/osp.h>
9900 _ACEOF
9901 rm -f conftest.$ac_objext
9902 if { (ac_try="$ac_compile"
9903 case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_compile") 2>conftest.er1
9909 ac_status=$?
9910 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9916 { (case "(($ac_try" in
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9919 esac
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_try") 2>&5
9922 ac_status=$?
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; } &&
9925 { ac_try='test -s conftest.$ac_objext'
9926 { (case "(($ac_try" in
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9929 esac
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_try") 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_header_compiler=yes
9936 else
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_header_compiler=no
9943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9945 echo "${ECHO_T}$ac_header_compiler" >&6; }
9947 # Is the header present?
9948 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
9949 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
9950 cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h. */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9956 #include <${OSPTK_DIR}/include/osp/osp.h>
9957 _ACEOF
9958 if { (ac_try="$ac_cpp conftest.$ac_ext"
9959 case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9962 esac
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } >/dev/null; then
9971 if test -s conftest.err; then
9972 ac_cpp_err=$ac_c_preproc_warn_flag
9973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9974 else
9975 ac_cpp_err=
9977 else
9978 ac_cpp_err=yes
9980 if test -z "$ac_cpp_err"; then
9981 ac_header_preproc=yes
9982 else
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 ac_header_preproc=no
9989 rm -f conftest.err conftest.$ac_ext
9990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9991 echo "${ECHO_T}$ac_header_preproc" >&6; }
9993 # So? What about this header?
9994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9995 yes:no: )
9996 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
9997 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9998 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
9999 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
10000 ac_header_preproc=yes
10002 no:yes:* )
10003 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
10004 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
10005 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
10006 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
10007 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
10008 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
10009 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
10010 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10011 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
10012 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
10013 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
10014 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
10017 esac
10018 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
10019 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
10020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 eval "$as_ac_Header=\$ac_header_preproc"
10025 ac_res=`eval echo '${'$as_ac_Header'}'`
10026 { echo "$as_me:$LINENO: result: $ac_res" >&5
10027 echo "${ECHO_T}$ac_res" >&6; }
10030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10031 OSPTK_HEADER_FOUND=1
10032 else
10033 OSPTK_HEADER_FOUND=0
10038 else
10039 if test "xosp/osp.h" != "x" ; then
10040 if test "${ac_cv_header_osp_osp_h+set}" = set; then
10041 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
10042 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
10043 if test "${ac_cv_header_osp_osp_h+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
10047 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
10048 else
10049 # Is the header compilable?
10050 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
10051 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
10052 cat >conftest.$ac_ext <<_ACEOF
10053 /* confdefs.h. */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 $ac_includes_default
10059 #include <osp/osp.h>
10060 _ACEOF
10061 rm -f conftest.$ac_objext
10062 if { (ac_try="$ac_compile"
10063 case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_compile") 2>conftest.er1
10069 ac_status=$?
10070 grep -v '^ *+' conftest.er1 >conftest.err
10071 rm -f conftest.er1
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } &&
10075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10076 { (case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10079 esac
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_try") 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
10085 { ac_try='test -s conftest.$ac_objext'
10086 { (case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_try") 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_header_compiler=yes
10096 else
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 ac_header_compiler=no
10103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10105 echo "${ECHO_T}$ac_header_compiler" >&6; }
10107 # Is the header present?
10108 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
10109 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 #include <osp/osp.h>
10117 _ACEOF
10118 if { (ac_try="$ac_cpp conftest.$ac_ext"
10119 case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10122 esac
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10125 ac_status=$?
10126 grep -v '^ *+' conftest.er1 >conftest.err
10127 rm -f conftest.er1
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } >/dev/null; then
10131 if test -s conftest.err; then
10132 ac_cpp_err=$ac_c_preproc_warn_flag
10133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10134 else
10135 ac_cpp_err=
10137 else
10138 ac_cpp_err=yes
10140 if test -z "$ac_cpp_err"; then
10141 ac_header_preproc=yes
10142 else
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_header_preproc=no
10149 rm -f conftest.err conftest.$ac_ext
10150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10151 echo "${ECHO_T}$ac_header_preproc" >&6; }
10153 # So? What about this header?
10154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10155 yes:no: )
10156 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10157 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10158 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
10159 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
10160 ac_header_preproc=yes
10162 no:yes:* )
10163 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
10164 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
10166 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
10168 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
10170 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
10172 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
10174 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
10177 esac
10178 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
10179 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
10180 if test "${ac_cv_header_osp_osp_h+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183 ac_cv_header_osp_osp_h=$ac_header_preproc
10185 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
10186 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
10189 if test $ac_cv_header_osp_osp_h = yes; then
10190 OSPTK_HEADER_FOUND=1
10191 else
10192 OSPTK_HEADER_FOUND=0
10198 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
10199 if test ! -z "${OSPTK_MANDATORY}" ;
10200 then
10201 echo " ***"
10202 echo " *** It appears that you do not have the osptk development package installed."
10203 echo " *** Please install it to include OSP Toolkit support, or re-run configure"
10204 echo " *** without explicitly specifying --with-osptk"
10205 exit 1
10207 OSPTK_LIB=""
10208 OSPTK_INCLUDE=""
10209 PBX_LIBOSPTK=0
10210 else
10211 PBX_LIBOSPTK=1
10213 cat >>confdefs.h <<_ACEOF
10214 #define HAVE_OSPTK 1
10215 _ACEOF
10218 elif test ! -z "${OSPTK_MANDATORY}";
10219 then
10220 echo "***"
10221 echo "*** The OSP Toolkit installation on this system appears to be broken."
10222 echo "*** Either correct the installation, or run configure"
10223 echo "*** without explicity specifying --with-osptk"
10224 exit 1
10233 # Check whether --with-popt was given.
10234 if test "${with_popt+set}" = set; then
10235 withval=$with_popt;
10236 case ${withval} in
10237 n|no)
10238 USE_POPT=no
10240 y|ye|yes)
10241 POPT_MANDATORY="yes"
10244 POPT_DIR="${withval}"
10245 POPT_MANDATORY="yes"
10247 esac
10252 PBX_LIBPOPT=0
10254 if test "${USE_POPT}" != "no"; then
10255 pbxlibdir=""
10256 if test "x${POPT_DIR}" != "x"; then
10257 pbxlibdir="-L${popt_DIR}/lib"
10259 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
10260 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
10261 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 else
10264 ac_check_lib_save_LIBS=$LIBS
10265 LIBS="-lpopt ${pbxlibdir} $LIBS"
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h. */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
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 poptStrerror ();
10281 main ()
10283 return poptStrerror ();
10285 return 0;
10287 _ACEOF
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (ac_try="$ac_link"
10290 case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10293 esac
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_link") 2>conftest.er1
10296 ac_status=$?
10297 grep -v '^ *+' conftest.er1 >conftest.err
10298 rm -f conftest.er1
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10303 { (case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306 esac
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_try") 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10316 esac
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_try") 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_cv_lib_popt_poptStrerror=yes
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10327 ac_cv_lib_popt_poptStrerror=no
10330 rm -f conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
10332 LIBS=$ac_check_lib_save_LIBS
10334 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
10335 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
10336 if test $ac_cv_lib_popt_poptStrerror = yes; then
10337 AST_POPT_FOUND=yes
10338 else
10339 AST_POPT_FOUND=no
10343 if test "${AST_POPT_FOUND}" = "yes"; then
10344 POPT_LIB="-lpopt "
10345 POPT_HEADER_FOUND="1"
10346 if test "x${POPT_DIR}" != "x"; then
10347 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
10348 POPT_INCLUDE="-I${POPT_DIR}/include"
10349 if test "xpopt.h" != "x" ; then
10350 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
10351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10352 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
10353 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
10354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 ac_res=`eval echo '${'$as_ac_Header'}'`
10358 { echo "$as_me:$LINENO: result: $ac_res" >&5
10359 echo "${ECHO_T}$ac_res" >&6; }
10360 else
10361 # Is the header compilable?
10362 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
10363 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h. */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 $ac_includes_default
10371 #include <${POPT_DIR}/include/popt.h>
10372 _ACEOF
10373 rm -f conftest.$ac_objext
10374 if { (ac_try="$ac_compile"
10375 case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_compile") 2>conftest.er1
10381 ac_status=$?
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10388 { (case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_try") 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try='test -s conftest.$ac_objext'
10398 { (case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10401 esac
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_try") 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
10407 ac_header_compiler=yes
10408 else
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 ac_header_compiler=no
10415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10417 echo "${ECHO_T}$ac_header_compiler" >&6; }
10419 # Is the header present?
10420 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
10421 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428 #include <${POPT_DIR}/include/popt.h>
10429 _ACEOF
10430 if { (ac_try="$ac_cpp conftest.$ac_ext"
10431 case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10434 esac
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } >/dev/null; then
10443 if test -s conftest.err; then
10444 ac_cpp_err=$ac_c_preproc_warn_flag
10445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10446 else
10447 ac_cpp_err=
10449 else
10450 ac_cpp_err=yes
10452 if test -z "$ac_cpp_err"; then
10453 ac_header_preproc=yes
10454 else
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10458 ac_header_preproc=no
10461 rm -f conftest.err conftest.$ac_ext
10462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10463 echo "${ECHO_T}$ac_header_preproc" >&6; }
10465 # So? What about this header?
10466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10467 yes:no: )
10468 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
10469 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10470 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
10471 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
10472 ac_header_preproc=yes
10474 no:yes:* )
10475 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
10476 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
10477 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
10478 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
10479 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
10480 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
10481 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
10482 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
10483 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
10484 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
10485 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
10486 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
10489 esac
10490 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
10491 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
10492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 else
10495 eval "$as_ac_Header=\$ac_header_preproc"
10497 ac_res=`eval echo '${'$as_ac_Header'}'`
10498 { echo "$as_me:$LINENO: result: $ac_res" >&5
10499 echo "${ECHO_T}$ac_res" >&6; }
10502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10503 POPT_HEADER_FOUND=1
10504 else
10505 POPT_HEADER_FOUND=0
10510 else
10511 if test "xpopt.h" != "x" ; then
10512 if test "${ac_cv_header_popt_h+set}" = set; then
10513 { echo "$as_me:$LINENO: checking for popt.h" >&5
10514 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
10515 if test "${ac_cv_header_popt_h+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
10519 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
10520 else
10521 # Is the header compilable?
10522 { echo "$as_me:$LINENO: checking popt.h usability" >&5
10523 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
10524 cat >conftest.$ac_ext <<_ACEOF
10525 /* confdefs.h. */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530 $ac_includes_default
10531 #include <popt.h>
10532 _ACEOF
10533 rm -f conftest.$ac_objext
10534 if { (ac_try="$ac_compile"
10535 case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10538 esac
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_compile") 2>conftest.er1
10541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10557 { ac_try='test -s conftest.$ac_objext'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10561 esac
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_header_compiler=yes
10568 else
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_header_compiler=no
10575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10577 echo "${ECHO_T}$ac_header_compiler" >&6; }
10579 # Is the header present?
10580 { echo "$as_me:$LINENO: checking popt.h presence" >&5
10581 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 #include <popt.h>
10589 _ACEOF
10590 if { (ac_try="$ac_cpp conftest.$ac_ext"
10591 case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10594 esac
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10597 ac_status=$?
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } >/dev/null; then
10603 if test -s conftest.err; then
10604 ac_cpp_err=$ac_c_preproc_warn_flag
10605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10606 else
10607 ac_cpp_err=
10609 else
10610 ac_cpp_err=yes
10612 if test -z "$ac_cpp_err"; then
10613 ac_header_preproc=yes
10614 else
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10618 ac_header_preproc=no
10621 rm -f conftest.err conftest.$ac_ext
10622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10623 echo "${ECHO_T}$ac_header_preproc" >&6; }
10625 # So? What about this header?
10626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10627 yes:no: )
10628 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
10629 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
10631 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
10632 ac_header_preproc=yes
10634 no:yes:* )
10635 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
10636 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
10638 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
10640 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
10642 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
10644 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
10645 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
10646 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
10649 esac
10650 { echo "$as_me:$LINENO: checking for popt.h" >&5
10651 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
10652 if test "${ac_cv_header_popt_h+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655 ac_cv_header_popt_h=$ac_header_preproc
10657 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
10658 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
10661 if test $ac_cv_header_popt_h = yes; then
10662 POPT_HEADER_FOUND=1
10663 else
10664 POPT_HEADER_FOUND=0
10670 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
10671 if test ! -z "${POPT_MANDATORY}" ;
10672 then
10673 echo " ***"
10674 echo " *** It appears that you do not have the popt development package installed."
10675 echo " *** Please install it to include popt support, or re-run configure"
10676 echo " *** without explicitly specifying --with-popt"
10677 exit 1
10679 POPT_LIB=""
10680 POPT_INCLUDE=""
10681 PBX_LIBPOPT=0
10682 else
10683 PBX_LIBPOPT=1
10685 cat >>confdefs.h <<_ACEOF
10686 #define HAVE_POPT 1
10687 _ACEOF
10690 elif test ! -z "${POPT_MANDATORY}";
10691 then
10692 echo "***"
10693 echo "*** The popt installation on this system appears to be broken."
10694 echo "*** Either correct the installation, or run configure"
10695 echo "*** without explicity specifying --with-popt"
10696 exit 1
10705 # Check whether --with-pri was given.
10706 if test "${with_pri+set}" = set; then
10707 withval=$with_pri;
10708 case ${withval} in
10709 n|no)
10710 USE_LIBPRI=no
10712 y|ye|yes)
10713 LIBPRI_MANDATORY="yes"
10716 LIBPRI_DIR="${withval}"
10717 LIBPRI_MANDATORY="yes"
10719 esac
10724 PBX_LIBLIBPRI=0
10726 if test "${USE_LIBPRI}" != "no"; then
10727 pbxlibdir=""
10728 if test "x${LIBPRI_DIR}" != "x"; then
10729 pbxlibdir="-L${pri_DIR}/lib"
10731 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
10732 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
10733 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736 ac_check_lib_save_LIBS=$LIBS
10737 LIBS="-lpri ${pbxlibdir} $LIBS"
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10745 /* Override any GCC internal prototype to avoid an error.
10746 Use char because int might match the return type of a GCC
10747 builtin and then its argument prototype would still apply. */
10748 #ifdef __cplusplus
10749 extern "C"
10750 #endif
10751 char pri_call ();
10753 main ()
10755 return pri_call ();
10757 return 0;
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10775 { (case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_try") 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try='test -s conftest$ac_exeext'
10785 { (case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10788 esac
10789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790 (eval "$ac_try") 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_cv_lib_pri_pri_call=yes
10795 else
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_cv_lib_pri_pri_call=no
10802 rm -f conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804 LIBS=$ac_check_lib_save_LIBS
10806 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
10807 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
10808 if test $ac_cv_lib_pri_pri_call = yes; then
10809 AST_LIBPRI_FOUND=yes
10810 else
10811 AST_LIBPRI_FOUND=no
10815 if test "${AST_LIBPRI_FOUND}" = "yes"; then
10816 LIBPRI_LIB="-lpri "
10817 LIBPRI_HEADER_FOUND="1"
10818 if test "x${LIBPRI_DIR}" != "x"; then
10819 LIBPRI_LIB="${pbxlibdir} ${LIBPRI_LIB}"
10820 LIBPRI_INCLUDE="-I${LIBPRI_DIR}/include"
10821 if test "xlibpri.h" != "x" ; then
10822 as_ac_Header=`echo "ac_cv_header_${LIBPRI_DIR}/include/libpri.h" | $as_tr_sh`
10823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10824 { echo "$as_me:$LINENO: checking for ${LIBPRI_DIR}/include/libpri.h" >&5
10825 echo $ECHO_N "checking for ${LIBPRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
10826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 ac_res=`eval echo '${'$as_ac_Header'}'`
10830 { echo "$as_me:$LINENO: result: $ac_res" >&5
10831 echo "${ECHO_T}$ac_res" >&6; }
10832 else
10833 # Is the header compilable?
10834 { echo "$as_me:$LINENO: checking ${LIBPRI_DIR}/include/libpri.h usability" >&5
10835 echo $ECHO_N "checking ${LIBPRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
10836 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h. */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 $ac_includes_default
10843 #include <${LIBPRI_DIR}/include/libpri.h>
10844 _ACEOF
10845 rm -f conftest.$ac_objext
10846 if { (ac_try="$ac_compile"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_compile") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } &&
10859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10860 { (case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10863 esac
10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_try") 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try='test -s conftest.$ac_objext'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_header_compiler=yes
10880 else
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 ac_header_compiler=no
10887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10889 echo "${ECHO_T}$ac_header_compiler" >&6; }
10891 # Is the header present?
10892 { echo "$as_me:$LINENO: checking ${LIBPRI_DIR}/include/libpri.h presence" >&5
10893 echo $ECHO_N "checking ${LIBPRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h. */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 #include <${LIBPRI_DIR}/include/libpri.h>
10901 _ACEOF
10902 if { (ac_try="$ac_cpp conftest.$ac_ext"
10903 case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10906 esac
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10909 ac_status=$?
10910 grep -v '^ *+' conftest.er1 >conftest.err
10911 rm -f conftest.er1
10912 cat conftest.err >&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } >/dev/null; then
10915 if test -s conftest.err; then
10916 ac_cpp_err=$ac_c_preproc_warn_flag
10917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10918 else
10919 ac_cpp_err=
10921 else
10922 ac_cpp_err=yes
10924 if test -z "$ac_cpp_err"; then
10925 ac_header_preproc=yes
10926 else
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_header_preproc=no
10933 rm -f conftest.err conftest.$ac_ext
10934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10935 echo "${ECHO_T}$ac_header_preproc" >&6; }
10937 # So? What about this header?
10938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10939 yes:no: )
10940 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
10941 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10942 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
10943 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
10944 ac_header_preproc=yes
10946 no:yes:* )
10947 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
10948 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
10950 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
10952 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
10954 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
10956 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: ${LIBPRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
10958 echo "$as_me: WARNING: ${LIBPRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
10961 esac
10962 { echo "$as_me:$LINENO: checking for ${LIBPRI_DIR}/include/libpri.h" >&5
10963 echo $ECHO_N "checking for ${LIBPRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
10964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967 eval "$as_ac_Header=\$ac_header_preproc"
10969 ac_res=`eval echo '${'$as_ac_Header'}'`
10970 { echo "$as_me:$LINENO: result: $ac_res" >&5
10971 echo "${ECHO_T}$ac_res" >&6; }
10974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10975 LIBPRI_HEADER_FOUND=1
10976 else
10977 LIBPRI_HEADER_FOUND=0
10982 else
10983 if test "xlibpri.h" != "x" ; then
10984 if test "${ac_cv_header_libpri_h+set}" = set; then
10985 { echo "$as_me:$LINENO: checking for libpri.h" >&5
10986 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
10987 if test "${ac_cv_header_libpri_h+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
10991 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
10992 else
10993 # Is the header compilable?
10994 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
10995 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h. */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 $ac_includes_default
11003 #include <libpri.h>
11004 _ACEOF
11005 rm -f conftest.$ac_objext
11006 if { (ac_try="$ac_compile"
11007 case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11010 esac
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_compile") 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020 { (case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_try") 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest.$ac_objext'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 ac_header_compiler=yes
11040 else
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 ac_header_compiler=no
11047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11049 echo "${ECHO_T}$ac_header_compiler" >&6; }
11051 # Is the header present?
11052 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
11053 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
11054 cat >conftest.$ac_ext <<_ACEOF
11055 /* confdefs.h. */
11056 _ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11060 #include <libpri.h>
11061 _ACEOF
11062 if { (ac_try="$ac_cpp conftest.$ac_ext"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } >/dev/null; then
11075 if test -s conftest.err; then
11076 ac_cpp_err=$ac_c_preproc_warn_flag
11077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11078 else
11079 ac_cpp_err=
11081 else
11082 ac_cpp_err=yes
11084 if test -z "$ac_cpp_err"; then
11085 ac_header_preproc=yes
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_header_preproc=no
11093 rm -f conftest.err conftest.$ac_ext
11094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11095 echo "${ECHO_T}$ac_header_preproc" >&6; }
11097 # So? What about this header?
11098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11099 yes:no: )
11100 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
11101 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
11103 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
11104 ac_header_preproc=yes
11106 no:yes:* )
11107 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
11108 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
11110 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
11112 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
11114 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
11116 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
11118 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
11121 esac
11122 { echo "$as_me:$LINENO: checking for libpri.h" >&5
11123 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
11124 if test "${ac_cv_header_libpri_h+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127 ac_cv_header_libpri_h=$ac_header_preproc
11129 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
11130 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
11133 if test $ac_cv_header_libpri_h = yes; then
11134 LIBPRI_HEADER_FOUND=1
11135 else
11136 LIBPRI_HEADER_FOUND=0
11142 if test "x${LIBPRI_HEADER_FOUND}" = "x0" ; then
11143 if test ! -z "${LIBPRI_MANDATORY}" ;
11144 then
11145 echo " ***"
11146 echo " *** It appears that you do not have the pri development package installed."
11147 echo " *** Please install it to include ISDN PRI support, or re-run configure"
11148 echo " *** without explicitly specifying --with-pri"
11149 exit 1
11151 LIBPRI_LIB=""
11152 LIBPRI_INCLUDE=""
11153 PBX_LIBLIBPRI=0
11154 else
11155 PBX_LIBLIBPRI=1
11157 cat >>confdefs.h <<_ACEOF
11158 #define HAVE_LIBPRI 1
11159 _ACEOF
11162 elif test ! -z "${LIBPRI_MANDATORY}";
11163 then
11164 echo "***"
11165 echo "*** The ISDN PRI installation on this system appears to be broken."
11166 echo "*** Either correct the installation, or run configure"
11167 echo "*** without explicity specifying --with-pri"
11168 exit 1
11177 # Check whether --with-radiusclient-ng was given.
11178 if test "${with_radiusclient_ng+set}" = set; then
11179 withval=$with_radiusclient_ng;
11180 case ${withval} in
11181 n|no)
11182 USE_RADIUSCLIENT=no
11184 y|ye|yes)
11185 RADIUSCLIENT_MANDATORY="yes"
11188 RADIUSCLIENT_DIR="${withval}"
11189 RADIUSCLIENT_MANDATORY="yes"
11191 esac
11196 PBX_LIBRADIUSCLIENT=0
11198 if test "${USE_RADIUSCLIENT}" != "no"; then
11199 pbxlibdir=""
11200 if test "x${RADIUSCLIENT_DIR}" != "x"; then
11201 pbxlibdir="-L${radiusclient-ng_DIR}/lib"
11203 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
11204 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
11205 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208 ac_check_lib_save_LIBS=$LIBS
11209 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 char rc_read_config ();
11225 main ()
11227 return rc_read_config ();
11229 return 0;
11231 _ACEOF
11232 rm -f conftest.$ac_objext conftest$ac_exeext
11233 if { (ac_try="$ac_link"
11234 case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11237 esac
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_link") 2>conftest.er1
11240 ac_status=$?
11241 grep -v '^ *+' conftest.er1 >conftest.err
11242 rm -f conftest.er1
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } &&
11246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11247 { (case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11250 esac
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_try") 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } &&
11256 { ac_try='test -s conftest$ac_exeext'
11257 { (case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_try") 2>&5
11263 ac_status=$?
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 ac_cv_lib_radiusclient_ng_rc_read_config=yes
11267 else
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 ac_cv_lib_radiusclient_ng_rc_read_config=no
11274 rm -f conftest.err conftest.$ac_objext \
11275 conftest$ac_exeext conftest.$ac_ext
11276 LIBS=$ac_check_lib_save_LIBS
11278 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
11279 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
11280 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
11281 AST_RADIUSCLIENT_FOUND=yes
11282 else
11283 AST_RADIUSCLIENT_FOUND=no
11287 if test "${AST_RADIUSCLIENT_FOUND}" = "yes"; then
11288 RADIUSCLIENT_LIB="-lradiusclient-ng "
11289 RADIUSCLIENT_HEADER_FOUND="1"
11290 if test "x${RADIUSCLIENT_DIR}" != "x"; then
11291 RADIUSCLIENT_LIB="${pbxlibdir} ${RADIUSCLIENT_LIB}"
11292 RADIUSCLIENT_INCLUDE="-I${RADIUSCLIENT_DIR}/include"
11293 if test "xradiusclient-ng.h" != "x" ; then
11294 as_ac_Header=`echo "ac_cv_header_${RADIUSCLIENT_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 { echo "$as_me:$LINENO: checking for ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h" >&5
11297 echo $ECHO_N "checking for ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11304 else
11305 # Is the header compilable?
11306 { echo "$as_me:$LINENO: checking ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h usability" >&5
11307 echo $ECHO_N "checking ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h. */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 $ac_includes_default
11315 #include <${RADIUSCLIENT_DIR}/include/radiusclient-ng.h>
11316 _ACEOF
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_compile") 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332 { (case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_try") 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_header_compiler=yes
11352 else
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_header_compiler=no
11359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361 echo "${ECHO_T}$ac_header_compiler" >&6; }
11363 # Is the header present?
11364 { echo "$as_me:$LINENO: checking ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h presence" >&5
11365 echo $ECHO_N "checking ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h. */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 #include <${RADIUSCLIENT_DIR}/include/radiusclient-ng.h>
11373 _ACEOF
11374 if { (ac_try="$ac_cpp conftest.$ac_ext"
11375 case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11378 esac
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } >/dev/null; then
11387 if test -s conftest.err; then
11388 ac_cpp_err=$ac_c_preproc_warn_flag
11389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11390 else
11391 ac_cpp_err=
11393 else
11394 ac_cpp_err=yes
11396 if test -z "$ac_cpp_err"; then
11397 ac_header_preproc=yes
11398 else
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 ac_header_preproc=no
11405 rm -f conftest.err conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11407 echo "${ECHO_T}$ac_header_preproc" >&6; }
11409 # So? What about this header?
11410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11411 yes:no: )
11412 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
11413 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
11415 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
11416 ac_header_preproc=yes
11418 no:yes:* )
11419 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
11420 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
11422 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
11424 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
11426 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
11428 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
11430 echo "$as_me: WARNING: ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
11433 esac
11434 { echo "$as_me:$LINENO: checking for ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h" >&5
11435 echo $ECHO_N "checking for ${RADIUSCLIENT_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
11436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 else
11439 eval "$as_ac_Header=\$ac_header_preproc"
11441 ac_res=`eval echo '${'$as_ac_Header'}'`
11442 { echo "$as_me:$LINENO: result: $ac_res" >&5
11443 echo "${ECHO_T}$ac_res" >&6; }
11446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11447 RADIUSCLIENT_HEADER_FOUND=1
11448 else
11449 RADIUSCLIENT_HEADER_FOUND=0
11454 else
11455 if test "xradiusclient-ng.h" != "x" ; then
11456 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
11457 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
11458 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
11459 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
11463 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
11464 else
11465 # Is the header compilable?
11466 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
11467 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
11468 cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h. */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11475 #include <radiusclient-ng.h>
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (ac_try="$ac_compile"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_compile") 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11492 { (case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495 esac
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_try") 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try='test -s conftest.$ac_objext'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505 esac
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_header_compiler=yes
11512 else
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516 ac_header_compiler=no
11519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11521 echo "${ECHO_T}$ac_header_compiler" >&6; }
11523 # Is the header present?
11524 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
11525 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 #include <radiusclient-ng.h>
11533 _ACEOF
11534 if { (ac_try="$ac_cpp conftest.$ac_ext"
11535 case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev/null; then
11547 if test -s conftest.err; then
11548 ac_cpp_err=$ac_c_preproc_warn_flag
11549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11550 else
11551 ac_cpp_err=
11553 else
11554 ac_cpp_err=yes
11556 if test -z "$ac_cpp_err"; then
11557 ac_header_preproc=yes
11558 else
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 ac_header_preproc=no
11565 rm -f conftest.err conftest.$ac_ext
11566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11567 echo "${ECHO_T}$ac_header_preproc" >&6; }
11569 # So? What about this header?
11570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11571 yes:no: )
11572 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
11573 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
11575 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
11576 ac_header_preproc=yes
11578 no:yes:* )
11579 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
11580 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
11582 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
11584 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
11586 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
11588 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
11590 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
11593 esac
11594 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
11595 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
11596 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
11601 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
11602 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
11605 if test $ac_cv_header_radiusclient_ng_h = yes; then
11606 RADIUSCLIENT_HEADER_FOUND=1
11607 else
11608 RADIUSCLIENT_HEADER_FOUND=0
11614 if test "x${RADIUSCLIENT_HEADER_FOUND}" = "x0" ; then
11615 if test ! -z "${RADIUSCLIENT_MANDATORY}" ;
11616 then
11617 echo " ***"
11618 echo " *** It appears that you do not have the radiusclient-ng development package installed."
11619 echo " *** Please install it to include Radius Client support, or re-run configure"
11620 echo " *** without explicitly specifying --with-radiusclient-ng"
11621 exit 1
11623 RADIUSCLIENT_LIB=""
11624 RADIUSCLIENT_INCLUDE=""
11625 PBX_LIBRADIUSCLIENT=0
11626 else
11627 PBX_LIBRADIUSCLIENT=1
11629 cat >>confdefs.h <<_ACEOF
11630 #define HAVE_RADIUSCLIENT 1
11631 _ACEOF
11634 elif test ! -z "${RADIUSCLIENT_MANDATORY}";
11635 then
11636 echo "***"
11637 echo "*** The Radius Client installation on this system appears to be broken."
11638 echo "*** Either correct the installation, or run configure"
11639 echo "*** without explicity specifying --with-radiusclient-ng"
11640 exit 1
11649 # Check whether --with-speex was given.
11650 if test "${with_speex+set}" = set; then
11651 withval=$with_speex;
11652 case ${withval} in
11653 n|no)
11654 USE_SPEEX=no
11656 y|ye|yes)
11657 SPEEX_MANDATORY="yes"
11660 SPEEX_DIR="${withval}"
11661 SPEEX_MANDATORY="yes"
11663 esac
11668 PBX_LIBSPEEX=0
11670 if test "${USE_SPEEX}" != "no"; then
11671 pbxlibdir=""
11672 if test "x${SPEEX_DIR}" != "x"; then
11673 pbxlibdir="-L${speex_DIR}/lib"
11675 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
11676 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
11677 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680 ac_check_lib_save_LIBS=$LIBS
11681 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
11682 cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h. */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11689 /* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11692 #ifdef __cplusplus
11693 extern "C"
11694 #endif
11695 char speex_encode ();
11697 main ()
11699 return speex_encode ();
11701 return 0;
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_link") 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11722 esac
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest$ac_exeext'
11729 { (case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_try") 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_cv_lib_speex_speex_encode=yes
11739 else
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 ac_cv_lib_speex_speex_encode=no
11746 rm -f conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11748 LIBS=$ac_check_lib_save_LIBS
11750 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
11751 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
11752 if test $ac_cv_lib_speex_speex_encode = yes; then
11753 AST_SPEEX_FOUND=yes
11754 else
11755 AST_SPEEX_FOUND=no
11759 if test "${AST_SPEEX_FOUND}" = "yes"; then
11760 SPEEX_LIB="-lspeex -lm"
11761 SPEEX_HEADER_FOUND="1"
11762 if test "x${SPEEX_DIR}" != "x"; then
11763 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
11764 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
11765 if test "xspeex/speex.h" != "x" ; then
11766 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
11767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11768 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
11769 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
11770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11773 ac_res=`eval echo '${'$as_ac_Header'}'`
11774 { echo "$as_me:$LINENO: result: $ac_res" >&5
11775 echo "${ECHO_T}$ac_res" >&6; }
11776 else
11777 # Is the header compilable?
11778 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
11779 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
11780 cat >conftest.$ac_ext <<_ACEOF
11781 /* confdefs.h. */
11782 _ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h. */
11786 $ac_includes_default
11787 #include <${SPEEX_DIR}/include/speex/speex.h>
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (ac_try="$ac_compile"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794 esac
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_compile") 2>conftest.er1
11797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } &&
11803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11804 { (case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807 esac
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_try") 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest.$ac_objext'
11814 { (case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11817 esac
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_try") 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; }; then
11823 ac_header_compiler=yes
11824 else
11825 echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.$ac_ext >&5
11828 ac_header_compiler=no
11831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11833 echo "${ECHO_T}$ac_header_compiler" >&6; }
11835 # Is the header present?
11836 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
11837 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
11838 cat >conftest.$ac_ext <<_ACEOF
11839 /* confdefs.h. */
11840 _ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 #include <${SPEEX_DIR}/include/speex/speex.h>
11845 _ACEOF
11846 if { (ac_try="$ac_cpp conftest.$ac_ext"
11847 case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11850 esac
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11853 ac_status=$?
11854 grep -v '^ *+' conftest.er1 >conftest.err
11855 rm -f conftest.er1
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } >/dev/null; then
11859 if test -s conftest.err; then
11860 ac_cpp_err=$ac_c_preproc_warn_flag
11861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11862 else
11863 ac_cpp_err=
11865 else
11866 ac_cpp_err=yes
11868 if test -z "$ac_cpp_err"; then
11869 ac_header_preproc=yes
11870 else
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 ac_header_preproc=no
11877 rm -f conftest.err conftest.$ac_ext
11878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11879 echo "${ECHO_T}$ac_header_preproc" >&6; }
11881 # So? What about this header?
11882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11883 yes:no: )
11884 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
11885 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
11887 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
11888 ac_header_preproc=yes
11890 no:yes:* )
11891 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
11892 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
11894 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
11896 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
11898 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
11900 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
11902 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
11905 esac
11906 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
11907 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
11908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911 eval "$as_ac_Header=\$ac_header_preproc"
11913 ac_res=`eval echo '${'$as_ac_Header'}'`
11914 { echo "$as_me:$LINENO: result: $ac_res" >&5
11915 echo "${ECHO_T}$ac_res" >&6; }
11918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11919 SPEEX_HEADER_FOUND=1
11920 else
11921 SPEEX_HEADER_FOUND=0
11926 else
11927 if test "xspeex/speex.h" != "x" ; then
11928 if test "${ac_cv_header_speex_speex_h+set}" = set; then
11929 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
11930 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
11931 if test "${ac_cv_header_speex_speex_h+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
11935 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
11936 else
11937 # Is the header compilable?
11938 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
11939 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
11940 cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h. */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 $ac_includes_default
11947 #include <speex/speex.h>
11948 _ACEOF
11949 rm -f conftest.$ac_objext
11950 if { (ac_try="$ac_compile"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954 esac
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_compile") 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11964 { (case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967 esac
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_try") 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; } &&
11973 { ac_try='test -s conftest.$ac_objext'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977 esac
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 ac_header_compiler=yes
11984 else
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_header_compiler=no
11991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11993 echo "${ECHO_T}$ac_header_compiler" >&6; }
11995 # Is the header present?
11996 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
11997 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
11998 cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h. */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 #include <speex/speex.h>
12005 _ACEOF
12006 if { (ac_try="$ac_cpp conftest.$ac_ext"
12007 case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12013 ac_status=$?
12014 grep -v '^ *+' conftest.er1 >conftest.err
12015 rm -f conftest.er1
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } >/dev/null; then
12019 if test -s conftest.err; then
12020 ac_cpp_err=$ac_c_preproc_warn_flag
12021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12022 else
12023 ac_cpp_err=
12025 else
12026 ac_cpp_err=yes
12028 if test -z "$ac_cpp_err"; then
12029 ac_header_preproc=yes
12030 else
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 ac_header_preproc=no
12037 rm -f conftest.err conftest.$ac_ext
12038 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12039 echo "${ECHO_T}$ac_header_preproc" >&6; }
12041 # So? What about this header?
12042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12043 yes:no: )
12044 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
12045 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
12047 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
12048 ac_header_preproc=yes
12050 no:yes:* )
12051 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
12052 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
12054 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
12056 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
12058 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
12060 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
12062 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
12065 esac
12066 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
12067 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
12068 if test "${ac_cv_header_speex_speex_h+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 else
12071 ac_cv_header_speex_speex_h=$ac_header_preproc
12073 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
12074 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
12077 if test $ac_cv_header_speex_speex_h = yes; then
12078 SPEEX_HEADER_FOUND=1
12079 else
12080 SPEEX_HEADER_FOUND=0
12086 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
12087 if test ! -z "${SPEEX_MANDATORY}" ;
12088 then
12089 echo " ***"
12090 echo " *** It appears that you do not have the speex development package installed."
12091 echo " *** Please install it to include Speex support, or re-run configure"
12092 echo " *** without explicitly specifying --with-speex"
12093 exit 1
12095 SPEEX_LIB=""
12096 SPEEX_INCLUDE=""
12097 PBX_LIBSPEEX=0
12098 else
12099 PBX_LIBSPEEX=1
12101 cat >>confdefs.h <<_ACEOF
12102 #define HAVE_SPEEX 1
12103 _ACEOF
12106 elif test ! -z "${SPEEX_MANDATORY}";
12107 then
12108 echo "***"
12109 echo "*** The Speex installation on this system appears to be broken."
12110 echo "*** Either correct the installation, or run configure"
12111 echo "*** without explicity specifying --with-speex"
12112 exit 1
12121 # Check whether --with-sqlite was given.
12122 if test "${with_sqlite+set}" = set; then
12123 withval=$with_sqlite;
12124 case ${withval} in
12125 n|no)
12126 USE_SQLITE=no
12128 y|ye|yes)
12129 SQLITE_MANDATORY="yes"
12132 SQLITE_DIR="${withval}"
12133 SQLITE_MANDATORY="yes"
12135 esac
12140 PBX_LIBSQLITE=0
12142 if test "${USE_SQLITE}" != "no"; then
12143 pbxlibdir=""
12144 if test "x${SQLITE_DIR}" != "x"; then
12145 pbxlibdir="-L${sqlite_DIR}/lib"
12147 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
12148 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
12149 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152 ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-lsqlite ${pbxlibdir} $LIBS"
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h. */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12161 /* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply. */
12164 #ifdef __cplusplus
12165 extern "C"
12166 #endif
12167 char sqlite_exec ();
12169 main ()
12171 return sqlite_exec ();
12173 return 0;
12175 _ACEOF
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (ac_try="$ac_link"
12178 case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12181 esac
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_link") 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
12190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12191 { (case "(($ac_try" in
12192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12194 esac
12195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196 (eval "$ac_try") 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; } &&
12200 { ac_try='test -s conftest$ac_exeext'
12201 { (case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_try") 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12210 ac_cv_lib_sqlite_sqlite_exec=yes
12211 else
12212 echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.$ac_ext >&5
12215 ac_cv_lib_sqlite_sqlite_exec=no
12218 rm -f conftest.err conftest.$ac_objext \
12219 conftest$ac_exeext conftest.$ac_ext
12220 LIBS=$ac_check_lib_save_LIBS
12222 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
12223 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
12224 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
12225 AST_SQLITE_FOUND=yes
12226 else
12227 AST_SQLITE_FOUND=no
12231 if test "${AST_SQLITE_FOUND}" = "yes"; then
12232 SQLITE_LIB="-lsqlite "
12233 SQLITE_HEADER_FOUND="1"
12234 if test "x${SQLITE_DIR}" != "x"; then
12235 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
12236 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
12237 if test "xsqlite.h" != "x" ; then
12238 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
12239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12240 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
12241 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
12242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 ac_res=`eval echo '${'$as_ac_Header'}'`
12246 { echo "$as_me:$LINENO: result: $ac_res" >&5
12247 echo "${ECHO_T}$ac_res" >&6; }
12248 else
12249 # Is the header compilable?
12250 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
12251 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
12252 cat >conftest.$ac_ext <<_ACEOF
12253 /* confdefs.h. */
12254 _ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12258 $ac_includes_default
12259 #include <${SQLITE_DIR}/include/sqlite.h>
12260 _ACEOF
12261 rm -f conftest.$ac_objext
12262 if { (ac_try="$ac_compile"
12263 case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266 esac
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_compile") 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12276 { (case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_try") 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try='test -s conftest.$ac_objext'
12286 { (case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12289 esac
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_try") 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; }; then
12295 ac_header_compiler=yes
12296 else
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 ac_header_compiler=no
12303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12305 echo "${ECHO_T}$ac_header_compiler" >&6; }
12307 # Is the header present?
12308 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
12309 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include <${SQLITE_DIR}/include/sqlite.h>
12317 _ACEOF
12318 if { (ac_try="$ac_cpp conftest.$ac_ext"
12319 case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12322 esac
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12325 ac_status=$?
12326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } >/dev/null; then
12331 if test -s conftest.err; then
12332 ac_cpp_err=$ac_c_preproc_warn_flag
12333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12334 else
12335 ac_cpp_err=
12337 else
12338 ac_cpp_err=yes
12340 if test -z "$ac_cpp_err"; then
12341 ac_header_preproc=yes
12342 else
12343 echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12346 ac_header_preproc=no
12349 rm -f conftest.err conftest.$ac_ext
12350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12351 echo "${ECHO_T}$ac_header_preproc" >&6; }
12353 # So? What about this header?
12354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12355 yes:no: )
12356 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
12357 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
12359 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
12360 ac_header_preproc=yes
12362 no:yes:* )
12363 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
12364 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
12366 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
12368 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
12370 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
12372 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
12374 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
12377 esac
12378 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
12379 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
12380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383 eval "$as_ac_Header=\$ac_header_preproc"
12385 ac_res=`eval echo '${'$as_ac_Header'}'`
12386 { echo "$as_me:$LINENO: result: $ac_res" >&5
12387 echo "${ECHO_T}$ac_res" >&6; }
12390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12391 SQLITE_HEADER_FOUND=1
12392 else
12393 SQLITE_HEADER_FOUND=0
12398 else
12399 if test "xsqlite.h" != "x" ; then
12400 if test "${ac_cv_header_sqlite_h+set}" = set; then
12401 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
12402 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
12403 if test "${ac_cv_header_sqlite_h+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
12407 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
12408 else
12409 # Is the header compilable?
12410 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
12411 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
12412 cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h. */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12418 $ac_includes_default
12419 #include <sqlite.h>
12420 _ACEOF
12421 rm -f conftest.$ac_objext
12422 if { (ac_try="$ac_compile"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_compile") 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12436 { (case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_try") 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try='test -s conftest.$ac_objext'
12446 { (case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12449 esac
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451 (eval "$ac_try") 2>&5
12452 ac_status=$?
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12455 ac_header_compiler=yes
12456 else
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ac_header_compiler=no
12463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12465 echo "${ECHO_T}$ac_header_compiler" >&6; }
12467 # Is the header present?
12468 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
12469 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 #include <sqlite.h>
12477 _ACEOF
12478 if { (ac_try="$ac_cpp conftest.$ac_ext"
12479 case "(($ac_try" in
12480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481 *) ac_try_echo=$ac_try;;
12482 esac
12483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } >/dev/null; then
12491 if test -s conftest.err; then
12492 ac_cpp_err=$ac_c_preproc_warn_flag
12493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12494 else
12495 ac_cpp_err=
12497 else
12498 ac_cpp_err=yes
12500 if test -z "$ac_cpp_err"; then
12501 ac_header_preproc=yes
12502 else
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12506 ac_header_preproc=no
12509 rm -f conftest.err conftest.$ac_ext
12510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12511 echo "${ECHO_T}$ac_header_preproc" >&6; }
12513 # So? What about this header?
12514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12515 yes:no: )
12516 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
12517 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
12519 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
12520 ac_header_preproc=yes
12522 no:yes:* )
12523 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
12524 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
12526 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
12528 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
12529 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
12530 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
12531 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
12532 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
12533 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
12534 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
12537 esac
12538 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
12539 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
12540 if test "${ac_cv_header_sqlite_h+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 else
12543 ac_cv_header_sqlite_h=$ac_header_preproc
12545 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
12546 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
12549 if test $ac_cv_header_sqlite_h = yes; then
12550 SQLITE_HEADER_FOUND=1
12551 else
12552 SQLITE_HEADER_FOUND=0
12558 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
12559 if test ! -z "${SQLITE_MANDATORY}" ;
12560 then
12561 echo " ***"
12562 echo " *** It appears that you do not have the sqlite development package installed."
12563 echo " *** Please install it to include SQLite support, or re-run configure"
12564 echo " *** without explicitly specifying --with-sqlite"
12565 exit 1
12567 SQLITE_LIB=""
12568 SQLITE_INCLUDE=""
12569 PBX_LIBSQLITE=0
12570 else
12571 PBX_LIBSQLITE=1
12573 cat >>confdefs.h <<_ACEOF
12574 #define HAVE_SQLITE 1
12575 _ACEOF
12578 elif test ! -z "${SQLITE_MANDATORY}";
12579 then
12580 echo "***"
12581 echo "*** The SQLite installation on this system appears to be broken."
12582 echo "*** Either correct the installation, or run configure"
12583 echo "*** without explicity specifying --with-sqlite"
12584 exit 1
12593 # Check whether --with-ssl was given.
12594 if test "${with_ssl+set}" = set; then
12595 withval=$with_ssl;
12596 case ${withval} in
12597 n|no)
12598 USE_OPENSSL=no
12600 y|ye|yes)
12601 OPENSSL_MANDATORY="yes"
12604 OPENSSL_DIR="${withval}"
12605 OPENSSL_MANDATORY="yes"
12607 esac
12612 PBX_LIBOPENSSL=0
12614 if test "${USE_OPENSSL}" != "no"; then
12615 pbxlibdir=""
12616 if test "x${OPENSSL_DIR}" != "x"; then
12617 pbxlibdir="-L${ssl_DIR}/lib"
12619 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
12620 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
12621 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 else
12624 ac_check_lib_save_LIBS=$LIBS
12625 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
12626 cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h. */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12633 /* Override any GCC internal prototype to avoid an error.
12634 Use char because int might match the return type of a GCC
12635 builtin and then its argument prototype would still apply. */
12636 #ifdef __cplusplus
12637 extern "C"
12638 #endif
12639 char ssl2_connect ();
12641 main ()
12643 return ssl2_connect ();
12645 return 0;
12647 _ACEOF
12648 rm -f conftest.$ac_objext conftest$ac_exeext
12649 if { (ac_try="$ac_link"
12650 case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12653 esac
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_link") 2>conftest.er1
12656 ac_status=$?
12657 grep -v '^ *+' conftest.er1 >conftest.err
12658 rm -f conftest.er1
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } &&
12662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12663 { (case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12666 esac
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_try") 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest$ac_exeext'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12676 esac
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 ac_cv_lib_ssl_ssl2_connect=yes
12683 else
12684 echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12687 ac_cv_lib_ssl_ssl2_connect=no
12690 rm -f conftest.err conftest.$ac_objext \
12691 conftest$ac_exeext conftest.$ac_ext
12692 LIBS=$ac_check_lib_save_LIBS
12694 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
12695 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
12696 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
12697 AST_OPENSSL_FOUND=yes
12698 else
12699 AST_OPENSSL_FOUND=no
12703 if test "${AST_OPENSSL_FOUND}" = "yes"; then
12704 OPENSSL_LIB="-lssl -lcrypto"
12705 OPENSSL_HEADER_FOUND="1"
12706 if test "x${OPENSSL_DIR}" != "x"; then
12707 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
12708 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
12709 if test "xopenssl/ssl.h" != "x" ; then
12710 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
12711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12712 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
12713 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
12714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 ac_res=`eval echo '${'$as_ac_Header'}'`
12718 { echo "$as_me:$LINENO: result: $ac_res" >&5
12719 echo "${ECHO_T}$ac_res" >&6; }
12720 else
12721 # Is the header compilable?
12722 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
12723 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
12724 cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h. */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 $ac_includes_default
12731 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
12732 _ACEOF
12733 rm -f conftest.$ac_objext
12734 if { (ac_try="$ac_compile"
12735 case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12738 esac
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_compile") 2>conftest.er1
12741 ac_status=$?
12742 grep -v '^ *+' conftest.er1 >conftest.err
12743 rm -f conftest.er1
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12748 { (case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12751 esac
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_try") 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } &&
12757 { ac_try='test -s conftest.$ac_objext'
12758 { (case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12761 esac
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_try") 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_header_compiler=yes
12768 else
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12772 ac_header_compiler=no
12775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12777 echo "${ECHO_T}$ac_header_compiler" >&6; }
12779 # Is the header present?
12780 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
12781 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
12782 cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h. */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
12789 _ACEOF
12790 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12803 if test -s conftest.err; then
12804 ac_cpp_err=$ac_c_preproc_warn_flag
12805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12806 else
12807 ac_cpp_err=
12809 else
12810 ac_cpp_err=yes
12812 if test -z "$ac_cpp_err"; then
12813 ac_header_preproc=yes
12814 else
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12818 ac_header_preproc=no
12821 rm -f conftest.err conftest.$ac_ext
12822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12823 echo "${ECHO_T}$ac_header_preproc" >&6; }
12825 # So? What about this header?
12826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12827 yes:no: )
12828 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12829 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12830 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
12831 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
12832 ac_header_preproc=yes
12834 no:yes:* )
12835 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
12836 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
12838 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
12840 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12842 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
12844 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
12846 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12849 esac
12850 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
12851 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
12852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855 eval "$as_ac_Header=\$ac_header_preproc"
12857 ac_res=`eval echo '${'$as_ac_Header'}'`
12858 { echo "$as_me:$LINENO: result: $ac_res" >&5
12859 echo "${ECHO_T}$ac_res" >&6; }
12862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12863 OPENSSL_HEADER_FOUND=1
12864 else
12865 OPENSSL_HEADER_FOUND=0
12870 else
12871 if test "xopenssl/ssl.h" != "x" ; then
12872 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12873 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12874 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12875 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12879 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12880 else
12881 # Is the header compilable?
12882 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12883 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
12884 cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h. */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 $ac_includes_default
12891 #include <openssl/ssl.h>
12892 _ACEOF
12893 rm -f conftest.$ac_objext
12894 if { (ac_try="$ac_compile"
12895 case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_compile") 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
12907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12908 { (case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12911 esac
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_try") 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; } &&
12917 { ac_try='test -s conftest.$ac_objext'
12918 { (case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12921 esac
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923 (eval "$ac_try") 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 ac_header_compiler=yes
12928 else
12929 echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12932 ac_header_compiler=no
12935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12937 echo "${ECHO_T}$ac_header_compiler" >&6; }
12939 # Is the header present?
12940 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12941 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
12942 cat >conftest.$ac_ext <<_ACEOF
12943 /* confdefs.h. */
12944 _ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12948 #include <openssl/ssl.h>
12949 _ACEOF
12950 if { (ac_try="$ac_cpp conftest.$ac_ext"
12951 case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12954 esac
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } >/dev/null; then
12963 if test -s conftest.err; then
12964 ac_cpp_err=$ac_c_preproc_warn_flag
12965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12966 else
12967 ac_cpp_err=
12969 else
12970 ac_cpp_err=yes
12972 if test -z "$ac_cpp_err"; then
12973 ac_header_preproc=yes
12974 else
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12978 ac_header_preproc=no
12981 rm -f conftest.err conftest.$ac_ext
12982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12983 echo "${ECHO_T}$ac_header_preproc" >&6; }
12985 # So? What about this header?
12986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12987 yes:no: )
12988 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12989 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12990 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12991 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12992 ac_header_preproc=yes
12994 no:yes:* )
12995 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12996 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12997 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12998 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12999 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
13000 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
13001 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
13002 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13003 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
13004 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
13005 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
13006 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
13009 esac
13010 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13011 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
13012 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 else
13015 ac_cv_header_openssl_ssl_h=$ac_header_preproc
13017 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13018 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
13021 if test $ac_cv_header_openssl_ssl_h = yes; then
13022 OPENSSL_HEADER_FOUND=1
13023 else
13024 OPENSSL_HEADER_FOUND=0
13030 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
13031 if test ! -z "${OPENSSL_MANDATORY}" ;
13032 then
13033 echo " ***"
13034 echo " *** It appears that you do not have the ssl development package installed."
13035 echo " *** Please install it to include OpenSSL support, or re-run configure"
13036 echo " *** without explicitly specifying --with-ssl"
13037 exit 1
13039 OPENSSL_LIB=""
13040 OPENSSL_INCLUDE=""
13041 PBX_LIBOPENSSL=0
13042 else
13043 PBX_LIBOPENSSL=1
13045 cat >>confdefs.h <<_ACEOF
13046 #define HAVE_OPENSSL 1
13047 _ACEOF
13050 elif test ! -z "${OPENSSL_MANDATORY}";
13051 then
13052 echo "***"
13053 echo "*** The OpenSSL installation on this system appears to be broken."
13054 echo "*** Either correct the installation, or run configure"
13055 echo "*** without explicity specifying --with-ssl"
13056 exit 1
13065 # Check whether --with-tds was given.
13066 if test "${with_tds+set}" = set; then
13067 withval=$with_tds;
13068 case ${withval} in
13069 n|no)
13070 USE_FREETDS=no
13072 y|ye|yes)
13073 FREETDS_MANDATORY="yes"
13076 FREETDS_DIR="${withval}"
13077 FREETDS_MANDATORY="yes"
13079 esac
13084 PBX_LIBFREETDS=0
13086 if test "${USE_FREETDS}" != "no"; then
13087 pbxlibdir=""
13088 if test "x${FREETDS_DIR}" != "x"; then
13089 pbxlibdir="-L${tds_DIR}/lib"
13091 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
13092 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
13093 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 else
13096 ac_check_lib_save_LIBS=$LIBS
13097 LIBS="-ltds ${pbxlibdir} $LIBS"
13098 cat >conftest.$ac_ext <<_ACEOF
13099 /* confdefs.h. */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13105 /* Override any GCC internal prototype to avoid an error.
13106 Use char because int might match the return type of a GCC
13107 builtin and then its argument prototype would still apply. */
13108 #ifdef __cplusplus
13109 extern "C"
13110 #endif
13111 char tds_version ();
13113 main ()
13115 return tds_version ();
13117 return 0;
13119 _ACEOF
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (ac_try="$ac_link"
13122 case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13125 esac
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_link") 2>conftest.er1
13128 ac_status=$?
13129 grep -v '^ *+' conftest.er1 >conftest.err
13130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135 { (case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13138 esac
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_try") 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest$ac_exeext'
13145 { (case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13148 esac
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_try") 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_lib_tds_tds_version=yes
13155 else
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 ac_cv_lib_tds_tds_version=no
13162 rm -f conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
13164 LIBS=$ac_check_lib_save_LIBS
13166 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
13167 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
13168 if test $ac_cv_lib_tds_tds_version = yes; then
13169 AST_FREETDS_FOUND=yes
13170 else
13171 AST_FREETDS_FOUND=no
13175 if test "${AST_FREETDS_FOUND}" = "yes"; then
13176 FREETDS_LIB="-ltds "
13177 FREETDS_HEADER_FOUND="1"
13178 if test "x${FREETDS_DIR}" != "x"; then
13179 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
13180 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
13181 if test "xtds.h" != "x" ; then
13182 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
13183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13184 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
13185 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
13186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 ac_res=`eval echo '${'$as_ac_Header'}'`
13190 { echo "$as_me:$LINENO: result: $ac_res" >&5
13191 echo "${ECHO_T}$ac_res" >&6; }
13192 else
13193 # Is the header compilable?
13194 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
13195 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
13196 cat >conftest.$ac_ext <<_ACEOF
13197 /* confdefs.h. */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13202 $ac_includes_default
13203 #include <${FREETDS_DIR}/include/tds.h>
13204 _ACEOF
13205 rm -f conftest.$ac_objext
13206 if { (ac_try="$ac_compile"
13207 case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13210 esac
13211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212 (eval "$ac_compile") 2>conftest.er1
13213 ac_status=$?
13214 grep -v '^ *+' conftest.er1 >conftest.err
13215 rm -f conftest.er1
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223 esac
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_try") 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; } &&
13229 { ac_try='test -s conftest.$ac_objext'
13230 { (case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_try") 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_header_compiler=yes
13240 else
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13244 ac_header_compiler=no
13247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13249 echo "${ECHO_T}$ac_header_compiler" >&6; }
13251 # Is the header present?
13252 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
13253 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
13254 cat >conftest.$ac_ext <<_ACEOF
13255 /* confdefs.h. */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 #include <${FREETDS_DIR}/include/tds.h>
13261 _ACEOF
13262 if { (ac_try="$ac_cpp conftest.$ac_ext"
13263 case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13266 esac
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } >/dev/null; then
13275 if test -s conftest.err; then
13276 ac_cpp_err=$ac_c_preproc_warn_flag
13277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13278 else
13279 ac_cpp_err=
13281 else
13282 ac_cpp_err=yes
13284 if test -z "$ac_cpp_err"; then
13285 ac_header_preproc=yes
13286 else
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 ac_header_preproc=no
13293 rm -f conftest.err conftest.$ac_ext
13294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13295 echo "${ECHO_T}$ac_header_preproc" >&6; }
13297 # So? What about this header?
13298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13299 yes:no: )
13300 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
13301 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
13303 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
13304 ac_header_preproc=yes
13306 no:yes:* )
13307 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
13308 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
13309 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
13310 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
13311 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
13312 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
13313 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
13314 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
13315 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
13316 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
13318 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
13321 esac
13322 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
13323 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
13324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327 eval "$as_ac_Header=\$ac_header_preproc"
13329 ac_res=`eval echo '${'$as_ac_Header'}'`
13330 { echo "$as_me:$LINENO: result: $ac_res" >&5
13331 echo "${ECHO_T}$ac_res" >&6; }
13334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13335 FREETDS_HEADER_FOUND=1
13336 else
13337 FREETDS_HEADER_FOUND=0
13342 else
13343 if test "xtds.h" != "x" ; then
13344 if test "${ac_cv_header_tds_h+set}" = set; then
13345 { echo "$as_me:$LINENO: checking for tds.h" >&5
13346 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
13347 if test "${ac_cv_header_tds_h+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
13351 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
13352 else
13353 # Is the header compilable?
13354 { echo "$as_me:$LINENO: checking tds.h usability" >&5
13355 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h. */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 $ac_includes_default
13363 #include <tds.h>
13364 _ACEOF
13365 rm -f conftest.$ac_objext
13366 if { (ac_try="$ac_compile"
13367 case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13370 esac
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_compile") 2>conftest.er1
13373 ac_status=$?
13374 grep -v '^ *+' conftest.er1 >conftest.err
13375 rm -f conftest.er1
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
13379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13380 { (case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_try") 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try='test -s conftest.$ac_objext'
13390 { (case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_try") 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13399 ac_header_compiler=yes
13400 else
13401 echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13404 ac_header_compiler=no
13407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13409 echo "${ECHO_T}$ac_header_compiler" >&6; }
13411 # Is the header present?
13412 { echo "$as_me:$LINENO: checking tds.h presence" >&5
13413 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
13414 cat >conftest.$ac_ext <<_ACEOF
13415 /* confdefs.h. */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 #include <tds.h>
13421 _ACEOF
13422 if { (ac_try="$ac_cpp conftest.$ac_ext"
13423 case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426 esac
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13429 ac_status=$?
13430 grep -v '^ *+' conftest.er1 >conftest.err
13431 rm -f conftest.er1
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } >/dev/null; then
13435 if test -s conftest.err; then
13436 ac_cpp_err=$ac_c_preproc_warn_flag
13437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13438 else
13439 ac_cpp_err=
13441 else
13442 ac_cpp_err=yes
13444 if test -z "$ac_cpp_err"; then
13445 ac_header_preproc=yes
13446 else
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 ac_header_preproc=no
13453 rm -f conftest.err conftest.$ac_ext
13454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13455 echo "${ECHO_T}$ac_header_preproc" >&6; }
13457 # So? What about this header?
13458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13459 yes:no: )
13460 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
13461 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
13463 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
13464 ac_header_preproc=yes
13466 no:yes:* )
13467 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
13468 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
13470 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
13471 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
13472 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
13474 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
13476 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
13478 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
13481 esac
13482 { echo "$as_me:$LINENO: checking for tds.h" >&5
13483 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
13484 if test "${ac_cv_header_tds_h+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487 ac_cv_header_tds_h=$ac_header_preproc
13489 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
13490 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
13493 if test $ac_cv_header_tds_h = yes; then
13494 FREETDS_HEADER_FOUND=1
13495 else
13496 FREETDS_HEADER_FOUND=0
13502 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
13503 if test ! -z "${FREETDS_MANDATORY}" ;
13504 then
13505 echo " ***"
13506 echo " *** It appears that you do not have the tds development package installed."
13507 echo " *** Please install it to include FreeTDS support, or re-run configure"
13508 echo " *** without explicitly specifying --with-tds"
13509 exit 1
13511 FREETDS_LIB=""
13512 FREETDS_INCLUDE=""
13513 PBX_LIBFREETDS=0
13514 else
13515 PBX_LIBFREETDS=1
13517 cat >>confdefs.h <<_ACEOF
13518 #define HAVE_FREETDS 1
13519 _ACEOF
13522 elif test ! -z "${FREETDS_MANDATORY}";
13523 then
13524 echo "***"
13525 echo "*** The FreeTDS installation on this system appears to be broken."
13526 echo "*** Either correct the installation, or run configure"
13527 echo "*** without explicity specifying --with-tds"
13528 exit 1
13537 # Check whether --with-termcap was given.
13538 if test "${with_termcap+set}" = set; then
13539 withval=$with_termcap;
13540 case ${withval} in
13541 n|no)
13542 USE_TERMCAP=no
13544 y|ye|yes)
13545 TERMCAP_MANDATORY="yes"
13548 TERMCAP_DIR="${withval}"
13549 TERMCAP_MANDATORY="yes"
13551 esac
13556 PBX_LIBTERMCAP=0
13558 if test "${USE_TERMCAP}" != "no"; then
13559 pbxlibdir=""
13560 if test "x${TERMCAP_DIR}" != "x"; then
13561 pbxlibdir="-L${termcap_DIR}/lib"
13563 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13564 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
13565 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568 ac_check_lib_save_LIBS=$LIBS
13569 LIBS="-ltermcap ${pbxlibdir} $LIBS"
13570 cat >conftest.$ac_ext <<_ACEOF
13571 /* confdefs.h. */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13577 /* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13580 #ifdef __cplusplus
13581 extern "C"
13582 #endif
13583 char tgetent ();
13585 main ()
13587 return tgetent ();
13589 return 0;
13591 _ACEOF
13592 rm -f conftest.$ac_objext conftest$ac_exeext
13593 if { (ac_try="$ac_link"
13594 case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597 esac
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_link") 2>conftest.er1
13600 ac_status=$?
13601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610 esac
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try='test -s conftest$ac_exeext'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 ac_cv_lib_termcap_tgetent=yes
13627 else
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 ac_cv_lib_termcap_tgetent=no
13634 rm -f conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext conftest.$ac_ext
13636 LIBS=$ac_check_lib_save_LIBS
13638 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13639 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
13640 if test $ac_cv_lib_termcap_tgetent = yes; then
13641 AST_TERMCAP_FOUND=yes
13642 else
13643 AST_TERMCAP_FOUND=no
13647 if test "${AST_TERMCAP_FOUND}" = "yes"; then
13648 TERMCAP_LIB="-ltermcap "
13649 TERMCAP_HEADER_FOUND="1"
13650 if test "x${TERMCAP_DIR}" != "x"; then
13651 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
13652 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
13653 if test "x" != "x" ; then
13654 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
13655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13656 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
13657 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
13658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 ac_res=`eval echo '${'$as_ac_Header'}'`
13662 { echo "$as_me:$LINENO: result: $ac_res" >&5
13663 echo "${ECHO_T}$ac_res" >&6; }
13664 else
13665 # Is the header compilable?
13666 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
13667 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
13668 cat >conftest.$ac_ext <<_ACEOF
13669 /* confdefs.h. */
13670 _ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13674 $ac_includes_default
13675 #include <${TERMCAP_DIR}/include/>
13676 _ACEOF
13677 rm -f conftest.$ac_objext
13678 if { (ac_try="$ac_compile"
13679 case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13682 esac
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_compile") 2>conftest.er1
13685 ac_status=$?
13686 grep -v '^ *+' conftest.er1 >conftest.err
13687 rm -f conftest.er1
13688 cat conftest.err >&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13692 { (case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695 esac
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_try") 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; } &&
13701 { ac_try='test -s conftest.$ac_objext'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13705 esac
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_header_compiler=yes
13712 else
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 ac_header_compiler=no
13719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13721 echo "${ECHO_T}$ac_header_compiler" >&6; }
13723 # Is the header present?
13724 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
13725 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
13726 cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h. */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 #include <${TERMCAP_DIR}/include/>
13733 _ACEOF
13734 if { (ac_try="$ac_cpp conftest.$ac_ext"
13735 case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } >/dev/null; then
13747 if test -s conftest.err; then
13748 ac_cpp_err=$ac_c_preproc_warn_flag
13749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13750 else
13751 ac_cpp_err=
13753 else
13754 ac_cpp_err=yes
13756 if test -z "$ac_cpp_err"; then
13757 ac_header_preproc=yes
13758 else
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_header_preproc=no
13765 rm -f conftest.err conftest.$ac_ext
13766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13767 echo "${ECHO_T}$ac_header_preproc" >&6; }
13769 # So? What about this header?
13770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13771 yes:no: )
13772 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
13773 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
13775 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
13776 ac_header_preproc=yes
13778 no:yes:* )
13779 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
13780 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
13781 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
13782 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
13783 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
13784 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
13786 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
13788 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
13790 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
13793 esac
13794 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
13795 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
13796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13797 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 else
13799 eval "$as_ac_Header=\$ac_header_preproc"
13801 ac_res=`eval echo '${'$as_ac_Header'}'`
13802 { echo "$as_me:$LINENO: result: $ac_res" >&5
13803 echo "${ECHO_T}$ac_res" >&6; }
13806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13807 TERMCAP_HEADER_FOUND=1
13808 else
13809 TERMCAP_HEADER_FOUND=0
13814 else
13815 if test "x" != "x" ; then
13816 if test "${ac_cv_header_+set}" = set; then
13817 { echo "$as_me:$LINENO: checking for " >&5
13818 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
13819 if test "${ac_cv_header_+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
13823 echo "${ECHO_T}$ac_cv_header_" >&6; }
13824 else
13825 # Is the header compilable?
13826 { echo "$as_me:$LINENO: checking usability" >&5
13827 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
13828 cat >conftest.$ac_ext <<_ACEOF
13829 /* confdefs.h. */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834 $ac_includes_default
13835 #include <>
13836 _ACEOF
13837 rm -f conftest.$ac_objext
13838 if { (ac_try="$ac_compile"
13839 case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13842 esac
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_compile") 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855 esac
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } &&
13861 { ac_try='test -s conftest.$ac_objext'
13862 { (case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13865 esac
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 (eval "$ac_try") 2>&5
13868 ac_status=$?
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
13871 ac_header_compiler=yes
13872 else
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13876 ac_header_compiler=no
13879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13881 echo "${ECHO_T}$ac_header_compiler" >&6; }
13883 # Is the header present?
13884 { echo "$as_me:$LINENO: checking presence" >&5
13885 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
13886 cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h. */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 #include <>
13893 _ACEOF
13894 if { (ac_try="$ac_cpp conftest.$ac_ext"
13895 case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13901 ac_status=$?
13902 grep -v '^ *+' conftest.er1 >conftest.err
13903 rm -f conftest.er1
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } >/dev/null; then
13907 if test -s conftest.err; then
13908 ac_cpp_err=$ac_c_preproc_warn_flag
13909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13910 else
13911 ac_cpp_err=
13913 else
13914 ac_cpp_err=yes
13916 if test -z "$ac_cpp_err"; then
13917 ac_header_preproc=yes
13918 else
13919 echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13922 ac_header_preproc=no
13925 rm -f conftest.err conftest.$ac_ext
13926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13927 echo "${ECHO_T}$ac_header_preproc" >&6; }
13929 # So? What about this header?
13930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13931 yes:no: )
13932 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
13933 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
13934 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
13935 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
13936 ac_header_preproc=yes
13938 no:yes:* )
13939 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
13940 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
13941 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
13942 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
13943 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
13944 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
13945 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
13946 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
13947 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
13948 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
13950 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
13953 esac
13954 { echo "$as_me:$LINENO: checking for " >&5
13955 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
13956 if test "${ac_cv_header_+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959 ac_cv_header_=$ac_header_preproc
13961 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
13962 echo "${ECHO_T}$ac_cv_header_" >&6; }
13965 if test $ac_cv_header_ = yes; then
13966 TERMCAP_HEADER_FOUND=1
13967 else
13968 TERMCAP_HEADER_FOUND=0
13974 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
13975 if test ! -z "${TERMCAP_MANDATORY}" ;
13976 then
13977 echo " ***"
13978 echo " *** It appears that you do not have the termcap development package installed."
13979 echo " *** Please install it to include Termcap support, or re-run configure"
13980 echo " *** without explicitly specifying --with-termcap"
13981 exit 1
13983 TERMCAP_LIB=""
13984 TERMCAP_INCLUDE=""
13985 PBX_LIBTERMCAP=0
13986 else
13987 PBX_LIBTERMCAP=1
13989 cat >>confdefs.h <<_ACEOF
13990 #define HAVE_TERMCAP 1
13991 _ACEOF
13994 elif test ! -z "${TERMCAP_MANDATORY}";
13995 then
13996 echo "***"
13997 echo "*** The Termcap installation on this system appears to be broken."
13998 echo "*** Either correct the installation, or run configure"
13999 echo "*** without explicity specifying --with-termcap"
14000 exit 1
14009 # Check whether --with-tinfo was given.
14010 if test "${with_tinfo+set}" = set; then
14011 withval=$with_tinfo;
14012 case ${withval} in
14013 n|no)
14014 USE_TINFO=no
14016 y|ye|yes)
14017 TINFO_MANDATORY="yes"
14020 TINFO_DIR="${withval}"
14021 TINFO_MANDATORY="yes"
14023 esac
14028 PBX_LIBTINFO=0
14030 if test "${USE_TINFO}" != "no"; then
14031 pbxlibdir=""
14032 if test "x${TINFO_DIR}" != "x"; then
14033 pbxlibdir="-L${tinfo_DIR}/lib"
14035 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
14036 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
14037 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040 ac_check_lib_save_LIBS=$LIBS
14041 LIBS="-ltinfo ${pbxlibdir} $LIBS"
14042 cat >conftest.$ac_ext <<_ACEOF
14043 /* confdefs.h. */
14044 _ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h. */
14049 /* Override any GCC internal prototype to avoid an error.
14050 Use char because int might match the return type of a GCC
14051 builtin and then its argument prototype would still apply. */
14052 #ifdef __cplusplus
14053 extern "C"
14054 #endif
14055 char tgetent ();
14057 main ()
14059 return tgetent ();
14061 return 0;
14063 _ACEOF
14064 rm -f conftest.$ac_objext conftest$ac_exeext
14065 if { (ac_try="$ac_link"
14066 case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14069 esac
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_link") 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
14078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14079 { (case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14082 esac
14083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084 (eval "$ac_try") 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; } &&
14088 { ac_try='test -s conftest$ac_exeext'
14089 { (case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14092 esac
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_try") 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
14098 ac_cv_lib_tinfo_tgetent=yes
14099 else
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14103 ac_cv_lib_tinfo_tgetent=no
14106 rm -f conftest.err conftest.$ac_objext \
14107 conftest$ac_exeext conftest.$ac_ext
14108 LIBS=$ac_check_lib_save_LIBS
14110 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
14111 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
14112 if test $ac_cv_lib_tinfo_tgetent = yes; then
14113 AST_TINFO_FOUND=yes
14114 else
14115 AST_TINFO_FOUND=no
14119 if test "${AST_TINFO_FOUND}" = "yes"; then
14120 TINFO_LIB="-ltinfo "
14121 TINFO_HEADER_FOUND="1"
14122 if test "x${TINFO_DIR}" != "x"; then
14123 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
14124 TINFO_INCLUDE="-I${TINFO_DIR}/include"
14125 if test "x" != "x" ; then
14126 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
14127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14128 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
14129 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
14130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 ac_res=`eval echo '${'$as_ac_Header'}'`
14134 { echo "$as_me:$LINENO: result: $ac_res" >&5
14135 echo "${ECHO_T}$ac_res" >&6; }
14136 else
14137 # Is the header compilable?
14138 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
14139 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h. */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 $ac_includes_default
14147 #include <${TINFO_DIR}/include/>
14148 _ACEOF
14149 rm -f conftest.$ac_objext
14150 if { (ac_try="$ac_compile"
14151 case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154 esac
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_compile") 2>conftest.er1
14157 ac_status=$?
14158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } &&
14163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; } &&
14173 { ac_try='test -s conftest.$ac_objext'
14174 { (case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14177 esac
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_try") 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_header_compiler=yes
14184 else
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ac_header_compiler=no
14191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14193 echo "${ECHO_T}$ac_header_compiler" >&6; }
14195 # Is the header present?
14196 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
14197 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
14198 cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h. */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14204 #include <${TINFO_DIR}/include/>
14205 _ACEOF
14206 if { (ac_try="$ac_cpp conftest.$ac_ext"
14207 case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210 esac
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14213 ac_status=$?
14214 grep -v '^ *+' conftest.er1 >conftest.err
14215 rm -f conftest.er1
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } >/dev/null; then
14219 if test -s conftest.err; then
14220 ac_cpp_err=$ac_c_preproc_warn_flag
14221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14222 else
14223 ac_cpp_err=
14225 else
14226 ac_cpp_err=yes
14228 if test -z "$ac_cpp_err"; then
14229 ac_header_preproc=yes
14230 else
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14234 ac_header_preproc=no
14237 rm -f conftest.err conftest.$ac_ext
14238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14239 echo "${ECHO_T}$ac_header_preproc" >&6; }
14241 # So? What about this header?
14242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14243 yes:no: )
14244 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
14245 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
14247 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
14248 ac_header_preproc=yes
14250 no:yes:* )
14251 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
14252 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
14254 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
14256 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
14258 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
14260 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
14262 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
14265 esac
14266 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
14267 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
14268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271 eval "$as_ac_Header=\$ac_header_preproc"
14273 ac_res=`eval echo '${'$as_ac_Header'}'`
14274 { echo "$as_me:$LINENO: result: $ac_res" >&5
14275 echo "${ECHO_T}$ac_res" >&6; }
14278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14279 TINFO_HEADER_FOUND=1
14280 else
14281 TINFO_HEADER_FOUND=0
14286 else
14287 if test "x" != "x" ; then
14288 if test "${ac_cv_header_+set}" = set; then
14289 { echo "$as_me:$LINENO: checking for " >&5
14290 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
14291 if test "${ac_cv_header_+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
14295 echo "${ECHO_T}$ac_cv_header_" >&6; }
14296 else
14297 # Is the header compilable?
14298 { echo "$as_me:$LINENO: checking usability" >&5
14299 echo $ECHO_N "checking 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 <>
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 presence" >&5
14357 echo $ECHO_N "checking 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 <>
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: : accepted by the compiler, rejected by the preprocessor!" >&5
14405 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
14407 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
14408 ac_header_preproc=yes
14410 no:yes:* )
14411 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
14412 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
14413 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
14414 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
14416 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
14417 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
14418 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
14420 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
14421 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
14422 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
14425 esac
14426 { echo "$as_me:$LINENO: checking for " >&5
14427 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
14428 if test "${ac_cv_header_+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431 ac_cv_header_=$ac_header_preproc
14433 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
14434 echo "${ECHO_T}$ac_cv_header_" >&6; }
14437 if test $ac_cv_header_ = yes; then
14438 TINFO_HEADER_FOUND=1
14439 else
14440 TINFO_HEADER_FOUND=0
14446 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
14447 if test ! -z "${TINFO_MANDATORY}" ;
14448 then
14449 echo " ***"
14450 echo " *** It appears that you do not have the tinfo development package installed."
14451 echo " *** Please install it to include Term Info support, or re-run configure"
14452 echo " *** without explicitly specifying --with-tinfo"
14453 exit 1
14455 TINFO_LIB=""
14456 TINFO_INCLUDE=""
14457 PBX_LIBTINFO=0
14458 else
14459 PBX_LIBTINFO=1
14461 cat >>confdefs.h <<_ACEOF
14462 #define HAVE_TINFO 1
14463 _ACEOF
14466 elif test ! -z "${TINFO_MANDATORY}";
14467 then
14468 echo "***"
14469 echo "*** The Term Info installation on this system appears to be broken."
14470 echo "*** Either correct the installation, or run configure"
14471 echo "*** without explicity specifying --with-tinfo"
14472 exit 1
14481 # Check whether --with-vorbis was given.
14482 if test "${with_vorbis+set}" = set; then
14483 withval=$with_vorbis;
14484 case ${withval} in
14485 n|no)
14486 USE_VORBIS=no
14488 y|ye|yes)
14489 VORBIS_MANDATORY="yes"
14492 VORBIS_DIR="${withval}"
14493 VORBIS_MANDATORY="yes"
14495 esac
14500 PBX_LIBVORBIS=0
14502 if test "${USE_VORBIS}" != "no"; then
14503 pbxlibdir=""
14504 if test "x${VORBIS_DIR}" != "x"; then
14505 pbxlibdir="-L${vorbis_DIR}/lib"
14507 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
14508 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
14509 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512 ac_check_lib_save_LIBS=$LIBS
14513 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
14514 cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h. */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14521 /* Override any GCC internal prototype to avoid an error.
14522 Use char because int might match the return type of a GCC
14523 builtin and then its argument prototype would still apply. */
14524 #ifdef __cplusplus
14525 extern "C"
14526 #endif
14527 char vorbis_info_init ();
14529 main ()
14531 return vorbis_info_init ();
14533 return 0;
14535 _ACEOF
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (ac_try="$ac_link"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14541 esac
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_link") 2>conftest.er1
14544 ac_status=$?
14545 grep -v '^ *+' conftest.er1 >conftest.err
14546 rm -f conftest.er1
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14551 { (case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_try") 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest$ac_exeext'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14564 esac
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_cv_lib_vorbis_vorbis_info_init=yes
14571 else
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 ac_cv_lib_vorbis_vorbis_info_init=no
14578 rm -f conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14580 LIBS=$ac_check_lib_save_LIBS
14582 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
14583 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
14584 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
14585 AST_VORBIS_FOUND=yes
14586 else
14587 AST_VORBIS_FOUND=no
14591 if test "${AST_VORBIS_FOUND}" = "yes"; then
14592 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
14593 VORBIS_HEADER_FOUND="1"
14594 if test "x${VORBIS_DIR}" != "x"; then
14595 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
14596 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
14597 if test "xvorbis/codec.h" != "x" ; then
14598 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
14599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14600 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
14601 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
14602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 ac_res=`eval echo '${'$as_ac_Header'}'`
14606 { echo "$as_me:$LINENO: result: $ac_res" >&5
14607 echo "${ECHO_T}$ac_res" >&6; }
14608 else
14609 # Is the header compilable?
14610 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
14611 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
14612 cat >conftest.$ac_ext <<_ACEOF
14613 /* confdefs.h. */
14614 _ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 $ac_includes_default
14619 #include <${VORBIS_DIR}/include/vorbis/codec.h>
14620 _ACEOF
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626 esac
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_compile") 2>conftest.er1
14629 ac_status=$?
14630 grep -v '^ *+' conftest.er1 >conftest.err
14631 rm -f conftest.er1
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
14635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14636 { (case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639 esac
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_try") 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649 esac
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_header_compiler=yes
14656 else
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 ac_header_compiler=no
14663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14665 echo "${ECHO_T}$ac_header_compiler" >&6; }
14667 # Is the header present?
14668 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
14669 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
14670 cat >conftest.$ac_ext <<_ACEOF
14671 /* confdefs.h. */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 #include <${VORBIS_DIR}/include/vorbis/codec.h>
14677 _ACEOF
14678 if { (ac_try="$ac_cpp conftest.$ac_ext"
14679 case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14682 esac
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } >/dev/null; then
14691 if test -s conftest.err; then
14692 ac_cpp_err=$ac_c_preproc_warn_flag
14693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14694 else
14695 ac_cpp_err=
14697 else
14698 ac_cpp_err=yes
14700 if test -z "$ac_cpp_err"; then
14701 ac_header_preproc=yes
14702 else
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ac_header_preproc=no
14709 rm -f conftest.err conftest.$ac_ext
14710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14711 echo "${ECHO_T}$ac_header_preproc" >&6; }
14713 # So? What about this header?
14714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14715 yes:no: )
14716 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
14717 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
14719 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
14720 ac_header_preproc=yes
14722 no:yes:* )
14723 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
14724 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
14726 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
14728 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
14730 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
14732 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
14734 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
14737 esac
14738 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
14739 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
14740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743 eval "$as_ac_Header=\$ac_header_preproc"
14745 ac_res=`eval echo '${'$as_ac_Header'}'`
14746 { echo "$as_me:$LINENO: result: $ac_res" >&5
14747 echo "${ECHO_T}$ac_res" >&6; }
14750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14751 VORBIS_HEADER_FOUND=1
14752 else
14753 VORBIS_HEADER_FOUND=0
14758 else
14759 if test "xvorbis/codec.h" != "x" ; then
14760 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
14761 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
14762 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
14763 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
14767 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
14768 else
14769 # Is the header compilable?
14770 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
14771 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
14772 cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h. */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 $ac_includes_default
14779 #include <vorbis/codec.h>
14780 _ACEOF
14781 rm -f conftest.$ac_objext
14782 if { (ac_try="$ac_compile"
14783 case "(($ac_try" in
14784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785 *) ac_try_echo=$ac_try;;
14786 esac
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788 (eval "$ac_compile") 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14796 { (case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_try") 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; } &&
14805 { ac_try='test -s conftest.$ac_objext'
14806 { (case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14809 esac
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_try") 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 ac_header_compiler=yes
14816 else
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14820 ac_header_compiler=no
14823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14825 echo "${ECHO_T}$ac_header_compiler" >&6; }
14827 # Is the header present?
14828 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
14829 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
14830 cat >conftest.$ac_ext <<_ACEOF
14831 /* confdefs.h. */
14832 _ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14836 #include <vorbis/codec.h>
14837 _ACEOF
14838 if { (ac_try="$ac_cpp conftest.$ac_ext"
14839 case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14842 esac
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14845 ac_status=$?
14846 grep -v '^ *+' conftest.er1 >conftest.err
14847 rm -f conftest.er1
14848 cat conftest.err >&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } >/dev/null; then
14851 if test -s conftest.err; then
14852 ac_cpp_err=$ac_c_preproc_warn_flag
14853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14854 else
14855 ac_cpp_err=
14857 else
14858 ac_cpp_err=yes
14860 if test -z "$ac_cpp_err"; then
14861 ac_header_preproc=yes
14862 else
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_header_preproc=no
14869 rm -f conftest.err conftest.$ac_ext
14870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14871 echo "${ECHO_T}$ac_header_preproc" >&6; }
14873 # So? What about this header?
14874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14875 yes:no: )
14876 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
14877 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14878 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
14879 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
14880 ac_header_preproc=yes
14882 no:yes:* )
14883 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
14884 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
14886 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
14888 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
14890 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
14892 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
14894 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
14897 esac
14898 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
14899 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
14900 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14902 else
14903 ac_cv_header_vorbis_codec_h=$ac_header_preproc
14905 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
14906 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
14909 if test $ac_cv_header_vorbis_codec_h = yes; then
14910 VORBIS_HEADER_FOUND=1
14911 else
14912 VORBIS_HEADER_FOUND=0
14918 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
14919 if test ! -z "${VORBIS_MANDATORY}" ;
14920 then
14921 echo " ***"
14922 echo " *** It appears that you do not have the vorbis development package installed."
14923 echo " *** Please install it to include Vorbis support, or re-run configure"
14924 echo " *** without explicitly specifying --with-vorbis"
14925 exit 1
14927 VORBIS_LIB=""
14928 VORBIS_INCLUDE=""
14929 PBX_LIBVORBIS=0
14930 else
14931 PBX_LIBVORBIS=1
14933 cat >>confdefs.h <<_ACEOF
14934 #define HAVE_VORBIS 1
14935 _ACEOF
14938 elif test ! -z "${VORBIS_MANDATORY}";
14939 then
14940 echo "***"
14941 echo "*** The Vorbis installation on this system appears to be broken."
14942 echo "*** Either correct the installation, or run configure"
14943 echo "*** without explicity specifying --with-vorbis"
14944 exit 1
14953 # Check whether --with-z was given.
14954 if test "${with_z+set}" = set; then
14955 withval=$with_z;
14956 case ${withval} in
14957 n|no)
14958 USE_ZLIB=no
14960 y|ye|yes)
14961 ZLIB_MANDATORY="yes"
14964 ZLIB_DIR="${withval}"
14965 ZLIB_MANDATORY="yes"
14967 esac
14972 PBX_LIBZLIB=0
14974 if test "${USE_ZLIB}" != "no"; then
14975 pbxlibdir=""
14976 if test "x${ZLIB_DIR}" != "x"; then
14977 pbxlibdir="-L${z_DIR}/lib"
14979 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
14980 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
14981 if test "${ac_cv_lib_z_compress+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984 ac_check_lib_save_LIBS=$LIBS
14985 LIBS="-lz ${pbxlibdir} $LIBS"
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h. */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14993 /* Override any GCC internal prototype to avoid an error.
14994 Use char because int might match the return type of a GCC
14995 builtin and then its argument prototype would still apply. */
14996 #ifdef __cplusplus
14997 extern "C"
14998 #endif
14999 char compress ();
15001 main ()
15003 return compress ();
15005 return 0;
15007 _ACEOF
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (ac_try="$ac_link"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_link") 2>conftest.er1
15016 ac_status=$?
15017 grep -v '^ *+' conftest.er1 >conftest.err
15018 rm -f conftest.er1
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } &&
15022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15023 { (case "(($ac_try" in
15024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15025 *) ac_try_echo=$ac_try;;
15026 esac
15027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15028 (eval "$ac_try") 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest$ac_exeext'
15033 { (case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15036 esac
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_try") 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_cv_lib_z_compress=yes
15043 else
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 ac_cv_lib_z_compress=no
15050 rm -f conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
15052 LIBS=$ac_check_lib_save_LIBS
15054 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
15055 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
15056 if test $ac_cv_lib_z_compress = yes; then
15057 AST_ZLIB_FOUND=yes
15058 else
15059 AST_ZLIB_FOUND=no
15063 if test "${AST_ZLIB_FOUND}" = "yes"; then
15064 ZLIB_LIB="-lz "
15065 ZLIB_HEADER_FOUND="1"
15066 if test "x${ZLIB_DIR}" != "x"; then
15067 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
15068 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
15069 if test "xzlib.h" != "x" ; then
15070 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
15071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15072 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
15073 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
15074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15077 ac_res=`eval echo '${'$as_ac_Header'}'`
15078 { echo "$as_me:$LINENO: result: $ac_res" >&5
15079 echo "${ECHO_T}$ac_res" >&6; }
15080 else
15081 # Is the header compilable?
15082 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
15083 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
15084 cat >conftest.$ac_ext <<_ACEOF
15085 /* confdefs.h. */
15086 _ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h. */
15090 $ac_includes_default
15091 #include <${ZLIB_DIR}/include/zlib.h>
15092 _ACEOF
15093 rm -f conftest.$ac_objext
15094 if { (ac_try="$ac_compile"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_compile") 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15108 { (case "(($ac_try" in
15109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110 *) ac_try_echo=$ac_try;;
15111 esac
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_try") 2>&5
15114 ac_status=$?
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; } &&
15117 { ac_try='test -s conftest.$ac_objext'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_header_compiler=yes
15128 else
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_header_compiler=no
15135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15137 echo "${ECHO_T}$ac_header_compiler" >&6; }
15139 # Is the header present?
15140 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
15141 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
15142 cat >conftest.$ac_ext <<_ACEOF
15143 /* confdefs.h. */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 #include <${ZLIB_DIR}/include/zlib.h>
15149 _ACEOF
15150 if { (ac_try="$ac_cpp conftest.$ac_ext"
15151 case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15154 esac
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15157 ac_status=$?
15158 grep -v '^ *+' conftest.er1 >conftest.err
15159 rm -f conftest.er1
15160 cat conftest.err >&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } >/dev/null; then
15163 if test -s conftest.err; then
15164 ac_cpp_err=$ac_c_preproc_warn_flag
15165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15166 else
15167 ac_cpp_err=
15169 else
15170 ac_cpp_err=yes
15172 if test -z "$ac_cpp_err"; then
15173 ac_header_preproc=yes
15174 else
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15178 ac_header_preproc=no
15181 rm -f conftest.err conftest.$ac_ext
15182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15183 echo "${ECHO_T}$ac_header_preproc" >&6; }
15185 # So? What about this header?
15186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15187 yes:no: )
15188 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15189 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
15191 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
15192 ac_header_preproc=yes
15194 no:yes:* )
15195 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
15196 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
15197 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
15198 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
15199 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
15200 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
15201 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
15202 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15203 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
15204 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
15206 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
15209 esac
15210 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
15211 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
15212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 else
15215 eval "$as_ac_Header=\$ac_header_preproc"
15217 ac_res=`eval echo '${'$as_ac_Header'}'`
15218 { echo "$as_me:$LINENO: result: $ac_res" >&5
15219 echo "${ECHO_T}$ac_res" >&6; }
15222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15223 ZLIB_HEADER_FOUND=1
15224 else
15225 ZLIB_HEADER_FOUND=0
15230 else
15231 if test "xzlib.h" != "x" ; then
15232 if test "${ac_cv_header_zlib_h+set}" = set; then
15233 { echo "$as_me:$LINENO: checking for zlib.h" >&5
15234 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
15235 if test "${ac_cv_header_zlib_h+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15238 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15239 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
15240 else
15241 # Is the header compilable?
15242 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
15243 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h. */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 $ac_includes_default
15251 #include <zlib.h>
15252 _ACEOF
15253 rm -f conftest.$ac_objext
15254 if { (ac_try="$ac_compile"
15255 case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_compile") 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } &&
15267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15268 { (case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15271 esac
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_try") 2>&5
15274 ac_status=$?
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; } &&
15277 { ac_try='test -s conftest.$ac_objext'
15278 { (case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15281 esac
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_try") 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 ac_header_compiler=yes
15288 else
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 ac_header_compiler=no
15295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15297 echo "${ECHO_T}$ac_header_compiler" >&6; }
15299 # Is the header present?
15300 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
15301 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
15302 cat >conftest.$ac_ext <<_ACEOF
15303 /* confdefs.h. */
15304 _ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 #include <zlib.h>
15309 _ACEOF
15310 if { (ac_try="$ac_cpp conftest.$ac_ext"
15311 case "(($ac_try" in
15312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313 *) ac_try_echo=$ac_try;;
15314 esac
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15317 ac_status=$?
15318 grep -v '^ *+' conftest.er1 >conftest.err
15319 rm -f conftest.er1
15320 cat conftest.err >&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } >/dev/null; then
15323 if test -s conftest.err; then
15324 ac_cpp_err=$ac_c_preproc_warn_flag
15325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15326 else
15327 ac_cpp_err=
15329 else
15330 ac_cpp_err=yes
15332 if test -z "$ac_cpp_err"; then
15333 ac_header_preproc=yes
15334 else
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 ac_header_preproc=no
15341 rm -f conftest.err conftest.$ac_ext
15342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15343 echo "${ECHO_T}$ac_header_preproc" >&6; }
15345 # So? What about this header?
15346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15347 yes:no: )
15348 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15349 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
15351 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
15352 ac_header_preproc=yes
15354 no:yes:* )
15355 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
15356 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
15357 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
15358 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
15359 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
15360 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
15361 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
15362 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
15364 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
15365 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
15366 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
15369 esac
15370 { echo "$as_me:$LINENO: checking for zlib.h" >&5
15371 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
15372 if test "${ac_cv_header_zlib_h+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375 ac_cv_header_zlib_h=$ac_header_preproc
15377 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15378 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
15381 if test $ac_cv_header_zlib_h = yes; then
15382 ZLIB_HEADER_FOUND=1
15383 else
15384 ZLIB_HEADER_FOUND=0
15390 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
15391 if test ! -z "${ZLIB_MANDATORY}" ;
15392 then
15393 echo " ***"
15394 echo " *** It appears that you do not have the z development package installed."
15395 echo " *** Please install it to include zlib support, or re-run configure"
15396 echo " *** without explicitly specifying --with-z"
15397 exit 1
15399 ZLIB_LIB=""
15400 ZLIB_INCLUDE=""
15401 PBX_LIBZLIB=0
15402 else
15403 PBX_LIBZLIB=1
15405 cat >>confdefs.h <<_ACEOF
15406 #define HAVE_ZLIB 1
15407 _ACEOF
15410 elif test ! -z "${ZLIB_MANDATORY}";
15411 then
15412 echo "***"
15413 echo "*** The zlib installation on this system appears to be broken."
15414 echo "*** Either correct the installation, or run configure"
15415 echo "*** without explicity specifying --with-z"
15416 exit 1
15424 EDITLINE_LIBS=""
15425 if test "x$TERMCAP_LIB" != "x" ; then
15426 EDITLINE_LIBS="$TERMCAP_LIB"
15427 elif test "x$TINFO_LIB" != "x" ; then
15428 EDITLINE_LIBS="$TINFO_LIB"
15429 elif test "x$CURSES_LIB" != "x" ; then
15430 EDITLINE_LIBS="$CURSES_LIB"
15431 elif test "x$NCURSES_LIB" != "x" ; then
15432 EDITLINE_LIBS="$NCURSES_LIB"
15433 else
15434 echo "*** termcap support not found"
15435 exit 1
15439 PBX_LIBOSS=0
15440 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
15441 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
15442 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
15443 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
15447 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
15448 else
15449 # Is the header compilable?
15450 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
15451 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
15452 cat >conftest.$ac_ext <<_ACEOF
15453 /* confdefs.h. */
15454 _ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h. */
15458 $ac_includes_default
15459 #include <linux/soundcard.h>
15460 _ACEOF
15461 rm -f conftest.$ac_objext
15462 if { (ac_try="$ac_compile"
15463 case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15466 esac
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_compile") 2>conftest.er1
15469 ac_status=$?
15470 grep -v '^ *+' conftest.er1 >conftest.err
15471 rm -f conftest.er1
15472 cat conftest.err >&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } &&
15475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15476 { (case "(($ac_try" in
15477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478 *) ac_try_echo=$ac_try;;
15479 esac
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481 (eval "$ac_try") 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try='test -s conftest.$ac_objext'
15486 { (case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15489 esac
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_try") 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 ac_header_compiler=yes
15496 else
15497 echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15500 ac_header_compiler=no
15503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15505 echo "${ECHO_T}$ac_header_compiler" >&6; }
15507 # Is the header present?
15508 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
15509 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
15510 cat >conftest.$ac_ext <<_ACEOF
15511 /* confdefs.h. */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516 #include <linux/soundcard.h>
15517 _ACEOF
15518 if { (ac_try="$ac_cpp conftest.$ac_ext"
15519 case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15522 esac
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15525 ac_status=$?
15526 grep -v '^ *+' conftest.er1 >conftest.err
15527 rm -f conftest.er1
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } >/dev/null; then
15531 if test -s conftest.err; then
15532 ac_cpp_err=$ac_c_preproc_warn_flag
15533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15534 else
15535 ac_cpp_err=
15537 else
15538 ac_cpp_err=yes
15540 if test -z "$ac_cpp_err"; then
15541 ac_header_preproc=yes
15542 else
15543 echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15546 ac_header_preproc=no
15549 rm -f conftest.err conftest.$ac_ext
15550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15551 echo "${ECHO_T}$ac_header_preproc" >&6; }
15553 # So? What about this header?
15554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15555 yes:no: )
15556 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
15557 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15558 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
15559 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
15560 ac_header_preproc=yes
15562 no:yes:* )
15563 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
15564 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
15566 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
15568 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
15570 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
15572 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
15574 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
15577 esac
15578 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
15579 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
15580 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 else
15583 ac_cv_header_linux_soundcard_h=$ac_header_preproc
15585 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
15586 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
15589 if test $ac_cv_header_linux_soundcard_h = yes; then
15591 PBX_LIBOSS=1
15593 cat >>confdefs.h <<_ACEOF
15594 #define HAVE_OSS 1
15595 _ACEOF
15601 if test "$PBX_LIBOSS" = "0"; then
15602 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
15603 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
15604 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
15605 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15608 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
15609 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
15610 else
15611 # Is the header compilable?
15612 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
15613 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
15614 cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h. */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15620 $ac_includes_default
15621 #include <sys/soundcard.h>
15622 _ACEOF
15623 rm -f conftest.$ac_objext
15624 if { (ac_try="$ac_compile"
15625 case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_compile") 2>conftest.er1
15631 ac_status=$?
15632 grep -v '^ *+' conftest.er1 >conftest.err
15633 rm -f conftest.er1
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638 { (case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_try") 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest.$ac_objext'
15648 { (case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15651 esac
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_try") 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_header_compiler=yes
15658 else
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ac_header_compiler=no
15665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15667 echo "${ECHO_T}$ac_header_compiler" >&6; }
15669 # Is the header present?
15670 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
15671 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
15672 cat >conftest.$ac_ext <<_ACEOF
15673 /* confdefs.h. */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 #include <sys/soundcard.h>
15679 _ACEOF
15680 if { (ac_try="$ac_cpp conftest.$ac_ext"
15681 case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15687 ac_status=$?
15688 grep -v '^ *+' conftest.er1 >conftest.err
15689 rm -f conftest.er1
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } >/dev/null; then
15693 if test -s conftest.err; then
15694 ac_cpp_err=$ac_c_preproc_warn_flag
15695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15696 else
15697 ac_cpp_err=
15699 else
15700 ac_cpp_err=yes
15702 if test -z "$ac_cpp_err"; then
15703 ac_header_preproc=yes
15704 else
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ac_header_preproc=no
15711 rm -f conftest.err conftest.$ac_ext
15712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15713 echo "${ECHO_T}$ac_header_preproc" >&6; }
15715 # So? What about this header?
15716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15717 yes:no: )
15718 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
15719 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
15721 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
15722 ac_header_preproc=yes
15724 no:yes:* )
15725 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
15726 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
15728 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
15730 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
15732 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
15734 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
15736 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
15739 esac
15740 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
15741 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
15742 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 else
15745 ac_cv_header_sys_soundcard_h=$ac_header_preproc
15747 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
15748 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
15751 if test $ac_cv_header_sys_soundcard_h = yes; then
15753 PBX_LIBossaudio=1
15755 cat >>confdefs.h <<_ACEOF
15756 #define HAVE_OSS 1
15757 _ACEOF
15764 if test "$PBX_LIBOSS" = "0"; then
15767 # Check whether --with-ossaudio was given.
15768 if test "${with_ossaudio+set}" = set; then
15769 withval=$with_ossaudio;
15770 case ${withval} in
15771 n|no)
15772 USE_OSS=no
15774 y|ye|yes)
15775 OSS_MANDATORY="yes"
15778 OSS_DIR="${withval}"
15779 OSS_MANDATORY="yes"
15781 esac
15786 PBX_LIBOSS=0
15788 if test "${USE_OSS}" != "no"; then
15789 pbxlibdir=""
15790 if test "x${OSS_DIR}" != "x"; then
15791 pbxlibdir="-L${ossaudio_DIR}/lib"
15793 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
15794 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
15795 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15797 else
15798 ac_check_lib_save_LIBS=$LIBS
15799 LIBS="-lossaudio ${pbxlibdir} $LIBS"
15800 cat >conftest.$ac_ext <<_ACEOF
15801 /* confdefs.h. */
15802 _ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15807 /* Override any GCC internal prototype to avoid an error.
15808 Use char because int might match the return type of a GCC
15809 builtin and then its argument prototype would still apply. */
15810 #ifdef __cplusplus
15811 extern "C"
15812 #endif
15813 char oss_ioctl_mixer ();
15815 main ()
15817 return oss_ioctl_mixer ();
15819 return 0;
15821 _ACEOF
15822 rm -f conftest.$ac_objext conftest$ac_exeext
15823 if { (ac_try="$ac_link"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15827 esac
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_link") 2>conftest.er1
15830 ac_status=$?
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15837 { (case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15840 esac
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_try") 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest$ac_exeext'
15847 { (case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15850 esac
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_try") 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
15857 else
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15861 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
15864 rm -f conftest.err conftest.$ac_objext \
15865 conftest$ac_exeext conftest.$ac_ext
15866 LIBS=$ac_check_lib_save_LIBS
15868 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
15869 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
15870 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
15871 AST_OSS_FOUND=yes
15872 else
15873 AST_OSS_FOUND=no
15877 if test "${AST_OSS_FOUND}" = "yes"; then
15878 OSS_LIB="-lossaudio "
15879 OSS_HEADER_FOUND="1"
15880 if test "x${OSS_DIR}" != "x"; then
15881 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
15882 OSS_INCLUDE="-I${OSS_DIR}/include"
15883 if test "xsoundcard.h" != "x" ; then
15884 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
15885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15886 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
15887 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
15888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 ac_res=`eval echo '${'$as_ac_Header'}'`
15892 { echo "$as_me:$LINENO: result: $ac_res" >&5
15893 echo "${ECHO_T}$ac_res" >&6; }
15894 else
15895 # Is the header compilable?
15896 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
15897 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
15898 cat >conftest.$ac_ext <<_ACEOF
15899 /* confdefs.h. */
15900 _ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15904 $ac_includes_default
15905 #include <${OSS_DIR}/include/soundcard.h>
15906 _ACEOF
15907 rm -f conftest.$ac_objext
15908 if { (ac_try="$ac_compile"
15909 case "(($ac_try" in
15910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911 *) ac_try_echo=$ac_try;;
15912 esac
15913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15914 (eval "$ac_compile") 2>conftest.er1
15915 ac_status=$?
15916 grep -v '^ *+' conftest.er1 >conftest.err
15917 rm -f conftest.er1
15918 cat conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15922 { (case "(($ac_try" in
15923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924 *) ac_try_echo=$ac_try;;
15925 esac
15926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15927 (eval "$ac_try") 2>&5
15928 ac_status=$?
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; } &&
15931 { ac_try='test -s conftest.$ac_objext'
15932 { (case "(($ac_try" in
15933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934 *) ac_try_echo=$ac_try;;
15935 esac
15936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937 (eval "$ac_try") 2>&5
15938 ac_status=$?
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; }; then
15941 ac_header_compiler=yes
15942 else
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15946 ac_header_compiler=no
15949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15951 echo "${ECHO_T}$ac_header_compiler" >&6; }
15953 # Is the header present?
15954 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
15955 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
15956 cat >conftest.$ac_ext <<_ACEOF
15957 /* confdefs.h. */
15958 _ACEOF
15959 cat confdefs.h >>conftest.$ac_ext
15960 cat >>conftest.$ac_ext <<_ACEOF
15961 /* end confdefs.h. */
15962 #include <${OSS_DIR}/include/soundcard.h>
15963 _ACEOF
15964 if { (ac_try="$ac_cpp conftest.$ac_ext"
15965 case "(($ac_try" in
15966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15968 esac
15969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15971 ac_status=$?
15972 grep -v '^ *+' conftest.er1 >conftest.err
15973 rm -f conftest.er1
15974 cat conftest.err >&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } >/dev/null; then
15977 if test -s conftest.err; then
15978 ac_cpp_err=$ac_c_preproc_warn_flag
15979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15980 else
15981 ac_cpp_err=
15983 else
15984 ac_cpp_err=yes
15986 if test -z "$ac_cpp_err"; then
15987 ac_header_preproc=yes
15988 else
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 ac_header_preproc=no
15995 rm -f conftest.err conftest.$ac_ext
15996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15997 echo "${ECHO_T}$ac_header_preproc" >&6; }
15999 # So? What about this header?
16000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16001 yes:no: )
16002 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
16003 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
16005 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
16006 ac_header_preproc=yes
16008 no:yes:* )
16009 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
16010 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
16012 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
16014 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
16016 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
16018 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
16020 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
16023 esac
16024 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
16025 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
16026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 else
16029 eval "$as_ac_Header=\$ac_header_preproc"
16031 ac_res=`eval echo '${'$as_ac_Header'}'`
16032 { echo "$as_me:$LINENO: result: $ac_res" >&5
16033 echo "${ECHO_T}$ac_res" >&6; }
16036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16037 OSS_HEADER_FOUND=1
16038 else
16039 OSS_HEADER_FOUND=0
16044 else
16045 if test "xsoundcard.h" != "x" ; then
16046 if test "${ac_cv_header_soundcard_h+set}" = set; then
16047 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
16048 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
16049 if test "${ac_cv_header_soundcard_h+set}" = set; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
16053 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
16054 else
16055 # Is the header compilable?
16056 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
16057 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
16058 cat >conftest.$ac_ext <<_ACEOF
16059 /* confdefs.h. */
16060 _ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h. */
16064 $ac_includes_default
16065 #include <soundcard.h>
16066 _ACEOF
16067 rm -f conftest.$ac_objext
16068 if { (ac_try="$ac_compile"
16069 case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16072 esac
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_compile") 2>conftest.er1
16075 ac_status=$?
16076 grep -v '^ *+' conftest.er1 >conftest.err
16077 rm -f conftest.er1
16078 cat conftest.err >&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } &&
16081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16082 { (case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16085 esac
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_try") 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest.$ac_objext'
16092 { (case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16095 esac
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_try") 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 ac_header_compiler=yes
16102 else
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 ac_header_compiler=no
16109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16111 echo "${ECHO_T}$ac_header_compiler" >&6; }
16113 # Is the header present?
16114 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
16115 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
16116 cat >conftest.$ac_ext <<_ACEOF
16117 /* confdefs.h. */
16118 _ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h. */
16122 #include <soundcard.h>
16123 _ACEOF
16124 if { (ac_try="$ac_cpp conftest.$ac_ext"
16125 case "(($ac_try" in
16126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127 *) ac_try_echo=$ac_try;;
16128 esac
16129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16131 ac_status=$?
16132 grep -v '^ *+' conftest.er1 >conftest.err
16133 rm -f conftest.er1
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } >/dev/null; then
16137 if test -s conftest.err; then
16138 ac_cpp_err=$ac_c_preproc_warn_flag
16139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16140 else
16141 ac_cpp_err=
16143 else
16144 ac_cpp_err=yes
16146 if test -z "$ac_cpp_err"; then
16147 ac_header_preproc=yes
16148 else
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16152 ac_header_preproc=no
16155 rm -f conftest.err conftest.$ac_ext
16156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16157 echo "${ECHO_T}$ac_header_preproc" >&6; }
16159 # So? What about this header?
16160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16161 yes:no: )
16162 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
16163 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
16165 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
16166 ac_header_preproc=yes
16168 no:yes:* )
16169 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
16170 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
16171 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
16172 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
16173 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
16174 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
16175 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
16176 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
16177 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
16178 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
16179 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
16180 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
16183 esac
16184 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
16185 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
16186 if test "${ac_cv_header_soundcard_h+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189 ac_cv_header_soundcard_h=$ac_header_preproc
16191 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
16192 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
16195 if test $ac_cv_header_soundcard_h = yes; then
16196 OSS_HEADER_FOUND=1
16197 else
16198 OSS_HEADER_FOUND=0
16204 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
16205 if test ! -z "${OSS_MANDATORY}" ;
16206 then
16207 echo " ***"
16208 echo " *** It appears that you do not have the ossaudio development package installed."
16209 echo " *** Please install it to include Open Sound System support, or re-run configure"
16210 echo " *** without explicitly specifying --with-ossaudio"
16211 exit 1
16213 OSS_LIB=""
16214 OSS_INCLUDE=""
16215 PBX_LIBOSS=0
16216 else
16217 PBX_LIBOSS=1
16219 cat >>confdefs.h <<_ACEOF
16220 #define HAVE_OSS 1
16221 _ACEOF
16224 elif test ! -z "${OSS_MANDATORY}";
16225 then
16226 echo "***"
16227 echo "*** The Open Sound System installation on this system appears to be broken."
16228 echo "*** Either correct the installation, or run configure"
16229 echo "*** without explicity specifying --with-ossaudio"
16230 exit 1
16241 if test "${PBX_OSTYPE}" = "Linux" ; then
16244 # Check whether --with-tonezone was given.
16245 if test "${with_tonezone+set}" = set; then
16246 withval=$with_tonezone;
16247 case ${withval} in
16248 n|no)
16249 USE_ZAPTEL=no
16251 y|ye|yes)
16252 ZAPTEL_MANDATORY="yes"
16255 ZAPTEL_DIR="${withval}"
16256 ZAPTEL_MANDATORY="yes"
16258 esac
16263 PBX_LIBZAPTEL=0
16265 if test "${USE_ZAPTEL}" != "no"; then
16266 pbxlibdir=""
16267 if test "x${ZAPTEL_DIR}" != "x"; then
16268 pbxlibdir="-L${tonezone_DIR}/lib"
16270 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
16271 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
16272 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275 ac_check_lib_save_LIBS=$LIBS
16276 LIBS="-ltonezone ${pbxlibdir} $LIBS"
16277 cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h. */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16284 /* Override any GCC internal prototype to avoid an error.
16285 Use char because int might match the return type of a GCC
16286 builtin and then its argument prototype would still apply. */
16287 #ifdef __cplusplus
16288 extern "C"
16289 #endif
16290 char tone_zone_find ();
16292 main ()
16294 return tone_zone_find ();
16296 return 0;
16298 _ACEOF
16299 rm -f conftest.$ac_objext conftest$ac_exeext
16300 if { (ac_try="$ac_link"
16301 case "(($ac_try" in
16302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303 *) ac_try_echo=$ac_try;;
16304 esac
16305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16306 (eval "$ac_link") 2>conftest.er1
16307 ac_status=$?
16308 grep -v '^ *+' conftest.er1 >conftest.err
16309 rm -f conftest.er1
16310 cat conftest.err >&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } &&
16313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; } &&
16323 { ac_try='test -s conftest$ac_exeext'
16324 { (case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16327 esac
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_try") 2>&5
16330 ac_status=$?
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 ac_cv_lib_tonezone_tone_zone_find=yes
16334 else
16335 echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16338 ac_cv_lib_tonezone_tone_zone_find=no
16341 rm -f conftest.err conftest.$ac_objext \
16342 conftest$ac_exeext conftest.$ac_ext
16343 LIBS=$ac_check_lib_save_LIBS
16345 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
16346 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
16347 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
16348 AST_ZAPTEL_FOUND=yes
16349 else
16350 AST_ZAPTEL_FOUND=no
16354 if test "${AST_ZAPTEL_FOUND}" = "yes"; then
16355 ZAPTEL_LIB="-ltonezone "
16356 ZAPTEL_HEADER_FOUND="1"
16357 if test "x${ZAPTEL_DIR}" != "x"; then
16358 ZAPTEL_LIB="${pbxlibdir} ${ZAPTEL_LIB}"
16359 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
16360 if test "xlinux/zaptel.h" != "x" ; then
16361 as_ac_Header=`echo "ac_cv_header_${ZAPTEL_DIR}/include/linux/zaptel.h" | $as_tr_sh`
16362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16363 { echo "$as_me:$LINENO: checking for ${ZAPTEL_DIR}/include/linux/zaptel.h" >&5
16364 echo $ECHO_N "checking for ${ZAPTEL_DIR}/include/linux/zaptel.h... $ECHO_C" >&6; }
16365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 ac_res=`eval echo '${'$as_ac_Header'}'`
16369 { echo "$as_me:$LINENO: result: $ac_res" >&5
16370 echo "${ECHO_T}$ac_res" >&6; }
16371 else
16372 # Is the header compilable?
16373 { echo "$as_me:$LINENO: checking ${ZAPTEL_DIR}/include/linux/zaptel.h usability" >&5
16374 echo $ECHO_N "checking ${ZAPTEL_DIR}/include/linux/zaptel.h usability... $ECHO_C" >&6; }
16375 cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h. */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 $ac_includes_default
16382 #include <${ZAPTEL_DIR}/include/linux/zaptel.h>
16383 _ACEOF
16384 rm -f conftest.$ac_objext
16385 if { (ac_try="$ac_compile"
16386 case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16389 esac
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_compile") 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16399 { (case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16402 esac
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_try") 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; } &&
16408 { ac_try='test -s conftest.$ac_objext'
16409 { (case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16412 esac
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_try") 2>&5
16415 ac_status=$?
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16418 ac_header_compiler=yes
16419 else
16420 echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16423 ac_header_compiler=no
16426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16428 echo "${ECHO_T}$ac_header_compiler" >&6; }
16430 # Is the header present?
16431 { echo "$as_me:$LINENO: checking ${ZAPTEL_DIR}/include/linux/zaptel.h presence" >&5
16432 echo $ECHO_N "checking ${ZAPTEL_DIR}/include/linux/zaptel.h presence... $ECHO_C" >&6; }
16433 cat >conftest.$ac_ext <<_ACEOF
16434 /* confdefs.h. */
16435 _ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 #include <${ZAPTEL_DIR}/include/linux/zaptel.h>
16440 _ACEOF
16441 if { (ac_try="$ac_cpp conftest.$ac_ext"
16442 case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16448 ac_status=$?
16449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } >/dev/null; then
16454 if test -s conftest.err; then
16455 ac_cpp_err=$ac_c_preproc_warn_flag
16456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16457 else
16458 ac_cpp_err=
16460 else
16461 ac_cpp_err=yes
16463 if test -z "$ac_cpp_err"; then
16464 ac_header_preproc=yes
16465 else
16466 echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16469 ac_header_preproc=no
16472 rm -f conftest.err conftest.$ac_ext
16473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16474 echo "${ECHO_T}$ac_header_preproc" >&6; }
16476 # So? What about this header?
16477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16478 yes:no: )
16479 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16480 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: proceeding with the compiler's result" >&5
16482 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: proceeding with the compiler's result" >&2;}
16483 ac_header_preproc=yes
16485 no:yes:* )
16486 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: present but cannot be compiled" >&5
16487 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: present but cannot be compiled" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: check for missing prerequisite headers?" >&5
16489 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: check for missing prerequisite headers?" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: see the Autoconf documentation" >&5
16491 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: see the Autoconf documentation" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
16493 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: proceeding with the preprocessor's result" >&5
16495 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: proceeding with the preprocessor's result" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: in the future, the compiler will take precedence" >&5
16497 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/linux/zaptel.h: in the future, the compiler will take precedence" >&2;}
16500 esac
16501 { echo "$as_me:$LINENO: checking for ${ZAPTEL_DIR}/include/linux/zaptel.h" >&5
16502 echo $ECHO_N "checking for ${ZAPTEL_DIR}/include/linux/zaptel.h... $ECHO_C" >&6; }
16503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16504 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 else
16506 eval "$as_ac_Header=\$ac_header_preproc"
16508 ac_res=`eval echo '${'$as_ac_Header'}'`
16509 { echo "$as_me:$LINENO: result: $ac_res" >&5
16510 echo "${ECHO_T}$ac_res" >&6; }
16513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16514 ZAPTEL_HEADER_FOUND=1
16515 else
16516 ZAPTEL_HEADER_FOUND=0
16521 else
16522 if test "xlinux/zaptel.h" != "x" ; then
16523 if test "${ac_cv_header_linux_zaptel_h+set}" = set; then
16524 { echo "$as_me:$LINENO: checking for linux/zaptel.h" >&5
16525 echo $ECHO_N "checking for linux/zaptel.h... $ECHO_C" >&6; }
16526 if test "${ac_cv_header_linux_zaptel_h+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_zaptel_h" >&5
16530 echo "${ECHO_T}$ac_cv_header_linux_zaptel_h" >&6; }
16531 else
16532 # Is the header compilable?
16533 { echo "$as_me:$LINENO: checking linux/zaptel.h usability" >&5
16534 echo $ECHO_N "checking linux/zaptel.h usability... $ECHO_C" >&6; }
16535 cat >conftest.$ac_ext <<_ACEOF
16536 /* confdefs.h. */
16537 _ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16541 $ac_includes_default
16542 #include <linux/zaptel.h>
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (ac_try="$ac_compile"
16546 case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_compile") 2>conftest.er1
16552 ac_status=$?
16553 grep -v '^ *+' conftest.er1 >conftest.err
16554 rm -f conftest.er1
16555 cat conftest.err >&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } &&
16558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16559 { (case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16562 esac
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_try") 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; } &&
16568 { ac_try='test -s conftest.$ac_objext'
16569 { (case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16572 esac
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_try") 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_header_compiler=yes
16579 else
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 ac_header_compiler=no
16586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16588 echo "${ECHO_T}$ac_header_compiler" >&6; }
16590 # Is the header present?
16591 { echo "$as_me:$LINENO: checking linux/zaptel.h presence" >&5
16592 echo $ECHO_N "checking linux/zaptel.h presence... $ECHO_C" >&6; }
16593 cat >conftest.$ac_ext <<_ACEOF
16594 /* confdefs.h. */
16595 _ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h. */
16599 #include <linux/zaptel.h>
16600 _ACEOF
16601 if { (ac_try="$ac_cpp conftest.$ac_ext"
16602 case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16605 esac
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16608 ac_status=$?
16609 grep -v '^ *+' conftest.er1 >conftest.err
16610 rm -f conftest.er1
16611 cat conftest.err >&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } >/dev/null; then
16614 if test -s conftest.err; then
16615 ac_cpp_err=$ac_c_preproc_warn_flag
16616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16617 else
16618 ac_cpp_err=
16620 else
16621 ac_cpp_err=yes
16623 if test -z "$ac_cpp_err"; then
16624 ac_header_preproc=yes
16625 else
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_header_preproc=no
16632 rm -f conftest.err conftest.$ac_ext
16633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16634 echo "${ECHO_T}$ac_header_preproc" >&6; }
16636 # So? What about this header?
16637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16638 yes:no: )
16639 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16640 echo "$as_me: WARNING: linux/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: proceeding with the compiler's result" >&5
16642 echo "$as_me: WARNING: linux/zaptel.h: proceeding with the compiler's result" >&2;}
16643 ac_header_preproc=yes
16645 no:yes:* )
16646 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: present but cannot be compiled" >&5
16647 echo "$as_me: WARNING: linux/zaptel.h: present but cannot be compiled" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: check for missing prerequisite headers?" >&5
16649 echo "$as_me: WARNING: linux/zaptel.h: check for missing prerequisite headers?" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: see the Autoconf documentation" >&5
16651 echo "$as_me: WARNING: linux/zaptel.h: see the Autoconf documentation" >&2;}
16652 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
16653 echo "$as_me: WARNING: linux/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16654 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: proceeding with the preprocessor's result" >&5
16655 echo "$as_me: WARNING: linux/zaptel.h: proceeding with the preprocessor's result" >&2;}
16656 { echo "$as_me:$LINENO: WARNING: linux/zaptel.h: in the future, the compiler will take precedence" >&5
16657 echo "$as_me: WARNING: linux/zaptel.h: in the future, the compiler will take precedence" >&2;}
16660 esac
16661 { echo "$as_me:$LINENO: checking for linux/zaptel.h" >&5
16662 echo $ECHO_N "checking for linux/zaptel.h... $ECHO_C" >&6; }
16663 if test "${ac_cv_header_linux_zaptel_h+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 else
16666 ac_cv_header_linux_zaptel_h=$ac_header_preproc
16668 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_zaptel_h" >&5
16669 echo "${ECHO_T}$ac_cv_header_linux_zaptel_h" >&6; }
16672 if test $ac_cv_header_linux_zaptel_h = yes; then
16673 ZAPTEL_HEADER_FOUND=1
16674 else
16675 ZAPTEL_HEADER_FOUND=0
16681 if test "x${ZAPTEL_HEADER_FOUND}" = "x0" ; then
16682 if test ! -z "${ZAPTEL_MANDATORY}" ;
16683 then
16684 echo " ***"
16685 echo " *** It appears that you do not have the tonezone development package installed."
16686 echo " *** Please install it to include Zaptel support, or re-run configure"
16687 echo " *** without explicitly specifying --with-tonezone"
16688 exit 1
16690 ZAPTEL_LIB=""
16691 ZAPTEL_INCLUDE=""
16692 PBX_LIBZAPTEL=0
16693 else
16694 PBX_LIBZAPTEL=1
16696 cat >>confdefs.h <<_ACEOF
16697 #define HAVE_ZAPTEL 1
16698 _ACEOF
16701 elif test ! -z "${ZAPTEL_MANDATORY}";
16702 then
16703 echo "***"
16704 echo "*** The Zaptel installation on this system appears to be broken."
16705 echo "*** Either correct the installation, or run configure"
16706 echo "*** without explicity specifying --with-tonezone"
16707 exit 1
16714 else
16717 # Check whether --with-tonezone was given.
16718 if test "${with_tonezone+set}" = set; then
16719 withval=$with_tonezone;
16720 case ${withval} in
16721 n|no)
16722 USE_ZAPTEL=no
16724 y|ye|yes)
16725 ZAPTEL_MANDATORY="yes"
16728 ZAPTEL_DIR="${withval}"
16729 ZAPTEL_MANDATORY="yes"
16731 esac
16736 PBX_LIBZAPTEL=0
16738 if test "${USE_ZAPTEL}" != "no"; then
16739 pbxlibdir=""
16740 if test "x${ZAPTEL_DIR}" != "x"; then
16741 pbxlibdir="-L${tonezone_DIR}/lib"
16743 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
16744 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
16745 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16747 else
16748 ac_check_lib_save_LIBS=$LIBS
16749 LIBS="-ltonezone ${pbxlibdir} -lm $LIBS"
16750 cat >conftest.$ac_ext <<_ACEOF
16751 /* confdefs.h. */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16757 /* Override any GCC internal prototype to avoid an error.
16758 Use char because int might match the return type of a GCC
16759 builtin and then its argument prototype would still apply. */
16760 #ifdef __cplusplus
16761 extern "C"
16762 #endif
16763 char tone_zone_find ();
16765 main ()
16767 return tone_zone_find ();
16769 return 0;
16771 _ACEOF
16772 rm -f conftest.$ac_objext conftest$ac_exeext
16773 if { (ac_try="$ac_link"
16774 case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16777 esac
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_link") 2>conftest.er1
16780 ac_status=$?
16781 grep -v '^ *+' conftest.er1 >conftest.err
16782 rm -f conftest.er1
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } &&
16786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16787 { (case "(($ac_try" in
16788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789 *) ac_try_echo=$ac_try;;
16790 esac
16791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16792 (eval "$ac_try") 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; } &&
16796 { ac_try='test -s conftest$ac_exeext'
16797 { (case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800 esac
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_try") 2>&5
16803 ac_status=$?
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; }; then
16806 ac_cv_lib_tonezone_tone_zone_find=yes
16807 else
16808 echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16811 ac_cv_lib_tonezone_tone_zone_find=no
16814 rm -f conftest.err conftest.$ac_objext \
16815 conftest$ac_exeext conftest.$ac_ext
16816 LIBS=$ac_check_lib_save_LIBS
16818 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
16819 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
16820 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
16821 AST_ZAPTEL_FOUND=yes
16822 else
16823 AST_ZAPTEL_FOUND=no
16827 if test "${AST_ZAPTEL_FOUND}" = "yes"; then
16828 ZAPTEL_LIB="-ltonezone -lm"
16829 ZAPTEL_HEADER_FOUND="1"
16830 if test "x${ZAPTEL_DIR}" != "x"; then
16831 ZAPTEL_LIB="${pbxlibdir} ${ZAPTEL_LIB}"
16832 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
16833 if test "xzaptel.h" != "x" ; then
16834 as_ac_Header=`echo "ac_cv_header_${ZAPTEL_DIR}/include/zaptel.h" | $as_tr_sh`
16835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16836 { echo "$as_me:$LINENO: checking for ${ZAPTEL_DIR}/include/zaptel.h" >&5
16837 echo $ECHO_N "checking for ${ZAPTEL_DIR}/include/zaptel.h... $ECHO_C" >&6; }
16838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16841 ac_res=`eval echo '${'$as_ac_Header'}'`
16842 { echo "$as_me:$LINENO: result: $ac_res" >&5
16843 echo "${ECHO_T}$ac_res" >&6; }
16844 else
16845 # Is the header compilable?
16846 { echo "$as_me:$LINENO: checking ${ZAPTEL_DIR}/include/zaptel.h usability" >&5
16847 echo $ECHO_N "checking ${ZAPTEL_DIR}/include/zaptel.h usability... $ECHO_C" >&6; }
16848 cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h. */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 $ac_includes_default
16855 #include <${ZAPTEL_DIR}/include/zaptel.h>
16856 _ACEOF
16857 rm -f conftest.$ac_objext
16858 if { (ac_try="$ac_compile"
16859 case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862 esac
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_compile") 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16872 { (case "(($ac_try" in
16873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874 *) ac_try_echo=$ac_try;;
16875 esac
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877 (eval "$ac_try") 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; } &&
16881 { ac_try='test -s conftest.$ac_objext'
16882 { (case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_try") 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 ac_header_compiler=yes
16892 else
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16896 ac_header_compiler=no
16899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16901 echo "${ECHO_T}$ac_header_compiler" >&6; }
16903 # Is the header present?
16904 { echo "$as_me:$LINENO: checking ${ZAPTEL_DIR}/include/zaptel.h presence" >&5
16905 echo $ECHO_N "checking ${ZAPTEL_DIR}/include/zaptel.h presence... $ECHO_C" >&6; }
16906 cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h. */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 #include <${ZAPTEL_DIR}/include/zaptel.h>
16913 _ACEOF
16914 if { (ac_try="$ac_cpp conftest.$ac_ext"
16915 case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16921 ac_status=$?
16922 grep -v '^ *+' conftest.er1 >conftest.err
16923 rm -f conftest.er1
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } >/dev/null; then
16927 if test -s conftest.err; then
16928 ac_cpp_err=$ac_c_preproc_warn_flag
16929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16930 else
16931 ac_cpp_err=
16933 else
16934 ac_cpp_err=yes
16936 if test -z "$ac_cpp_err"; then
16937 ac_header_preproc=yes
16938 else
16939 echo "$as_me: failed program was:" >&5
16940 sed 's/^/| /' conftest.$ac_ext >&5
16942 ac_header_preproc=no
16945 rm -f conftest.err conftest.$ac_ext
16946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16947 echo "${ECHO_T}$ac_header_preproc" >&6; }
16949 # So? What about this header?
16950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16951 yes:no: )
16952 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16953 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: proceeding with the compiler's result" >&5
16955 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: proceeding with the compiler's result" >&2;}
16956 ac_header_preproc=yes
16958 no:yes:* )
16959 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: present but cannot be compiled" >&5
16960 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: present but cannot be compiled" >&2;}
16961 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: check for missing prerequisite headers?" >&5
16962 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: check for missing prerequisite headers?" >&2;}
16963 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: see the Autoconf documentation" >&5
16964 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: see the Autoconf documentation" >&2;}
16965 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
16966 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16967 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: proceeding with the preprocessor's result" >&5
16968 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: proceeding with the preprocessor's result" >&2;}
16969 { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: in the future, the compiler will take precedence" >&5
16970 echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: in the future, the compiler will take precedence" >&2;}
16973 esac
16974 { echo "$as_me:$LINENO: checking for ${ZAPTEL_DIR}/include/zaptel.h" >&5
16975 echo $ECHO_N "checking for ${ZAPTEL_DIR}/include/zaptel.h... $ECHO_C" >&6; }
16976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16977 echo $ECHO_N "(cached) $ECHO_C" >&6
16978 else
16979 eval "$as_ac_Header=\$ac_header_preproc"
16981 ac_res=`eval echo '${'$as_ac_Header'}'`
16982 { echo "$as_me:$LINENO: result: $ac_res" >&5
16983 echo "${ECHO_T}$ac_res" >&6; }
16986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16987 ZAPTEL_HEADER_FOUND=1
16988 else
16989 ZAPTEL_HEADER_FOUND=0
16994 else
16995 if test "xzaptel.h" != "x" ; then
16996 if test "${ac_cv_header_zaptel_h+set}" = set; then
16997 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
16998 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
16999 if test "${ac_cv_header_zaptel_h+set}" = set; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
17003 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
17004 else
17005 # Is the header compilable?
17006 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
17007 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
17008 cat >conftest.$ac_ext <<_ACEOF
17009 /* confdefs.h. */
17010 _ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 $ac_includes_default
17015 #include <zaptel.h>
17016 _ACEOF
17017 rm -f conftest.$ac_objext
17018 if { (ac_try="$ac_compile"
17019 case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17022 esac
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_compile") 2>conftest.er1
17025 ac_status=$?
17026 grep -v '^ *+' conftest.er1 >conftest.err
17027 rm -f conftest.er1
17028 cat conftest.err >&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } &&
17031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17032 { (case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17035 esac
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_try") 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try='test -s conftest.$ac_objext'
17042 { (case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045 esac
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_try") 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 ac_header_compiler=yes
17052 else
17053 echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.$ac_ext >&5
17056 ac_header_compiler=no
17059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17061 echo "${ECHO_T}$ac_header_compiler" >&6; }
17063 # Is the header present?
17064 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
17065 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
17066 cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h. */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072 #include <zaptel.h>
17073 _ACEOF
17074 if { (ac_try="$ac_cpp conftest.$ac_ext"
17075 case "(($ac_try" in
17076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17077 *) ac_try_echo=$ac_try;;
17078 esac
17079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17081 ac_status=$?
17082 grep -v '^ *+' conftest.er1 >conftest.err
17083 rm -f conftest.er1
17084 cat conftest.err >&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); } >/dev/null; then
17087 if test -s conftest.err; then
17088 ac_cpp_err=$ac_c_preproc_warn_flag
17089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17090 else
17091 ac_cpp_err=
17093 else
17094 ac_cpp_err=yes
17096 if test -z "$ac_cpp_err"; then
17097 ac_header_preproc=yes
17098 else
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17102 ac_header_preproc=no
17105 rm -f conftest.err conftest.$ac_ext
17106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17107 echo "${ECHO_T}$ac_header_preproc" >&6; }
17109 # So? What about this header?
17110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17111 yes:no: )
17112 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
17113 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17114 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
17115 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
17116 ac_header_preproc=yes
17118 no:yes:* )
17119 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
17120 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
17121 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
17122 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
17123 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
17124 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
17125 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
17126 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
17127 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
17128 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
17129 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
17130 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
17133 esac
17134 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
17135 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
17136 if test "${ac_cv_header_zaptel_h+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 else
17139 ac_cv_header_zaptel_h=$ac_header_preproc
17141 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
17142 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
17145 if test $ac_cv_header_zaptel_h = yes; then
17146 ZAPTEL_HEADER_FOUND=1
17147 else
17148 ZAPTEL_HEADER_FOUND=0
17154 if test "x${ZAPTEL_HEADER_FOUND}" = "x0" ; then
17155 if test ! -z "${ZAPTEL_MANDATORY}" ;
17156 then
17157 echo " ***"
17158 echo " *** It appears that you do not have the tonezone development package installed."
17159 echo " *** Please install it to include Zaptel support, or re-run configure"
17160 echo " *** without explicitly specifying --with-tonezone"
17161 exit 1
17163 ZAPTEL_LIB=""
17164 ZAPTEL_INCLUDE=""
17165 PBX_LIBZAPTEL=0
17166 else
17167 PBX_LIBZAPTEL=1
17169 cat >>confdefs.h <<_ACEOF
17170 #define HAVE_ZAPTEL 1
17171 _ACEOF
17174 elif test ! -z "${ZAPTEL_MANDATORY}";
17175 then
17176 echo "***"
17177 echo "*** The Zaptel installation on this system appears to be broken."
17178 echo "*** Either correct the installation, or run configure"
17179 echo "*** without explicity specifying --with-tonezone"
17180 exit 1
17189 GSM_INTERNAL="yes"
17190 GSM_SYSTEM="yes"
17192 # Check whether --with-gsm was given.
17193 if test "${with_gsm+set}" = set; then
17194 withval=$with_gsm;
17195 case ${withval} in
17196 n|no)
17197 USE_GSM=no
17199 y|ye|yes)
17201 internal)
17202 GSM_SYSTEM="no"
17205 GSM_DIR="${withval}"
17206 GSM_INTERNAL="no"
17208 esac
17213 PBX_LIBgsm=0
17215 if test "${USE_GSM}" != "no"; then
17216 if test "${GSM_SYSTEM}" = "yes"; then
17217 gsmlibdir=""
17218 if test "x${GSM_DIR}" != "x"; then
17219 gsmlibdir="-L${GSM_DIR}/lib"
17221 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17222 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17223 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226 ac_check_lib_save_LIBS=$LIBS
17227 LIBS="-lgsm ${gsmlibdir} $LIBS"
17228 cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h. */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17235 /* Override any GCC internal prototype to avoid an error.
17236 Use char because int might match the return type of a GCC
17237 builtin and then its argument prototype would still apply. */
17238 #ifdef __cplusplus
17239 extern "C"
17240 #endif
17241 char gsm_create ();
17243 main ()
17245 return gsm_create ();
17247 return 0;
17249 _ACEOF
17250 rm -f conftest.$ac_objext conftest$ac_exeext
17251 if { (ac_try="$ac_link"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_link") 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17265 { (case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_try") 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; } &&
17274 { ac_try='test -s conftest$ac_exeext'
17275 { (case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17278 esac
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_try") 2>&5
17281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; }; then
17284 ac_cv_lib_gsm_gsm_create=yes
17285 else
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17289 ac_cv_lib_gsm_gsm_create=no
17292 rm -f conftest.err conftest.$ac_objext \
17293 conftest$ac_exeext conftest.$ac_ext
17294 LIBS=$ac_check_lib_save_LIBS
17296 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17297 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17298 if test $ac_cv_lib_gsm_gsm_create = yes; then
17300 cat >>confdefs.h <<_ACEOF
17301 #define HAVE_GSM 1
17302 _ACEOF
17306 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17307 gsm_LIB="-lgsm"
17308 if test "x${GSM_DIR}" != "x"; then
17309 gsm_LIB="${gsmlibdir} ${gsm_LIB}"
17310 gsm_INCLUDE="-I${GSM_DIR}/include"
17312 PBX_LIBgsm=1
17313 GSM_INTERNAL="no"
17316 if test "${GSM_INTERNAL}" = "yes"; then
17317 gsm_LIB="internal"
17318 PBX_LIBgsm=1
17320 if test "x${PBX_LIBgsm}" = "x0"; then
17321 echo "***"
17322 echo "*** The GSM installation on this system appears to be broken."
17323 echo "*** Either correct the installation, or run configure"
17324 echo "*** including --without-gsm"
17325 exit 1
17334 # Check whether --with-pq was given.
17335 if test "${with_pq+set}" = set; then
17336 withval=$with_pq;
17337 case ${withval} in
17338 n|no)
17339 USE_PQ=no
17341 y|ye|yes)
17342 PQ_MANDATORY="yes"
17345 PQ_DIR="${withval}"
17346 PQ_MANDATORY="yes"
17348 esac
17353 PBX_LIBpq=0
17354 PG_CONFIG=No
17355 if test "${USE_PQ}" != "no"; then
17356 if test "x${PQ_DIR}" != "x"; then
17357 if test -n "$ac_tool_prefix"; then
17358 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
17359 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
17360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17362 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 else
17365 case $PG_CONFIG in
17366 [\\/]* | ?:[\\/]*)
17367 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
17370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17371 for as_dir in ${PQ_DIR}/bin
17373 IFS=$as_save_IFS
17374 test -z "$as_dir" && as_dir=.
17375 for ac_exec_ext in '' $ac_executable_extensions; do
17376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17377 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17379 break 2
17381 done
17382 done
17383 IFS=$as_save_IFS
17386 esac
17388 PG_CONFIG=$ac_cv_path_PG_CONFIG
17389 if test -n "$PG_CONFIG"; then
17390 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
17391 echo "${ECHO_T}$PG_CONFIG" >&6; }
17392 else
17393 { echo "$as_me:$LINENO: result: no" >&5
17394 echo "${ECHO_T}no" >&6; }
17399 if test -z "$ac_cv_path_PG_CONFIG"; then
17400 ac_pt_PG_CONFIG=$PG_CONFIG
17401 # Extract the first word of "pg_config", so it can be a program name with args.
17402 set dummy pg_config; ac_word=$2
17403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17405 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17407 else
17408 case $ac_pt_PG_CONFIG in
17409 [\\/]* | ?:[\\/]*)
17410 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
17413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17414 for as_dir in ${PQ_DIR}/bin
17416 IFS=$as_save_IFS
17417 test -z "$as_dir" && as_dir=.
17418 for ac_exec_ext in '' $ac_executable_extensions; do
17419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17420 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17422 break 2
17424 done
17425 done
17426 IFS=$as_save_IFS
17429 esac
17431 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
17432 if test -n "$ac_pt_PG_CONFIG"; then
17433 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
17434 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
17435 else
17436 { echo "$as_me:$LINENO: result: no" >&5
17437 echo "${ECHO_T}no" >&6; }
17440 if test "x$ac_pt_PG_CONFIG" = x; then
17441 PG_CONFIG="No"
17442 else
17443 case $cross_compiling:$ac_tool_warned in
17444 yes:)
17445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17446 whose name does not start with the host triplet. If you think this
17447 configuration is useful to you, please write to autoconf@gnu.org." >&5
17448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17449 whose name does not start with the host triplet. If you think this
17450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17451 ac_tool_warned=yes ;;
17452 esac
17453 PG_CONFIG=$ac_pt_PG_CONFIG
17455 else
17456 PG_CONFIG="$ac_cv_path_PG_CONFIG"
17459 if test x"${PG_CONFIG}" = xNo; then
17460 echo "***"
17461 echo "*** pg_config was not found in the path you specified:"
17462 echo "*** ${PQ_DIR}/bin"
17463 echo "*** Either correct the installation, or run configure"
17464 echo "*** including --without-pq"
17465 exit 1
17467 else
17468 if test -n "$ac_tool_prefix"; then
17469 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
17470 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
17471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17473 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476 case $PG_CONFIG in
17477 [\\/]* | ?:[\\/]*)
17478 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
17481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17482 for as_dir in $PATH
17484 IFS=$as_save_IFS
17485 test -z "$as_dir" && as_dir=.
17486 for ac_exec_ext in '' $ac_executable_extensions; do
17487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17488 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17490 break 2
17492 done
17493 done
17494 IFS=$as_save_IFS
17497 esac
17499 PG_CONFIG=$ac_cv_path_PG_CONFIG
17500 if test -n "$PG_CONFIG"; then
17501 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
17502 echo "${ECHO_T}$PG_CONFIG" >&6; }
17503 else
17504 { echo "$as_me:$LINENO: result: no" >&5
17505 echo "${ECHO_T}no" >&6; }
17510 if test -z "$ac_cv_path_PG_CONFIG"; then
17511 ac_pt_PG_CONFIG=$PG_CONFIG
17512 # Extract the first word of "pg_config", so it can be a program name with args.
17513 set dummy pg_config; ac_word=$2
17514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17516 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17518 else
17519 case $ac_pt_PG_CONFIG in
17520 [\\/]* | ?:[\\/]*)
17521 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
17524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17525 for as_dir in $PATH
17527 IFS=$as_save_IFS
17528 test -z "$as_dir" && as_dir=.
17529 for ac_exec_ext in '' $ac_executable_extensions; do
17530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17531 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17533 break 2
17535 done
17536 done
17537 IFS=$as_save_IFS
17540 esac
17542 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
17543 if test -n "$ac_pt_PG_CONFIG"; then
17544 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
17545 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
17546 else
17547 { echo "$as_me:$LINENO: result: no" >&5
17548 echo "${ECHO_T}no" >&6; }
17551 if test "x$ac_pt_PG_CONFIG" = x; then
17552 PG_CONFIG="No"
17553 else
17554 case $cross_compiling:$ac_tool_warned in
17555 yes:)
17556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17557 whose name does not start with the host triplet. If you think this
17558 configuration is useful to you, please write to autoconf@gnu.org." >&5
17559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17560 whose name does not start with the host triplet. If you think this
17561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17562 ac_tool_warned=yes ;;
17563 esac
17564 PG_CONFIG=$ac_pt_PG_CONFIG
17566 else
17567 PG_CONFIG="$ac_cv_path_PG_CONFIG"
17573 if test x"${PG_CONFIG}" != xNo; then
17574 PQ_libdir=`pg_config --libdir`
17575 PQ_includedir=`pg_config --includedir`
17577 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
17578 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
17579 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582 ac_check_lib_save_LIBS=$LIBS
17583 LIBS="-lpq -L${PQ_libdir} -lz $LIBS"
17584 cat >conftest.$ac_ext <<_ACEOF
17585 /* confdefs.h. */
17586 _ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17591 /* Override any GCC internal prototype to avoid an error.
17592 Use char because int might match the return type of a GCC
17593 builtin and then its argument prototype would still apply. */
17594 #ifdef __cplusplus
17595 extern "C"
17596 #endif
17597 char PQexec ();
17599 main ()
17601 return PQexec ();
17603 return 0;
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17614 ac_status=$?
17615 grep -v '^ *+' conftest.er1 >conftest.err
17616 rm -f conftest.er1
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } &&
17620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17621 { (case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17624 esac
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_try") 2>&5
17627 ac_status=$?
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; } &&
17630 { ac_try='test -s conftest$ac_exeext'
17631 { (case "(($ac_try" in
17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17634 esac
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_try") 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; }; then
17640 ac_cv_lib_pq_PQexec=yes
17641 else
17642 echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17645 ac_cv_lib_pq_PQexec=no
17648 rm -f conftest.err conftest.$ac_objext \
17649 conftest$ac_exeext conftest.$ac_ext
17650 LIBS=$ac_check_lib_save_LIBS
17652 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
17653 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
17654 if test $ac_cv_lib_pq_PQexec = yes; then
17656 cat >>confdefs.h <<_ACEOF
17657 #define HAVE_PQ 1
17658 _ACEOF
17663 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
17664 pq_LIB="-L${PQ_libdir} -lpq -lz"
17665 pq_INCLUDE="-I${PQ_includedir}"
17666 PBX_LIBpq=1
17667 elif test ! -z "${PQ_MANDATORY}";
17668 then
17669 echo "***"
17670 echo "*** The PostgreSQL installation on this system appears to be broken."
17671 echo "*** Either correct the installation, or run configure"
17672 echo "*** including --without-pq"
17673 exit 1
17680 if test "${ac_cv_header_h323_h+set}" = set; then
17681 { echo "$as_me:$LINENO: checking for h323.h" >&5
17682 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
17683 if test "${ac_cv_header_h323_h+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
17687 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
17688 else
17689 # Is the header compilable?
17690 { echo "$as_me:$LINENO: checking h323.h usability" >&5
17691 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
17692 cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h. */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17698 $ac_includes_default
17699 #include <h323.h>
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_compile") 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest.$ac_objext'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 ac_header_compiler=yes
17736 else
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 ac_header_compiler=no
17743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17745 echo "${ECHO_T}$ac_header_compiler" >&6; }
17747 # Is the header present?
17748 { echo "$as_me:$LINENO: checking h323.h presence" >&5
17749 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
17750 cat >conftest.$ac_ext <<_ACEOF
17751 /* confdefs.h. */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 #include <h323.h>
17757 _ACEOF
17758 if { (ac_try="$ac_cpp conftest.$ac_ext"
17759 case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17762 esac
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17765 ac_status=$?
17766 grep -v '^ *+' conftest.er1 >conftest.err
17767 rm -f conftest.er1
17768 cat conftest.err >&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } >/dev/null; then
17771 if test -s conftest.err; then
17772 ac_cpp_err=$ac_c_preproc_warn_flag
17773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17774 else
17775 ac_cpp_err=
17777 else
17778 ac_cpp_err=yes
17780 if test -z "$ac_cpp_err"; then
17781 ac_header_preproc=yes
17782 else
17783 echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17786 ac_header_preproc=no
17789 rm -f conftest.err conftest.$ac_ext
17790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17791 echo "${ECHO_T}$ac_header_preproc" >&6; }
17793 # So? What about this header?
17794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17795 yes:no: )
17796 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
17797 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17798 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
17799 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
17800 ac_header_preproc=yes
17802 no:yes:* )
17803 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
17804 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
17805 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
17806 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
17807 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
17808 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
17809 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
17810 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
17811 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
17812 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
17813 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
17814 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
17817 esac
17818 { echo "$as_me:$LINENO: checking for h323.h" >&5
17819 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
17820 if test "${ac_cv_header_h323_h+set}" = set; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17822 else
17823 ac_cv_header_h323_h=$ac_header_preproc
17825 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
17826 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
17829 if test $ac_cv_header_h323_h = yes; then
17830 PBX_H323=1
17831 else
17832 PBX_H323=0
17838 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
17839 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
17840 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17842 else
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17850 #include <linux/version.h>
17851 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
17852 #include <linux/compiler.h>
17853 #endif
17856 #include <linux/ixjuser.h>
17857 _ACEOF
17858 rm -f conftest.$ac_objext
17859 if { (ac_try="$ac_compile"
17860 case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863 esac
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_compile") 2>conftest.er1
17866 ac_status=$?
17867 grep -v '^ *+' conftest.er1 >conftest.err
17868 rm -f conftest.er1
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } &&
17872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17873 { (case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17876 esac
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_try") 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest.$ac_objext'
17883 { (case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17886 esac
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_try") 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_cv_header_linux_ixjuser_h=yes
17893 else
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17897 ac_cv_header_linux_ixjuser_h=no
17900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17902 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
17903 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
17904 if test $ac_cv_header_linux_ixjuser_h = yes; then
17905 PBX_IXJUSER=1
17906 else
17907 PBX_IXJUSER=0
17913 ac_ext=cpp
17914 ac_cpp='$CXXCPP $CPPFLAGS'
17915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17921 # Check whether --with-vpb was given.
17922 if test "${with_vpb+set}" = set; then
17923 withval=$with_vpb;
17924 case ${withval} in
17925 n|no)
17926 USE_VPB=no
17927 VPB_MANDATORY="yes"
17929 y|ye|yes)
17932 VPB_DIR="${withval}"
17933 VPB_MANDATORY="yes"
17935 esac
17939 if test "${USE_VPB}" != "no"; then
17940 echo -n "checking for vpb_open in -lvpb... "
17941 saved_libs="${LIBS}"
17942 saved_cppflags="${CPPFLAGS}"
17943 if test "x${VPB_DIR}" != "x"; then
17944 LIBS="${LIBS} -L${VPB_DIR}/lib"
17945 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
17947 LIBS="${LIBS} -lvpb -lpthread"
17949 cat >conftest.$ac_ext <<_ACEOF
17951 /* confdefs.h. */
17952 _ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 #include <vpbapi.h>
17958 main ()
17960 int q = vpb_open(0,0);
17962 return 0;
17965 _ACEOF
17966 rm -f conftest.$ac_objext conftest$ac_exeext
17967 if { (ac_try="$ac_link"
17968 case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17971 esac
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_link") 2>conftest.er1
17974 ac_status=$?
17975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
17980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
17990 { ac_try='test -s conftest$ac_exeext'
17991 { (case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17994 esac
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_try") 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 { echo "$as_me:$LINENO: result: yes" >&5
18001 echo "${ECHO_T}yes" >&6; }
18002 ac_cv_lib_vpb_vpb_open="yes"
18004 else
18005 echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18008 { echo "$as_me:$LINENO: result: no" >&5
18009 echo "${ECHO_T}no" >&6; }
18010 ac_cv_lib_vpb_vpb_open="no"
18015 rm -f conftest.err conftest.$ac_objext \
18016 conftest$ac_exeext conftest.$ac_ext
18017 LIBS="${saved_libs}"
18018 CPPFLAGS="${saved_cppflags}"
18019 PBX_LIBvpb=0
18020 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
18021 VPB_LIB="-lvpb"
18022 if test "${VPB_DIR}" != ""; then
18023 VPB_LIB="-L${VPB_DIR}/lib ${VPB_LIB}"
18024 VPB_INCLUDE="-I${VPB_DIR}/include"
18028 PBX_LIBvpb=1
18030 cat >>confdefs.h <<\_ACEOF
18031 #define HAVE_LIBVPB 1
18032 _ACEOF
18034 elif test ! -z "${VPB_MANDATORY}";
18035 then
18036 echo "***"
18037 echo "*** The VoiceTronix (vpb) installation on this system appears to be broken."
18038 echo "*** Either correct the installation, or run configure"
18039 echo "*** including --without-vpb."
18040 exit 1
18046 # Check whether --with-qt was given.
18047 if test "${with_qt+set}" = set; then
18048 withval=$with_qt;
18049 case ${withval} in
18050 n|no)
18051 USE_QT=no
18052 QT_MANDATORY="yes"
18054 y|ye|yes)
18057 QT_DIR="${withval}"
18058 QT_MANDATORY="yes"
18060 esac
18065 PBX_QT=0
18066 if test "${USE_QT}" != "no"; then
18067 echo -n "checking for QDate in -lqt... "
18068 saved_libs="${LIBS}"
18069 saved_cppflags="${CPPFLAGS}"
18070 if test "x${QT_DIR}" != "x"; then
18071 LIBS="${LIBS} -L${QT_DIR}/lib"
18072 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
18074 LIBS="${LIBS} -lqt"
18075 qtlib="qt"
18076 cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h. */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18083 #include <qt3/qdatetime.h>
18085 main ()
18087 QDate date();
18089 return 0;
18092 _ACEOF
18093 rm -f conftest.$ac_objext conftest$ac_exeext
18094 if { (ac_try="$ac_link"
18095 case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18098 esac
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100 (eval "$ac_link") 2>conftest.er1
18101 ac_status=$?
18102 grep -v '^ *+' conftest.er1 >conftest.err
18103 rm -f conftest.er1
18104 cat conftest.err >&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } &&
18107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18108 { (case "(($ac_try" in
18109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110 *) ac_try_echo=$ac_try;;
18111 esac
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_try") 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; } &&
18117 { ac_try='test -s conftest$ac_exeext'
18118 { (case "(($ac_try" in
18119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120 *) ac_try_echo=$ac_try;;
18121 esac
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123 (eval "$ac_try") 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 ac_cv_lib_qt_qt_date="yes"
18128 else
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18132 ac_cv_lib_qt_qt_date="no"
18135 rm -f conftest.err conftest.$ac_objext \
18136 conftest$ac_exeext conftest.$ac_ext
18137 LIBS="${saved_libs}"
18138 CPPFLAGS="${saved_cppflags}"
18140 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
18141 saved_libs="${LIBS}"
18142 saved_cppflags="${CPPFLAGS}"
18143 if test "x${QT_DIR}" != "x"; then
18144 LIBS="${LIBS} -L${QT_DIR}/lib"
18145 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
18147 LIBS="${LIBS} -lqt-mt"
18148 qtlib="qt-mt"
18149 cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h. */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 #include <qt3/qdatetime.h>
18158 main ()
18160 QDate date();
18162 return 0;
18165 _ACEOF
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (ac_try="$ac_link"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18171 esac
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_link") 2>conftest.er1
18174 ac_status=$?
18175 grep -v '^ *+' conftest.er1 >conftest.err
18176 rm -f conftest.er1
18177 cat conftest.err >&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } &&
18180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18181 { (case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_try") 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try='test -s conftest$ac_exeext'
18191 { (case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18194 esac
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_try") 2>&5
18197 ac_status=$?
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; }; then
18200 ac_cv_lib_qt_qt_date="yes"
18201 else
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18205 ac_cv_lib_qt_qt_date="no"
18208 rm -f conftest.err conftest.$ac_objext \
18209 conftest$ac_exeext conftest.$ac_ext
18210 LIBS="${saved_libs}"
18211 CPPFLAGS="${saved_cppflags}"
18214 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
18215 { echo "$as_me:$LINENO: result: yes" >&5
18216 echo "${ECHO_T}yes" >&6; }
18217 else
18218 { echo "$as_me:$LINENO: result: no" >&5
18219 echo "${ECHO_T}no" >&6; }
18222 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
18223 QT_LIB="-l${qtlib}"
18224 if test "${QT_DIR}" != ""; then
18225 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
18226 QT_INCLUDE="-I${QT_DIR}/include"
18230 PBX_QT=1
18232 cat >>confdefs.h <<\_ACEOF
18233 #define HAVE_LIBQT 1
18234 _ACEOF
18236 if test -n "$ac_tool_prefix"; then
18237 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
18238 set dummy ${ac_tool_prefix}moc; ac_word=$2
18239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18241 if test "${ac_cv_path_QTMOC+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18243 else
18244 case $QTMOC in
18245 [\\/]* | ?:[\\/]*)
18246 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
18249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18250 for as_dir in $PATH
18252 IFS=$as_save_IFS
18253 test -z "$as_dir" && as_dir=.
18254 for ac_exec_ext in '' $ac_executable_extensions; do
18255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18256 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
18257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18258 break 2
18260 done
18261 done
18262 IFS=$as_save_IFS
18265 esac
18267 QTMOC=$ac_cv_path_QTMOC
18268 if test -n "$QTMOC"; then
18269 { echo "$as_me:$LINENO: result: $QTMOC" >&5
18270 echo "${ECHO_T}$QTMOC" >&6; }
18271 else
18272 { echo "$as_me:$LINENO: result: no" >&5
18273 echo "${ECHO_T}no" >&6; }
18278 if test -z "$ac_cv_path_QTMOC"; then
18279 ac_pt_QTMOC=$QTMOC
18280 # Extract the first word of "moc", so it can be a program name with args.
18281 set dummy moc; ac_word=$2
18282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18284 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286 else
18287 case $ac_pt_QTMOC in
18288 [\\/]* | ?:[\\/]*)
18289 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
18292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18293 for as_dir in $PATH
18295 IFS=$as_save_IFS
18296 test -z "$as_dir" && as_dir=.
18297 for ac_exec_ext in '' $ac_executable_extensions; do
18298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18299 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
18300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18301 break 2
18303 done
18304 done
18305 IFS=$as_save_IFS
18308 esac
18310 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
18311 if test -n "$ac_pt_QTMOC"; then
18312 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
18313 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
18314 else
18315 { echo "$as_me:$LINENO: result: no" >&5
18316 echo "${ECHO_T}no" >&6; }
18319 if test "x$ac_pt_QTMOC" = x; then
18320 QTMOC="No"
18321 else
18322 case $cross_compiling:$ac_tool_warned in
18323 yes:)
18324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18325 whose name does not start with the host triplet. If you think this
18326 configuration is useful to you, please write to autoconf@gnu.org." >&5
18327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18328 whose name does not start with the host triplet. If you think this
18329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18330 ac_tool_warned=yes ;;
18331 esac
18332 QTMOC=$ac_pt_QTMOC
18334 else
18335 QTMOC="$ac_cv_path_QTMOC"
18338 elif test ! -z "${QT_MANDATORY}";
18339 then
18340 echo "***"
18341 echo "*** The Qt installation on this system appears to be broken."
18342 echo "*** Either correct the installation, or run configure"
18343 echo "*** including --without-qt."
18344 exit 1
18350 # Check whether --with-kde was given.
18351 if test "${with_kde+set}" = set; then
18352 withval=$with_kde;
18353 case ${withval} in
18354 n|no)
18355 USE_KDE=no
18356 KDE_MANDATORY="yes"
18358 y|ye|yes)
18361 KDE_DIR="${withval}"
18362 KDE_MANDATORY="yes"
18364 esac
18369 PBX_KDE=0
18370 if test "${USE_KDE}" != "no"; then
18371 echo -n "checking for crashHandler in -lkdecore... "
18372 saved_ldflags="${LDFLAGS}"
18373 LDFLAGS="-I${KDE_DIR}/include ${LDFLAGS} -L${KDE_DIR}/lib -lkdecore"
18374 cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h. */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18381 #include "kcrash.h"
18383 main ()
18385 KCrash::defaultCrashHandler(1);
18387 return 0;
18390 _ACEOF
18391 rm -f conftest.$ac_objext conftest$ac_exeext
18392 if { (ac_try="$ac_link"
18393 case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18396 esac
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_link") 2>conftest.er1
18399 ac_status=$?
18400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
18405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18406 { (case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18409 esac
18410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_try") 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; } &&
18415 { ac_try='test -s conftest$ac_exeext'
18416 { (case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18419 esac
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_try") 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; }; then
18425 ac_cv_lib_kde_crash="yes"
18426 else
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18430 ac_cv_lib_kde_crash="no"
18433 rm -f conftest.err conftest.$ac_objext \
18434 conftest$ac_exeext conftest.$ac_ext
18436 LDFLAGS="${saved_ldflags}"
18438 if test "${ac_cv_lib_kde_crash}" = "yes"; then
18439 { echo "$as_me:$LINENO: result: yes" >&5
18440 echo "${ECHO_T}yes" >&6; }
18441 else
18442 { echo "$as_me:$LINENO: result: no" >&5
18443 echo "${ECHO_T}no" >&6; }
18446 if test "${ac_cv_lib_kde_crash}" = "yes"; then
18447 KDE_LIBS="-lkdecore -lkdeui"
18448 if test "${KDE_DIR}" != ""; then
18449 KDE_LIBS="-L${KDE_DIR}/lib ${KDE_LIBS}"
18450 KDE_INCLUDE="-I${KDE_DIR}/include"
18454 PBX_KDE=1
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_LIBKDE 1
18458 _ACEOF
18460 elif test ! -z "${KDE_MANDATORY}";
18461 then
18462 echo "***"
18463 echo "*** The KDE installation on this system appears to be broken."
18464 echo "*** Either correct the installation, or run configure"
18465 echo "*** including --without-kde."
18466 exit 1
18471 if test x"${PBX_KDE}" = x1; then
18472 if test -n "$ac_tool_prefix"; then
18473 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
18474 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
18475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18477 if test "${ac_cv_path_KDEINIT+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480 case $KDEINIT in
18481 [\\/]* | ?:[\\/]*)
18482 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
18485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18486 for as_dir in $PATH
18488 IFS=$as_save_IFS
18489 test -z "$as_dir" && as_dir=.
18490 for ac_exec_ext in '' $ac_executable_extensions; do
18491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18492 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
18493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18494 break 2
18496 done
18497 done
18498 IFS=$as_save_IFS
18501 esac
18503 KDEINIT=$ac_cv_path_KDEINIT
18504 if test -n "$KDEINIT"; then
18505 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
18506 echo "${ECHO_T}$KDEINIT" >&6; }
18507 else
18508 { echo "$as_me:$LINENO: result: no" >&5
18509 echo "${ECHO_T}no" >&6; }
18514 if test -z "$ac_cv_path_KDEINIT"; then
18515 ac_pt_KDEINIT=$KDEINIT
18516 # Extract the first word of "kdeinit", so it can be a program name with args.
18517 set dummy kdeinit; ac_word=$2
18518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18520 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523 case $ac_pt_KDEINIT in
18524 [\\/]* | ?:[\\/]*)
18525 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
18528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529 for as_dir in $PATH
18531 IFS=$as_save_IFS
18532 test -z "$as_dir" && as_dir=.
18533 for ac_exec_ext in '' $ac_executable_extensions; do
18534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18535 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
18536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18537 break 2
18539 done
18540 done
18541 IFS=$as_save_IFS
18544 esac
18546 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
18547 if test -n "$ac_pt_KDEINIT"; then
18548 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
18549 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
18550 else
18551 { echo "$as_me:$LINENO: result: no" >&5
18552 echo "${ECHO_T}no" >&6; }
18555 if test "x$ac_pt_KDEINIT" = x; then
18556 KDEINIT="No"
18557 else
18558 case $cross_compiling:$ac_tool_warned in
18559 yes:)
18560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18561 whose name does not start with the host triplet. If you think this
18562 configuration is useful to you, please write to autoconf@gnu.org." >&5
18563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18564 whose name does not start with the host triplet. If you think this
18565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18566 ac_tool_warned=yes ;;
18567 esac
18568 KDEINIT=$ac_pt_KDEINIT
18570 else
18571 KDEINIT="$ac_cv_path_KDEINIT"
18574 if test ! x"${KDEINIT}" = xNo; then
18575 KDEDIR=$(${DIRNAME} ${KDEINIT})
18576 KDEDIR=$(${DIRNAME} ${KDEDIR})
18581 ac_ext=c
18582 ac_cpp='$CPP $CPPFLAGS'
18583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18588 PBX_GTK=0
18589 if test -n "$ac_tool_prefix"; then
18590 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
18591 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
18592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18594 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18596 else
18597 if test -n "$GTKCONFIG"; then
18598 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
18599 else
18600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18601 for as_dir in $PATH
18603 IFS=$as_save_IFS
18604 test -z "$as_dir" && as_dir=.
18605 for ac_exec_ext in '' $ac_executable_extensions; do
18606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18607 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
18608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18609 break 2
18611 done
18612 done
18613 IFS=$as_save_IFS
18617 GTKCONFIG=$ac_cv_prog_GTKCONFIG
18618 if test -n "$GTKCONFIG"; then
18619 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
18620 echo "${ECHO_T}$GTKCONFIG" >&6; }
18621 else
18622 { echo "$as_me:$LINENO: result: no" >&5
18623 echo "${ECHO_T}no" >&6; }
18628 if test -z "$ac_cv_prog_GTKCONFIG"; then
18629 ac_ct_GTKCONFIG=$GTKCONFIG
18630 # Extract the first word of "gtk-config", so it can be a program name with args.
18631 set dummy gtk-config; ac_word=$2
18632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18634 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
18635 echo $ECHO_N "(cached) $ECHO_C" >&6
18636 else
18637 if test -n "$ac_ct_GTKCONFIG"; then
18638 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
18639 else
18640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18641 for as_dir in $PATH
18643 IFS=$as_save_IFS
18644 test -z "$as_dir" && as_dir=.
18645 for ac_exec_ext in '' $ac_executable_extensions; do
18646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18647 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
18648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18649 break 2
18651 done
18652 done
18653 IFS=$as_save_IFS
18657 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
18658 if test -n "$ac_ct_GTKCONFIG"; then
18659 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
18660 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
18661 else
18662 { echo "$as_me:$LINENO: result: no" >&5
18663 echo "${ECHO_T}no" >&6; }
18666 if test "x$ac_ct_GTKCONFIG" = x; then
18667 GTKCONFIG="No"
18668 else
18669 case $cross_compiling:$ac_tool_warned in
18670 yes:)
18671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18672 whose name does not start with the host triplet. If you think this
18673 configuration is useful to you, please write to autoconf@gnu.org." >&5
18674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18675 whose name does not start with the host triplet. If you think this
18676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18677 ac_tool_warned=yes ;;
18678 esac
18679 GTKCONFIG=$ac_ct_GTKCONFIG
18681 else
18682 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
18685 if test ! "x${GTKCONFIG}" = xNo; then
18686 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
18687 GTK_LIBS=$(${GTKCONFIG} --libs gthread)
18688 PBX_GTK=1
18690 cat >>confdefs.h <<\_ACEOF
18691 #define HAVE_GTK 1
18692 _ACEOF
18699 PLATFORM_PTLIB="ptlib_${OSTYPE}_${MACHTYPE}_r"
18702 # Check whether --with-pwlib was given.
18703 if test "${with_pwlib+set}" = set; then
18704 withval=$with_pwlib;
18705 case ${withval} in
18706 n|no)
18707 USE_PWLIB=no
18709 y|ye|yes)
18712 PWLIB_DIR="${withval}"
18714 esac
18718 if test "${USE_PWLIB}" != "no"; then
18719 echo -n "checking for existence of pwlib... "
18721 saved_ldflags="${LDFLAGS}"
18722 LDFLAGS="${LDFLAGS} -L${PWLIB_DIR} -l${PLATFORM_PTLIB}"
18724 cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h. */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18731 #include "${PWDIR_DIR}ptime.h"
18733 main ()
18735 int q = PTime::IsDaylightSaving();
18737 return 0;
18740 _ACEOF
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18746 esac
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_link") 2>conftest.er1
18749 ac_status=$?
18750 grep -v '^ *+' conftest.er1 >conftest.err
18751 rm -f conftest.er1
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18756 { (case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18759 esac
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_try") 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest$ac_exeext'
18766 { (case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18769 esac
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_try") 2>&5
18772 ac_status=$?
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; }; then
18775 { echo "$as_me:$LINENO: result: yes" >&5
18776 echo "${ECHO_T}yes" >&6; }
18777 ac_cv_lib_pwlib="yes"
18779 else
18780 echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 { echo "$as_me:$LINENO: result: no" >&5
18784 echo "${ECHO_T}no" >&6; }
18785 ac_cv_lib_pwlib="no"
18790 rm -f conftest.err conftest.$ac_objext \
18791 conftest$ac_exeext conftest.$ac_ext
18792 LDFLAGS="${saved_ldflags}"
18794 PBX_LIBPWLIB=0
18796 if test "${ac_cv_lib_pwlib}" = "yes"; then
18797 PWLIB_LIB="-l{PLATFORM_PWLIB}"
18798 if test "${PWLIB_DIR}" != ""; then
18799 PWLIB_LIB="-L${PWLIB_DIR}/lib ${PWLIB_LIB}"
18800 PWLIB_INCLUDE="-I${PWLIB_DIR}/include"
18804 PBX_LIBPWLIB=1
18806 cat >>confdefs.h <<\_ACEOF
18807 #define HAVE_LIBPWLIB 1
18808 _ACEOF
18810 elif test ! -z "${PWLIB_DIR}";
18811 then
18812 echo "***"
18813 echo "*** The PWLIB installation on this system appears to be broken."
18814 echo "*** Either correct the installation, or run configure"
18815 echo "*** including --without-pwlib"
18816 exit 1
18821 PBX_CURL=0
18822 if test -n "$ac_tool_prefix"; then
18823 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
18824 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
18825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18827 if test "${ac_cv_path_CURL+set}" = set; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 else
18830 case $CURL in
18831 [\\/]* | ?:[\\/]*)
18832 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
18835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18836 for as_dir in $PATH
18838 IFS=$as_save_IFS
18839 test -z "$as_dir" && as_dir=.
18840 for ac_exec_ext in '' $ac_executable_extensions; do
18841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18842 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
18843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18844 break 2
18846 done
18847 done
18848 IFS=$as_save_IFS
18851 esac
18853 CURL=$ac_cv_path_CURL
18854 if test -n "$CURL"; then
18855 { echo "$as_me:$LINENO: result: $CURL" >&5
18856 echo "${ECHO_T}$CURL" >&6; }
18857 else
18858 { echo "$as_me:$LINENO: result: no" >&5
18859 echo "${ECHO_T}no" >&6; }
18864 if test -z "$ac_cv_path_CURL"; then
18865 ac_pt_CURL=$CURL
18866 # Extract the first word of "curl-config", so it can be a program name with args.
18867 set dummy curl-config; ac_word=$2
18868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18870 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 else
18873 case $ac_pt_CURL in
18874 [\\/]* | ?:[\\/]*)
18875 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
18878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18879 for as_dir in $PATH
18881 IFS=$as_save_IFS
18882 test -z "$as_dir" && as_dir=.
18883 for ac_exec_ext in '' $ac_executable_extensions; do
18884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
18885 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
18886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18887 break 2
18889 done
18890 done
18891 IFS=$as_save_IFS
18894 esac
18896 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
18897 if test -n "$ac_pt_CURL"; then
18898 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
18899 echo "${ECHO_T}$ac_pt_CURL" >&6; }
18900 else
18901 { echo "$as_me:$LINENO: result: no" >&5
18902 echo "${ECHO_T}no" >&6; }
18905 if test "x$ac_pt_CURL" = x; then
18906 CURL="No"
18907 else
18908 case $cross_compiling:$ac_tool_warned in
18909 yes:)
18910 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18911 whose name does not start with the host triplet. If you think this
18912 configuration is useful to you, please write to autoconf@gnu.org." >&5
18913 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18914 whose name does not start with the host triplet. If you think this
18915 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18916 ac_tool_warned=yes ;;
18917 esac
18918 CURL=$ac_pt_CURL
18920 else
18921 CURL="$ac_cv_path_CURL"
18924 if test ! x"${CURL}" = xNo; then
18925 # check for version
18926 CURLLIBS=$(${CURL} --libs)
18927 PBX_CURL=1
18929 cat >>confdefs.h <<\_ACEOF
18930 #define HAVE_CURL 1
18931 _ACEOF
18937 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18938 # for constant arguments. Useless!
18939 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
18940 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
18941 if test "${ac_cv_working_alloca_h+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
18944 cat >conftest.$ac_ext <<_ACEOF
18945 /* confdefs.h. */
18946 _ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18950 #include <alloca.h>
18952 main ()
18954 char *p = (char *) alloca (2 * sizeof (int));
18956 return 0;
18958 _ACEOF
18959 rm -f conftest.$ac_objext conftest$ac_exeext
18960 if { (ac_try="$ac_link"
18961 case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18964 esac
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966 (eval "$ac_link") 2>conftest.er1
18967 ac_status=$?
18968 grep -v '^ *+' conftest.er1 >conftest.err
18969 rm -f conftest.er1
18970 cat conftest.err >&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } &&
18973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18974 { (case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18977 esac
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_try") 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; } &&
18983 { ac_try='test -s conftest$ac_exeext'
18984 { (case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_try") 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ac_cv_working_alloca_h=yes
18994 else
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 ac_cv_working_alloca_h=no
19001 rm -f conftest.err conftest.$ac_objext \
19002 conftest$ac_exeext conftest.$ac_ext
19004 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19005 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19006 if test $ac_cv_working_alloca_h = yes; then
19008 cat >>confdefs.h <<\_ACEOF
19009 #define HAVE_ALLOCA_H 1
19010 _ACEOF
19014 { echo "$as_me:$LINENO: checking for alloca" >&5
19015 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19016 if test "${ac_cv_func_alloca_works+set}" = set; then
19017 echo $ECHO_N "(cached) $ECHO_C" >&6
19018 else
19019 cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h. */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19025 #ifdef __GNUC__
19026 # define alloca __builtin_alloca
19027 #else
19028 # ifdef _MSC_VER
19029 # include <malloc.h>
19030 # define alloca _alloca
19031 # else
19032 # if HAVE_ALLOCA_H
19033 # include <alloca.h>
19034 # else
19035 # ifdef _AIX
19036 #pragma alloca
19037 # else
19038 # ifndef alloca /* predefined by HP cc +Olibcalls */
19039 char *alloca ();
19040 # endif
19041 # endif
19042 # endif
19043 # endif
19044 #endif
19047 main ()
19049 char *p = (char *) alloca (1);
19051 return 0;
19053 _ACEOF
19054 rm -f conftest.$ac_objext conftest$ac_exeext
19055 if { (ac_try="$ac_link"
19056 case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_link") 2>conftest.er1
19062 ac_status=$?
19063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -f conftest.er1
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19069 { (case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19072 esac
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_try") 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; } &&
19078 { ac_try='test -s conftest$ac_exeext'
19079 { (case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19082 esac
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_try") 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 ac_cv_func_alloca_works=yes
19089 else
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_cv_func_alloca_works=no
19096 rm -f conftest.err conftest.$ac_objext \
19097 conftest$ac_exeext conftest.$ac_ext
19099 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19100 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19102 if test $ac_cv_func_alloca_works = yes; then
19104 cat >>confdefs.h <<\_ACEOF
19105 #define HAVE_ALLOCA 1
19106 _ACEOF
19108 else
19109 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19110 # that cause trouble. Some versions do not even contain alloca or
19111 # contain a buggy version. If you still want to use their alloca,
19112 # use ar to extract alloca.o from them instead of compiling alloca.c.
19114 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19116 cat >>confdefs.h <<\_ACEOF
19117 #define C_ALLOCA 1
19118 _ACEOF
19121 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19122 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19123 if test "${ac_cv_os_cray+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 else
19126 cat >conftest.$ac_ext <<_ACEOF
19127 /* confdefs.h. */
19128 _ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19132 #if defined CRAY && ! defined CRAY2
19133 webecray
19134 #else
19135 wenotbecray
19136 #endif
19138 _ACEOF
19139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19140 $EGREP "webecray" >/dev/null 2>&1; then
19141 ac_cv_os_cray=yes
19142 else
19143 ac_cv_os_cray=no
19145 rm -f conftest*
19148 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19149 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19150 if test $ac_cv_os_cray = yes; then
19151 for ac_func in _getb67 GETB67 getb67; do
19152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
19157 else
19158 cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h. */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19166 #define $ac_func innocuous_$ac_func
19168 /* System header to define __stub macros and hopefully few prototypes,
19169 which can conflict with char $ac_func (); below.
19170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19171 <limits.h> exists even on freestanding compilers. */
19173 #ifdef __STDC__
19174 # include <limits.h>
19175 #else
19176 # include <assert.h>
19177 #endif
19179 #undef $ac_func
19181 /* Override any GCC internal prototype to avoid an error.
19182 Use char because int might match the return type of a GCC
19183 builtin and then its argument prototype would still apply. */
19184 #ifdef __cplusplus
19185 extern "C"
19186 #endif
19187 char $ac_func ();
19188 /* The GNU C library defines this for functions which it implements
19189 to always fail with ENOSYS. Some functions are actually named
19190 something starting with __ and the normal name is an alias. */
19191 #if defined __stub_$ac_func || defined __stub___$ac_func
19192 choke me
19193 #endif
19196 main ()
19198 return $ac_func ();
19200 return 0;
19202 _ACEOF
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19221 esac
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; } &&
19227 { ac_try='test -s conftest$ac_exeext'
19228 { (case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19231 esac
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_try") 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 eval "$as_ac_var=yes"
19238 else
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19242 eval "$as_ac_var=no"
19245 rm -f conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
19248 ac_res=`eval echo '${'$as_ac_var'}'`
19249 { echo "$as_me:$LINENO: result: $ac_res" >&5
19250 echo "${ECHO_T}$ac_res" >&6; }
19251 if test `eval echo '${'$as_ac_var'}'` = yes; then
19253 cat >>confdefs.h <<_ACEOF
19254 #define CRAY_STACKSEG_END $ac_func
19255 _ACEOF
19257 break
19260 done
19263 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19264 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19265 if test "${ac_cv_c_stack_direction+set}" = set; then
19266 echo $ECHO_N "(cached) $ECHO_C" >&6
19267 else
19268 if test "$cross_compiling" = yes; then
19269 ac_cv_c_stack_direction=0
19270 else
19271 cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h. */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 $ac_includes_default
19279 find_stack_direction ()
19281 static char *addr = 0;
19282 auto char dummy;
19283 if (addr == 0)
19285 addr = &dummy;
19286 return find_stack_direction ();
19288 else
19289 return (&dummy > addr) ? 1 : -1;
19293 main ()
19295 return find_stack_direction () < 0;
19297 _ACEOF
19298 rm -f conftest$ac_exeext
19299 if { (ac_try="$ac_link"
19300 case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19303 esac
19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_link") 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19309 { (case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19312 esac
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_try") 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 ac_cv_c_stack_direction=1
19319 else
19320 echo "$as_me: program exited with status $ac_status" >&5
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19324 ( exit $ac_status )
19325 ac_cv_c_stack_direction=-1
19327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19332 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19333 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19335 cat >>confdefs.h <<_ACEOF
19336 #define STACK_DIRECTION $ac_cv_c_stack_direction
19337 _ACEOF
19347 ac_header_dirent=no
19348 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19349 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19350 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19351 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354 else
19355 cat >conftest.$ac_ext <<_ACEOF
19356 /* confdefs.h. */
19357 _ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h. */
19361 #include <sys/types.h>
19362 #include <$ac_hdr>
19365 main ()
19367 if ((DIR *) 0)
19368 return 0;
19370 return 0;
19372 _ACEOF
19373 rm -f conftest.$ac_objext
19374 if { (ac_try="$ac_compile"
19375 case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19378 esac
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380 (eval "$ac_compile") 2>conftest.er1
19381 ac_status=$?
19382 grep -v '^ *+' conftest.er1 >conftest.err
19383 rm -f conftest.er1
19384 cat conftest.err >&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } &&
19387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19391 esac
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; } &&
19397 { ac_try='test -s conftest.$ac_objext'
19398 { (case "(($ac_try" in
19399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400 *) ac_try_echo=$ac_try;;
19401 esac
19402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403 (eval "$ac_try") 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; }; then
19407 eval "$as_ac_Header=yes"
19408 else
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 eval "$as_ac_Header=no"
19415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19417 ac_res=`eval echo '${'$as_ac_Header'}'`
19418 { echo "$as_me:$LINENO: result: $ac_res" >&5
19419 echo "${ECHO_T}$ac_res" >&6; }
19420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19421 cat >>confdefs.h <<_ACEOF
19422 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19423 _ACEOF
19425 ac_header_dirent=$ac_hdr; break
19428 done
19429 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19430 if test $ac_header_dirent = dirent.h; then
19431 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19432 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19433 if test "${ac_cv_search_opendir+set}" = set; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19435 else
19436 ac_func_search_save_LIBS=$LIBS
19437 cat >conftest.$ac_ext <<_ACEOF
19438 /* confdefs.h. */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19444 /* Override any GCC internal prototype to avoid an error.
19445 Use char because int might match the return type of a GCC
19446 builtin and then its argument prototype would still apply. */
19447 #ifdef __cplusplus
19448 extern "C"
19449 #endif
19450 char opendir ();
19452 main ()
19454 return opendir ();
19456 return 0;
19458 _ACEOF
19459 for ac_lib in '' dir; do
19460 if test -z "$ac_lib"; then
19461 ac_res="none required"
19462 else
19463 ac_res=-l$ac_lib
19464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19466 rm -f conftest.$ac_objext conftest$ac_exeext
19467 if { (ac_try="$ac_link"
19468 case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19471 esac
19472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473 (eval "$ac_link") 2>conftest.er1
19474 ac_status=$?
19475 grep -v '^ *+' conftest.er1 >conftest.err
19476 rm -f conftest.er1
19477 cat conftest.err >&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } &&
19480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19481 { (case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_try") 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest$ac_exeext'
19491 { (case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19494 esac
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_try") 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 ac_cv_search_opendir=$ac_res
19501 else
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19508 rm -f conftest.err conftest.$ac_objext \
19509 conftest$ac_exeext
19510 if test "${ac_cv_search_opendir+set}" = set; then
19511 break
19513 done
19514 if test "${ac_cv_search_opendir+set}" = set; then
19516 else
19517 ac_cv_search_opendir=no
19519 rm conftest.$ac_ext
19520 LIBS=$ac_func_search_save_LIBS
19522 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19523 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19524 ac_res=$ac_cv_search_opendir
19525 if test "$ac_res" != no; then
19526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19530 else
19531 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19532 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19533 if test "${ac_cv_search_opendir+set}" = set; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19535 else
19536 ac_func_search_save_LIBS=$LIBS
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h. */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19544 /* Override any GCC internal prototype to avoid an error.
19545 Use char because int might match the return type of a GCC
19546 builtin and then its argument prototype would still apply. */
19547 #ifdef __cplusplus
19548 extern "C"
19549 #endif
19550 char opendir ();
19552 main ()
19554 return opendir ();
19556 return 0;
19558 _ACEOF
19559 for ac_lib in '' x; do
19560 if test -z "$ac_lib"; then
19561 ac_res="none required"
19562 else
19563 ac_res=-l$ac_lib
19564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (ac_try="$ac_link"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19571 esac
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_link") 2>conftest.er1
19574 ac_status=$?
19575 grep -v '^ *+' conftest.er1 >conftest.err
19576 rm -f conftest.er1
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } &&
19580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19581 { (case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_try") 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest$ac_exeext'
19591 { (case "(($ac_try" in
19592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19593 *) ac_try_echo=$ac_try;;
19594 esac
19595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19596 (eval "$ac_try") 2>&5
19597 ac_status=$?
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; }; then
19600 ac_cv_search_opendir=$ac_res
19601 else
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19608 rm -f conftest.err conftest.$ac_objext \
19609 conftest$ac_exeext
19610 if test "${ac_cv_search_opendir+set}" = set; then
19611 break
19613 done
19614 if test "${ac_cv_search_opendir+set}" = set; then
19616 else
19617 ac_cv_search_opendir=no
19619 rm conftest.$ac_ext
19620 LIBS=$ac_func_search_save_LIBS
19622 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19623 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19624 ac_res=$ac_cv_search_opendir
19625 if test "$ac_res" != no; then
19626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19632 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19633 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19634 if test "${ac_cv_header_stdc+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637 cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h. */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19643 #include <stdlib.h>
19644 #include <stdarg.h>
19645 #include <string.h>
19646 #include <float.h>
19649 main ()
19653 return 0;
19655 _ACEOF
19656 rm -f conftest.$ac_objext
19657 if { (ac_try="$ac_compile"
19658 case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_compile") 2>conftest.er1
19664 ac_status=$?
19665 grep -v '^ *+' conftest.er1 >conftest.err
19666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } &&
19670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19671 { (case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19674 esac
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_try") 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; } &&
19680 { ac_try='test -s conftest.$ac_objext'
19681 { (case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_try") 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 ac_cv_header_stdc=yes
19691 else
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695 ac_cv_header_stdc=no
19698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19700 if test $ac_cv_header_stdc = yes; then
19701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19702 cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h. */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708 #include <string.h>
19710 _ACEOF
19711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19712 $EGREP "memchr" >/dev/null 2>&1; then
19714 else
19715 ac_cv_header_stdc=no
19717 rm -f conftest*
19721 if test $ac_cv_header_stdc = yes; then
19722 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19723 cat >conftest.$ac_ext <<_ACEOF
19724 /* confdefs.h. */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h. */
19729 #include <stdlib.h>
19731 _ACEOF
19732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19733 $EGREP "free" >/dev/null 2>&1; then
19735 else
19736 ac_cv_header_stdc=no
19738 rm -f conftest*
19742 if test $ac_cv_header_stdc = yes; then
19743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19744 if test "$cross_compiling" = yes; then
19746 else
19747 cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h. */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19753 #include <ctype.h>
19754 #include <stdlib.h>
19755 #if ((' ' & 0x0FF) == 0x020)
19756 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19757 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19758 #else
19759 # define ISLOWER(c) \
19760 (('a' <= (c) && (c) <= 'i') \
19761 || ('j' <= (c) && (c) <= 'r') \
19762 || ('s' <= (c) && (c) <= 'z'))
19763 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19764 #endif
19766 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19768 main ()
19770 int i;
19771 for (i = 0; i < 256; i++)
19772 if (XOR (islower (i), ISLOWER (i))
19773 || toupper (i) != TOUPPER (i))
19774 return 2;
19775 return 0;
19777 _ACEOF
19778 rm -f conftest$ac_exeext
19779 if { (ac_try="$ac_link"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19783 esac
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_link") 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19789 { (case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19792 esac
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_try") 2>&5
19795 ac_status=$?
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; }; then
19799 else
19800 echo "$as_me: program exited with status $ac_status" >&5
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19804 ( exit $ac_status )
19805 ac_cv_header_stdc=no
19807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19813 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19814 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19815 if test $ac_cv_header_stdc = yes; then
19817 cat >>confdefs.h <<\_ACEOF
19818 #define STDC_HEADERS 1
19819 _ACEOF
19823 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19824 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
19825 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828 cat >conftest.$ac_ext <<_ACEOF
19829 /* confdefs.h. */
19830 _ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19834 #include <sys/types.h>
19835 #include <sys/wait.h>
19836 #ifndef WEXITSTATUS
19837 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19838 #endif
19839 #ifndef WIFEXITED
19840 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19841 #endif
19844 main ()
19846 int s;
19847 wait (&s);
19848 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19850 return 0;
19852 _ACEOF
19853 rm -f conftest.$ac_objext
19854 if { (ac_try="$ac_compile"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19858 esac
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_compile") 2>conftest.er1
19861 ac_status=$?
19862 grep -v '^ *+' conftest.er1 >conftest.err
19863 rm -f conftest.er1
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_try") 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19887 ac_cv_header_sys_wait_h=yes
19888 else
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19892 ac_cv_header_sys_wait_h=no
19895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19897 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19898 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
19899 if test $ac_cv_header_sys_wait_h = yes; then
19901 cat >>confdefs.h <<\_ACEOF
19902 #define HAVE_SYS_WAIT_H 1
19903 _ACEOF
19930 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
19932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 ac_res=`eval echo '${'$as_ac_Header'}'`
19940 { echo "$as_me:$LINENO: result: $ac_res" >&5
19941 echo "${ECHO_T}$ac_res" >&6; }
19942 else
19943 # Is the header compilable?
19944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19946 cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h. */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19952 $ac_includes_default
19953 #include <$ac_header>
19954 _ACEOF
19955 rm -f conftest.$ac_objext
19956 if { (ac_try="$ac_compile"
19957 case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19960 esac
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_compile") 2>conftest.er1
19963 ac_status=$?
19964 grep -v '^ *+' conftest.er1 >conftest.err
19965 rm -f conftest.er1
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } &&
19969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19970 { (case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19973 esac
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_try") 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; } &&
19979 { ac_try='test -s conftest.$ac_objext'
19980 { (case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_try") 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; }; then
19989 ac_header_compiler=yes
19990 else
19991 echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19994 ac_header_compiler=no
19997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19999 echo "${ECHO_T}$ac_header_compiler" >&6; }
20001 # Is the header present?
20002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20004 cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h. */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 #include <$ac_header>
20011 _ACEOF
20012 if { (ac_try="$ac_cpp conftest.$ac_ext"
20013 case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20016 esac
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20019 ac_status=$?
20020 grep -v '^ *+' conftest.er1 >conftest.err
20021 rm -f conftest.er1
20022 cat conftest.err >&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } >/dev/null; then
20025 if test -s conftest.err; then
20026 ac_cpp_err=$ac_c_preproc_warn_flag
20027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20028 else
20029 ac_cpp_err=
20031 else
20032 ac_cpp_err=yes
20034 if test -z "$ac_cpp_err"; then
20035 ac_header_preproc=yes
20036 else
20037 echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_header_preproc=no
20043 rm -f conftest.err conftest.$ac_ext
20044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20045 echo "${ECHO_T}$ac_header_preproc" >&6; }
20047 # So? What about this header?
20048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20049 yes:no: )
20050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20054 ac_header_preproc=yes
20056 no:yes:* )
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20071 esac
20072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20076 else
20077 eval "$as_ac_Header=\$ac_header_preproc"
20079 ac_res=`eval echo '${'$as_ac_Header'}'`
20080 { echo "$as_me:$LINENO: result: $ac_res" >&5
20081 echo "${ECHO_T}$ac_res" >&6; }
20084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20085 cat >>confdefs.h <<_ACEOF
20086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20087 _ACEOF
20091 done
20094 # Check whether --enable-largefile was given.
20095 if test "${enable_largefile+set}" = set; then
20096 enableval=$enable_largefile;
20099 if test "$enable_largefile" != no; then
20101 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
20102 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
20103 if test "${ac_cv_sys_largefile_CC+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 else
20106 ac_cv_sys_largefile_CC=no
20107 if test "$GCC" != yes; then
20108 ac_save_CC=$CC
20109 while :; do
20110 # IRIX 6.2 and later do not support large files by default,
20111 # so use the C compiler's -n32 option if that helps.
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h. */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 #include <sys/types.h>
20119 /* Check that off_t can represent 2**63 - 1 correctly.
20120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20121 since some C++ compilers masquerading as C compilers
20122 incorrectly reject 9223372036854775807. */
20123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20125 && LARGE_OFF_T % 2147483647 == 1)
20126 ? 1 : -1];
20128 main ()
20132 return 0;
20134 _ACEOF
20135 rm -f conftest.$ac_objext
20136 if { (ac_try="$ac_compile"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140 esac
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_compile") 2>conftest.er1
20143 ac_status=$?
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20150 { (case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20153 esac
20154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_try") 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; } &&
20159 { ac_try='test -s conftest.$ac_objext'
20160 { (case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20163 esac
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_try") 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 break
20170 else
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20177 rm -f conftest.err conftest.$ac_objext
20178 CC="$CC -n32"
20179 rm -f conftest.$ac_objext
20180 if { (ac_try="$ac_compile"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_compile") 2>conftest.er1
20187 ac_status=$?
20188 grep -v '^ *+' conftest.er1 >conftest.err
20189 rm -f conftest.er1
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } &&
20193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20194 { (case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20197 esac
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_try") 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; } &&
20203 { ac_try='test -s conftest.$ac_objext'
20204 { (case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_try") 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_sys_largefile_CC=' -n32'; break
20214 else
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20221 rm -f conftest.err conftest.$ac_objext
20222 break
20223 done
20224 CC=$ac_save_CC
20225 rm -f conftest.$ac_ext
20228 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
20229 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
20230 if test "$ac_cv_sys_largefile_CC" != no; then
20231 CC=$CC$ac_cv_sys_largefile_CC
20234 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20235 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
20236 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239 while :; do
20240 ac_cv_sys_file_offset_bits=no
20241 cat >conftest.$ac_ext <<_ACEOF
20242 /* confdefs.h. */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20247 #include <sys/types.h>
20248 /* Check that off_t can represent 2**63 - 1 correctly.
20249 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20250 since some C++ compilers masquerading as C compilers
20251 incorrectly reject 9223372036854775807. */
20252 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20253 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20254 && LARGE_OFF_T % 2147483647 == 1)
20255 ? 1 : -1];
20257 main ()
20261 return 0;
20263 _ACEOF
20264 rm -f conftest.$ac_objext
20265 if { (ac_try="$ac_compile"
20266 case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20269 esac
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271 (eval "$ac_compile") 2>conftest.er1
20272 ac_status=$?
20273 grep -v '^ *+' conftest.er1 >conftest.err
20274 rm -f conftest.er1
20275 cat conftest.err >&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } &&
20278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20279 { (case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_try") 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; } &&
20288 { ac_try='test -s conftest.$ac_objext'
20289 { (case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20292 esac
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_try") 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; }; then
20298 break
20299 else
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20307 cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h. */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20313 #define _FILE_OFFSET_BITS 64
20314 #include <sys/types.h>
20315 /* Check that off_t can represent 2**63 - 1 correctly.
20316 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20317 since some C++ compilers masquerading as C compilers
20318 incorrectly reject 9223372036854775807. */
20319 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20320 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20321 && LARGE_OFF_T % 2147483647 == 1)
20322 ? 1 : -1];
20324 main ()
20328 return 0;
20330 _ACEOF
20331 rm -f conftest.$ac_objext
20332 if { (ac_try="$ac_compile"
20333 case "(($ac_try" in
20334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335 *) ac_try_echo=$ac_try;;
20336 esac
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338 (eval "$ac_compile") 2>conftest.er1
20339 ac_status=$?
20340 grep -v '^ *+' conftest.er1 >conftest.err
20341 rm -f conftest.er1
20342 cat conftest.err >&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } &&
20345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_try") 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; } &&
20355 { ac_try='test -s conftest.$ac_objext'
20356 { (case "(($ac_try" in
20357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358 *) ac_try_echo=$ac_try;;
20359 esac
20360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361 (eval "$ac_try") 2>&5
20362 ac_status=$?
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }; }; then
20365 ac_cv_sys_file_offset_bits=64; break
20366 else
20367 echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20374 break
20375 done
20377 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20378 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
20379 if test "$ac_cv_sys_file_offset_bits" != no; then
20381 cat >>confdefs.h <<_ACEOF
20382 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20383 _ACEOF
20386 rm -f conftest*
20387 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20388 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
20389 if test "${ac_cv_sys_large_files+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392 while :; do
20393 ac_cv_sys_large_files=no
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h. */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 #include <sys/types.h>
20401 /* Check that off_t can represent 2**63 - 1 correctly.
20402 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20403 since some C++ compilers masquerading as C compilers
20404 incorrectly reject 9223372036854775807. */
20405 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20406 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20407 && LARGE_OFF_T % 2147483647 == 1)
20408 ? 1 : -1];
20410 main ()
20414 return 0;
20416 _ACEOF
20417 rm -f conftest.$ac_objext
20418 if { (ac_try="$ac_compile"
20419 case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_compile") 2>conftest.er1
20425 ac_status=$?
20426 grep -v '^ *+' conftest.er1 >conftest.err
20427 rm -f conftest.er1
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } &&
20431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20432 { (case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20435 esac
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_try") 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; } &&
20441 { ac_try='test -s conftest.$ac_objext'
20442 { (case "(($ac_try" in
20443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444 *) ac_try_echo=$ac_try;;
20445 esac
20446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447 (eval "$ac_try") 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; }; then
20451 break
20452 else
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20460 cat >conftest.$ac_ext <<_ACEOF
20461 /* confdefs.h. */
20462 _ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20466 #define _LARGE_FILES 1
20467 #include <sys/types.h>
20468 /* Check that off_t can represent 2**63 - 1 correctly.
20469 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20470 since some C++ compilers masquerading as C compilers
20471 incorrectly reject 9223372036854775807. */
20472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20474 && LARGE_OFF_T % 2147483647 == 1)
20475 ? 1 : -1];
20477 main ()
20481 return 0;
20483 _ACEOF
20484 rm -f conftest.$ac_objext
20485 if { (ac_try="$ac_compile"
20486 case "(($ac_try" in
20487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20489 esac
20490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491 (eval "$ac_compile") 2>conftest.er1
20492 ac_status=$?
20493 grep -v '^ *+' conftest.er1 >conftest.err
20494 rm -f conftest.er1
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
20498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20499 { (case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20502 esac
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_try") 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; } &&
20508 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 ac_cv_sys_large_files=1; break
20519 else
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20527 break
20528 done
20530 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20531 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
20532 if test "$ac_cv_sys_large_files" != no; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define _LARGE_FILES $ac_cv_sys_large_files
20536 _ACEOF
20539 rm -f conftest*
20543 # Checks for typedefs, structures, and compiler characteristics.
20544 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20545 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
20546 if test "${ac_cv_header_stdbool_h+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549 cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h. */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20556 #include <stdbool.h>
20557 #ifndef bool
20558 "error: bool is not defined"
20559 #endif
20560 #ifndef false
20561 "error: false is not defined"
20562 #endif
20563 #if false
20564 "error: false is not 0"
20565 #endif
20566 #ifndef true
20567 "error: true is not defined"
20568 #endif
20569 #if true != 1
20570 "error: true is not 1"
20571 #endif
20572 #ifndef __bool_true_false_are_defined
20573 "error: __bool_true_false_are_defined is not defined"
20574 #endif
20576 struct s { _Bool s: 1; _Bool t; } s;
20578 char a[true == 1 ? 1 : -1];
20579 char b[false == 0 ? 1 : -1];
20580 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20581 char d[(bool) 0.5 == true ? 1 : -1];
20582 bool e = &s;
20583 char f[(_Bool) 0.0 == false ? 1 : -1];
20584 char g[true];
20585 char h[sizeof (_Bool)];
20586 char i[sizeof s.t];
20587 enum { j = false, k = true, l = false * true, m = true * 256 };
20588 _Bool n[m];
20589 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20590 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20591 # if defined __xlc__ || defined __GNUC__
20592 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20593 reported by James Lemley on 2005-10-05; see
20594 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20595 This test is not quite right, since xlc is allowed to
20596 reject this program, as the initializer for xlcbug is
20597 not one of the forms that C requires support for.
20598 However, doing the test right would require a runtime
20599 test, and that would make cross-compilation harder.
20600 Let us hope that IBM fixes the xlc bug, and also adds
20601 support for this kind of constant expression. In the
20602 meantime, this test will reject xlc, which is OK, since
20603 our stdbool.h substitute should suffice. We also test
20604 this with GCC, where it should work, to detect more
20605 quickly whether someone messes up the test in the
20606 future. */
20607 char digs[] = "0123456789";
20608 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20609 # endif
20610 /* Catch a bug in an HP-UX C compiler. See
20611 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20612 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20614 _Bool q = true;
20615 _Bool *pq = &q;
20618 main ()
20621 *pq |= q;
20622 *pq |= ! q;
20623 /* Refer to every declared value, to avoid compiler optimizations. */
20624 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20625 + !m + !n + !o + !p + !q + !pq);
20628 return 0;
20630 _ACEOF
20631 rm -f conftest.$ac_objext
20632 if { (ac_try="$ac_compile"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20636 esac
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_compile") 2>conftest.er1
20639 ac_status=$?
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20646 { (case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20649 esac
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_try") 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try='test -s conftest.$ac_objext'
20656 { (case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_try") 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ac_cv_header_stdbool_h=yes
20666 else
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 ac_cv_header_stdbool_h=no
20673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20675 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20676 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
20677 { echo "$as_me:$LINENO: checking for _Bool" >&5
20678 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
20679 if test "${ac_cv_type__Bool+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682 cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h. */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20688 $ac_includes_default
20689 typedef _Bool ac__type_new_;
20691 main ()
20693 if ((ac__type_new_ *) 0)
20694 return 0;
20695 if (sizeof (ac__type_new_))
20696 return 0;
20698 return 0;
20700 _ACEOF
20701 rm -f conftest.$ac_objext
20702 if { (ac_try="$ac_compile"
20703 case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_compile") 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } &&
20715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20716 { (case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_try") 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; } &&
20725 { ac_try='test -s conftest.$ac_objext'
20726 { (case "(($ac_try" in
20727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728 *) ac_try_echo=$ac_try;;
20729 esac
20730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731 (eval "$ac_try") 2>&5
20732 ac_status=$?
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; }; then
20735 ac_cv_type__Bool=yes
20736 else
20737 echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20740 ac_cv_type__Bool=no
20743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20745 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20746 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
20747 if test $ac_cv_type__Bool = yes; then
20749 cat >>confdefs.h <<_ACEOF
20750 #define HAVE__BOOL 1
20751 _ACEOF
20756 if test $ac_cv_header_stdbool_h = yes; then
20758 cat >>confdefs.h <<\_ACEOF
20759 #define HAVE_STDBOOL_H 1
20760 _ACEOF
20764 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20765 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20766 if test "${ac_cv_c_const+set}" = set; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 else
20769 cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h. */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20777 main ()
20779 /* FIXME: Include the comments suggested by Paul. */
20780 #ifndef __cplusplus
20781 /* Ultrix mips cc rejects this. */
20782 typedef int charset[2];
20783 const charset x;
20784 /* SunOS 4.1.1 cc rejects this. */
20785 char const *const *ccp;
20786 char **p;
20787 /* NEC SVR4.0.2 mips cc rejects this. */
20788 struct point {int x, y;};
20789 static struct point const zero = {0,0};
20790 /* AIX XL C 1.02.0.0 rejects this.
20791 It does not let you subtract one const X* pointer from another in
20792 an arm of an if-expression whose if-part is not a constant
20793 expression */
20794 const char *g = "string";
20795 ccp = &g + (g ? g-g : 0);
20796 /* HPUX 7.0 cc rejects these. */
20797 ++ccp;
20798 p = (char**) ccp;
20799 ccp = (char const *const *) p;
20800 { /* SCO 3.2v4 cc rejects this. */
20801 char *t;
20802 char const *s = 0 ? (char *) 0 : (char const *) 0;
20804 *t++ = 0;
20805 if (s) return 0;
20807 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20808 int x[] = {25, 17};
20809 const int *foo = &x[0];
20810 ++foo;
20812 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20813 typedef const int *iptr;
20814 iptr p = 0;
20815 ++p;
20817 { /* AIX XL C 1.02.0.0 rejects this saying
20818 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20819 struct s { int j; const int *ap[3]; };
20820 struct s *b; b->j = 5;
20822 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20823 const int foo = 10;
20824 if (!foo) return 0;
20826 return !x[0] && !zero.x;
20827 #endif
20830 return 0;
20832 _ACEOF
20833 rm -f conftest.$ac_objext
20834 if { (ac_try="$ac_compile"
20835 case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20838 esac
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840 (eval "$ac_compile") 2>conftest.er1
20841 ac_status=$?
20842 grep -v '^ *+' conftest.er1 >conftest.err
20843 rm -f conftest.er1
20844 cat conftest.err >&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } &&
20847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20848 { (case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_try") 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; } &&
20857 { ac_try='test -s conftest.$ac_objext'
20858 { (case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_try") 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; }; then
20867 ac_cv_c_const=yes
20868 else
20869 echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20872 ac_cv_c_const=no
20875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20877 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20878 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20879 if test $ac_cv_c_const = no; then
20881 cat >>confdefs.h <<\_ACEOF
20882 #define const
20883 _ACEOF
20887 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20888 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20889 if test "${ac_cv_type_uid_t+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 else
20892 cat >conftest.$ac_ext <<_ACEOF
20893 /* confdefs.h. */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20898 #include <sys/types.h>
20900 _ACEOF
20901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20902 $EGREP "uid_t" >/dev/null 2>&1; then
20903 ac_cv_type_uid_t=yes
20904 else
20905 ac_cv_type_uid_t=no
20907 rm -f conftest*
20910 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20911 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20912 if test $ac_cv_type_uid_t = no; then
20914 cat >>confdefs.h <<\_ACEOF
20915 #define uid_t int
20916 _ACEOF
20919 cat >>confdefs.h <<\_ACEOF
20920 #define gid_t int
20921 _ACEOF
20925 { echo "$as_me:$LINENO: checking for inline" >&5
20926 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20927 if test "${ac_cv_c_inline+set}" = set; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 else
20930 ac_cv_c_inline=no
20931 for ac_kw in inline __inline__ __inline; do
20932 cat >conftest.$ac_ext <<_ACEOF
20933 /* confdefs.h. */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20938 #ifndef __cplusplus
20939 typedef int foo_t;
20940 static $ac_kw foo_t static_foo () {return 0; }
20941 $ac_kw foo_t foo () {return 0; }
20942 #endif
20944 _ACEOF
20945 rm -f conftest.$ac_objext
20946 if { (ac_try="$ac_compile"
20947 case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20950 esac
20951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952 (eval "$ac_compile") 2>conftest.er1
20953 ac_status=$?
20954 grep -v '^ *+' conftest.er1 >conftest.err
20955 rm -f conftest.er1
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20960 { (case "(($ac_try" in
20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20963 esac
20964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20965 (eval "$ac_try") 2>&5
20966 ac_status=$?
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; } &&
20969 { ac_try='test -s conftest.$ac_objext'
20970 { (case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20973 esac
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_try") 2>&5
20976 ac_status=$?
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
20979 ac_cv_c_inline=$ac_kw
20980 else
20981 echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20988 test "$ac_cv_c_inline" != no && break
20989 done
20992 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20993 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20996 case $ac_cv_c_inline in
20997 inline | yes) ;;
20999 case $ac_cv_c_inline in
21000 no) ac_val=;;
21001 *) ac_val=$ac_cv_c_inline;;
21002 esac
21003 cat >>confdefs.h <<_ACEOF
21004 #ifndef __cplusplus
21005 #define inline $ac_val
21006 #endif
21007 _ACEOF
21009 esac
21011 { echo "$as_me:$LINENO: checking for mode_t" >&5
21012 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
21013 if test "${ac_cv_type_mode_t+set}" = set; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 else
21016 cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h. */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022 $ac_includes_default
21023 typedef mode_t ac__type_new_;
21025 main ()
21027 if ((ac__type_new_ *) 0)
21028 return 0;
21029 if (sizeof (ac__type_new_))
21030 return 0;
21032 return 0;
21034 _ACEOF
21035 rm -f conftest.$ac_objext
21036 if { (ac_try="$ac_compile"
21037 case "(($ac_try" in
21038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039 *) ac_try_echo=$ac_try;;
21040 esac
21041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042 (eval "$ac_compile") 2>conftest.er1
21043 ac_status=$?
21044 grep -v '^ *+' conftest.er1 >conftest.err
21045 rm -f conftest.er1
21046 cat conftest.err >&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } &&
21049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21050 { (case "(($ac_try" in
21051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21053 esac
21054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21055 (eval "$ac_try") 2>&5
21056 ac_status=$?
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; } &&
21059 { ac_try='test -s conftest.$ac_objext'
21060 { (case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21063 esac
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_try") 2>&5
21066 ac_status=$?
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; }; then
21069 ac_cv_type_mode_t=yes
21070 else
21071 echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_cv_type_mode_t=no
21077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21080 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
21081 if test $ac_cv_type_mode_t = yes; then
21083 else
21085 cat >>confdefs.h <<_ACEOF
21086 #define mode_t int
21087 _ACEOF
21091 { echo "$as_me:$LINENO: checking for off_t" >&5
21092 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21093 if test "${ac_cv_type_off_t+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21095 else
21096 cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h. */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102 $ac_includes_default
21103 typedef off_t ac__type_new_;
21105 main ()
21107 if ((ac__type_new_ *) 0)
21108 return 0;
21109 if (sizeof (ac__type_new_))
21110 return 0;
21112 return 0;
21114 _ACEOF
21115 rm -f conftest.$ac_objext
21116 if { (ac_try="$ac_compile"
21117 case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21120 esac
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_compile") 2>conftest.er1
21123 ac_status=$?
21124 grep -v '^ *+' conftest.er1 >conftest.err
21125 rm -f conftest.er1
21126 cat conftest.err >&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } &&
21129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21130 { (case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21133 esac
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_try") 2>&5
21136 ac_status=$?
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); }; } &&
21139 { ac_try='test -s conftest.$ac_objext'
21140 { (case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21143 esac
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_try") 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; }; then
21149 ac_cv_type_off_t=yes
21150 else
21151 echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21154 ac_cv_type_off_t=no
21157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21159 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21160 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21161 if test $ac_cv_type_off_t = yes; then
21163 else
21165 cat >>confdefs.h <<_ACEOF
21166 #define off_t long int
21167 _ACEOF
21171 { echo "$as_me:$LINENO: checking for pid_t" >&5
21172 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21173 if test "${ac_cv_type_pid_t+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21175 else
21176 cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h. */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 $ac_includes_default
21183 typedef pid_t ac__type_new_;
21185 main ()
21187 if ((ac__type_new_ *) 0)
21188 return 0;
21189 if (sizeof (ac__type_new_))
21190 return 0;
21192 return 0;
21194 _ACEOF
21195 rm -f conftest.$ac_objext
21196 if { (ac_try="$ac_compile"
21197 case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21200 esac
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_compile") 2>conftest.er1
21203 ac_status=$?
21204 grep -v '^ *+' conftest.er1 >conftest.err
21205 rm -f conftest.er1
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } &&
21209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21210 { (case "(($ac_try" in
21211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212 *) ac_try_echo=$ac_try;;
21213 esac
21214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21215 (eval "$ac_try") 2>&5
21216 ac_status=$?
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; } &&
21219 { ac_try='test -s conftest.$ac_objext'
21220 { (case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21223 esac
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_try") 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_cv_type_pid_t=yes
21230 else
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21234 ac_cv_type_pid_t=no
21237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21239 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21240 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21241 if test $ac_cv_type_pid_t = yes; then
21243 else
21245 cat >>confdefs.h <<_ACEOF
21246 #define pid_t int
21247 _ACEOF
21251 { echo "$as_me:$LINENO: checking for size_t" >&5
21252 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21253 if test "${ac_cv_type_size_t+set}" = set; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21255 else
21256 cat >conftest.$ac_ext <<_ACEOF
21257 /* confdefs.h. */
21258 _ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h. */
21262 $ac_includes_default
21263 typedef size_t ac__type_new_;
21265 main ()
21267 if ((ac__type_new_ *) 0)
21268 return 0;
21269 if (sizeof (ac__type_new_))
21270 return 0;
21272 return 0;
21274 _ACEOF
21275 rm -f conftest.$ac_objext
21276 if { (ac_try="$ac_compile"
21277 case "(($ac_try" in
21278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 *) ac_try_echo=$ac_try;;
21280 esac
21281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21282 (eval "$ac_compile") 2>conftest.er1
21283 ac_status=$?
21284 grep -v '^ *+' conftest.er1 >conftest.err
21285 rm -f conftest.er1
21286 cat conftest.err >&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } &&
21289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21290 { (case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_try") 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; } &&
21299 { ac_try='test -s conftest.$ac_objext'
21300 { (case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21303 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_try") 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 ac_cv_type_size_t=yes
21310 else
21311 echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21314 ac_cv_type_size_t=no
21317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21319 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21320 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21321 if test $ac_cv_type_size_t = yes; then
21323 else
21325 cat >>confdefs.h <<_ACEOF
21326 #define size_t unsigned int
21327 _ACEOF
21331 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21332 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21333 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335 else
21336 cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h. */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 $ac_includes_default
21344 main ()
21346 static struct stat ac_aggr;
21347 if (ac_aggr.st_blksize)
21348 return 0;
21350 return 0;
21352 _ACEOF
21353 rm -f conftest.$ac_objext
21354 if { (ac_try="$ac_compile"
21355 case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21358 esac
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_compile") 2>conftest.er1
21361 ac_status=$?
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
21367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21368 { (case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21371 esac
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_try") 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; } &&
21377 { ac_try='test -s conftest.$ac_objext'
21378 { (case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21381 esac
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_try") 2>&5
21384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; }; then
21387 ac_cv_member_struct_stat_st_blksize=yes
21388 else
21389 echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21392 cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h. */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 $ac_includes_default
21400 main ()
21402 static struct stat ac_aggr;
21403 if (sizeof ac_aggr.st_blksize)
21404 return 0;
21406 return 0;
21408 _ACEOF
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_compile") 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
21423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21424 { (case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21427 esac
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429 (eval "$ac_try") 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; } &&
21433 { ac_try='test -s conftest.$ac_objext'
21434 { (case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_try") 2>&5
21440 ac_status=$?
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; }; then
21443 ac_cv_member_struct_stat_st_blksize=yes
21444 else
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_cv_member_struct_stat_st_blksize=no
21451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21457 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21458 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21460 cat >>confdefs.h <<_ACEOF
21461 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21462 _ACEOF
21467 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21468 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21469 if test "${ac_cv_header_time+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21472 cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h. */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 #include <sys/types.h>
21479 #include <sys/time.h>
21480 #include <time.h>
21483 main ()
21485 if ((struct tm *) 0)
21486 return 0;
21488 return 0;
21490 _ACEOF
21491 rm -f conftest.$ac_objext
21492 if { (ac_try="$ac_compile"
21493 case "(($ac_try" in
21494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495 *) ac_try_echo=$ac_try;;
21496 esac
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498 (eval "$ac_compile") 2>conftest.er1
21499 ac_status=$?
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
21505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21506 { (case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21509 esac
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_try") 2>&5
21512 ac_status=$?
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; } &&
21515 { ac_try='test -s conftest.$ac_objext'
21516 { (case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21519 esac
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_try") 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 ac_cv_header_time=yes
21526 else
21527 echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21530 ac_cv_header_time=no
21533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21535 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21536 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21537 if test $ac_cv_header_time = yes; then
21539 cat >>confdefs.h <<\_ACEOF
21540 #define TIME_WITH_SYS_TIME 1
21541 _ACEOF
21545 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21546 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21547 if test "${ac_cv_struct_tm+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550 cat >conftest.$ac_ext <<_ACEOF
21551 /* confdefs.h. */
21552 _ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21556 #include <sys/types.h>
21557 #include <time.h>
21560 main ()
21562 struct tm *tp; tp->tm_sec;
21564 return 0;
21566 _ACEOF
21567 rm -f conftest.$ac_objext
21568 if { (ac_try="$ac_compile"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21572 esac
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_compile") 2>conftest.er1
21575 ac_status=$?
21576 grep -v '^ *+' conftest.er1 >conftest.err
21577 rm -f conftest.er1
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } &&
21581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21582 { (case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21585 esac
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_try") 2>&5
21588 ac_status=$?
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; } &&
21591 { ac_try='test -s conftest.$ac_objext'
21592 { (case "(($ac_try" in
21593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594 *) ac_try_echo=$ac_try;;
21595 esac
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597 (eval "$ac_try") 2>&5
21598 ac_status=$?
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); }; }; then
21601 ac_cv_struct_tm=time.h
21602 else
21603 echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21606 ac_cv_struct_tm=sys/time.h
21609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21611 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21612 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21613 if test $ac_cv_struct_tm = sys/time.h; then
21615 cat >>confdefs.h <<\_ACEOF
21616 #define TM_IN_SYS_TIME 1
21617 _ACEOF
21621 { echo "$as_me:$LINENO: checking for working volatile" >&5
21622 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
21623 if test "${ac_cv_c_volatile+set}" = set; then
21624 echo $ECHO_N "(cached) $ECHO_C" >&6
21625 else
21626 cat >conftest.$ac_ext <<_ACEOF
21627 /* confdefs.h. */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21634 main ()
21637 volatile int x;
21638 int * volatile y = (int *) 0;
21639 return !x && !y;
21641 return 0;
21643 _ACEOF
21644 rm -f conftest.$ac_objext
21645 if { (ac_try="$ac_compile"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_compile") 2>conftest.er1
21652 ac_status=$?
21653 grep -v '^ *+' conftest.er1 >conftest.err
21654 rm -f conftest.er1
21655 cat conftest.err >&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } &&
21658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21659 { (case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21662 esac
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664 (eval "$ac_try") 2>&5
21665 ac_status=$?
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest.$ac_objext'
21669 { (case "(($ac_try" in
21670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21671 *) ac_try_echo=$ac_try;;
21672 esac
21673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21674 (eval "$ac_try") 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; }; then
21678 ac_cv_c_volatile=yes
21679 else
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 ac_cv_c_volatile=no
21686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21688 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
21689 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
21690 if test $ac_cv_c_volatile = no; then
21692 cat >>confdefs.h <<\_ACEOF
21693 #define volatile
21694 _ACEOF
21698 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21699 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21700 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21701 echo $ECHO_N "(cached) $ECHO_C" >&6
21702 else
21703 cat >conftest.$ac_ext <<_ACEOF
21704 /* confdefs.h. */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21709 $ac_includes_default
21710 typedef ptrdiff_t ac__type_new_;
21712 main ()
21714 if ((ac__type_new_ *) 0)
21715 return 0;
21716 if (sizeof (ac__type_new_))
21717 return 0;
21719 return 0;
21721 _ACEOF
21722 rm -f conftest.$ac_objext
21723 if { (ac_try="$ac_compile"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_compile") 2>conftest.er1
21730 ac_status=$?
21731 grep -v '^ *+' conftest.er1 >conftest.err
21732 rm -f conftest.er1
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } &&
21736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21737 { (case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_try") 2>&5
21743 ac_status=$?
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; } &&
21746 { ac_try='test -s conftest.$ac_objext'
21747 { (case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21750 esac
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_try") 2>&5
21753 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; }; then
21756 ac_cv_type_ptrdiff_t=yes
21757 else
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 ac_cv_type_ptrdiff_t=no
21764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21766 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21767 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21768 if test $ac_cv_type_ptrdiff_t = yes; then
21770 cat >>confdefs.h <<_ACEOF
21771 #define HAVE_PTRDIFF_T 1
21772 _ACEOF
21778 # Checks for library functions.
21780 for ac_header in unistd.h
21782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 ac_res=`eval echo '${'$as_ac_Header'}'`
21790 { echo "$as_me:$LINENO: result: $ac_res" >&5
21791 echo "${ECHO_T}$ac_res" >&6; }
21792 else
21793 # Is the header compilable?
21794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21796 cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h. */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21802 $ac_includes_default
21803 #include <$ac_header>
21804 _ACEOF
21805 rm -f conftest.$ac_objext
21806 if { (ac_try="$ac_compile"
21807 case "(($ac_try" in
21808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 *) ac_try_echo=$ac_try;;
21810 esac
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812 (eval "$ac_compile") 2>conftest.er1
21813 ac_status=$?
21814 grep -v '^ *+' conftest.er1 >conftest.err
21815 rm -f conftest.er1
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } &&
21819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21820 { (case "(($ac_try" in
21821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822 *) ac_try_echo=$ac_try;;
21823 esac
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825 (eval "$ac_try") 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; } &&
21829 { ac_try='test -s conftest.$ac_objext'
21830 { (case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21833 esac
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_try") 2>&5
21836 ac_status=$?
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 ac_header_compiler=yes
21840 else
21841 echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21844 ac_header_compiler=no
21847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21849 echo "${ECHO_T}$ac_header_compiler" >&6; }
21851 # Is the header present?
21852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21854 cat >conftest.$ac_ext <<_ACEOF
21855 /* confdefs.h. */
21856 _ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h. */
21860 #include <$ac_header>
21861 _ACEOF
21862 if { (ac_try="$ac_cpp conftest.$ac_ext"
21863 case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21866 esac
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21869 ac_status=$?
21870 grep -v '^ *+' conftest.er1 >conftest.err
21871 rm -f conftest.er1
21872 cat conftest.err >&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } >/dev/null; then
21875 if test -s conftest.err; then
21876 ac_cpp_err=$ac_c_preproc_warn_flag
21877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21878 else
21879 ac_cpp_err=
21881 else
21882 ac_cpp_err=yes
21884 if test -z "$ac_cpp_err"; then
21885 ac_header_preproc=yes
21886 else
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 ac_header_preproc=no
21893 rm -f conftest.err conftest.$ac_ext
21894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21895 echo "${ECHO_T}$ac_header_preproc" >&6; }
21897 # So? What about this header?
21898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21899 yes:no: )
21900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21904 ac_header_preproc=yes
21906 no:yes:* )
21907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21921 esac
21922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 else
21927 eval "$as_ac_Header=\$ac_header_preproc"
21929 ac_res=`eval echo '${'$as_ac_Header'}'`
21930 { echo "$as_me:$LINENO: result: $ac_res" >&5
21931 echo "${ECHO_T}$ac_res" >&6; }
21934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21935 cat >>confdefs.h <<_ACEOF
21936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21937 _ACEOF
21941 done
21943 { echo "$as_me:$LINENO: checking for working chown" >&5
21944 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
21945 if test "${ac_cv_func_chown_works+set}" = set; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21947 else
21948 if test "$cross_compiling" = yes; then
21949 ac_cv_func_chown_works=no
21950 else
21951 cat >conftest.$ac_ext <<_ACEOF
21952 /* confdefs.h. */
21953 _ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h. */
21957 $ac_includes_default
21958 #include <fcntl.h>
21961 main ()
21963 char *f = "conftest.chown";
21964 struct stat before, after;
21966 if (creat (f, 0600) < 0)
21967 return 1;
21968 if (stat (f, &before) < 0)
21969 return 1;
21970 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21971 return 1;
21972 if (stat (f, &after) < 0)
21973 return 1;
21974 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
21977 return 0;
21979 _ACEOF
21980 rm -f conftest$ac_exeext
21981 if { (ac_try="$ac_link"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_link") 2>&5
21988 ac_status=$?
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21997 ac_status=$?
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; }; then
22000 ac_cv_func_chown_works=yes
22001 else
22002 echo "$as_me: program exited with status $ac_status" >&5
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 ( exit $ac_status )
22007 ac_cv_func_chown_works=no
22009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22013 rm -f conftest.chown
22016 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
22017 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
22018 if test $ac_cv_func_chown_works = yes; then
22020 cat >>confdefs.h <<\_ACEOF
22021 #define HAVE_CHOWN 1
22022 _ACEOF
22026 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
22027 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
22028 if test "${ac_cv_func_closedir_void+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22030 else
22031 if test "$cross_compiling" = yes; then
22032 ac_cv_func_closedir_void=yes
22033 else
22034 cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h. */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22040 $ac_includes_default
22041 #include <$ac_header_dirent>
22042 #ifndef __cplusplus
22043 int closedir ();
22044 #endif
22047 main ()
22049 return closedir (opendir (".")) != 0;
22051 return 0;
22053 _ACEOF
22054 rm -f conftest$ac_exeext
22055 if { (ac_try="$ac_link"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_link") 2>&5
22062 ac_status=$?
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22065 { (case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22068 esac
22069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22070 (eval "$ac_try") 2>&5
22071 ac_status=$?
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; }; then
22074 ac_cv_func_closedir_void=no
22075 else
22076 echo "$as_me: program exited with status $ac_status" >&5
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ( exit $ac_status )
22081 ac_cv_func_closedir_void=yes
22083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22088 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
22089 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
22090 if test $ac_cv_func_closedir_void = yes; then
22092 cat >>confdefs.h <<\_ACEOF
22093 #define CLOSEDIR_VOID 1
22094 _ACEOF
22098 { echo "$as_me:$LINENO: checking for error_at_line" >&5
22099 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
22100 if test "${ac_cv_lib_error_at_line+set}" = set; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103 cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h. */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 $ac_includes_default
22111 main ()
22113 error_at_line (0, 0, "", 0, "");
22115 return 0;
22117 _ACEOF
22118 rm -f conftest.$ac_objext conftest$ac_exeext
22119 if { (ac_try="$ac_link"
22120 case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22123 esac
22124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_link") 2>conftest.er1
22126 ac_status=$?
22127 grep -v '^ *+' conftest.er1 >conftest.err
22128 rm -f conftest.er1
22129 cat conftest.err >&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } &&
22132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22133 { (case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136 esac
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_try") 2>&5
22139 ac_status=$?
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; } &&
22142 { ac_try='test -s conftest$ac_exeext'
22143 { (case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22146 esac
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_try") 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 ac_cv_lib_error_at_line=yes
22153 else
22154 echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22157 ac_cv_lib_error_at_line=no
22160 rm -f conftest.err conftest.$ac_objext \
22161 conftest$ac_exeext conftest.$ac_ext
22163 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
22164 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
22165 if test $ac_cv_lib_error_at_line = no; then
22166 case " $LIBOBJS " in
22167 *" error.$ac_objext "* ) ;;
22168 *) LIBOBJS="$LIBOBJS error.$ac_objext"
22170 esac
22175 for ac_header in vfork.h
22177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22184 ac_res=`eval echo '${'$as_ac_Header'}'`
22185 { echo "$as_me:$LINENO: result: $ac_res" >&5
22186 echo "${ECHO_T}$ac_res" >&6; }
22187 else
22188 # Is the header compilable?
22189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22191 cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h. */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22197 $ac_includes_default
22198 #include <$ac_header>
22199 _ACEOF
22200 rm -f conftest.$ac_objext
22201 if { (ac_try="$ac_compile"
22202 case "(($ac_try" in
22203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22205 esac
22206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22207 (eval "$ac_compile") 2>conftest.er1
22208 ac_status=$?
22209 grep -v '^ *+' conftest.er1 >conftest.err
22210 rm -f conftest.er1
22211 cat conftest.err >&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } &&
22214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22215 { (case "(($ac_try" in
22216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217 *) ac_try_echo=$ac_try;;
22218 esac
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220 (eval "$ac_try") 2>&5
22221 ac_status=$?
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); }; } &&
22224 { ac_try='test -s conftest.$ac_objext'
22225 { (case "(($ac_try" in
22226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227 *) ac_try_echo=$ac_try;;
22228 esac
22229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22230 (eval "$ac_try") 2>&5
22231 ac_status=$?
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); }; }; then
22234 ac_header_compiler=yes
22235 else
22236 echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22239 ac_header_compiler=no
22242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22244 echo "${ECHO_T}$ac_header_compiler" >&6; }
22246 # Is the header present?
22247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22249 cat >conftest.$ac_ext <<_ACEOF
22250 /* confdefs.h. */
22251 _ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 #include <$ac_header>
22256 _ACEOF
22257 if { (ac_try="$ac_cpp conftest.$ac_ext"
22258 case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22261 esac
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22264 ac_status=$?
22265 grep -v '^ *+' conftest.er1 >conftest.err
22266 rm -f conftest.er1
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } >/dev/null; then
22270 if test -s conftest.err; then
22271 ac_cpp_err=$ac_c_preproc_warn_flag
22272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22273 else
22274 ac_cpp_err=
22276 else
22277 ac_cpp_err=yes
22279 if test -z "$ac_cpp_err"; then
22280 ac_header_preproc=yes
22281 else
22282 echo "$as_me: failed program was:" >&5
22283 sed 's/^/| /' conftest.$ac_ext >&5
22285 ac_header_preproc=no
22288 rm -f conftest.err conftest.$ac_ext
22289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22290 echo "${ECHO_T}$ac_header_preproc" >&6; }
22292 # So? What about this header?
22293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22294 yes:no: )
22295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22299 ac_header_preproc=yes
22301 no:yes:* )
22302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22316 esac
22317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22321 else
22322 eval "$as_ac_Header=\$ac_header_preproc"
22324 ac_res=`eval echo '${'$as_ac_Header'}'`
22325 { echo "$as_me:$LINENO: result: $ac_res" >&5
22326 echo "${ECHO_T}$ac_res" >&6; }
22329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22330 cat >>confdefs.h <<_ACEOF
22331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22332 _ACEOF
22336 done
22340 for ac_func in fork vfork
22342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 else
22348 cat >conftest.$ac_ext <<_ACEOF
22349 /* confdefs.h. */
22350 _ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22356 #define $ac_func innocuous_$ac_func
22358 /* System header to define __stub macros and hopefully few prototypes,
22359 which can conflict with char $ac_func (); below.
22360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22361 <limits.h> exists even on freestanding compilers. */
22363 #ifdef __STDC__
22364 # include <limits.h>
22365 #else
22366 # include <assert.h>
22367 #endif
22369 #undef $ac_func
22371 /* Override any GCC internal prototype to avoid an error.
22372 Use char because int might match the return type of a GCC
22373 builtin and then its argument prototype would still apply. */
22374 #ifdef __cplusplus
22375 extern "C"
22376 #endif
22377 char $ac_func ();
22378 /* The GNU C library defines this for functions which it implements
22379 to always fail with ENOSYS. Some functions are actually named
22380 something starting with __ and the normal name is an alias. */
22381 #if defined __stub_$ac_func || defined __stub___$ac_func
22382 choke me
22383 #endif
22386 main ()
22388 return $ac_func ();
22390 return 0;
22392 _ACEOF
22393 rm -f conftest.$ac_objext conftest$ac_exeext
22394 if { (ac_try="$ac_link"
22395 case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22398 esac
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_link") 2>conftest.er1
22401 ac_status=$?
22402 grep -v '^ *+' conftest.er1 >conftest.err
22403 rm -f conftest.er1
22404 cat conftest.err >&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } &&
22407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22408 { (case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22411 esac
22412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22413 (eval "$ac_try") 2>&5
22414 ac_status=$?
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); }; } &&
22417 { ac_try='test -s conftest$ac_exeext'
22418 { (case "(($ac_try" in
22419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22421 esac
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423 (eval "$ac_try") 2>&5
22424 ac_status=$?
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; }; then
22427 eval "$as_ac_var=yes"
22428 else
22429 echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22432 eval "$as_ac_var=no"
22435 rm -f conftest.err conftest.$ac_objext \
22436 conftest$ac_exeext conftest.$ac_ext
22438 ac_res=`eval echo '${'$as_ac_var'}'`
22439 { echo "$as_me:$LINENO: result: $ac_res" >&5
22440 echo "${ECHO_T}$ac_res" >&6; }
22441 if test `eval echo '${'$as_ac_var'}'` = yes; then
22442 cat >>confdefs.h <<_ACEOF
22443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22444 _ACEOF
22447 done
22449 if test "x$ac_cv_func_fork" = xyes; then
22450 { echo "$as_me:$LINENO: checking for working fork" >&5
22451 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22452 if test "${ac_cv_func_fork_works+set}" = set; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 else
22455 if test "$cross_compiling" = yes; then
22456 ac_cv_func_fork_works=cross
22457 else
22458 cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h. */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464 $ac_includes_default
22466 main ()
22469 /* By Ruediger Kuhlmann. */
22470 return fork () < 0;
22473 return 0;
22475 _ACEOF
22476 rm -f conftest$ac_exeext
22477 if { (ac_try="$ac_link"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22481 esac
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483 (eval "$ac_link") 2>&5
22484 ac_status=$?
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22487 { (case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22490 esac
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_try") 2>&5
22493 ac_status=$?
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); }; }; then
22496 ac_cv_func_fork_works=yes
22497 else
22498 echo "$as_me: program exited with status $ac_status" >&5
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 ( exit $ac_status )
22503 ac_cv_func_fork_works=no
22505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22510 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22511 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22513 else
22514 ac_cv_func_fork_works=$ac_cv_func_fork
22516 if test "x$ac_cv_func_fork_works" = xcross; then
22517 case $host in
22518 *-*-amigaos* | *-*-msdosdjgpp*)
22519 # Override, as these systems have only a dummy fork() stub
22520 ac_cv_func_fork_works=no
22523 ac_cv_func_fork_works=yes
22525 esac
22526 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22527 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22529 ac_cv_func_vfork_works=$ac_cv_func_vfork
22530 if test "x$ac_cv_func_vfork" = xyes; then
22531 { echo "$as_me:$LINENO: checking for working vfork" >&5
22532 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22533 if test "${ac_cv_func_vfork_works+set}" = set; then
22534 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 else
22536 if test "$cross_compiling" = yes; then
22537 ac_cv_func_vfork_works=cross
22538 else
22539 cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h. */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22545 /* Thanks to Paul Eggert for this test. */
22546 $ac_includes_default
22547 #include <sys/wait.h>
22548 #if HAVE_VFORK_H
22549 # include <vfork.h>
22550 #endif
22551 /* On some sparc systems, changes by the child to local and incoming
22552 argument registers are propagated back to the parent. The compiler
22553 is told about this with #include <vfork.h>, but some compilers
22554 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22555 static variable whose address is put into a register that is
22556 clobbered by the vfork. */
22557 static void
22558 #ifdef __cplusplus
22559 sparc_address_test (int arg)
22560 # else
22561 sparc_address_test (arg) int arg;
22562 #endif
22564 static pid_t child;
22565 if (!child) {
22566 child = vfork ();
22567 if (child < 0) {
22568 perror ("vfork");
22569 _exit(2);
22571 if (!child) {
22572 arg = getpid();
22573 write(-1, "", 0);
22574 _exit (arg);
22580 main ()
22582 pid_t parent = getpid ();
22583 pid_t child;
22585 sparc_address_test (0);
22587 child = vfork ();
22589 if (child == 0) {
22590 /* Here is another test for sparc vfork register problems. This
22591 test uses lots of local variables, at least as many local
22592 variables as main has allocated so far including compiler
22593 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22594 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22595 reuse the register of parent for one of the local variables,
22596 since it will think that parent can't possibly be used any more
22597 in this routine. Assigning to the local variable will thus
22598 munge parent in the parent process. */
22599 pid_t
22600 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22601 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22602 /* Convince the compiler that p..p7 are live; otherwise, it might
22603 use the same hardware register for all 8 local variables. */
22604 if (p != p1 || p != p2 || p != p3 || p != p4
22605 || p != p5 || p != p6 || p != p7)
22606 _exit(1);
22608 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22609 from child file descriptors. If the child closes a descriptor
22610 before it execs or exits, this munges the parent's descriptor
22611 as well. Test for this by closing stdout in the child. */
22612 _exit(close(fileno(stdout)) != 0);
22613 } else {
22614 int status;
22615 struct stat st;
22617 while (wait(&status) != child)
22619 return (
22620 /* Was there some problem with vforking? */
22621 child < 0
22623 /* Did the child fail? (This shouldn't happen.) */
22624 || status
22626 /* Did the vfork/compiler bug occur? */
22627 || parent != getpid()
22629 /* Did the file descriptor bug occur? */
22630 || fstat(fileno(stdout), &st) != 0
22634 _ACEOF
22635 rm -f conftest$ac_exeext
22636 if { (ac_try="$ac_link"
22637 case "(($ac_try" in
22638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639 *) ac_try_echo=$ac_try;;
22640 esac
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642 (eval "$ac_link") 2>&5
22643 ac_status=$?
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22646 { (case "(($ac_try" in
22647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22648 *) ac_try_echo=$ac_try;;
22649 esac
22650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22651 (eval "$ac_try") 2>&5
22652 ac_status=$?
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); }; }; then
22655 ac_cv_func_vfork_works=yes
22656 else
22657 echo "$as_me: program exited with status $ac_status" >&5
22658 echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22661 ( exit $ac_status )
22662 ac_cv_func_vfork_works=no
22664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22669 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22670 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22673 if test "x$ac_cv_func_fork_works" = xcross; then
22674 ac_cv_func_vfork_works=$ac_cv_func_vfork
22675 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22676 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22679 if test "x$ac_cv_func_vfork_works" = xyes; then
22681 cat >>confdefs.h <<\_ACEOF
22682 #define HAVE_WORKING_VFORK 1
22683 _ACEOF
22685 else
22687 cat >>confdefs.h <<\_ACEOF
22688 #define vfork fork
22689 _ACEOF
22692 if test "x$ac_cv_func_fork_works" = xyes; then
22694 cat >>confdefs.h <<\_ACEOF
22695 #define HAVE_WORKING_FORK 1
22696 _ACEOF
22700 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22701 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
22702 if test "${ac_cv_sys_largefile_source+set}" = set; then
22703 echo $ECHO_N "(cached) $ECHO_C" >&6
22704 else
22705 while :; do
22706 ac_cv_sys_largefile_source=no
22707 cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h. */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22713 #include <stdio.h>
22715 main ()
22717 return !fseeko;
22719 return 0;
22721 _ACEOF
22722 rm -f conftest.$ac_objext
22723 if { (ac_try="$ac_compile"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22727 esac
22728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22729 (eval "$ac_compile") 2>conftest.er1
22730 ac_status=$?
22731 grep -v '^ *+' conftest.er1 >conftest.err
22732 rm -f conftest.er1
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } &&
22736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22737 { (case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22740 esac
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_try") 2>&5
22743 ac_status=$?
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; } &&
22746 { ac_try='test -s conftest.$ac_objext'
22747 { (case "(($ac_try" in
22748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749 *) ac_try_echo=$ac_try;;
22750 esac
22751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22752 (eval "$ac_try") 2>&5
22753 ac_status=$?
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
22756 break
22757 else
22758 echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22765 cat >conftest.$ac_ext <<_ACEOF
22766 /* confdefs.h. */
22767 _ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22771 #define _LARGEFILE_SOURCE 1
22772 #include <stdio.h>
22774 main ()
22776 return !fseeko;
22778 return 0;
22780 _ACEOF
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22786 esac
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22789 ac_status=$?
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } &&
22795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22796 { (case "(($ac_try" in
22797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798 *) ac_try_echo=$ac_try;;
22799 esac
22800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22801 (eval "$ac_try") 2>&5
22802 ac_status=$?
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); }; } &&
22805 { ac_try='test -s conftest.$ac_objext'
22806 { (case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22809 esac
22810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_try") 2>&5
22812 ac_status=$?
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); }; }; then
22815 ac_cv_sys_largefile_source=1; break
22816 else
22817 echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22824 break
22825 done
22827 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22828 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
22829 if test "$ac_cv_sys_largefile_source" != no; then
22831 cat >>confdefs.h <<_ACEOF
22832 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22833 _ACEOF
22836 rm -f conftest*
22838 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22839 # in glibc 2.1.3, but that breaks too many other things.
22840 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22841 { echo "$as_me:$LINENO: checking for fseeko" >&5
22842 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
22843 if test "${ac_cv_func_fseeko+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846 cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h. */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22852 #include <stdio.h>
22854 main ()
22856 return fseeko && fseeko (stdin, 0, 0);
22858 return 0;
22860 _ACEOF
22861 rm -f conftest.$ac_objext conftest$ac_exeext
22862 if { (ac_try="$ac_link"
22863 case "(($ac_try" in
22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22866 esac
22867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868 (eval "$ac_link") 2>conftest.er1
22869 ac_status=$?
22870 grep -v '^ *+' conftest.er1 >conftest.err
22871 rm -f conftest.er1
22872 cat conftest.err >&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); } &&
22875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22876 { (case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22879 esac
22880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881 (eval "$ac_try") 2>&5
22882 ac_status=$?
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; } &&
22885 { ac_try='test -s conftest$ac_exeext'
22886 { (case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22889 esac
22890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891 (eval "$ac_try") 2>&5
22892 ac_status=$?
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; }; then
22895 ac_cv_func_fseeko=yes
22896 else
22897 echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22900 ac_cv_func_fseeko=no
22903 rm -f conftest.err conftest.$ac_objext \
22904 conftest$ac_exeext conftest.$ac_ext
22906 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22907 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
22908 if test $ac_cv_func_fseeko = yes; then
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_FSEEKO 1
22912 _ACEOF
22916 if test $ac_cv_c_compiler_gnu = yes; then
22917 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
22918 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
22919 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
22920 echo $ECHO_N "(cached) $ECHO_C" >&6
22921 else
22922 ac_pattern="Autoconf.*'x'"
22923 cat >conftest.$ac_ext <<_ACEOF
22924 /* confdefs.h. */
22925 _ACEOF
22926 cat confdefs.h >>conftest.$ac_ext
22927 cat >>conftest.$ac_ext <<_ACEOF
22928 /* end confdefs.h. */
22929 #include <sgtty.h>
22930 Autoconf TIOCGETP
22931 _ACEOF
22932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22933 $EGREP "$ac_pattern" >/dev/null 2>&1; then
22934 ac_cv_prog_gcc_traditional=yes
22935 else
22936 ac_cv_prog_gcc_traditional=no
22938 rm -f conftest*
22941 if test $ac_cv_prog_gcc_traditional = no; then
22942 cat >conftest.$ac_ext <<_ACEOF
22943 /* confdefs.h. */
22944 _ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22948 #include <termio.h>
22949 Autoconf TCGETA
22950 _ACEOF
22951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22952 $EGREP "$ac_pattern" >/dev/null 2>&1; then
22953 ac_cv_prog_gcc_traditional=yes
22955 rm -f conftest*
22959 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22960 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
22961 if test $ac_cv_prog_gcc_traditional = yes; then
22962 CC="$CC -traditional"
22967 for ac_header in stdlib.h
22969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22974 echo $ECHO_N "(cached) $ECHO_C" >&6
22976 ac_res=`eval echo '${'$as_ac_Header'}'`
22977 { echo "$as_me:$LINENO: result: $ac_res" >&5
22978 echo "${ECHO_T}$ac_res" >&6; }
22979 else
22980 # Is the header compilable?
22981 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22983 cat >conftest.$ac_ext <<_ACEOF
22984 /* confdefs.h. */
22985 _ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h. */
22989 $ac_includes_default
22990 #include <$ac_header>
22991 _ACEOF
22992 rm -f conftest.$ac_objext
22993 if { (ac_try="$ac_compile"
22994 case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22997 esac
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999 (eval "$ac_compile") 2>conftest.er1
23000 ac_status=$?
23001 grep -v '^ *+' conftest.er1 >conftest.err
23002 rm -f conftest.er1
23003 cat conftest.err >&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); } &&
23006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23007 { (case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23010 esac
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_try") 2>&5
23013 ac_status=$?
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; } &&
23016 { ac_try='test -s conftest.$ac_objext'
23017 { (case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23020 esac
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_try") 2>&5
23023 ac_status=$?
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); }; }; then
23026 ac_header_compiler=yes
23027 else
23028 echo "$as_me: failed program was:" >&5
23029 sed 's/^/| /' conftest.$ac_ext >&5
23031 ac_header_compiler=no
23034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23036 echo "${ECHO_T}$ac_header_compiler" >&6; }
23038 # Is the header present?
23039 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23041 cat >conftest.$ac_ext <<_ACEOF
23042 /* confdefs.h. */
23043 _ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 #include <$ac_header>
23048 _ACEOF
23049 if { (ac_try="$ac_cpp conftest.$ac_ext"
23050 case "(($ac_try" in
23051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23052 *) ac_try_echo=$ac_try;;
23053 esac
23054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23056 ac_status=$?
23057 grep -v '^ *+' conftest.er1 >conftest.err
23058 rm -f conftest.er1
23059 cat conftest.err >&5
23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061 (exit $ac_status); } >/dev/null; then
23062 if test -s conftest.err; then
23063 ac_cpp_err=$ac_c_preproc_warn_flag
23064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23065 else
23066 ac_cpp_err=
23068 else
23069 ac_cpp_err=yes
23071 if test -z "$ac_cpp_err"; then
23072 ac_header_preproc=yes
23073 else
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23077 ac_header_preproc=no
23080 rm -f conftest.err conftest.$ac_ext
23081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23082 echo "${ECHO_T}$ac_header_preproc" >&6; }
23084 # So? What about this header?
23085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23086 yes:no: )
23087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23091 ac_header_preproc=yes
23093 no:yes:* )
23094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23108 esac
23109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 else
23114 eval "$as_ac_Header=\$ac_header_preproc"
23116 ac_res=`eval echo '${'$as_ac_Header'}'`
23117 { echo "$as_me:$LINENO: result: $ac_res" >&5
23118 echo "${ECHO_T}$ac_res" >&6; }
23121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23122 cat >>confdefs.h <<_ACEOF
23123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23124 _ACEOF
23128 done
23130 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
23131 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
23132 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23134 else
23135 if test "$cross_compiling" = yes; then
23136 ac_cv_func_malloc_0_nonnull=no
23137 else
23138 cat >conftest.$ac_ext <<_ACEOF
23139 /* confdefs.h. */
23140 _ACEOF
23141 cat confdefs.h >>conftest.$ac_ext
23142 cat >>conftest.$ac_ext <<_ACEOF
23143 /* end confdefs.h. */
23144 #if STDC_HEADERS || HAVE_STDLIB_H
23145 # include <stdlib.h>
23146 #else
23147 char *malloc ();
23148 #endif
23151 main ()
23153 return ! malloc (0);
23155 return 0;
23157 _ACEOF
23158 rm -f conftest$ac_exeext
23159 if { (ac_try="$ac_link"
23160 case "(($ac_try" in
23161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23162 *) ac_try_echo=$ac_try;;
23163 esac
23164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23165 (eval "$ac_link") 2>&5
23166 ac_status=$?
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23169 { (case "(($ac_try" in
23170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171 *) ac_try_echo=$ac_try;;
23172 esac
23173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23174 (eval "$ac_try") 2>&5
23175 ac_status=$?
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; }; then
23178 ac_cv_func_malloc_0_nonnull=yes
23179 else
23180 echo "$as_me: program exited with status $ac_status" >&5
23181 echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23184 ( exit $ac_status )
23185 ac_cv_func_malloc_0_nonnull=no
23187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23192 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
23193 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
23194 if test $ac_cv_func_malloc_0_nonnull = yes; then
23196 cat >>confdefs.h <<\_ACEOF
23197 #define HAVE_MALLOC 1
23198 _ACEOF
23200 else
23201 cat >>confdefs.h <<\_ACEOF
23202 #define HAVE_MALLOC 0
23203 _ACEOF
23205 case " $LIBOBJS " in
23206 *" malloc.$ac_objext "* ) ;;
23207 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
23209 esac
23212 cat >>confdefs.h <<\_ACEOF
23213 #define malloc rpl_malloc
23214 _ACEOF
23220 { echo "$as_me:$LINENO: checking for working memcmp" >&5
23221 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
23222 if test "${ac_cv_func_memcmp_working+set}" = set; then
23223 echo $ECHO_N "(cached) $ECHO_C" >&6
23224 else
23225 if test "$cross_compiling" = yes; then
23226 ac_cv_func_memcmp_working=no
23227 else
23228 cat >conftest.$ac_ext <<_ACEOF
23229 /* confdefs.h. */
23230 _ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23234 $ac_includes_default
23236 main ()
23239 /* Some versions of memcmp are not 8-bit clean. */
23240 char c0 = '\100', c1 = '\200', c2 = '\201';
23241 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23242 return 1;
23244 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23245 or more and with at least one buffer not starting on a 4-byte boundary.
23246 William Lewis provided this test program. */
23248 char foo[21];
23249 char bar[21];
23250 int i;
23251 for (i = 0; i < 4; i++)
23253 char *a = foo + i;
23254 char *b = bar + i;
23255 strcpy (a, "--------01111111");
23256 strcpy (b, "--------10000000");
23257 if (memcmp (a, b, 16) >= 0)
23258 return 1;
23260 return 0;
23264 return 0;
23266 _ACEOF
23267 rm -f conftest$ac_exeext
23268 if { (ac_try="$ac_link"
23269 case "(($ac_try" in
23270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23272 esac
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274 (eval "$ac_link") 2>&5
23275 ac_status=$?
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23278 { (case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23281 esac
23282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23283 (eval "$ac_try") 2>&5
23284 ac_status=$?
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; }; then
23287 ac_cv_func_memcmp_working=yes
23288 else
23289 echo "$as_me: program exited with status $ac_status" >&5
23290 echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23293 ( exit $ac_status )
23294 ac_cv_func_memcmp_working=no
23296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23301 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
23302 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
23303 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23304 *" memcmp.$ac_objext "* ) ;;
23305 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23307 esac
23313 for ac_header in stdlib.h sys/time.h unistd.h
23315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23322 ac_res=`eval echo '${'$as_ac_Header'}'`
23323 { echo "$as_me:$LINENO: result: $ac_res" >&5
23324 echo "${ECHO_T}$ac_res" >&6; }
23325 else
23326 # Is the header compilable?
23327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23329 cat >conftest.$ac_ext <<_ACEOF
23330 /* confdefs.h. */
23331 _ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h. */
23335 $ac_includes_default
23336 #include <$ac_header>
23337 _ACEOF
23338 rm -f conftest.$ac_objext
23339 if { (ac_try="$ac_compile"
23340 case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23343 esac
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_compile") 2>conftest.er1
23346 ac_status=$?
23347 grep -v '^ *+' conftest.er1 >conftest.err
23348 rm -f conftest.er1
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } &&
23352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23353 { (case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23356 esac
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_try") 2>&5
23359 ac_status=$?
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; } &&
23362 { ac_try='test -s conftest.$ac_objext'
23363 { (case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23366 esac
23367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368 (eval "$ac_try") 2>&5
23369 ac_status=$?
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; }; then
23372 ac_header_compiler=yes
23373 else
23374 echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23377 ac_header_compiler=no
23380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23382 echo "${ECHO_T}$ac_header_compiler" >&6; }
23384 # Is the header present?
23385 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23387 cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h. */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23393 #include <$ac_header>
23394 _ACEOF
23395 if { (ac_try="$ac_cpp conftest.$ac_ext"
23396 case "(($ac_try" in
23397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23398 *) ac_try_echo=$ac_try;;
23399 esac
23400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23402 ac_status=$?
23403 grep -v '^ *+' conftest.er1 >conftest.err
23404 rm -f conftest.er1
23405 cat conftest.err >&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } >/dev/null; then
23408 if test -s conftest.err; then
23409 ac_cpp_err=$ac_c_preproc_warn_flag
23410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23411 else
23412 ac_cpp_err=
23414 else
23415 ac_cpp_err=yes
23417 if test -z "$ac_cpp_err"; then
23418 ac_header_preproc=yes
23419 else
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23423 ac_header_preproc=no
23426 rm -f conftest.err conftest.$ac_ext
23427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23428 echo "${ECHO_T}$ac_header_preproc" >&6; }
23430 # So? What about this header?
23431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23432 yes:no: )
23433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23437 ac_header_preproc=yes
23439 no:yes:* )
23440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23454 esac
23455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23458 echo $ECHO_N "(cached) $ECHO_C" >&6
23459 else
23460 eval "$as_ac_Header=\$ac_header_preproc"
23462 ac_res=`eval echo '${'$as_ac_Header'}'`
23463 { echo "$as_me:$LINENO: result: $ac_res" >&5
23464 echo "${ECHO_T}$ac_res" >&6; }
23467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23468 cat >>confdefs.h <<_ACEOF
23469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23470 _ACEOF
23474 done
23477 for ac_func in alarm
23479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23483 echo $ECHO_N "(cached) $ECHO_C" >&6
23484 else
23485 cat >conftest.$ac_ext <<_ACEOF
23486 /* confdefs.h. */
23487 _ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h. */
23491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23493 #define $ac_func innocuous_$ac_func
23495 /* System header to define __stub macros and hopefully few prototypes,
23496 which can conflict with char $ac_func (); below.
23497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23498 <limits.h> exists even on freestanding compilers. */
23500 #ifdef __STDC__
23501 # include <limits.h>
23502 #else
23503 # include <assert.h>
23504 #endif
23506 #undef $ac_func
23508 /* Override any GCC internal prototype to avoid an error.
23509 Use char because int might match the return type of a GCC
23510 builtin and then its argument prototype would still apply. */
23511 #ifdef __cplusplus
23512 extern "C"
23513 #endif
23514 char $ac_func ();
23515 /* The GNU C library defines this for functions which it implements
23516 to always fail with ENOSYS. Some functions are actually named
23517 something starting with __ and the normal name is an alias. */
23518 #if defined __stub_$ac_func || defined __stub___$ac_func
23519 choke me
23520 #endif
23523 main ()
23525 return $ac_func ();
23527 return 0;
23529 _ACEOF
23530 rm -f conftest.$ac_objext conftest$ac_exeext
23531 if { (ac_try="$ac_link"
23532 case "(($ac_try" in
23533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23534 *) ac_try_echo=$ac_try;;
23535 esac
23536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23537 (eval "$ac_link") 2>conftest.er1
23538 ac_status=$?
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } &&
23544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23545 { (case "(($ac_try" in
23546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547 *) ac_try_echo=$ac_try;;
23548 esac
23549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23550 (eval "$ac_try") 2>&5
23551 ac_status=$?
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); }; } &&
23554 { ac_try='test -s conftest$ac_exeext'
23555 { (case "(($ac_try" in
23556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557 *) ac_try_echo=$ac_try;;
23558 esac
23559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23560 (eval "$ac_try") 2>&5
23561 ac_status=$?
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); }; }; then
23564 eval "$as_ac_var=yes"
23565 else
23566 echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 eval "$as_ac_var=no"
23572 rm -f conftest.err conftest.$ac_objext \
23573 conftest$ac_exeext conftest.$ac_ext
23575 ac_res=`eval echo '${'$as_ac_var'}'`
23576 { echo "$as_me:$LINENO: result: $ac_res" >&5
23577 echo "${ECHO_T}$ac_res" >&6; }
23578 if test `eval echo '${'$as_ac_var'}'` = yes; then
23579 cat >>confdefs.h <<_ACEOF
23580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23581 _ACEOF
23584 done
23586 { echo "$as_me:$LINENO: checking for working mktime" >&5
23587 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
23588 if test "${ac_cv_func_working_mktime+set}" = set; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23590 else
23591 if test "$cross_compiling" = yes; then
23592 ac_cv_func_working_mktime=no
23593 else
23594 cat >conftest.$ac_ext <<_ACEOF
23595 /* confdefs.h. */
23596 _ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h. */
23600 /* Test program from Paul Eggert and Tony Leneis. */
23601 #if TIME_WITH_SYS_TIME
23602 # include <sys/time.h>
23603 # include <time.h>
23604 #else
23605 # if HAVE_SYS_TIME_H
23606 # include <sys/time.h>
23607 # else
23608 # include <time.h>
23609 # endif
23610 #endif
23612 #if HAVE_STDLIB_H
23613 # include <stdlib.h>
23614 #endif
23616 #if HAVE_UNISTD_H
23617 # include <unistd.h>
23618 #endif
23620 #if !HAVE_ALARM
23621 # define alarm(X) /* empty */
23622 #endif
23624 /* Work around redefinition to rpl_putenv by other config tests. */
23625 #undef putenv
23627 static time_t time_t_max;
23628 static time_t time_t_min;
23630 /* Values we'll use to set the TZ environment variable. */
23631 static char *tz_strings[] = {
23632 (char *) 0, "TZ=GMT0", "TZ=JST-9",
23633 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
23635 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
23637 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
23638 Based on a problem report from Andreas Jaeger. */
23639 static int
23640 spring_forward_gap ()
23642 /* glibc (up to about 1998-10-07) failed this test. */
23643 struct tm tm;
23645 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
23646 instead of "TZ=America/Vancouver" in order to detect the bug even
23647 on systems that don't support the Olson extension, or don't have the
23648 full zoneinfo tables installed. */
23649 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
23651 tm.tm_year = 98;
23652 tm.tm_mon = 3;
23653 tm.tm_mday = 5;
23654 tm.tm_hour = 2;
23655 tm.tm_min = 0;
23656 tm.tm_sec = 0;
23657 tm.tm_isdst = -1;
23658 return mktime (&tm) != (time_t) -1;
23661 static int
23662 mktime_test1 (now)
23663 time_t now;
23665 struct tm *lt;
23666 return ! (lt = localtime (&now)) || mktime (lt) == now;
23669 static int
23670 mktime_test (now)
23671 time_t now;
23673 return (mktime_test1 (now)
23674 && mktime_test1 ((time_t) (time_t_max - now))
23675 && mktime_test1 ((time_t) (time_t_min + now)));
23678 static int
23679 irix_6_4_bug ()
23681 /* Based on code from Ariel Faigon. */
23682 struct tm tm;
23683 tm.tm_year = 96;
23684 tm.tm_mon = 3;
23685 tm.tm_mday = 0;
23686 tm.tm_hour = 0;
23687 tm.tm_min = 0;
23688 tm.tm_sec = 0;
23689 tm.tm_isdst = -1;
23690 mktime (&tm);
23691 return tm.tm_mon == 2 && tm.tm_mday == 31;
23694 static int
23695 bigtime_test (j)
23696 int j;
23698 struct tm tm;
23699 time_t now;
23700 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
23701 now = mktime (&tm);
23702 if (now != (time_t) -1)
23704 struct tm *lt = localtime (&now);
23705 if (! (lt
23706 && lt->tm_year == tm.tm_year
23707 && lt->tm_mon == tm.tm_mon
23708 && lt->tm_mday == tm.tm_mday
23709 && lt->tm_hour == tm.tm_hour
23710 && lt->tm_min == tm.tm_min
23711 && lt->tm_sec == tm.tm_sec
23712 && lt->tm_yday == tm.tm_yday
23713 && lt->tm_wday == tm.tm_wday
23714 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
23715 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
23716 return 0;
23718 return 1;
23722 main ()
23724 time_t t, delta;
23725 int i, j;
23727 /* This test makes some buggy mktime implementations loop.
23728 Give up after 60 seconds; a mktime slower than that
23729 isn't worth using anyway. */
23730 alarm (60);
23732 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
23733 continue;
23734 time_t_max--;
23735 if ((time_t) -1 < 0)
23736 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
23737 continue;
23738 delta = time_t_max / 997; /* a suitable prime number */
23739 for (i = 0; i < N_STRINGS; i++)
23741 if (tz_strings[i])
23742 putenv (tz_strings[i]);
23744 for (t = 0; t <= time_t_max - delta; t += delta)
23745 if (! mktime_test (t))
23746 return 1;
23747 if (! (mktime_test ((time_t) 1)
23748 && mktime_test ((time_t) (60 * 60))
23749 && mktime_test ((time_t) (60 * 60 * 24))))
23750 return 1;
23752 for (j = 1; 0 < j; j *= 2)
23753 if (! bigtime_test (j))
23754 return 1;
23755 if (! bigtime_test (j - 1))
23756 return 1;
23758 return ! (irix_6_4_bug () && spring_forward_gap ());
23760 _ACEOF
23761 rm -f conftest$ac_exeext
23762 if { (ac_try="$ac_link"
23763 case "(($ac_try" in
23764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23765 *) ac_try_echo=$ac_try;;
23766 esac
23767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23768 (eval "$ac_link") 2>&5
23769 ac_status=$?
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23772 { (case "(($ac_try" in
23773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23774 *) ac_try_echo=$ac_try;;
23775 esac
23776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23777 (eval "$ac_try") 2>&5
23778 ac_status=$?
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); }; }; then
23781 ac_cv_func_working_mktime=yes
23782 else
23783 echo "$as_me: program exited with status $ac_status" >&5
23784 echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23787 ( exit $ac_status )
23788 ac_cv_func_working_mktime=no
23790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23795 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
23796 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
23797 if test $ac_cv_func_working_mktime = no; then
23798 case " $LIBOBJS " in
23799 *" mktime.$ac_objext "* ) ;;
23800 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
23802 esac
23808 for ac_header in stdlib.h unistd.h
23810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
23817 ac_res=`eval echo '${'$as_ac_Header'}'`
23818 { echo "$as_me:$LINENO: result: $ac_res" >&5
23819 echo "${ECHO_T}$ac_res" >&6; }
23820 else
23821 # Is the header compilable?
23822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23824 cat >conftest.$ac_ext <<_ACEOF
23825 /* confdefs.h. */
23826 _ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h. */
23830 $ac_includes_default
23831 #include <$ac_header>
23832 _ACEOF
23833 rm -f conftest.$ac_objext
23834 if { (ac_try="$ac_compile"
23835 case "(($ac_try" in
23836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 *) ac_try_echo=$ac_try;;
23838 esac
23839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840 (eval "$ac_compile") 2>conftest.er1
23841 ac_status=$?
23842 grep -v '^ *+' conftest.er1 >conftest.err
23843 rm -f conftest.er1
23844 cat conftest.err >&5
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); } &&
23847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23848 { (case "(($ac_try" in
23849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23850 *) ac_try_echo=$ac_try;;
23851 esac
23852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23853 (eval "$ac_try") 2>&5
23854 ac_status=$?
23855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); }; } &&
23857 { ac_try='test -s conftest.$ac_objext'
23858 { (case "(($ac_try" in
23859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860 *) ac_try_echo=$ac_try;;
23861 esac
23862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23863 (eval "$ac_try") 2>&5
23864 ac_status=$?
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); }; }; then
23867 ac_header_compiler=yes
23868 else
23869 echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23872 ac_header_compiler=no
23875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23877 echo "${ECHO_T}$ac_header_compiler" >&6; }
23879 # Is the header present?
23880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23882 cat >conftest.$ac_ext <<_ACEOF
23883 /* confdefs.h. */
23884 _ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 #include <$ac_header>
23889 _ACEOF
23890 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
23903 if test -s conftest.err; then
23904 ac_cpp_err=$ac_c_preproc_warn_flag
23905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23906 else
23907 ac_cpp_err=
23909 else
23910 ac_cpp_err=yes
23912 if test -z "$ac_cpp_err"; then
23913 ac_header_preproc=yes
23914 else
23915 echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23918 ac_header_preproc=no
23921 rm -f conftest.err conftest.$ac_ext
23922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23923 echo "${ECHO_T}$ac_header_preproc" >&6; }
23925 # So? What about this header?
23926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23927 yes:no: )
23928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23932 ac_header_preproc=yes
23934 no:yes:* )
23935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23949 esac
23950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23953 echo $ECHO_N "(cached) $ECHO_C" >&6
23954 else
23955 eval "$as_ac_Header=\$ac_header_preproc"
23957 ac_res=`eval echo '${'$as_ac_Header'}'`
23958 { echo "$as_me:$LINENO: result: $ac_res" >&5
23959 echo "${ECHO_T}$ac_res" >&6; }
23962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23963 cat >>confdefs.h <<_ACEOF
23964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23965 _ACEOF
23969 done
23972 for ac_func in getpagesize
23974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23978 echo $ECHO_N "(cached) $ECHO_C" >&6
23979 else
23980 cat >conftest.$ac_ext <<_ACEOF
23981 /* confdefs.h. */
23982 _ACEOF
23983 cat confdefs.h >>conftest.$ac_ext
23984 cat >>conftest.$ac_ext <<_ACEOF
23985 /* end confdefs.h. */
23986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23988 #define $ac_func innocuous_$ac_func
23990 /* System header to define __stub macros and hopefully few prototypes,
23991 which can conflict with char $ac_func (); below.
23992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23993 <limits.h> exists even on freestanding compilers. */
23995 #ifdef __STDC__
23996 # include <limits.h>
23997 #else
23998 # include <assert.h>
23999 #endif
24001 #undef $ac_func
24003 /* Override any GCC internal prototype to avoid an error.
24004 Use char because int might match the return type of a GCC
24005 builtin and then its argument prototype would still apply. */
24006 #ifdef __cplusplus
24007 extern "C"
24008 #endif
24009 char $ac_func ();
24010 /* The GNU C library defines this for functions which it implements
24011 to always fail with ENOSYS. Some functions are actually named
24012 something starting with __ and the normal name is an alias. */
24013 #if defined __stub_$ac_func || defined __stub___$ac_func
24014 choke me
24015 #endif
24018 main ()
24020 return $ac_func ();
24022 return 0;
24024 _ACEOF
24025 rm -f conftest.$ac_objext conftest$ac_exeext
24026 if { (ac_try="$ac_link"
24027 case "(($ac_try" in
24028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24029 *) ac_try_echo=$ac_try;;
24030 esac
24031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24032 (eval "$ac_link") 2>conftest.er1
24033 ac_status=$?
24034 grep -v '^ *+' conftest.er1 >conftest.err
24035 rm -f conftest.er1
24036 cat conftest.err >&5
24037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); } &&
24039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24040 { (case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24043 esac
24044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24045 (eval "$ac_try") 2>&5
24046 ac_status=$?
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); }; } &&
24049 { ac_try='test -s conftest$ac_exeext'
24050 { (case "(($ac_try" in
24051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24052 *) ac_try_echo=$ac_try;;
24053 esac
24054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24055 (eval "$ac_try") 2>&5
24056 ac_status=$?
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); }; }; then
24059 eval "$as_ac_var=yes"
24060 else
24061 echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24064 eval "$as_ac_var=no"
24067 rm -f conftest.err conftest.$ac_objext \
24068 conftest$ac_exeext conftest.$ac_ext
24070 ac_res=`eval echo '${'$as_ac_var'}'`
24071 { echo "$as_me:$LINENO: result: $ac_res" >&5
24072 echo "${ECHO_T}$ac_res" >&6; }
24073 if test `eval echo '${'$as_ac_var'}'` = yes; then
24074 cat >>confdefs.h <<_ACEOF
24075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24076 _ACEOF
24079 done
24081 { echo "$as_me:$LINENO: checking for working mmap" >&5
24082 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
24083 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24084 echo $ECHO_N "(cached) $ECHO_C" >&6
24085 else
24086 if test "$cross_compiling" = yes; then
24087 ac_cv_func_mmap_fixed_mapped=no
24088 else
24089 cat >conftest.$ac_ext <<_ACEOF
24090 /* confdefs.h. */
24091 _ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h. */
24095 $ac_includes_default
24096 /* malloc might have been renamed as rpl_malloc. */
24097 #undef malloc
24099 /* Thanks to Mike Haertel and Jim Avera for this test.
24100 Here is a matrix of mmap possibilities:
24101 mmap private not fixed
24102 mmap private fixed at somewhere currently unmapped
24103 mmap private fixed at somewhere already mapped
24104 mmap shared not fixed
24105 mmap shared fixed at somewhere currently unmapped
24106 mmap shared fixed at somewhere already mapped
24107 For private mappings, we should verify that changes cannot be read()
24108 back from the file, nor mmap's back from the file at a different
24109 address. (There have been systems where private was not correctly
24110 implemented like the infamous i386 svr4.0, and systems where the
24111 VM page cache was not coherent with the file system buffer cache
24112 like early versions of FreeBSD and possibly contemporary NetBSD.)
24113 For shared mappings, we should conversely verify that changes get
24114 propagated back to all the places they're supposed to be.
24116 Grep wants private fixed already mapped.
24117 The main things grep needs to know about mmap are:
24118 * does it exist and is it safe to write into the mmap'd area
24119 * how to use it (BSD variants) */
24121 #include <fcntl.h>
24122 #include <sys/mman.h>
24124 #if !STDC_HEADERS && !HAVE_STDLIB_H
24125 char *malloc ();
24126 #endif
24128 /* This mess was copied from the GNU getpagesize.h. */
24129 #if !HAVE_GETPAGESIZE
24130 /* Assume that all systems that can run configure have sys/param.h. */
24131 # if !HAVE_SYS_PARAM_H
24132 # define HAVE_SYS_PARAM_H 1
24133 # endif
24135 # ifdef _SC_PAGESIZE
24136 # define getpagesize() sysconf(_SC_PAGESIZE)
24137 # else /* no _SC_PAGESIZE */
24138 # if HAVE_SYS_PARAM_H
24139 # include <sys/param.h>
24140 # ifdef EXEC_PAGESIZE
24141 # define getpagesize() EXEC_PAGESIZE
24142 # else /* no EXEC_PAGESIZE */
24143 # ifdef NBPG
24144 # define getpagesize() NBPG * CLSIZE
24145 # ifndef CLSIZE
24146 # define CLSIZE 1
24147 # endif /* no CLSIZE */
24148 # else /* no NBPG */
24149 # ifdef NBPC
24150 # define getpagesize() NBPC
24151 # else /* no NBPC */
24152 # ifdef PAGESIZE
24153 # define getpagesize() PAGESIZE
24154 # endif /* PAGESIZE */
24155 # endif /* no NBPC */
24156 # endif /* no NBPG */
24157 # endif /* no EXEC_PAGESIZE */
24158 # else /* no HAVE_SYS_PARAM_H */
24159 # define getpagesize() 8192 /* punt totally */
24160 # endif /* no HAVE_SYS_PARAM_H */
24161 # endif /* no _SC_PAGESIZE */
24163 #endif /* no HAVE_GETPAGESIZE */
24166 main ()
24168 char *data, *data2, *data3;
24169 int i, pagesize;
24170 int fd;
24172 pagesize = getpagesize ();
24174 /* First, make a file with some known garbage in it. */
24175 data = (char *) malloc (pagesize);
24176 if (!data)
24177 return 1;
24178 for (i = 0; i < pagesize; ++i)
24179 *(data + i) = rand ();
24180 umask (0);
24181 fd = creat ("conftest.mmap", 0600);
24182 if (fd < 0)
24183 return 1;
24184 if (write (fd, data, pagesize) != pagesize)
24185 return 1;
24186 close (fd);
24188 /* Next, try to mmap the file at a fixed address which already has
24189 something else allocated at it. If we can, also make sure that
24190 we see the same garbage. */
24191 fd = open ("conftest.mmap", O_RDWR);
24192 if (fd < 0)
24193 return 1;
24194 data2 = (char *) malloc (2 * pagesize);
24195 if (!data2)
24196 return 1;
24197 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24198 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24199 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24200 return 1;
24201 for (i = 0; i < pagesize; ++i)
24202 if (*(data + i) != *(data2 + i))
24203 return 1;
24205 /* Finally, make sure that changes to the mapped area do not
24206 percolate back to the file as seen by read(). (This is a bug on
24207 some variants of i386 svr4.0.) */
24208 for (i = 0; i < pagesize; ++i)
24209 *(data2 + i) = *(data2 + i) + 1;
24210 data3 = (char *) malloc (pagesize);
24211 if (!data3)
24212 return 1;
24213 if (read (fd, data3, pagesize) != pagesize)
24214 return 1;
24215 for (i = 0; i < pagesize; ++i)
24216 if (*(data + i) != *(data3 + i))
24217 return 1;
24218 close (fd);
24219 return 0;
24221 _ACEOF
24222 rm -f conftest$ac_exeext
24223 if { (ac_try="$ac_link"
24224 case "(($ac_try" in
24225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226 *) ac_try_echo=$ac_try;;
24227 esac
24228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24229 (eval "$ac_link") 2>&5
24230 ac_status=$?
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24233 { (case "(($ac_try" in
24234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24235 *) ac_try_echo=$ac_try;;
24236 esac
24237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24238 (eval "$ac_try") 2>&5
24239 ac_status=$?
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); }; }; then
24242 ac_cv_func_mmap_fixed_mapped=yes
24243 else
24244 echo "$as_me: program exited with status $ac_status" >&5
24245 echo "$as_me: failed program was:" >&5
24246 sed 's/^/| /' conftest.$ac_ext >&5
24248 ( exit $ac_status )
24249 ac_cv_func_mmap_fixed_mapped=no
24251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24256 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24257 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
24258 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24260 cat >>confdefs.h <<\_ACEOF
24261 #define HAVE_MMAP 1
24262 _ACEOF
24265 rm -f conftest.mmap
24268 for ac_header in stdlib.h
24270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24277 ac_res=`eval echo '${'$as_ac_Header'}'`
24278 { echo "$as_me:$LINENO: result: $ac_res" >&5
24279 echo "${ECHO_T}$ac_res" >&6; }
24280 else
24281 # Is the header compilable?
24282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24284 cat >conftest.$ac_ext <<_ACEOF
24285 /* confdefs.h. */
24286 _ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h. */
24290 $ac_includes_default
24291 #include <$ac_header>
24292 _ACEOF
24293 rm -f conftest.$ac_objext
24294 if { (ac_try="$ac_compile"
24295 case "(($ac_try" in
24296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24298 esac
24299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24300 (eval "$ac_compile") 2>conftest.er1
24301 ac_status=$?
24302 grep -v '^ *+' conftest.er1 >conftest.err
24303 rm -f conftest.er1
24304 cat conftest.err >&5
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); } &&
24307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24308 { (case "(($ac_try" in
24309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310 *) ac_try_echo=$ac_try;;
24311 esac
24312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24313 (eval "$ac_try") 2>&5
24314 ac_status=$?
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); }; } &&
24317 { ac_try='test -s conftest.$ac_objext'
24318 { (case "(($ac_try" in
24319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320 *) ac_try_echo=$ac_try;;
24321 esac
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323 (eval "$ac_try") 2>&5
24324 ac_status=$?
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); }; }; then
24327 ac_header_compiler=yes
24328 else
24329 echo "$as_me: failed program was:" >&5
24330 sed 's/^/| /' conftest.$ac_ext >&5
24332 ac_header_compiler=no
24335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24337 echo "${ECHO_T}$ac_header_compiler" >&6; }
24339 # Is the header present?
24340 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24342 cat >conftest.$ac_ext <<_ACEOF
24343 /* confdefs.h. */
24344 _ACEOF
24345 cat confdefs.h >>conftest.$ac_ext
24346 cat >>conftest.$ac_ext <<_ACEOF
24347 /* end confdefs.h. */
24348 #include <$ac_header>
24349 _ACEOF
24350 if { (ac_try="$ac_cpp conftest.$ac_ext"
24351 case "(($ac_try" in
24352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353 *) ac_try_echo=$ac_try;;
24354 esac
24355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24357 ac_status=$?
24358 grep -v '^ *+' conftest.er1 >conftest.err
24359 rm -f conftest.er1
24360 cat conftest.err >&5
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } >/dev/null; then
24363 if test -s conftest.err; then
24364 ac_cpp_err=$ac_c_preproc_warn_flag
24365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24366 else
24367 ac_cpp_err=
24369 else
24370 ac_cpp_err=yes
24372 if test -z "$ac_cpp_err"; then
24373 ac_header_preproc=yes
24374 else
24375 echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24378 ac_header_preproc=no
24381 rm -f conftest.err conftest.$ac_ext
24382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24383 echo "${ECHO_T}$ac_header_preproc" >&6; }
24385 # So? What about this header?
24386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24387 yes:no: )
24388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24392 ac_header_preproc=yes
24394 no:yes:* )
24395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24409 esac
24410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24413 echo $ECHO_N "(cached) $ECHO_C" >&6
24414 else
24415 eval "$as_ac_Header=\$ac_header_preproc"
24417 ac_res=`eval echo '${'$as_ac_Header'}'`
24418 { echo "$as_me:$LINENO: result: $ac_res" >&5
24419 echo "${ECHO_T}$ac_res" >&6; }
24422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24423 cat >>confdefs.h <<_ACEOF
24424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24425 _ACEOF
24429 done
24431 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
24432 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
24433 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
24434 echo $ECHO_N "(cached) $ECHO_C" >&6
24435 else
24436 if test "$cross_compiling" = yes; then
24437 ac_cv_func_realloc_0_nonnull=no
24438 else
24439 cat >conftest.$ac_ext <<_ACEOF
24440 /* confdefs.h. */
24441 _ACEOF
24442 cat confdefs.h >>conftest.$ac_ext
24443 cat >>conftest.$ac_ext <<_ACEOF
24444 /* end confdefs.h. */
24445 #if STDC_HEADERS || HAVE_STDLIB_H
24446 # include <stdlib.h>
24447 #else
24448 char *realloc ();
24449 #endif
24452 main ()
24454 return ! realloc (0, 0);
24456 return 0;
24458 _ACEOF
24459 rm -f conftest$ac_exeext
24460 if { (ac_try="$ac_link"
24461 case "(($ac_try" in
24462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463 *) ac_try_echo=$ac_try;;
24464 esac
24465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24466 (eval "$ac_link") 2>&5
24467 ac_status=$?
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24470 { (case "(($ac_try" in
24471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24472 *) ac_try_echo=$ac_try;;
24473 esac
24474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24475 (eval "$ac_try") 2>&5
24476 ac_status=$?
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); }; }; then
24479 ac_cv_func_realloc_0_nonnull=yes
24480 else
24481 echo "$as_me: program exited with status $ac_status" >&5
24482 echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24485 ( exit $ac_status )
24486 ac_cv_func_realloc_0_nonnull=no
24488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24493 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
24494 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
24495 if test $ac_cv_func_realloc_0_nonnull = yes; then
24497 cat >>confdefs.h <<\_ACEOF
24498 #define HAVE_REALLOC 1
24499 _ACEOF
24501 else
24502 cat >>confdefs.h <<\_ACEOF
24503 #define HAVE_REALLOC 0
24504 _ACEOF
24506 case " $LIBOBJS " in
24507 *" realloc.$ac_objext "* ) ;;
24508 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
24510 esac
24513 cat >>confdefs.h <<\_ACEOF
24514 #define realloc rpl_realloc
24515 _ACEOF
24523 for ac_header in sys/select.h sys/socket.h
24525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24530 echo $ECHO_N "(cached) $ECHO_C" >&6
24532 ac_res=`eval echo '${'$as_ac_Header'}'`
24533 { echo "$as_me:$LINENO: result: $ac_res" >&5
24534 echo "${ECHO_T}$ac_res" >&6; }
24535 else
24536 # Is the header compilable?
24537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24539 cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h. */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 $ac_includes_default
24546 #include <$ac_header>
24547 _ACEOF
24548 rm -f conftest.$ac_objext
24549 if { (ac_try="$ac_compile"
24550 case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24553 esac
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_compile") 2>conftest.er1
24556 ac_status=$?
24557 grep -v '^ *+' conftest.er1 >conftest.err
24558 rm -f conftest.er1
24559 cat conftest.err >&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } &&
24562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24563 { (case "(($ac_try" in
24564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24565 *) ac_try_echo=$ac_try;;
24566 esac
24567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24568 (eval "$ac_try") 2>&5
24569 ac_status=$?
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); }; } &&
24572 { ac_try='test -s conftest.$ac_objext'
24573 { (case "(($ac_try" in
24574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24575 *) ac_try_echo=$ac_try;;
24576 esac
24577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24578 (eval "$ac_try") 2>&5
24579 ac_status=$?
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); }; }; then
24582 ac_header_compiler=yes
24583 else
24584 echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24587 ac_header_compiler=no
24590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24592 echo "${ECHO_T}$ac_header_compiler" >&6; }
24594 # Is the header present?
24595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24597 cat >conftest.$ac_ext <<_ACEOF
24598 /* confdefs.h. */
24599 _ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h. */
24603 #include <$ac_header>
24604 _ACEOF
24605 if { (ac_try="$ac_cpp conftest.$ac_ext"
24606 case "(($ac_try" in
24607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24608 *) ac_try_echo=$ac_try;;
24609 esac
24610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24612 ac_status=$?
24613 grep -v '^ *+' conftest.er1 >conftest.err
24614 rm -f conftest.er1
24615 cat conftest.err >&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } >/dev/null; then
24618 if test -s conftest.err; then
24619 ac_cpp_err=$ac_c_preproc_warn_flag
24620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24621 else
24622 ac_cpp_err=
24624 else
24625 ac_cpp_err=yes
24627 if test -z "$ac_cpp_err"; then
24628 ac_header_preproc=yes
24629 else
24630 echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24633 ac_header_preproc=no
24636 rm -f conftest.err conftest.$ac_ext
24637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24638 echo "${ECHO_T}$ac_header_preproc" >&6; }
24640 # So? What about this header?
24641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24642 yes:no: )
24643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24647 ac_header_preproc=yes
24649 no:yes:* )
24650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24664 esac
24665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24668 echo $ECHO_N "(cached) $ECHO_C" >&6
24669 else
24670 eval "$as_ac_Header=\$ac_header_preproc"
24672 ac_res=`eval echo '${'$as_ac_Header'}'`
24673 { echo "$as_me:$LINENO: result: $ac_res" >&5
24674 echo "${ECHO_T}$ac_res" >&6; }
24677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24678 cat >>confdefs.h <<_ACEOF
24679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24680 _ACEOF
24684 done
24686 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
24687 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
24688 if test "${ac_cv_func_select_args+set}" = set; then
24689 echo $ECHO_N "(cached) $ECHO_C" >&6
24690 else
24691 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24692 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24693 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24694 cat >conftest.$ac_ext <<_ACEOF
24695 /* confdefs.h. */
24696 _ACEOF
24697 cat confdefs.h >>conftest.$ac_ext
24698 cat >>conftest.$ac_ext <<_ACEOF
24699 /* end confdefs.h. */
24700 $ac_includes_default
24701 #if HAVE_SYS_SELECT_H
24702 # include <sys/select.h>
24703 #endif
24704 #if HAVE_SYS_SOCKET_H
24705 # include <sys/socket.h>
24706 #endif
24709 main ()
24711 extern int select ($ac_arg1,
24712 $ac_arg234, $ac_arg234, $ac_arg234,
24713 $ac_arg5);
24715 return 0;
24717 _ACEOF
24718 rm -f conftest.$ac_objext
24719 if { (ac_try="$ac_compile"
24720 case "(($ac_try" in
24721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24722 *) ac_try_echo=$ac_try;;
24723 esac
24724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24725 (eval "$ac_compile") 2>conftest.er1
24726 ac_status=$?
24727 grep -v '^ *+' conftest.er1 >conftest.err
24728 rm -f conftest.er1
24729 cat conftest.err >&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); } &&
24732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24733 { (case "(($ac_try" in
24734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24735 *) ac_try_echo=$ac_try;;
24736 esac
24737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24738 (eval "$ac_try") 2>&5
24739 ac_status=$?
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); }; } &&
24742 { ac_try='test -s conftest.$ac_objext'
24743 { (case "(($ac_try" in
24744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24745 *) ac_try_echo=$ac_try;;
24746 esac
24747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24748 (eval "$ac_try") 2>&5
24749 ac_status=$?
24750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751 (exit $ac_status); }; }; then
24752 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24753 else
24754 echo "$as_me: failed program was:" >&5
24755 sed 's/^/| /' conftest.$ac_ext >&5
24760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24761 done
24762 done
24763 done
24764 # Provide a safe default value.
24765 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
24768 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
24769 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
24770 ac_save_IFS=$IFS; IFS=','
24771 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24772 IFS=$ac_save_IFS
24773 shift
24775 cat >>confdefs.h <<_ACEOF
24776 #define SELECT_TYPE_ARG1 $1
24777 _ACEOF
24780 cat >>confdefs.h <<_ACEOF
24781 #define SELECT_TYPE_ARG234 ($2)
24782 _ACEOF
24785 cat >>confdefs.h <<_ACEOF
24786 #define SELECT_TYPE_ARG5 ($3)
24787 _ACEOF
24789 rm -f conftest*
24791 { echo "$as_me:$LINENO: checking for function prototypes" >&5
24792 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
24793 if test "$ac_cv_prog_cc_c89" != no; then
24794 { echo "$as_me:$LINENO: result: yes" >&5
24795 echo "${ECHO_T}yes" >&6; }
24797 cat >>confdefs.h <<\_ACEOF
24798 #define PROTOTYPES 1
24799 _ACEOF
24802 cat >>confdefs.h <<\_ACEOF
24803 #define __PROTOTYPES 1
24804 _ACEOF
24806 else
24807 { echo "$as_me:$LINENO: result: no" >&5
24808 echo "${ECHO_T}no" >&6; }
24811 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
24812 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
24813 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
24814 echo $ECHO_N "(cached) $ECHO_C" >&6
24815 else
24816 ac_cv_func_setvbuf_reversed=no
24817 cat >conftest.$ac_ext <<_ACEOF
24818 /* confdefs.h. */
24819 _ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h. */
24823 #include <stdio.h>
24824 # if PROTOTYPES
24825 int (setvbuf) (FILE *, int, char *, size_t);
24826 # endif
24828 main ()
24830 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
24832 return 0;
24834 _ACEOF
24835 rm -f conftest.$ac_objext conftest$ac_exeext
24836 if { (ac_try="$ac_link"
24837 case "(($ac_try" in
24838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24839 *) ac_try_echo=$ac_try;;
24840 esac
24841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24842 (eval "$ac_link") 2>conftest.er1
24843 ac_status=$?
24844 grep -v '^ *+' conftest.er1 >conftest.err
24845 rm -f conftest.er1
24846 cat conftest.err >&5
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); } &&
24849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24850 { (case "(($ac_try" in
24851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852 *) ac_try_echo=$ac_try;;
24853 esac
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855 (eval "$ac_try") 2>&5
24856 ac_status=$?
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); }; } &&
24859 { ac_try='test -s conftest$ac_exeext'
24860 { (case "(($ac_try" in
24861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24862 *) ac_try_echo=$ac_try;;
24863 esac
24864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24865 (eval "$ac_try") 2>&5
24866 ac_status=$?
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); }; }; then
24869 cat >conftest.$ac_ext <<_ACEOF
24870 /* confdefs.h. */
24871 _ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24875 #include <stdio.h>
24876 # if PROTOTYPES
24877 int (setvbuf) (FILE *, int, char *, size_t);
24878 # endif
24880 main ()
24882 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
24884 return 0;
24886 _ACEOF
24887 rm -f conftest.$ac_objext conftest$ac_exeext
24888 if { (ac_try="$ac_link"
24889 case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24892 esac
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_link") 2>conftest.er1
24895 ac_status=$?
24896 grep -v '^ *+' conftest.er1 >conftest.err
24897 rm -f conftest.er1
24898 cat conftest.err >&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } &&
24901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24902 { (case "(($ac_try" in
24903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24904 *) ac_try_echo=$ac_try;;
24905 esac
24906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24907 (eval "$ac_try") 2>&5
24908 ac_status=$?
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); }; } &&
24911 { ac_try='test -s conftest$ac_exeext'
24912 { (case "(($ac_try" in
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914 *) ac_try_echo=$ac_try;;
24915 esac
24916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24917 (eval "$ac_try") 2>&5
24918 ac_status=$?
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); }; }; then
24921 # It compiles and links either way, so it must not be declared
24922 # with a prototype and most likely this is a K&R C compiler.
24923 # Try running it.
24924 if test "$cross_compiling" = yes; then
24925 : # Assume setvbuf is not reversed when cross-compiling.
24926 else
24927 cat >conftest.$ac_ext <<_ACEOF
24928 /* confdefs.h. */
24929 _ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h. */
24933 $ac_includes_default
24935 main ()
24937 /* This call has the arguments reversed.
24938 A reversed system may check and see that the address of buf
24939 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
24940 char buf;
24941 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
24942 return 1;
24943 putchar ('\r');
24944 return 0; /* Non-reversed systems SEGV here. */
24946 return 0;
24948 _ACEOF
24949 rm -f conftest$ac_exeext
24950 if { (ac_try="$ac_link"
24951 case "(($ac_try" in
24952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24953 *) ac_try_echo=$ac_try;;
24954 esac
24955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24956 (eval "$ac_link") 2>&5
24957 ac_status=$?
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24960 { (case "(($ac_try" in
24961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24962 *) ac_try_echo=$ac_try;;
24963 esac
24964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24965 (eval "$ac_try") 2>&5
24966 ac_status=$?
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; }; then
24969 ac_cv_func_setvbuf_reversed=yes
24970 else
24971 echo "$as_me: program exited with status $ac_status" >&5
24972 echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24980 ac_cv_func_setvbuf_reversed=yes
24981 else
24982 echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24988 rm -f conftest.err conftest.$ac_objext \
24989 conftest$ac_exeext conftest.$ac_ext
24990 else
24991 echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24997 rm -f conftest.err conftest.$ac_objext \
24998 conftest$ac_exeext conftest.$ac_ext
25000 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
25001 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
25002 if test $ac_cv_func_setvbuf_reversed = yes; then
25004 cat >>confdefs.h <<\_ACEOF
25005 #define SETVBUF_REVERSED 1
25006 _ACEOF
25010 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25011 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
25012 if test "${ac_cv_type_signal+set}" = set; then
25013 echo $ECHO_N "(cached) $ECHO_C" >&6
25014 else
25015 cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h. */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 #include <sys/types.h>
25022 #include <signal.h>
25025 main ()
25027 return *(signal (0, 0)) (0) == 1;
25029 return 0;
25031 _ACEOF
25032 rm -f conftest.$ac_objext
25033 if { (ac_try="$ac_compile"
25034 case "(($ac_try" in
25035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036 *) ac_try_echo=$ac_try;;
25037 esac
25038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25039 (eval "$ac_compile") 2>conftest.er1
25040 ac_status=$?
25041 grep -v '^ *+' conftest.er1 >conftest.err
25042 rm -f conftest.er1
25043 cat conftest.err >&5
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); } &&
25046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25047 { (case "(($ac_try" in
25048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049 *) ac_try_echo=$ac_try;;
25050 esac
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_try") 2>&5
25053 ac_status=$?
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); }; } &&
25056 { ac_try='test -s conftest.$ac_objext'
25057 { (case "(($ac_try" in
25058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25059 *) ac_try_echo=$ac_try;;
25060 esac
25061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25062 (eval "$ac_try") 2>&5
25063 ac_status=$?
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); }; }; then
25066 ac_cv_type_signal=int
25067 else
25068 echo "$as_me: failed program was:" >&5
25069 sed 's/^/| /' conftest.$ac_ext >&5
25071 ac_cv_type_signal=void
25074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25076 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25077 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
25079 cat >>confdefs.h <<_ACEOF
25080 #define RETSIGTYPE $ac_cv_type_signal
25081 _ACEOF
25084 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25085 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25086 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25087 echo $ECHO_N "(cached) $ECHO_C" >&6
25088 else
25089 rm -f conftest.sym conftest.file
25090 echo >conftest.file
25091 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25092 if test "$cross_compiling" = yes; then
25093 ac_cv_func_lstat_dereferences_slashed_symlink=no
25094 else
25095 cat >conftest.$ac_ext <<_ACEOF
25096 /* confdefs.h. */
25097 _ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h. */
25101 $ac_includes_default
25103 main ()
25105 struct stat sbuf;
25106 /* Linux will dereference the symlink and fail.
25107 That is better in the sense that it means we will not
25108 have to compile and use the lstat wrapper. */
25109 return lstat ("conftest.sym/", &sbuf) == 0;
25111 return 0;
25113 _ACEOF
25114 rm -f conftest$ac_exeext
25115 if { (ac_try="$ac_link"
25116 case "(($ac_try" in
25117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118 *) ac_try_echo=$ac_try;;
25119 esac
25120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25121 (eval "$ac_link") 2>&5
25122 ac_status=$?
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25125 { (case "(($ac_try" in
25126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25128 esac
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130 (eval "$ac_try") 2>&5
25131 ac_status=$?
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; }; then
25134 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25135 else
25136 echo "$as_me: program exited with status $ac_status" >&5
25137 echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25140 ( exit $ac_status )
25141 ac_cv_func_lstat_dereferences_slashed_symlink=no
25143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25147 else
25148 # If the `ln -s' command failed, then we probably don't even
25149 # have an lstat function.
25150 ac_cv_func_lstat_dereferences_slashed_symlink=no
25152 rm -f conftest.sym conftest.file
25155 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25156 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25158 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25160 cat >>confdefs.h <<_ACEOF
25161 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25162 _ACEOF
25165 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25166 case " $LIBOBJS " in
25167 *" lstat.$ac_objext "* ) ;;
25168 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25170 esac
25174 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25175 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
25176 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25177 echo $ECHO_N "(cached) $ECHO_C" >&6
25178 else
25179 if test "$cross_compiling" = yes; then
25180 ac_cv_func_stat_empty_string_bug=yes
25181 else
25182 cat >conftest.$ac_ext <<_ACEOF
25183 /* confdefs.h. */
25184 _ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h. */
25188 $ac_includes_default
25190 main ()
25192 struct stat sbuf;
25193 return stat ("", &sbuf) == 0;
25195 return 0;
25197 _ACEOF
25198 rm -f conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25203 esac
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_link") 2>&5
25206 ac_status=$?
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25209 { (case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25212 esac
25213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214 (eval "$ac_try") 2>&5
25215 ac_status=$?
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); }; }; then
25218 ac_cv_func_stat_empty_string_bug=no
25219 else
25220 echo "$as_me: program exited with status $ac_status" >&5
25221 echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25224 ( exit $ac_status )
25225 ac_cv_func_stat_empty_string_bug=yes
25227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25232 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25233 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
25234 if test $ac_cv_func_stat_empty_string_bug = yes; then
25235 case " $LIBOBJS " in
25236 *" stat.$ac_objext "* ) ;;
25237 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
25239 esac
25242 cat >>confdefs.h <<_ACEOF
25243 #define HAVE_STAT_EMPTY_STRING_BUG 1
25244 _ACEOF
25248 { echo "$as_me:$LINENO: checking for working strcoll" >&5
25249 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
25250 if test "${ac_cv_func_strcoll_works+set}" = set; then
25251 echo $ECHO_N "(cached) $ECHO_C" >&6
25252 else
25253 if test "$cross_compiling" = yes; then
25254 ac_cv_func_strcoll_works=no
25255 else
25256 cat >conftest.$ac_ext <<_ACEOF
25257 /* confdefs.h. */
25258 _ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h. */
25262 $ac_includes_default
25264 main ()
25266 return (strcoll ("abc", "def") >= 0 ||
25267 strcoll ("ABC", "DEF") >= 0 ||
25268 strcoll ("123", "456") >= 0)
25270 return 0;
25272 _ACEOF
25273 rm -f conftest$ac_exeext
25274 if { (ac_try="$ac_link"
25275 case "(($ac_try" in
25276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25277 *) ac_try_echo=$ac_try;;
25278 esac
25279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25280 (eval "$ac_link") 2>&5
25281 ac_status=$?
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_func_strcoll_works=yes
25294 else
25295 echo "$as_me: program exited with status $ac_status" >&5
25296 echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25299 ( exit $ac_status )
25300 ac_cv_func_strcoll_works=no
25302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25307 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
25308 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
25309 if test $ac_cv_func_strcoll_works = yes; then
25311 cat >>confdefs.h <<\_ACEOF
25312 #define HAVE_STRCOLL 1
25313 _ACEOF
25318 for ac_func in strftime
25320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25324 echo $ECHO_N "(cached) $ECHO_C" >&6
25325 else
25326 cat >conftest.$ac_ext <<_ACEOF
25327 /* confdefs.h. */
25328 _ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h. */
25332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25334 #define $ac_func innocuous_$ac_func
25336 /* System header to define __stub macros and hopefully few prototypes,
25337 which can conflict with char $ac_func (); below.
25338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25339 <limits.h> exists even on freestanding compilers. */
25341 #ifdef __STDC__
25342 # include <limits.h>
25343 #else
25344 # include <assert.h>
25345 #endif
25347 #undef $ac_func
25349 /* Override any GCC internal prototype to avoid an error.
25350 Use char because int might match the return type of a GCC
25351 builtin and then its argument prototype would still apply. */
25352 #ifdef __cplusplus
25353 extern "C"
25354 #endif
25355 char $ac_func ();
25356 /* The GNU C library defines this for functions which it implements
25357 to always fail with ENOSYS. Some functions are actually named
25358 something starting with __ and the normal name is an alias. */
25359 #if defined __stub_$ac_func || defined __stub___$ac_func
25360 choke me
25361 #endif
25364 main ()
25366 return $ac_func ();
25368 return 0;
25370 _ACEOF
25371 rm -f conftest.$ac_objext conftest$ac_exeext
25372 if { (ac_try="$ac_link"
25373 case "(($ac_try" in
25374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25375 *) ac_try_echo=$ac_try;;
25376 esac
25377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25378 (eval "$ac_link") 2>conftest.er1
25379 ac_status=$?
25380 grep -v '^ *+' conftest.er1 >conftest.err
25381 rm -f conftest.er1
25382 cat conftest.err >&5
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); } &&
25385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25386 { (case "(($ac_try" in
25387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25388 *) ac_try_echo=$ac_try;;
25389 esac
25390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25391 (eval "$ac_try") 2>&5
25392 ac_status=$?
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); }; } &&
25395 { ac_try='test -s conftest$ac_exeext'
25396 { (case "(($ac_try" in
25397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398 *) ac_try_echo=$ac_try;;
25399 esac
25400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25401 (eval "$ac_try") 2>&5
25402 ac_status=$?
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; }; then
25405 eval "$as_ac_var=yes"
25406 else
25407 echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25410 eval "$as_ac_var=no"
25413 rm -f conftest.err conftest.$ac_objext \
25414 conftest$ac_exeext conftest.$ac_ext
25416 ac_res=`eval echo '${'$as_ac_var'}'`
25417 { echo "$as_me:$LINENO: result: $ac_res" >&5
25418 echo "${ECHO_T}$ac_res" >&6; }
25419 if test `eval echo '${'$as_ac_var'}'` = yes; then
25420 cat >>confdefs.h <<_ACEOF
25421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25422 _ACEOF
25424 else
25425 # strftime is in -lintl on SCO UNIX.
25426 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
25427 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
25428 if test "${ac_cv_lib_intl_strftime+set}" = set; then
25429 echo $ECHO_N "(cached) $ECHO_C" >&6
25430 else
25431 ac_check_lib_save_LIBS=$LIBS
25432 LIBS="-lintl $LIBS"
25433 cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h. */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25440 /* Override any GCC internal prototype to avoid an error.
25441 Use char because int might match the return type of a GCC
25442 builtin and then its argument prototype would still apply. */
25443 #ifdef __cplusplus
25444 extern "C"
25445 #endif
25446 char strftime ();
25448 main ()
25450 return strftime ();
25452 return 0;
25454 _ACEOF
25455 rm -f conftest.$ac_objext conftest$ac_exeext
25456 if { (ac_try="$ac_link"
25457 case "(($ac_try" in
25458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459 *) ac_try_echo=$ac_try;;
25460 esac
25461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25462 (eval "$ac_link") 2>conftest.er1
25463 ac_status=$?
25464 grep -v '^ *+' conftest.er1 >conftest.err
25465 rm -f conftest.er1
25466 cat conftest.err >&5
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); } &&
25469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25470 { (case "(($ac_try" in
25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472 *) ac_try_echo=$ac_try;;
25473 esac
25474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25475 (eval "$ac_try") 2>&5
25476 ac_status=$?
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); }; } &&
25479 { ac_try='test -s conftest$ac_exeext'
25480 { (case "(($ac_try" in
25481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25482 *) ac_try_echo=$ac_try;;
25483 esac
25484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25485 (eval "$ac_try") 2>&5
25486 ac_status=$?
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); }; }; then
25489 ac_cv_lib_intl_strftime=yes
25490 else
25491 echo "$as_me: failed program was:" >&5
25492 sed 's/^/| /' conftest.$ac_ext >&5
25494 ac_cv_lib_intl_strftime=no
25497 rm -f conftest.err conftest.$ac_objext \
25498 conftest$ac_exeext conftest.$ac_ext
25499 LIBS=$ac_check_lib_save_LIBS
25501 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
25502 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
25503 if test $ac_cv_lib_intl_strftime = yes; then
25504 cat >>confdefs.h <<\_ACEOF
25505 #define HAVE_STRFTIME 1
25506 _ACEOF
25508 LIBS="-lintl $LIBS"
25512 done
25514 { echo "$as_me:$LINENO: checking for working strnlen" >&5
25515 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
25516 if test "${ac_cv_func_strnlen_working+set}" = set; then
25517 echo $ECHO_N "(cached) $ECHO_C" >&6
25518 else
25519 if test "$cross_compiling" = yes; then
25520 ac_cv_func_strnlen_working=no
25521 else
25522 cat >conftest.$ac_ext <<_ACEOF
25523 /* confdefs.h. */
25524 _ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h. */
25528 $ac_includes_default
25530 main ()
25533 #define S "foobar"
25534 #define S_LEN (sizeof S - 1)
25536 /* At least one implementation is buggy: that of AIX 4.3 would
25537 give strnlen (S, 1) == 3. */
25539 int i;
25540 for (i = 0; i < S_LEN + 1; ++i)
25542 int expected = i <= S_LEN ? i : S_LEN;
25543 if (strnlen (S, i) != expected)
25544 return 1;
25546 return 0;
25549 return 0;
25551 _ACEOF
25552 rm -f conftest$ac_exeext
25553 if { (ac_try="$ac_link"
25554 case "(($ac_try" in
25555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25556 *) ac_try_echo=$ac_try;;
25557 esac
25558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25559 (eval "$ac_link") 2>&5
25560 ac_status=$?
25561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25563 { (case "(($ac_try" in
25564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25565 *) ac_try_echo=$ac_try;;
25566 esac
25567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25568 (eval "$ac_try") 2>&5
25569 ac_status=$?
25570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571 (exit $ac_status); }; }; then
25572 ac_cv_func_strnlen_working=yes
25573 else
25574 echo "$as_me: program exited with status $ac_status" >&5
25575 echo "$as_me: failed program was:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25578 ( exit $ac_status )
25579 ac_cv_func_strnlen_working=no
25581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25586 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
25587 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
25588 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
25589 *" strnlen.$ac_objext "* ) ;;
25590 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
25592 esac
25595 { echo "$as_me:$LINENO: checking for working strtod" >&5
25596 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
25597 if test "${ac_cv_func_strtod+set}" = set; then
25598 echo $ECHO_N "(cached) $ECHO_C" >&6
25599 else
25600 if test "$cross_compiling" = yes; then
25601 ac_cv_func_strtod=no
25602 else
25603 cat >conftest.$ac_ext <<_ACEOF
25604 /* confdefs.h. */
25605 _ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h. */
25610 $ac_includes_default
25611 #ifndef strtod
25612 double strtod ();
25613 #endif
25615 main()
25618 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25619 char *string = " +69";
25620 char *term;
25621 double value;
25622 value = strtod (string, &term);
25623 if (value != 69 || term != (string + 4))
25624 return 1;
25628 /* Under Solaris 2.4, strtod returns the wrong value for the
25629 terminating character under some conditions. */
25630 char *string = "NaN";
25631 char *term;
25632 strtod (string, &term);
25633 if (term != string && *(term - 1) == 0)
25634 return 1;
25636 return 0;
25639 _ACEOF
25640 rm -f conftest$ac_exeext
25641 if { (ac_try="$ac_link"
25642 case "(($ac_try" in
25643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25644 *) ac_try_echo=$ac_try;;
25645 esac
25646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25647 (eval "$ac_link") 2>&5
25648 ac_status=$?
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25651 { (case "(($ac_try" in
25652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25653 *) ac_try_echo=$ac_try;;
25654 esac
25655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25656 (eval "$ac_try") 2>&5
25657 ac_status=$?
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); }; }; then
25660 ac_cv_func_strtod=yes
25661 else
25662 echo "$as_me: program exited with status $ac_status" >&5
25663 echo "$as_me: failed program was:" >&5
25664 sed 's/^/| /' conftest.$ac_ext >&5
25666 ( exit $ac_status )
25667 ac_cv_func_strtod=no
25669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25674 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
25675 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
25676 if test $ac_cv_func_strtod = no; then
25677 case " $LIBOBJS " in
25678 *" strtod.$ac_objext "* ) ;;
25679 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25681 esac
25683 { echo "$as_me:$LINENO: checking for pow" >&5
25684 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
25685 if test "${ac_cv_func_pow+set}" = set; then
25686 echo $ECHO_N "(cached) $ECHO_C" >&6
25687 else
25688 cat >conftest.$ac_ext <<_ACEOF
25689 /* confdefs.h. */
25690 _ACEOF
25691 cat confdefs.h >>conftest.$ac_ext
25692 cat >>conftest.$ac_ext <<_ACEOF
25693 /* end confdefs.h. */
25694 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
25695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25696 #define pow innocuous_pow
25698 /* System header to define __stub macros and hopefully few prototypes,
25699 which can conflict with char pow (); below.
25700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25701 <limits.h> exists even on freestanding compilers. */
25703 #ifdef __STDC__
25704 # include <limits.h>
25705 #else
25706 # include <assert.h>
25707 #endif
25709 #undef pow
25711 /* Override any GCC internal prototype to avoid an error.
25712 Use char because int might match the return type of a GCC
25713 builtin and then its argument prototype would still apply. */
25714 #ifdef __cplusplus
25715 extern "C"
25716 #endif
25717 char pow ();
25718 /* The GNU C library defines this for functions which it implements
25719 to always fail with ENOSYS. Some functions are actually named
25720 something starting with __ and the normal name is an alias. */
25721 #if defined __stub_pow || defined __stub___pow
25722 choke me
25723 #endif
25726 main ()
25728 return pow ();
25730 return 0;
25732 _ACEOF
25733 rm -f conftest.$ac_objext conftest$ac_exeext
25734 if { (ac_try="$ac_link"
25735 case "(($ac_try" in
25736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737 *) ac_try_echo=$ac_try;;
25738 esac
25739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25740 (eval "$ac_link") 2>conftest.er1
25741 ac_status=$?
25742 grep -v '^ *+' conftest.er1 >conftest.err
25743 rm -f conftest.er1
25744 cat conftest.err >&5
25745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 (exit $ac_status); } &&
25747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25748 { (case "(($ac_try" in
25749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25750 *) ac_try_echo=$ac_try;;
25751 esac
25752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25753 (eval "$ac_try") 2>&5
25754 ac_status=$?
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); }; } &&
25757 { ac_try='test -s conftest$ac_exeext'
25758 { (case "(($ac_try" in
25759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25760 *) ac_try_echo=$ac_try;;
25761 esac
25762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25763 (eval "$ac_try") 2>&5
25764 ac_status=$?
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); }; }; then
25767 ac_cv_func_pow=yes
25768 else
25769 echo "$as_me: failed program was:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25772 ac_cv_func_pow=no
25775 rm -f conftest.err conftest.$ac_objext \
25776 conftest$ac_exeext conftest.$ac_ext
25778 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
25779 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
25781 if test $ac_cv_func_pow = no; then
25782 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
25783 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
25784 if test "${ac_cv_lib_m_pow+set}" = set; then
25785 echo $ECHO_N "(cached) $ECHO_C" >&6
25786 else
25787 ac_check_lib_save_LIBS=$LIBS
25788 LIBS="-lm $LIBS"
25789 cat >conftest.$ac_ext <<_ACEOF
25790 /* confdefs.h. */
25791 _ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h. */
25796 /* Override any GCC internal prototype to avoid an error.
25797 Use char because int might match the return type of a GCC
25798 builtin and then its argument prototype would still apply. */
25799 #ifdef __cplusplus
25800 extern "C"
25801 #endif
25802 char pow ();
25804 main ()
25806 return pow ();
25808 return 0;
25810 _ACEOF
25811 rm -f conftest.$ac_objext conftest$ac_exeext
25812 if { (ac_try="$ac_link"
25813 case "(($ac_try" in
25814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25815 *) ac_try_echo=$ac_try;;
25816 esac
25817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25818 (eval "$ac_link") 2>conftest.er1
25819 ac_status=$?
25820 grep -v '^ *+' conftest.er1 >conftest.err
25821 rm -f conftest.er1
25822 cat conftest.err >&5
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); } &&
25825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25826 { (case "(($ac_try" in
25827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25828 *) ac_try_echo=$ac_try;;
25829 esac
25830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25831 (eval "$ac_try") 2>&5
25832 ac_status=$?
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); }; } &&
25835 { ac_try='test -s conftest$ac_exeext'
25836 { (case "(($ac_try" in
25837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25838 *) ac_try_echo=$ac_try;;
25839 esac
25840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25841 (eval "$ac_try") 2>&5
25842 ac_status=$?
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); }; }; then
25845 ac_cv_lib_m_pow=yes
25846 else
25847 echo "$as_me: failed program was:" >&5
25848 sed 's/^/| /' conftest.$ac_ext >&5
25850 ac_cv_lib_m_pow=no
25853 rm -f conftest.err conftest.$ac_objext \
25854 conftest$ac_exeext conftest.$ac_ext
25855 LIBS=$ac_check_lib_save_LIBS
25857 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
25858 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
25859 if test $ac_cv_lib_m_pow = yes; then
25860 POW_LIB=-lm
25861 else
25862 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
25863 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25870 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
25871 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
25872 if test "${ac_cv_func_utime_null+set}" = set; then
25873 echo $ECHO_N "(cached) $ECHO_C" >&6
25874 else
25875 rm -f conftest.data; >conftest.data
25876 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
25877 if test "$cross_compiling" = yes; then
25878 ac_cv_func_utime_null=no
25879 else
25880 cat >conftest.$ac_ext <<_ACEOF
25881 /* confdefs.h. */
25882 _ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h. */
25886 $ac_includes_default
25888 main ()
25890 struct stat s, t;
25891 return ! (stat ("conftest.data", &s) == 0
25892 && utime ("conftest.data", 0) == 0
25893 && stat ("conftest.data", &t) == 0
25894 && t.st_mtime >= s.st_mtime
25895 && t.st_mtime - s.st_mtime < 120);
25897 return 0;
25899 _ACEOF
25900 rm -f conftest$ac_exeext
25901 if { (ac_try="$ac_link"
25902 case "(($ac_try" in
25903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25904 *) ac_try_echo=$ac_try;;
25905 esac
25906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25907 (eval "$ac_link") 2>&5
25908 ac_status=$?
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25911 { (case "(($ac_try" in
25912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25913 *) ac_try_echo=$ac_try;;
25914 esac
25915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25916 (eval "$ac_try") 2>&5
25917 ac_status=$?
25918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); }; }; then
25920 ac_cv_func_utime_null=yes
25921 else
25922 echo "$as_me: program exited with status $ac_status" >&5
25923 echo "$as_me: failed program was:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25926 ( exit $ac_status )
25927 ac_cv_func_utime_null=no
25929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25934 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
25935 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
25936 if test $ac_cv_func_utime_null = yes; then
25938 cat >>confdefs.h <<\_ACEOF
25939 #define HAVE_UTIME_NULL 1
25940 _ACEOF
25943 rm -f conftest.data
25946 for ac_func in vprintf
25948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25953 else
25954 cat >conftest.$ac_ext <<_ACEOF
25955 /* confdefs.h. */
25956 _ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25962 #define $ac_func innocuous_$ac_func
25964 /* System header to define __stub macros and hopefully few prototypes,
25965 which can conflict with char $ac_func (); below.
25966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25967 <limits.h> exists even on freestanding compilers. */
25969 #ifdef __STDC__
25970 # include <limits.h>
25971 #else
25972 # include <assert.h>
25973 #endif
25975 #undef $ac_func
25977 /* Override any GCC internal prototype to avoid an error.
25978 Use char because int might match the return type of a GCC
25979 builtin and then its argument prototype would still apply. */
25980 #ifdef __cplusplus
25981 extern "C"
25982 #endif
25983 char $ac_func ();
25984 /* The GNU C library defines this for functions which it implements
25985 to always fail with ENOSYS. Some functions are actually named
25986 something starting with __ and the normal name is an alias. */
25987 #if defined __stub_$ac_func || defined __stub___$ac_func
25988 choke me
25989 #endif
25992 main ()
25994 return $ac_func ();
25996 return 0;
25998 _ACEOF
25999 rm -f conftest.$ac_objext conftest$ac_exeext
26000 if { (ac_try="$ac_link"
26001 case "(($ac_try" in
26002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003 *) ac_try_echo=$ac_try;;
26004 esac
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006 (eval "$ac_link") 2>conftest.er1
26007 ac_status=$?
26008 grep -v '^ *+' conftest.er1 >conftest.err
26009 rm -f conftest.er1
26010 cat conftest.err >&5
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } &&
26013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26014 { (case "(($ac_try" in
26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016 *) ac_try_echo=$ac_try;;
26017 esac
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019 (eval "$ac_try") 2>&5
26020 ac_status=$?
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); }; } &&
26023 { ac_try='test -s conftest$ac_exeext'
26024 { (case "(($ac_try" in
26025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26026 *) ac_try_echo=$ac_try;;
26027 esac
26028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26029 (eval "$ac_try") 2>&5
26030 ac_status=$?
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); }; }; then
26033 eval "$as_ac_var=yes"
26034 else
26035 echo "$as_me: failed program was:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26038 eval "$as_ac_var=no"
26041 rm -f conftest.err conftest.$ac_objext \
26042 conftest$ac_exeext conftest.$ac_ext
26044 ac_res=`eval echo '${'$as_ac_var'}'`
26045 { echo "$as_me:$LINENO: result: $ac_res" >&5
26046 echo "${ECHO_T}$ac_res" >&6; }
26047 if test `eval echo '${'$as_ac_var'}'` = yes; then
26048 cat >>confdefs.h <<_ACEOF
26049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26050 _ACEOF
26052 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26053 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26054 if test "${ac_cv_func__doprnt+set}" = set; then
26055 echo $ECHO_N "(cached) $ECHO_C" >&6
26056 else
26057 cat >conftest.$ac_ext <<_ACEOF
26058 /* confdefs.h. */
26059 _ACEOF
26060 cat confdefs.h >>conftest.$ac_ext
26061 cat >>conftest.$ac_ext <<_ACEOF
26062 /* end confdefs.h. */
26063 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26065 #define _doprnt innocuous__doprnt
26067 /* System header to define __stub macros and hopefully few prototypes,
26068 which can conflict with char _doprnt (); below.
26069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26070 <limits.h> exists even on freestanding compilers. */
26072 #ifdef __STDC__
26073 # include <limits.h>
26074 #else
26075 # include <assert.h>
26076 #endif
26078 #undef _doprnt
26080 /* Override any GCC internal prototype to avoid an error.
26081 Use char because int might match the return type of a GCC
26082 builtin and then its argument prototype would still apply. */
26083 #ifdef __cplusplus
26084 extern "C"
26085 #endif
26086 char _doprnt ();
26087 /* The GNU C library defines this for functions which it implements
26088 to always fail with ENOSYS. Some functions are actually named
26089 something starting with __ and the normal name is an alias. */
26090 #if defined __stub__doprnt || defined __stub____doprnt
26091 choke me
26092 #endif
26095 main ()
26097 return _doprnt ();
26099 return 0;
26101 _ACEOF
26102 rm -f conftest.$ac_objext conftest$ac_exeext
26103 if { (ac_try="$ac_link"
26104 case "(($ac_try" in
26105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106 *) ac_try_echo=$ac_try;;
26107 esac
26108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26109 (eval "$ac_link") 2>conftest.er1
26110 ac_status=$?
26111 grep -v '^ *+' conftest.er1 >conftest.err
26112 rm -f conftest.er1
26113 cat conftest.err >&5
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); } &&
26116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26117 { (case "(($ac_try" in
26118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26119 *) ac_try_echo=$ac_try;;
26120 esac
26121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26122 (eval "$ac_try") 2>&5
26123 ac_status=$?
26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125 (exit $ac_status); }; } &&
26126 { ac_try='test -s conftest$ac_exeext'
26127 { (case "(($ac_try" in
26128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26129 *) ac_try_echo=$ac_try;;
26130 esac
26131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26132 (eval "$ac_try") 2>&5
26133 ac_status=$?
26134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); }; }; then
26136 ac_cv_func__doprnt=yes
26137 else
26138 echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26141 ac_cv_func__doprnt=no
26144 rm -f conftest.err conftest.$ac_objext \
26145 conftest$ac_exeext conftest.$ac_ext
26147 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26148 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26149 if test $ac_cv_func__doprnt = yes; then
26151 cat >>confdefs.h <<\_ACEOF
26152 #define HAVE_DOPRNT 1
26153 _ACEOF
26158 done
26207 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
26209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26213 echo $ECHO_N "(cached) $ECHO_C" >&6
26214 else
26215 cat >conftest.$ac_ext <<_ACEOF
26216 /* confdefs.h. */
26217 _ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h. */
26221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26223 #define $ac_func innocuous_$ac_func
26225 /* System header to define __stub macros and hopefully few prototypes,
26226 which can conflict with char $ac_func (); below.
26227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26228 <limits.h> exists even on freestanding compilers. */
26230 #ifdef __STDC__
26231 # include <limits.h>
26232 #else
26233 # include <assert.h>
26234 #endif
26236 #undef $ac_func
26238 /* Override any GCC internal prototype to avoid an error.
26239 Use char because int might match the return type of a GCC
26240 builtin and then its argument prototype would still apply. */
26241 #ifdef __cplusplus
26242 extern "C"
26243 #endif
26244 char $ac_func ();
26245 /* The GNU C library defines this for functions which it implements
26246 to always fail with ENOSYS. Some functions are actually named
26247 something starting with __ and the normal name is an alias. */
26248 #if defined __stub_$ac_func || defined __stub___$ac_func
26249 choke me
26250 #endif
26253 main ()
26255 return $ac_func ();
26257 return 0;
26259 _ACEOF
26260 rm -f conftest.$ac_objext conftest$ac_exeext
26261 if { (ac_try="$ac_link"
26262 case "(($ac_try" in
26263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26264 *) ac_try_echo=$ac_try;;
26265 esac
26266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26267 (eval "$ac_link") 2>conftest.er1
26268 ac_status=$?
26269 grep -v '^ *+' conftest.er1 >conftest.err
26270 rm -f conftest.er1
26271 cat conftest.err >&5
26272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273 (exit $ac_status); } &&
26274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26275 { (case "(($ac_try" in
26276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26277 *) ac_try_echo=$ac_try;;
26278 esac
26279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26280 (eval "$ac_try") 2>&5
26281 ac_status=$?
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); }; } &&
26284 { ac_try='test -s conftest$ac_exeext'
26285 { (case "(($ac_try" in
26286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26287 *) ac_try_echo=$ac_try;;
26288 esac
26289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26290 (eval "$ac_try") 2>&5
26291 ac_status=$?
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); }; }; then
26294 eval "$as_ac_var=yes"
26295 else
26296 echo "$as_me: failed program was:" >&5
26297 sed 's/^/| /' conftest.$ac_ext >&5
26299 eval "$as_ac_var=no"
26302 rm -f conftest.err conftest.$ac_objext \
26303 conftest$ac_exeext conftest.$ac_ext
26305 ac_res=`eval echo '${'$as_ac_var'}'`
26306 { echo "$as_me:$LINENO: result: $ac_res" >&5
26307 echo "${ECHO_T}$ac_res" >&6; }
26308 if test `eval echo '${'$as_ac_var'}'` = yes; then
26309 cat >>confdefs.h <<_ACEOF
26310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26311 _ACEOF
26314 done
26317 echo -n "checking for compiler atomic operations... "
26318 cat >conftest.$ac_ext <<_ACEOF
26319 /* confdefs.h. */
26320 _ACEOF
26321 cat confdefs.h >>conftest.$ac_ext
26322 cat >>conftest.$ac_ext <<_ACEOF
26323 /* end confdefs.h. */
26326 main ()
26328 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
26330 return 0;
26332 _ACEOF
26333 rm -f conftest.$ac_objext conftest$ac_exeext
26334 if { (ac_try="$ac_link"
26335 case "(($ac_try" in
26336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337 *) ac_try_echo=$ac_try;;
26338 esac
26339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340 (eval "$ac_link") 2>conftest.er1
26341 ac_status=$?
26342 grep -v '^ *+' conftest.er1 >conftest.err
26343 rm -f conftest.er1
26344 cat conftest.err >&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); } &&
26347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26348 { (case "(($ac_try" in
26349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26350 *) ac_try_echo=$ac_try;;
26351 esac
26352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26353 (eval "$ac_try") 2>&5
26354 ac_status=$?
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); }; } &&
26357 { ac_try='test -s conftest$ac_exeext'
26358 { (case "(($ac_try" in
26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 *) ac_try_echo=$ac_try;;
26361 esac
26362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26363 (eval "$ac_try") 2>&5
26364 ac_status=$?
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); }; }; then
26367 { echo "$as_me:$LINENO: result: yes" >&5
26368 echo "${ECHO_T}yes" >&6; }
26370 cat >>confdefs.h <<\_ACEOF
26371 #define HAVE_GCC_ATOMICS 1
26372 _ACEOF
26374 else
26375 echo "$as_me: failed program was:" >&5
26376 sed 's/^/| /' conftest.$ac_ext >&5
26378 { echo "$as_me:$LINENO: result: no" >&5
26379 echo "${ECHO_T}no" >&6; }
26383 rm -f conftest.err conftest.$ac_objext \
26384 conftest$ac_exeext conftest.$ac_ext
26386 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts"
26388 cat >confcache <<\_ACEOF
26389 # This file is a shell script that caches the results of configure
26390 # tests run on this system so they can be shared between configure
26391 # scripts and configure runs, see configure's option --config-cache.
26392 # It is not useful on other systems. If it contains results you don't
26393 # want to keep, you may remove or edit it.
26395 # config.status only pays attention to the cache file if you give it
26396 # the --recheck option to rerun configure.
26398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26400 # following values.
26402 _ACEOF
26404 # The following way of writing the cache mishandles newlines in values,
26405 # but we know of no workaround that is simple, portable, and efficient.
26406 # So, we kill variables containing newlines.
26407 # Ultrix sh set writes to stderr and can't be redirected directly,
26408 # and sets the high bit in the cache file unless we assign to the vars.
26410 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26411 eval ac_val=\$$ac_var
26412 case $ac_val in #(
26413 *${as_nl}*)
26414 case $ac_var in #(
26415 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26416 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26417 esac
26418 case $ac_var in #(
26419 _ | IFS | as_nl) ;; #(
26420 *) $as_unset $ac_var ;;
26421 esac ;;
26422 esac
26423 done
26425 (set) 2>&1 |
26426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26427 *${as_nl}ac_space=\ *)
26428 # `set' does not quote correctly, so add quotes (double-quote
26429 # substitution turns \\\\ into \\, and sed turns \\ into \).
26430 sed -n \
26431 "s/'/'\\\\''/g;
26432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26433 ;; #(
26435 # `set' quotes correctly as required by POSIX, so do not add quotes.
26436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26438 esac |
26439 sort
26441 sed '
26442 /^ac_cv_env_/b end
26443 t clear
26444 :clear
26445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26446 t end
26447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26448 :end' >>confcache
26449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26450 if test -w "$cache_file"; then
26451 test "x$cache_file" != "x/dev/null" &&
26452 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26453 echo "$as_me: updating cache $cache_file" >&6;}
26454 cat confcache >$cache_file
26455 else
26456 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26457 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26460 rm -f confcache
26462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26463 # Let make expand exec_prefix.
26464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26466 DEFS=-DHAVE_CONFIG_H
26468 ac_libobjs=
26469 ac_ltlibobjs=
26470 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26471 # 1. Remove the extension, and $U if already installed.
26472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26473 ac_i=`echo "$ac_i" | sed "$ac_script"`
26474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26475 # will be set to the directory where LIBOBJS objects are built.
26476 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26477 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26478 done
26479 LIBOBJS=$ac_libobjs
26481 LTLIBOBJS=$ac_ltlibobjs
26485 : ${CONFIG_STATUS=./config.status}
26486 ac_clean_files_save=$ac_clean_files
26487 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26488 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26489 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26490 cat >$CONFIG_STATUS <<_ACEOF
26491 #! $SHELL
26492 # Generated by $as_me.
26493 # Run this file to recreate the current configuration.
26494 # Compiler output produced by configure, useful for debugging
26495 # configure, is in config.log if it exists.
26497 debug=false
26498 ac_cs_recheck=false
26499 ac_cs_silent=false
26500 SHELL=\${CONFIG_SHELL-$SHELL}
26501 _ACEOF
26503 cat >>$CONFIG_STATUS <<\_ACEOF
26504 ## --------------------- ##
26505 ## M4sh Initialization. ##
26506 ## --------------------- ##
26508 # Be Bourne compatible
26509 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26510 emulate sh
26511 NULLCMD=:
26512 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26513 # is contrary to our usage. Disable this feature.
26514 alias -g '${1+"$@"}'='"$@"'
26515 setopt NO_GLOB_SUBST
26516 else
26517 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26519 BIN_SH=xpg4; export BIN_SH # for Tru64
26520 DUALCASE=1; export DUALCASE # for MKS sh
26523 # PATH needs CR
26524 # Avoid depending upon Character Ranges.
26525 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26526 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26527 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26528 as_cr_digits='0123456789'
26529 as_cr_alnum=$as_cr_Letters$as_cr_digits
26531 # The user is always right.
26532 if test "${PATH_SEPARATOR+set}" != set; then
26533 echo "#! /bin/sh" >conf$$.sh
26534 echo "exit 0" >>conf$$.sh
26535 chmod +x conf$$.sh
26536 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26537 PATH_SEPARATOR=';'
26538 else
26539 PATH_SEPARATOR=:
26541 rm -f conf$$.sh
26544 # Support unset when possible.
26545 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26546 as_unset=unset
26547 else
26548 as_unset=false
26552 # IFS
26553 # We need space, tab and new line, in precisely that order. Quoting is
26554 # there to prevent editors from complaining about space-tab.
26555 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26556 # splitting by setting IFS to empty value.)
26557 as_nl='
26559 IFS=" "" $as_nl"
26561 # Find who we are. Look in the path if we contain no directory separator.
26562 case $0 in
26563 *[\\/]* ) as_myself=$0 ;;
26564 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26565 for as_dir in $PATH
26567 IFS=$as_save_IFS
26568 test -z "$as_dir" && as_dir=.
26569 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26570 done
26571 IFS=$as_save_IFS
26574 esac
26575 # We did not find ourselves, most probably we were run as `sh COMMAND'
26576 # in which case we are not to be found in the path.
26577 if test "x$as_myself" = x; then
26578 as_myself=$0
26580 if test ! -f "$as_myself"; then
26581 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26582 { (exit 1); exit 1; }
26585 # Work around bugs in pre-3.0 UWIN ksh.
26586 for as_var in ENV MAIL MAILPATH
26587 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26588 done
26589 PS1='$ '
26590 PS2='> '
26591 PS4='+ '
26593 # NLS nuisances.
26594 for as_var in \
26595 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26596 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26597 LC_TELEPHONE LC_TIME
26599 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26600 eval $as_var=C; export $as_var
26601 else
26602 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26604 done
26606 # Required to use basename.
26607 if expr a : '\(a\)' >/dev/null 2>&1 &&
26608 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26609 as_expr=expr
26610 else
26611 as_expr=false
26614 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26615 as_basename=basename
26616 else
26617 as_basename=false
26621 # Name of the executable.
26622 as_me=`$as_basename -- "$0" ||
26623 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26624 X"$0" : 'X\(//\)$' \| \
26625 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26626 echo X/"$0" |
26627 sed '/^.*\/\([^/][^/]*\)\/*$/{
26628 s//\1/
26631 /^X\/\(\/\/\)$/{
26632 s//\1/
26635 /^X\/\(\/\).*/{
26636 s//\1/
26639 s/.*/./; q'`
26641 # CDPATH.
26642 $as_unset CDPATH
26646 as_lineno_1=$LINENO
26647 as_lineno_2=$LINENO
26648 test "x$as_lineno_1" != "x$as_lineno_2" &&
26649 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26651 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26652 # uniformly replaced by the line number. The first 'sed' inserts a
26653 # line-number line after each line using $LINENO; the second 'sed'
26654 # does the real work. The second script uses 'N' to pair each
26655 # line-number line with the line containing $LINENO, and appends
26656 # trailing '-' during substitution so that $LINENO is not a special
26657 # case at line end.
26658 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26659 # scripts with optimization help from Paolo Bonzini. Blame Lee
26660 # E. McMahon (1931-1989) for sed's syntax. :-)
26661 sed -n '
26663 /[$]LINENO/=
26664 ' <$as_myself |
26665 sed '
26666 s/[$]LINENO.*/&-/
26667 t lineno
26669 :lineno
26671 :loop
26672 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26673 t loop
26674 s/-\n.*//
26675 ' >$as_me.lineno &&
26676 chmod +x "$as_me.lineno" ||
26677 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26678 { (exit 1); exit 1; }; }
26680 # Don't try to exec as it changes $[0], causing all sort of problems
26681 # (the dirname of $[0] is not the place where we might find the
26682 # original and so on. Autoconf is especially sensitive to this).
26683 . "./$as_me.lineno"
26684 # Exit status is that of the last command.
26685 exit
26689 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26690 as_dirname=dirname
26691 else
26692 as_dirname=false
26695 ECHO_C= ECHO_N= ECHO_T=
26696 case `echo -n x` in
26697 -n*)
26698 case `echo 'x\c'` in
26699 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26700 *) ECHO_C='\c';;
26701 esac;;
26703 ECHO_N='-n';;
26704 esac
26706 if expr a : '\(a\)' >/dev/null 2>&1 &&
26707 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26708 as_expr=expr
26709 else
26710 as_expr=false
26713 rm -f conf$$ conf$$.exe conf$$.file
26714 if test -d conf$$.dir; then
26715 rm -f conf$$.dir/conf$$.file
26716 else
26717 rm -f conf$$.dir
26718 mkdir conf$$.dir
26720 echo >conf$$.file
26721 if ln -s conf$$.file conf$$ 2>/dev/null; then
26722 as_ln_s='ln -s'
26723 # ... but there are two gotchas:
26724 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26725 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26726 # In both cases, we have to default to `cp -p'.
26727 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26728 as_ln_s='cp -p'
26729 elif ln conf$$.file conf$$ 2>/dev/null; then
26730 as_ln_s=ln
26731 else
26732 as_ln_s='cp -p'
26734 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26735 rmdir conf$$.dir 2>/dev/null
26737 if mkdir -p . 2>/dev/null; then
26738 as_mkdir_p=:
26739 else
26740 test -d ./-p && rmdir ./-p
26741 as_mkdir_p=false
26744 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
26745 # systems may use methods other than mode bits to determine executability.
26746 cat >conf$$.file <<_ASEOF
26747 #! /bin/sh
26748 exit 0
26749 _ASEOF
26750 chmod +x conf$$.file
26751 if test -x conf$$.file >/dev/null 2>&1; then
26752 as_executable_p="test -x"
26753 else
26754 as_executable_p=:
26756 rm -f conf$$.file
26758 # Sed expression to map a string onto a valid CPP name.
26759 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26761 # Sed expression to map a string onto a valid variable name.
26762 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26765 exec 6>&1
26767 # Save the log message, to keep $[0] and so on meaningful, and to
26768 # report actual input values of CONFIG_FILES etc. instead of their
26769 # values after options handling.
26770 ac_log="
26771 This file was extended by $as_me, which was
26772 generated by GNU Autoconf 2.59e. Invocation command line was
26774 CONFIG_FILES = $CONFIG_FILES
26775 CONFIG_HEADERS = $CONFIG_HEADERS
26776 CONFIG_LINKS = $CONFIG_LINKS
26777 CONFIG_COMMANDS = $CONFIG_COMMANDS
26778 $ $0 $@
26780 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26783 _ACEOF
26785 cat >>$CONFIG_STATUS <<_ACEOF
26786 # Files that config.status was made for.
26787 config_files="$ac_config_files"
26788 config_headers="$ac_config_headers"
26790 _ACEOF
26792 cat >>$CONFIG_STATUS <<\_ACEOF
26793 ac_cs_usage="\
26794 \`$as_me' instantiates files from templates according to the
26795 current configuration.
26797 Usage: $0 [OPTIONS] [FILE]...
26799 -h, --help print this help, then exit
26800 -V, --version print version number, then exit
26801 -q, --quiet do not print progress messages
26802 -d, --debug don't remove temporary files
26803 --recheck update $as_me by reconfiguring in the same conditions
26804 --file=FILE[:TEMPLATE]
26805 instantiate the configuration file FILE
26806 --header=FILE[:TEMPLATE]
26807 instantiate the configuration header FILE
26809 Configuration files:
26810 $config_files
26812 Configuration headers:
26813 $config_headers
26815 Report bugs to <bug-autoconf@gnu.org>."
26817 _ACEOF
26818 cat >>$CONFIG_STATUS <<_ACEOF
26819 ac_cs_version="\\
26820 config.status
26821 configured by $0, generated by GNU Autoconf 2.59e,
26822 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26824 Copyright (C) 2006 Free Software Foundation, Inc.
26825 This config.status script is free software; the Free Software Foundation
26826 gives unlimited permission to copy, distribute and modify it."
26828 ac_pwd='$ac_pwd'
26829 srcdir='$srcdir'
26830 INSTALL='$INSTALL'
26831 _ACEOF
26833 cat >>$CONFIG_STATUS <<\_ACEOF
26834 # If no file are specified by the user, then we need to provide default
26835 # value. By we need to know if files were specified by the user.
26836 ac_need_defaults=:
26837 while test $# != 0
26839 case $1 in
26840 --*=*)
26841 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26842 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26843 ac_shift=:
26846 ac_option=$1
26847 ac_optarg=$2
26848 ac_shift=shift
26850 esac
26852 case $ac_option in
26853 # Handling of the options.
26854 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26855 ac_cs_recheck=: ;;
26856 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26857 echo "$ac_cs_version"; exit ;;
26858 --debug | --debu | --deb | --de | --d | -d )
26859 debug=: ;;
26860 --file | --fil | --fi | --f )
26861 $ac_shift
26862 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26863 ac_need_defaults=false;;
26864 --header | --heade | --head | --hea )
26865 $ac_shift
26866 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26867 ac_need_defaults=false;;
26868 --he | --h)
26869 # Conflict between --help and --header
26870 { echo "$as_me: error: ambiguous option: $1
26871 Try \`$0 --help' for more information." >&2
26872 { (exit 1); exit 1; }; };;
26873 --help | --hel | -h )
26874 echo "$ac_cs_usage"; exit ;;
26875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26876 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26877 ac_cs_silent=: ;;
26879 # This is an error.
26880 -*) { echo "$as_me: error: unrecognized option: $1
26881 Try \`$0 --help' for more information." >&2
26882 { (exit 1); exit 1; }; } ;;
26884 *) ac_config_targets="$ac_config_targets $1"
26885 ac_need_defaults=false ;;
26887 esac
26888 shift
26889 done
26891 ac_configure_extra_args=
26893 if $ac_cs_silent; then
26894 exec 6>/dev/null
26895 ac_configure_extra_args="$ac_configure_extra_args --silent"
26898 _ACEOF
26899 cat >>$CONFIG_STATUS <<_ACEOF
26900 if \$ac_cs_recheck; then
26901 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26902 CONFIG_SHELL=$SHELL
26903 export CONFIG_SHELL
26904 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26907 _ACEOF
26908 cat >>$CONFIG_STATUS <<\_ACEOF
26909 exec 5>>config.log
26911 echo
26912 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26913 ## Running $as_me. ##
26914 _ASBOX
26915 echo "$ac_log"
26916 } >&5
26918 _ACEOF
26919 cat >>$CONFIG_STATUS <<_ACEOF
26920 _ACEOF
26922 cat >>$CONFIG_STATUS <<\_ACEOF
26924 # Handling of arguments.
26925 for ac_config_target in $ac_config_targets
26927 case $ac_config_target in
26928 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
26929 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
26930 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
26932 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26933 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26934 { (exit 1); exit 1; }; };;
26935 esac
26936 done
26939 # If the user did not use the arguments to specify the items to instantiate,
26940 # then the envvar interface is used. Set only those that are not.
26941 # We use the long form for the default assignment because of an extremely
26942 # bizarre bug on SunOS 4.1.3.
26943 if $ac_need_defaults; then
26944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26948 # Have a temporary directory for convenience. Make it in the build tree
26949 # simply because there is no reason against having it here, and in addition,
26950 # creating and moving files from /tmp can sometimes cause problems.
26951 # Hook for its removal unless debugging.
26952 # Note that there is a small window in which the directory will not be cleaned:
26953 # after its creation but before its name has been assigned to `$tmp'.
26954 $debug ||
26956 tmp=
26957 trap 'exit_status=$?
26958 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26960 trap '{ (exit 1); exit 1; }' 1 2 13 15
26962 # Create a (secure) tmp directory for tmp files.
26965 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26966 test -n "$tmp" && test -d "$tmp"
26967 } ||
26969 tmp=./conf$$-$RANDOM
26970 (umask 077 && mkdir "$tmp")
26971 } ||
26973 echo "$me: cannot create a temporary directory in ." >&2
26974 { (exit 1); exit 1; }
26978 # Set up the sed scripts for CONFIG_FILES section.
26981 # No need to generate the scripts if there are no CONFIG_FILES.
26982 # This happens for instance when ./config.status config.h
26983 if test -n "$CONFIG_FILES"; then
26985 _ACEOF
26989 ac_delim='%!_!# '
26990 for ac_last_try in false false false false false :; do
26991 cat >conf$$subs.sed <<_ACEOF
26992 SHELL!$SHELL$ac_delim
26993 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26994 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26995 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26996 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26997 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26998 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26999 exec_prefix!$exec_prefix$ac_delim
27000 prefix!$prefix$ac_delim
27001 program_transform_name!$program_transform_name$ac_delim
27002 bindir!$bindir$ac_delim
27003 sbindir!$sbindir$ac_delim
27004 libexecdir!$libexecdir$ac_delim
27005 datarootdir!$datarootdir$ac_delim
27006 datadir!$datadir$ac_delim
27007 sysconfdir!$sysconfdir$ac_delim
27008 sharedstatedir!$sharedstatedir$ac_delim
27009 localstatedir!$localstatedir$ac_delim
27010 includedir!$includedir$ac_delim
27011 oldincludedir!$oldincludedir$ac_delim
27012 docdir!$docdir$ac_delim
27013 infodir!$infodir$ac_delim
27014 htmldir!$htmldir$ac_delim
27015 dvidir!$dvidir$ac_delim
27016 pdfdir!$pdfdir$ac_delim
27017 psdir!$psdir$ac_delim
27018 libdir!$libdir$ac_delim
27019 localedir!$localedir$ac_delim
27020 mandir!$mandir$ac_delim
27021 DEFS!$DEFS$ac_delim
27022 ECHO_C!$ECHO_C$ac_delim
27023 ECHO_N!$ECHO_N$ac_delim
27024 ECHO_T!$ECHO_T$ac_delim
27025 LIBS!$LIBS$ac_delim
27026 build_alias!$build_alias$ac_delim
27027 host_alias!$host_alias$ac_delim
27028 target_alias!$target_alias$ac_delim
27029 build!$build$ac_delim
27030 build_cpu!$build_cpu$ac_delim
27031 build_vendor!$build_vendor$ac_delim
27032 build_os!$build_os$ac_delim
27033 host!$host$ac_delim
27034 host_cpu!$host_cpu$ac_delim
27035 host_vendor!$host_vendor$ac_delim
27036 host_os!$host_os$ac_delim
27037 target!$target$ac_delim
27038 target_cpu!$target_cpu$ac_delim
27039 target_vendor!$target_vendor$ac_delim
27040 target_os!$target_os$ac_delim
27041 PBX_PLATFORM!$PBX_PLATFORM$ac_delim
27042 PBX_CPU!$PBX_CPU$ac_delim
27043 PBX_VENDOR!$PBX_VENDOR$ac_delim
27044 PBX_OS!$PBX_OS$ac_delim
27045 UNAME!$UNAME$ac_delim
27046 PBX_OSREV!$PBX_OSREV$ac_delim
27047 OSISWIN32!$OSISWIN32$ac_delim
27048 PBX_OSTYPE!$PBX_OSTYPE$ac_delim
27049 CC!$CC$ac_delim
27050 CXX!$CXX$ac_delim
27051 RANLIB!$RANLIB$ac_delim
27052 AR!$AR$ac_delim
27053 NM!$NM$ac_delim
27054 WINDRES!$WINDRES$ac_delim
27055 DLLWRAP!$DLLWRAP$ac_delim
27056 CFLAGS!$CFLAGS$ac_delim
27057 LDFLAGS!$LDFLAGS$ac_delim
27058 CPPFLAGS!$CPPFLAGS$ac_delim
27059 ac_ct_CC!$ac_ct_CC$ac_delim
27060 EXEEXT!$EXEEXT$ac_delim
27061 OBJEXT!$OBJEXT$ac_delim
27062 CXXFLAGS!$CXXFLAGS$ac_delim
27063 ac_ct_CXX!$ac_ct_CXX$ac_delim
27064 CPP!$CPP$ac_delim
27065 CXXCPP!$CXXCPP$ac_delim
27066 AWK!$AWK$ac_delim
27067 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27068 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27069 INSTALL_DATA!$INSTALL_DATA$ac_delim
27070 LN_S!$LN_S$ac_delim
27071 GNU_MAKE!$GNU_MAKE$ac_delim
27072 GREP!$GREP$ac_delim
27073 FIND!$FIND$ac_delim
27074 COMPRESS!$COMPRESS$ac_delim
27075 BASENAME!$BASENAME$ac_delim
27076 DIRNAME!$DIRNAME$ac_delim
27077 LN!$LN$ac_delim
27078 DOT!$DOT$ac_delim
27079 AST_DEVMODE!$AST_DEVMODE$ac_delim
27080 EGREP!$EGREP$ac_delim
27081 ALSA_LIB!$ALSA_LIB$ac_delim
27082 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
27083 PBX_LIBALSA!$PBX_LIBALSA$ac_delim
27084 CURSES_LIB!$CURSES_LIB$ac_delim
27085 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
27086 PBX_LIBCURSES!$PBX_LIBCURSES$ac_delim
27087 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
27088 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
27089 _ACEOF
27091 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27092 break
27093 elif $ac_last_try; then
27094 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27096 { (exit 1); exit 1; }; }
27097 else
27098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27100 done
27102 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27103 if test -n "$ac_eof"; then
27104 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27105 ac_eof=`expr $ac_eof + 1`
27108 cat >>$CONFIG_STATUS <<_ACEOF
27109 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27111 _ACEOF
27112 sed '
27113 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27114 s/^/s,@/; s/!/@,|#_!!_#|/
27117 s/'"$ac_delim"'$/,g/; t
27118 s/$/\\/; p
27119 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27120 ' >>$CONFIG_STATUS <conf$$subs.sed
27121 rm -f conf$$subs.sed
27122 cat >>$CONFIG_STATUS <<_ACEOF
27123 CEOF$ac_eof
27124 _ACEOF
27127 ac_delim='%!_!# '
27128 for ac_last_try in false false false false false :; do
27129 cat >conf$$subs.sed <<_ACEOF
27130 PBX_LIBIKSEMEL!$PBX_LIBIKSEMEL$ac_delim
27131 NBS_LIB!$NBS_LIB$ac_delim
27132 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
27133 PBX_LIBNBS!$PBX_LIBNBS$ac_delim
27134 NCURSES_LIB!$NCURSES_LIB$ac_delim
27135 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
27136 PBX_LIBNCURSES!$PBX_LIBNCURSES$ac_delim
27137 NEWT_LIB!$NEWT_LIB$ac_delim
27138 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
27139 PBX_LIBNEWT!$PBX_LIBNEWT$ac_delim
27140 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
27141 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
27142 PBX_LIBUNIXODBC!$PBX_LIBUNIXODBC$ac_delim
27143 OGG_LIB!$OGG_LIB$ac_delim
27144 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
27145 PBX_LIBOGG!$PBX_LIBOGG$ac_delim
27146 OSPTK_LIB!$OSPTK_LIB$ac_delim
27147 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
27148 PBX_LIBOSPTK!$PBX_LIBOSPTK$ac_delim
27149 POPT_LIB!$POPT_LIB$ac_delim
27150 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
27151 PBX_LIBPOPT!$PBX_LIBPOPT$ac_delim
27152 LIBPRI_LIB!$LIBPRI_LIB$ac_delim
27153 LIBPRI_INCLUDE!$LIBPRI_INCLUDE$ac_delim
27154 PBX_LIBLIBPRI!$PBX_LIBLIBPRI$ac_delim
27155 RADIUSCLIENT_LIB!$RADIUSCLIENT_LIB$ac_delim
27156 RADIUSCLIENT_INCLUDE!$RADIUSCLIENT_INCLUDE$ac_delim
27157 PBX_LIBRADIUSCLIENT!$PBX_LIBRADIUSCLIENT$ac_delim
27158 SPEEX_LIB!$SPEEX_LIB$ac_delim
27159 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
27160 PBX_LIBSPEEX!$PBX_LIBSPEEX$ac_delim
27161 SQLITE_LIB!$SQLITE_LIB$ac_delim
27162 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
27163 PBX_LIBSQLITE!$PBX_LIBSQLITE$ac_delim
27164 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
27165 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
27166 PBX_LIBOPENSSL!$PBX_LIBOPENSSL$ac_delim
27167 FREETDS_LIB!$FREETDS_LIB$ac_delim
27168 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
27169 PBX_LIBFREETDS!$PBX_LIBFREETDS$ac_delim
27170 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
27171 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
27172 PBX_LIBTERMCAP!$PBX_LIBTERMCAP$ac_delim
27173 TINFO_LIB!$TINFO_LIB$ac_delim
27174 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
27175 PBX_LIBTINFO!$PBX_LIBTINFO$ac_delim
27176 VORBIS_LIB!$VORBIS_LIB$ac_delim
27177 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
27178 PBX_LIBVORBIS!$PBX_LIBVORBIS$ac_delim
27179 ZLIB_LIB!$ZLIB_LIB$ac_delim
27180 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
27181 PBX_LIBZLIB!$PBX_LIBZLIB$ac_delim
27182 EDITLINE_LIBS!$EDITLINE_LIBS$ac_delim
27183 OSS_LIB!$OSS_LIB$ac_delim
27184 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
27185 PBX_LIBOSS!$PBX_LIBOSS$ac_delim
27186 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
27187 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
27188 PBX_LIBZAPTEL!$PBX_LIBZAPTEL$ac_delim
27189 gsm_LIB!$gsm_LIB$ac_delim
27190 gsm_INCLUDE!$gsm_INCLUDE$ac_delim
27191 PBX_LIBgsm!$PBX_LIBgsm$ac_delim
27192 PG_CONFIG!$PG_CONFIG$ac_delim
27193 pq_INCLUDE!$pq_INCLUDE$ac_delim
27194 pq_LIB!$pq_LIB$ac_delim
27195 PBX_LIBpq!$PBX_LIBpq$ac_delim
27196 PBX_H323!$PBX_H323$ac_delim
27197 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
27198 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
27199 VPB_LIB!$VPB_LIB$ac_delim
27200 PBX_LIBvpb!$PBX_LIBvpb$ac_delim
27201 QT_INCLUDE!$QT_INCLUDE$ac_delim
27202 QT_LIB!$QT_LIB$ac_delim
27203 QTMOC!$QTMOC$ac_delim
27204 PBX_QT!$PBX_QT$ac_delim
27205 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
27206 KDE_LIBS!$KDE_LIBS$ac_delim
27207 PBX_KDE!$PBX_KDE$ac_delim
27208 KDEINIT!$KDEINIT$ac_delim
27209 KDEDIR!$KDEDIR$ac_delim
27210 GTKCONFIG!$GTKCONFIG$ac_delim
27211 PBX_GTK!$PBX_GTK$ac_delim
27212 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
27213 GTK_LIBS!$GTK_LIBS$ac_delim
27214 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
27215 PWLIB_LIB!$PWLIB_LIB$ac_delim
27216 PBX_LIBPWLIB!$PBX_LIBPWLIB$ac_delim
27217 CURL!$CURL$ac_delim
27218 PBX_CURL!$PBX_CURL$ac_delim
27219 CURLLIBS!$CURLLIBS$ac_delim
27220 ALLOCA!$ALLOCA$ac_delim
27221 LIBOBJS!$LIBOBJS$ac_delim
27222 POW_LIB!$POW_LIB$ac_delim
27223 LTLIBOBJS!$LTLIBOBJS$ac_delim
27224 _ACEOF
27226 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
27227 break
27228 elif $ac_last_try; then
27229 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27230 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27231 { (exit 1); exit 1; }; }
27232 else
27233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27235 done
27237 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27238 if test -n "$ac_eof"; then
27239 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27240 ac_eof=`expr $ac_eof + 1`
27243 cat >>$CONFIG_STATUS <<_ACEOF
27244 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27246 _ACEOF
27247 sed '
27248 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27249 s/^/s,@/; s/!/@,|#_!!_#|/
27252 s/'"$ac_delim"'$/,g/; t
27253 s/$/\\/; p
27254 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27255 ' >>$CONFIG_STATUS <conf$$subs.sed
27256 rm -f conf$$subs.sed
27257 cat >>$CONFIG_STATUS <<_ACEOF
27258 :end
27259 s/|#_!!_#|//g
27260 CEOF$ac_eof
27261 _ACEOF
27264 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27265 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27266 # trailing colons and then remove the whole line if VPATH becomes empty
27267 # (actually we leave an empty line to preserve line numbers).
27268 if test "x$srcdir" = x.; then
27269 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27270 s/:*\$(srcdir):*/:/
27271 s/:*\${srcdir}:*/:/
27272 s/:*@srcdir@:*/:/
27273 s/^\([^=]*=[ ]*\):*/\1/
27274 s/:*$//
27275 s/^[^=]*=[ ]*$//
27279 cat >>$CONFIG_STATUS <<\_ACEOF
27280 fi # test -n "$CONFIG_FILES"
27283 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
27285 case $ac_tag in
27286 :[FHLC]) ac_mode=$ac_tag; continue;;
27287 esac
27288 case $ac_mode$ac_tag in
27289 :[FHL]*:*);;
27290 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27291 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27292 { (exit 1); exit 1; }; };;
27293 :[FH]-) ac_tag=-:-;;
27294 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27295 esac
27296 ac_save_IFS=$IFS
27297 IFS=:
27298 set x $ac_tag
27299 IFS=$ac_save_IFS
27300 shift
27301 ac_file=$1
27302 shift
27304 case $ac_mode in
27305 :L) ac_source=$1;;
27306 :[FH])
27307 ac_file_inputs=
27308 for ac_f
27310 case $ac_f in
27311 -) ac_f="$tmp/stdin";;
27312 *) # Look for the file first in the build tree, then in the source tree
27313 # (if the path is not absolute). The absolute path cannot be DOS-style,
27314 # because $ac_f cannot contain `:'.
27315 test -f "$ac_f" ||
27316 case $ac_f in
27317 [\\/$]*) false;;
27318 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27319 esac ||
27320 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27321 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27322 { (exit 1); exit 1; }; };;
27323 esac
27324 ac_file_inputs="$ac_file_inputs $ac_f"
27325 done
27327 # Let's still pretend it is `configure' which instantiates (i.e., don't
27328 # use $as_me), people would be surprised to read:
27329 # /* config.h. Generated by config.status. */
27330 configure_input="Generated from "`IFS=:
27331 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27332 if test x"$ac_file" != x-; then
27333 configure_input="$ac_file. $configure_input"
27334 { echo "$as_me:$LINENO: creating $ac_file" >&5
27335 echo "$as_me: creating $ac_file" >&6;}
27338 case $ac_tag in
27339 *:-:* | *:-) cat >"$tmp/stdin";;
27340 esac
27342 esac
27344 ac_dir=`$as_dirname -- "$ac_file" ||
27345 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27346 X"$ac_file" : 'X\(//\)[^/]' \| \
27347 X"$ac_file" : 'X\(//\)$' \| \
27348 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27349 echo X"$ac_file" |
27350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27351 s//\1/
27354 /^X\(\/\/\)[^/].*/{
27355 s//\1/
27358 /^X\(\/\/\)$/{
27359 s//\1/
27362 /^X\(\/\).*/{
27363 s//\1/
27366 s/.*/./; q'`
27367 { as_dir="$ac_dir"
27368 case $as_dir in #(
27369 -*) as_dir=./$as_dir;;
27370 esac
27371 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27372 as_dirs=
27373 while :; do
27374 case $as_dir in #(
27375 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27376 *) as_qdir=$as_dir;;
27377 esac
27378 as_dirs="'$as_qdir' $as_dirs"
27379 as_dir=`$as_dirname -- "$as_dir" ||
27380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27381 X"$as_dir" : 'X\(//\)[^/]' \| \
27382 X"$as_dir" : 'X\(//\)$' \| \
27383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27384 echo X"$as_dir" |
27385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27386 s//\1/
27389 /^X\(\/\/\)[^/].*/{
27390 s//\1/
27393 /^X\(\/\/\)$/{
27394 s//\1/
27397 /^X\(\/\).*/{
27398 s//\1/
27401 s/.*/./; q'`
27402 test -d "$as_dir" && break
27403 done
27404 test -z "$as_dirs" || eval "mkdir $as_dirs"
27405 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27406 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27407 { (exit 1); exit 1; }; }; }
27408 ac_builddir=.
27410 case "$ac_dir" in
27411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27413 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27414 # A ".." for each directory in $ac_dir_suffix.
27415 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27416 case $ac_top_builddir_sub in
27417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27419 esac ;;
27420 esac
27421 ac_abs_top_builddir=$ac_pwd
27422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27423 # for backward compatibility:
27424 ac_top_builddir=$ac_top_build_prefix
27426 case $srcdir in
27427 .) # We are building in place.
27428 ac_srcdir=.
27429 ac_top_srcdir=$ac_top_builddir_sub
27430 ac_abs_top_srcdir=$ac_pwd ;;
27431 [\\/]* | ?:[\\/]* ) # Absolute name.
27432 ac_srcdir=$srcdir$ac_dir_suffix;
27433 ac_top_srcdir=$srcdir
27434 ac_abs_top_srcdir=$srcdir ;;
27435 *) # Relative name.
27436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27437 ac_top_srcdir=$ac_top_build_prefix$srcdir
27438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27439 esac
27440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27443 case $ac_mode in
27446 # CONFIG_FILE
27449 case $INSTALL in
27450 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27451 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27452 esac
27453 _ACEOF
27455 cat >>$CONFIG_STATUS <<\_ACEOF
27456 # If the template does not know about datarootdir, expand it.
27457 # FIXME: This hack should be removed a few years after 2.60.
27458 ac_datarootdir_hack=; ac_datarootdir_seen=
27460 case `sed -n '/datarootdir/ {
27464 /@datadir@/p
27465 /@docdir@/p
27466 /@infodir@/p
27467 /@localedir@/p
27468 /@mandir@/p
27469 ' $ac_file_inputs` in
27470 *datarootdir*) ac_datarootdir_seen=yes;;
27471 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27472 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27473 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27474 _ACEOF
27475 cat >>$CONFIG_STATUS <<_ACEOF
27476 ac_datarootdir_hack='
27477 s&@datadir@&$datadir&g
27478 s&@docdir@&$docdir&g
27479 s&@infodir@&$infodir&g
27480 s&@localedir@&$localedir&g
27481 s&@mandir@&$mandir&g
27482 s&\\\${datarootdir}&$datarootdir&g' ;;
27483 esac
27484 _ACEOF
27486 # Neutralize VPATH when `$srcdir' = `.'.
27487 # Shell code in configure.ac might set extrasub.
27488 # FIXME: do we really want to maintain this feature?
27489 cat >>$CONFIG_STATUS <<_ACEOF
27490 sed "$ac_vpsub
27491 $extrasub
27492 _ACEOF
27493 cat >>$CONFIG_STATUS <<\_ACEOF
27495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27496 s&@configure_input@&$configure_input&;t t
27497 s&@top_builddir@&$ac_top_builddir_sub&;t t
27498 s&@srcdir@&$ac_srcdir&;t t
27499 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27500 s&@top_srcdir@&$ac_top_srcdir&;t t
27501 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27502 s&@builddir@&$ac_builddir&;t t
27503 s&@abs_builddir@&$ac_abs_builddir&;t t
27504 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27505 s&@INSTALL@&$ac_INSTALL&;t t
27506 $ac_datarootdir_hack
27507 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27509 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27510 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27511 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27512 which seems to be undefined. Please make sure it is defined." >&5
27513 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27514 which seems to be undefined. Please make sure it is defined." >&2;}
27516 rm -f "$tmp/stdin"
27517 case $ac_file in
27518 -) cat "$tmp/out"; rm -f "$tmp/out";;
27519 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27520 esac
27524 # CONFIG_HEADER
27526 _ACEOF
27528 # Transform confdefs.h into a sed script `conftest.defines', that
27529 # substitutes the proper values into config.h.in to produce config.h.
27530 rm -f conftest.defines conftest.tail
27531 # First, append a space to every undef/define line, to ease matching.
27532 echo 's/$/ /' >conftest.defines
27533 # Then, protect against being on the right side of a sed subst, or in
27534 # an unquoted here document, in config.status. If some macros were
27535 # called several times there might be several #defines for the same
27536 # symbol, which is useless. But do not sort them, since the last
27537 # AC_DEFINE must be honored.
27538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27539 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27540 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27541 # PARAMS is the parameter list in the macro definition--in most cases, it's
27542 # just an empty string.
27543 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27544 ac_dB='\\)[ (].*,\\1define\\2'
27545 ac_dC=' '
27546 ac_dD=' ,'
27548 uniq confdefs.h |
27549 sed -n '
27550 t rset
27551 :rset
27552 s/^[ ]*#[ ]*define[ ][ ]*//
27553 t ok
27556 s/[\\&,]/\\&/g
27557 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27558 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27559 ' >>conftest.defines
27561 # Remove the space that was appended to ease matching.
27562 # Then replace #undef with comments. This is necessary, for
27563 # example, in the case of _POSIX_SOURCE, which is predefined and required
27564 # on some systems where configure will not decide to define it.
27565 # (The regexp can be short, since the line contains either #define or #undef.)
27566 echo 's/ $//
27567 s,^[ #]*u.*,/* & */,' >>conftest.defines
27569 # Break up conftest.defines:
27570 ac_max_sed_lines=50
27572 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27573 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27574 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27575 # et cetera.
27576 ac_in='$ac_file_inputs'
27577 ac_out='"$tmp/out1"'
27578 ac_nxt='"$tmp/out2"'
27580 while :
27582 # Write a here document:
27583 cat >>$CONFIG_STATUS <<_ACEOF
27584 # First, check the format of the line:
27585 cat >"\$tmp/defines.sed" <<\\CEOF
27586 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27587 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27589 :def
27590 _ACEOF
27591 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27592 echo 'CEOF
27593 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27594 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27595 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27596 grep . conftest.tail >/dev/null || break
27597 rm -f conftest.defines
27598 mv conftest.tail conftest.defines
27599 done
27600 rm -f conftest.defines conftest.tail
27602 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27603 cat >>$CONFIG_STATUS <<\_ACEOF
27604 if test x"$ac_file" != x-; then
27605 echo "/* $configure_input */" >"$tmp/config.h"
27606 cat "$ac_result" >>"$tmp/config.h"
27607 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27608 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27609 echo "$as_me: $ac_file is unchanged" >&6;}
27610 else
27611 rm -f $ac_file
27612 mv "$tmp/config.h" $ac_file
27614 else
27615 echo "/* $configure_input */"
27616 cat "$ac_result"
27618 rm -f "$tmp/out12"
27622 esac
27624 done # for ac_tag
27627 { (exit 0); exit 0; }
27628 _ACEOF
27629 chmod +x $CONFIG_STATUS
27630 ac_clean_files=$ac_clean_files_save
27633 # configure is writing to config.log, and then calls config.status.
27634 # config.status does its own redirection, appending to config.log.
27635 # Unfortunately, on DOS this fails, as config.log is still kept open
27636 # by configure, so config.status won't be able to write to it; its
27637 # output is simply discarded. So we exec the FD to /dev/null,
27638 # effectively closing config.log, so it can be properly (re)opened and
27639 # appended to by config.status. When coming back to configure, we
27640 # need to make the FD available again.
27641 if test "$no_create" != yes; then
27642 ac_cs_success=:
27643 ac_config_status_args=
27644 test "$silent" = yes &&
27645 ac_config_status_args="$ac_config_status_args --quiet"
27646 exec 5>/dev/null
27647 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27648 exec 5>>config.log
27649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27650 # would make configure fail if this is the last instruction.
27651 $ac_cs_success || { (exit 1); exit 1; }
27655 echo
27656 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
27657 echo " .\$7\$7.. .7\$\$7:. "
27658 echo " .\$\$:. ,\$7.7 "
27659 echo " .\$7. 7\$\$\$\$ .\$\$77 "
27660 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
27661 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
27662 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
27663 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
27664 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
27665 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
27666 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
27667 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
27668 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
27669 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
27670 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
27671 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
27672 echo " \$\$\$\$\$ \$\$\$ "
27673 echo " \$\$\$\$7. \$\$ (TM) "
27674 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
27675 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
27676 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
27677 echo
27679 echo "Package configured for: "
27680 echo " OS type : $PBX_OSTYPE"
27681 echo " Host CPU : $host_cpu"
27682 if test "x${crossCompile}" = xYes; then
27683 echo ""
27684 echo " Cross Compilation = YES"
27685 echo " Target = ${host}"